OZE_Main.list 4.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949
  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 0002c1c0 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00004c9c 0802c460 0802c460 0002d460 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 080310fc 080310fc 000320fc 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 08031104 08031104 00032104 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08031108 08031108 00032108 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000224 24000000 0803110c 00033000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 0002af64 24000224 08031330 00033224 2**2
  19. ALLOC
  20. 8 ._user_heap_stack 00000600 2402b188 08031330 00034188 2**0
  21. ALLOC
  22. 9 .lwip_sec 000193fb 2402b788 08031330 00033788 2**2
  23. ALLOC
  24. 10 .ARM.attributes 0000002e 00000000 00000000 00033224 2**0
  25. CONTENTS, READONLY
  26. 11 .debug_info 00050eec 00000000 00000000 00033252 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_abbrev 0000b5ee 00000000 00000000 0008413e 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_aranges 00003788 00000000 00000000 0008f730 2**3
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_rnglists 00002c6b 00000000 00000000 00092eb8 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_macro 0004f045 00000000 00000000 00095b23 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_line 000570e7 00000000 00000000 000e4b68 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_str 0018e57b 00000000 00000000 0013bc4f 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .comment 00000043 00000000 00000000 002ca1ca 2**0
  41. CONTENTS, READONLY
  42. 19 .debug_frame 0000f94c 00000000 00000000 002ca210 2**2
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. 20 .debug_line_str 00000064 00000000 00000000 002d9b5c 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: 24000224 .word 0x24000224
  60. 80002bc: 00000000 .word 0x00000000
  61. 80002c0: 0802c448 .word 0x0802c448
  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: 24000228 .word 0x24000228
  72. 80002dc: 0802c448 .word 0x0802c448
  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: 08030d40 .word 0x08030d40
  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: f029 f8bf bl 8029d00 <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: f028 f94c bl 8028fd4 <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 fca3 bl 8029d10 <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: 0802c498 .word 0x0802c498
  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: 24000240 .word 0x24000240
  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 fbae bl 8029d10 <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 fb8d bl 8029d10 <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 fb6c bl 8029d10 <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: 0802c46c .word 0x0802c46c
  2780. 8001740: 0802c49c .word 0x0802c49c
  2781. 8001744: 0802c4a4 .word 0x0802c4a4
  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 fbb3 bl 8002428 <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: 4b4c ldr r3, [pc, #304] @ (8001df4 <main+0x13c>)
  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: 4b46 ldr r3, [pc, #280] @ (8001df4 <main+0x13c>)
  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: 4b41 ldr r3, [pc, #260] @ (8001df4 <main+0x13c>)
  3818. 8001cf0: 695b ldr r3, [r3, #20]
  3819. 8001cf2: 4a40 ldr r2, [pc, #256] @ (8001df4 <main+0x13c>)
  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: 4b3a ldr r3, [pc, #232] @ (8001df4 <main+0x13c>)
  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: 4b37 ldr r3, [pc, #220] @ (8001df4 <main+0x13c>)
  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: 4b34 ldr r3, [pc, #208] @ (8001df4 <main+0x13c>)
  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: 4929 ldr r1, [pc, #164] @ (8001df4 <main+0x13c>)
  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: 4b21 ldr r3, [pc, #132] @ (8001df4 <main+0x13c>)
  3902. 8001d70: 695b ldr r3, [r3, #20]
  3903. 8001d72: 4a20 ldr r2, [pc, #128] @ (8001df4 <main+0x13c>)
  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: f003 f90c bl 8004fa4 <HAL_Init>
  3921. /* USER CODE BEGIN Init */
  3922. /* USER CODE END Init */
  3923. /* Configure the system clock */
  3924. SystemClock_Config();
  3925. 8001d8c: f000 f83e bl 8001e0c <SystemClock_Config>
  3926. /* USER CODE BEGIN SysInit */
  3927. /* USER CODE END SysInit */
  3928. /* Initialize all configured peripherals */
  3929. MX_GPIO_Init();
  3930. 8001d90: f000 faac bl 80022ec <MX_GPIO_Init>
  3931. MX_DMA_Init();
  3932. 8001d94: f000 fa82 bl 800229c <MX_DMA_Init>
  3933. MX_UART8_Init();
  3934. 8001d98: f000 f8f4 bl 8001f84 <MX_UART8_Init>
  3935. MX_CRC_Init();
  3936. 8001d9c: f000 f8b2 bl 8001f04 <MX_CRC_Init>
  3937. MX_RNG_Init();
  3938. 8001da0: f000 f8da bl 8001f58 <MX_RNG_Init>
  3939. MX_USART1_UART_Init();
  3940. 8001da4: f000 f93a bl 800201c <MX_USART1_UART_Init>
  3941. MX_USART2_UART_Init();
  3942. 8001da8: f000 f988 bl 80020bc <MX_USART2_UART_Init>
  3943. MX_USART3_UART_Init();
  3944. 8001dac: f000 f9d6 bl 800215c <MX_USART3_UART_Init>
  3945. MX_USART6_UART_Init();
  3946. 8001db0: f000 fa24 bl 80021fc <MX_USART6_UART_Init>
  3947. // HAL_DMA_RegisterCallback(&hdma_uart8_rx, HAL_DMA_XFER_CPLT_CB_ID, dmaCallback);
  3948. /* USER CODE END 2 */
  3949. /* Init scheduler */
  3950. osKernelInitialize();
  3951. 8001db4: f00e fcf2 bl 801079c <osKernelInitialize>
  3952. /* USER CODE BEGIN RTOS_MUTEX */
  3953. /* add mutexes, ... */
  3954. resMeasurementsMutex = osMutexNew (NULL);
  3955. 8001db8: 2000 movs r0, #0
  3956. 8001dba: f00e fe07 bl 80109cc <osMutexNew>
  3957. 8001dbe: 4603 mov r3, r0
  3958. 8001dc0: 4a0d ldr r2, [pc, #52] @ (8001df8 <main+0x140>)
  3959. 8001dc2: 6013 str r3, [r2, #0]
  3960. sensorsInfoMutex = osMutexNew (NULL);
  3961. 8001dc4: 2000 movs r0, #0
  3962. 8001dc6: f00e fe01 bl 80109cc <osMutexNew>
  3963. 8001dca: 4603 mov r3, r0
  3964. 8001dcc: 4a0b ldr r2, [pc, #44] @ (8001dfc <main+0x144>)
  3965. 8001dce: 6013 str r3, [r2, #0]
  3966. /* add queues, ... */
  3967. /* USER CODE END RTOS_QUEUES */
  3968. /* Create the thread(s) */
  3969. /* creation of defaultTask */
  3970. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  3971. 8001dd0: 4a0b ldr r2, [pc, #44] @ (8001e00 <main+0x148>)
  3972. 8001dd2: 2100 movs r1, #0
  3973. 8001dd4: 480b ldr r0, [pc, #44] @ (8001e04 <main+0x14c>)
  3974. 8001dd6: f00e fd40 bl 801085a <osThreadNew>
  3975. 8001dda: 4603 mov r3, r0
  3976. 8001ddc: 4a0a ldr r2, [pc, #40] @ (8001e08 <main+0x150>)
  3977. 8001dde: 6013 str r3, [r2, #0]
  3978. /* USER CODE BEGIN RTOS_THREADS */
  3979. /* add threads, ... */
  3980. mqtt_cli_init();
  3981. 8001de0: f001 f8b6 bl 8002f50 <mqtt_cli_init>
  3982. // Uart8TasksInit();
  3983. UartTasksInit();
  3984. 8001de4: f001 ffe2 bl 8003dac <UartTasksInit>
  3985. #ifdef USER_MOCKS
  3986. MockMeasurmetsTaskInit();
  3987. #else
  3988. MeasurmentsReqSchedulerTaskInit();
  3989. 8001de8: f002 ff2a bl 8004c40 <MeasurmentsReqSchedulerTaskInit>
  3990. /* USER CODE BEGIN RTOS_EVENTS */
  3991. /* add events, ... */
  3992. /* USER CODE END RTOS_EVENTS */
  3993. /* Start scheduler */
  3994. osKernelStart();
  3995. 8001dec: f00e fcfa bl 80107e4 <osKernelStart>
  3996. /* We should never get here as control is now taken by the scheduler */
  3997. /* Infinite loop */
  3998. /* USER CODE BEGIN WHILE */
  3999. while (1)
  4000. 8001df0: bf00 nop
  4001. 8001df2: e7fd b.n 8001df0 <main+0x138>
  4002. 8001df4: e000ed00 .word 0xe000ed00
  4003. 8001df8: 24002168 .word 0x24002168
  4004. 8001dfc: 2400216c .word 0x2400216c
  4005. 8001e00: 080309d8 .word 0x080309d8
  4006. 8001e04: 08002411 .word 0x08002411
  4007. 8001e08: 24000654 .word 0x24000654
  4008. 08001e0c <SystemClock_Config>:
  4009. /**
  4010. * @brief System Clock Configuration
  4011. * @retval None
  4012. */
  4013. void SystemClock_Config(void)
  4014. {
  4015. 8001e0c: b580 push {r7, lr}
  4016. 8001e0e: b09c sub sp, #112 @ 0x70
  4017. 8001e10: af00 add r7, sp, #0
  4018. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  4019. 8001e12: f107 0324 add.w r3, r7, #36 @ 0x24
  4020. 8001e16: 224c movs r2, #76 @ 0x4c
  4021. 8001e18: 2100 movs r1, #0
  4022. 8001e1a: 4618 mov r0, r3
  4023. 8001e1c: f027 ff70 bl 8029d00 <memset>
  4024. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  4025. 8001e20: 1d3b adds r3, r7, #4
  4026. 8001e22: 2220 movs r2, #32
  4027. 8001e24: 2100 movs r1, #0
  4028. 8001e26: 4618 mov r0, r3
  4029. 8001e28: f027 ff6a bl 8029d00 <memset>
  4030. /** Supply configuration update enable
  4031. */
  4032. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  4033. 8001e2c: 2002 movs r0, #2
  4034. 8001e2e: f007 fe03 bl 8009a38 <HAL_PWREx_ConfigSupply>
  4035. /** Configure the main internal regulator output voltage
  4036. */
  4037. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  4038. 8001e32: 2300 movs r3, #0
  4039. 8001e34: 603b str r3, [r7, #0]
  4040. 8001e36: 4b31 ldr r3, [pc, #196] @ (8001efc <SystemClock_Config+0xf0>)
  4041. 8001e38: 6adb ldr r3, [r3, #44] @ 0x2c
  4042. 8001e3a: 4a30 ldr r2, [pc, #192] @ (8001efc <SystemClock_Config+0xf0>)
  4043. 8001e3c: f023 0301 bic.w r3, r3, #1
  4044. 8001e40: 62d3 str r3, [r2, #44] @ 0x2c
  4045. 8001e42: 4b2e ldr r3, [pc, #184] @ (8001efc <SystemClock_Config+0xf0>)
  4046. 8001e44: 6adb ldr r3, [r3, #44] @ 0x2c
  4047. 8001e46: f003 0301 and.w r3, r3, #1
  4048. 8001e4a: 603b str r3, [r7, #0]
  4049. 8001e4c: 4b2c ldr r3, [pc, #176] @ (8001f00 <SystemClock_Config+0xf4>)
  4050. 8001e4e: 699b ldr r3, [r3, #24]
  4051. 8001e50: 4a2b ldr r2, [pc, #172] @ (8001f00 <SystemClock_Config+0xf4>)
  4052. 8001e52: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  4053. 8001e56: 6193 str r3, [r2, #24]
  4054. 8001e58: 4b29 ldr r3, [pc, #164] @ (8001f00 <SystemClock_Config+0xf4>)
  4055. 8001e5a: 699b ldr r3, [r3, #24]
  4056. 8001e5c: f403 4340 and.w r3, r3, #49152 @ 0xc000
  4057. 8001e60: 603b str r3, [r7, #0]
  4058. 8001e62: 683b ldr r3, [r7, #0]
  4059. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  4060. 8001e64: bf00 nop
  4061. 8001e66: 4b26 ldr r3, [pc, #152] @ (8001f00 <SystemClock_Config+0xf4>)
  4062. 8001e68: 699b ldr r3, [r3, #24]
  4063. 8001e6a: f403 5300 and.w r3, r3, #8192 @ 0x2000
  4064. 8001e6e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  4065. 8001e72: d1f8 bne.n 8001e66 <SystemClock_Config+0x5a>
  4066. /** Initializes the RCC Oscillators according to the specified parameters
  4067. * in the RCC_OscInitTypeDef structure.
  4068. */
  4069. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE;
  4070. 8001e74: 2321 movs r3, #33 @ 0x21
  4071. 8001e76: 627b str r3, [r7, #36] @ 0x24
  4072. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4073. 8001e78: f44f 3380 mov.w r3, #65536 @ 0x10000
  4074. 8001e7c: 62bb str r3, [r7, #40] @ 0x28
  4075. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  4076. 8001e7e: 2301 movs r3, #1
  4077. 8001e80: 63fb str r3, [r7, #60] @ 0x3c
  4078. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  4079. 8001e82: 2302 movs r3, #2
  4080. 8001e84: 64bb str r3, [r7, #72] @ 0x48
  4081. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  4082. 8001e86: 2302 movs r3, #2
  4083. 8001e88: 64fb str r3, [r7, #76] @ 0x4c
  4084. RCC_OscInitStruct.PLL.PLLM = 5;
  4085. 8001e8a: 2305 movs r3, #5
  4086. 8001e8c: 653b str r3, [r7, #80] @ 0x50
  4087. RCC_OscInitStruct.PLL.PLLN = 160;
  4088. 8001e8e: 23a0 movs r3, #160 @ 0xa0
  4089. 8001e90: 657b str r3, [r7, #84] @ 0x54
  4090. RCC_OscInitStruct.PLL.PLLP = 2;
  4091. 8001e92: 2302 movs r3, #2
  4092. 8001e94: 65bb str r3, [r7, #88] @ 0x58
  4093. RCC_OscInitStruct.PLL.PLLQ = 2;
  4094. 8001e96: 2302 movs r3, #2
  4095. 8001e98: 65fb str r3, [r7, #92] @ 0x5c
  4096. RCC_OscInitStruct.PLL.PLLR = 2;
  4097. 8001e9a: 2302 movs r3, #2
  4098. 8001e9c: 663b str r3, [r7, #96] @ 0x60
  4099. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  4100. 8001e9e: 2308 movs r3, #8
  4101. 8001ea0: 667b str r3, [r7, #100] @ 0x64
  4102. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  4103. 8001ea2: 2300 movs r3, #0
  4104. 8001ea4: 66bb str r3, [r7, #104] @ 0x68
  4105. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  4106. 8001ea6: 2300 movs r3, #0
  4107. 8001ea8: 66fb str r3, [r7, #108] @ 0x6c
  4108. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  4109. 8001eaa: f107 0324 add.w r3, r7, #36 @ 0x24
  4110. 8001eae: 4618 mov r0, r3
  4111. 8001eb0: f007 fdfc bl 8009aac <HAL_RCC_OscConfig>
  4112. 8001eb4: 4603 mov r3, r0
  4113. 8001eb6: 2b00 cmp r3, #0
  4114. 8001eb8: d001 beq.n 8001ebe <SystemClock_Config+0xb2>
  4115. {
  4116. Error_Handler();
  4117. 8001eba: f000 fb25 bl 8002508 <Error_Handler>
  4118. }
  4119. /** Initializes the CPU, AHB and APB buses clocks
  4120. */
  4121. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  4122. 8001ebe: 233f movs r3, #63 @ 0x3f
  4123. 8001ec0: 607b str r3, [r7, #4]
  4124. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  4125. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  4126. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  4127. 8001ec2: 2303 movs r3, #3
  4128. 8001ec4: 60bb str r3, [r7, #8]
  4129. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  4130. 8001ec6: 2300 movs r3, #0
  4131. 8001ec8: 60fb str r3, [r7, #12]
  4132. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  4133. 8001eca: 2308 movs r3, #8
  4134. 8001ecc: 613b str r3, [r7, #16]
  4135. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  4136. 8001ece: 2340 movs r3, #64 @ 0x40
  4137. 8001ed0: 617b str r3, [r7, #20]
  4138. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  4139. 8001ed2: 2340 movs r3, #64 @ 0x40
  4140. 8001ed4: 61bb str r3, [r7, #24]
  4141. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  4142. 8001ed6: f44f 6380 mov.w r3, #1024 @ 0x400
  4143. 8001eda: 61fb str r3, [r7, #28]
  4144. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  4145. 8001edc: 2340 movs r3, #64 @ 0x40
  4146. 8001ede: 623b str r3, [r7, #32]
  4147. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  4148. 8001ee0: 1d3b adds r3, r7, #4
  4149. 8001ee2: 2102 movs r1, #2
  4150. 8001ee4: 4618 mov r0, r3
  4151. 8001ee6: f008 fa3b bl 800a360 <HAL_RCC_ClockConfig>
  4152. 8001eea: 4603 mov r3, r0
  4153. 8001eec: 2b00 cmp r3, #0
  4154. 8001eee: d001 beq.n 8001ef4 <SystemClock_Config+0xe8>
  4155. {
  4156. Error_Handler();
  4157. 8001ef0: f000 fb0a bl 8002508 <Error_Handler>
  4158. }
  4159. }
  4160. 8001ef4: bf00 nop
  4161. 8001ef6: 3770 adds r7, #112 @ 0x70
  4162. 8001ef8: 46bd mov sp, r7
  4163. 8001efa: bd80 pop {r7, pc}
  4164. 8001efc: 58000400 .word 0x58000400
  4165. 8001f00: 58024800 .word 0x58024800
  4166. 08001f04 <MX_CRC_Init>:
  4167. * @brief CRC Initialization Function
  4168. * @param None
  4169. * @retval None
  4170. */
  4171. static void MX_CRC_Init(void)
  4172. {
  4173. 8001f04: b580 push {r7, lr}
  4174. 8001f06: af00 add r7, sp, #0
  4175. /* USER CODE END CRC_Init 0 */
  4176. /* USER CODE BEGIN CRC_Init 1 */
  4177. /* USER CODE END CRC_Init 1 */
  4178. hcrc.Instance = CRC;
  4179. 8001f08: 4b11 ldr r3, [pc, #68] @ (8001f50 <MX_CRC_Init+0x4c>)
  4180. 8001f0a: 4a12 ldr r2, [pc, #72] @ (8001f54 <MX_CRC_Init+0x50>)
  4181. 8001f0c: 601a str r2, [r3, #0]
  4182. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  4183. 8001f0e: 4b10 ldr r3, [pc, #64] @ (8001f50 <MX_CRC_Init+0x4c>)
  4184. 8001f10: 2201 movs r2, #1
  4185. 8001f12: 711a strb r2, [r3, #4]
  4186. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  4187. 8001f14: 4b0e ldr r3, [pc, #56] @ (8001f50 <MX_CRC_Init+0x4c>)
  4188. 8001f16: 2200 movs r2, #0
  4189. 8001f18: 715a strb r2, [r3, #5]
  4190. hcrc.Init.GeneratingPolynomial = 4129;
  4191. 8001f1a: 4b0d ldr r3, [pc, #52] @ (8001f50 <MX_CRC_Init+0x4c>)
  4192. 8001f1c: f241 0221 movw r2, #4129 @ 0x1021
  4193. 8001f20: 609a str r2, [r3, #8]
  4194. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  4195. 8001f22: 4b0b ldr r3, [pc, #44] @ (8001f50 <MX_CRC_Init+0x4c>)
  4196. 8001f24: 2208 movs r2, #8
  4197. 8001f26: 60da str r2, [r3, #12]
  4198. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  4199. 8001f28: 4b09 ldr r3, [pc, #36] @ (8001f50 <MX_CRC_Init+0x4c>)
  4200. 8001f2a: 2200 movs r2, #0
  4201. 8001f2c: 615a str r2, [r3, #20]
  4202. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  4203. 8001f2e: 4b08 ldr r3, [pc, #32] @ (8001f50 <MX_CRC_Init+0x4c>)
  4204. 8001f30: 2200 movs r2, #0
  4205. 8001f32: 619a str r2, [r3, #24]
  4206. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  4207. 8001f34: 4b06 ldr r3, [pc, #24] @ (8001f50 <MX_CRC_Init+0x4c>)
  4208. 8001f36: 2201 movs r2, #1
  4209. 8001f38: 621a str r2, [r3, #32]
  4210. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  4211. 8001f3a: 4805 ldr r0, [pc, #20] @ (8001f50 <MX_CRC_Init+0x4c>)
  4212. 8001f3c: f003 fa2a bl 8005394 <HAL_CRC_Init>
  4213. 8001f40: 4603 mov r3, r0
  4214. 8001f42: 2b00 cmp r3, #0
  4215. 8001f44: d001 beq.n 8001f4a <MX_CRC_Init+0x46>
  4216. {
  4217. Error_Handler();
  4218. 8001f46: f000 fadf bl 8002508 <Error_Handler>
  4219. }
  4220. /* USER CODE BEGIN CRC_Init 2 */
  4221. /* USER CODE END CRC_Init 2 */
  4222. }
  4223. 8001f4a: bf00 nop
  4224. 8001f4c: bd80 pop {r7, pc}
  4225. 8001f4e: bf00 nop
  4226. 8001f50: 24000248 .word 0x24000248
  4227. 8001f54: 58024c00 .word 0x58024c00
  4228. 08001f58 <MX_RNG_Init>:
  4229. * @brief RNG Initialization Function
  4230. * @param None
  4231. * @retval None
  4232. */
  4233. static void MX_RNG_Init(void)
  4234. {
  4235. 8001f58: b580 push {r7, lr}
  4236. 8001f5a: af00 add r7, sp, #0
  4237. /* USER CODE END RNG_Init 0 */
  4238. /* USER CODE BEGIN RNG_Init 1 */
  4239. /* USER CODE END RNG_Init 1 */
  4240. hrng.Instance = RNG;
  4241. 8001f5c: 4b07 ldr r3, [pc, #28] @ (8001f7c <MX_RNG_Init+0x24>)
  4242. 8001f5e: 4a08 ldr r2, [pc, #32] @ (8001f80 <MX_RNG_Init+0x28>)
  4243. 8001f60: 601a str r2, [r3, #0]
  4244. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  4245. 8001f62: 4b06 ldr r3, [pc, #24] @ (8001f7c <MX_RNG_Init+0x24>)
  4246. 8001f64: 2200 movs r2, #0
  4247. 8001f66: 605a str r2, [r3, #4]
  4248. if (HAL_RNG_Init(&hrng) != HAL_OK)
  4249. 8001f68: 4804 ldr r0, [pc, #16] @ (8001f7c <MX_RNG_Init+0x24>)
  4250. 8001f6a: f00a fbd7 bl 800c71c <HAL_RNG_Init>
  4251. 8001f6e: 4603 mov r3, r0
  4252. 8001f70: 2b00 cmp r3, #0
  4253. 8001f72: d001 beq.n 8001f78 <MX_RNG_Init+0x20>
  4254. {
  4255. Error_Handler();
  4256. 8001f74: f000 fac8 bl 8002508 <Error_Handler>
  4257. }
  4258. /* USER CODE BEGIN RNG_Init 2 */
  4259. /* USER CODE END RNG_Init 2 */
  4260. }
  4261. 8001f78: bf00 nop
  4262. 8001f7a: bd80 pop {r7, pc}
  4263. 8001f7c: 2400026c .word 0x2400026c
  4264. 8001f80: 48021800 .word 0x48021800
  4265. 08001f84 <MX_UART8_Init>:
  4266. * @brief UART8 Initialization Function
  4267. * @param None
  4268. * @retval None
  4269. */
  4270. static void MX_UART8_Init(void)
  4271. {
  4272. 8001f84: b580 push {r7, lr}
  4273. 8001f86: af00 add r7, sp, #0
  4274. /* USER CODE END UART8_Init 0 */
  4275. /* USER CODE BEGIN UART8_Init 1 */
  4276. /* USER CODE END UART8_Init 1 */
  4277. huart8.Instance = UART8;
  4278. 8001f88: 4b22 ldr r3, [pc, #136] @ (8002014 <MX_UART8_Init+0x90>)
  4279. 8001f8a: 4a23 ldr r2, [pc, #140] @ (8002018 <MX_UART8_Init+0x94>)
  4280. 8001f8c: 601a str r2, [r3, #0]
  4281. huart8.Init.BaudRate = 115200;
  4282. 8001f8e: 4b21 ldr r3, [pc, #132] @ (8002014 <MX_UART8_Init+0x90>)
  4283. 8001f90: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4284. 8001f94: 605a str r2, [r3, #4]
  4285. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  4286. 8001f96: 4b1f ldr r3, [pc, #124] @ (8002014 <MX_UART8_Init+0x90>)
  4287. 8001f98: 2200 movs r2, #0
  4288. 8001f9a: 609a str r2, [r3, #8]
  4289. huart8.Init.StopBits = UART_STOPBITS_1;
  4290. 8001f9c: 4b1d ldr r3, [pc, #116] @ (8002014 <MX_UART8_Init+0x90>)
  4291. 8001f9e: 2200 movs r2, #0
  4292. 8001fa0: 60da str r2, [r3, #12]
  4293. huart8.Init.Parity = UART_PARITY_NONE;
  4294. 8001fa2: 4b1c ldr r3, [pc, #112] @ (8002014 <MX_UART8_Init+0x90>)
  4295. 8001fa4: 2200 movs r2, #0
  4296. 8001fa6: 611a str r2, [r3, #16]
  4297. huart8.Init.Mode = UART_MODE_TX_RX;
  4298. 8001fa8: 4b1a ldr r3, [pc, #104] @ (8002014 <MX_UART8_Init+0x90>)
  4299. 8001faa: 220c movs r2, #12
  4300. 8001fac: 615a str r2, [r3, #20]
  4301. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4302. 8001fae: 4b19 ldr r3, [pc, #100] @ (8002014 <MX_UART8_Init+0x90>)
  4303. 8001fb0: 2200 movs r2, #0
  4304. 8001fb2: 619a str r2, [r3, #24]
  4305. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  4306. 8001fb4: 4b17 ldr r3, [pc, #92] @ (8002014 <MX_UART8_Init+0x90>)
  4307. 8001fb6: 2200 movs r2, #0
  4308. 8001fb8: 61da str r2, [r3, #28]
  4309. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4310. 8001fba: 4b16 ldr r3, [pc, #88] @ (8002014 <MX_UART8_Init+0x90>)
  4311. 8001fbc: 2200 movs r2, #0
  4312. 8001fbe: 621a str r2, [r3, #32]
  4313. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4314. 8001fc0: 4b14 ldr r3, [pc, #80] @ (8002014 <MX_UART8_Init+0x90>)
  4315. 8001fc2: 2200 movs r2, #0
  4316. 8001fc4: 625a str r2, [r3, #36] @ 0x24
  4317. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  4318. 8001fc6: 4b13 ldr r3, [pc, #76] @ (8002014 <MX_UART8_Init+0x90>)
  4319. 8001fc8: 2200 movs r2, #0
  4320. 8001fca: 629a str r2, [r3, #40] @ 0x28
  4321. if (HAL_UART_Init(&huart8) != HAL_OK)
  4322. 8001fcc: 4811 ldr r0, [pc, #68] @ (8002014 <MX_UART8_Init+0x90>)
  4323. 8001fce: f00a ff2b bl 800ce28 <HAL_UART_Init>
  4324. 8001fd2: 4603 mov r3, r0
  4325. 8001fd4: 2b00 cmp r3, #0
  4326. 8001fd6: d001 beq.n 8001fdc <MX_UART8_Init+0x58>
  4327. {
  4328. Error_Handler();
  4329. 8001fd8: f000 fa96 bl 8002508 <Error_Handler>
  4330. }
  4331. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4332. 8001fdc: 2100 movs r1, #0
  4333. 8001fde: 480d ldr r0, [pc, #52] @ (8002014 <MX_UART8_Init+0x90>)
  4334. 8001fe0: f00d fbcb bl 800f77a <HAL_UARTEx_SetTxFifoThreshold>
  4335. 8001fe4: 4603 mov r3, r0
  4336. 8001fe6: 2b00 cmp r3, #0
  4337. 8001fe8: d001 beq.n 8001fee <MX_UART8_Init+0x6a>
  4338. {
  4339. Error_Handler();
  4340. 8001fea: f000 fa8d bl 8002508 <Error_Handler>
  4341. }
  4342. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4343. 8001fee: 2100 movs r1, #0
  4344. 8001ff0: 4808 ldr r0, [pc, #32] @ (8002014 <MX_UART8_Init+0x90>)
  4345. 8001ff2: f00d fc00 bl 800f7f6 <HAL_UARTEx_SetRxFifoThreshold>
  4346. 8001ff6: 4603 mov r3, r0
  4347. 8001ff8: 2b00 cmp r3, #0
  4348. 8001ffa: d001 beq.n 8002000 <MX_UART8_Init+0x7c>
  4349. {
  4350. Error_Handler();
  4351. 8001ffc: f000 fa84 bl 8002508 <Error_Handler>
  4352. }
  4353. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  4354. 8002000: 4804 ldr r0, [pc, #16] @ (8002014 <MX_UART8_Init+0x90>)
  4355. 8002002: f00d fb81 bl 800f708 <HAL_UARTEx_DisableFifoMode>
  4356. 8002006: 4603 mov r3, r0
  4357. 8002008: 2b00 cmp r3, #0
  4358. 800200a: d001 beq.n 8002010 <MX_UART8_Init+0x8c>
  4359. {
  4360. Error_Handler();
  4361. 800200c: f000 fa7c bl 8002508 <Error_Handler>
  4362. }
  4363. /* USER CODE BEGIN UART8_Init 2 */
  4364. /* USER CODE END UART8_Init 2 */
  4365. }
  4366. 8002010: bf00 nop
  4367. 8002012: bd80 pop {r7, pc}
  4368. 8002014: 24000280 .word 0x24000280
  4369. 8002018: 40007c00 .word 0x40007c00
  4370. 0800201c <MX_USART1_UART_Init>:
  4371. * @brief USART1 Initialization Function
  4372. * @param None
  4373. * @retval None
  4374. */
  4375. static void MX_USART1_UART_Init(void)
  4376. {
  4377. 800201c: b580 push {r7, lr}
  4378. 800201e: af00 add r7, sp, #0
  4379. /* USER CODE END USART1_Init 0 */
  4380. /* USER CODE BEGIN USART1_Init 1 */
  4381. /* USER CODE END USART1_Init 1 */
  4382. huart1.Instance = USART1;
  4383. 8002020: 4b24 ldr r3, [pc, #144] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4384. 8002022: 4a25 ldr r2, [pc, #148] @ (80020b8 <MX_USART1_UART_Init+0x9c>)
  4385. 8002024: 601a str r2, [r3, #0]
  4386. huart1.Init.BaudRate = 115200;
  4387. 8002026: 4b23 ldr r3, [pc, #140] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4388. 8002028: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4389. 800202c: 605a str r2, [r3, #4]
  4390. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  4391. 800202e: 4b21 ldr r3, [pc, #132] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4392. 8002030: 2200 movs r2, #0
  4393. 8002032: 609a str r2, [r3, #8]
  4394. huart1.Init.StopBits = UART_STOPBITS_1;
  4395. 8002034: 4b1f ldr r3, [pc, #124] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4396. 8002036: 2200 movs r2, #0
  4397. 8002038: 60da str r2, [r3, #12]
  4398. huart1.Init.Parity = UART_PARITY_NONE;
  4399. 800203a: 4b1e ldr r3, [pc, #120] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4400. 800203c: 2200 movs r2, #0
  4401. 800203e: 611a str r2, [r3, #16]
  4402. huart1.Init.Mode = UART_MODE_TX_RX;
  4403. 8002040: 4b1c ldr r3, [pc, #112] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4404. 8002042: 220c movs r2, #12
  4405. 8002044: 615a str r2, [r3, #20]
  4406. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4407. 8002046: 4b1b ldr r3, [pc, #108] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4408. 8002048: 2200 movs r2, #0
  4409. 800204a: 619a str r2, [r3, #24]
  4410. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  4411. 800204c: 4b19 ldr r3, [pc, #100] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4412. 800204e: 2200 movs r2, #0
  4413. 8002050: 61da str r2, [r3, #28]
  4414. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4415. 8002052: 4b18 ldr r3, [pc, #96] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4416. 8002054: 2200 movs r2, #0
  4417. 8002056: 621a str r2, [r3, #32]
  4418. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4419. 8002058: 4b16 ldr r3, [pc, #88] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4420. 800205a: 2200 movs r2, #0
  4421. 800205c: 625a str r2, [r3, #36] @ 0x24
  4422. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_RXINVERT_INIT;
  4423. 800205e: 4b15 ldr r3, [pc, #84] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4424. 8002060: 2202 movs r2, #2
  4425. 8002062: 629a str r2, [r3, #40] @ 0x28
  4426. huart1.AdvancedInit.RxPinLevelInvert = UART_ADVFEATURE_RXINV_ENABLE;
  4427. 8002064: 4b13 ldr r3, [pc, #76] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4428. 8002066: f44f 3280 mov.w r2, #65536 @ 0x10000
  4429. 800206a: 631a str r2, [r3, #48] @ 0x30
  4430. if (HAL_UART_Init(&huart1) != HAL_OK)
  4431. 800206c: 4811 ldr r0, [pc, #68] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4432. 800206e: f00a fedb bl 800ce28 <HAL_UART_Init>
  4433. 8002072: 4603 mov r3, r0
  4434. 8002074: 2b00 cmp r3, #0
  4435. 8002076: d001 beq.n 800207c <MX_USART1_UART_Init+0x60>
  4436. {
  4437. Error_Handler();
  4438. 8002078: f000 fa46 bl 8002508 <Error_Handler>
  4439. }
  4440. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4441. 800207c: 2100 movs r1, #0
  4442. 800207e: 480d ldr r0, [pc, #52] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4443. 8002080: f00d fb7b bl 800f77a <HAL_UARTEx_SetTxFifoThreshold>
  4444. 8002084: 4603 mov r3, r0
  4445. 8002086: 2b00 cmp r3, #0
  4446. 8002088: d001 beq.n 800208e <MX_USART1_UART_Init+0x72>
  4447. {
  4448. Error_Handler();
  4449. 800208a: f000 fa3d bl 8002508 <Error_Handler>
  4450. }
  4451. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4452. 800208e: 2100 movs r1, #0
  4453. 8002090: 4808 ldr r0, [pc, #32] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4454. 8002092: f00d fbb0 bl 800f7f6 <HAL_UARTEx_SetRxFifoThreshold>
  4455. 8002096: 4603 mov r3, r0
  4456. 8002098: 2b00 cmp r3, #0
  4457. 800209a: d001 beq.n 80020a0 <MX_USART1_UART_Init+0x84>
  4458. {
  4459. Error_Handler();
  4460. 800209c: f000 fa34 bl 8002508 <Error_Handler>
  4461. }
  4462. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  4463. 80020a0: 4804 ldr r0, [pc, #16] @ (80020b4 <MX_USART1_UART_Init+0x98>)
  4464. 80020a2: f00d fb31 bl 800f708 <HAL_UARTEx_DisableFifoMode>
  4465. 80020a6: 4603 mov r3, r0
  4466. 80020a8: 2b00 cmp r3, #0
  4467. 80020aa: d001 beq.n 80020b0 <MX_USART1_UART_Init+0x94>
  4468. {
  4469. Error_Handler();
  4470. 80020ac: f000 fa2c bl 8002508 <Error_Handler>
  4471. }
  4472. /* USER CODE BEGIN USART1_Init 2 */
  4473. /* USER CODE END USART1_Init 2 */
  4474. }
  4475. 80020b0: bf00 nop
  4476. 80020b2: bd80 pop {r7, pc}
  4477. 80020b4: 24000314 .word 0x24000314
  4478. 80020b8: 40011000 .word 0x40011000
  4479. 080020bc <MX_USART2_UART_Init>:
  4480. * @brief USART2 Initialization Function
  4481. * @param None
  4482. * @retval None
  4483. */
  4484. static void MX_USART2_UART_Init(void)
  4485. {
  4486. 80020bc: b580 push {r7, lr}
  4487. 80020be: af00 add r7, sp, #0
  4488. /* USER CODE END USART2_Init 0 */
  4489. /* USER CODE BEGIN USART2_Init 1 */
  4490. /* USER CODE END USART2_Init 1 */
  4491. huart2.Instance = USART2;
  4492. 80020c0: 4b24 ldr r3, [pc, #144] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4493. 80020c2: 4a25 ldr r2, [pc, #148] @ (8002158 <MX_USART2_UART_Init+0x9c>)
  4494. 80020c4: 601a str r2, [r3, #0]
  4495. huart2.Init.BaudRate = 115200;
  4496. 80020c6: 4b23 ldr r3, [pc, #140] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4497. 80020c8: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4498. 80020cc: 605a str r2, [r3, #4]
  4499. huart2.Init.WordLength = UART_WORDLENGTH_8B;
  4500. 80020ce: 4b21 ldr r3, [pc, #132] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4501. 80020d0: 2200 movs r2, #0
  4502. 80020d2: 609a str r2, [r3, #8]
  4503. huart2.Init.StopBits = UART_STOPBITS_1;
  4504. 80020d4: 4b1f ldr r3, [pc, #124] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4505. 80020d6: 2200 movs r2, #0
  4506. 80020d8: 60da str r2, [r3, #12]
  4507. huart2.Init.Parity = UART_PARITY_NONE;
  4508. 80020da: 4b1e ldr r3, [pc, #120] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4509. 80020dc: 2200 movs r2, #0
  4510. 80020de: 611a str r2, [r3, #16]
  4511. huart2.Init.Mode = UART_MODE_TX_RX;
  4512. 80020e0: 4b1c ldr r3, [pc, #112] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4513. 80020e2: 220c movs r2, #12
  4514. 80020e4: 615a str r2, [r3, #20]
  4515. huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4516. 80020e6: 4b1b ldr r3, [pc, #108] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4517. 80020e8: 2200 movs r2, #0
  4518. 80020ea: 619a str r2, [r3, #24]
  4519. huart2.Init.OverSampling = UART_OVERSAMPLING_16;
  4520. 80020ec: 4b19 ldr r3, [pc, #100] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4521. 80020ee: 2200 movs r2, #0
  4522. 80020f0: 61da str r2, [r3, #28]
  4523. huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4524. 80020f2: 4b18 ldr r3, [pc, #96] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4525. 80020f4: 2200 movs r2, #0
  4526. 80020f6: 621a str r2, [r3, #32]
  4527. huart2.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4528. 80020f8: 4b16 ldr r3, [pc, #88] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4529. 80020fa: 2200 movs r2, #0
  4530. 80020fc: 625a str r2, [r3, #36] @ 0x24
  4531. huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_RXINVERT_INIT;
  4532. 80020fe: 4b15 ldr r3, [pc, #84] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4533. 8002100: 2202 movs r2, #2
  4534. 8002102: 629a str r2, [r3, #40] @ 0x28
  4535. huart2.AdvancedInit.RxPinLevelInvert = UART_ADVFEATURE_RXINV_ENABLE;
  4536. 8002104: 4b13 ldr r3, [pc, #76] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4537. 8002106: f44f 3280 mov.w r2, #65536 @ 0x10000
  4538. 800210a: 631a str r2, [r3, #48] @ 0x30
  4539. if (HAL_UART_Init(&huart2) != HAL_OK)
  4540. 800210c: 4811 ldr r0, [pc, #68] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4541. 800210e: f00a fe8b bl 800ce28 <HAL_UART_Init>
  4542. 8002112: 4603 mov r3, r0
  4543. 8002114: 2b00 cmp r3, #0
  4544. 8002116: d001 beq.n 800211c <MX_USART2_UART_Init+0x60>
  4545. {
  4546. Error_Handler();
  4547. 8002118: f000 f9f6 bl 8002508 <Error_Handler>
  4548. }
  4549. if (HAL_UARTEx_SetTxFifoThreshold(&huart2, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4550. 800211c: 2100 movs r1, #0
  4551. 800211e: 480d ldr r0, [pc, #52] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4552. 8002120: f00d fb2b bl 800f77a <HAL_UARTEx_SetTxFifoThreshold>
  4553. 8002124: 4603 mov r3, r0
  4554. 8002126: 2b00 cmp r3, #0
  4555. 8002128: d001 beq.n 800212e <MX_USART2_UART_Init+0x72>
  4556. {
  4557. Error_Handler();
  4558. 800212a: f000 f9ed bl 8002508 <Error_Handler>
  4559. }
  4560. if (HAL_UARTEx_SetRxFifoThreshold(&huart2, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4561. 800212e: 2100 movs r1, #0
  4562. 8002130: 4808 ldr r0, [pc, #32] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4563. 8002132: f00d fb60 bl 800f7f6 <HAL_UARTEx_SetRxFifoThreshold>
  4564. 8002136: 4603 mov r3, r0
  4565. 8002138: 2b00 cmp r3, #0
  4566. 800213a: d001 beq.n 8002140 <MX_USART2_UART_Init+0x84>
  4567. {
  4568. Error_Handler();
  4569. 800213c: f000 f9e4 bl 8002508 <Error_Handler>
  4570. }
  4571. if (HAL_UARTEx_DisableFifoMode(&huart2) != HAL_OK)
  4572. 8002140: 4804 ldr r0, [pc, #16] @ (8002154 <MX_USART2_UART_Init+0x98>)
  4573. 8002142: f00d fae1 bl 800f708 <HAL_UARTEx_DisableFifoMode>
  4574. 8002146: 4603 mov r3, r0
  4575. 8002148: 2b00 cmp r3, #0
  4576. 800214a: d001 beq.n 8002150 <MX_USART2_UART_Init+0x94>
  4577. {
  4578. Error_Handler();
  4579. 800214c: f000 f9dc bl 8002508 <Error_Handler>
  4580. }
  4581. /* USER CODE BEGIN USART2_Init 2 */
  4582. /* USER CODE END USART2_Init 2 */
  4583. }
  4584. 8002150: bf00 nop
  4585. 8002152: bd80 pop {r7, pc}
  4586. 8002154: 240003a8 .word 0x240003a8
  4587. 8002158: 40004400 .word 0x40004400
  4588. 0800215c <MX_USART3_UART_Init>:
  4589. * @brief USART3 Initialization Function
  4590. * @param None
  4591. * @retval None
  4592. */
  4593. static void MX_USART3_UART_Init(void)
  4594. {
  4595. 800215c: b580 push {r7, lr}
  4596. 800215e: af00 add r7, sp, #0
  4597. /* USER CODE END USART3_Init 0 */
  4598. /* USER CODE BEGIN USART3_Init 1 */
  4599. /* USER CODE END USART3_Init 1 */
  4600. huart3.Instance = USART3;
  4601. 8002160: 4b24 ldr r3, [pc, #144] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4602. 8002162: 4a25 ldr r2, [pc, #148] @ (80021f8 <MX_USART3_UART_Init+0x9c>)
  4603. 8002164: 601a str r2, [r3, #0]
  4604. huart3.Init.BaudRate = 115200;
  4605. 8002166: 4b23 ldr r3, [pc, #140] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4606. 8002168: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4607. 800216c: 605a str r2, [r3, #4]
  4608. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  4609. 800216e: 4b21 ldr r3, [pc, #132] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4610. 8002170: 2200 movs r2, #0
  4611. 8002172: 609a str r2, [r3, #8]
  4612. huart3.Init.StopBits = UART_STOPBITS_1;
  4613. 8002174: 4b1f ldr r3, [pc, #124] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4614. 8002176: 2200 movs r2, #0
  4615. 8002178: 60da str r2, [r3, #12]
  4616. huart3.Init.Parity = UART_PARITY_NONE;
  4617. 800217a: 4b1e ldr r3, [pc, #120] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4618. 800217c: 2200 movs r2, #0
  4619. 800217e: 611a str r2, [r3, #16]
  4620. huart3.Init.Mode = UART_MODE_TX_RX;
  4621. 8002180: 4b1c ldr r3, [pc, #112] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4622. 8002182: 220c movs r2, #12
  4623. 8002184: 615a str r2, [r3, #20]
  4624. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4625. 8002186: 4b1b ldr r3, [pc, #108] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4626. 8002188: 2200 movs r2, #0
  4627. 800218a: 619a str r2, [r3, #24]
  4628. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  4629. 800218c: 4b19 ldr r3, [pc, #100] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4630. 800218e: 2200 movs r2, #0
  4631. 8002190: 61da str r2, [r3, #28]
  4632. huart3.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4633. 8002192: 4b18 ldr r3, [pc, #96] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4634. 8002194: 2200 movs r2, #0
  4635. 8002196: 621a str r2, [r3, #32]
  4636. huart3.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4637. 8002198: 4b16 ldr r3, [pc, #88] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4638. 800219a: 2200 movs r2, #0
  4639. 800219c: 625a str r2, [r3, #36] @ 0x24
  4640. huart3.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_RXINVERT_INIT;
  4641. 800219e: 4b15 ldr r3, [pc, #84] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4642. 80021a0: 2202 movs r2, #2
  4643. 80021a2: 629a str r2, [r3, #40] @ 0x28
  4644. huart3.AdvancedInit.RxPinLevelInvert = UART_ADVFEATURE_RXINV_ENABLE;
  4645. 80021a4: 4b13 ldr r3, [pc, #76] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4646. 80021a6: f44f 3280 mov.w r2, #65536 @ 0x10000
  4647. 80021aa: 631a str r2, [r3, #48] @ 0x30
  4648. if (HAL_UART_Init(&huart3) != HAL_OK)
  4649. 80021ac: 4811 ldr r0, [pc, #68] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4650. 80021ae: f00a fe3b bl 800ce28 <HAL_UART_Init>
  4651. 80021b2: 4603 mov r3, r0
  4652. 80021b4: 2b00 cmp r3, #0
  4653. 80021b6: d001 beq.n 80021bc <MX_USART3_UART_Init+0x60>
  4654. {
  4655. Error_Handler();
  4656. 80021b8: f000 f9a6 bl 8002508 <Error_Handler>
  4657. }
  4658. if (HAL_UARTEx_SetTxFifoThreshold(&huart3, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4659. 80021bc: 2100 movs r1, #0
  4660. 80021be: 480d ldr r0, [pc, #52] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4661. 80021c0: f00d fadb bl 800f77a <HAL_UARTEx_SetTxFifoThreshold>
  4662. 80021c4: 4603 mov r3, r0
  4663. 80021c6: 2b00 cmp r3, #0
  4664. 80021c8: d001 beq.n 80021ce <MX_USART3_UART_Init+0x72>
  4665. {
  4666. Error_Handler();
  4667. 80021ca: f000 f99d bl 8002508 <Error_Handler>
  4668. }
  4669. if (HAL_UARTEx_SetRxFifoThreshold(&huart3, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4670. 80021ce: 2100 movs r1, #0
  4671. 80021d0: 4808 ldr r0, [pc, #32] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4672. 80021d2: f00d fb10 bl 800f7f6 <HAL_UARTEx_SetRxFifoThreshold>
  4673. 80021d6: 4603 mov r3, r0
  4674. 80021d8: 2b00 cmp r3, #0
  4675. 80021da: d001 beq.n 80021e0 <MX_USART3_UART_Init+0x84>
  4676. {
  4677. Error_Handler();
  4678. 80021dc: f000 f994 bl 8002508 <Error_Handler>
  4679. }
  4680. if (HAL_UARTEx_DisableFifoMode(&huart3) != HAL_OK)
  4681. 80021e0: 4804 ldr r0, [pc, #16] @ (80021f4 <MX_USART3_UART_Init+0x98>)
  4682. 80021e2: f00d fa91 bl 800f708 <HAL_UARTEx_DisableFifoMode>
  4683. 80021e6: 4603 mov r3, r0
  4684. 80021e8: 2b00 cmp r3, #0
  4685. 80021ea: d001 beq.n 80021f0 <MX_USART3_UART_Init+0x94>
  4686. {
  4687. Error_Handler();
  4688. 80021ec: f000 f98c bl 8002508 <Error_Handler>
  4689. }
  4690. /* USER CODE BEGIN USART3_Init 2 */
  4691. /* USER CODE END USART3_Init 2 */
  4692. }
  4693. 80021f0: bf00 nop
  4694. 80021f2: bd80 pop {r7, pc}
  4695. 80021f4: 2400043c .word 0x2400043c
  4696. 80021f8: 40004800 .word 0x40004800
  4697. 080021fc <MX_USART6_UART_Init>:
  4698. * @brief USART6 Initialization Function
  4699. * @param None
  4700. * @retval None
  4701. */
  4702. static void MX_USART6_UART_Init(void)
  4703. {
  4704. 80021fc: b580 push {r7, lr}
  4705. 80021fe: af00 add r7, sp, #0
  4706. /* USER CODE END USART6_Init 0 */
  4707. /* USER CODE BEGIN USART6_Init 1 */
  4708. /* USER CODE END USART6_Init 1 */
  4709. huart6.Instance = USART6;
  4710. 8002200: 4b24 ldr r3, [pc, #144] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4711. 8002202: 4a25 ldr r2, [pc, #148] @ (8002298 <MX_USART6_UART_Init+0x9c>)
  4712. 8002204: 601a str r2, [r3, #0]
  4713. huart6.Init.BaudRate = 115200;
  4714. 8002206: 4b23 ldr r3, [pc, #140] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4715. 8002208: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4716. 800220c: 605a str r2, [r3, #4]
  4717. huart6.Init.WordLength = UART_WORDLENGTH_8B;
  4718. 800220e: 4b21 ldr r3, [pc, #132] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4719. 8002210: 2200 movs r2, #0
  4720. 8002212: 609a str r2, [r3, #8]
  4721. huart6.Init.StopBits = UART_STOPBITS_1;
  4722. 8002214: 4b1f ldr r3, [pc, #124] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4723. 8002216: 2200 movs r2, #0
  4724. 8002218: 60da str r2, [r3, #12]
  4725. huart6.Init.Parity = UART_PARITY_NONE;
  4726. 800221a: 4b1e ldr r3, [pc, #120] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4727. 800221c: 2200 movs r2, #0
  4728. 800221e: 611a str r2, [r3, #16]
  4729. huart6.Init.Mode = UART_MODE_TX_RX;
  4730. 8002220: 4b1c ldr r3, [pc, #112] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4731. 8002222: 220c movs r2, #12
  4732. 8002224: 615a str r2, [r3, #20]
  4733. huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4734. 8002226: 4b1b ldr r3, [pc, #108] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4735. 8002228: 2200 movs r2, #0
  4736. 800222a: 619a str r2, [r3, #24]
  4737. huart6.Init.OverSampling = UART_OVERSAMPLING_16;
  4738. 800222c: 4b19 ldr r3, [pc, #100] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4739. 800222e: 2200 movs r2, #0
  4740. 8002230: 61da str r2, [r3, #28]
  4741. huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4742. 8002232: 4b18 ldr r3, [pc, #96] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4743. 8002234: 2200 movs r2, #0
  4744. 8002236: 621a str r2, [r3, #32]
  4745. huart6.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4746. 8002238: 4b16 ldr r3, [pc, #88] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4747. 800223a: 2200 movs r2, #0
  4748. 800223c: 625a str r2, [r3, #36] @ 0x24
  4749. huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_RXINVERT_INIT;
  4750. 800223e: 4b15 ldr r3, [pc, #84] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4751. 8002240: 2202 movs r2, #2
  4752. 8002242: 629a str r2, [r3, #40] @ 0x28
  4753. huart6.AdvancedInit.RxPinLevelInvert = UART_ADVFEATURE_RXINV_ENABLE;
  4754. 8002244: 4b13 ldr r3, [pc, #76] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4755. 8002246: f44f 3280 mov.w r2, #65536 @ 0x10000
  4756. 800224a: 631a str r2, [r3, #48] @ 0x30
  4757. if (HAL_UART_Init(&huart6) != HAL_OK)
  4758. 800224c: 4811 ldr r0, [pc, #68] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4759. 800224e: f00a fdeb bl 800ce28 <HAL_UART_Init>
  4760. 8002252: 4603 mov r3, r0
  4761. 8002254: 2b00 cmp r3, #0
  4762. 8002256: d001 beq.n 800225c <MX_USART6_UART_Init+0x60>
  4763. {
  4764. Error_Handler();
  4765. 8002258: f000 f956 bl 8002508 <Error_Handler>
  4766. }
  4767. if (HAL_UARTEx_SetTxFifoThreshold(&huart6, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4768. 800225c: 2100 movs r1, #0
  4769. 800225e: 480d ldr r0, [pc, #52] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4770. 8002260: f00d fa8b bl 800f77a <HAL_UARTEx_SetTxFifoThreshold>
  4771. 8002264: 4603 mov r3, r0
  4772. 8002266: 2b00 cmp r3, #0
  4773. 8002268: d001 beq.n 800226e <MX_USART6_UART_Init+0x72>
  4774. {
  4775. Error_Handler();
  4776. 800226a: f000 f94d bl 8002508 <Error_Handler>
  4777. }
  4778. if (HAL_UARTEx_SetRxFifoThreshold(&huart6, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4779. 800226e: 2100 movs r1, #0
  4780. 8002270: 4808 ldr r0, [pc, #32] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4781. 8002272: f00d fac0 bl 800f7f6 <HAL_UARTEx_SetRxFifoThreshold>
  4782. 8002276: 4603 mov r3, r0
  4783. 8002278: 2b00 cmp r3, #0
  4784. 800227a: d001 beq.n 8002280 <MX_USART6_UART_Init+0x84>
  4785. {
  4786. Error_Handler();
  4787. 800227c: f000 f944 bl 8002508 <Error_Handler>
  4788. }
  4789. if (HAL_UARTEx_DisableFifoMode(&huart6) != HAL_OK)
  4790. 8002280: 4804 ldr r0, [pc, #16] @ (8002294 <MX_USART6_UART_Init+0x98>)
  4791. 8002282: f00d fa41 bl 800f708 <HAL_UARTEx_DisableFifoMode>
  4792. 8002286: 4603 mov r3, r0
  4793. 8002288: 2b00 cmp r3, #0
  4794. 800228a: d001 beq.n 8002290 <MX_USART6_UART_Init+0x94>
  4795. {
  4796. Error_Handler();
  4797. 800228c: f000 f93c bl 8002508 <Error_Handler>
  4798. }
  4799. /* USER CODE BEGIN USART6_Init 2 */
  4800. /* USER CODE END USART6_Init 2 */
  4801. }
  4802. 8002290: bf00 nop
  4803. 8002292: bd80 pop {r7, pc}
  4804. 8002294: 240004d0 .word 0x240004d0
  4805. 8002298: 40011400 .word 0x40011400
  4806. 0800229c <MX_DMA_Init>:
  4807. /**
  4808. * Enable DMA controller clock
  4809. */
  4810. static void MX_DMA_Init(void)
  4811. {
  4812. 800229c: b580 push {r7, lr}
  4813. 800229e: b082 sub sp, #8
  4814. 80022a0: af00 add r7, sp, #0
  4815. /* DMA controller clock enable */
  4816. __HAL_RCC_DMA2_CLK_ENABLE();
  4817. 80022a2: 4b11 ldr r3, [pc, #68] @ (80022e8 <MX_DMA_Init+0x4c>)
  4818. 80022a4: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4819. 80022a8: 4a0f ldr r2, [pc, #60] @ (80022e8 <MX_DMA_Init+0x4c>)
  4820. 80022aa: f043 0302 orr.w r3, r3, #2
  4821. 80022ae: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  4822. 80022b2: 4b0d ldr r3, [pc, #52] @ (80022e8 <MX_DMA_Init+0x4c>)
  4823. 80022b4: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4824. 80022b8: f003 0302 and.w r3, r3, #2
  4825. 80022bc: 607b str r3, [r7, #4]
  4826. 80022be: 687b ldr r3, [r7, #4]
  4827. /* DMA interrupt init */
  4828. /* DMA2_Stream6_IRQn interrupt configuration */
  4829. HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 5, 0);
  4830. 80022c0: 2200 movs r2, #0
  4831. 80022c2: 2105 movs r1, #5
  4832. 80022c4: 2045 movs r0, #69 @ 0x45
  4833. 80022c6: f002 ffc5 bl 8005254 <HAL_NVIC_SetPriority>
  4834. HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);
  4835. 80022ca: 2045 movs r0, #69 @ 0x45
  4836. 80022cc: f002 ffdc bl 8005288 <HAL_NVIC_EnableIRQ>
  4837. /* DMA2_Stream7_IRQn interrupt configuration */
  4838. HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 5, 0);
  4839. 80022d0: 2200 movs r2, #0
  4840. 80022d2: 2105 movs r1, #5
  4841. 80022d4: 2046 movs r0, #70 @ 0x46
  4842. 80022d6: f002 ffbd bl 8005254 <HAL_NVIC_SetPriority>
  4843. HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn);
  4844. 80022da: 2046 movs r0, #70 @ 0x46
  4845. 80022dc: f002 ffd4 bl 8005288 <HAL_NVIC_EnableIRQ>
  4846. }
  4847. 80022e0: bf00 nop
  4848. 80022e2: 3708 adds r7, #8
  4849. 80022e4: 46bd mov sp, r7
  4850. 80022e6: bd80 pop {r7, pc}
  4851. 80022e8: 58024400 .word 0x58024400
  4852. 080022ec <MX_GPIO_Init>:
  4853. * @brief GPIO Initialization Function
  4854. * @param None
  4855. * @retval None
  4856. */
  4857. static void MX_GPIO_Init(void)
  4858. {
  4859. 80022ec: b580 push {r7, lr}
  4860. 80022ee: b08c sub sp, #48 @ 0x30
  4861. 80022f0: af00 add r7, sp, #0
  4862. /* USER CODE BEGIN MX_GPIO_Init_1 */
  4863. GPIO_InitTypeDef GPIO_InitStruct = {0};
  4864. 80022f2: f107 031c add.w r3, r7, #28
  4865. 80022f6: 2200 movs r2, #0
  4866. 80022f8: 601a str r2, [r3, #0]
  4867. 80022fa: 605a str r2, [r3, #4]
  4868. 80022fc: 609a str r2, [r3, #8]
  4869. 80022fe: 60da str r2, [r3, #12]
  4870. 8002300: 611a str r2, [r3, #16]
  4871. /* USER CODE END MX_GPIO_Init_1 */
  4872. /* GPIO Ports Clock Enable */
  4873. __HAL_RCC_GPIOH_CLK_ENABLE();
  4874. 8002302: 4b41 ldr r3, [pc, #260] @ (8002408 <MX_GPIO_Init+0x11c>)
  4875. 8002304: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4876. 8002308: 4a3f ldr r2, [pc, #252] @ (8002408 <MX_GPIO_Init+0x11c>)
  4877. 800230a: f043 0380 orr.w r3, r3, #128 @ 0x80
  4878. 800230e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4879. 8002312: 4b3d ldr r3, [pc, #244] @ (8002408 <MX_GPIO_Init+0x11c>)
  4880. 8002314: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4881. 8002318: f003 0380 and.w r3, r3, #128 @ 0x80
  4882. 800231c: 61bb str r3, [r7, #24]
  4883. 800231e: 69bb ldr r3, [r7, #24]
  4884. __HAL_RCC_GPIOC_CLK_ENABLE();
  4885. 8002320: 4b39 ldr r3, [pc, #228] @ (8002408 <MX_GPIO_Init+0x11c>)
  4886. 8002322: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4887. 8002326: 4a38 ldr r2, [pc, #224] @ (8002408 <MX_GPIO_Init+0x11c>)
  4888. 8002328: f043 0304 orr.w r3, r3, #4
  4889. 800232c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4890. 8002330: 4b35 ldr r3, [pc, #212] @ (8002408 <MX_GPIO_Init+0x11c>)
  4891. 8002332: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4892. 8002336: f003 0304 and.w r3, r3, #4
  4893. 800233a: 617b str r3, [r7, #20]
  4894. 800233c: 697b ldr r3, [r7, #20]
  4895. __HAL_RCC_GPIOA_CLK_ENABLE();
  4896. 800233e: 4b32 ldr r3, [pc, #200] @ (8002408 <MX_GPIO_Init+0x11c>)
  4897. 8002340: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4898. 8002344: 4a30 ldr r2, [pc, #192] @ (8002408 <MX_GPIO_Init+0x11c>)
  4899. 8002346: f043 0301 orr.w r3, r3, #1
  4900. 800234a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4901. 800234e: 4b2e ldr r3, [pc, #184] @ (8002408 <MX_GPIO_Init+0x11c>)
  4902. 8002350: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4903. 8002354: f003 0301 and.w r3, r3, #1
  4904. 8002358: 613b str r3, [r7, #16]
  4905. 800235a: 693b ldr r3, [r7, #16]
  4906. __HAL_RCC_GPIOB_CLK_ENABLE();
  4907. 800235c: 4b2a ldr r3, [pc, #168] @ (8002408 <MX_GPIO_Init+0x11c>)
  4908. 800235e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4909. 8002362: 4a29 ldr r2, [pc, #164] @ (8002408 <MX_GPIO_Init+0x11c>)
  4910. 8002364: f043 0302 orr.w r3, r3, #2
  4911. 8002368: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4912. 800236c: 4b26 ldr r3, [pc, #152] @ (8002408 <MX_GPIO_Init+0x11c>)
  4913. 800236e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4914. 8002372: f003 0302 and.w r3, r3, #2
  4915. 8002376: 60fb str r3, [r7, #12]
  4916. 8002378: 68fb ldr r3, [r7, #12]
  4917. __HAL_RCC_GPIOD_CLK_ENABLE();
  4918. 800237a: 4b23 ldr r3, [pc, #140] @ (8002408 <MX_GPIO_Init+0x11c>)
  4919. 800237c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4920. 8002380: 4a21 ldr r2, [pc, #132] @ (8002408 <MX_GPIO_Init+0x11c>)
  4921. 8002382: f043 0308 orr.w r3, r3, #8
  4922. 8002386: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4923. 800238a: 4b1f ldr r3, [pc, #124] @ (8002408 <MX_GPIO_Init+0x11c>)
  4924. 800238c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4925. 8002390: f003 0308 and.w r3, r3, #8
  4926. 8002394: 60bb str r3, [r7, #8]
  4927. 8002396: 68bb ldr r3, [r7, #8]
  4928. __HAL_RCC_GPIOE_CLK_ENABLE();
  4929. 8002398: 4b1b ldr r3, [pc, #108] @ (8002408 <MX_GPIO_Init+0x11c>)
  4930. 800239a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4931. 800239e: 4a1a ldr r2, [pc, #104] @ (8002408 <MX_GPIO_Init+0x11c>)
  4932. 80023a0: f043 0310 orr.w r3, r3, #16
  4933. 80023a4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4934. 80023a8: 4b17 ldr r3, [pc, #92] @ (8002408 <MX_GPIO_Init+0x11c>)
  4935. 80023aa: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4936. 80023ae: f003 0310 and.w r3, r3, #16
  4937. 80023b2: 607b str r3, [r7, #4]
  4938. 80023b4: 687b ldr r3, [r7, #4]
  4939. /* USER CODE BEGIN MX_GPIO_Init_2 */
  4940. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  4941. 80023b6: f44f 4340 mov.w r3, #49152 @ 0xc000
  4942. 80023ba: 61fb str r3, [r7, #28]
  4943. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  4944. 80023bc: 2301 movs r3, #1
  4945. 80023be: 623b str r3, [r7, #32]
  4946. GPIO_InitStruct.Pull = GPIO_PULLUP;
  4947. 80023c0: 2301 movs r3, #1
  4948. 80023c2: 627b str r3, [r7, #36] @ 0x24
  4949. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  4950. 80023c4: 2300 movs r3, #0
  4951. 80023c6: 62bb str r3, [r7, #40] @ 0x28
  4952. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  4953. 80023c8: f107 031c add.w r3, r7, #28
  4954. 80023cc: 4619 mov r1, r3
  4955. 80023ce: 480f ldr r0, [pc, #60] @ (800240c <MX_GPIO_Init+0x120>)
  4956. 80023d0: f007 f968 bl 80096a4 <HAL_GPIO_Init>
  4957. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_RESET);
  4958. 80023d4: 2200 movs r2, #0
  4959. 80023d6: f44f 4180 mov.w r1, #16384 @ 0x4000
  4960. 80023da: 480c ldr r0, [pc, #48] @ (800240c <MX_GPIO_Init+0x120>)
  4961. 80023dc: f007 fb12 bl 8009a04 <HAL_GPIO_WritePin>
  4962. HAL_Delay(100);
  4963. 80023e0: 2064 movs r0, #100 @ 0x64
  4964. 80023e2: f002 fe3b bl 800505c <HAL_Delay>
  4965. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_SET);
  4966. 80023e6: 2201 movs r2, #1
  4967. 80023e8: f44f 4180 mov.w r1, #16384 @ 0x4000
  4968. 80023ec: 4807 ldr r0, [pc, #28] @ (800240c <MX_GPIO_Init+0x120>)
  4969. 80023ee: f007 fb09 bl 8009a04 <HAL_GPIO_WritePin>
  4970. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_15, GPIO_PIN_SET);
  4971. 80023f2: 2201 movs r2, #1
  4972. 80023f4: f44f 4100 mov.w r1, #32768 @ 0x8000
  4973. 80023f8: 4804 ldr r0, [pc, #16] @ (800240c <MX_GPIO_Init+0x120>)
  4974. 80023fa: f007 fb03 bl 8009a04 <HAL_GPIO_WritePin>
  4975. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET);
  4976. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET);
  4977. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET);
  4978. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET);
  4979. /* USER CODE END MX_GPIO_Init_2 */
  4980. }
  4981. 80023fe: bf00 nop
  4982. 8002400: 3730 adds r7, #48 @ 0x30
  4983. 8002402: 46bd mov sp, r7
  4984. 8002404: bd80 pop {r7, pc}
  4985. 8002406: bf00 nop
  4986. 8002408: 58024400 .word 0x58024400
  4987. 800240c: 58021000 .word 0x58021000
  4988. 08002410 <StartDefaultTask>:
  4989. * @param argument: Not used
  4990. * @retval None
  4991. */
  4992. /* USER CODE END Header_StartDefaultTask */
  4993. void StartDefaultTask(void *argument)
  4994. {
  4995. 8002410: b580 push {r7, lr}
  4996. 8002412: b082 sub sp, #8
  4997. 8002414: af00 add r7, sp, #0
  4998. 8002416: 6078 str r0, [r7, #4]
  4999. /* init code for LWIP */
  5000. MX_LWIP_Init();
  5001. 8002418: f00d faea bl 800f9f0 <MX_LWIP_Init>
  5002. /* USER CODE BEGIN 5 */
  5003. /* Infinite loop */
  5004. for(;;)
  5005. {
  5006. osDelay(pdMS_TO_TICKS(1000));
  5007. 800241c: f44f 707a mov.w r0, #1000 @ 0x3e8
  5008. 8002420: f00e fab9 bl 8010996 <osDelay>
  5009. 8002424: e7fa b.n 800241c <StartDefaultTask+0xc>
  5010. ...
  5011. 08002428 <MPU_Config>:
  5012. }
  5013. /* MPU Configuration */
  5014. void MPU_Config(void)
  5015. {
  5016. 8002428: b580 push {r7, lr}
  5017. 800242a: b084 sub sp, #16
  5018. 800242c: af00 add r7, sp, #0
  5019. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  5020. 800242e: 463b mov r3, r7
  5021. 8002430: 2200 movs r2, #0
  5022. 8002432: 601a str r2, [r3, #0]
  5023. 8002434: 605a str r2, [r3, #4]
  5024. 8002436: 609a str r2, [r3, #8]
  5025. 8002438: 60da str r2, [r3, #12]
  5026. /* Disables the MPU */
  5027. HAL_MPU_Disable();
  5028. 800243a: f002 ff33 bl 80052a4 <HAL_MPU_Disable>
  5029. /** Initializes and configures the Region and the memory to be protected
  5030. */
  5031. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  5032. 800243e: 2301 movs r3, #1
  5033. 8002440: 703b strb r3, [r7, #0]
  5034. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  5035. 8002442: 2300 movs r3, #0
  5036. 8002444: 707b strb r3, [r7, #1]
  5037. MPU_InitStruct.BaseAddress = 0x0;
  5038. 8002446: 2300 movs r3, #0
  5039. 8002448: 607b str r3, [r7, #4]
  5040. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  5041. 800244a: 231f movs r3, #31
  5042. 800244c: 723b strb r3, [r7, #8]
  5043. MPU_InitStruct.SubRegionDisable = 0x87;
  5044. 800244e: 2387 movs r3, #135 @ 0x87
  5045. 8002450: 727b strb r3, [r7, #9]
  5046. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  5047. 8002452: 2300 movs r3, #0
  5048. 8002454: 72bb strb r3, [r7, #10]
  5049. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  5050. 8002456: 2300 movs r3, #0
  5051. 8002458: 72fb strb r3, [r7, #11]
  5052. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  5053. 800245a: 2301 movs r3, #1
  5054. 800245c: 733b strb r3, [r7, #12]
  5055. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  5056. 800245e: 2301 movs r3, #1
  5057. 8002460: 737b strb r3, [r7, #13]
  5058. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  5059. 8002462: 2300 movs r3, #0
  5060. 8002464: 73bb strb r3, [r7, #14]
  5061. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  5062. 8002466: 2300 movs r3, #0
  5063. 8002468: 73fb strb r3, [r7, #15]
  5064. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5065. 800246a: 463b mov r3, r7
  5066. 800246c: 4618 mov r0, r3
  5067. 800246e: f002 ff51 bl 8005314 <HAL_MPU_ConfigRegion>
  5068. /** Initializes and configures the Region and the memory to be protected
  5069. */
  5070. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  5071. 8002472: 2301 movs r3, #1
  5072. 8002474: 707b strb r3, [r7, #1]
  5073. MPU_InitStruct.BaseAddress = 0x24020000;
  5074. 8002476: 4b13 ldr r3, [pc, #76] @ (80024c4 <MPU_Config+0x9c>)
  5075. 8002478: 607b str r3, [r7, #4]
  5076. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  5077. 800247a: 2310 movs r3, #16
  5078. 800247c: 723b strb r3, [r7, #8]
  5079. MPU_InitStruct.SubRegionDisable = 0x0;
  5080. 800247e: 2300 movs r3, #0
  5081. 8002480: 727b strb r3, [r7, #9]
  5082. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  5083. 8002482: 2301 movs r3, #1
  5084. 8002484: 72bb strb r3, [r7, #10]
  5085. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  5086. 8002486: 2303 movs r3, #3
  5087. 8002488: 72fb strb r3, [r7, #11]
  5088. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  5089. 800248a: 2300 movs r3, #0
  5090. 800248c: 737b strb r3, [r7, #13]
  5091. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5092. 800248e: 463b mov r3, r7
  5093. 8002490: 4618 mov r0, r3
  5094. 8002492: f002 ff3f bl 8005314 <HAL_MPU_ConfigRegion>
  5095. /** Initializes and configures the Region and the memory to be protected
  5096. */
  5097. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  5098. 8002496: 2302 movs r3, #2
  5099. 8002498: 707b strb r3, [r7, #1]
  5100. MPU_InitStruct.BaseAddress = 0x24040000;
  5101. 800249a: 4b0b ldr r3, [pc, #44] @ (80024c8 <MPU_Config+0xa0>)
  5102. 800249c: 607b str r3, [r7, #4]
  5103. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  5104. 800249e: 2308 movs r3, #8
  5105. 80024a0: 723b strb r3, [r7, #8]
  5106. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  5107. 80024a2: 2300 movs r3, #0
  5108. 80024a4: 72bb strb r3, [r7, #10]
  5109. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  5110. 80024a6: 2301 movs r3, #1
  5111. 80024a8: 737b strb r3, [r7, #13]
  5112. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  5113. 80024aa: 2301 movs r3, #1
  5114. 80024ac: 73fb strb r3, [r7, #15]
  5115. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5116. 80024ae: 463b mov r3, r7
  5117. 80024b0: 4618 mov r0, r3
  5118. 80024b2: f002 ff2f bl 8005314 <HAL_MPU_ConfigRegion>
  5119. /* Enables the MPU */
  5120. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  5121. 80024b6: 2004 movs r0, #4
  5122. 80024b8: f002 ff0c bl 80052d4 <HAL_MPU_Enable>
  5123. }
  5124. 80024bc: bf00 nop
  5125. 80024be: 3710 adds r7, #16
  5126. 80024c0: 46bd mov sp, r7
  5127. 80024c2: bd80 pop {r7, pc}
  5128. 80024c4: 24020000 .word 0x24020000
  5129. 80024c8: 24040000 .word 0x24040000
  5130. 080024cc <HAL_TIM_PeriodElapsedCallback>:
  5131. * a global variable "uwTick" used as application time base.
  5132. * @param htim : TIM handle
  5133. * @retval None
  5134. */
  5135. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  5136. {
  5137. 80024cc: b580 push {r7, lr}
  5138. 80024ce: b082 sub sp, #8
  5139. 80024d0: af00 add r7, sp, #0
  5140. 80024d2: 6078 str r0, [r7, #4]
  5141. /* USER CODE BEGIN Callback 0 */
  5142. /* USER CODE END Callback 0 */
  5143. if (htim->Instance == TIM6) {
  5144. 80024d4: 687b ldr r3, [r7, #4]
  5145. 80024d6: 681b ldr r3, [r3, #0]
  5146. 80024d8: 4a09 ldr r2, [pc, #36] @ (8002500 <HAL_TIM_PeriodElapsedCallback+0x34>)
  5147. 80024da: 4293 cmp r3, r2
  5148. 80024dc: d101 bne.n 80024e2 <HAL_TIM_PeriodElapsedCallback+0x16>
  5149. HAL_IncTick();
  5150. 80024de: f002 fd9d bl 800501c <HAL_IncTick>
  5151. }
  5152. /* USER CODE BEGIN Callback 1 */
  5153. if (htim->Instance == TIM6) {
  5154. 80024e2: 687b ldr r3, [r7, #4]
  5155. 80024e4: 681b ldr r3, [r3, #0]
  5156. 80024e6: 4a06 ldr r2, [pc, #24] @ (8002500 <HAL_TIM_PeriodElapsedCallback+0x34>)
  5157. 80024e8: 4293 cmp r3, r2
  5158. 80024ea: d104 bne.n 80024f6 <HAL_TIM_PeriodElapsedCallback+0x2a>
  5159. MilliTimer++;
  5160. 80024ec: 4b05 ldr r3, [pc, #20] @ (8002504 <HAL_TIM_PeriodElapsedCallback+0x38>)
  5161. 80024ee: 681b ldr r3, [r3, #0]
  5162. 80024f0: 3301 adds r3, #1
  5163. 80024f2: 4a04 ldr r2, [pc, #16] @ (8002504 <HAL_TIM_PeriodElapsedCallback+0x38>)
  5164. 80024f4: 6013 str r3, [r2, #0]
  5165. }
  5166. /* USER CODE END Callback 1 */
  5167. }
  5168. 80024f6: bf00 nop
  5169. 80024f8: 3708 adds r7, #8
  5170. 80024fa: 46bd mov sp, r7
  5171. 80024fc: bd80 pop {r7, pc}
  5172. 80024fe: bf00 nop
  5173. 8002500: 40001000 .word 0x40001000
  5174. 8002504: 2402b034 .word 0x2402b034
  5175. 08002508 <Error_Handler>:
  5176. /**
  5177. * @brief This function is executed in case of error occurrence.
  5178. * @retval None
  5179. */
  5180. void Error_Handler(void)
  5181. {
  5182. 8002508: b480 push {r7}
  5183. 800250a: af00 add r7, sp, #0
  5184. __ASM volatile ("cpsid i" : : : "memory");
  5185. 800250c: b672 cpsid i
  5186. }
  5187. 800250e: bf00 nop
  5188. /* USER CODE BEGIN Error_Handler_Debug */
  5189. /* User can add his own implementation to report the HAL error return state */
  5190. __disable_irq();
  5191. while (1)
  5192. 8002510: bf00 nop
  5193. 8002512: e7fd b.n 8002510 <Error_Handler+0x8>
  5194. 08002514 <MqttClientSubTask>:
  5195. void MqttClientSubTask(void *argument); //mqtt client subscribe task function
  5196. void MqttClientPubTask(void *argument); //mqtt client publish task function
  5197. int MqttConnectBroker(void); //mqtt broker connect function
  5198. void MqttMessageArrived(MessageData *msg); //mqtt message callback function
  5199. void MqttClientSubTask (void* argument) {
  5200. 8002514: b580 push {r7, lr}
  5201. 8002516: b082 sub sp, #8
  5202. 8002518: af00 add r7, sp, #0
  5203. 800251a: 6078 str r0, [r7, #4]
  5204. while (1) {
  5205. // waiting for valid ip address
  5206. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5207. 800251c: 4b16 ldr r3, [pc, #88] @ (8002578 <MqttClientSubTask+0x64>)
  5208. 800251e: 685b ldr r3, [r3, #4]
  5209. 8002520: 2b00 cmp r3, #0
  5210. 8002522: d007 beq.n 8002534 <MqttClientSubTask+0x20>
  5211. 8002524: 4b14 ldr r3, [pc, #80] @ (8002578 <MqttClientSubTask+0x64>)
  5212. 8002526: 689b ldr r3, [r3, #8]
  5213. 8002528: 2b00 cmp r3, #0
  5214. 800252a: d003 beq.n 8002534 <MqttClientSubTask+0x20>
  5215. 800252c: 4b12 ldr r3, [pc, #72] @ (8002578 <MqttClientSubTask+0x64>)
  5216. 800252e: 68db ldr r3, [r3, #12]
  5217. 8002530: 2b00 cmp r3, #0
  5218. 8002532: d104 bne.n 800253e <MqttClientSubTask+0x2a>
  5219. {
  5220. osDelay (pdMS_TO_TICKS (1000));
  5221. 8002534: f44f 707a mov.w r0, #1000 @ 0x3e8
  5222. 8002538: f00e fa2d bl 8010996 <osDelay>
  5223. continue;
  5224. 800253c: e003 b.n 8002546 <MqttClientSubTask+0x32>
  5225. } else {
  5226. printf ("DHCP/Static IP O.K.\n");
  5227. 800253e: 480f ldr r0, [pc, #60] @ (800257c <MqttClientSubTask+0x68>)
  5228. 8002540: f027 fab4 bl 8029aac <puts>
  5229. break;
  5230. 8002544: e000 b.n 8002548 <MqttClientSubTask+0x34>
  5231. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5232. 8002546: e7e9 b.n 800251c <MqttClientSubTask+0x8>
  5233. }
  5234. }
  5235. while (1) {
  5236. if (!mqttClient.isconnected) {
  5237. 8002548: 4b0d ldr r3, [pc, #52] @ (8002580 <MqttClientSubTask+0x6c>)
  5238. 800254a: 6a1b ldr r3, [r3, #32]
  5239. 800254c: 2b00 cmp r3, #0
  5240. 800254e: d109 bne.n 8002564 <MqttClientSubTask+0x50>
  5241. // try to connect to the broker
  5242. if (MqttConnectBroker () != MQTT_SUCCESS) {
  5243. 8002550: f000 fb02 bl 8002b58 <MqttConnectBroker>
  5244. 8002554: 4603 mov r3, r0
  5245. 8002556: 2b00 cmp r3, #0
  5246. 8002558: d0f6 beq.n 8002548 <MqttClientSubTask+0x34>
  5247. osDelay (pdMS_TO_TICKS (1000));
  5248. 800255a: f44f 707a mov.w r0, #1000 @ 0x3e8
  5249. 800255e: f00e fa1a bl 8010996 <osDelay>
  5250. 8002562: e7f1 b.n 8002548 <MqttClientSubTask+0x34>
  5251. }
  5252. } else {
  5253. MQTTYield (&mqttClient, 500); // handle timer
  5254. 8002564: f44f 71fa mov.w r1, #500 @ 0x1f4
  5255. 8002568: 4805 ldr r0, [pc, #20] @ (8002580 <MqttClientSubTask+0x6c>)
  5256. 800256a: f024 fba1 bl 8026cb0 <MQTTYield>
  5257. osDelay (pdMS_TO_TICKS (100));
  5258. 800256e: 2064 movs r0, #100 @ 0x64
  5259. 8002570: f00e fa11 bl 8010996 <osDelay>
  5260. if (!mqttClient.isconnected) {
  5261. 8002574: e7e8 b.n 8002548 <MqttClientSubTask+0x34>
  5262. 8002576: bf00 nop
  5263. 8002578: 24002174 .word 0x24002174
  5264. 800257c: 0802c59c .word 0x0802c59c
  5265. 8002580: 24000670 .word 0x24000670
  5266. 08002584 <MqttClientPubTask>:
  5267. }
  5268. }
  5269. }
  5270. void MqttClientPubTask (void* argument) {
  5271. 8002584: b580 push {r7, lr}
  5272. 8002586: f5ad 7d16 sub.w sp, sp, #600 @ 0x258
  5273. 800258a: af04 add r7, sp, #16
  5274. 800258c: f507 7312 add.w r3, r7, #584 @ 0x248
  5275. 8002590: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  5276. 8002594: 6018 str r0, [r3, #0]
  5277. char messageBuffer[512] = { 0x00 };
  5278. 8002596: f507 7312 add.w r3, r7, #584 @ 0x248
  5279. 800259a: f5a3 7304 sub.w r3, r3, #528 @ 0x210
  5280. 800259e: 2200 movs r2, #0
  5281. 80025a0: 601a str r2, [r3, #0]
  5282. 80025a2: 3304 adds r3, #4
  5283. 80025a4: f44f 72fe mov.w r2, #508 @ 0x1fc
  5284. 80025a8: 2100 movs r1, #0
  5285. 80025aa: 4618 mov r0, r3
  5286. 80025ac: f027 fba8 bl 8029d00 <memset>
  5287. char topicTextBuffer[32] = { 0x00 };
  5288. 80025b0: f507 7312 add.w r3, r7, #584 @ 0x248
  5289. 80025b4: f5a3 730c sub.w r3, r3, #560 @ 0x230
  5290. 80025b8: 2200 movs r2, #0
  5291. 80025ba: 601a str r2, [r3, #0]
  5292. 80025bc: 3304 adds r3, #4
  5293. 80025be: 2200 movs r2, #0
  5294. 80025c0: 601a str r2, [r3, #0]
  5295. 80025c2: 605a str r2, [r3, #4]
  5296. 80025c4: 609a str r2, [r3, #8]
  5297. 80025c6: 60da str r2, [r3, #12]
  5298. 80025c8: 611a str r2, [r3, #16]
  5299. 80025ca: 615a str r2, [r3, #20]
  5300. 80025cc: 619a str r2, [r3, #24]
  5301. uint32_t bytesInBuffer = 0;
  5302. 80025ce: 2300 movs r3, #0
  5303. 80025d0: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5304. uint8_t boardNumber = 0;
  5305. 80025d4: 2300 movs r3, #0
  5306. 80025d6: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5307. MQTTMessage message;
  5308. while (1) {
  5309. if (mqttClient.isconnected) {
  5310. 80025da: 4b93 ldr r3, [pc, #588] @ (8002828 <MqttClientPubTask+0x2a4>)
  5311. 80025dc: 6a1b ldr r3, [r3, #32]
  5312. 80025de: 2b00 cmp r3, #0
  5313. 80025e0: f000 8293 beq.w 8002b0a <MqttClientPubTask+0x586>
  5314. if (is_link_up ()) {
  5315. 80025e4: f00d f9f4 bl 800f9d0 <is_link_up>
  5316. 80025e8: 4603 mov r3, r0
  5317. 80025ea: 2b00 cmp r3, #0
  5318. 80025ec: f000 828d beq.w 8002b0a <MqttClientPubTask+0x586>
  5319. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5320. 80025f0: 2300 movs r3, #0
  5321. 80025f2: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5322. 80025f6: e10e b.n 8002816 <MqttClientPubTask+0x292>
  5323. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  5324. 80025f8: 4b8c ldr r3, [pc, #560] @ (800282c <MqttClientPubTask+0x2a8>)
  5325. 80025fa: 681b ldr r3, [r3, #0]
  5326. 80025fc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5327. 8002600: 4618 mov r0, r3
  5328. 8002602: f00e fa69 bl 8010ad8 <osMutexAcquire>
  5329. RESMeasurements* resMeas = &resMeasurements[boardNumber];
  5330. 8002606: f897 2247 ldrb.w r2, [r7, #583] @ 0x247
  5331. 800260a: 4613 mov r3, r2
  5332. 800260c: 011b lsls r3, r3, #4
  5333. 800260e: 1a9b subs r3, r3, r2
  5334. 8002610: 009b lsls r3, r3, #2
  5335. 8002612: 4a87 ldr r2, [pc, #540] @ (8002830 <MqttClientPubTask+0x2ac>)
  5336. 8002614: 4413 add r3, r2
  5337. 8002616: f8c7 3238 str.w r3, [r7, #568] @ 0x238
  5338. sprintf (topicTextBuffer, "RESmeasurments/%d", boardNumber + 1);
  5339. 800261a: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5340. 800261e: 1c5a adds r2, r3, #1
  5341. 8002620: f107 0318 add.w r3, r7, #24
  5342. 8002624: 4983 ldr r1, [pc, #524] @ (8002834 <MqttClientPubTask+0x2b0>)
  5343. 8002626: 4618 mov r0, r3
  5344. 8002628: f027 fa48 bl 8029abc <siprintf>
  5345. bytesInBuffer = sprintf (messageBuffer, "{\"voltageRMS\":[%.2f, %.2f, %.2f], ", resMeas->voltageRMS[0], resMeas->voltageRMS[1], resMeas->voltageRMS[2]);
  5346. 800262c: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5347. 8002630: edd3 7a00 vldr s15, [r3]
  5348. 8002634: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5349. 8002638: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5350. 800263c: edd3 7a01 vldr s15, [r3, #4]
  5351. 8002640: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5352. 8002644: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5353. 8002648: edd3 6a02 vldr s13, [r3, #8]
  5354. 800264c: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5355. 8002650: f107 0038 add.w r0, r7, #56 @ 0x38
  5356. 8002654: ed8d 6b02 vstr d6, [sp, #8]
  5357. 8002658: ed8d 7b00 vstr d7, [sp]
  5358. 800265c: ec53 2b15 vmov r2, r3, d5
  5359. 8002660: 4975 ldr r1, [pc, #468] @ (8002838 <MqttClientPubTask+0x2b4>)
  5360. 8002662: f027 fa2b bl 8029abc <siprintf>
  5361. 8002666: 4603 mov r3, r0
  5362. 8002668: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5363. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"voltagePeak\":[%.2f, %.2f, %.2f], ", resMeas->voltagePeak[0], resMeas->voltagePeak[1], resMeas->voltagePeak[2]);
  5364. 800266c: f107 0238 add.w r2, r7, #56 @ 0x38
  5365. 8002670: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5366. 8002674: 18d0 adds r0, r2, r3
  5367. 8002676: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5368. 800267a: edd3 7a03 vldr s15, [r3, #12]
  5369. 800267e: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5370. 8002682: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5371. 8002686: edd3 7a04 vldr s15, [r3, #16]
  5372. 800268a: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5373. 800268e: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5374. 8002692: edd3 6a05 vldr s13, [r3, #20]
  5375. 8002696: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5376. 800269a: ed8d 6b02 vstr d6, [sp, #8]
  5377. 800269e: ed8d 7b00 vstr d7, [sp]
  5378. 80026a2: ec53 2b15 vmov r2, r3, d5
  5379. 80026a6: 4965 ldr r1, [pc, #404] @ (800283c <MqttClientPubTask+0x2b8>)
  5380. 80026a8: f027 fa08 bl 8029abc <siprintf>
  5381. 80026ac: 4603 mov r3, r0
  5382. 80026ae: 461a mov r2, r3
  5383. 80026b0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5384. 80026b4: 4413 add r3, r2
  5385. 80026b6: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5386. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentRMS\":[%.3f, %.3f, %.3f], ", resMeas->currentRMS[0], resMeas->currentRMS[1], resMeas->currentRMS[2]);
  5387. 80026ba: f107 0238 add.w r2, r7, #56 @ 0x38
  5388. 80026be: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5389. 80026c2: 18d0 adds r0, r2, r3
  5390. 80026c4: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5391. 80026c8: edd3 7a06 vldr s15, [r3, #24]
  5392. 80026cc: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5393. 80026d0: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5394. 80026d4: edd3 7a07 vldr s15, [r3, #28]
  5395. 80026d8: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5396. 80026dc: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5397. 80026e0: edd3 6a08 vldr s13, [r3, #32]
  5398. 80026e4: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5399. 80026e8: ed8d 6b02 vstr d6, [sp, #8]
  5400. 80026ec: ed8d 7b00 vstr d7, [sp]
  5401. 80026f0: ec53 2b15 vmov r2, r3, d5
  5402. 80026f4: 4952 ldr r1, [pc, #328] @ (8002840 <MqttClientPubTask+0x2bc>)
  5403. 80026f6: f027 f9e1 bl 8029abc <siprintf>
  5404. 80026fa: 4603 mov r3, r0
  5405. 80026fc: 461a mov r2, r3
  5406. 80026fe: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5407. 8002702: 4413 add r3, r2
  5408. 8002704: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5409. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentPeak\":[%.3f, %.3f, %.3f], ", resMeas->currentPeak[0], resMeas->currentPeak[1], resMeas->currentPeak[2]);
  5410. 8002708: f107 0238 add.w r2, r7, #56 @ 0x38
  5411. 800270c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5412. 8002710: 18d0 adds r0, r2, r3
  5413. 8002712: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5414. 8002716: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5415. 800271a: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5416. 800271e: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5417. 8002722: edd3 7a0a vldr s15, [r3, #40] @ 0x28
  5418. 8002726: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5419. 800272a: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5420. 800272e: edd3 6a0b vldr s13, [r3, #44] @ 0x2c
  5421. 8002732: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5422. 8002736: ed8d 6b02 vstr d6, [sp, #8]
  5423. 800273a: ed8d 7b00 vstr d7, [sp]
  5424. 800273e: ec53 2b15 vmov r2, r3, d5
  5425. 8002742: 4940 ldr r1, [pc, #256] @ (8002844 <MqttClientPubTask+0x2c0>)
  5426. 8002744: f027 f9ba bl 8029abc <siprintf>
  5427. 8002748: 4603 mov r3, r0
  5428. 800274a: 461a mov r2, r3
  5429. 800274c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5430. 8002750: 4413 add r3, r2
  5431. 8002752: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5432. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"power\":[%.2f, %.2f, %.2f], ", resMeas->power[0], resMeas->power[1], resMeas->power[2]);
  5433. 8002756: f107 0238 add.w r2, r7, #56 @ 0x38
  5434. 800275a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5435. 800275e: 18d0 adds r0, r2, r3
  5436. 8002760: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5437. 8002764: edd3 7a0c vldr s15, [r3, #48] @ 0x30
  5438. 8002768: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5439. 800276c: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5440. 8002770: edd3 7a0d vldr s15, [r3, #52] @ 0x34
  5441. 8002774: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5442. 8002778: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5443. 800277c: edd3 6a0e vldr s13, [r3, #56] @ 0x38
  5444. 8002780: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5445. 8002784: ed8d 6b02 vstr d6, [sp, #8]
  5446. 8002788: ed8d 7b00 vstr d7, [sp]
  5447. 800278c: ec53 2b15 vmov r2, r3, d5
  5448. 8002790: 492d ldr r1, [pc, #180] @ (8002848 <MqttClientPubTask+0x2c4>)
  5449. 8002792: f027 f993 bl 8029abc <siprintf>
  5450. 8002796: 4603 mov r3, r0
  5451. 8002798: 461a mov r2, r3
  5452. 800279a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5453. 800279e: 4413 add r3, r2
  5454. 80027a0: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5455. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"lastSeen\": %ld}", slaveLastSeen[boardNumber]);
  5456. 80027a4: f107 0238 add.w r2, r7, #56 @ 0x38
  5457. 80027a8: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5458. 80027ac: 18d0 adds r0, r2, r3
  5459. 80027ae: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5460. 80027b2: 4a26 ldr r2, [pc, #152] @ (800284c <MqttClientPubTask+0x2c8>)
  5461. 80027b4: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  5462. 80027b8: 461a mov r2, r3
  5463. 80027ba: 4925 ldr r1, [pc, #148] @ (8002850 <MqttClientPubTask+0x2cc>)
  5464. 80027bc: f027 f97e bl 8029abc <siprintf>
  5465. 80027c0: 4603 mov r3, r0
  5466. 80027c2: 461a mov r2, r3
  5467. 80027c4: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5468. 80027c8: 4413 add r3, r2
  5469. 80027ca: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5470. osMutexRelease (resMeasurementsMutex);
  5471. 80027ce: 4b17 ldr r3, [pc, #92] @ (800282c <MqttClientPubTask+0x2a8>)
  5472. 80027d0: 681b ldr r3, [r3, #0]
  5473. 80027d2: 4618 mov r0, r3
  5474. 80027d4: f00e f9cb bl 8010b6e <osMutexRelease>
  5475. message.payload = (void*)messageBuffer;
  5476. 80027d8: f507 7312 add.w r3, r7, #584 @ 0x248
  5477. 80027dc: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5478. 80027e0: f107 0238 add.w r2, r7, #56 @ 0x38
  5479. 80027e4: 609a str r2, [r3, #8]
  5480. message.payloadlen = strlen (messageBuffer);
  5481. 80027e6: f107 0338 add.w r3, r7, #56 @ 0x38
  5482. 80027ea: 4618 mov r0, r3
  5483. 80027ec: f7fd fdd8 bl 80003a0 <strlen>
  5484. 80027f0: 4602 mov r2, r0
  5485. 80027f2: f507 7312 add.w r3, r7, #584 @ 0x248
  5486. 80027f6: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5487. 80027fa: 60da str r2, [r3, #12]
  5488. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5489. 80027fc: f107 0208 add.w r2, r7, #8
  5490. 8002800: f107 0318 add.w r3, r7, #24
  5491. 8002804: 4619 mov r1, r3
  5492. 8002806: 4808 ldr r0, [pc, #32] @ (8002828 <MqttClientPubTask+0x2a4>)
  5493. 8002808: f024 fc71 bl 80270ee <MQTTPublish>
  5494. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5495. 800280c: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5496. 8002810: 3301 adds r3, #1
  5497. 8002812: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5498. 8002816: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5499. 800281a: 2b03 cmp r3, #3
  5500. 800281c: f67f aeec bls.w 80025f8 <MqttClientPubTask+0x74>
  5501. }
  5502. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5503. 8002820: 2300 movs r3, #0
  5504. 8002822: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5505. 8002826: e16b b.n 8002b00 <MqttClientPubTask+0x57c>
  5506. 8002828: 24000670 .word 0x24000670
  5507. 800282c: 24002168 .word 0x24002168
  5508. 8002830: 24001fc8 .word 0x24001fc8
  5509. 8002834: 0802c5b0 .word 0x0802c5b0
  5510. 8002838: 0802c5c4 .word 0x0802c5c4
  5511. 800283c: 0802c5e8 .word 0x0802c5e8
  5512. 8002840: 0802c60c .word 0x0802c60c
  5513. 8002844: 0802c630 .word 0x0802c630
  5514. 8002848: 0802c654 .word 0x0802c654
  5515. 800284c: 24002158 .word 0x24002158
  5516. 8002850: 0802c674 .word 0x0802c674
  5517. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  5518. 8002854: 4baf ldr r3, [pc, #700] @ (8002b14 <MqttClientPubTask+0x590>)
  5519. 8002856: 681b ldr r3, [r3, #0]
  5520. 8002858: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5521. 800285c: 4618 mov r0, r3
  5522. 800285e: f00e f93b bl 8010ad8 <osMutexAcquire>
  5523. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  5524. 8002862: f897 2247 ldrb.w r2, [r7, #583] @ 0x247
  5525. 8002866: 4613 mov r3, r2
  5526. 8002868: 009b lsls r3, r3, #2
  5527. 800286a: 4413 add r3, r2
  5528. 800286c: 00db lsls r3, r3, #3
  5529. 800286e: 4aaa ldr r2, [pc, #680] @ (8002b18 <MqttClientPubTask+0x594>)
  5530. 8002870: 4413 add r3, r2
  5531. 8002872: f8c7 323c str.w r3, [r7, #572] @ 0x23c
  5532. sprintf (topicTextBuffer, "Sensors/%d", boardNumber + 1);
  5533. 8002876: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5534. 800287a: 1c5a adds r2, r3, #1
  5535. 800287c: f107 0318 add.w r3, r7, #24
  5536. 8002880: 49a6 ldr r1, [pc, #664] @ (8002b1c <MqttClientPubTask+0x598>)
  5537. 8002882: 4618 mov r0, r3
  5538. 8002884: f027 f91a bl 8029abc <siprintf>
  5539. bytesInBuffer = sprintf (messageBuffer, "{\"pvTemperature\":[%.1f, %.1f], ", sensors->pvTemperature[0], sensors->pvTemperature[1]);
  5540. 8002888: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5541. 800288c: edd3 7a00 vldr s15, [r3]
  5542. 8002890: eeb7 6ae7 vcvt.f64.f32 d6, s15
  5543. 8002894: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5544. 8002898: edd3 7a01 vldr s15, [r3, #4]
  5545. 800289c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5546. 80028a0: f107 0038 add.w r0, r7, #56 @ 0x38
  5547. 80028a4: ed8d 7b00 vstr d7, [sp]
  5548. 80028a8: ec53 2b16 vmov r2, r3, d6
  5549. 80028ac: 499c ldr r1, [pc, #624] @ (8002b20 <MqttClientPubTask+0x59c>)
  5550. 80028ae: f027 f905 bl 8029abc <siprintf>
  5551. 80028b2: 4603 mov r3, r0
  5552. 80028b4: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5553. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"fanVoltage\":%.2f, ", sensors->fanVoltage);
  5554. 80028b8: f107 0238 add.w r2, r7, #56 @ 0x38
  5555. 80028bc: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5556. 80028c0: 18d0 adds r0, r2, r3
  5557. 80028c2: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5558. 80028c6: edd3 7a02 vldr s15, [r3, #8]
  5559. 80028ca: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5560. 80028ce: ec53 2b17 vmov r2, r3, d7
  5561. 80028d2: 4994 ldr r1, [pc, #592] @ (8002b24 <MqttClientPubTask+0x5a0>)
  5562. 80028d4: f027 f8f2 bl 8029abc <siprintf>
  5563. 80028d8: 4603 mov r3, r0
  5564. 80028da: 461a mov r2, r3
  5565. 80028dc: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5566. 80028e0: 4413 add r3, r2
  5567. 80028e2: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5568. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"pvEncoder\":%.2f, ", sensors->pvEncoder);
  5569. 80028e6: f107 0238 add.w r2, r7, #56 @ 0x38
  5570. 80028ea: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5571. 80028ee: 18d0 adds r0, r2, r3
  5572. 80028f0: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5573. 80028f4: edd3 7a03 vldr s15, [r3, #12]
  5574. 80028f8: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5575. 80028fc: ec53 2b17 vmov r2, r3, d7
  5576. 8002900: 4989 ldr r1, [pc, #548] @ (8002b28 <MqttClientPubTask+0x5a4>)
  5577. 8002902: f027 f8db bl 8029abc <siprintf>
  5578. 8002906: 4603 mov r3, r0
  5579. 8002908: 461a mov r2, r3
  5580. 800290a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5581. 800290e: 4413 add r3, r2
  5582. 8002910: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5583. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXStatus\":%d, ", sensors->motorXStatus);
  5584. 8002914: f107 0238 add.w r2, r7, #56 @ 0x38
  5585. 8002918: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5586. 800291c: 18d0 adds r0, r2, r3
  5587. 800291e: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5588. 8002922: 7c1b ldrb r3, [r3, #16]
  5589. 8002924: 461a mov r2, r3
  5590. 8002926: 4981 ldr r1, [pc, #516] @ (8002b2c <MqttClientPubTask+0x5a8>)
  5591. 8002928: f027 f8c8 bl 8029abc <siprintf>
  5592. 800292c: 4603 mov r3, r0
  5593. 800292e: 461a mov r2, r3
  5594. 8002930: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5595. 8002934: 4413 add r3, r2
  5596. 8002936: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5597. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYStatus\":%d, ", sensors->motorYStatus);
  5598. 800293a: f107 0238 add.w r2, r7, #56 @ 0x38
  5599. 800293e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5600. 8002942: 18d0 adds r0, r2, r3
  5601. 8002944: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5602. 8002948: 7c5b ldrb r3, [r3, #17]
  5603. 800294a: 461a mov r2, r3
  5604. 800294c: 4978 ldr r1, [pc, #480] @ (8002b30 <MqttClientPubTask+0x5ac>)
  5605. 800294e: f027 f8b5 bl 8029abc <siprintf>
  5606. 8002952: 4603 mov r3, r0
  5607. 8002954: 461a mov r2, r3
  5608. 8002956: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5609. 800295a: 4413 add r3, r2
  5610. 800295c: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5611. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXAveCurrent\":%.3f, ", sensors->motorXAveCurrent);
  5612. 8002960: f107 0238 add.w r2, r7, #56 @ 0x38
  5613. 8002964: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5614. 8002968: 18d0 adds r0, r2, r3
  5615. 800296a: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5616. 800296e: edd3 7a05 vldr s15, [r3, #20]
  5617. 8002972: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5618. 8002976: ec53 2b17 vmov r2, r3, d7
  5619. 800297a: 496e ldr r1, [pc, #440] @ (8002b34 <MqttClientPubTask+0x5b0>)
  5620. 800297c: f027 f89e bl 8029abc <siprintf>
  5621. 8002980: 4603 mov r3, r0
  5622. 8002982: 461a mov r2, r3
  5623. 8002984: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5624. 8002988: 4413 add r3, r2
  5625. 800298a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5626. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYAveCurrent\":%.3f, ", sensors->motorYAveCurrent);
  5627. 800298e: f107 0238 add.w r2, r7, #56 @ 0x38
  5628. 8002992: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5629. 8002996: 18d0 adds r0, r2, r3
  5630. 8002998: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5631. 800299c: edd3 7a06 vldr s15, [r3, #24]
  5632. 80029a0: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5633. 80029a4: ec53 2b17 vmov r2, r3, d7
  5634. 80029a8: 4963 ldr r1, [pc, #396] @ (8002b38 <MqttClientPubTask+0x5b4>)
  5635. 80029aa: f027 f887 bl 8029abc <siprintf>
  5636. 80029ae: 4603 mov r3, r0
  5637. 80029b0: 461a mov r2, r3
  5638. 80029b2: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5639. 80029b6: 4413 add r3, r2
  5640. 80029b8: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5641. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXPeakCurrent\":%.3f, ", sensors->motorXPeakCurrent);
  5642. 80029bc: f107 0238 add.w r2, r7, #56 @ 0x38
  5643. 80029c0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5644. 80029c4: 18d0 adds r0, r2, r3
  5645. 80029c6: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5646. 80029ca: edd3 7a07 vldr s15, [r3, #28]
  5647. 80029ce: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5648. 80029d2: ec53 2b17 vmov r2, r3, d7
  5649. 80029d6: 4959 ldr r1, [pc, #356] @ (8002b3c <MqttClientPubTask+0x5b8>)
  5650. 80029d8: f027 f870 bl 8029abc <siprintf>
  5651. 80029dc: 4603 mov r3, r0
  5652. 80029de: 461a mov r2, r3
  5653. 80029e0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5654. 80029e4: 4413 add r3, r2
  5655. 80029e6: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5656. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYPeakCurrent\":%.3f, ", sensors->motorYPeakCurrent);
  5657. 80029ea: f107 0238 add.w r2, r7, #56 @ 0x38
  5658. 80029ee: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5659. 80029f2: 18d0 adds r0, r2, r3
  5660. 80029f4: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5661. 80029f8: edd3 7a08 vldr s15, [r3, #32]
  5662. 80029fc: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5663. 8002a00: ec53 2b17 vmov r2, r3, d7
  5664. 8002a04: 494e ldr r1, [pc, #312] @ (8002b40 <MqttClientPubTask+0x5bc>)
  5665. 8002a06: f027 f859 bl 8029abc <siprintf>
  5666. 8002a0a: 4603 mov r3, r0
  5667. 8002a0c: 461a mov r2, r3
  5668. 8002a0e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5669. 8002a12: 4413 add r3, r2
  5670. 8002a14: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5671. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitSwitchUp\":%d, ", sensors->limitSwitchUp);
  5672. 8002a18: f107 0238 add.w r2, r7, #56 @ 0x38
  5673. 8002a1c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5674. 8002a20: 18d0 adds r0, r2, r3
  5675. 8002a22: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5676. 8002a26: f893 3024 ldrb.w r3, [r3, #36] @ 0x24
  5677. 8002a2a: 461a mov r2, r3
  5678. 8002a2c: 4945 ldr r1, [pc, #276] @ (8002b44 <MqttClientPubTask+0x5c0>)
  5679. 8002a2e: f027 f845 bl 8029abc <siprintf>
  5680. 8002a32: 4603 mov r3, r0
  5681. 8002a34: 461a mov r2, r3
  5682. 8002a36: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5683. 8002a3a: 4413 add r3, r2
  5684. 8002a3c: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5685. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitSwitchDown\":%d, ", sensors->limitSwitchDown);
  5686. 8002a40: f107 0238 add.w r2, r7, #56 @ 0x38
  5687. 8002a44: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5688. 8002a48: 18d0 adds r0, r2, r3
  5689. 8002a4a: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5690. 8002a4e: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  5691. 8002a52: 461a mov r2, r3
  5692. 8002a54: 493c ldr r1, [pc, #240] @ (8002b48 <MqttClientPubTask+0x5c4>)
  5693. 8002a56: f027 f831 bl 8029abc <siprintf>
  5694. 8002a5a: 4603 mov r3, r0
  5695. 8002a5c: 461a mov r2, r3
  5696. 8002a5e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5697. 8002a62: 4413 add r3, r2
  5698. 8002a64: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5699. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitSwitchCenter\":%d, ", sensors->limitSwitchCenter);
  5700. 8002a68: f107 0238 add.w r2, r7, #56 @ 0x38
  5701. 8002a6c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5702. 8002a70: 18d0 adds r0, r2, r3
  5703. 8002a72: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5704. 8002a76: f893 3026 ldrb.w r3, [r3, #38] @ 0x26
  5705. 8002a7a: 461a mov r2, r3
  5706. 8002a7c: 4933 ldr r1, [pc, #204] @ (8002b4c <MqttClientPubTask+0x5c8>)
  5707. 8002a7e: f027 f81d bl 8029abc <siprintf>
  5708. 8002a82: 4603 mov r3, r0
  5709. 8002a84: 461a mov r2, r3
  5710. 8002a86: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5711. 8002a8a: 4413 add r3, r2
  5712. 8002a8c: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5713. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"powerSupplyFailMask\":%d}", sensors->powerSupplyFailMask);
  5714. 8002a90: f107 0238 add.w r2, r7, #56 @ 0x38
  5715. 8002a94: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5716. 8002a98: 18d0 adds r0, r2, r3
  5717. 8002a9a: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5718. 8002a9e: f893 3027 ldrb.w r3, [r3, #39] @ 0x27
  5719. 8002aa2: 461a mov r2, r3
  5720. 8002aa4: 492a ldr r1, [pc, #168] @ (8002b50 <MqttClientPubTask+0x5cc>)
  5721. 8002aa6: f027 f809 bl 8029abc <siprintf>
  5722. 8002aaa: 4603 mov r3, r0
  5723. 8002aac: 461a mov r2, r3
  5724. 8002aae: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5725. 8002ab2: 4413 add r3, r2
  5726. 8002ab4: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5727. osMutexRelease (sensorsInfoMutex);
  5728. 8002ab8: 4b16 ldr r3, [pc, #88] @ (8002b14 <MqttClientPubTask+0x590>)
  5729. 8002aba: 681b ldr r3, [r3, #0]
  5730. 8002abc: 4618 mov r0, r3
  5731. 8002abe: f00e f856 bl 8010b6e <osMutexRelease>
  5732. message.payload = (void*)messageBuffer;
  5733. 8002ac2: f507 7312 add.w r3, r7, #584 @ 0x248
  5734. 8002ac6: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5735. 8002aca: f107 0238 add.w r2, r7, #56 @ 0x38
  5736. 8002ace: 609a str r2, [r3, #8]
  5737. message.payloadlen = strlen (messageBuffer);
  5738. 8002ad0: f107 0338 add.w r3, r7, #56 @ 0x38
  5739. 8002ad4: 4618 mov r0, r3
  5740. 8002ad6: f7fd fc63 bl 80003a0 <strlen>
  5741. 8002ada: 4602 mov r2, r0
  5742. 8002adc: f507 7312 add.w r3, r7, #584 @ 0x248
  5743. 8002ae0: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5744. 8002ae4: 60da str r2, [r3, #12]
  5745. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5746. 8002ae6: f107 0208 add.w r2, r7, #8
  5747. 8002aea: f107 0318 add.w r3, r7, #24
  5748. 8002aee: 4619 mov r1, r3
  5749. 8002af0: 4818 ldr r0, [pc, #96] @ (8002b54 <MqttClientPubTask+0x5d0>)
  5750. 8002af2: f024 fafc bl 80270ee <MQTTPublish>
  5751. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5752. 8002af6: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5753. 8002afa: 3301 adds r3, #1
  5754. 8002afc: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5755. 8002b00: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5756. 8002b04: 2b03 cmp r3, #3
  5757. 8002b06: f67f aea5 bls.w 8002854 <MqttClientPubTask+0x2d0>
  5758. }
  5759. }
  5760. }
  5761. osDelay (pdMS_TO_TICKS (1000));
  5762. 8002b0a: f44f 707a mov.w r0, #1000 @ 0x3e8
  5763. 8002b0e: f00d ff42 bl 8010996 <osDelay>
  5764. if (mqttClient.isconnected) {
  5765. 8002b12: e562 b.n 80025da <MqttClientPubTask+0x56>
  5766. 8002b14: 2400216c .word 0x2400216c
  5767. 8002b18: 240020b8 .word 0x240020b8
  5768. 8002b1c: 0802c688 .word 0x0802c688
  5769. 8002b20: 0802c694 .word 0x0802c694
  5770. 8002b24: 0802c6b4 .word 0x0802c6b4
  5771. 8002b28: 0802c6c8 .word 0x0802c6c8
  5772. 8002b2c: 0802c6dc .word 0x0802c6dc
  5773. 8002b30: 0802c6f0 .word 0x0802c6f0
  5774. 8002b34: 0802c704 .word 0x0802c704
  5775. 8002b38: 0802c720 .word 0x0802c720
  5776. 8002b3c: 0802c73c .word 0x0802c73c
  5777. 8002b40: 0802c758 .word 0x0802c758
  5778. 8002b44: 0802c774 .word 0x0802c774
  5779. 8002b48: 0802c78c .word 0x0802c78c
  5780. 8002b4c: 0802c7a4 .word 0x0802c7a4
  5781. 8002b50: 0802c7c0 .word 0x0802c7c0
  5782. 8002b54: 24000670 .word 0x24000670
  5783. 08002b58 <MqttConnectBroker>:
  5784. }
  5785. }
  5786. int MqttConnectBroker () {
  5787. 8002b58: b580 push {r7, lr}
  5788. 8002b5a: b09c sub sp, #112 @ 0x70
  5789. 8002b5c: af04 add r7, sp, #16
  5790. uint8_t boardNumber = 0;
  5791. 8002b5e: 2300 movs r3, #0
  5792. 8002b60: f887 305f strb.w r3, [r7, #95] @ 0x5f
  5793. int ret;
  5794. NewNetwork (&net);
  5795. 8002b64: 4839 ldr r0, [pc, #228] @ (8002c4c <MqttConnectBroker+0xf4>)
  5796. 8002b66: f024 fbfb bl 8027360 <NewNetwork>
  5797. ret = ConnectNetwork (&net, BROKER_IP, MQTT_PORT);
  5798. 8002b6a: f240 725b movw r2, #1883 @ 0x75b
  5799. 8002b6e: 4938 ldr r1, [pc, #224] @ (8002c50 <MqttConnectBroker+0xf8>)
  5800. 8002b70: 4836 ldr r0, [pc, #216] @ (8002c4c <MqttConnectBroker+0xf4>)
  5801. 8002b72: f024 fc11 bl 8027398 <ConnectNetwork>
  5802. 8002b76: 65b8 str r0, [r7, #88] @ 0x58
  5803. if (ret != MQTT_SUCCESS) {
  5804. 8002b78: 6dbb ldr r3, [r7, #88] @ 0x58
  5805. 8002b7a: 2b00 cmp r3, #0
  5806. 8002b7c: d005 beq.n 8002b8a <MqttConnectBroker+0x32>
  5807. printf ("ConnectNetwork failed.\n");
  5808. 8002b7e: 4835 ldr r0, [pc, #212] @ (8002c54 <MqttConnectBroker+0xfc>)
  5809. 8002b80: f026 ff94 bl 8029aac <puts>
  5810. return -1;
  5811. 8002b84: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5812. 8002b88: e05c b.n 8002c44 <MqttConnectBroker+0xec>
  5813. }
  5814. MQTTClientInit (&mqttClient, &net, 1000, sndBuffer, sizeof (sndBuffer), rcvBuffer, sizeof (rcvBuffer));
  5815. 8002b8a: f44f 6380 mov.w r3, #1024 @ 0x400
  5816. 8002b8e: 9302 str r3, [sp, #8]
  5817. 8002b90: 4b31 ldr r3, [pc, #196] @ (8002c58 <MqttConnectBroker+0x100>)
  5818. 8002b92: 9301 str r3, [sp, #4]
  5819. 8002b94: f44f 6380 mov.w r3, #1024 @ 0x400
  5820. 8002b98: 9300 str r3, [sp, #0]
  5821. 8002b9a: 4b30 ldr r3, [pc, #192] @ (8002c5c <MqttConnectBroker+0x104>)
  5822. 8002b9c: f44f 727a mov.w r2, #1000 @ 0x3e8
  5823. 8002ba0: 492a ldr r1, [pc, #168] @ (8002c4c <MqttConnectBroker+0xf4>)
  5824. 8002ba2: 482f ldr r0, [pc, #188] @ (8002c60 <MqttConnectBroker+0x108>)
  5825. 8002ba4: f023 fd16 bl 80265d4 <MQTTClientInit>
  5826. MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
  5827. 8002ba8: 4a2e ldr r2, [pc, #184] @ (8002c64 <MqttConnectBroker+0x10c>)
  5828. 8002baa: 463b mov r3, r7
  5829. 8002bac: 4611 mov r1, r2
  5830. 8002bae: 2258 movs r2, #88 @ 0x58
  5831. 8002bb0: 4618 mov r0, r3
  5832. 8002bb2: f027 f99c bl 8029eee <memcpy>
  5833. data.willFlag = 0;
  5834. 8002bb6: 2300 movs r3, #0
  5835. 8002bb8: 76fb strb r3, [r7, #27]
  5836. data.MQTTVersion = 3;
  5837. 8002bba: 2303 movs r3, #3
  5838. 8002bbc: 723b strb r3, [r7, #8]
  5839. data.clientID.cstring = "test_user1";
  5840. 8002bbe: 4b2a ldr r3, [pc, #168] @ (8002c68 <MqttConnectBroker+0x110>)
  5841. 8002bc0: 60fb str r3, [r7, #12]
  5842. data.username.cstring = "test_user1";
  5843. 8002bc2: 4b29 ldr r3, [pc, #164] @ (8002c68 <MqttConnectBroker+0x110>)
  5844. 8002bc4: 643b str r3, [r7, #64] @ 0x40
  5845. data.password.cstring = "1234";
  5846. 8002bc6: 4b29 ldr r3, [pc, #164] @ (8002c6c <MqttConnectBroker+0x114>)
  5847. 8002bc8: 64fb str r3, [r7, #76] @ 0x4c
  5848. data.keepAliveInterval = 100;
  5849. 8002bca: 2364 movs r3, #100 @ 0x64
  5850. 8002bcc: 833b strh r3, [r7, #24]
  5851. data.cleansession = 1;
  5852. 8002bce: 2301 movs r3, #1
  5853. 8002bd0: 76bb strb r3, [r7, #26]
  5854. ret = MQTTConnect (&mqttClient, &data);
  5855. 8002bd2: 463b mov r3, r7
  5856. 8002bd4: 4619 mov r1, r3
  5857. 8002bd6: 4822 ldr r0, [pc, #136] @ (8002c60 <MqttConnectBroker+0x108>)
  5858. 8002bd8: f024 f958 bl 8026e8c <MQTTConnect>
  5859. 8002bdc: 65b8 str r0, [r7, #88] @ 0x58
  5860. if (ret != MQTT_SUCCESS) {
  5861. 8002bde: 6dbb ldr r3, [r7, #88] @ 0x58
  5862. 8002be0: 2b00 cmp r3, #0
  5863. 8002be2: d008 beq.n 8002bf6 <MqttConnectBroker+0x9e>
  5864. net_disconnect (&net);
  5865. 8002be4: 4819 ldr r0, [pc, #100] @ (8002c4c <MqttConnectBroker+0xf4>)
  5866. 8002be6: f024 fc60 bl 80274aa <net_disconnect>
  5867. printf ("MQTTConnect failed. Code %d\n", ret);
  5868. 8002bea: 6db9 ldr r1, [r7, #88] @ 0x58
  5869. 8002bec: 4820 ldr r0, [pc, #128] @ (8002c70 <MqttConnectBroker+0x118>)
  5870. 8002bee: f026 fef5 bl 80299dc <iprintf>
  5871. return ret;
  5872. 8002bf2: 6dbb ldr r3, [r7, #88] @ 0x58
  5873. 8002bf4: e026 b.n 8002c44 <MqttConnectBroker+0xec>
  5874. }
  5875. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5876. 8002bf6: 2300 movs r3, #0
  5877. 8002bf8: f887 305f strb.w r3, [r7, #95] @ 0x5f
  5878. 8002bfc: e01a b.n 8002c34 <MqttConnectBroker+0xdc>
  5879. ret = MQTTSubscribe (&mqttClient, subscribeTopicNames[boardNumber], QOS0, MqttMessageArrived);
  5880. 8002bfe: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  5881. 8002c02: 4a1c ldr r2, [pc, #112] @ (8002c74 <MqttConnectBroker+0x11c>)
  5882. 8002c04: f852 1023 ldr.w r1, [r2, r3, lsl #2]
  5883. 8002c08: 4b1b ldr r3, [pc, #108] @ (8002c78 <MqttConnectBroker+0x120>)
  5884. 8002c0a: 2200 movs r2, #0
  5885. 8002c0c: 4814 ldr r0, [pc, #80] @ (8002c60 <MqttConnectBroker+0x108>)
  5886. 8002c0e: f024 fa58 bl 80270c2 <MQTTSubscribe>
  5887. 8002c12: 65b8 str r0, [r7, #88] @ 0x58
  5888. if (ret != MQTT_SUCCESS) {
  5889. 8002c14: 6dbb ldr r3, [r7, #88] @ 0x58
  5890. 8002c16: 2b00 cmp r3, #0
  5891. 8002c18: d007 beq.n 8002c2a <MqttConnectBroker+0xd2>
  5892. net_disconnect (&net);
  5893. 8002c1a: 480c ldr r0, [pc, #48] @ (8002c4c <MqttConnectBroker+0xf4>)
  5894. 8002c1c: f024 fc45 bl 80274aa <net_disconnect>
  5895. printf ("MQTTSubscribe failed.\n");
  5896. 8002c20: 4816 ldr r0, [pc, #88] @ (8002c7c <MqttConnectBroker+0x124>)
  5897. 8002c22: f026 ff43 bl 8029aac <puts>
  5898. return ret;
  5899. 8002c26: 6dbb ldr r3, [r7, #88] @ 0x58
  5900. 8002c28: e00c b.n 8002c44 <MqttConnectBroker+0xec>
  5901. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5902. 8002c2a: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  5903. 8002c2e: 3301 adds r3, #1
  5904. 8002c30: f887 305f strb.w r3, [r7, #95] @ 0x5f
  5905. 8002c34: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  5906. 8002c38: 2b03 cmp r3, #3
  5907. 8002c3a: d9e0 bls.n 8002bfe <MqttConnectBroker+0xa6>
  5908. }
  5909. }
  5910. printf ("MQTT_ConnectBroker O.K.\n");
  5911. 8002c3c: 4810 ldr r0, [pc, #64] @ (8002c80 <MqttConnectBroker+0x128>)
  5912. 8002c3e: f026 ff35 bl 8029aac <puts>
  5913. return MQTT_SUCCESS;
  5914. 8002c42: 2300 movs r3, #0
  5915. }
  5916. 8002c44: 4618 mov r0, r3
  5917. 8002c46: 3760 adds r7, #96 @ 0x60
  5918. 8002c48: 46bd mov sp, r7
  5919. 8002c4a: bd80 pop {r7, pc}
  5920. 8002c4c: 24000660 .word 0x24000660
  5921. 8002c50: 0802c7dc .word 0x0802c7dc
  5922. 8002c54: 0802c7ec .word 0x0802c7ec
  5923. 8002c58: 24000adc .word 0x24000adc
  5924. 8002c5c: 240006dc .word 0x240006dc
  5925. 8002c60: 24000670 .word 0x24000670
  5926. 8002c64: 0802c868 .word 0x0802c868
  5927. 8002c68: 0802c804 .word 0x0802c804
  5928. 8002c6c: 0802c810 .word 0x0802c810
  5929. 8002c70: 0802c818 .word 0x0802c818
  5930. 8002c74: 080309fc .word 0x080309fc
  5931. 8002c78: 08002c85 .word 0x08002c85
  5932. 8002c7c: 0802c838 .word 0x0802c838
  5933. 8002c80: 0802c850 .word 0x0802c850
  5934. 08002c84 <MqttMessageArrived>:
  5935. void MqttMessageArrived (MessageData* msg) {
  5936. 8002c84: b580 push {r7, lr}
  5937. 8002c86: b096 sub sp, #88 @ 0x58
  5938. 8002c88: af00 add r7, sp, #0
  5939. 8002c8a: 6078 str r0, [r7, #4]
  5940. SerialProtocolCommands spCommand = spUnknown;
  5941. 8002c8c: 2309 movs r3, #9
  5942. 8002c8e: f887 3057 strb.w r3, [r7, #87] @ 0x57
  5943. BoardNoOverTopic topicForBoard = unknownBoard;
  5944. 8002c92: 2305 movs r3, #5
  5945. 8002c94: f887 3056 strb.w r3, [r7, #86] @ 0x56
  5946. uint8_t boardNumber = 0;
  5947. 8002c98: 2300 movs r3, #0
  5948. 8002c9a: f887 3055 strb.w r3, [r7, #85] @ 0x55
  5949. MQTTMessage* message = msg->message;
  5950. 8002c9e: 687b ldr r3, [r7, #4]
  5951. 8002ca0: 681b ldr r3, [r3, #0]
  5952. 8002ca2: 64bb str r3, [r7, #72] @ 0x48
  5953. char topicName[32] = { 0 };
  5954. 8002ca4: 2300 movs r3, #0
  5955. 8002ca6: 61bb str r3, [r7, #24]
  5956. 8002ca8: f107 031c add.w r3, r7, #28
  5957. 8002cac: 2200 movs r2, #0
  5958. 8002cae: 601a str r2, [r3, #0]
  5959. 8002cb0: 605a str r2, [r3, #4]
  5960. 8002cb2: 609a str r2, [r3, #8]
  5961. 8002cb4: 60da str r2, [r3, #12]
  5962. 8002cb6: 611a str r2, [r3, #16]
  5963. 8002cb8: 615a str r2, [r3, #20]
  5964. 8002cba: 619a str r2, [r3, #24]
  5965. memcpy (topicName, msg->topicName->lenstring.data, msg->topicName->lenstring.len);
  5966. 8002cbc: 687b ldr r3, [r7, #4]
  5967. 8002cbe: 685b ldr r3, [r3, #4]
  5968. 8002cc0: 6899 ldr r1, [r3, #8]
  5969. 8002cc2: 687b ldr r3, [r7, #4]
  5970. 8002cc4: 685b ldr r3, [r3, #4]
  5971. 8002cc6: 685b ldr r3, [r3, #4]
  5972. 8002cc8: 461a mov r2, r3
  5973. 8002cca: f107 0318 add.w r3, r7, #24
  5974. 8002cce: 4618 mov r0, r3
  5975. 8002cd0: f027 f90d bl 8029eee <memcpy>
  5976. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5977. 8002cd4: 2300 movs r3, #0
  5978. 8002cd6: f887 3055 strb.w r3, [r7, #85] @ 0x55
  5979. 8002cda: e017 b.n 8002d0c <MqttMessageArrived+0x88>
  5980. if (strcmp (topicName, subscribeTopicNames[boardNumber]) == 0) {
  5981. 8002cdc: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  5982. 8002ce0: 4a90 ldr r2, [pc, #576] @ (8002f24 <MqttMessageArrived+0x2a0>)
  5983. 8002ce2: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  5984. 8002ce6: f107 0318 add.w r3, r7, #24
  5985. 8002cea: 4611 mov r1, r2
  5986. 8002cec: 4618 mov r0, r3
  5987. 8002cee: f7fd faf7 bl 80002e0 <strcmp>
  5988. 8002cf2: 4603 mov r3, r0
  5989. 8002cf4: 2b00 cmp r3, #0
  5990. 8002cf6: d104 bne.n 8002d02 <MqttMessageArrived+0x7e>
  5991. topicForBoard = (BoardNoOverTopic)(boardNumber);
  5992. 8002cf8: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  5993. 8002cfc: f887 3056 strb.w r3, [r7, #86] @ 0x56
  5994. break;
  5995. 8002d00: e008 b.n 8002d14 <MqttMessageArrived+0x90>
  5996. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5997. 8002d02: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  5998. 8002d06: 3301 adds r3, #1
  5999. 8002d08: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6000. 8002d0c: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6001. 8002d10: 2b03 cmp r3, #3
  6002. 8002d12: d9e3 bls.n 8002cdc <MqttMessageArrived+0x58>
  6003. }
  6004. }
  6005. cJSON* json = cJSON_Parse (message->payload);
  6006. 8002d14: 6cbb ldr r3, [r7, #72] @ 0x48
  6007. 8002d16: 689b ldr r3, [r3, #8]
  6008. 8002d18: 4618 mov r0, r3
  6009. 8002d1a: f7fe fc1b bl 8001554 <cJSON_Parse>
  6010. 8002d1e: 6478 str r0, [r7, #68] @ 0x44
  6011. const cJSON* objectItem = NULL;
  6012. 8002d20: 2300 movs r3, #0
  6013. 8002d22: 643b str r3, [r7, #64] @ 0x40
  6014. InterProcessData data = { 0 };
  6015. 8002d24: f107 030c add.w r3, r7, #12
  6016. 8002d28: 2200 movs r2, #0
  6017. 8002d2a: 601a str r2, [r3, #0]
  6018. 8002d2c: 605a str r2, [r3, #4]
  6019. 8002d2e: 609a str r2, [r3, #8]
  6020. for (int topicCmdNumber = 0; topicCmdNumber < MAX_COMMANDS_IN_MQTT_PAYLOAD; topicCmdNumber++) {
  6021. 8002d30: 2300 movs r3, #0
  6022. 8002d32: 653b str r3, [r7, #80] @ 0x50
  6023. 8002d34: e0e0 b.n 8002ef8 <MqttMessageArrived+0x274>
  6024. spCommand = spUnknown;
  6025. 8002d36: 2309 movs r3, #9
  6026. 8002d38: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6027. objectItem = cJSON_GetObjectItemCaseSensitive (json, topicCommands[topicCmdNumber]);
  6028. 8002d3c: 4a7a ldr r2, [pc, #488] @ (8002f28 <MqttMessageArrived+0x2a4>)
  6029. 8002d3e: 6d3b ldr r3, [r7, #80] @ 0x50
  6030. 8002d40: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  6031. 8002d44: 4619 mov r1, r3
  6032. 8002d46: 6c78 ldr r0, [r7, #68] @ 0x44
  6033. 8002d48: f7fe ff6e bl 8001c28 <cJSON_GetObjectItemCaseSensitive>
  6034. 8002d4c: 6438 str r0, [r7, #64] @ 0x40
  6035. if (objectItem != NULL) {
  6036. 8002d4e: 6c3b ldr r3, [r7, #64] @ 0x40
  6037. 8002d50: 2b00 cmp r3, #0
  6038. 8002d52: f000 80ce beq.w 8002ef2 <MqttMessageArrived+0x26e>
  6039. switch (topicCmdNumber) {
  6040. 8002d56: 6d3b ldr r3, [r7, #80] @ 0x50
  6041. 8002d58: 2b07 cmp r3, #7
  6042. 8002d5a: d875 bhi.n 8002e48 <MqttMessageArrived+0x1c4>
  6043. 8002d5c: a201 add r2, pc, #4 @ (adr r2, 8002d64 <MqttMessageArrived+0xe0>)
  6044. 8002d5e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6045. 8002d62: bf00 nop
  6046. 8002d64: 08002d85 .word 0x08002d85
  6047. 8002d68: 08002d8b .word 0x08002d8b
  6048. 8002d6c: 08002d99 .word 0x08002d99
  6049. 8002d70: 08002e03 .word 0x08002e03
  6050. 8002d74: 08002e13 .word 0x08002e13
  6051. 8002d78: 08002e19 .word 0x08002e19
  6052. 8002d7c: 08002e43 .word 0x08002e43
  6053. 8002d80: 08002e49 .word 0x08002e49
  6054. case 0: spCommand = spSetFanSpeed;
  6055. 8002d84: 2302 movs r3, #2
  6056. 8002d86: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6057. case 1:
  6058. if (spCommand == spUnknown) {
  6059. 8002d8a: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6060. 8002d8e: 2b09 cmp r3, #9
  6061. 8002d90: d102 bne.n 8002d98 <MqttMessageArrived+0x114>
  6062. spCommand = spSetMotorXOn;
  6063. 8002d92: 2303 movs r3, #3
  6064. 8002d94: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6065. }
  6066. case 2:
  6067. if (spCommand == spUnknown) {
  6068. 8002d98: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6069. 8002d9c: 2b09 cmp r3, #9
  6070. 8002d9e: d102 bne.n 8002da6 <MqttMessageArrived+0x122>
  6071. spCommand = spSetMotorYOn;
  6072. 8002da0: 2304 movs r3, #4
  6073. 8002da2: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6074. }
  6075. if (cJSON_IsArray (objectItem)) {
  6076. 8002da6: 6c38 ldr r0, [r7, #64] @ 0x40
  6077. 8002da8: f7fe ff64 bl 8001c74 <cJSON_IsArray>
  6078. 8002dac: 4603 mov r3, r0
  6079. 8002dae: 2b00 cmp r3, #0
  6080. 8002db0: d04c beq.n 8002e4c <MqttMessageArrived+0x1c8>
  6081. data.spCommand = spCommand;
  6082. 8002db2: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6083. 8002db6: 733b strb r3, [r7, #12]
  6084. int arraySize = cJSON_GetArraySize (objectItem);
  6085. 8002db8: 6c38 ldr r0, [r7, #64] @ 0x40
  6086. 8002dba: f7fe fe95 bl 8001ae8 <cJSON_GetArraySize>
  6087. 8002dbe: 63f8 str r0, [r7, #60] @ 0x3c
  6088. if (arraySize == 2) {
  6089. 8002dc0: 6bfb ldr r3, [r7, #60] @ 0x3c
  6090. 8002dc2: 2b02 cmp r3, #2
  6091. 8002dc4: d142 bne.n 8002e4c <MqttMessageArrived+0x1c8>
  6092. for (int i = 0; i < arraySize; i++) {
  6093. 8002dc6: 2300 movs r3, #0
  6094. 8002dc8: 64fb str r3, [r7, #76] @ 0x4c
  6095. 8002dca: e015 b.n 8002df8 <MqttMessageArrived+0x174>
  6096. cJSON* item = cJSON_GetArrayItem (objectItem, i);
  6097. 8002dcc: 6cf9 ldr r1, [r7, #76] @ 0x4c
  6098. 8002dce: 6c38 ldr r0, [r7, #64] @ 0x40
  6099. 8002dd0: f7fe fece bl 8001b70 <cJSON_GetArrayItem>
  6100. 8002dd4: 63b8 str r0, [r7, #56] @ 0x38
  6101. if (cJSON_IsNumber (item)) {
  6102. 8002dd6: 6bb8 ldr r0, [r7, #56] @ 0x38
  6103. 8002dd8: f7fe ff35 bl 8001c46 <cJSON_IsNumber>
  6104. 8002ddc: 4603 mov r3, r0
  6105. 8002dde: 2b00 cmp r3, #0
  6106. 8002de0: d007 beq.n 8002df2 <MqttMessageArrived+0x16e>
  6107. data.values.integerValues.value[i] = item->valueint;
  6108. 8002de2: 6bbb ldr r3, [r7, #56] @ 0x38
  6109. 8002de4: 695a ldr r2, [r3, #20]
  6110. 8002de6: 6cfb ldr r3, [r7, #76] @ 0x4c
  6111. 8002de8: 009b lsls r3, r3, #2
  6112. 8002dea: 3358 adds r3, #88 @ 0x58
  6113. 8002dec: 443b add r3, r7
  6114. 8002dee: f843 2c48 str.w r2, [r3, #-72]
  6115. for (int i = 0; i < arraySize; i++) {
  6116. 8002df2: 6cfb ldr r3, [r7, #76] @ 0x4c
  6117. 8002df4: 3301 adds r3, #1
  6118. 8002df6: 64fb str r3, [r7, #76] @ 0x4c
  6119. 8002df8: 6cfa ldr r2, [r7, #76] @ 0x4c
  6120. 8002dfa: 6bfb ldr r3, [r7, #60] @ 0x3c
  6121. 8002dfc: 429a cmp r2, r3
  6122. 8002dfe: dbe5 blt.n 8002dcc <MqttMessageArrived+0x148>
  6123. }
  6124. }
  6125. }
  6126. }
  6127. break;
  6128. 8002e00: e024 b.n 8002e4c <MqttMessageArrived+0x1c8>
  6129. case 3:
  6130. data.spCommand = spSetDiodeOn;
  6131. 8002e02: 2307 movs r3, #7
  6132. 8002e04: 733b strb r3, [r7, #12]
  6133. data.values.integerValues.value[0] = objectItem->valueint;
  6134. 8002e06: 6c3b ldr r3, [r7, #64] @ 0x40
  6135. 8002e08: 695b ldr r3, [r3, #20]
  6136. 8002e0a: 613b str r3, [r7, #16]
  6137. data.values.integerValues.value[1] = 0;
  6138. 8002e0c: 2300 movs r3, #0
  6139. 8002e0e: 617b str r3, [r7, #20]
  6140. break;
  6141. 8002e10: e01d b.n 8002e4e <MqttMessageArrived+0x1ca>
  6142. case 4: spCommand = spSetmotorXMaxCurrent;
  6143. 8002e12: 2305 movs r3, #5
  6144. 8002e14: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6145. case 5:
  6146. if (spCommand == spUnknown) {
  6147. 8002e18: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6148. 8002e1c: 2b09 cmp r3, #9
  6149. 8002e1e: d102 bne.n 8002e26 <MqttMessageArrived+0x1a2>
  6150. spCommand = spSetmotorYMaxCurrent;
  6151. 8002e20: 2306 movs r3, #6
  6152. 8002e22: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6153. }
  6154. data.spCommand = spCommand;
  6155. 8002e26: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6156. 8002e2a: 733b strb r3, [r7, #12]
  6157. data.values.flaotValues.value[0] = objectItem->valuedouble;
  6158. 8002e2c: 6c3b ldr r3, [r7, #64] @ 0x40
  6159. 8002e2e: ed93 7b06 vldr d7, [r3, #24]
  6160. 8002e32: eef7 7bc7 vcvt.f32.f64 s15, d7
  6161. 8002e36: edc7 7a04 vstr s15, [r7, #16]
  6162. data.values.flaotValues.value[1] = 0.0;
  6163. 8002e3a: f04f 0300 mov.w r3, #0
  6164. 8002e3e: 617b str r3, [r7, #20]
  6165. break;
  6166. 8002e40: e005 b.n 8002e4e <MqttMessageArrived+0x1ca>
  6167. case 6:
  6168. data.spCommand = spClearPeakMeasurments;
  6169. 8002e42: 2308 movs r3, #8
  6170. 8002e44: 733b strb r3, [r7, #12]
  6171. break;
  6172. 8002e46: e002 b.n 8002e4e <MqttMessageArrived+0x1ca>
  6173. case 7:
  6174. break;
  6175. default: break;
  6176. 8002e48: bf00 nop
  6177. 8002e4a: e000 b.n 8002e4e <MqttMessageArrived+0x1ca>
  6178. break;
  6179. 8002e4c: bf00 nop
  6180. }
  6181. switch (topicForBoard) {
  6182. 8002e4e: f897 3056 ldrb.w r3, [r7, #86] @ 0x56
  6183. 8002e52: 2b04 cmp r3, #4
  6184. 8002e54: d84c bhi.n 8002ef0 <MqttMessageArrived+0x26c>
  6185. 8002e56: a201 add r2, pc, #4 @ (adr r2, 8002e5c <MqttMessageArrived+0x1d8>)
  6186. 8002e58: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6187. 8002e5c: 08002ef1 .word 0x08002ef1
  6188. 8002e60: 08002e71 .word 0x08002e71
  6189. 8002e64: 08002e91 .word 0x08002e91
  6190. 8002e68: 08002eb1 .word 0x08002eb1
  6191. 8002e6c: 08002ed1 .word 0x08002ed1
  6192. case main_board:
  6193. break;
  6194. case board_1:
  6195. #if 1
  6196. if (uart1TaskData.sendCmdToSlaveQueue != NULL) {
  6197. 8002e70: 4b2e ldr r3, [pc, #184] @ (8002f2c <MqttMessageArrived+0x2a8>)
  6198. 8002e72: 6adb ldr r3, [r3, #44] @ 0x2c
  6199. 8002e74: 2b00 cmp r3, #0
  6200. 8002e76: d007 beq.n 8002e88 <MqttMessageArrived+0x204>
  6201. osMessageQueuePut (uart1TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6202. 8002e78: 4b2c ldr r3, [pc, #176] @ (8002f2c <MqttMessageArrived+0x2a8>)
  6203. 8002e7a: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6204. 8002e7c: f107 010c add.w r1, r7, #12
  6205. 8002e80: 2364 movs r3, #100 @ 0x64
  6206. 8002e82: 2200 movs r2, #0
  6207. 8002e84: f00e f868 bl 8010f58 <osMessageQueuePut>
  6208. #else
  6209. if (uart8TaskData.sendCmdToSlaveQueue != NULL) {
  6210. osMessageQueuePut (uart8TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6211. }
  6212. #endif
  6213. printf ("Send cmd to board 1\n");
  6214. 8002e88: 4829 ldr r0, [pc, #164] @ (8002f30 <MqttMessageArrived+0x2ac>)
  6215. 8002e8a: f026 fe0f bl 8029aac <puts>
  6216. break;
  6217. 8002e8e: e030 b.n 8002ef2 <MqttMessageArrived+0x26e>
  6218. case board_2:
  6219. if (uart3TaskData.sendCmdToSlaveQueue != NULL) {
  6220. 8002e90: 4b28 ldr r3, [pc, #160] @ (8002f34 <MqttMessageArrived+0x2b0>)
  6221. 8002e92: 6adb ldr r3, [r3, #44] @ 0x2c
  6222. 8002e94: 2b00 cmp r3, #0
  6223. 8002e96: d007 beq.n 8002ea8 <MqttMessageArrived+0x224>
  6224. osMessageQueuePut (uart3TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6225. 8002e98: 4b26 ldr r3, [pc, #152] @ (8002f34 <MqttMessageArrived+0x2b0>)
  6226. 8002e9a: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6227. 8002e9c: f107 010c add.w r1, r7, #12
  6228. 8002ea0: 2364 movs r3, #100 @ 0x64
  6229. 8002ea2: 2200 movs r2, #0
  6230. 8002ea4: f00e f858 bl 8010f58 <osMessageQueuePut>
  6231. }
  6232. printf ("Send cmd to board 2\n");
  6233. 8002ea8: 4823 ldr r0, [pc, #140] @ (8002f38 <MqttMessageArrived+0x2b4>)
  6234. 8002eaa: f026 fdff bl 8029aac <puts>
  6235. break;
  6236. 8002eae: e020 b.n 8002ef2 <MqttMessageArrived+0x26e>
  6237. case board_3:
  6238. if (uart6TaskData.sendCmdToSlaveQueue != NULL) {
  6239. 8002eb0: 4b22 ldr r3, [pc, #136] @ (8002f3c <MqttMessageArrived+0x2b8>)
  6240. 8002eb2: 6adb ldr r3, [r3, #44] @ 0x2c
  6241. 8002eb4: 2b00 cmp r3, #0
  6242. 8002eb6: d007 beq.n 8002ec8 <MqttMessageArrived+0x244>
  6243. osMessageQueuePut (uart6TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6244. 8002eb8: 4b20 ldr r3, [pc, #128] @ (8002f3c <MqttMessageArrived+0x2b8>)
  6245. 8002eba: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6246. 8002ebc: f107 010c add.w r1, r7, #12
  6247. 8002ec0: 2364 movs r3, #100 @ 0x64
  6248. 8002ec2: 2200 movs r2, #0
  6249. 8002ec4: f00e f848 bl 8010f58 <osMessageQueuePut>
  6250. }
  6251. printf ("Send cmd to board 3\n");
  6252. 8002ec8: 481d ldr r0, [pc, #116] @ (8002f40 <MqttMessageArrived+0x2bc>)
  6253. 8002eca: f026 fdef bl 8029aac <puts>
  6254. break;
  6255. 8002ece: e010 b.n 8002ef2 <MqttMessageArrived+0x26e>
  6256. case board_4:
  6257. if (uart2TaskData.sendCmdToSlaveQueue != NULL) {
  6258. 8002ed0: 4b1c ldr r3, [pc, #112] @ (8002f44 <MqttMessageArrived+0x2c0>)
  6259. 8002ed2: 6adb ldr r3, [r3, #44] @ 0x2c
  6260. 8002ed4: 2b00 cmp r3, #0
  6261. 8002ed6: d007 beq.n 8002ee8 <MqttMessageArrived+0x264>
  6262. osMessageQueuePut (uart2TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6263. 8002ed8: 4b1a ldr r3, [pc, #104] @ (8002f44 <MqttMessageArrived+0x2c0>)
  6264. 8002eda: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6265. 8002edc: f107 010c add.w r1, r7, #12
  6266. 8002ee0: 2364 movs r3, #100 @ 0x64
  6267. 8002ee2: 2200 movs r2, #0
  6268. 8002ee4: f00e f838 bl 8010f58 <osMessageQueuePut>
  6269. }
  6270. printf ("Send cmd to board 4\n");
  6271. 8002ee8: 4817 ldr r0, [pc, #92] @ (8002f48 <MqttMessageArrived+0x2c4>)
  6272. 8002eea: f026 fddf bl 8029aac <puts>
  6273. break;
  6274. 8002eee: e000 b.n 8002ef2 <MqttMessageArrived+0x26e>
  6275. default: break;
  6276. 8002ef0: bf00 nop
  6277. for (int topicCmdNumber = 0; topicCmdNumber < MAX_COMMANDS_IN_MQTT_PAYLOAD; topicCmdNumber++) {
  6278. 8002ef2: 6d3b ldr r3, [r7, #80] @ 0x50
  6279. 8002ef4: 3301 adds r3, #1
  6280. 8002ef6: 653b str r3, [r7, #80] @ 0x50
  6281. 8002ef8: 6d3b ldr r3, [r7, #80] @ 0x50
  6282. 8002efa: 2b08 cmp r3, #8
  6283. 8002efc: f77f af1b ble.w 8002d36 <MqttMessageArrived+0xb2>
  6284. }
  6285. }
  6286. }
  6287. cJSON_Delete (json);
  6288. 8002f00: 6c78 ldr r0, [r7, #68] @ 0x44
  6289. 8002f02: f7fd fe43 bl 8000b8c <cJSON_Delete>
  6290. printf ("MQTT Topic:%s, MSG[%d]:%s\n", topicName, (int)message->payloadlen, (char*)message->payload);
  6291. 8002f06: 6cbb ldr r3, [r7, #72] @ 0x48
  6292. 8002f08: 68db ldr r3, [r3, #12]
  6293. 8002f0a: 461a mov r2, r3
  6294. 8002f0c: 6cbb ldr r3, [r7, #72] @ 0x48
  6295. 8002f0e: 689b ldr r3, [r3, #8]
  6296. 8002f10: f107 0118 add.w r1, r7, #24
  6297. 8002f14: 480d ldr r0, [pc, #52] @ (8002f4c <MqttMessageArrived+0x2c8>)
  6298. 8002f16: f026 fd61 bl 80299dc <iprintf>
  6299. }
  6300. 8002f1a: bf00 nop
  6301. 8002f1c: 3758 adds r7, #88 @ 0x58
  6302. 8002f1e: 46bd mov sp, r7
  6303. 8002f20: bd80 pop {r7, pc}
  6304. 8002f22: bf00 nop
  6305. 8002f24: 080309fc .word 0x080309fc
  6306. 8002f28: 08030a10 .word 0x08030a10
  6307. 8002f2c: 24001e2c .word 0x24001e2c
  6308. 8002f30: 0802c8c0 .word 0x0802c8c0
  6309. 8002f34: 24001e64 .word 0x24001e64
  6310. 8002f38: 0802c8d4 .word 0x0802c8d4
  6311. 8002f3c: 24001e9c .word 0x24001e9c
  6312. 8002f40: 0802c8e8 .word 0x0802c8e8
  6313. 8002f44: 24001ed4 .word 0x24001ed4
  6314. 8002f48: 0802c8fc .word 0x0802c8fc
  6315. 8002f4c: 0802c910 .word 0x0802c910
  6316. 08002f50 <mqtt_cli_init>:
  6317. void mqtt_cli_init (void) {
  6318. 8002f50: b580 push {r7, lr}
  6319. 8002f52: af00 add r7, sp, #0
  6320. mqttClientSubTaskHandle = osThreadNew (MqttClientSubTask, NULL, &mqttClientSubTaskAttr); // subscribe task
  6321. 8002f54: 4a08 ldr r2, [pc, #32] @ (8002f78 <mqtt_cli_init+0x28>)
  6322. 8002f56: 2100 movs r1, #0
  6323. 8002f58: 4808 ldr r0, [pc, #32] @ (8002f7c <mqtt_cli_init+0x2c>)
  6324. 8002f5a: f00d fc7e bl 801085a <osThreadNew>
  6325. 8002f5e: 4603 mov r3, r0
  6326. 8002f60: 4a07 ldr r2, [pc, #28] @ (8002f80 <mqtt_cli_init+0x30>)
  6327. 8002f62: 6013 str r3, [r2, #0]
  6328. mqttClientPubTaskHandle = osThreadNew (MqttClientPubTask, NULL, &mqttClientPubTaskAttr); // publish task
  6329. 8002f64: 4a07 ldr r2, [pc, #28] @ (8002f84 <mqtt_cli_init+0x34>)
  6330. 8002f66: 2100 movs r1, #0
  6331. 8002f68: 4807 ldr r0, [pc, #28] @ (8002f88 <mqtt_cli_init+0x38>)
  6332. 8002f6a: f00d fc76 bl 801085a <osThreadNew>
  6333. 8002f6e: 4603 mov r3, r0
  6334. 8002f70: 4a06 ldr r2, [pc, #24] @ (8002f8c <mqtt_cli_init+0x3c>)
  6335. 8002f72: 6013 str r3, [r2, #0]
  6336. }
  6337. 8002f74: bf00 nop
  6338. 8002f76: bd80 pop {r7, pc}
  6339. 8002f78: 08030a34 .word 0x08030a34
  6340. 8002f7c: 08002515 .word 0x08002515
  6341. 8002f80: 24000658 .word 0x24000658
  6342. 8002f84: 08030a58 .word 0x08030a58
  6343. 8002f88: 08002585 .word 0x08002585
  6344. 8002f8c: 2400065c .word 0x2400065c
  6345. 08002f90 <WriteDataToBuffer>:
  6346. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6347. }
  6348. *buffPos = newBuffPos;
  6349. }
  6350. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6351. 8002f90: b480 push {r7}
  6352. 8002f92: b089 sub sp, #36 @ 0x24
  6353. 8002f94: af00 add r7, sp, #0
  6354. 8002f96: 60f8 str r0, [r7, #12]
  6355. 8002f98: 60b9 str r1, [r7, #8]
  6356. 8002f9a: 607a str r2, [r7, #4]
  6357. 8002f9c: 70fb strb r3, [r7, #3]
  6358. uint32_t* uDataPtr = data;
  6359. 8002f9e: 687b ldr r3, [r7, #4]
  6360. 8002fa0: 61bb str r3, [r7, #24]
  6361. uint32_t uData = *uDataPtr;
  6362. 8002fa2: 69bb ldr r3, [r7, #24]
  6363. 8002fa4: 681b ldr r3, [r3, #0]
  6364. 8002fa6: 617b str r3, [r7, #20]
  6365. uint8_t i = 0;
  6366. 8002fa8: 2300 movs r3, #0
  6367. 8002faa: 77fb strb r3, [r7, #31]
  6368. uint8_t newBuffPos = *buffPos;
  6369. 8002fac: 68bb ldr r3, [r7, #8]
  6370. 8002fae: 881b ldrh r3, [r3, #0]
  6371. 8002fb0: 77bb strb r3, [r7, #30]
  6372. for (i = 0; i < dataSize; i++) {
  6373. 8002fb2: 2300 movs r3, #0
  6374. 8002fb4: 77fb strb r3, [r7, #31]
  6375. 8002fb6: e00e b.n 8002fd6 <WriteDataToBuffer+0x46>
  6376. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6377. 8002fb8: 7ffb ldrb r3, [r7, #31]
  6378. 8002fba: 00db lsls r3, r3, #3
  6379. 8002fbc: 697a ldr r2, [r7, #20]
  6380. 8002fbe: 40da lsrs r2, r3
  6381. 8002fc0: 7fbb ldrb r3, [r7, #30]
  6382. 8002fc2: 1c59 adds r1, r3, #1
  6383. 8002fc4: 77b9 strb r1, [r7, #30]
  6384. 8002fc6: 4619 mov r1, r3
  6385. 8002fc8: 68fb ldr r3, [r7, #12]
  6386. 8002fca: 440b add r3, r1
  6387. 8002fcc: b2d2 uxtb r2, r2
  6388. 8002fce: 701a strb r2, [r3, #0]
  6389. for (i = 0; i < dataSize; i++) {
  6390. 8002fd0: 7ffb ldrb r3, [r7, #31]
  6391. 8002fd2: 3301 adds r3, #1
  6392. 8002fd4: 77fb strb r3, [r7, #31]
  6393. 8002fd6: 7ffa ldrb r2, [r7, #31]
  6394. 8002fd8: 78fb ldrb r3, [r7, #3]
  6395. 8002fda: 429a cmp r2, r3
  6396. 8002fdc: d3ec bcc.n 8002fb8 <WriteDataToBuffer+0x28>
  6397. }
  6398. *buffPos = newBuffPos;
  6399. 8002fde: 7fbb ldrb r3, [r7, #30]
  6400. 8002fe0: b29a uxth r2, r3
  6401. 8002fe2: 68bb ldr r3, [r7, #8]
  6402. 8002fe4: 801a strh r2, [r3, #0]
  6403. }
  6404. 8002fe6: bf00 nop
  6405. 8002fe8: 3724 adds r7, #36 @ 0x24
  6406. 8002fea: 46bd mov sp, r7
  6407. 8002fec: f85d 7b04 ldr.w r7, [sp], #4
  6408. 8002ff0: 4770 bx lr
  6409. 08002ff2 <ReadFloatFromBuffer>:
  6410. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  6411. {
  6412. 8002ff2: b480 push {r7}
  6413. 8002ff4: b087 sub sp, #28
  6414. 8002ff6: af00 add r7, sp, #0
  6415. 8002ff8: 60f8 str r0, [r7, #12]
  6416. 8002ffa: 60b9 str r1, [r7, #8]
  6417. 8002ffc: 607a str r2, [r7, #4]
  6418. uint32_t* word = (uint32_t *)data;
  6419. 8002ffe: 687b ldr r3, [r7, #4]
  6420. 8003000: 617b str r3, [r7, #20]
  6421. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  6422. 8003002: 68bb ldr r3, [r7, #8]
  6423. 8003004: 881b ldrh r3, [r3, #0]
  6424. 8003006: 3303 adds r3, #3
  6425. 8003008: 68fa ldr r2, [r7, #12]
  6426. 800300a: 4413 add r3, r2
  6427. 800300c: 781b ldrb r3, [r3, #0]
  6428. 800300e: 061a lsls r2, r3, #24
  6429. 8003010: 68bb ldr r3, [r7, #8]
  6430. 8003012: 881b ldrh r3, [r3, #0]
  6431. 8003014: 3302 adds r3, #2
  6432. 8003016: 68f9 ldr r1, [r7, #12]
  6433. 8003018: 440b add r3, r1
  6434. 800301a: 781b ldrb r3, [r3, #0]
  6435. 800301c: 041b lsls r3, r3, #16
  6436. 800301e: 431a orrs r2, r3
  6437. 8003020: 68bb ldr r3, [r7, #8]
  6438. 8003022: 881b ldrh r3, [r3, #0]
  6439. 8003024: 3301 adds r3, #1
  6440. 8003026: 68f9 ldr r1, [r7, #12]
  6441. 8003028: 440b add r3, r1
  6442. 800302a: 781b ldrb r3, [r3, #0]
  6443. 800302c: 021b lsls r3, r3, #8
  6444. 800302e: 4313 orrs r3, r2
  6445. 8003030: 68ba ldr r2, [r7, #8]
  6446. 8003032: 8812 ldrh r2, [r2, #0]
  6447. 8003034: 4611 mov r1, r2
  6448. 8003036: 68fa ldr r2, [r7, #12]
  6449. 8003038: 440a add r2, r1
  6450. 800303a: 7812 ldrb r2, [r2, #0]
  6451. 800303c: 4313 orrs r3, r2
  6452. 800303e: 461a mov r2, r3
  6453. 8003040: 697b ldr r3, [r7, #20]
  6454. 8003042: 601a str r2, [r3, #0]
  6455. *buffPos += sizeof(float);
  6456. 8003044: 68bb ldr r3, [r7, #8]
  6457. 8003046: 881b ldrh r3, [r3, #0]
  6458. 8003048: 3304 adds r3, #4
  6459. 800304a: b29a uxth r2, r3
  6460. 800304c: 68bb ldr r3, [r7, #8]
  6461. 800304e: 801a strh r2, [r3, #0]
  6462. }
  6463. 8003050: bf00 nop
  6464. 8003052: 371c adds r7, #28
  6465. 8003054: 46bd mov sp, r7
  6466. 8003056: f85d 7b04 ldr.w r7, [sp], #4
  6467. 800305a: 4770 bx lr
  6468. 0800305c <ReadByteFromBufer>:
  6469. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6470. *buffPos += sizeof(uint32_t);
  6471. }
  6472. void ReadByteFromBufer(uint8_t* buff, uint16_t* buffPos, uint8_t* data)
  6473. {
  6474. 800305c: b480 push {r7}
  6475. 800305e: b085 sub sp, #20
  6476. 8003060: af00 add r7, sp, #0
  6477. 8003062: 60f8 str r0, [r7, #12]
  6478. 8003064: 60b9 str r1, [r7, #8]
  6479. 8003066: 607a str r2, [r7, #4]
  6480. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6481. 8003068: 68bb ldr r3, [r7, #8]
  6482. 800306a: 881b ldrh r3, [r3, #0]
  6483. 800306c: 3301 adds r3, #1
  6484. 800306e: 68fa ldr r2, [r7, #12]
  6485. 8003070: 4413 add r3, r2
  6486. 8003072: 781b ldrb r3, [r3, #0]
  6487. 8003074: 021b lsls r3, r3, #8
  6488. 8003076: b25a sxtb r2, r3
  6489. 8003078: 68bb ldr r3, [r7, #8]
  6490. 800307a: 881b ldrh r3, [r3, #0]
  6491. 800307c: 4619 mov r1, r3
  6492. 800307e: 68fb ldr r3, [r7, #12]
  6493. 8003080: 440b add r3, r1
  6494. 8003082: 781b ldrb r3, [r3, #0]
  6495. 8003084: b25b sxtb r3, r3
  6496. 8003086: 4313 orrs r3, r2
  6497. 8003088: b25b sxtb r3, r3
  6498. 800308a: b2da uxtb r2, r3
  6499. 800308c: 687b ldr r3, [r7, #4]
  6500. 800308e: 701a strb r2, [r3, #0]
  6501. *buffPos += sizeof(uint8_t);
  6502. 8003090: 68bb ldr r3, [r7, #8]
  6503. 8003092: 881b ldrh r3, [r3, #0]
  6504. 8003094: 3301 adds r3, #1
  6505. 8003096: b29a uxth r2, r3
  6506. 8003098: 68bb ldr r3, [r7, #8]
  6507. 800309a: 801a strh r2, [r3, #0]
  6508. }
  6509. 800309c: bf00 nop
  6510. 800309e: 3714 adds r7, #20
  6511. 80030a0: 46bd mov sp, r7
  6512. 80030a2: f85d 7b04 ldr.w r7, [sp], #4
  6513. 80030a6: 4770 bx lr
  6514. 080030a8 <PrepareReqFrame>:
  6515. uint16_t PrepareReqFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, uint8_t* dataBuffer, uint16_t dataLength) {
  6516. 80030a8: b580 push {r7, lr}
  6517. 80030aa: b086 sub sp, #24
  6518. 80030ac: af00 add r7, sp, #0
  6519. 80030ae: 60f8 str r0, [r7, #12]
  6520. 80030b0: 607b str r3, [r7, #4]
  6521. 80030b2: 460b mov r3, r1
  6522. 80030b4: 817b strh r3, [r7, #10]
  6523. 80030b6: 4613 mov r3, r2
  6524. 80030b8: 727b strb r3, [r7, #9]
  6525. uint16_t crc = 0;
  6526. 80030ba: 2300 movs r3, #0
  6527. 80030bc: 82bb strh r3, [r7, #20]
  6528. uint16_t txBufferPos = 0;
  6529. 80030be: 2300 movs r3, #0
  6530. 80030c0: 82fb strh r3, [r7, #22]
  6531. uint16_t frameCmd = ((uint16_t)frameCommand);
  6532. 80030c2: 7a7b ldrb r3, [r7, #9]
  6533. 80030c4: 827b strh r3, [r7, #18]
  6534. memset (txBuffer, 0x00, dataLength);
  6535. 80030c6: 8c3b ldrh r3, [r7, #32]
  6536. 80030c8: 461a mov r2, r3
  6537. 80030ca: 2100 movs r1, #0
  6538. 80030cc: 68f8 ldr r0, [r7, #12]
  6539. 80030ce: f026 fe17 bl 8029d00 <memset>
  6540. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6541. 80030d2: 8afb ldrh r3, [r7, #22]
  6542. 80030d4: 1c5a adds r2, r3, #1
  6543. 80030d6: 82fa strh r2, [r7, #22]
  6544. 80030d8: 461a mov r2, r3
  6545. 80030da: 68fb ldr r3, [r7, #12]
  6546. 80030dc: 4413 add r3, r2
  6547. 80030de: 22aa movs r2, #170 @ 0xaa
  6548. 80030e0: 701a strb r2, [r3, #0]
  6549. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6550. 80030e2: 8afb ldrh r3, [r7, #22]
  6551. 80030e4: 1c5a adds r2, r3, #1
  6552. 80030e6: 82fa strh r2, [r7, #22]
  6553. 80030e8: 461a mov r2, r3
  6554. 80030ea: 68fb ldr r3, [r7, #12]
  6555. 80030ec: 4413 add r3, r2
  6556. 80030ee: 897a ldrh r2, [r7, #10]
  6557. 80030f0: b2d2 uxtb r2, r2
  6558. 80030f2: 701a strb r2, [r3, #0]
  6559. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6560. 80030f4: 897b ldrh r3, [r7, #10]
  6561. 80030f6: 0a1b lsrs r3, r3, #8
  6562. 80030f8: b29a uxth r2, r3
  6563. 80030fa: 8afb ldrh r3, [r7, #22]
  6564. 80030fc: 1c59 adds r1, r3, #1
  6565. 80030fe: 82f9 strh r1, [r7, #22]
  6566. 8003100: 4619 mov r1, r3
  6567. 8003102: 68fb ldr r3, [r7, #12]
  6568. 8003104: 440b add r3, r1
  6569. 8003106: b2d2 uxtb r2, r2
  6570. 8003108: 701a strb r2, [r3, #0]
  6571. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6572. 800310a: 8afb ldrh r3, [r7, #22]
  6573. 800310c: 1c5a adds r2, r3, #1
  6574. 800310e: 82fa strh r2, [r7, #22]
  6575. 8003110: 461a mov r2, r3
  6576. 8003112: 68fb ldr r3, [r7, #12]
  6577. 8003114: 4413 add r3, r2
  6578. 8003116: 8a7a ldrh r2, [r7, #18]
  6579. 8003118: b2d2 uxtb r2, r2
  6580. 800311a: 701a strb r2, [r3, #0]
  6581. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6582. 800311c: 8a7b ldrh r3, [r7, #18]
  6583. 800311e: 0a1b lsrs r3, r3, #8
  6584. 8003120: b29a uxth r2, r3
  6585. 8003122: 8afb ldrh r3, [r7, #22]
  6586. 8003124: 1c59 adds r1, r3, #1
  6587. 8003126: 82f9 strh r1, [r7, #22]
  6588. 8003128: 4619 mov r1, r3
  6589. 800312a: 68fb ldr r3, [r7, #12]
  6590. 800312c: 440b add r3, r1
  6591. 800312e: b2d2 uxtb r2, r2
  6592. 8003130: 701a strb r2, [r3, #0]
  6593. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6594. 8003132: 8afb ldrh r3, [r7, #22]
  6595. 8003134: 1c5a adds r2, r3, #1
  6596. 8003136: 82fa strh r2, [r7, #22]
  6597. 8003138: 461a mov r2, r3
  6598. 800313a: 68fb ldr r3, [r7, #12]
  6599. 800313c: 4413 add r3, r2
  6600. 800313e: 8c3a ldrh r2, [r7, #32]
  6601. 8003140: b2d2 uxtb r2, r2
  6602. 8003142: 701a strb r2, [r3, #0]
  6603. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6604. 8003144: 8c3b ldrh r3, [r7, #32]
  6605. 8003146: 0a1b lsrs r3, r3, #8
  6606. 8003148: b29a uxth r2, r3
  6607. 800314a: 8afb ldrh r3, [r7, #22]
  6608. 800314c: 1c59 adds r1, r3, #1
  6609. 800314e: 82f9 strh r1, [r7, #22]
  6610. 8003150: 4619 mov r1, r3
  6611. 8003152: 68fb ldr r3, [r7, #12]
  6612. 8003154: 440b add r3, r1
  6613. 8003156: b2d2 uxtb r2, r2
  6614. 8003158: 701a strb r2, [r3, #0]
  6615. txBuffer[txBufferPos++] = 0x00;
  6616. 800315a: 8afb ldrh r3, [r7, #22]
  6617. 800315c: 1c5a adds r2, r3, #1
  6618. 800315e: 82fa strh r2, [r7, #22]
  6619. 8003160: 461a mov r2, r3
  6620. 8003162: 68fb ldr r3, [r7, #12]
  6621. 8003164: 4413 add r3, r2
  6622. 8003166: 2200 movs r2, #0
  6623. 8003168: 701a strb r2, [r3, #0]
  6624. if (dataLength > 0) {
  6625. 800316a: 8c3b ldrh r3, [r7, #32]
  6626. 800316c: 2b00 cmp r3, #0
  6627. 800316e: d00b beq.n 8003188 <PrepareReqFrame+0xe0>
  6628. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6629. 8003170: 8afb ldrh r3, [r7, #22]
  6630. 8003172: 68fa ldr r2, [r7, #12]
  6631. 8003174: 4413 add r3, r2
  6632. 8003176: 8c3a ldrh r2, [r7, #32]
  6633. 8003178: 6879 ldr r1, [r7, #4]
  6634. 800317a: 4618 mov r0, r3
  6635. 800317c: f026 feb7 bl 8029eee <memcpy>
  6636. txBufferPos += dataLength;
  6637. 8003180: 8afa ldrh r2, [r7, #22]
  6638. 8003182: 8c3b ldrh r3, [r7, #32]
  6639. 8003184: 4413 add r3, r2
  6640. 8003186: 82fb strh r3, [r7, #22]
  6641. }
  6642. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6643. 8003188: 8afb ldrh r3, [r7, #22]
  6644. 800318a: 461a mov r2, r3
  6645. 800318c: 68f9 ldr r1, [r7, #12]
  6646. 800318e: 480f ldr r0, [pc, #60] @ (80031cc <PrepareReqFrame+0x124>)
  6647. 8003190: f002 f964 bl 800545c <HAL_CRC_Calculate>
  6648. 8003194: 4603 mov r3, r0
  6649. 8003196: 82bb strh r3, [r7, #20]
  6650. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6651. 8003198: 8afb ldrh r3, [r7, #22]
  6652. 800319a: 1c5a adds r2, r3, #1
  6653. 800319c: 82fa strh r2, [r7, #22]
  6654. 800319e: 461a mov r2, r3
  6655. 80031a0: 68fb ldr r3, [r7, #12]
  6656. 80031a2: 4413 add r3, r2
  6657. 80031a4: 8aba ldrh r2, [r7, #20]
  6658. 80031a6: b2d2 uxtb r2, r2
  6659. 80031a8: 701a strb r2, [r3, #0]
  6660. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6661. 80031aa: 8abb ldrh r3, [r7, #20]
  6662. 80031ac: 0a1b lsrs r3, r3, #8
  6663. 80031ae: b29a uxth r2, r3
  6664. 80031b0: 8afb ldrh r3, [r7, #22]
  6665. 80031b2: 1c59 adds r1, r3, #1
  6666. 80031b4: 82f9 strh r1, [r7, #22]
  6667. 80031b6: 4619 mov r1, r3
  6668. 80031b8: 68fb ldr r3, [r7, #12]
  6669. 80031ba: 440b add r3, r1
  6670. 80031bc: b2d2 uxtb r2, r2
  6671. 80031be: 701a strb r2, [r3, #0]
  6672. return txBufferPos;
  6673. 80031c0: 8afb ldrh r3, [r7, #22]
  6674. }
  6675. 80031c2: 4618 mov r0, r3
  6676. 80031c4: 3718 adds r7, #24
  6677. 80031c6: 46bd mov sp, r7
  6678. 80031c8: bd80 pop {r7, pc}
  6679. 80031ca: bf00 nop
  6680. 80031cc: 24000248 .word 0x24000248
  6681. 080031d0 <PrepareRespFrame>:
  6682. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  6683. 80031d0: b580 push {r7, lr}
  6684. 80031d2: b084 sub sp, #16
  6685. 80031d4: af00 add r7, sp, #0
  6686. 80031d6: 6078 str r0, [r7, #4]
  6687. 80031d8: 4608 mov r0, r1
  6688. 80031da: 4611 mov r1, r2
  6689. 80031dc: 461a mov r2, r3
  6690. 80031de: 4603 mov r3, r0
  6691. 80031e0: 807b strh r3, [r7, #2]
  6692. 80031e2: 460b mov r3, r1
  6693. 80031e4: 707b strb r3, [r7, #1]
  6694. 80031e6: 4613 mov r3, r2
  6695. 80031e8: 703b strb r3, [r7, #0]
  6696. uint16_t crc = 0;
  6697. 80031ea: 2300 movs r3, #0
  6698. 80031ec: 81bb strh r3, [r7, #12]
  6699. uint16_t txBufferPos = 0;
  6700. 80031ee: 2300 movs r3, #0
  6701. 80031f0: 81fb strh r3, [r7, #14]
  6702. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  6703. 80031f2: 787b ldrb r3, [r7, #1]
  6704. 80031f4: b21a sxth r2, r3
  6705. 80031f6: 4b43 ldr r3, [pc, #268] @ (8003304 <PrepareRespFrame+0x134>)
  6706. 80031f8: 4313 orrs r3, r2
  6707. 80031fa: b21b sxth r3, r3
  6708. 80031fc: 817b strh r3, [r7, #10]
  6709. memset (txBuffer, 0x00, dataLength);
  6710. 80031fe: 8bbb ldrh r3, [r7, #28]
  6711. 8003200: 461a mov r2, r3
  6712. 8003202: 2100 movs r1, #0
  6713. 8003204: 6878 ldr r0, [r7, #4]
  6714. 8003206: f026 fd7b bl 8029d00 <memset>
  6715. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6716. 800320a: 89fb ldrh r3, [r7, #14]
  6717. 800320c: 1c5a adds r2, r3, #1
  6718. 800320e: 81fa strh r2, [r7, #14]
  6719. 8003210: 461a mov r2, r3
  6720. 8003212: 687b ldr r3, [r7, #4]
  6721. 8003214: 4413 add r3, r2
  6722. 8003216: 22aa movs r2, #170 @ 0xaa
  6723. 8003218: 701a strb r2, [r3, #0]
  6724. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6725. 800321a: 89fb ldrh r3, [r7, #14]
  6726. 800321c: 1c5a adds r2, r3, #1
  6727. 800321e: 81fa strh r2, [r7, #14]
  6728. 8003220: 461a mov r2, r3
  6729. 8003222: 687b ldr r3, [r7, #4]
  6730. 8003224: 4413 add r3, r2
  6731. 8003226: 887a ldrh r2, [r7, #2]
  6732. 8003228: b2d2 uxtb r2, r2
  6733. 800322a: 701a strb r2, [r3, #0]
  6734. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6735. 800322c: 887b ldrh r3, [r7, #2]
  6736. 800322e: 0a1b lsrs r3, r3, #8
  6737. 8003230: b29a uxth r2, r3
  6738. 8003232: 89fb ldrh r3, [r7, #14]
  6739. 8003234: 1c59 adds r1, r3, #1
  6740. 8003236: 81f9 strh r1, [r7, #14]
  6741. 8003238: 4619 mov r1, r3
  6742. 800323a: 687b ldr r3, [r7, #4]
  6743. 800323c: 440b add r3, r1
  6744. 800323e: b2d2 uxtb r2, r2
  6745. 8003240: 701a strb r2, [r3, #0]
  6746. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6747. 8003242: 89fb ldrh r3, [r7, #14]
  6748. 8003244: 1c5a adds r2, r3, #1
  6749. 8003246: 81fa strh r2, [r7, #14]
  6750. 8003248: 461a mov r2, r3
  6751. 800324a: 687b ldr r3, [r7, #4]
  6752. 800324c: 4413 add r3, r2
  6753. 800324e: 897a ldrh r2, [r7, #10]
  6754. 8003250: b2d2 uxtb r2, r2
  6755. 8003252: 701a strb r2, [r3, #0]
  6756. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6757. 8003254: 897b ldrh r3, [r7, #10]
  6758. 8003256: 0a1b lsrs r3, r3, #8
  6759. 8003258: b29a uxth r2, r3
  6760. 800325a: 89fb ldrh r3, [r7, #14]
  6761. 800325c: 1c59 adds r1, r3, #1
  6762. 800325e: 81f9 strh r1, [r7, #14]
  6763. 8003260: 4619 mov r1, r3
  6764. 8003262: 687b ldr r3, [r7, #4]
  6765. 8003264: 440b add r3, r1
  6766. 8003266: b2d2 uxtb r2, r2
  6767. 8003268: 701a strb r2, [r3, #0]
  6768. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6769. 800326a: 89fb ldrh r3, [r7, #14]
  6770. 800326c: 1c5a adds r2, r3, #1
  6771. 800326e: 81fa strh r2, [r7, #14]
  6772. 8003270: 461a mov r2, r3
  6773. 8003272: 687b ldr r3, [r7, #4]
  6774. 8003274: 4413 add r3, r2
  6775. 8003276: 8bba ldrh r2, [r7, #28]
  6776. 8003278: b2d2 uxtb r2, r2
  6777. 800327a: 701a strb r2, [r3, #0]
  6778. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6779. 800327c: 8bbb ldrh r3, [r7, #28]
  6780. 800327e: 0a1b lsrs r3, r3, #8
  6781. 8003280: b29a uxth r2, r3
  6782. 8003282: 89fb ldrh r3, [r7, #14]
  6783. 8003284: 1c59 adds r1, r3, #1
  6784. 8003286: 81f9 strh r1, [r7, #14]
  6785. 8003288: 4619 mov r1, r3
  6786. 800328a: 687b ldr r3, [r7, #4]
  6787. 800328c: 440b add r3, r1
  6788. 800328e: b2d2 uxtb r2, r2
  6789. 8003290: 701a strb r2, [r3, #0]
  6790. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  6791. 8003292: 89fb ldrh r3, [r7, #14]
  6792. 8003294: 1c5a adds r2, r3, #1
  6793. 8003296: 81fa strh r2, [r7, #14]
  6794. 8003298: 461a mov r2, r3
  6795. 800329a: 687b ldr r3, [r7, #4]
  6796. 800329c: 4413 add r3, r2
  6797. 800329e: 783a ldrb r2, [r7, #0]
  6798. 80032a0: 701a strb r2, [r3, #0]
  6799. if (dataLength > 0) {
  6800. 80032a2: 8bbb ldrh r3, [r7, #28]
  6801. 80032a4: 2b00 cmp r3, #0
  6802. 80032a6: d00b beq.n 80032c0 <PrepareRespFrame+0xf0>
  6803. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6804. 80032a8: 89fb ldrh r3, [r7, #14]
  6805. 80032aa: 687a ldr r2, [r7, #4]
  6806. 80032ac: 4413 add r3, r2
  6807. 80032ae: 8bba ldrh r2, [r7, #28]
  6808. 80032b0: 69b9 ldr r1, [r7, #24]
  6809. 80032b2: 4618 mov r0, r3
  6810. 80032b4: f026 fe1b bl 8029eee <memcpy>
  6811. txBufferPos += dataLength;
  6812. 80032b8: 89fa ldrh r2, [r7, #14]
  6813. 80032ba: 8bbb ldrh r3, [r7, #28]
  6814. 80032bc: 4413 add r3, r2
  6815. 80032be: 81fb strh r3, [r7, #14]
  6816. }
  6817. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6818. 80032c0: 89fb ldrh r3, [r7, #14]
  6819. 80032c2: 461a mov r2, r3
  6820. 80032c4: 6879 ldr r1, [r7, #4]
  6821. 80032c6: 4810 ldr r0, [pc, #64] @ (8003308 <PrepareRespFrame+0x138>)
  6822. 80032c8: f002 f8c8 bl 800545c <HAL_CRC_Calculate>
  6823. 80032cc: 4603 mov r3, r0
  6824. 80032ce: 81bb strh r3, [r7, #12]
  6825. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6826. 80032d0: 89fb ldrh r3, [r7, #14]
  6827. 80032d2: 1c5a adds r2, r3, #1
  6828. 80032d4: 81fa strh r2, [r7, #14]
  6829. 80032d6: 461a mov r2, r3
  6830. 80032d8: 687b ldr r3, [r7, #4]
  6831. 80032da: 4413 add r3, r2
  6832. 80032dc: 89ba ldrh r2, [r7, #12]
  6833. 80032de: b2d2 uxtb r2, r2
  6834. 80032e0: 701a strb r2, [r3, #0]
  6835. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6836. 80032e2: 89bb ldrh r3, [r7, #12]
  6837. 80032e4: 0a1b lsrs r3, r3, #8
  6838. 80032e6: b29a uxth r2, r3
  6839. 80032e8: 89fb ldrh r3, [r7, #14]
  6840. 80032ea: 1c59 adds r1, r3, #1
  6841. 80032ec: 81f9 strh r1, [r7, #14]
  6842. 80032ee: 4619 mov r1, r3
  6843. 80032f0: 687b ldr r3, [r7, #4]
  6844. 80032f2: 440b add r3, r1
  6845. 80032f4: b2d2 uxtb r2, r2
  6846. 80032f6: 701a strb r2, [r3, #0]
  6847. return txBufferPos;
  6848. 80032f8: 89fb ldrh r3, [r7, #14]
  6849. }
  6850. 80032fa: 4618 mov r0, r3
  6851. 80032fc: 3710 adds r7, #16
  6852. 80032fe: 46bd mov sp, r7
  6853. 8003300: bd80 pop {r7, pc}
  6854. 8003302: bf00 nop
  6855. 8003304: ffff8000 .word 0xffff8000
  6856. 8003308: 24000248 .word 0x24000248
  6857. 0800330c <HAL_MspInit>:
  6858. /* USER CODE END 0 */
  6859. /**
  6860. * Initializes the Global MSP.
  6861. */
  6862. void HAL_MspInit(void)
  6863. {
  6864. 800330c: b580 push {r7, lr}
  6865. 800330e: b082 sub sp, #8
  6866. 8003310: af00 add r7, sp, #0
  6867. /* USER CODE BEGIN MspInit 0 */
  6868. /* USER CODE END MspInit 0 */
  6869. __HAL_RCC_SYSCFG_CLK_ENABLE();
  6870. 8003312: 4b10 ldr r3, [pc, #64] @ (8003354 <HAL_MspInit+0x48>)
  6871. 8003314: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6872. 8003318: 4a0e ldr r2, [pc, #56] @ (8003354 <HAL_MspInit+0x48>)
  6873. 800331a: f043 0302 orr.w r3, r3, #2
  6874. 800331e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  6875. 8003322: 4b0c ldr r3, [pc, #48] @ (8003354 <HAL_MspInit+0x48>)
  6876. 8003324: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  6877. 8003328: f003 0302 and.w r3, r3, #2
  6878. 800332c: 607b str r3, [r7, #4]
  6879. 800332e: 687b ldr r3, [r7, #4]
  6880. /* System interrupt init*/
  6881. /* PendSV_IRQn interrupt configuration */
  6882. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  6883. 8003330: 2200 movs r2, #0
  6884. 8003332: 210f movs r1, #15
  6885. 8003334: f06f 0001 mvn.w r0, #1
  6886. 8003338: f001 ff8c bl 8005254 <HAL_NVIC_SetPriority>
  6887. /* Peripheral interrupt init */
  6888. /* RCC_IRQn interrupt configuration */
  6889. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  6890. 800333c: 2200 movs r2, #0
  6891. 800333e: 2105 movs r1, #5
  6892. 8003340: 2005 movs r0, #5
  6893. 8003342: f001 ff87 bl 8005254 <HAL_NVIC_SetPriority>
  6894. HAL_NVIC_EnableIRQ(RCC_IRQn);
  6895. 8003346: 2005 movs r0, #5
  6896. 8003348: f001 ff9e bl 8005288 <HAL_NVIC_EnableIRQ>
  6897. /* USER CODE BEGIN MspInit 1 */
  6898. /* USER CODE END MspInit 1 */
  6899. }
  6900. 800334c: bf00 nop
  6901. 800334e: 3708 adds r7, #8
  6902. 8003350: 46bd mov sp, r7
  6903. 8003352: bd80 pop {r7, pc}
  6904. 8003354: 58024400 .word 0x58024400
  6905. 08003358 <HAL_CRC_MspInit>:
  6906. * This function configures the hardware resources used in this example
  6907. * @param hcrc: CRC handle pointer
  6908. * @retval None
  6909. */
  6910. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  6911. {
  6912. 8003358: b480 push {r7}
  6913. 800335a: b085 sub sp, #20
  6914. 800335c: af00 add r7, sp, #0
  6915. 800335e: 6078 str r0, [r7, #4]
  6916. if(hcrc->Instance==CRC)
  6917. 8003360: 687b ldr r3, [r7, #4]
  6918. 8003362: 681b ldr r3, [r3, #0]
  6919. 8003364: 4a0b ldr r2, [pc, #44] @ (8003394 <HAL_CRC_MspInit+0x3c>)
  6920. 8003366: 4293 cmp r3, r2
  6921. 8003368: d10e bne.n 8003388 <HAL_CRC_MspInit+0x30>
  6922. {
  6923. /* USER CODE BEGIN CRC_MspInit 0 */
  6924. /* USER CODE END CRC_MspInit 0 */
  6925. /* Peripheral clock enable */
  6926. __HAL_RCC_CRC_CLK_ENABLE();
  6927. 800336a: 4b0b ldr r3, [pc, #44] @ (8003398 <HAL_CRC_MspInit+0x40>)
  6928. 800336c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  6929. 8003370: 4a09 ldr r2, [pc, #36] @ (8003398 <HAL_CRC_MspInit+0x40>)
  6930. 8003372: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  6931. 8003376: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  6932. 800337a: 4b07 ldr r3, [pc, #28] @ (8003398 <HAL_CRC_MspInit+0x40>)
  6933. 800337c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  6934. 8003380: f403 2300 and.w r3, r3, #524288 @ 0x80000
  6935. 8003384: 60fb str r3, [r7, #12]
  6936. 8003386: 68fb ldr r3, [r7, #12]
  6937. /* USER CODE BEGIN CRC_MspInit 1 */
  6938. /* USER CODE END CRC_MspInit 1 */
  6939. }
  6940. }
  6941. 8003388: bf00 nop
  6942. 800338a: 3714 adds r7, #20
  6943. 800338c: 46bd mov sp, r7
  6944. 800338e: f85d 7b04 ldr.w r7, [sp], #4
  6945. 8003392: 4770 bx lr
  6946. 8003394: 58024c00 .word 0x58024c00
  6947. 8003398: 58024400 .word 0x58024400
  6948. 0800339c <HAL_RNG_MspInit>:
  6949. * This function configures the hardware resources used in this example
  6950. * @param hrng: RNG handle pointer
  6951. * @retval None
  6952. */
  6953. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  6954. {
  6955. 800339c: b580 push {r7, lr}
  6956. 800339e: b0b4 sub sp, #208 @ 0xd0
  6957. 80033a0: af00 add r7, sp, #0
  6958. 80033a2: 6078 str r0, [r7, #4]
  6959. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  6960. 80033a4: f107 0310 add.w r3, r7, #16
  6961. 80033a8: 22c0 movs r2, #192 @ 0xc0
  6962. 80033aa: 2100 movs r1, #0
  6963. 80033ac: 4618 mov r0, r3
  6964. 80033ae: f026 fca7 bl 8029d00 <memset>
  6965. if(hrng->Instance==RNG)
  6966. 80033b2: 687b ldr r3, [r7, #4]
  6967. 80033b4: 681b ldr r3, [r3, #0]
  6968. 80033b6: 4a14 ldr r2, [pc, #80] @ (8003408 <HAL_RNG_MspInit+0x6c>)
  6969. 80033b8: 4293 cmp r3, r2
  6970. 80033ba: d121 bne.n 8003400 <HAL_RNG_MspInit+0x64>
  6971. /* USER CODE END RNG_MspInit 0 */
  6972. /** Initializes the peripherals clock
  6973. */
  6974. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  6975. 80033bc: f44f 3200 mov.w r2, #131072 @ 0x20000
  6976. 80033c0: f04f 0300 mov.w r3, #0
  6977. 80033c4: e9c7 2304 strd r2, r3, [r7, #16]
  6978. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  6979. 80033c8: 2300 movs r3, #0
  6980. 80033ca: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  6981. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  6982. 80033ce: f107 0310 add.w r3, r7, #16
  6983. 80033d2: 4618 mov r0, r3
  6984. 80033d4: f007 fb92 bl 800aafc <HAL_RCCEx_PeriphCLKConfig>
  6985. 80033d8: 4603 mov r3, r0
  6986. 80033da: 2b00 cmp r3, #0
  6987. 80033dc: d001 beq.n 80033e2 <HAL_RNG_MspInit+0x46>
  6988. {
  6989. Error_Handler();
  6990. 80033de: f7ff f893 bl 8002508 <Error_Handler>
  6991. }
  6992. /* Peripheral clock enable */
  6993. __HAL_RCC_RNG_CLK_ENABLE();
  6994. 80033e2: 4b0a ldr r3, [pc, #40] @ (800340c <HAL_RNG_MspInit+0x70>)
  6995. 80033e4: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  6996. 80033e8: 4a08 ldr r2, [pc, #32] @ (800340c <HAL_RNG_MspInit+0x70>)
  6997. 80033ea: f043 0340 orr.w r3, r3, #64 @ 0x40
  6998. 80033ee: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  6999. 80033f2: 4b06 ldr r3, [pc, #24] @ (800340c <HAL_RNG_MspInit+0x70>)
  7000. 80033f4: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7001. 80033f8: f003 0340 and.w r3, r3, #64 @ 0x40
  7002. 80033fc: 60fb str r3, [r7, #12]
  7003. 80033fe: 68fb ldr r3, [r7, #12]
  7004. /* USER CODE BEGIN RNG_MspInit 1 */
  7005. /* USER CODE END RNG_MspInit 1 */
  7006. }
  7007. }
  7008. 8003400: bf00 nop
  7009. 8003402: 37d0 adds r7, #208 @ 0xd0
  7010. 8003404: 46bd mov sp, r7
  7011. 8003406: bd80 pop {r7, pc}
  7012. 8003408: 48021800 .word 0x48021800
  7013. 800340c: 58024400 .word 0x58024400
  7014. 08003410 <HAL_UART_MspInit>:
  7015. * This function configures the hardware resources used in this example
  7016. * @param huart: UART handle pointer
  7017. * @retval None
  7018. */
  7019. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  7020. {
  7021. 8003410: b580 push {r7, lr}
  7022. 8003412: b0c2 sub sp, #264 @ 0x108
  7023. 8003414: af00 add r7, sp, #0
  7024. 8003416: f507 7384 add.w r3, r7, #264 @ 0x108
  7025. 800341a: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7026. 800341e: 6018 str r0, [r3, #0]
  7027. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7028. 8003420: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7029. 8003424: 2200 movs r2, #0
  7030. 8003426: 601a str r2, [r3, #0]
  7031. 8003428: 605a str r2, [r3, #4]
  7032. 800342a: 609a str r2, [r3, #8]
  7033. 800342c: 60da str r2, [r3, #12]
  7034. 800342e: 611a str r2, [r3, #16]
  7035. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7036. 8003430: f107 0330 add.w r3, r7, #48 @ 0x30
  7037. 8003434: 22c0 movs r2, #192 @ 0xc0
  7038. 8003436: 2100 movs r1, #0
  7039. 8003438: 4618 mov r0, r3
  7040. 800343a: f026 fc61 bl 8029d00 <memset>
  7041. if(huart->Instance==UART8)
  7042. 800343e: f507 7384 add.w r3, r7, #264 @ 0x108
  7043. 8003442: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7044. 8003446: 681b ldr r3, [r3, #0]
  7045. 8003448: 681b ldr r3, [r3, #0]
  7046. 800344a: 4ab8 ldr r2, [pc, #736] @ (800372c <HAL_UART_MspInit+0x31c>)
  7047. 800344c: 4293 cmp r3, r2
  7048. 800344e: f040 80bc bne.w 80035ca <HAL_UART_MspInit+0x1ba>
  7049. /* USER CODE END UART8_MspInit 0 */
  7050. /** Initializes the peripherals clock
  7051. */
  7052. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  7053. 8003452: f04f 0202 mov.w r2, #2
  7054. 8003456: f04f 0300 mov.w r3, #0
  7055. 800345a: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7056. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7057. 800345e: 2300 movs r3, #0
  7058. 8003460: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7059. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7060. 8003464: f107 0330 add.w r3, r7, #48 @ 0x30
  7061. 8003468: 4618 mov r0, r3
  7062. 800346a: f007 fb47 bl 800aafc <HAL_RCCEx_PeriphCLKConfig>
  7063. 800346e: 4603 mov r3, r0
  7064. 8003470: 2b00 cmp r3, #0
  7065. 8003472: d001 beq.n 8003478 <HAL_UART_MspInit+0x68>
  7066. {
  7067. Error_Handler();
  7068. 8003474: f7ff f848 bl 8002508 <Error_Handler>
  7069. }
  7070. /* Peripheral clock enable */
  7071. __HAL_RCC_UART8_CLK_ENABLE();
  7072. 8003478: 4bad ldr r3, [pc, #692] @ (8003730 <HAL_UART_MspInit+0x320>)
  7073. 800347a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7074. 800347e: 4aac ldr r2, [pc, #688] @ (8003730 <HAL_UART_MspInit+0x320>)
  7075. 8003480: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  7076. 8003484: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7077. 8003488: 4ba9 ldr r3, [pc, #676] @ (8003730 <HAL_UART_MspInit+0x320>)
  7078. 800348a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7079. 800348e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  7080. 8003492: 62fb str r3, [r7, #44] @ 0x2c
  7081. 8003494: 6afb ldr r3, [r7, #44] @ 0x2c
  7082. __HAL_RCC_GPIOE_CLK_ENABLE();
  7083. 8003496: 4ba6 ldr r3, [pc, #664] @ (8003730 <HAL_UART_MspInit+0x320>)
  7084. 8003498: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7085. 800349c: 4aa4 ldr r2, [pc, #656] @ (8003730 <HAL_UART_MspInit+0x320>)
  7086. 800349e: f043 0310 orr.w r3, r3, #16
  7087. 80034a2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7088. 80034a6: 4ba2 ldr r3, [pc, #648] @ (8003730 <HAL_UART_MspInit+0x320>)
  7089. 80034a8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7090. 80034ac: f003 0310 and.w r3, r3, #16
  7091. 80034b0: 62bb str r3, [r7, #40] @ 0x28
  7092. 80034b2: 6abb ldr r3, [r7, #40] @ 0x28
  7093. /**UART8 GPIO Configuration
  7094. PE0 ------> UART8_RX
  7095. PE1 ------> UART8_TX
  7096. */
  7097. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7098. 80034b4: 2303 movs r3, #3
  7099. 80034b6: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7100. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7101. 80034ba: 2302 movs r3, #2
  7102. 80034bc: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7103. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7104. 80034c0: 2300 movs r3, #0
  7105. 80034c2: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7106. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7107. 80034c6: 2300 movs r3, #0
  7108. 80034c8: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7109. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  7110. 80034cc: 2308 movs r3, #8
  7111. 80034ce: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7112. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  7113. 80034d2: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7114. 80034d6: 4619 mov r1, r3
  7115. 80034d8: 4896 ldr r0, [pc, #600] @ (8003734 <HAL_UART_MspInit+0x324>)
  7116. 80034da: f006 f8e3 bl 80096a4 <HAL_GPIO_Init>
  7117. /* UART8 DMA Init */
  7118. /* UART8_RX Init */
  7119. hdma_uart8_rx.Instance = DMA2_Stream7;
  7120. 80034de: 4b96 ldr r3, [pc, #600] @ (8003738 <HAL_UART_MspInit+0x328>)
  7121. 80034e0: 4a96 ldr r2, [pc, #600] @ (800373c <HAL_UART_MspInit+0x32c>)
  7122. 80034e2: 601a str r2, [r3, #0]
  7123. hdma_uart8_rx.Init.Request = DMA_REQUEST_UART8_RX;
  7124. 80034e4: 4b94 ldr r3, [pc, #592] @ (8003738 <HAL_UART_MspInit+0x328>)
  7125. 80034e6: 2251 movs r2, #81 @ 0x51
  7126. 80034e8: 605a str r2, [r3, #4]
  7127. hdma_uart8_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7128. 80034ea: 4b93 ldr r3, [pc, #588] @ (8003738 <HAL_UART_MspInit+0x328>)
  7129. 80034ec: 2200 movs r2, #0
  7130. 80034ee: 609a str r2, [r3, #8]
  7131. hdma_uart8_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  7132. 80034f0: 4b91 ldr r3, [pc, #580] @ (8003738 <HAL_UART_MspInit+0x328>)
  7133. 80034f2: 2200 movs r2, #0
  7134. 80034f4: 60da str r2, [r3, #12]
  7135. hdma_uart8_rx.Init.MemInc = DMA_MINC_ENABLE;
  7136. 80034f6: 4b90 ldr r3, [pc, #576] @ (8003738 <HAL_UART_MspInit+0x328>)
  7137. 80034f8: f44f 6280 mov.w r2, #1024 @ 0x400
  7138. 80034fc: 611a str r2, [r3, #16]
  7139. hdma_uart8_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7140. 80034fe: 4b8e ldr r3, [pc, #568] @ (8003738 <HAL_UART_MspInit+0x328>)
  7141. 8003500: 2200 movs r2, #0
  7142. 8003502: 615a str r2, [r3, #20]
  7143. hdma_uart8_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7144. 8003504: 4b8c ldr r3, [pc, #560] @ (8003738 <HAL_UART_MspInit+0x328>)
  7145. 8003506: 2200 movs r2, #0
  7146. 8003508: 619a str r2, [r3, #24]
  7147. hdma_uart8_rx.Init.Mode = DMA_NORMAL;
  7148. 800350a: 4b8b ldr r3, [pc, #556] @ (8003738 <HAL_UART_MspInit+0x328>)
  7149. 800350c: 2200 movs r2, #0
  7150. 800350e: 61da str r2, [r3, #28]
  7151. hdma_uart8_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7152. 8003510: 4b89 ldr r3, [pc, #548] @ (8003738 <HAL_UART_MspInit+0x328>)
  7153. 8003512: f44f 3240 mov.w r2, #196608 @ 0x30000
  7154. 8003516: 621a str r2, [r3, #32]
  7155. hdma_uart8_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7156. 8003518: 4b87 ldr r3, [pc, #540] @ (8003738 <HAL_UART_MspInit+0x328>)
  7157. 800351a: 2200 movs r2, #0
  7158. 800351c: 625a str r2, [r3, #36] @ 0x24
  7159. if (HAL_DMA_Init(&hdma_uart8_rx) != HAL_OK)
  7160. 800351e: 4886 ldr r0, [pc, #536] @ (8003738 <HAL_UART_MspInit+0x328>)
  7161. 8003520: f002 f93e bl 80057a0 <HAL_DMA_Init>
  7162. 8003524: 4603 mov r3, r0
  7163. 8003526: 2b00 cmp r3, #0
  7164. 8003528: d001 beq.n 800352e <HAL_UART_MspInit+0x11e>
  7165. {
  7166. Error_Handler();
  7167. 800352a: f7fe ffed bl 8002508 <Error_Handler>
  7168. }
  7169. __HAL_LINKDMA(huart,hdmarx,hdma_uart8_rx);
  7170. 800352e: f507 7384 add.w r3, r7, #264 @ 0x108
  7171. 8003532: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7172. 8003536: 681b ldr r3, [r3, #0]
  7173. 8003538: 4a7f ldr r2, [pc, #508] @ (8003738 <HAL_UART_MspInit+0x328>)
  7174. 800353a: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  7175. 800353e: 4a7e ldr r2, [pc, #504] @ (8003738 <HAL_UART_MspInit+0x328>)
  7176. 8003540: f507 7384 add.w r3, r7, #264 @ 0x108
  7177. 8003544: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7178. 8003548: 681b ldr r3, [r3, #0]
  7179. 800354a: 6393 str r3, [r2, #56] @ 0x38
  7180. /* UART8_TX Init */
  7181. hdma_uart8_tx.Instance = DMA2_Stream6;
  7182. 800354c: 4b7c ldr r3, [pc, #496] @ (8003740 <HAL_UART_MspInit+0x330>)
  7183. 800354e: 4a7d ldr r2, [pc, #500] @ (8003744 <HAL_UART_MspInit+0x334>)
  7184. 8003550: 601a str r2, [r3, #0]
  7185. hdma_uart8_tx.Init.Request = DMA_REQUEST_UART8_TX;
  7186. 8003552: 4b7b ldr r3, [pc, #492] @ (8003740 <HAL_UART_MspInit+0x330>)
  7187. 8003554: 2252 movs r2, #82 @ 0x52
  7188. 8003556: 605a str r2, [r3, #4]
  7189. hdma_uart8_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  7190. 8003558: 4b79 ldr r3, [pc, #484] @ (8003740 <HAL_UART_MspInit+0x330>)
  7191. 800355a: 2240 movs r2, #64 @ 0x40
  7192. 800355c: 609a str r2, [r3, #8]
  7193. hdma_uart8_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  7194. 800355e: 4b78 ldr r3, [pc, #480] @ (8003740 <HAL_UART_MspInit+0x330>)
  7195. 8003560: 2200 movs r2, #0
  7196. 8003562: 60da str r2, [r3, #12]
  7197. hdma_uart8_tx.Init.MemInc = DMA_MINC_ENABLE;
  7198. 8003564: 4b76 ldr r3, [pc, #472] @ (8003740 <HAL_UART_MspInit+0x330>)
  7199. 8003566: f44f 6280 mov.w r2, #1024 @ 0x400
  7200. 800356a: 611a str r2, [r3, #16]
  7201. hdma_uart8_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7202. 800356c: 4b74 ldr r3, [pc, #464] @ (8003740 <HAL_UART_MspInit+0x330>)
  7203. 800356e: 2200 movs r2, #0
  7204. 8003570: 615a str r2, [r3, #20]
  7205. hdma_uart8_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7206. 8003572: 4b73 ldr r3, [pc, #460] @ (8003740 <HAL_UART_MspInit+0x330>)
  7207. 8003574: 2200 movs r2, #0
  7208. 8003576: 619a str r2, [r3, #24]
  7209. hdma_uart8_tx.Init.Mode = DMA_NORMAL;
  7210. 8003578: 4b71 ldr r3, [pc, #452] @ (8003740 <HAL_UART_MspInit+0x330>)
  7211. 800357a: 2200 movs r2, #0
  7212. 800357c: 61da str r2, [r3, #28]
  7213. hdma_uart8_tx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7214. 800357e: 4b70 ldr r3, [pc, #448] @ (8003740 <HAL_UART_MspInit+0x330>)
  7215. 8003580: f44f 3240 mov.w r2, #196608 @ 0x30000
  7216. 8003584: 621a str r2, [r3, #32]
  7217. hdma_uart8_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7218. 8003586: 4b6e ldr r3, [pc, #440] @ (8003740 <HAL_UART_MspInit+0x330>)
  7219. 8003588: 2200 movs r2, #0
  7220. 800358a: 625a str r2, [r3, #36] @ 0x24
  7221. if (HAL_DMA_Init(&hdma_uart8_tx) != HAL_OK)
  7222. 800358c: 486c ldr r0, [pc, #432] @ (8003740 <HAL_UART_MspInit+0x330>)
  7223. 800358e: f002 f907 bl 80057a0 <HAL_DMA_Init>
  7224. 8003592: 4603 mov r3, r0
  7225. 8003594: 2b00 cmp r3, #0
  7226. 8003596: d001 beq.n 800359c <HAL_UART_MspInit+0x18c>
  7227. {
  7228. Error_Handler();
  7229. 8003598: f7fe ffb6 bl 8002508 <Error_Handler>
  7230. }
  7231. __HAL_LINKDMA(huart,hdmatx,hdma_uart8_tx);
  7232. 800359c: f507 7384 add.w r3, r7, #264 @ 0x108
  7233. 80035a0: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7234. 80035a4: 681b ldr r3, [r3, #0]
  7235. 80035a6: 4a66 ldr r2, [pc, #408] @ (8003740 <HAL_UART_MspInit+0x330>)
  7236. 80035a8: 67da str r2, [r3, #124] @ 0x7c
  7237. 80035aa: 4a65 ldr r2, [pc, #404] @ (8003740 <HAL_UART_MspInit+0x330>)
  7238. 80035ac: f507 7384 add.w r3, r7, #264 @ 0x108
  7239. 80035b0: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7240. 80035b4: 681b ldr r3, [r3, #0]
  7241. 80035b6: 6393 str r3, [r2, #56] @ 0x38
  7242. /* UART8 interrupt Init */
  7243. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  7244. 80035b8: 2200 movs r2, #0
  7245. 80035ba: 2105 movs r1, #5
  7246. 80035bc: 2053 movs r0, #83 @ 0x53
  7247. 80035be: f001 fe49 bl 8005254 <HAL_NVIC_SetPriority>
  7248. HAL_NVIC_EnableIRQ(UART8_IRQn);
  7249. 80035c2: 2053 movs r0, #83 @ 0x53
  7250. 80035c4: f001 fe60 bl 8005288 <HAL_NVIC_EnableIRQ>
  7251. /* USER CODE BEGIN USART6_MspInit 1 */
  7252. /* USER CODE END USART6_MspInit 1 */
  7253. }
  7254. }
  7255. 80035c8: e17e b.n 80038c8 <HAL_UART_MspInit+0x4b8>
  7256. else if(huart->Instance==USART1)
  7257. 80035ca: f507 7384 add.w r3, r7, #264 @ 0x108
  7258. 80035ce: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7259. 80035d2: 681b ldr r3, [r3, #0]
  7260. 80035d4: 681b ldr r3, [r3, #0]
  7261. 80035d6: 4a5c ldr r2, [pc, #368] @ (8003748 <HAL_UART_MspInit+0x338>)
  7262. 80035d8: 4293 cmp r3, r2
  7263. 80035da: d14f bne.n 800367c <HAL_UART_MspInit+0x26c>
  7264. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  7265. 80035dc: f04f 0201 mov.w r2, #1
  7266. 80035e0: f04f 0300 mov.w r3, #0
  7267. 80035e4: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7268. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  7269. 80035e8: 2300 movs r3, #0
  7270. 80035ea: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  7271. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7272. 80035ee: f107 0330 add.w r3, r7, #48 @ 0x30
  7273. 80035f2: 4618 mov r0, r3
  7274. 80035f4: f007 fa82 bl 800aafc <HAL_RCCEx_PeriphCLKConfig>
  7275. 80035f8: 4603 mov r3, r0
  7276. 80035fa: 2b00 cmp r3, #0
  7277. 80035fc: d001 beq.n 8003602 <HAL_UART_MspInit+0x1f2>
  7278. Error_Handler();
  7279. 80035fe: f7fe ff83 bl 8002508 <Error_Handler>
  7280. __HAL_RCC_USART1_CLK_ENABLE();
  7281. 8003602: 4b4b ldr r3, [pc, #300] @ (8003730 <HAL_UART_MspInit+0x320>)
  7282. 8003604: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7283. 8003608: 4a49 ldr r2, [pc, #292] @ (8003730 <HAL_UART_MspInit+0x320>)
  7284. 800360a: f043 0310 orr.w r3, r3, #16
  7285. 800360e: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7286. 8003612: 4b47 ldr r3, [pc, #284] @ (8003730 <HAL_UART_MspInit+0x320>)
  7287. 8003614: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7288. 8003618: f003 0310 and.w r3, r3, #16
  7289. 800361c: 627b str r3, [r7, #36] @ 0x24
  7290. 800361e: 6a7b ldr r3, [r7, #36] @ 0x24
  7291. __HAL_RCC_GPIOB_CLK_ENABLE();
  7292. 8003620: 4b43 ldr r3, [pc, #268] @ (8003730 <HAL_UART_MspInit+0x320>)
  7293. 8003622: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7294. 8003626: 4a42 ldr r2, [pc, #264] @ (8003730 <HAL_UART_MspInit+0x320>)
  7295. 8003628: f043 0302 orr.w r3, r3, #2
  7296. 800362c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7297. 8003630: 4b3f ldr r3, [pc, #252] @ (8003730 <HAL_UART_MspInit+0x320>)
  7298. 8003632: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7299. 8003636: f003 0302 and.w r3, r3, #2
  7300. 800363a: 623b str r3, [r7, #32]
  7301. 800363c: 6a3b ldr r3, [r7, #32]
  7302. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  7303. 800363e: f44f 4340 mov.w r3, #49152 @ 0xc000
  7304. 8003642: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7305. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7306. 8003646: 2302 movs r3, #2
  7307. 8003648: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7308. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7309. 800364c: 2300 movs r3, #0
  7310. 800364e: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7311. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7312. 8003652: 2302 movs r3, #2
  7313. 8003654: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7314. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  7315. 8003658: 2304 movs r3, #4
  7316. 800365a: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7317. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7318. 800365e: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7319. 8003662: 4619 mov r1, r3
  7320. 8003664: 4839 ldr r0, [pc, #228] @ (800374c <HAL_UART_MspInit+0x33c>)
  7321. 8003666: f006 f81d bl 80096a4 <HAL_GPIO_Init>
  7322. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  7323. 800366a: 2200 movs r2, #0
  7324. 800366c: 2105 movs r1, #5
  7325. 800366e: 2025 movs r0, #37 @ 0x25
  7326. 8003670: f001 fdf0 bl 8005254 <HAL_NVIC_SetPriority>
  7327. HAL_NVIC_EnableIRQ(USART1_IRQn);
  7328. 8003674: 2025 movs r0, #37 @ 0x25
  7329. 8003676: f001 fe07 bl 8005288 <HAL_NVIC_EnableIRQ>
  7330. }
  7331. 800367a: e125 b.n 80038c8 <HAL_UART_MspInit+0x4b8>
  7332. else if(huart->Instance==USART2)
  7333. 800367c: f507 7384 add.w r3, r7, #264 @ 0x108
  7334. 8003680: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7335. 8003684: 681b ldr r3, [r3, #0]
  7336. 8003686: 681b ldr r3, [r3, #0]
  7337. 8003688: 4a31 ldr r2, [pc, #196] @ (8003750 <HAL_UART_MspInit+0x340>)
  7338. 800368a: 4293 cmp r3, r2
  7339. 800368c: d164 bne.n 8003758 <HAL_UART_MspInit+0x348>
  7340. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART2;
  7341. 800368e: f04f 0202 mov.w r2, #2
  7342. 8003692: f04f 0300 mov.w r3, #0
  7343. 8003696: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7344. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7345. 800369a: 2300 movs r3, #0
  7346. 800369c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7347. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7348. 80036a0: f107 0330 add.w r3, r7, #48 @ 0x30
  7349. 80036a4: 4618 mov r0, r3
  7350. 80036a6: f007 fa29 bl 800aafc <HAL_RCCEx_PeriphCLKConfig>
  7351. 80036aa: 4603 mov r3, r0
  7352. 80036ac: 2b00 cmp r3, #0
  7353. 80036ae: d001 beq.n 80036b4 <HAL_UART_MspInit+0x2a4>
  7354. Error_Handler();
  7355. 80036b0: f7fe ff2a bl 8002508 <Error_Handler>
  7356. __HAL_RCC_USART2_CLK_ENABLE();
  7357. 80036b4: 4b1e ldr r3, [pc, #120] @ (8003730 <HAL_UART_MspInit+0x320>)
  7358. 80036b6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7359. 80036ba: 4a1d ldr r2, [pc, #116] @ (8003730 <HAL_UART_MspInit+0x320>)
  7360. 80036bc: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  7361. 80036c0: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7362. 80036c4: 4b1a ldr r3, [pc, #104] @ (8003730 <HAL_UART_MspInit+0x320>)
  7363. 80036c6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7364. 80036ca: f403 3300 and.w r3, r3, #131072 @ 0x20000
  7365. 80036ce: 61fb str r3, [r7, #28]
  7366. 80036d0: 69fb ldr r3, [r7, #28]
  7367. __HAL_RCC_GPIOD_CLK_ENABLE();
  7368. 80036d2: 4b17 ldr r3, [pc, #92] @ (8003730 <HAL_UART_MspInit+0x320>)
  7369. 80036d4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7370. 80036d8: 4a15 ldr r2, [pc, #84] @ (8003730 <HAL_UART_MspInit+0x320>)
  7371. 80036da: f043 0308 orr.w r3, r3, #8
  7372. 80036de: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7373. 80036e2: 4b13 ldr r3, [pc, #76] @ (8003730 <HAL_UART_MspInit+0x320>)
  7374. 80036e4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7375. 80036e8: f003 0308 and.w r3, r3, #8
  7376. 80036ec: 61bb str r3, [r7, #24]
  7377. 80036ee: 69bb ldr r3, [r7, #24]
  7378. GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6;
  7379. 80036f0: 2360 movs r3, #96 @ 0x60
  7380. 80036f2: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7381. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7382. 80036f6: 2302 movs r3, #2
  7383. 80036f8: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7384. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7385. 80036fc: 2300 movs r3, #0
  7386. 80036fe: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7387. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7388. 8003702: 2302 movs r3, #2
  7389. 8003704: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7390. GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
  7391. 8003708: 2307 movs r3, #7
  7392. 800370a: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7393. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  7394. 800370e: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7395. 8003712: 4619 mov r1, r3
  7396. 8003714: 480f ldr r0, [pc, #60] @ (8003754 <HAL_UART_MspInit+0x344>)
  7397. 8003716: f005 ffc5 bl 80096a4 <HAL_GPIO_Init>
  7398. HAL_NVIC_SetPriority(USART2_IRQn, 5, 0);
  7399. 800371a: 2200 movs r2, #0
  7400. 800371c: 2105 movs r1, #5
  7401. 800371e: 2026 movs r0, #38 @ 0x26
  7402. 8003720: f001 fd98 bl 8005254 <HAL_NVIC_SetPriority>
  7403. HAL_NVIC_EnableIRQ(USART2_IRQn);
  7404. 8003724: 2026 movs r0, #38 @ 0x26
  7405. 8003726: f001 fdaf bl 8005288 <HAL_NVIC_EnableIRQ>
  7406. }
  7407. 800372a: e0cd b.n 80038c8 <HAL_UART_MspInit+0x4b8>
  7408. 800372c: 40007c00 .word 0x40007c00
  7409. 8003730: 58024400 .word 0x58024400
  7410. 8003734: 58021000 .word 0x58021000
  7411. 8003738: 24000564 .word 0x24000564
  7412. 800373c: 400204b8 .word 0x400204b8
  7413. 8003740: 240005dc .word 0x240005dc
  7414. 8003744: 400204a0 .word 0x400204a0
  7415. 8003748: 40011000 .word 0x40011000
  7416. 800374c: 58020400 .word 0x58020400
  7417. 8003750: 40004400 .word 0x40004400
  7418. 8003754: 58020c00 .word 0x58020c00
  7419. else if(huart->Instance==USART3)
  7420. 8003758: f507 7384 add.w r3, r7, #264 @ 0x108
  7421. 800375c: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7422. 8003760: 681b ldr r3, [r3, #0]
  7423. 8003762: 681b ldr r3, [r3, #0]
  7424. 8003764: 4a5b ldr r2, [pc, #364] @ (80038d4 <HAL_UART_MspInit+0x4c4>)
  7425. 8003766: 4293 cmp r3, r2
  7426. 8003768: d14f bne.n 800380a <HAL_UART_MspInit+0x3fa>
  7427. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART3;
  7428. 800376a: f04f 0202 mov.w r2, #2
  7429. 800376e: f04f 0300 mov.w r3, #0
  7430. 8003772: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7431. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7432. 8003776: 2300 movs r3, #0
  7433. 8003778: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7434. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7435. 800377c: f107 0330 add.w r3, r7, #48 @ 0x30
  7436. 8003780: 4618 mov r0, r3
  7437. 8003782: f007 f9bb bl 800aafc <HAL_RCCEx_PeriphCLKConfig>
  7438. 8003786: 4603 mov r3, r0
  7439. 8003788: 2b00 cmp r3, #0
  7440. 800378a: d001 beq.n 8003790 <HAL_UART_MspInit+0x380>
  7441. Error_Handler();
  7442. 800378c: f7fe febc bl 8002508 <Error_Handler>
  7443. __HAL_RCC_USART3_CLK_ENABLE();
  7444. 8003790: 4b51 ldr r3, [pc, #324] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7445. 8003792: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7446. 8003796: 4a50 ldr r2, [pc, #320] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7447. 8003798: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  7448. 800379c: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7449. 80037a0: 4b4d ldr r3, [pc, #308] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7450. 80037a2: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7451. 80037a6: f403 2380 and.w r3, r3, #262144 @ 0x40000
  7452. 80037aa: 617b str r3, [r7, #20]
  7453. 80037ac: 697b ldr r3, [r7, #20]
  7454. __HAL_RCC_GPIOD_CLK_ENABLE();
  7455. 80037ae: 4b4a ldr r3, [pc, #296] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7456. 80037b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7457. 80037b4: 4a48 ldr r2, [pc, #288] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7458. 80037b6: f043 0308 orr.w r3, r3, #8
  7459. 80037ba: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7460. 80037be: 4b46 ldr r3, [pc, #280] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7461. 80037c0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7462. 80037c4: f003 0308 and.w r3, r3, #8
  7463. 80037c8: 613b str r3, [r7, #16]
  7464. 80037ca: 693b ldr r3, [r7, #16]
  7465. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;
  7466. 80037cc: f44f 7340 mov.w r3, #768 @ 0x300
  7467. 80037d0: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7468. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7469. 80037d4: 2302 movs r3, #2
  7470. 80037d6: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7471. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7472. 80037da: 2300 movs r3, #0
  7473. 80037dc: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7474. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7475. 80037e0: 2302 movs r3, #2
  7476. 80037e2: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7477. GPIO_InitStruct.Alternate = GPIO_AF7_USART3;
  7478. 80037e6: 2307 movs r3, #7
  7479. 80037e8: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7480. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  7481. 80037ec: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7482. 80037f0: 4619 mov r1, r3
  7483. 80037f2: 483a ldr r0, [pc, #232] @ (80038dc <HAL_UART_MspInit+0x4cc>)
  7484. 80037f4: f005 ff56 bl 80096a4 <HAL_GPIO_Init>
  7485. HAL_NVIC_SetPriority(USART3_IRQn, 5, 0);
  7486. 80037f8: 2200 movs r2, #0
  7487. 80037fa: 2105 movs r1, #5
  7488. 80037fc: 2027 movs r0, #39 @ 0x27
  7489. 80037fe: f001 fd29 bl 8005254 <HAL_NVIC_SetPriority>
  7490. HAL_NVIC_EnableIRQ(USART3_IRQn);
  7491. 8003802: 2027 movs r0, #39 @ 0x27
  7492. 8003804: f001 fd40 bl 8005288 <HAL_NVIC_EnableIRQ>
  7493. }
  7494. 8003808: e05e b.n 80038c8 <HAL_UART_MspInit+0x4b8>
  7495. else if(huart->Instance==USART6)
  7496. 800380a: f507 7384 add.w r3, r7, #264 @ 0x108
  7497. 800380e: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7498. 8003812: 681b ldr r3, [r3, #0]
  7499. 8003814: 681b ldr r3, [r3, #0]
  7500. 8003816: 4a32 ldr r2, [pc, #200] @ (80038e0 <HAL_UART_MspInit+0x4d0>)
  7501. 8003818: 4293 cmp r3, r2
  7502. 800381a: d155 bne.n 80038c8 <HAL_UART_MspInit+0x4b8>
  7503. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;
  7504. 800381c: f04f 0201 mov.w r2, #1
  7505. 8003820: f04f 0300 mov.w r3, #0
  7506. 8003824: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7507. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  7508. 8003828: 2300 movs r3, #0
  7509. 800382a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  7510. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7511. 800382e: f107 0330 add.w r3, r7, #48 @ 0x30
  7512. 8003832: 4618 mov r0, r3
  7513. 8003834: f007 f962 bl 800aafc <HAL_RCCEx_PeriphCLKConfig>
  7514. 8003838: 4603 mov r3, r0
  7515. 800383a: 2b00 cmp r3, #0
  7516. 800383c: d001 beq.n 8003842 <HAL_UART_MspInit+0x432>
  7517. Error_Handler();
  7518. 800383e: f7fe fe63 bl 8002508 <Error_Handler>
  7519. __HAL_RCC_USART6_CLK_ENABLE();
  7520. 8003842: 4b25 ldr r3, [pc, #148] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7521. 8003844: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7522. 8003848: 4a23 ldr r2, [pc, #140] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7523. 800384a: f043 0320 orr.w r3, r3, #32
  7524. 800384e: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7525. 8003852: 4b21 ldr r3, [pc, #132] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7526. 8003854: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7527. 8003858: f003 0320 and.w r3, r3, #32
  7528. 800385c: 60fb str r3, [r7, #12]
  7529. 800385e: 68fb ldr r3, [r7, #12]
  7530. __HAL_RCC_GPIOC_CLK_ENABLE();
  7531. 8003860: 4b1d ldr r3, [pc, #116] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7532. 8003862: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7533. 8003866: 4a1c ldr r2, [pc, #112] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7534. 8003868: f043 0304 orr.w r3, r3, #4
  7535. 800386c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7536. 8003870: 4b19 ldr r3, [pc, #100] @ (80038d8 <HAL_UART_MspInit+0x4c8>)
  7537. 8003872: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7538. 8003876: f003 0204 and.w r2, r3, #4
  7539. 800387a: f507 7384 add.w r3, r7, #264 @ 0x108
  7540. 800387e: f5a3 7380 sub.w r3, r3, #256 @ 0x100
  7541. 8003882: 601a str r2, [r3, #0]
  7542. 8003884: f507 7384 add.w r3, r7, #264 @ 0x108
  7543. 8003888: f5a3 7380 sub.w r3, r3, #256 @ 0x100
  7544. 800388c: 681b ldr r3, [r3, #0]
  7545. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
  7546. 800388e: 23c0 movs r3, #192 @ 0xc0
  7547. 8003890: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7548. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7549. 8003894: 2302 movs r3, #2
  7550. 8003896: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7551. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7552. 800389a: 2300 movs r3, #0
  7553. 800389c: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7554. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7555. 80038a0: 2302 movs r3, #2
  7556. 80038a2: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7557. GPIO_InitStruct.Alternate = GPIO_AF7_USART6;
  7558. 80038a6: 2307 movs r3, #7
  7559. 80038a8: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7560. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7561. 80038ac: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7562. 80038b0: 4619 mov r1, r3
  7563. 80038b2: 480c ldr r0, [pc, #48] @ (80038e4 <HAL_UART_MspInit+0x4d4>)
  7564. 80038b4: f005 fef6 bl 80096a4 <HAL_GPIO_Init>
  7565. HAL_NVIC_SetPriority(USART6_IRQn, 5, 0);
  7566. 80038b8: 2200 movs r2, #0
  7567. 80038ba: 2105 movs r1, #5
  7568. 80038bc: 2047 movs r0, #71 @ 0x47
  7569. 80038be: f001 fcc9 bl 8005254 <HAL_NVIC_SetPriority>
  7570. HAL_NVIC_EnableIRQ(USART6_IRQn);
  7571. 80038c2: 2047 movs r0, #71 @ 0x47
  7572. 80038c4: f001 fce0 bl 8005288 <HAL_NVIC_EnableIRQ>
  7573. }
  7574. 80038c8: bf00 nop
  7575. 80038ca: f507 7784 add.w r7, r7, #264 @ 0x108
  7576. 80038ce: 46bd mov sp, r7
  7577. 80038d0: bd80 pop {r7, pc}
  7578. 80038d2: bf00 nop
  7579. 80038d4: 40004800 .word 0x40004800
  7580. 80038d8: 58024400 .word 0x58024400
  7581. 80038dc: 58020c00 .word 0x58020c00
  7582. 80038e0: 40011400 .word 0x40011400
  7583. 80038e4: 58020800 .word 0x58020800
  7584. 080038e8 <HAL_InitTick>:
  7585. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  7586. * @param TickPriority: Tick interrupt priority.
  7587. * @retval HAL status
  7588. */
  7589. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  7590. {
  7591. 80038e8: b580 push {r7, lr}
  7592. 80038ea: b090 sub sp, #64 @ 0x40
  7593. 80038ec: af00 add r7, sp, #0
  7594. 80038ee: 6078 str r0, [r7, #4]
  7595. uint32_t uwTimclock, uwAPB1Prescaler;
  7596. uint32_t uwPrescalerValue;
  7597. uint32_t pFLatency;
  7598. /*Configure the TIM6 IRQ priority */
  7599. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  7600. 80038f0: 687b ldr r3, [r7, #4]
  7601. 80038f2: 2b0f cmp r3, #15
  7602. 80038f4: d827 bhi.n 8003946 <HAL_InitTick+0x5e>
  7603. {
  7604. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  7605. 80038f6: 2200 movs r2, #0
  7606. 80038f8: 6879 ldr r1, [r7, #4]
  7607. 80038fa: 2036 movs r0, #54 @ 0x36
  7608. 80038fc: f001 fcaa bl 8005254 <HAL_NVIC_SetPriority>
  7609. /* Enable the TIM6 global Interrupt */
  7610. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  7611. 8003900: 2036 movs r0, #54 @ 0x36
  7612. 8003902: f001 fcc1 bl 8005288 <HAL_NVIC_EnableIRQ>
  7613. uwTickPrio = TickPriority;
  7614. 8003906: 4a29 ldr r2, [pc, #164] @ (80039ac <HAL_InitTick+0xc4>)
  7615. 8003908: 687b ldr r3, [r7, #4]
  7616. 800390a: 6013 str r3, [r2, #0]
  7617. {
  7618. return HAL_ERROR;
  7619. }
  7620. /* Enable TIM6 clock */
  7621. __HAL_RCC_TIM6_CLK_ENABLE();
  7622. 800390c: 4b28 ldr r3, [pc, #160] @ (80039b0 <HAL_InitTick+0xc8>)
  7623. 800390e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7624. 8003912: 4a27 ldr r2, [pc, #156] @ (80039b0 <HAL_InitTick+0xc8>)
  7625. 8003914: f043 0310 orr.w r3, r3, #16
  7626. 8003918: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7627. 800391c: 4b24 ldr r3, [pc, #144] @ (80039b0 <HAL_InitTick+0xc8>)
  7628. 800391e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7629. 8003922: f003 0310 and.w r3, r3, #16
  7630. 8003926: 60fb str r3, [r7, #12]
  7631. 8003928: 68fb ldr r3, [r7, #12]
  7632. /* Get clock configuration */
  7633. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  7634. 800392a: f107 0210 add.w r2, r7, #16
  7635. 800392e: f107 0314 add.w r3, r7, #20
  7636. 8003932: 4611 mov r1, r2
  7637. 8003934: 4618 mov r0, r3
  7638. 8003936: f007 f89f bl 800aa78 <HAL_RCC_GetClockConfig>
  7639. /* Get APB1 prescaler */
  7640. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  7641. 800393a: 6abb ldr r3, [r7, #40] @ 0x28
  7642. 800393c: 63bb str r3, [r7, #56] @ 0x38
  7643. /* Compute TIM6 clock */
  7644. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  7645. 800393e: 6bbb ldr r3, [r7, #56] @ 0x38
  7646. 8003940: 2b00 cmp r3, #0
  7647. 8003942: d106 bne.n 8003952 <HAL_InitTick+0x6a>
  7648. 8003944: e001 b.n 800394a <HAL_InitTick+0x62>
  7649. return HAL_ERROR;
  7650. 8003946: 2301 movs r3, #1
  7651. 8003948: e02b b.n 80039a2 <HAL_InitTick+0xba>
  7652. {
  7653. uwTimclock = HAL_RCC_GetPCLK1Freq();
  7654. 800394a: f007 f869 bl 800aa20 <HAL_RCC_GetPCLK1Freq>
  7655. 800394e: 63f8 str r0, [r7, #60] @ 0x3c
  7656. 8003950: e004 b.n 800395c <HAL_InitTick+0x74>
  7657. }
  7658. else
  7659. {
  7660. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  7661. 8003952: f007 f865 bl 800aa20 <HAL_RCC_GetPCLK1Freq>
  7662. 8003956: 4603 mov r3, r0
  7663. 8003958: 005b lsls r3, r3, #1
  7664. 800395a: 63fb str r3, [r7, #60] @ 0x3c
  7665. }
  7666. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  7667. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  7668. 800395c: 6bfb ldr r3, [r7, #60] @ 0x3c
  7669. 800395e: 4a15 ldr r2, [pc, #84] @ (80039b4 <HAL_InitTick+0xcc>)
  7670. 8003960: fba2 2303 umull r2, r3, r2, r3
  7671. 8003964: 0c9b lsrs r3, r3, #18
  7672. 8003966: 3b01 subs r3, #1
  7673. 8003968: 637b str r3, [r7, #52] @ 0x34
  7674. /* Initialize TIM6 */
  7675. htim6.Instance = TIM6;
  7676. 800396a: 4b13 ldr r3, [pc, #76] @ (80039b8 <HAL_InitTick+0xd0>)
  7677. 800396c: 4a13 ldr r2, [pc, #76] @ (80039bc <HAL_InitTick+0xd4>)
  7678. 800396e: 601a str r2, [r3, #0]
  7679. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  7680. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  7681. + ClockDivision = 0
  7682. + Counter direction = Up
  7683. */
  7684. htim6.Init.Period = (1000000U / 1000U) - 1U;
  7685. 8003970: 4b11 ldr r3, [pc, #68] @ (80039b8 <HAL_InitTick+0xd0>)
  7686. 8003972: f240 32e7 movw r2, #999 @ 0x3e7
  7687. 8003976: 60da str r2, [r3, #12]
  7688. htim6.Init.Prescaler = uwPrescalerValue;
  7689. 8003978: 4a0f ldr r2, [pc, #60] @ (80039b8 <HAL_InitTick+0xd0>)
  7690. 800397a: 6b7b ldr r3, [r7, #52] @ 0x34
  7691. 800397c: 6053 str r3, [r2, #4]
  7692. htim6.Init.ClockDivision = 0;
  7693. 800397e: 4b0e ldr r3, [pc, #56] @ (80039b8 <HAL_InitTick+0xd0>)
  7694. 8003980: 2200 movs r2, #0
  7695. 8003982: 611a str r2, [r3, #16]
  7696. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  7697. 8003984: 4b0c ldr r3, [pc, #48] @ (80039b8 <HAL_InitTick+0xd0>)
  7698. 8003986: 2200 movs r2, #0
  7699. 8003988: 609a str r2, [r3, #8]
  7700. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  7701. 800398a: 480b ldr r0, [pc, #44] @ (80039b8 <HAL_InitTick+0xd0>)
  7702. 800398c: f008 ff7e bl 800c88c <HAL_TIM_Base_Init>
  7703. 8003990: 4603 mov r3, r0
  7704. 8003992: 2b00 cmp r3, #0
  7705. 8003994: d104 bne.n 80039a0 <HAL_InitTick+0xb8>
  7706. {
  7707. /* Start the TIM time Base generation in interrupt mode */
  7708. return HAL_TIM_Base_Start_IT(&htim6);
  7709. 8003996: 4808 ldr r0, [pc, #32] @ (80039b8 <HAL_InitTick+0xd0>)
  7710. 8003998: f008 ffda bl 800c950 <HAL_TIM_Base_Start_IT>
  7711. 800399c: 4603 mov r3, r0
  7712. 800399e: e000 b.n 80039a2 <HAL_InitTick+0xba>
  7713. }
  7714. /* Return function status */
  7715. return HAL_ERROR;
  7716. 80039a0: 2301 movs r3, #1
  7717. }
  7718. 80039a2: 4618 mov r0, r3
  7719. 80039a4: 3740 adds r7, #64 @ 0x40
  7720. 80039a6: 46bd mov sp, r7
  7721. 80039a8: bd80 pop {r7, pc}
  7722. 80039aa: bf00 nop
  7723. 80039ac: 2400002c .word 0x2400002c
  7724. 80039b0: 58024400 .word 0x58024400
  7725. 80039b4: 431bde83 .word 0x431bde83
  7726. 80039b8: 24000edc .word 0x24000edc
  7727. 80039bc: 40001000 .word 0x40001000
  7728. 080039c0 <NMI_Handler>:
  7729. /******************************************************************************/
  7730. /**
  7731. * @brief This function handles Non maskable interrupt.
  7732. */
  7733. void NMI_Handler(void)
  7734. {
  7735. 80039c0: b480 push {r7}
  7736. 80039c2: af00 add r7, sp, #0
  7737. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  7738. /* USER CODE END NonMaskableInt_IRQn 0 */
  7739. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  7740. while (1)
  7741. 80039c4: bf00 nop
  7742. 80039c6: e7fd b.n 80039c4 <NMI_Handler+0x4>
  7743. 080039c8 <HardFault_Handler>:
  7744. /**
  7745. * @brief This function handles Hard fault interrupt.
  7746. */
  7747. void HardFault_Handler(void)
  7748. {
  7749. 80039c8: b480 push {r7}
  7750. 80039ca: af00 add r7, sp, #0
  7751. /* USER CODE BEGIN HardFault_IRQn 0 */
  7752. /* USER CODE END HardFault_IRQn 0 */
  7753. while (1)
  7754. 80039cc: bf00 nop
  7755. 80039ce: e7fd b.n 80039cc <HardFault_Handler+0x4>
  7756. 080039d0 <MemManage_Handler>:
  7757. /**
  7758. * @brief This function handles Memory management fault.
  7759. */
  7760. void MemManage_Handler(void)
  7761. {
  7762. 80039d0: b480 push {r7}
  7763. 80039d2: af00 add r7, sp, #0
  7764. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  7765. /* USER CODE END MemoryManagement_IRQn 0 */
  7766. while (1)
  7767. 80039d4: bf00 nop
  7768. 80039d6: e7fd b.n 80039d4 <MemManage_Handler+0x4>
  7769. 080039d8 <BusFault_Handler>:
  7770. /**
  7771. * @brief This function handles Pre-fetch fault, memory access fault.
  7772. */
  7773. void BusFault_Handler(void)
  7774. {
  7775. 80039d8: b480 push {r7}
  7776. 80039da: af00 add r7, sp, #0
  7777. /* USER CODE BEGIN BusFault_IRQn 0 */
  7778. /* USER CODE END BusFault_IRQn 0 */
  7779. while (1)
  7780. 80039dc: bf00 nop
  7781. 80039de: e7fd b.n 80039dc <BusFault_Handler+0x4>
  7782. 080039e0 <UsageFault_Handler>:
  7783. /**
  7784. * @brief This function handles Undefined instruction or illegal state.
  7785. */
  7786. void UsageFault_Handler(void)
  7787. {
  7788. 80039e0: b480 push {r7}
  7789. 80039e2: af00 add r7, sp, #0
  7790. /* USER CODE BEGIN UsageFault_IRQn 0 */
  7791. /* USER CODE END UsageFault_IRQn 0 */
  7792. while (1)
  7793. 80039e4: bf00 nop
  7794. 80039e6: e7fd b.n 80039e4 <UsageFault_Handler+0x4>
  7795. 080039e8 <DebugMon_Handler>:
  7796. /**
  7797. * @brief This function handles Debug monitor.
  7798. */
  7799. void DebugMon_Handler(void)
  7800. {
  7801. 80039e8: b480 push {r7}
  7802. 80039ea: af00 add r7, sp, #0
  7803. /* USER CODE END DebugMonitor_IRQn 0 */
  7804. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  7805. /* USER CODE END DebugMonitor_IRQn 1 */
  7806. }
  7807. 80039ec: bf00 nop
  7808. 80039ee: 46bd mov sp, r7
  7809. 80039f0: f85d 7b04 ldr.w r7, [sp], #4
  7810. 80039f4: 4770 bx lr
  7811. 080039f6 <RCC_IRQHandler>:
  7812. /**
  7813. * @brief This function handles RCC global interrupt.
  7814. */
  7815. void RCC_IRQHandler(void)
  7816. {
  7817. 80039f6: b480 push {r7}
  7818. 80039f8: af00 add r7, sp, #0
  7819. /* USER CODE END RCC_IRQn 0 */
  7820. /* USER CODE BEGIN RCC_IRQn 1 */
  7821. /* USER CODE END RCC_IRQn 1 */
  7822. }
  7823. 80039fa: bf00 nop
  7824. 80039fc: 46bd mov sp, r7
  7825. 80039fe: f85d 7b04 ldr.w r7, [sp], #4
  7826. 8003a02: 4770 bx lr
  7827. 08003a04 <USART1_IRQHandler>:
  7828. /**
  7829. * @brief This function handles USART1 global interrupt.
  7830. */
  7831. void USART1_IRQHandler(void)
  7832. {
  7833. 8003a04: b580 push {r7, lr}
  7834. 8003a06: af00 add r7, sp, #0
  7835. /* USER CODE BEGIN USART1_IRQn 0 */
  7836. /* USER CODE END USART1_IRQn 0 */
  7837. HAL_UART_IRQHandler(&huart1);
  7838. 8003a08: 4802 ldr r0, [pc, #8] @ (8003a14 <USART1_IRQHandler+0x10>)
  7839. 8003a0a: f009 faf1 bl 800cff0 <HAL_UART_IRQHandler>
  7840. /* USER CODE BEGIN USART1_IRQn 1 */
  7841. /* USER CODE END USART1_IRQn 1 */
  7842. }
  7843. 8003a0e: bf00 nop
  7844. 8003a10: bd80 pop {r7, pc}
  7845. 8003a12: bf00 nop
  7846. 8003a14: 24000314 .word 0x24000314
  7847. 08003a18 <USART2_IRQHandler>:
  7848. /**
  7849. * @brief This function handles USART2 global interrupt.
  7850. */
  7851. void USART2_IRQHandler(void)
  7852. {
  7853. 8003a18: b580 push {r7, lr}
  7854. 8003a1a: af00 add r7, sp, #0
  7855. /* USER CODE BEGIN USART2_IRQn 0 */
  7856. /* USER CODE END USART2_IRQn 0 */
  7857. HAL_UART_IRQHandler(&huart2);
  7858. 8003a1c: 4802 ldr r0, [pc, #8] @ (8003a28 <USART2_IRQHandler+0x10>)
  7859. 8003a1e: f009 fae7 bl 800cff0 <HAL_UART_IRQHandler>
  7860. /* USER CODE BEGIN USART2_IRQn 1 */
  7861. /* USER CODE END USART2_IRQn 1 */
  7862. }
  7863. 8003a22: bf00 nop
  7864. 8003a24: bd80 pop {r7, pc}
  7865. 8003a26: bf00 nop
  7866. 8003a28: 240003a8 .word 0x240003a8
  7867. 08003a2c <USART3_IRQHandler>:
  7868. /**
  7869. * @brief This function handles USART3 global interrupt.
  7870. */
  7871. void USART3_IRQHandler(void)
  7872. {
  7873. 8003a2c: b580 push {r7, lr}
  7874. 8003a2e: af00 add r7, sp, #0
  7875. /* USER CODE BEGIN USART3_IRQn 0 */
  7876. /* USER CODE END USART3_IRQn 0 */
  7877. HAL_UART_IRQHandler(&huart3);
  7878. 8003a30: 4802 ldr r0, [pc, #8] @ (8003a3c <USART3_IRQHandler+0x10>)
  7879. 8003a32: f009 fadd bl 800cff0 <HAL_UART_IRQHandler>
  7880. /* USER CODE BEGIN USART3_IRQn 1 */
  7881. /* USER CODE END USART3_IRQn 1 */
  7882. }
  7883. 8003a36: bf00 nop
  7884. 8003a38: bd80 pop {r7, pc}
  7885. 8003a3a: bf00 nop
  7886. 8003a3c: 2400043c .word 0x2400043c
  7887. 08003a40 <TIM6_DAC_IRQHandler>:
  7888. /**
  7889. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  7890. */
  7891. void TIM6_DAC_IRQHandler(void)
  7892. {
  7893. 8003a40: b580 push {r7, lr}
  7894. 8003a42: af00 add r7, sp, #0
  7895. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  7896. /* USER CODE END TIM6_DAC_IRQn 0 */
  7897. HAL_TIM_IRQHandler(&htim6);
  7898. 8003a44: 4802 ldr r0, [pc, #8] @ (8003a50 <TIM6_DAC_IRQHandler+0x10>)
  7899. 8003a46: f008 fffb bl 800ca40 <HAL_TIM_IRQHandler>
  7900. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  7901. /* USER CODE END TIM6_DAC_IRQn 1 */
  7902. }
  7903. 8003a4a: bf00 nop
  7904. 8003a4c: bd80 pop {r7, pc}
  7905. 8003a4e: bf00 nop
  7906. 8003a50: 24000edc .word 0x24000edc
  7907. 08003a54 <ETH_IRQHandler>:
  7908. /**
  7909. * @brief This function handles Ethernet global interrupt.
  7910. */
  7911. void ETH_IRQHandler(void)
  7912. {
  7913. 8003a54: b580 push {r7, lr}
  7914. 8003a56: af00 add r7, sp, #0
  7915. /* USER CODE BEGIN ETH_IRQn 0 */
  7916. /* USER CODE END ETH_IRQn 0 */
  7917. HAL_ETH_IRQHandler(&heth);
  7918. 8003a58: 4802 ldr r0, [pc, #8] @ (8003a64 <ETH_IRQHandler+0x10>)
  7919. 8003a5a: f004 fc9b bl 8008394 <HAL_ETH_IRQHandler>
  7920. /* USER CODE BEGIN ETH_IRQn 1 */
  7921. /* USER CODE END ETH_IRQn 1 */
  7922. }
  7923. 8003a5e: bf00 nop
  7924. 8003a60: bd80 pop {r7, pc}
  7925. 8003a62: bf00 nop
  7926. 8003a64: 240021ec .word 0x240021ec
  7927. 08003a68 <DMA2_Stream6_IRQHandler>:
  7928. /**
  7929. * @brief This function handles DMA2 stream6 global interrupt.
  7930. */
  7931. void DMA2_Stream6_IRQHandler(void)
  7932. {
  7933. 8003a68: b580 push {r7, lr}
  7934. 8003a6a: af00 add r7, sp, #0
  7935. /* USER CODE BEGIN DMA2_Stream6_IRQn 0 */
  7936. /* USER CODE END DMA2_Stream6_IRQn 0 */
  7937. HAL_DMA_IRQHandler(&hdma_uart8_tx);
  7938. 8003a6c: 4802 ldr r0, [pc, #8] @ (8003a78 <DMA2_Stream6_IRQHandler+0x10>)
  7939. 8003a6e: f002 ff57 bl 8006920 <HAL_DMA_IRQHandler>
  7940. /* USER CODE BEGIN DMA2_Stream6_IRQn 1 */
  7941. /* USER CODE END DMA2_Stream6_IRQn 1 */
  7942. }
  7943. 8003a72: bf00 nop
  7944. 8003a74: bd80 pop {r7, pc}
  7945. 8003a76: bf00 nop
  7946. 8003a78: 240005dc .word 0x240005dc
  7947. 08003a7c <DMA2_Stream7_IRQHandler>:
  7948. /**
  7949. * @brief This function handles DMA2 stream7 global interrupt.
  7950. */
  7951. void DMA2_Stream7_IRQHandler(void)
  7952. {
  7953. 8003a7c: b580 push {r7, lr}
  7954. 8003a7e: af00 add r7, sp, #0
  7955. /* USER CODE BEGIN DMA2_Stream7_IRQn 0 */
  7956. /* USER CODE END DMA2_Stream7_IRQn 0 */
  7957. HAL_DMA_IRQHandler(&hdma_uart8_rx);
  7958. 8003a80: 4802 ldr r0, [pc, #8] @ (8003a8c <DMA2_Stream7_IRQHandler+0x10>)
  7959. 8003a82: f002 ff4d bl 8006920 <HAL_DMA_IRQHandler>
  7960. /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */
  7961. /* USER CODE END DMA2_Stream7_IRQn 1 */
  7962. }
  7963. 8003a86: bf00 nop
  7964. 8003a88: bd80 pop {r7, pc}
  7965. 8003a8a: bf00 nop
  7966. 8003a8c: 24000564 .word 0x24000564
  7967. 08003a90 <USART6_IRQHandler>:
  7968. /**
  7969. * @brief This function handles USART6 global interrupt.
  7970. */
  7971. void USART6_IRQHandler(void)
  7972. {
  7973. 8003a90: b580 push {r7, lr}
  7974. 8003a92: af00 add r7, sp, #0
  7975. /* USER CODE BEGIN USART6_IRQn 0 */
  7976. /* USER CODE END USART6_IRQn 0 */
  7977. HAL_UART_IRQHandler(&huart6);
  7978. 8003a94: 4802 ldr r0, [pc, #8] @ (8003aa0 <USART6_IRQHandler+0x10>)
  7979. 8003a96: f009 faab bl 800cff0 <HAL_UART_IRQHandler>
  7980. /* USER CODE BEGIN USART6_IRQn 1 */
  7981. /* USER CODE END USART6_IRQn 1 */
  7982. }
  7983. 8003a9a: bf00 nop
  7984. 8003a9c: bd80 pop {r7, pc}
  7985. 8003a9e: bf00 nop
  7986. 8003aa0: 240004d0 .word 0x240004d0
  7987. 08003aa4 <UART8_IRQHandler>:
  7988. /**
  7989. * @brief This function handles UART8 global interrupt.
  7990. */
  7991. void UART8_IRQHandler(void)
  7992. {
  7993. 8003aa4: b580 push {r7, lr}
  7994. 8003aa6: af00 add r7, sp, #0
  7995. /* USER CODE BEGIN UART8_IRQn 0 */
  7996. /* USER CODE END UART8_IRQn 0 */
  7997. HAL_UART_IRQHandler(&huart8);
  7998. 8003aa8: 4802 ldr r0, [pc, #8] @ (8003ab4 <UART8_IRQHandler+0x10>)
  7999. 8003aaa: f009 faa1 bl 800cff0 <HAL_UART_IRQHandler>
  8000. /* USER CODE BEGIN UART8_IRQn 1 */
  8001. /* USER CODE END UART8_IRQn 1 */
  8002. }
  8003. 8003aae: bf00 nop
  8004. 8003ab0: bd80 pop {r7, pc}
  8005. 8003ab2: bf00 nop
  8006. 8003ab4: 24000280 .word 0x24000280
  8007. 08003ab8 <ITM_SendChar>:
  8008. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
  8009. \param [in] ch Character to transmit.
  8010. \returns Character to transmit.
  8011. */
  8012. __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
  8013. {
  8014. 8003ab8: b480 push {r7}
  8015. 8003aba: b083 sub sp, #12
  8016. 8003abc: af00 add r7, sp, #0
  8017. 8003abe: 6078 str r0, [r7, #4]
  8018. if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */
  8019. 8003ac0: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  8020. 8003ac4: f8d3 3e80 ldr.w r3, [r3, #3712] @ 0xe80
  8021. 8003ac8: f003 0301 and.w r3, r3, #1
  8022. 8003acc: 2b00 cmp r3, #0
  8023. 8003ace: d013 beq.n 8003af8 <ITM_SendChar+0x40>
  8024. ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */
  8025. 8003ad0: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  8026. 8003ad4: f8d3 3e00 ldr.w r3, [r3, #3584] @ 0xe00
  8027. 8003ad8: f003 0301 and.w r3, r3, #1
  8028. if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */
  8029. 8003adc: 2b00 cmp r3, #0
  8030. 8003ade: d00b beq.n 8003af8 <ITM_SendChar+0x40>
  8031. {
  8032. while (ITM->PORT[0U].u32 == 0UL)
  8033. 8003ae0: e000 b.n 8003ae4 <ITM_SendChar+0x2c>
  8034. {
  8035. __NOP();
  8036. 8003ae2: bf00 nop
  8037. while (ITM->PORT[0U].u32 == 0UL)
  8038. 8003ae4: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  8039. 8003ae8: 681b ldr r3, [r3, #0]
  8040. 8003aea: 2b00 cmp r3, #0
  8041. 8003aec: d0f9 beq.n 8003ae2 <ITM_SendChar+0x2a>
  8042. }
  8043. ITM->PORT[0U].u8 = (uint8_t)ch;
  8044. 8003aee: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  8045. 8003af2: 687a ldr r2, [r7, #4]
  8046. 8003af4: b2d2 uxtb r2, r2
  8047. 8003af6: 701a strb r2, [r3, #0]
  8048. }
  8049. return (ch);
  8050. 8003af8: 687b ldr r3, [r7, #4]
  8051. }
  8052. 8003afa: 4618 mov r0, r3
  8053. 8003afc: 370c adds r7, #12
  8054. 8003afe: 46bd mov sp, r7
  8055. 8003b00: f85d 7b04 ldr.w r7, [sp], #4
  8056. 8003b04: 4770 bx lr
  8057. 08003b06 <_getpid>:
  8058. void initialise_monitor_handles()
  8059. {
  8060. }
  8061. int _getpid(void)
  8062. {
  8063. 8003b06: b480 push {r7}
  8064. 8003b08: af00 add r7, sp, #0
  8065. return 1;
  8066. 8003b0a: 2301 movs r3, #1
  8067. }
  8068. 8003b0c: 4618 mov r0, r3
  8069. 8003b0e: 46bd mov sp, r7
  8070. 8003b10: f85d 7b04 ldr.w r7, [sp], #4
  8071. 8003b14: 4770 bx lr
  8072. ...
  8073. 08003b18 <_kill>:
  8074. int _kill(int pid, int sig)
  8075. {
  8076. 8003b18: b480 push {r7}
  8077. 8003b1a: b083 sub sp, #12
  8078. 8003b1c: af00 add r7, sp, #0
  8079. 8003b1e: 6078 str r0, [r7, #4]
  8080. 8003b20: 6039 str r1, [r7, #0]
  8081. (void)pid;
  8082. (void)sig;
  8083. errno = EINVAL;
  8084. 8003b22: 4b05 ldr r3, [pc, #20] @ (8003b38 <_kill+0x20>)
  8085. 8003b24: 2216 movs r2, #22
  8086. 8003b26: 601a str r2, [r3, #0]
  8087. return -1;
  8088. 8003b28: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8089. }
  8090. 8003b2c: 4618 mov r0, r3
  8091. 8003b2e: 370c adds r7, #12
  8092. 8003b30: 46bd mov sp, r7
  8093. 8003b32: f85d 7b04 ldr.w r7, [sp], #4
  8094. 8003b36: 4770 bx lr
  8095. 8003b38: 2402b180 .word 0x2402b180
  8096. 08003b3c <_exit>:
  8097. void _exit (int status)
  8098. {
  8099. 8003b3c: b580 push {r7, lr}
  8100. 8003b3e: b082 sub sp, #8
  8101. 8003b40: af00 add r7, sp, #0
  8102. 8003b42: 6078 str r0, [r7, #4]
  8103. _kill(status, -1);
  8104. 8003b44: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8105. 8003b48: 6878 ldr r0, [r7, #4]
  8106. 8003b4a: f7ff ffe5 bl 8003b18 <_kill>
  8107. while (1) {} /* Make sure we hang here */
  8108. 8003b4e: bf00 nop
  8109. 8003b50: e7fd b.n 8003b4e <_exit+0x12>
  8110. 08003b52 <_read>:
  8111. }
  8112. __attribute__((weak)) int _read(int file, char *ptr, int len)
  8113. {
  8114. 8003b52: b580 push {r7, lr}
  8115. 8003b54: b086 sub sp, #24
  8116. 8003b56: af00 add r7, sp, #0
  8117. 8003b58: 60f8 str r0, [r7, #12]
  8118. 8003b5a: 60b9 str r1, [r7, #8]
  8119. 8003b5c: 607a str r2, [r7, #4]
  8120. (void)file;
  8121. int DataIdx;
  8122. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8123. 8003b5e: 2300 movs r3, #0
  8124. 8003b60: 617b str r3, [r7, #20]
  8125. 8003b62: e00a b.n 8003b7a <_read+0x28>
  8126. {
  8127. *ptr++ = __io_getchar();
  8128. 8003b64: f3af 8000 nop.w
  8129. 8003b68: 4601 mov r1, r0
  8130. 8003b6a: 68bb ldr r3, [r7, #8]
  8131. 8003b6c: 1c5a adds r2, r3, #1
  8132. 8003b6e: 60ba str r2, [r7, #8]
  8133. 8003b70: b2ca uxtb r2, r1
  8134. 8003b72: 701a strb r2, [r3, #0]
  8135. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8136. 8003b74: 697b ldr r3, [r7, #20]
  8137. 8003b76: 3301 adds r3, #1
  8138. 8003b78: 617b str r3, [r7, #20]
  8139. 8003b7a: 697a ldr r2, [r7, #20]
  8140. 8003b7c: 687b ldr r3, [r7, #4]
  8141. 8003b7e: 429a cmp r2, r3
  8142. 8003b80: dbf0 blt.n 8003b64 <_read+0x12>
  8143. }
  8144. return len;
  8145. 8003b82: 687b ldr r3, [r7, #4]
  8146. }
  8147. 8003b84: 4618 mov r0, r3
  8148. 8003b86: 3718 adds r7, #24
  8149. 8003b88: 46bd mov sp, r7
  8150. 8003b8a: bd80 pop {r7, pc}
  8151. 08003b8c <_write>:
  8152. __attribute__((weak)) int _write(int file, char *ptr, int len)
  8153. {
  8154. 8003b8c: b580 push {r7, lr}
  8155. 8003b8e: b086 sub sp, #24
  8156. 8003b90: af00 add r7, sp, #0
  8157. 8003b92: 60f8 str r0, [r7, #12]
  8158. 8003b94: 60b9 str r1, [r7, #8]
  8159. 8003b96: 607a str r2, [r7, #4]
  8160. (void)file;
  8161. int DataIdx;
  8162. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8163. 8003b98: 2300 movs r3, #0
  8164. 8003b9a: 617b str r3, [r7, #20]
  8165. 8003b9c: e009 b.n 8003bb2 <_write+0x26>
  8166. {
  8167. // __io_putchar(*ptr++);
  8168. ITM_SendChar(*ptr++);
  8169. 8003b9e: 68bb ldr r3, [r7, #8]
  8170. 8003ba0: 1c5a adds r2, r3, #1
  8171. 8003ba2: 60ba str r2, [r7, #8]
  8172. 8003ba4: 781b ldrb r3, [r3, #0]
  8173. 8003ba6: 4618 mov r0, r3
  8174. 8003ba8: f7ff ff86 bl 8003ab8 <ITM_SendChar>
  8175. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8176. 8003bac: 697b ldr r3, [r7, #20]
  8177. 8003bae: 3301 adds r3, #1
  8178. 8003bb0: 617b str r3, [r7, #20]
  8179. 8003bb2: 697a ldr r2, [r7, #20]
  8180. 8003bb4: 687b ldr r3, [r7, #4]
  8181. 8003bb6: 429a cmp r2, r3
  8182. 8003bb8: dbf1 blt.n 8003b9e <_write+0x12>
  8183. }
  8184. return len;
  8185. 8003bba: 687b ldr r3, [r7, #4]
  8186. }
  8187. 8003bbc: 4618 mov r0, r3
  8188. 8003bbe: 3718 adds r7, #24
  8189. 8003bc0: 46bd mov sp, r7
  8190. 8003bc2: bd80 pop {r7, pc}
  8191. 08003bc4 <_close>:
  8192. int _close(int file)
  8193. {
  8194. 8003bc4: b480 push {r7}
  8195. 8003bc6: b083 sub sp, #12
  8196. 8003bc8: af00 add r7, sp, #0
  8197. 8003bca: 6078 str r0, [r7, #4]
  8198. (void)file;
  8199. return -1;
  8200. 8003bcc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8201. }
  8202. 8003bd0: 4618 mov r0, r3
  8203. 8003bd2: 370c adds r7, #12
  8204. 8003bd4: 46bd mov sp, r7
  8205. 8003bd6: f85d 7b04 ldr.w r7, [sp], #4
  8206. 8003bda: 4770 bx lr
  8207. 08003bdc <_fstat>:
  8208. int _fstat(int file, struct stat *st)
  8209. {
  8210. 8003bdc: b480 push {r7}
  8211. 8003bde: b083 sub sp, #12
  8212. 8003be0: af00 add r7, sp, #0
  8213. 8003be2: 6078 str r0, [r7, #4]
  8214. 8003be4: 6039 str r1, [r7, #0]
  8215. (void)file;
  8216. st->st_mode = S_IFCHR;
  8217. 8003be6: 683b ldr r3, [r7, #0]
  8218. 8003be8: f44f 5200 mov.w r2, #8192 @ 0x2000
  8219. 8003bec: 605a str r2, [r3, #4]
  8220. return 0;
  8221. 8003bee: 2300 movs r3, #0
  8222. }
  8223. 8003bf0: 4618 mov r0, r3
  8224. 8003bf2: 370c adds r7, #12
  8225. 8003bf4: 46bd mov sp, r7
  8226. 8003bf6: f85d 7b04 ldr.w r7, [sp], #4
  8227. 8003bfa: 4770 bx lr
  8228. 08003bfc <_isatty>:
  8229. int _isatty(int file)
  8230. {
  8231. 8003bfc: b480 push {r7}
  8232. 8003bfe: b083 sub sp, #12
  8233. 8003c00: af00 add r7, sp, #0
  8234. 8003c02: 6078 str r0, [r7, #4]
  8235. (void)file;
  8236. return 1;
  8237. 8003c04: 2301 movs r3, #1
  8238. }
  8239. 8003c06: 4618 mov r0, r3
  8240. 8003c08: 370c adds r7, #12
  8241. 8003c0a: 46bd mov sp, r7
  8242. 8003c0c: f85d 7b04 ldr.w r7, [sp], #4
  8243. 8003c10: 4770 bx lr
  8244. 08003c12 <_lseek>:
  8245. int _lseek(int file, int ptr, int dir)
  8246. {
  8247. 8003c12: b480 push {r7}
  8248. 8003c14: b085 sub sp, #20
  8249. 8003c16: af00 add r7, sp, #0
  8250. 8003c18: 60f8 str r0, [r7, #12]
  8251. 8003c1a: 60b9 str r1, [r7, #8]
  8252. 8003c1c: 607a str r2, [r7, #4]
  8253. (void)file;
  8254. (void)ptr;
  8255. (void)dir;
  8256. return 0;
  8257. 8003c1e: 2300 movs r3, #0
  8258. }
  8259. 8003c20: 4618 mov r0, r3
  8260. 8003c22: 3714 adds r7, #20
  8261. 8003c24: 46bd mov sp, r7
  8262. 8003c26: f85d 7b04 ldr.w r7, [sp], #4
  8263. 8003c2a: 4770 bx lr
  8264. 08003c2c <_sbrk>:
  8265. *
  8266. * @param incr Memory size
  8267. * @return Pointer to allocated memory
  8268. */
  8269. void *_sbrk(ptrdiff_t incr)
  8270. {
  8271. 8003c2c: b480 push {r7}
  8272. 8003c2e: b087 sub sp, #28
  8273. 8003c30: af00 add r7, sp, #0
  8274. 8003c32: 6078 str r0, [r7, #4]
  8275. extern uint8_t _end; /* Symbol defined in the linker script */
  8276. extern uint8_t _estack; /* Symbol defined in the linker script */
  8277. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  8278. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  8279. 8003c34: 4a14 ldr r2, [pc, #80] @ (8003c88 <_sbrk+0x5c>)
  8280. 8003c36: 4b15 ldr r3, [pc, #84] @ (8003c8c <_sbrk+0x60>)
  8281. 8003c38: 1ad3 subs r3, r2, r3
  8282. 8003c3a: 617b str r3, [r7, #20]
  8283. const uint8_t *max_heap = (uint8_t *)stack_limit;
  8284. 8003c3c: 697b ldr r3, [r7, #20]
  8285. 8003c3e: 613b str r3, [r7, #16]
  8286. uint8_t *prev_heap_end;
  8287. /* Initialize heap end at first call */
  8288. if (NULL == __sbrk_heap_end)
  8289. 8003c40: 4b13 ldr r3, [pc, #76] @ (8003c90 <_sbrk+0x64>)
  8290. 8003c42: 681b ldr r3, [r3, #0]
  8291. 8003c44: 2b00 cmp r3, #0
  8292. 8003c46: d102 bne.n 8003c4e <_sbrk+0x22>
  8293. {
  8294. __sbrk_heap_end = &_end;
  8295. 8003c48: 4b11 ldr r3, [pc, #68] @ (8003c90 <_sbrk+0x64>)
  8296. 8003c4a: 4a12 ldr r2, [pc, #72] @ (8003c94 <_sbrk+0x68>)
  8297. 8003c4c: 601a str r2, [r3, #0]
  8298. }
  8299. /* Protect heap from growing into the reserved MSP stack */
  8300. if (__sbrk_heap_end + incr > max_heap)
  8301. 8003c4e: 4b10 ldr r3, [pc, #64] @ (8003c90 <_sbrk+0x64>)
  8302. 8003c50: 681a ldr r2, [r3, #0]
  8303. 8003c52: 687b ldr r3, [r7, #4]
  8304. 8003c54: 4413 add r3, r2
  8305. 8003c56: 693a ldr r2, [r7, #16]
  8306. 8003c58: 429a cmp r2, r3
  8307. 8003c5a: d205 bcs.n 8003c68 <_sbrk+0x3c>
  8308. {
  8309. errno = ENOMEM;
  8310. 8003c5c: 4b0e ldr r3, [pc, #56] @ (8003c98 <_sbrk+0x6c>)
  8311. 8003c5e: 220c movs r2, #12
  8312. 8003c60: 601a str r2, [r3, #0]
  8313. return (void *)-1;
  8314. 8003c62: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8315. 8003c66: e009 b.n 8003c7c <_sbrk+0x50>
  8316. }
  8317. prev_heap_end = __sbrk_heap_end;
  8318. 8003c68: 4b09 ldr r3, [pc, #36] @ (8003c90 <_sbrk+0x64>)
  8319. 8003c6a: 681b ldr r3, [r3, #0]
  8320. 8003c6c: 60fb str r3, [r7, #12]
  8321. __sbrk_heap_end += incr;
  8322. 8003c6e: 4b08 ldr r3, [pc, #32] @ (8003c90 <_sbrk+0x64>)
  8323. 8003c70: 681a ldr r2, [r3, #0]
  8324. 8003c72: 687b ldr r3, [r7, #4]
  8325. 8003c74: 4413 add r3, r2
  8326. 8003c76: 4a06 ldr r2, [pc, #24] @ (8003c90 <_sbrk+0x64>)
  8327. 8003c78: 6013 str r3, [r2, #0]
  8328. return (void *)prev_heap_end;
  8329. 8003c7a: 68fb ldr r3, [r7, #12]
  8330. }
  8331. 8003c7c: 4618 mov r0, r3
  8332. 8003c7e: 371c adds r7, #28
  8333. 8003c80: 46bd mov sp, r7
  8334. 8003c82: f85d 7b04 ldr.w r7, [sp], #4
  8335. 8003c86: 4770 bx lr
  8336. 8003c88: 24060000 .word 0x24060000
  8337. 8003c8c: 00000400 .word 0x00000400
  8338. 8003c90: 24000f28 .word 0x24000f28
  8339. 8003c94: 2402b188 .word 0x2402b188
  8340. 8003c98: 2402b180 .word 0x2402b180
  8341. 08003c9c <SystemInit>:
  8342. * configuration.
  8343. * @param None
  8344. * @retval None
  8345. */
  8346. void SystemInit (void)
  8347. {
  8348. 8003c9c: b480 push {r7}
  8349. 8003c9e: af00 add r7, sp, #0
  8350. __IO uint32_t tmpreg;
  8351. #endif /* DATA_IN_D2_SRAM */
  8352. /* FPU settings ------------------------------------------------------------*/
  8353. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  8354. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  8355. 8003ca0: 4b37 ldr r3, [pc, #220] @ (8003d80 <SystemInit+0xe4>)
  8356. 8003ca2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  8357. 8003ca6: 4a36 ldr r2, [pc, #216] @ (8003d80 <SystemInit+0xe4>)
  8358. 8003ca8: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  8359. 8003cac: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  8360. #endif
  8361. /* Reset the RCC clock configuration to the default reset state ------------*/
  8362. /* Increasing the CPU frequency */
  8363. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8364. 8003cb0: 4b34 ldr r3, [pc, #208] @ (8003d84 <SystemInit+0xe8>)
  8365. 8003cb2: 681b ldr r3, [r3, #0]
  8366. 8003cb4: f003 030f and.w r3, r3, #15
  8367. 8003cb8: 2b06 cmp r3, #6
  8368. 8003cba: d807 bhi.n 8003ccc <SystemInit+0x30>
  8369. {
  8370. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8371. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8372. 8003cbc: 4b31 ldr r3, [pc, #196] @ (8003d84 <SystemInit+0xe8>)
  8373. 8003cbe: 681b ldr r3, [r3, #0]
  8374. 8003cc0: f023 030f bic.w r3, r3, #15
  8375. 8003cc4: 4a2f ldr r2, [pc, #188] @ (8003d84 <SystemInit+0xe8>)
  8376. 8003cc6: f043 0307 orr.w r3, r3, #7
  8377. 8003cca: 6013 str r3, [r2, #0]
  8378. }
  8379. /* Set HSION bit */
  8380. RCC->CR |= RCC_CR_HSION;
  8381. 8003ccc: 4b2e ldr r3, [pc, #184] @ (8003d88 <SystemInit+0xec>)
  8382. 8003cce: 681b ldr r3, [r3, #0]
  8383. 8003cd0: 4a2d ldr r2, [pc, #180] @ (8003d88 <SystemInit+0xec>)
  8384. 8003cd2: f043 0301 orr.w r3, r3, #1
  8385. 8003cd6: 6013 str r3, [r2, #0]
  8386. /* Reset CFGR register */
  8387. RCC->CFGR = 0x00000000;
  8388. 8003cd8: 4b2b ldr r3, [pc, #172] @ (8003d88 <SystemInit+0xec>)
  8389. 8003cda: 2200 movs r2, #0
  8390. 8003cdc: 611a str r2, [r3, #16]
  8391. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  8392. RCC->CR &= 0xEAF6ED7FU;
  8393. 8003cde: 4b2a ldr r3, [pc, #168] @ (8003d88 <SystemInit+0xec>)
  8394. 8003ce0: 681a ldr r2, [r3, #0]
  8395. 8003ce2: 4929 ldr r1, [pc, #164] @ (8003d88 <SystemInit+0xec>)
  8396. 8003ce4: 4b29 ldr r3, [pc, #164] @ (8003d8c <SystemInit+0xf0>)
  8397. 8003ce6: 4013 ands r3, r2
  8398. 8003ce8: 600b str r3, [r1, #0]
  8399. /* Decreasing the number of wait states because of lower CPU frequency */
  8400. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8401. 8003cea: 4b26 ldr r3, [pc, #152] @ (8003d84 <SystemInit+0xe8>)
  8402. 8003cec: 681b ldr r3, [r3, #0]
  8403. 8003cee: f003 0308 and.w r3, r3, #8
  8404. 8003cf2: 2b00 cmp r3, #0
  8405. 8003cf4: d007 beq.n 8003d06 <SystemInit+0x6a>
  8406. {
  8407. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8408. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8409. 8003cf6: 4b23 ldr r3, [pc, #140] @ (8003d84 <SystemInit+0xe8>)
  8410. 8003cf8: 681b ldr r3, [r3, #0]
  8411. 8003cfa: f023 030f bic.w r3, r3, #15
  8412. 8003cfe: 4a21 ldr r2, [pc, #132] @ (8003d84 <SystemInit+0xe8>)
  8413. 8003d00: f043 0307 orr.w r3, r3, #7
  8414. 8003d04: 6013 str r3, [r2, #0]
  8415. }
  8416. #if defined(D3_SRAM_BASE)
  8417. /* Reset D1CFGR register */
  8418. RCC->D1CFGR = 0x00000000;
  8419. 8003d06: 4b20 ldr r3, [pc, #128] @ (8003d88 <SystemInit+0xec>)
  8420. 8003d08: 2200 movs r2, #0
  8421. 8003d0a: 619a str r2, [r3, #24]
  8422. /* Reset D2CFGR register */
  8423. RCC->D2CFGR = 0x00000000;
  8424. 8003d0c: 4b1e ldr r3, [pc, #120] @ (8003d88 <SystemInit+0xec>)
  8425. 8003d0e: 2200 movs r2, #0
  8426. 8003d10: 61da str r2, [r3, #28]
  8427. /* Reset D3CFGR register */
  8428. RCC->D3CFGR = 0x00000000;
  8429. 8003d12: 4b1d ldr r3, [pc, #116] @ (8003d88 <SystemInit+0xec>)
  8430. 8003d14: 2200 movs r2, #0
  8431. 8003d16: 621a str r2, [r3, #32]
  8432. /* Reset SRDCFGR register */
  8433. RCC->SRDCFGR = 0x00000000;
  8434. #endif
  8435. /* Reset PLLCKSELR register */
  8436. RCC->PLLCKSELR = 0x02020200;
  8437. 8003d18: 4b1b ldr r3, [pc, #108] @ (8003d88 <SystemInit+0xec>)
  8438. 8003d1a: 4a1d ldr r2, [pc, #116] @ (8003d90 <SystemInit+0xf4>)
  8439. 8003d1c: 629a str r2, [r3, #40] @ 0x28
  8440. /* Reset PLLCFGR register */
  8441. RCC->PLLCFGR = 0x01FF0000;
  8442. 8003d1e: 4b1a ldr r3, [pc, #104] @ (8003d88 <SystemInit+0xec>)
  8443. 8003d20: 4a1c ldr r2, [pc, #112] @ (8003d94 <SystemInit+0xf8>)
  8444. 8003d22: 62da str r2, [r3, #44] @ 0x2c
  8445. /* Reset PLL1DIVR register */
  8446. RCC->PLL1DIVR = 0x01010280;
  8447. 8003d24: 4b18 ldr r3, [pc, #96] @ (8003d88 <SystemInit+0xec>)
  8448. 8003d26: 4a1c ldr r2, [pc, #112] @ (8003d98 <SystemInit+0xfc>)
  8449. 8003d28: 631a str r2, [r3, #48] @ 0x30
  8450. /* Reset PLL1FRACR register */
  8451. RCC->PLL1FRACR = 0x00000000;
  8452. 8003d2a: 4b17 ldr r3, [pc, #92] @ (8003d88 <SystemInit+0xec>)
  8453. 8003d2c: 2200 movs r2, #0
  8454. 8003d2e: 635a str r2, [r3, #52] @ 0x34
  8455. /* Reset PLL2DIVR register */
  8456. RCC->PLL2DIVR = 0x01010280;
  8457. 8003d30: 4b15 ldr r3, [pc, #84] @ (8003d88 <SystemInit+0xec>)
  8458. 8003d32: 4a19 ldr r2, [pc, #100] @ (8003d98 <SystemInit+0xfc>)
  8459. 8003d34: 639a str r2, [r3, #56] @ 0x38
  8460. /* Reset PLL2FRACR register */
  8461. RCC->PLL2FRACR = 0x00000000;
  8462. 8003d36: 4b14 ldr r3, [pc, #80] @ (8003d88 <SystemInit+0xec>)
  8463. 8003d38: 2200 movs r2, #0
  8464. 8003d3a: 63da str r2, [r3, #60] @ 0x3c
  8465. /* Reset PLL3DIVR register */
  8466. RCC->PLL3DIVR = 0x01010280;
  8467. 8003d3c: 4b12 ldr r3, [pc, #72] @ (8003d88 <SystemInit+0xec>)
  8468. 8003d3e: 4a16 ldr r2, [pc, #88] @ (8003d98 <SystemInit+0xfc>)
  8469. 8003d40: 641a str r2, [r3, #64] @ 0x40
  8470. /* Reset PLL3FRACR register */
  8471. RCC->PLL3FRACR = 0x00000000;
  8472. 8003d42: 4b11 ldr r3, [pc, #68] @ (8003d88 <SystemInit+0xec>)
  8473. 8003d44: 2200 movs r2, #0
  8474. 8003d46: 645a str r2, [r3, #68] @ 0x44
  8475. /* Reset HSEBYP bit */
  8476. RCC->CR &= 0xFFFBFFFFU;
  8477. 8003d48: 4b0f ldr r3, [pc, #60] @ (8003d88 <SystemInit+0xec>)
  8478. 8003d4a: 681b ldr r3, [r3, #0]
  8479. 8003d4c: 4a0e ldr r2, [pc, #56] @ (8003d88 <SystemInit+0xec>)
  8480. 8003d4e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  8481. 8003d52: 6013 str r3, [r2, #0]
  8482. /* Disable all interrupts */
  8483. RCC->CIER = 0x00000000;
  8484. 8003d54: 4b0c ldr r3, [pc, #48] @ (8003d88 <SystemInit+0xec>)
  8485. 8003d56: 2200 movs r2, #0
  8486. 8003d58: 661a str r2, [r3, #96] @ 0x60
  8487. #if (STM32H7_DEV_ID == 0x450UL)
  8488. /* dual core CM7 or single core line */
  8489. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  8490. 8003d5a: 4b10 ldr r3, [pc, #64] @ (8003d9c <SystemInit+0x100>)
  8491. 8003d5c: 681a ldr r2, [r3, #0]
  8492. 8003d5e: 4b10 ldr r3, [pc, #64] @ (8003da0 <SystemInit+0x104>)
  8493. 8003d60: 4013 ands r3, r2
  8494. 8003d62: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  8495. 8003d66: d202 bcs.n 8003d6e <SystemInit+0xd2>
  8496. {
  8497. /* if stm32h7 revY*/
  8498. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  8499. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  8500. 8003d68: 4b0e ldr r3, [pc, #56] @ (8003da4 <SystemInit+0x108>)
  8501. 8003d6a: 2201 movs r2, #1
  8502. 8003d6c: 601a str r2, [r3, #0]
  8503. /*
  8504. * Disable the FMC bank1 (enabled after reset).
  8505. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  8506. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  8507. */
  8508. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  8509. 8003d6e: 4b0e ldr r3, [pc, #56] @ (8003da8 <SystemInit+0x10c>)
  8510. 8003d70: f243 02d2 movw r2, #12498 @ 0x30d2
  8511. 8003d74: 601a str r2, [r3, #0]
  8512. #if defined(USER_VECT_TAB_ADDRESS)
  8513. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  8514. #endif /* USER_VECT_TAB_ADDRESS */
  8515. #endif /*DUAL_CORE && CORE_CM4*/
  8516. }
  8517. 8003d76: bf00 nop
  8518. 8003d78: 46bd mov sp, r7
  8519. 8003d7a: f85d 7b04 ldr.w r7, [sp], #4
  8520. 8003d7e: 4770 bx lr
  8521. 8003d80: e000ed00 .word 0xe000ed00
  8522. 8003d84: 52002000 .word 0x52002000
  8523. 8003d88: 58024400 .word 0x58024400
  8524. 8003d8c: eaf6ed7f .word 0xeaf6ed7f
  8525. 8003d90: 02020200 .word 0x02020200
  8526. 8003d94: 01ff0000 .word 0x01ff0000
  8527. 8003d98: 01010280 .word 0x01010280
  8528. 8003d9c: 5c001000 .word 0x5c001000
  8529. 8003da0: ffff0000 .word 0xffff0000
  8530. 8003da4: 51008108 .word 0x51008108
  8531. 8003da8: 52004000 .word 0x52004000
  8532. 08003dac <UartTasksInit>:
  8533. osMutexId_t resMeasurementsMutex;
  8534. osMutexId_t sensorsInfoMutex;
  8535. extern RNG_HandleTypeDef hrng;
  8536. void UartTasksInit (void) {
  8537. 8003dac: b580 push {r7, lr}
  8538. 8003dae: af00 add r7, sp, #0
  8539. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  8540. 8003db0: 4b4e ldr r3, [pc, #312] @ (8003eec <UartTasksInit+0x140>)
  8541. 8003db2: 4a4f ldr r2, [pc, #316] @ (8003ef0 <UartTasksInit+0x144>)
  8542. 8003db4: 601a str r2, [r3, #0]
  8543. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  8544. 8003db6: 4b4d ldr r3, [pc, #308] @ (8003eec <UartTasksInit+0x140>)
  8545. 8003db8: f44f 7280 mov.w r2, #256 @ 0x100
  8546. 8003dbc: 809a strh r2, [r3, #4]
  8547. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  8548. 8003dbe: 4b4b ldr r3, [pc, #300] @ (8003eec <UartTasksInit+0x140>)
  8549. 8003dc0: 4a4c ldr r2, [pc, #304] @ (8003ef4 <UartTasksInit+0x148>)
  8550. 8003dc2: 609a str r2, [r3, #8]
  8551. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  8552. 8003dc4: 4b49 ldr r3, [pc, #292] @ (8003eec <UartTasksInit+0x140>)
  8553. 8003dc6: f44f 7280 mov.w r2, #256 @ 0x100
  8554. 8003dca: 809a strh r2, [r3, #4]
  8555. uart1TaskData.frameData = uart1TaskFrameData;
  8556. 8003dcc: 4b47 ldr r3, [pc, #284] @ (8003eec <UartTasksInit+0x140>)
  8557. 8003dce: 4a4a ldr r2, [pc, #296] @ (8003ef8 <UartTasksInit+0x14c>)
  8558. 8003dd0: 611a str r2, [r3, #16]
  8559. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  8560. 8003dd2: 4b46 ldr r3, [pc, #280] @ (8003eec <UartTasksInit+0x140>)
  8561. 8003dd4: f44f 7280 mov.w r2, #256 @ 0x100
  8562. 8003dd8: 829a strh r2, [r3, #20]
  8563. uart1TaskData.huart = &huart1;
  8564. 8003dda: 4b44 ldr r3, [pc, #272] @ (8003eec <UartTasksInit+0x140>)
  8565. 8003ddc: 4a47 ldr r2, [pc, #284] @ (8003efc <UartTasksInit+0x150>)
  8566. 8003dde: 631a str r2, [r3, #48] @ 0x30
  8567. uart1TaskData.uartNumber = 1;
  8568. 8003de0: 4b42 ldr r3, [pc, #264] @ (8003eec <UartTasksInit+0x140>)
  8569. 8003de2: 2201 movs r2, #1
  8570. 8003de4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8571. uart2TaskData.uartRxBuffer = uart2RxBuffer;
  8572. 8003de8: 4b45 ldr r3, [pc, #276] @ (8003f00 <UartTasksInit+0x154>)
  8573. 8003dea: 4a46 ldr r2, [pc, #280] @ (8003f04 <UartTasksInit+0x158>)
  8574. 8003dec: 601a str r2, [r3, #0]
  8575. uart2TaskData.uartRxBufferLen = UART2_RX_BUFF_SIZE;
  8576. 8003dee: 4b44 ldr r3, [pc, #272] @ (8003f00 <UartTasksInit+0x154>)
  8577. 8003df0: f44f 7280 mov.w r2, #256 @ 0x100
  8578. 8003df4: 809a strh r2, [r3, #4]
  8579. uart2TaskData.uartTxBuffer = uart2TxBuffer;
  8580. 8003df6: 4b42 ldr r3, [pc, #264] @ (8003f00 <UartTasksInit+0x154>)
  8581. 8003df8: 4a43 ldr r2, [pc, #268] @ (8003f08 <UartTasksInit+0x15c>)
  8582. 8003dfa: 609a str r2, [r3, #8]
  8583. uart2TaskData.uartRxBufferLen = UART2_TX_BUFF_SIZE;
  8584. 8003dfc: 4b40 ldr r3, [pc, #256] @ (8003f00 <UartTasksInit+0x154>)
  8585. 8003dfe: f44f 7280 mov.w r2, #256 @ 0x100
  8586. 8003e02: 809a strh r2, [r3, #4]
  8587. uart2TaskData.frameData = uart2TaskFrameData;
  8588. 8003e04: 4b3e ldr r3, [pc, #248] @ (8003f00 <UartTasksInit+0x154>)
  8589. 8003e06: 4a41 ldr r2, [pc, #260] @ (8003f0c <UartTasksInit+0x160>)
  8590. 8003e08: 611a str r2, [r3, #16]
  8591. uart2TaskData.frameDataLen = UART2_RX_BUFF_SIZE;
  8592. 8003e0a: 4b3d ldr r3, [pc, #244] @ (8003f00 <UartTasksInit+0x154>)
  8593. 8003e0c: f44f 7280 mov.w r2, #256 @ 0x100
  8594. 8003e10: 829a strh r2, [r3, #20]
  8595. uart2TaskData.huart = &huart2;
  8596. 8003e12: 4b3b ldr r3, [pc, #236] @ (8003f00 <UartTasksInit+0x154>)
  8597. 8003e14: 4a3e ldr r2, [pc, #248] @ (8003f10 <UartTasksInit+0x164>)
  8598. 8003e16: 631a str r2, [r3, #48] @ 0x30
  8599. uart2TaskData.uartNumber = 2;
  8600. 8003e18: 4b39 ldr r3, [pc, #228] @ (8003f00 <UartTasksInit+0x154>)
  8601. 8003e1a: 2202 movs r2, #2
  8602. 8003e1c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8603. uart3TaskData.uartRxBuffer = uart3RxBuffer;
  8604. 8003e20: 4b3c ldr r3, [pc, #240] @ (8003f14 <UartTasksInit+0x168>)
  8605. 8003e22: 4a3d ldr r2, [pc, #244] @ (8003f18 <UartTasksInit+0x16c>)
  8606. 8003e24: 601a str r2, [r3, #0]
  8607. uart3TaskData.uartRxBufferLen = UART3_RX_BUFF_SIZE;
  8608. 8003e26: 4b3b ldr r3, [pc, #236] @ (8003f14 <UartTasksInit+0x168>)
  8609. 8003e28: f44f 7280 mov.w r2, #256 @ 0x100
  8610. 8003e2c: 809a strh r2, [r3, #4]
  8611. uart3TaskData.uartTxBuffer = uart3TxBuffer;
  8612. 8003e2e: 4b39 ldr r3, [pc, #228] @ (8003f14 <UartTasksInit+0x168>)
  8613. 8003e30: 4a3a ldr r2, [pc, #232] @ (8003f1c <UartTasksInit+0x170>)
  8614. 8003e32: 609a str r2, [r3, #8]
  8615. uart3TaskData.uartRxBufferLen = UART3_TX_BUFF_SIZE;
  8616. 8003e34: 4b37 ldr r3, [pc, #220] @ (8003f14 <UartTasksInit+0x168>)
  8617. 8003e36: f44f 7280 mov.w r2, #256 @ 0x100
  8618. 8003e3a: 809a strh r2, [r3, #4]
  8619. uart3TaskData.frameData = uart3TaskFrameData;
  8620. 8003e3c: 4b35 ldr r3, [pc, #212] @ (8003f14 <UartTasksInit+0x168>)
  8621. 8003e3e: 4a38 ldr r2, [pc, #224] @ (8003f20 <UartTasksInit+0x174>)
  8622. 8003e40: 611a str r2, [r3, #16]
  8623. uart3TaskData.frameDataLen = UART3_RX_BUFF_SIZE;
  8624. 8003e42: 4b34 ldr r3, [pc, #208] @ (8003f14 <UartTasksInit+0x168>)
  8625. 8003e44: f44f 7280 mov.w r2, #256 @ 0x100
  8626. 8003e48: 829a strh r2, [r3, #20]
  8627. uart3TaskData.huart = &huart3;
  8628. 8003e4a: 4b32 ldr r3, [pc, #200] @ (8003f14 <UartTasksInit+0x168>)
  8629. 8003e4c: 4a35 ldr r2, [pc, #212] @ (8003f24 <UartTasksInit+0x178>)
  8630. 8003e4e: 631a str r2, [r3, #48] @ 0x30
  8631. uart3TaskData.uartNumber = 3;
  8632. 8003e50: 4b30 ldr r3, [pc, #192] @ (8003f14 <UartTasksInit+0x168>)
  8633. 8003e52: 2203 movs r2, #3
  8634. 8003e54: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8635. uart6TaskData.uartRxBuffer = uart6RxBuffer;
  8636. 8003e58: 4b33 ldr r3, [pc, #204] @ (8003f28 <UartTasksInit+0x17c>)
  8637. 8003e5a: 4a34 ldr r2, [pc, #208] @ (8003f2c <UartTasksInit+0x180>)
  8638. 8003e5c: 601a str r2, [r3, #0]
  8639. uart6TaskData.uartRxBufferLen = UART6_RX_BUFF_SIZE;
  8640. 8003e5e: 4b32 ldr r3, [pc, #200] @ (8003f28 <UartTasksInit+0x17c>)
  8641. 8003e60: f44f 7280 mov.w r2, #256 @ 0x100
  8642. 8003e64: 809a strh r2, [r3, #4]
  8643. uart6TaskData.uartTxBuffer = uart6TxBuffer;
  8644. 8003e66: 4b30 ldr r3, [pc, #192] @ (8003f28 <UartTasksInit+0x17c>)
  8645. 8003e68: 4a31 ldr r2, [pc, #196] @ (8003f30 <UartTasksInit+0x184>)
  8646. 8003e6a: 609a str r2, [r3, #8]
  8647. uart6TaskData.uartRxBufferLen = UART6_TX_BUFF_SIZE;
  8648. 8003e6c: 4b2e ldr r3, [pc, #184] @ (8003f28 <UartTasksInit+0x17c>)
  8649. 8003e6e: f44f 7280 mov.w r2, #256 @ 0x100
  8650. 8003e72: 809a strh r2, [r3, #4]
  8651. uart6TaskData.frameData = uart6TaskFrameData;
  8652. 8003e74: 4b2c ldr r3, [pc, #176] @ (8003f28 <UartTasksInit+0x17c>)
  8653. 8003e76: 4a2f ldr r2, [pc, #188] @ (8003f34 <UartTasksInit+0x188>)
  8654. 8003e78: 611a str r2, [r3, #16]
  8655. uart6TaskData.frameDataLen = UART6_RX_BUFF_SIZE;
  8656. 8003e7a: 4b2b ldr r3, [pc, #172] @ (8003f28 <UartTasksInit+0x17c>)
  8657. 8003e7c: f44f 7280 mov.w r2, #256 @ 0x100
  8658. 8003e80: 829a strh r2, [r3, #20]
  8659. uart6TaskData.huart = &huart6;
  8660. 8003e82: 4b29 ldr r3, [pc, #164] @ (8003f28 <UartTasksInit+0x17c>)
  8661. 8003e84: 4a2c ldr r2, [pc, #176] @ (8003f38 <UartTasksInit+0x18c>)
  8662. 8003e86: 631a str r2, [r3, #48] @ 0x30
  8663. uart6TaskData.uartNumber = 6;
  8664. 8003e88: 4b27 ldr r3, [pc, #156] @ (8003f28 <UartTasksInit+0x17c>)
  8665. 8003e8a: 2206 movs r2, #6
  8666. 8003e8c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8667. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  8668. 8003e90: 4b2a ldr r3, [pc, #168] @ (8003f3c <UartTasksInit+0x190>)
  8669. 8003e92: 4a2b ldr r2, [pc, #172] @ (8003f40 <UartTasksInit+0x194>)
  8670. 8003e94: 601a str r2, [r3, #0]
  8671. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  8672. 8003e96: 4b29 ldr r3, [pc, #164] @ (8003f3c <UartTasksInit+0x190>)
  8673. 8003e98: f44f 7280 mov.w r2, #256 @ 0x100
  8674. 8003e9c: 809a strh r2, [r3, #4]
  8675. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  8676. 8003e9e: 4b27 ldr r3, [pc, #156] @ (8003f3c <UartTasksInit+0x190>)
  8677. 8003ea0: 4a28 ldr r2, [pc, #160] @ (8003f44 <UartTasksInit+0x198>)
  8678. 8003ea2: 609a str r2, [r3, #8]
  8679. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  8680. 8003ea4: 4b25 ldr r3, [pc, #148] @ (8003f3c <UartTasksInit+0x190>)
  8681. 8003ea6: f44f 7280 mov.w r2, #256 @ 0x100
  8682. 8003eaa: 809a strh r2, [r3, #4]
  8683. uart8TaskData.frameData = uart8TaskFrameData;
  8684. 8003eac: 4b23 ldr r3, [pc, #140] @ (8003f3c <UartTasksInit+0x190>)
  8685. 8003eae: 4a26 ldr r2, [pc, #152] @ (8003f48 <UartTasksInit+0x19c>)
  8686. 8003eb0: 611a str r2, [r3, #16]
  8687. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  8688. 8003eb2: 4b22 ldr r3, [pc, #136] @ (8003f3c <UartTasksInit+0x190>)
  8689. 8003eb4: f44f 7280 mov.w r2, #256 @ 0x100
  8690. 8003eb8: 829a strh r2, [r3, #20]
  8691. uart8TaskData.huart = &huart8;
  8692. 8003eba: 4b20 ldr r3, [pc, #128] @ (8003f3c <UartTasksInit+0x190>)
  8693. 8003ebc: 4a23 ldr r2, [pc, #140] @ (8003f4c <UartTasksInit+0x1a0>)
  8694. 8003ebe: 631a str r2, [r3, #48] @ 0x30
  8695. uart8TaskData.uartNumber = 8;
  8696. 8003ec0: 4b1e ldr r3, [pc, #120] @ (8003f3c <UartTasksInit+0x190>)
  8697. 8003ec2: 2208 movs r2, #8
  8698. 8003ec4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8699. UartTaskCreate (&uart1TaskData);
  8700. 8003ec8: 4808 ldr r0, [pc, #32] @ (8003eec <UartTasksInit+0x140>)
  8701. 8003eca: f000 f841 bl 8003f50 <UartTaskCreate>
  8702. UartTaskCreate (&uart2TaskData);
  8703. 8003ece: 480c ldr r0, [pc, #48] @ (8003f00 <UartTasksInit+0x154>)
  8704. 8003ed0: f000 f83e bl 8003f50 <UartTaskCreate>
  8705. UartTaskCreate (&uart3TaskData);
  8706. 8003ed4: 480f ldr r0, [pc, #60] @ (8003f14 <UartTasksInit+0x168>)
  8707. 8003ed6: f000 f83b bl 8003f50 <UartTaskCreate>
  8708. UartTaskCreate (&uart6TaskData);
  8709. 8003eda: 4813 ldr r0, [pc, #76] @ (8003f28 <UartTasksInit+0x17c>)
  8710. 8003edc: f000 f838 bl 8003f50 <UartTaskCreate>
  8711. UartTaskCreate (&uart8TaskData);
  8712. 8003ee0: 4816 ldr r0, [pc, #88] @ (8003f3c <UartTasksInit+0x190>)
  8713. 8003ee2: f000 f835 bl 8003f50 <UartTaskCreate>
  8714. }
  8715. 8003ee6: bf00 nop
  8716. 8003ee8: bd80 pop {r7, pc}
  8717. 8003eea: bf00 nop
  8718. 8003eec: 24001e2c .word 0x24001e2c
  8719. 8003ef0: 24000f2c .word 0x24000f2c
  8720. 8003ef4: 2400102c .word 0x2400102c
  8721. 8003ef8: 2400112c .word 0x2400112c
  8722. 8003efc: 24000314 .word 0x24000314
  8723. 8003f00: 24001ed4 .word 0x24001ed4
  8724. 8003f04: 2400122c .word 0x2400122c
  8725. 8003f08: 2400132c .word 0x2400132c
  8726. 8003f0c: 2400142c .word 0x2400142c
  8727. 8003f10: 240003a8 .word 0x240003a8
  8728. 8003f14: 24001e64 .word 0x24001e64
  8729. 8003f18: 2400152c .word 0x2400152c
  8730. 8003f1c: 2400162c .word 0x2400162c
  8731. 8003f20: 2400172c .word 0x2400172c
  8732. 8003f24: 2400043c .word 0x2400043c
  8733. 8003f28: 24001e9c .word 0x24001e9c
  8734. 8003f2c: 2400182c .word 0x2400182c
  8735. 8003f30: 2400192c .word 0x2400192c
  8736. 8003f34: 24001a2c .word 0x24001a2c
  8737. 8003f38: 240004d0 .word 0x240004d0
  8738. 8003f3c: 24001f0c .word 0x24001f0c
  8739. 8003f40: 24001b2c .word 0x24001b2c
  8740. 8003f44: 24001c2c .word 0x24001c2c
  8741. 8003f48: 24001d2c .word 0x24001d2c
  8742. 8003f4c: 24000280 .word 0x24000280
  8743. 08003f50 <UartTaskCreate>:
  8744. void UartTaskCreate (UartTaskData* uartTaskData) {
  8745. 8003f50: b580 push {r7, lr}
  8746. 8003f52: b09a sub sp, #104 @ 0x68
  8747. 8003f54: af00 add r7, sp, #0
  8748. 8003f56: 6078 str r0, [r7, #4]
  8749. osThreadAttr_t osThreadAttrRxUart = { 0 };
  8750. 8003f58: f107 0344 add.w r3, r7, #68 @ 0x44
  8751. 8003f5c: 2224 movs r2, #36 @ 0x24
  8752. 8003f5e: 2100 movs r1, #0
  8753. 8003f60: 4618 mov r0, r3
  8754. 8003f62: f025 fecd bl 8029d00 <memset>
  8755. osThreadAttr_t osThreadAttrTxUart = { 0 };
  8756. 8003f66: f107 0320 add.w r3, r7, #32
  8757. 8003f6a: 2224 movs r2, #36 @ 0x24
  8758. 8003f6c: 2100 movs r1, #0
  8759. 8003f6e: 4618 mov r0, r3
  8760. 8003f70: f025 fec6 bl 8029d00 <memset>
  8761. uartTaskData->processRxDataMsgBuffer = xMessageBufferCreate (INPUT_DATA_BUFF_SIZE);
  8762. 8003f74: 2201 movs r2, #1
  8763. 8003f76: 2100 movs r1, #0
  8764. 8003f78: f44f 7080 mov.w r0, #256 @ 0x100
  8765. 8003f7c: f00e faf8 bl 8012570 <xStreamBufferGenericCreate>
  8766. 8003f80: 4602 mov r2, r0
  8767. 8003f82: 687b ldr r3, [r7, #4]
  8768. 8003f84: 625a str r2, [r3, #36] @ 0x24
  8769. uartTaskData->processDataCb = NULL;
  8770. 8003f86: 687b ldr r3, [r7, #4]
  8771. 8003f88: 2200 movs r2, #0
  8772. 8003f8a: 629a str r2, [r3, #40] @ 0x28
  8773. // osThreadAttrRxUart.name = "os_thread_uart1_rx";
  8774. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  8775. 8003f8c: f44f 6380 mov.w r3, #1024 @ 0x400
  8776. 8003f90: 65bb str r3, [r7, #88] @ 0x58
  8777. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  8778. 8003f92: 2328 movs r3, #40 @ 0x28
  8779. 8003f94: 65fb str r3, [r7, #92] @ 0x5c
  8780. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  8781. 8003f96: f107 0344 add.w r3, r7, #68 @ 0x44
  8782. 8003f9a: 461a mov r2, r3
  8783. 8003f9c: 6879 ldr r1, [r7, #4]
  8784. 8003f9e: 4816 ldr r0, [pc, #88] @ (8003ff8 <UartTaskCreate+0xa8>)
  8785. 8003fa0: f00c fc5b bl 801085a <osThreadNew>
  8786. 8003fa4: 4602 mov r2, r0
  8787. 8003fa6: 687b ldr r3, [r7, #4]
  8788. 8003fa8: 619a str r2, [r3, #24]
  8789. osMessageQueueAttr_t uartTxMsgQueueAttr = { 0 };
  8790. 8003faa: f107 0308 add.w r3, r7, #8
  8791. 8003fae: 2200 movs r2, #0
  8792. 8003fb0: 601a str r2, [r3, #0]
  8793. 8003fb2: 605a str r2, [r3, #4]
  8794. 8003fb4: 609a str r2, [r3, #8]
  8795. 8003fb6: 60da str r2, [r3, #12]
  8796. 8003fb8: 611a str r2, [r3, #16]
  8797. 8003fba: 615a str r2, [r3, #20]
  8798. // uartTxMsgQueueAttr.name = "uart1TxMsgQueue";
  8799. uartTaskData->sendCmdToSlaveQueue = osMessageQueueNew (16, sizeof (InterProcessData), &uartTxMsgQueueAttr);
  8800. 8003fbc: f107 0308 add.w r3, r7, #8
  8801. 8003fc0: 461a mov r2, r3
  8802. 8003fc2: 210c movs r1, #12
  8803. 8003fc4: 2010 movs r0, #16
  8804. 8003fc6: f00c ff53 bl 8010e70 <osMessageQueueNew>
  8805. 8003fca: 4602 mov r2, r0
  8806. 8003fcc: 687b ldr r3, [r7, #4]
  8807. 8003fce: 62da str r2, [r3, #44] @ 0x2c
  8808. // osThreadAttrTxUart.name = "os_thread_uart1_tx";
  8809. osThreadAttrTxUart.stack_size = configMINIMAL_STACK_SIZE * 4;
  8810. 8003fd0: f44f 6300 mov.w r3, #2048 @ 0x800
  8811. 8003fd4: 637b str r3, [r7, #52] @ 0x34
  8812. osThreadAttrTxUart.priority = (osPriority_t)osPriorityNormal;
  8813. 8003fd6: 2318 movs r3, #24
  8814. 8003fd8: 63bb str r3, [r7, #56] @ 0x38
  8815. uartTaskData->uartTransmitTaskHandle = osThreadNew (UartTxTask, uartTaskData, &osThreadAttrTxUart);
  8816. 8003fda: f107 0320 add.w r3, r7, #32
  8817. 8003fde: 461a mov r2, r3
  8818. 8003fe0: 6879 ldr r1, [r7, #4]
  8819. 8003fe2: 4806 ldr r0, [pc, #24] @ (8003ffc <UartTaskCreate+0xac>)
  8820. 8003fe4: f00c fc39 bl 801085a <osThreadNew>
  8821. 8003fe8: 4602 mov r2, r0
  8822. 8003fea: 687b ldr r3, [r7, #4]
  8823. 8003fec: 61da str r2, [r3, #28]
  8824. }
  8825. 8003fee: bf00 nop
  8826. 8003ff0: 3768 adds r7, #104 @ 0x68
  8827. 8003ff2: 46bd mov sp, r7
  8828. 8003ff4: bd80 pop {r7, pc}
  8829. 8003ff6: bf00 nop
  8830. 8003ff8: 08004175 .word 0x08004175
  8831. 8003ffc: 08004761 .word 0x08004761
  8832. 08004000 <HAL_UART_RxCpltCallback>:
  8833. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  8834. 8004000: b480 push {r7}
  8835. 8004002: b083 sub sp, #12
  8836. 8004004: af00 add r7, sp, #0
  8837. 8004006: 6078 str r0, [r7, #4]
  8838. // osSemaphoreRelease(uart8RxSemaphore);
  8839. }
  8840. 8004008: bf00 nop
  8841. 800400a: 370c adds r7, #12
  8842. 800400c: 46bd mov sp, r7
  8843. 800400e: f85d 7b04 ldr.w r7, [sp], #4
  8844. 8004012: 4770 bx lr
  8845. 08004014 <HAL_UARTEx_RxEventCallback>:
  8846. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  8847. 8004014: b580 push {r7, lr}
  8848. 8004016: b082 sub sp, #8
  8849. 8004018: af00 add r7, sp, #0
  8850. 800401a: 6078 str r0, [r7, #4]
  8851. 800401c: 460b mov r3, r1
  8852. 800401e: 807b strh r3, [r7, #2]
  8853. if (huart->Instance == USART1) {
  8854. 8004020: 687b ldr r3, [r7, #4]
  8855. 8004022: 681b ldr r3, [r3, #0]
  8856. 8004024: 4a1e ldr r2, [pc, #120] @ (80040a0 <HAL_UARTEx_RxEventCallback+0x8c>)
  8857. 8004026: 4293 cmp r3, r2
  8858. 8004028: d106 bne.n 8004038 <HAL_UARTEx_RxEventCallback+0x24>
  8859. HandleUartRxCallback (&uart1TaskData, huart, Size);
  8860. 800402a: 887b ldrh r3, [r7, #2]
  8861. 800402c: 461a mov r2, r3
  8862. 800402e: 6879 ldr r1, [r7, #4]
  8863. 8004030: 481c ldr r0, [pc, #112] @ (80040a4 <HAL_UARTEx_RxEventCallback+0x90>)
  8864. 8004032: f000 f853 bl 80040dc <HandleUartRxCallback>
  8865. } else if (huart->Instance == USART6) {
  8866. HandleUartRxCallback (&uart6TaskData, huart, Size);
  8867. } else if (huart->Instance == UART8) {
  8868. HandleUartRxCallback (&uart8TaskData, huart, Size);
  8869. }
  8870. }
  8871. 8004036: e02e b.n 8004096 <HAL_UARTEx_RxEventCallback+0x82>
  8872. } else if (huart->Instance == USART2) {
  8873. 8004038: 687b ldr r3, [r7, #4]
  8874. 800403a: 681b ldr r3, [r3, #0]
  8875. 800403c: 4a1a ldr r2, [pc, #104] @ (80040a8 <HAL_UARTEx_RxEventCallback+0x94>)
  8876. 800403e: 4293 cmp r3, r2
  8877. 8004040: d106 bne.n 8004050 <HAL_UARTEx_RxEventCallback+0x3c>
  8878. HandleUartRxCallback (&uart2TaskData, huart, Size);
  8879. 8004042: 887b ldrh r3, [r7, #2]
  8880. 8004044: 461a mov r2, r3
  8881. 8004046: 6879 ldr r1, [r7, #4]
  8882. 8004048: 4818 ldr r0, [pc, #96] @ (80040ac <HAL_UARTEx_RxEventCallback+0x98>)
  8883. 800404a: f000 f847 bl 80040dc <HandleUartRxCallback>
  8884. }
  8885. 800404e: e022 b.n 8004096 <HAL_UARTEx_RxEventCallback+0x82>
  8886. } else if (huart->Instance == USART3) {
  8887. 8004050: 687b ldr r3, [r7, #4]
  8888. 8004052: 681b ldr r3, [r3, #0]
  8889. 8004054: 4a16 ldr r2, [pc, #88] @ (80040b0 <HAL_UARTEx_RxEventCallback+0x9c>)
  8890. 8004056: 4293 cmp r3, r2
  8891. 8004058: d106 bne.n 8004068 <HAL_UARTEx_RxEventCallback+0x54>
  8892. HandleUartRxCallback (&uart3TaskData, huart, Size);
  8893. 800405a: 887b ldrh r3, [r7, #2]
  8894. 800405c: 461a mov r2, r3
  8895. 800405e: 6879 ldr r1, [r7, #4]
  8896. 8004060: 4814 ldr r0, [pc, #80] @ (80040b4 <HAL_UARTEx_RxEventCallback+0xa0>)
  8897. 8004062: f000 f83b bl 80040dc <HandleUartRxCallback>
  8898. }
  8899. 8004066: e016 b.n 8004096 <HAL_UARTEx_RxEventCallback+0x82>
  8900. } else if (huart->Instance == USART6) {
  8901. 8004068: 687b ldr r3, [r7, #4]
  8902. 800406a: 681b ldr r3, [r3, #0]
  8903. 800406c: 4a12 ldr r2, [pc, #72] @ (80040b8 <HAL_UARTEx_RxEventCallback+0xa4>)
  8904. 800406e: 4293 cmp r3, r2
  8905. 8004070: d106 bne.n 8004080 <HAL_UARTEx_RxEventCallback+0x6c>
  8906. HandleUartRxCallback (&uart6TaskData, huart, Size);
  8907. 8004072: 887b ldrh r3, [r7, #2]
  8908. 8004074: 461a mov r2, r3
  8909. 8004076: 6879 ldr r1, [r7, #4]
  8910. 8004078: 4810 ldr r0, [pc, #64] @ (80040bc <HAL_UARTEx_RxEventCallback+0xa8>)
  8911. 800407a: f000 f82f bl 80040dc <HandleUartRxCallback>
  8912. }
  8913. 800407e: e00a b.n 8004096 <HAL_UARTEx_RxEventCallback+0x82>
  8914. } else if (huart->Instance == UART8) {
  8915. 8004080: 687b ldr r3, [r7, #4]
  8916. 8004082: 681b ldr r3, [r3, #0]
  8917. 8004084: 4a0e ldr r2, [pc, #56] @ (80040c0 <HAL_UARTEx_RxEventCallback+0xac>)
  8918. 8004086: 4293 cmp r3, r2
  8919. 8004088: d105 bne.n 8004096 <HAL_UARTEx_RxEventCallback+0x82>
  8920. HandleUartRxCallback (&uart8TaskData, huart, Size);
  8921. 800408a: 887b ldrh r3, [r7, #2]
  8922. 800408c: 461a mov r2, r3
  8923. 800408e: 6879 ldr r1, [r7, #4]
  8924. 8004090: 480c ldr r0, [pc, #48] @ (80040c4 <HAL_UARTEx_RxEventCallback+0xb0>)
  8925. 8004092: f000 f823 bl 80040dc <HandleUartRxCallback>
  8926. }
  8927. 8004096: bf00 nop
  8928. 8004098: 3708 adds r7, #8
  8929. 800409a: 46bd mov sp, r7
  8930. 800409c: bd80 pop {r7, pc}
  8931. 800409e: bf00 nop
  8932. 80040a0: 40011000 .word 0x40011000
  8933. 80040a4: 24001e2c .word 0x24001e2c
  8934. 80040a8: 40004400 .word 0x40004400
  8935. 80040ac: 24001ed4 .word 0x24001ed4
  8936. 80040b0: 40004800 .word 0x40004800
  8937. 80040b4: 24001e64 .word 0x24001e64
  8938. 80040b8: 40011400 .word 0x40011400
  8939. 80040bc: 24001e9c .word 0x24001e9c
  8940. 80040c0: 40007c00 .word 0x40007c00
  8941. 80040c4: 24001f0c .word 0x24001f0c
  8942. 080040c8 <HAL_UART_TxCpltCallback>:
  8943. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  8944. 80040c8: b480 push {r7}
  8945. 80040ca: b083 sub sp, #12
  8946. 80040cc: af00 add r7, sp, #0
  8947. 80040ce: 6078 str r0, [r7, #4]
  8948. if (huart->Instance == UART8) {
  8949. }
  8950. }
  8951. 80040d0: bf00 nop
  8952. 80040d2: 370c adds r7, #12
  8953. 80040d4: 46bd mov sp, r7
  8954. 80040d6: f85d 7b04 ldr.w r7, [sp], #4
  8955. 80040da: 4770 bx lr
  8956. 080040dc <HandleUartRxCallback>:
  8957. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  8958. 80040dc: b580 push {r7, lr}
  8959. 80040de: b088 sub sp, #32
  8960. 80040e0: af02 add r7, sp, #8
  8961. 80040e2: 60f8 str r0, [r7, #12]
  8962. 80040e4: 60b9 str r1, [r7, #8]
  8963. 80040e6: 4613 mov r3, r2
  8964. 80040e8: 80fb strh r3, [r7, #6]
  8965. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  8966. 80040ea: 2300 movs r3, #0
  8967. 80040ec: 617b str r3, [r7, #20]
  8968. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  8969. 80040ee: 68fb ldr r3, [r7, #12]
  8970. 80040f0: 6a1b ldr r3, [r3, #32]
  8971. 80040f2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8972. 80040f6: 4618 mov r0, r3
  8973. 80040f8: f00c fcee bl 8010ad8 <osMutexAcquire>
  8974. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  8975. 80040fc: 68fb ldr r3, [r7, #12]
  8976. 80040fe: 691b ldr r3, [r3, #16]
  8977. 8004100: 68fa ldr r2, [r7, #12]
  8978. 8004102: 8ad2 ldrh r2, [r2, #22]
  8979. 8004104: 1898 adds r0, r3, r2
  8980. 8004106: 68fb ldr r3, [r7, #12]
  8981. 8004108: 681b ldr r3, [r3, #0]
  8982. 800410a: 88fa ldrh r2, [r7, #6]
  8983. 800410c: 4619 mov r1, r3
  8984. 800410e: f025 feee bl 8029eee <memcpy>
  8985. uartTaskData->frameBytesCount += Size;
  8986. 8004112: 68fb ldr r3, [r7, #12]
  8987. 8004114: 8ada ldrh r2, [r3, #22]
  8988. 8004116: 88fb ldrh r3, [r7, #6]
  8989. 8004118: 4413 add r3, r2
  8990. 800411a: b29a uxth r2, r3
  8991. 800411c: 68fb ldr r3, [r7, #12]
  8992. 800411e: 82da strh r2, [r3, #22]
  8993. osMutexRelease (uartTaskData->rxDataBufferMutex);
  8994. 8004120: 68fb ldr r3, [r7, #12]
  8995. 8004122: 6a1b ldr r3, [r3, #32]
  8996. 8004124: 4618 mov r0, r3
  8997. 8004126: f00c fd22 bl 8010b6e <osMutexRelease>
  8998. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  8999. 800412a: 68fb ldr r3, [r7, #12]
  9000. 800412c: 6998 ldr r0, [r3, #24]
  9001. 800412e: 88f9 ldrh r1, [r7, #6]
  9002. 8004130: f107 0314 add.w r3, r7, #20
  9003. 8004134: 9300 str r3, [sp, #0]
  9004. 8004136: 2300 movs r3, #0
  9005. 8004138: 2203 movs r2, #3
  9006. 800413a: f00f ff11 bl 8013f60 <xTaskGenericNotifyFromISR>
  9007. // HAL_UARTEx_ReceiveToIdle_DMA(huart, uart8RxBuffer, UART8_RX_BUFF_SIZE);
  9008. // __HAL_DMA_DISABLE_IT(&hdma_uart8_rx, DMA_IT_HT);
  9009. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9010. 800413e: 68fb ldr r3, [r7, #12]
  9011. 8004140: 6b18 ldr r0, [r3, #48] @ 0x30
  9012. 8004142: 68fb ldr r3, [r7, #12]
  9013. 8004144: 6819 ldr r1, [r3, #0]
  9014. 8004146: 68fb ldr r3, [r7, #12]
  9015. 8004148: 889b ldrh r3, [r3, #4]
  9016. 800414a: 461a mov r2, r3
  9017. 800414c: f00b fb91 bl 800f872 <HAL_UARTEx_ReceiveToIdle_IT>
  9018. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9019. 8004150: 697b ldr r3, [r7, #20]
  9020. 8004152: 2b00 cmp r3, #0
  9021. 8004154: d007 beq.n 8004166 <HandleUartRxCallback+0x8a>
  9022. 8004156: 4b06 ldr r3, [pc, #24] @ (8004170 <HandleUartRxCallback+0x94>)
  9023. 8004158: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9024. 800415c: 601a str r2, [r3, #0]
  9025. 800415e: f3bf 8f4f dsb sy
  9026. 8004162: f3bf 8f6f isb sy
  9027. }
  9028. 8004166: bf00 nop
  9029. 8004168: 3718 adds r7, #24
  9030. 800416a: 46bd mov sp, r7
  9031. 800416c: bd80 pop {r7, pc}
  9032. 800416e: bf00 nop
  9033. 8004170: e000ed04 .word 0xe000ed04
  9034. 08004174 <UartRxTask>:
  9035. void UartRxTask (void* argument) {
  9036. 8004174: b580 push {r7, lr}
  9037. 8004176: b0d2 sub sp, #328 @ 0x148
  9038. 8004178: af02 add r7, sp, #8
  9039. 800417a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9040. 800417e: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9041. 8004182: 6018 str r0, [r3, #0]
  9042. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9043. 8004184: f507 73a0 add.w r3, r7, #320 @ 0x140
  9044. 8004188: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9045. 800418c: 681b ldr r3, [r3, #0]
  9046. 800418e: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9047. SerialProtocolFrameData spFrameData = { 0 };
  9048. 8004192: f507 73a0 add.w r3, r7, #320 @ 0x140
  9049. 8004196: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9050. 800419a: 4618 mov r0, r3
  9051. 800419c: f44f 7386 mov.w r3, #268 @ 0x10c
  9052. 80041a0: 461a mov r2, r3
  9053. 80041a2: 2100 movs r1, #0
  9054. 80041a4: f025 fdac bl 8029d00 <memset>
  9055. uint32_t bytesRec = 0;
  9056. 80041a8: f507 73a0 add.w r3, r7, #320 @ 0x140
  9057. 80041ac: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9058. 80041b0: 2200 movs r2, #0
  9059. 80041b2: 601a str r2, [r3, #0]
  9060. uint32_t crc = 0;
  9061. 80041b4: 2300 movs r3, #0
  9062. 80041b6: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9063. uint16_t frameCommandRaw = 0x0000;
  9064. 80041ba: 2300 movs r3, #0
  9065. 80041bc: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9066. uint16_t frameBytesCount = 0;
  9067. 80041c0: 2300 movs r3, #0
  9068. 80041c2: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9069. uint16_t frameCrc = 0;
  9070. 80041c6: 2300 movs r3, #0
  9071. 80041c8: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9072. uint16_t frameTotalLength = 0;
  9073. 80041cc: 2300 movs r3, #0
  9074. 80041ce: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9075. uint16_t dataToSend = 0;
  9076. 80041d2: 2300 movs r3, #0
  9077. 80041d4: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9078. portBASE_TYPE crcPass = pdFAIL;
  9079. 80041d8: 2300 movs r3, #0
  9080. 80041da: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9081. portBASE_TYPE proceed = pdFALSE;
  9082. 80041de: 2300 movs r3, #0
  9083. 80041e0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9084. portBASE_TYPE frameTimeout = pdFAIL;
  9085. 80041e4: 2300 movs r3, #0
  9086. 80041e6: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9087. enum SerialReceiverStates receverState = srWaitForHeader;
  9088. 80041ea: 2300 movs r3, #0
  9089. 80041ec: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9090. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9091. 80041f0: 2000 movs r0, #0
  9092. 80041f2: f00c fbeb bl 80109cc <osMutexNew>
  9093. 80041f6: 4602 mov r2, r0
  9094. 80041f8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9095. 80041fc: 621a str r2, [r3, #32]
  9096. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9097. 80041fe: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9098. 8004202: 6b18 ldr r0, [r3, #48] @ 0x30
  9099. 8004204: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9100. 8004208: 6819 ldr r1, [r3, #0]
  9101. 800420a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9102. 800420e: 889b ldrh r3, [r3, #4]
  9103. 8004210: 461a mov r2, r3
  9104. 8004212: f00b fb2e bl 800f872 <HAL_UARTEx_ReceiveToIdle_IT>
  9105. // HAL_UARTEx_ReceiveToIdle_DMA(&huart8, uart8RxBuffer, 32);
  9106. while (pdTRUE) {
  9107. // HAL_UART_Receive_IT(&huart8, uart8RxBuffer, 1);
  9108. // if(osSemaphoreAcquire(uart8RxSemaphore, pdMS_TO_TICKS(1000)) !=
  9109. // osOK) if(xTaskNotifyWait(0, 0, &bytesRec, portMAX_DELAY) == pdTrue)
  9110. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9111. 8004216: f107 020c add.w r2, r7, #12
  9112. 800421a: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9113. 800421e: 2100 movs r1, #0
  9114. 8004220: 2000 movs r0, #0
  9115. 8004222: f00f fd7b bl 8013d1c <xTaskNotifyWait>
  9116. 8004226: 4603 mov r3, r0
  9117. 8004228: 2b00 cmp r3, #0
  9118. 800422a: bf0c ite eq
  9119. 800422c: 2301 moveq r3, #1
  9120. 800422e: 2300 movne r3, #0
  9121. 8004230: b2db uxtb r3, r3
  9122. 8004232: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9123. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9124. 8004236: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9125. 800423a: 6a1b ldr r3, [r3, #32]
  9126. 800423c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9127. 8004240: 4618 mov r0, r3
  9128. 8004242: f00c fc49 bl 8010ad8 <osMutexAcquire>
  9129. frameBytesCount = uartTaskData->frameBytesCount;
  9130. 8004246: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9131. 800424a: 8adb ldrh r3, [r3, #22]
  9132. 800424c: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9133. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9134. 8004250: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9135. 8004254: 6a1b ldr r3, [r3, #32]
  9136. 8004256: 4618 mov r0, r3
  9137. 8004258: f00c fc89 bl 8010b6e <osMutexRelease>
  9138. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9139. 800425c: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9140. 8004260: 2b01 cmp r3, #1
  9141. 8004262: d10a bne.n 800427a <UartRxTask+0x106>
  9142. 8004264: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9143. 8004268: 2b00 cmp r3, #0
  9144. 800426a: d006 beq.n 800427a <UartRxTask+0x106>
  9145. receverState = srFail;
  9146. 800426c: 2304 movs r3, #4
  9147. 800426e: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9148. proceed = pdTRUE;
  9149. 8004272: 2301 movs r3, #1
  9150. 8004274: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9151. 8004278: e029 b.n 80042ce <UartRxTask+0x15a>
  9152. } else {
  9153. if (frameTimeout == pdFALSE) {
  9154. 800427a: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9155. 800427e: 2b00 cmp r3, #0
  9156. 8004280: d111 bne.n 80042a6 <UartRxTask+0x132>
  9157. proceed = pdTRUE;
  9158. 8004282: 2301 movs r3, #1
  9159. 8004284: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9160. #if UART_TASK_LOGS
  9161. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9162. 8004288: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9163. 800428c: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9164. 8004290: 4619 mov r1, r3
  9165. 8004292: f507 73a0 add.w r3, r7, #320 @ 0x140
  9166. 8004296: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9167. 800429a: 681b ldr r3, [r3, #0]
  9168. 800429c: 461a mov r2, r3
  9169. 800429e: 48c1 ldr r0, [pc, #772] @ (80045a4 <UartRxTask+0x430>)
  9170. 80042a0: f025 fb9c bl 80299dc <iprintf>
  9171. 80042a4: e22f b.n 8004706 <UartRxTask+0x592>
  9172. #endif
  9173. } else {
  9174. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9175. 80042a6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9176. 80042aa: 6b1b ldr r3, [r3, #48] @ 0x30
  9177. 80042ac: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9178. 80042b0: 2b20 cmp r3, #32
  9179. 80042b2: f040 8228 bne.w 8004706 <UartRxTask+0x592>
  9180. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9181. 80042b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9182. 80042ba: 6b18 ldr r0, [r3, #48] @ 0x30
  9183. 80042bc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9184. 80042c0: 6819 ldr r1, [r3, #0]
  9185. 80042c2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9186. 80042c6: 889b ldrh r3, [r3, #4]
  9187. 80042c8: 461a mov r2, r3
  9188. 80042ca: f00b fad2 bl 800f872 <HAL_UARTEx_ReceiveToIdle_IT>
  9189. }
  9190. }
  9191. }
  9192. while (proceed) {
  9193. 80042ce: e21a b.n 8004706 <UartRxTask+0x592>
  9194. switch (receverState) {
  9195. 80042d0: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9196. 80042d4: 2b04 cmp r3, #4
  9197. 80042d6: f200 81f1 bhi.w 80046bc <UartRxTask+0x548>
  9198. 80042da: a201 add r2, pc, #4 @ (adr r2, 80042e0 <UartRxTask+0x16c>)
  9199. 80042dc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9200. 80042e0: 080042f5 .word 0x080042f5
  9201. 80042e4: 08004457 .word 0x08004457
  9202. 80042e8: 0800443b .word 0x0800443b
  9203. 80042ec: 080044f7 .word 0x080044f7
  9204. 80042f0: 080045b1 .word 0x080045b1
  9205. case srWaitForHeader:
  9206. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9207. 80042f4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9208. 80042f8: 6a1b ldr r3, [r3, #32]
  9209. 80042fa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9210. 80042fe: 4618 mov r0, r3
  9211. 8004300: f00c fbea bl 8010ad8 <osMutexAcquire>
  9212. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9213. 8004304: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9214. 8004308: 691b ldr r3, [r3, #16]
  9215. 800430a: 781b ldrb r3, [r3, #0]
  9216. 800430c: 2baa cmp r3, #170 @ 0xaa
  9217. 800430e: f040 8082 bne.w 8004416 <UartRxTask+0x2a2>
  9218. if (frameBytesCount > FRAME_ID_LENGTH) {
  9219. 8004312: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9220. 8004316: 2b02 cmp r3, #2
  9221. 8004318: d914 bls.n 8004344 <UartRxTask+0x1d0>
  9222. spFrameData.frameHeader.frameId =
  9223. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9224. 800431a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9225. 800431e: 691b ldr r3, [r3, #16]
  9226. 8004320: 3302 adds r3, #2
  9227. 8004322: 781b ldrb r3, [r3, #0]
  9228. 8004324: 021b lsls r3, r3, #8
  9229. 8004326: b21a sxth r2, r3
  9230. 8004328: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9231. 800432c: 691b ldr r3, [r3, #16]
  9232. 800432e: 3301 adds r3, #1
  9233. 8004330: 781b ldrb r3, [r3, #0]
  9234. 8004332: b21b sxth r3, r3
  9235. 8004334: 4313 orrs r3, r2
  9236. 8004336: b21b sxth r3, r3
  9237. 8004338: b29a uxth r2, r3
  9238. spFrameData.frameHeader.frameId =
  9239. 800433a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9240. 800433e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9241. 8004342: 801a strh r2, [r3, #0]
  9242. }
  9243. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  9244. 8004344: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9245. 8004348: 2b04 cmp r3, #4
  9246. 800434a: d923 bls.n 8004394 <UartRxTask+0x220>
  9247. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  9248. 800434c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9249. 8004350: 691b ldr r3, [r3, #16]
  9250. 8004352: 3304 adds r3, #4
  9251. 8004354: 781b ldrb r3, [r3, #0]
  9252. 8004356: 021b lsls r3, r3, #8
  9253. 8004358: b21a sxth r2, r3
  9254. 800435a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9255. 800435e: 691b ldr r3, [r3, #16]
  9256. 8004360: 3303 adds r3, #3
  9257. 8004362: 781b ldrb r3, [r3, #0]
  9258. 8004364: b21b sxth r3, r3
  9259. 8004366: 4313 orrs r3, r2
  9260. 8004368: b21b sxth r3, r3
  9261. 800436a: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9262. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  9263. 800436e: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  9264. 8004372: b2da uxtb r2, r3
  9265. 8004374: f507 73a0 add.w r3, r7, #320 @ 0x140
  9266. 8004378: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9267. 800437c: 709a strb r2, [r3, #2]
  9268. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  9269. 800437e: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  9270. 8004382: 13db asrs r3, r3, #15
  9271. 8004384: b21b sxth r3, r3
  9272. 8004386: f003 0201 and.w r2, r3, #1
  9273. 800438a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9274. 800438e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9275. 8004392: 609a str r2, [r3, #8]
  9276. }
  9277. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  9278. 8004394: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9279. 8004398: 2b05 cmp r3, #5
  9280. 800439a: d913 bls.n 80043c4 <UartRxTask+0x250>
  9281. 800439c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9282. 80043a0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9283. 80043a4: 789b ldrb r3, [r3, #2]
  9284. 80043a6: f403 4300 and.w r3, r3, #32768 @ 0x8000
  9285. 80043aa: 2b00 cmp r3, #0
  9286. 80043ac: d00a beq.n 80043c4 <UartRxTask+0x250>
  9287. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  9288. 80043ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9289. 80043b2: 691b ldr r3, [r3, #16]
  9290. 80043b4: 3305 adds r3, #5
  9291. 80043b6: 781b ldrb r3, [r3, #0]
  9292. 80043b8: b25a sxtb r2, r3
  9293. 80043ba: f507 73a0 add.w r3, r7, #320 @ 0x140
  9294. 80043be: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9295. 80043c2: 70da strb r2, [r3, #3]
  9296. }
  9297. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  9298. 80043c4: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9299. 80043c8: 2b07 cmp r3, #7
  9300. 80043ca: d920 bls.n 800440e <UartRxTask+0x29a>
  9301. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  9302. 80043cc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9303. 80043d0: 691b ldr r3, [r3, #16]
  9304. 80043d2: 3306 adds r3, #6
  9305. 80043d4: 781b ldrb r3, [r3, #0]
  9306. 80043d6: 021b lsls r3, r3, #8
  9307. 80043d8: b21a sxth r2, r3
  9308. 80043da: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9309. 80043de: 691b ldr r3, [r3, #16]
  9310. 80043e0: 3305 adds r3, #5
  9311. 80043e2: 781b ldrb r3, [r3, #0]
  9312. 80043e4: b21b sxth r3, r3
  9313. 80043e6: 4313 orrs r3, r2
  9314. 80043e8: b21b sxth r3, r3
  9315. 80043ea: b29a uxth r2, r3
  9316. 80043ec: f507 73a0 add.w r3, r7, #320 @ 0x140
  9317. 80043f0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9318. 80043f4: 809a strh r2, [r3, #4]
  9319. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  9320. 80043f6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9321. 80043fa: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9322. 80043fe: 889b ldrh r3, [r3, #4]
  9323. 8004400: 330a adds r3, #10
  9324. 8004402: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9325. receverState = srRecieveData;
  9326. 8004406: 2302 movs r3, #2
  9327. 8004408: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9328. 800440c: e00e b.n 800442c <UartRxTask+0x2b8>
  9329. } else {
  9330. proceed = pdFALSE;
  9331. 800440e: 2300 movs r3, #0
  9332. 8004410: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9333. 8004414: e00a b.n 800442c <UartRxTask+0x2b8>
  9334. }
  9335. } else {
  9336. if (frameBytesCount > 0) {
  9337. 8004416: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9338. 800441a: 2b00 cmp r3, #0
  9339. 800441c: d003 beq.n 8004426 <UartRxTask+0x2b2>
  9340. receverState = srFail;
  9341. 800441e: 2304 movs r3, #4
  9342. 8004420: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9343. 8004424: e002 b.n 800442c <UartRxTask+0x2b8>
  9344. } else {
  9345. proceed = pdFALSE;
  9346. 8004426: 2300 movs r3, #0
  9347. 8004428: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9348. }
  9349. }
  9350. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9351. 800442c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9352. 8004430: 6a1b ldr r3, [r3, #32]
  9353. 8004432: 4618 mov r0, r3
  9354. 8004434: f00c fb9b bl 8010b6e <osMutexRelease>
  9355. break;
  9356. 8004438: e165 b.n 8004706 <UartRxTask+0x592>
  9357. case srRecieveData:
  9358. if (frameBytesCount >= frameTotalLength) {
  9359. 800443a: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  9360. 800443e: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9361. 8004442: 429a cmp r2, r3
  9362. 8004444: d303 bcc.n 800444e <UartRxTask+0x2da>
  9363. receverState = srCheckCrc;
  9364. 8004446: 2301 movs r3, #1
  9365. 8004448: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9366. } else {
  9367. proceed = pdFALSE;
  9368. }
  9369. break;
  9370. 800444c: e15b b.n 8004706 <UartRxTask+0x592>
  9371. proceed = pdFALSE;
  9372. 800444e: 2300 movs r3, #0
  9373. 8004450: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9374. break;
  9375. 8004454: e157 b.n 8004706 <UartRxTask+0x592>
  9376. case srCheckCrc:
  9377. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9378. 8004456: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9379. 800445a: 6a1b ldr r3, [r3, #32]
  9380. 800445c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9381. 8004460: 4618 mov r0, r3
  9382. 8004462: f00c fb39 bl 8010ad8 <osMutexAcquire>
  9383. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  9384. 8004466: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9385. 800446a: 691a ldr r2, [r3, #16]
  9386. 800446c: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9387. 8004470: 3b01 subs r3, #1
  9388. 8004472: 4413 add r3, r2
  9389. 8004474: 781b ldrb r3, [r3, #0]
  9390. 8004476: 021b lsls r3, r3, #8
  9391. 8004478: b21a sxth r2, r3
  9392. 800447a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9393. 800447e: 6919 ldr r1, [r3, #16]
  9394. 8004480: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9395. 8004484: 3b02 subs r3, #2
  9396. 8004486: 440b add r3, r1
  9397. 8004488: 781b ldrb r3, [r3, #0]
  9398. 800448a: b21b sxth r3, r3
  9399. 800448c: 4313 orrs r3, r2
  9400. 800448e: b21b sxth r3, r3
  9401. 8004490: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9402. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  9403. 8004494: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9404. 8004498: 6919 ldr r1, [r3, #16]
  9405. 800449a: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9406. 800449e: 3b02 subs r3, #2
  9407. 80044a0: 461a mov r2, r3
  9408. 80044a2: 4841 ldr r0, [pc, #260] @ (80045a8 <UartRxTask+0x434>)
  9409. 80044a4: f000 ffda bl 800545c <HAL_CRC_Calculate>
  9410. 80044a8: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  9411. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9412. 80044ac: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9413. 80044b0: 6a1b ldr r3, [r3, #32]
  9414. 80044b2: 4618 mov r0, r3
  9415. 80044b4: f00c fb5b bl 8010b6e <osMutexRelease>
  9416. crcPass = frameCrc == crc;
  9417. 80044b8: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  9418. 80044bc: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  9419. 80044c0: 429a cmp r2, r3
  9420. 80044c2: bf0c ite eq
  9421. 80044c4: 2301 moveq r3, #1
  9422. 80044c6: 2300 movne r3, #0
  9423. 80044c8: b2db uxtb r3, r3
  9424. 80044ca: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9425. if (crcPass) {
  9426. 80044ce: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9427. 80044d2: 2b00 cmp r3, #0
  9428. 80044d4: d00b beq.n 80044ee <UartRxTask+0x37a>
  9429. #if UART_TASK_LOGS
  9430. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  9431. 80044d6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9432. 80044da: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9433. 80044de: 4619 mov r1, r3
  9434. 80044e0: 4832 ldr r0, [pc, #200] @ (80045ac <UartRxTask+0x438>)
  9435. 80044e2: f025 fa7b bl 80299dc <iprintf>
  9436. #endif
  9437. receverState = srExecuteCmd;
  9438. 80044e6: 2303 movs r3, #3
  9439. 80044e8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9440. } else {
  9441. receverState = srFail;
  9442. }
  9443. break;
  9444. 80044ec: e10b b.n 8004706 <UartRxTask+0x592>
  9445. receverState = srFail;
  9446. 80044ee: 2304 movs r3, #4
  9447. 80044f0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9448. break;
  9449. 80044f4: e107 b.n 8004706 <UartRxTask+0x592>
  9450. case srExecuteCmd:
  9451. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  9452. 80044f6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9453. 80044fa: 6a9b ldr r3, [r3, #40] @ 0x28
  9454. 80044fc: 2b00 cmp r3, #0
  9455. 80044fe: d104 bne.n 800450a <UartRxTask+0x396>
  9456. 8004500: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9457. 8004504: 6a5b ldr r3, [r3, #36] @ 0x24
  9458. 8004506: 2b00 cmp r3, #0
  9459. 8004508: d01e beq.n 8004548 <UartRxTask+0x3d4>
  9460. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9461. 800450a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9462. 800450e: 6a1b ldr r3, [r3, #32]
  9463. 8004510: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9464. 8004514: 4618 mov r0, r3
  9465. 8004516: f00c fadf bl 8010ad8 <osMutexAcquire>
  9466. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  9467. 800451a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9468. 800451e: 691b ldr r3, [r3, #16]
  9469. 8004520: f103 0108 add.w r1, r3, #8
  9470. 8004524: f507 73a0 add.w r3, r7, #320 @ 0x140
  9471. 8004528: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9472. 800452c: 889b ldrh r3, [r3, #4]
  9473. 800452e: 461a mov r2, r3
  9474. 8004530: f107 0310 add.w r3, r7, #16
  9475. 8004534: 330c adds r3, #12
  9476. 8004536: 4618 mov r0, r3
  9477. 8004538: f025 fcd9 bl 8029eee <memcpy>
  9478. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9479. 800453c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9480. 8004540: 6a1b ldr r3, [r3, #32]
  9481. 8004542: 4618 mov r0, r3
  9482. 8004544: f00c fb13 bl 8010b6e <osMutexRelease>
  9483. }
  9484. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  9485. 8004548: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9486. 800454c: 6a5b ldr r3, [r3, #36] @ 0x24
  9487. 800454e: 2b00 cmp r3, #0
  9488. 8004550: d015 beq.n 800457e <UartRxTask+0x40a>
  9489. if(xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE)
  9490. 8004552: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9491. 8004556: 6a58 ldr r0, [r3, #36] @ 0x24
  9492. 8004558: f507 73a0 add.w r3, r7, #320 @ 0x140
  9493. 800455c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9494. 8004560: 889b ldrh r3, [r3, #4]
  9495. 8004562: f103 020c add.w r2, r3, #12
  9496. 8004566: f107 0110 add.w r1, r7, #16
  9497. 800456a: 23c8 movs r3, #200 @ 0xc8
  9498. 800456c: f00e f892 bl 8012694 <xStreamBufferSend>
  9499. 8004570: 4603 mov r3, r0
  9500. 8004572: 2b00 cmp r3, #0
  9501. 8004574: d103 bne.n 800457e <UartRxTask+0x40a>
  9502. {
  9503. receverState = srFail;
  9504. 8004576: 2304 movs r3, #4
  9505. 8004578: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9506. break;
  9507. 800457c: e0c3 b.n 8004706 <UartRxTask+0x592>
  9508. }
  9509. }
  9510. if (uartTaskData->processDataCb != NULL) {
  9511. 800457e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9512. 8004582: 6a9b ldr r3, [r3, #40] @ 0x28
  9513. 8004584: 2b00 cmp r3, #0
  9514. 8004586: d008 beq.n 800459a <UartRxTask+0x426>
  9515. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  9516. 8004588: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9517. 800458c: 6a9b ldr r3, [r3, #40] @ 0x28
  9518. 800458e: f107 0210 add.w r2, r7, #16
  9519. 8004592: 4611 mov r1, r2
  9520. 8004594: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  9521. 8004598: 4798 blx r3
  9522. }
  9523. receverState = srFinish;
  9524. 800459a: 2305 movs r3, #5
  9525. 800459c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9526. break;
  9527. 80045a0: e0b1 b.n 8004706 <UartRxTask+0x592>
  9528. 80045a2: bf00 nop
  9529. 80045a4: 0802c92c .word 0x0802c92c
  9530. 80045a8: 24000248 .word 0x24000248
  9531. 80045ac: 0802c94c .word 0x0802c94c
  9532. case srFail:
  9533. dataToSend = 0;
  9534. 80045b0: 2300 movs r3, #0
  9535. 80045b2: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9536. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  9537. 80045b6: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9538. 80045ba: 2b01 cmp r3, #1
  9539. 80045bc: d124 bne.n 8004608 <UartRxTask+0x494>
  9540. 80045be: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9541. 80045c2: 2b02 cmp r3, #2
  9542. 80045c4: d920 bls.n 8004608 <UartRxTask+0x494>
  9543. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  9544. 80045c6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9545. 80045ca: 6898 ldr r0, [r3, #8]
  9546. 80045cc: f507 73a0 add.w r3, r7, #320 @ 0x140
  9547. 80045d0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9548. 80045d4: 8819 ldrh r1, [r3, #0]
  9549. 80045d6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9550. 80045da: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9551. 80045de: 789a ldrb r2, [r3, #2]
  9552. 80045e0: 2300 movs r3, #0
  9553. 80045e2: 9301 str r3, [sp, #4]
  9554. 80045e4: 2300 movs r3, #0
  9555. 80045e6: 9300 str r3, [sp, #0]
  9556. 80045e8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9557. 80045ec: f7fe fdf0 bl 80031d0 <PrepareRespFrame>
  9558. 80045f0: 4603 mov r3, r0
  9559. 80045f2: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9560. #if UART_TASK_LOGS
  9561. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  9562. 80045f6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9563. 80045fa: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9564. 80045fe: 4619 mov r1, r3
  9565. 8004600: 4844 ldr r0, [pc, #272] @ (8004714 <UartRxTask+0x5a0>)
  9566. 8004602: f025 f9eb bl 80299dc <iprintf>
  9567. 8004606: e03c b.n 8004682 <UartRxTask+0x50e>
  9568. #endif
  9569. } else if (!crcPass) {
  9570. 8004608: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9571. 800460c: 2b00 cmp r3, #0
  9572. 800460e: d120 bne.n 8004652 <UartRxTask+0x4de>
  9573. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  9574. 8004610: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9575. 8004614: 6898 ldr r0, [r3, #8]
  9576. 8004616: f507 73a0 add.w r3, r7, #320 @ 0x140
  9577. 800461a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9578. 800461e: 8819 ldrh r1, [r3, #0]
  9579. 8004620: f507 73a0 add.w r3, r7, #320 @ 0x140
  9580. 8004624: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9581. 8004628: 789a ldrb r2, [r3, #2]
  9582. 800462a: 2300 movs r3, #0
  9583. 800462c: 9301 str r3, [sp, #4]
  9584. 800462e: 2300 movs r3, #0
  9585. 8004630: 9300 str r3, [sp, #0]
  9586. 8004632: f06f 0301 mvn.w r3, #1
  9587. 8004636: f7fe fdcb bl 80031d0 <PrepareRespFrame>
  9588. 800463a: 4603 mov r3, r0
  9589. 800463c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9590. #if UART_TASK_LOGS
  9591. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  9592. 8004640: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9593. 8004644: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9594. 8004648: 4619 mov r1, r3
  9595. 800464a: 4833 ldr r0, [pc, #204] @ (8004718 <UartRxTask+0x5a4>)
  9596. 800464c: f025 f9c6 bl 80299dc <iprintf>
  9597. 8004650: e017 b.n 8004682 <UartRxTask+0x50e>
  9598. #endif
  9599. }
  9600. else
  9601. {
  9602. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  9603. 8004652: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9604. 8004656: 6898 ldr r0, [r3, #8]
  9605. 8004658: f507 73a0 add.w r3, r7, #320 @ 0x140
  9606. 800465c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9607. 8004660: 8819 ldrh r1, [r3, #0]
  9608. 8004662: f507 73a0 add.w r3, r7, #320 @ 0x140
  9609. 8004666: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9610. 800466a: 789a ldrb r2, [r3, #2]
  9611. 800466c: 2300 movs r3, #0
  9612. 800466e: 9301 str r3, [sp, #4]
  9613. 8004670: 2300 movs r3, #0
  9614. 8004672: 9300 str r3, [sp, #0]
  9615. 8004674: f06f 0303 mvn.w r3, #3
  9616. 8004678: f7fe fdaa bl 80031d0 <PrepareRespFrame>
  9617. 800467c: 4603 mov r3, r0
  9618. 800467e: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9619. }
  9620. if (dataToSend > 0) {
  9621. 8004682: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  9622. 8004686: 2b00 cmp r3, #0
  9623. 8004688: d00a beq.n 80046a0 <UartRxTask+0x52c>
  9624. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  9625. 800468a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9626. 800468e: 6b18 ldr r0, [r3, #48] @ 0x30
  9627. 8004690: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9628. 8004694: 689b ldr r3, [r3, #8]
  9629. 8004696: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  9630. 800469a: 4619 mov r1, r3
  9631. 800469c: f008 fc14 bl 800cec8 <HAL_UART_Transmit_IT>
  9632. }
  9633. #if UART_TASK_LOGS
  9634. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  9635. 80046a0: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  9636. 80046a4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9637. 80046a8: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9638. 80046ac: 461a mov r2, r3
  9639. 80046ae: 481b ldr r0, [pc, #108] @ (800471c <UartRxTask+0x5a8>)
  9640. 80046b0: f025 f994 bl 80299dc <iprintf>
  9641. #endif
  9642. receverState = srFinish;
  9643. 80046b4: 2305 movs r3, #5
  9644. 80046b6: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9645. break;
  9646. 80046ba: e024 b.n 8004706 <UartRxTask+0x592>
  9647. case srFinish:
  9648. default:
  9649. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9650. 80046bc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9651. 80046c0: 6a1b ldr r3, [r3, #32]
  9652. 80046c2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9653. 80046c6: 4618 mov r0, r3
  9654. 80046c8: f00c fa06 bl 8010ad8 <osMutexAcquire>
  9655. uartTaskData->frameBytesCount = 0;
  9656. 80046cc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9657. 80046d0: 2200 movs r2, #0
  9658. 80046d2: 82da strh r2, [r3, #22]
  9659. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9660. 80046d4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9661. 80046d8: 6a1b ldr r3, [r3, #32]
  9662. 80046da: 4618 mov r0, r3
  9663. 80046dc: f00c fa47 bl 8010b6e <osMutexRelease>
  9664. spFrameData.frameHeader.frameCommand = spUnknown;
  9665. 80046e0: f507 73a0 add.w r3, r7, #320 @ 0x140
  9666. 80046e4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9667. 80046e8: 2209 movs r2, #9
  9668. 80046ea: 709a strb r2, [r3, #2]
  9669. frameTotalLength = 0;
  9670. 80046ec: 2300 movs r3, #0
  9671. 80046ee: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9672. outputDataBufferPos = 0;
  9673. 80046f2: 4b0b ldr r3, [pc, #44] @ (8004720 <UartRxTask+0x5ac>)
  9674. 80046f4: 2200 movs r2, #0
  9675. 80046f6: 801a strh r2, [r3, #0]
  9676. receverState = srWaitForHeader;
  9677. 80046f8: 2300 movs r3, #0
  9678. 80046fa: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9679. proceed = pdFALSE;
  9680. 80046fe: 2300 movs r3, #0
  9681. 8004700: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9682. break;
  9683. 8004704: bf00 nop
  9684. while (proceed) {
  9685. 8004706: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  9686. 800470a: 2b00 cmp r3, #0
  9687. 800470c: f47f ade0 bne.w 80042d0 <UartRxTask+0x15c>
  9688. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9689. 8004710: e581 b.n 8004216 <UartRxTask+0xa2>
  9690. 8004712: bf00 nop
  9691. 8004714: 0802c964 .word 0x0802c964
  9692. 8004718: 0802c988 .word 0x0802c988
  9693. 800471c: 0802c9a0 .word 0x0802c9a0
  9694. 8004720: 24001fc4 .word 0x24001fc4
  9695. 08004724 <ReadMeasSetFromBuffer>:
  9696. }
  9697. }
  9698. }
  9699. void ReadMeasSetFromBuffer(uint8_t* buff, uint16_t* buffPos, float* dataSet)
  9700. {
  9701. 8004724: b580 push {r7, lr}
  9702. 8004726: b086 sub sp, #24
  9703. 8004728: af00 add r7, sp, #0
  9704. 800472a: 60f8 str r0, [r7, #12]
  9705. 800472c: 60b9 str r1, [r7, #8]
  9706. 800472e: 607a str r2, [r7, #4]
  9707. for(uint8_t i = 0; i < 3; i++)
  9708. 8004730: 2300 movs r3, #0
  9709. 8004732: 75fb strb r3, [r7, #23]
  9710. 8004734: e00b b.n 800474e <ReadMeasSetFromBuffer+0x2a>
  9711. {
  9712. ReadFloatFromBuffer(buff, buffPos, &dataSet[i]);
  9713. 8004736: 7dfb ldrb r3, [r7, #23]
  9714. 8004738: 009b lsls r3, r3, #2
  9715. 800473a: 687a ldr r2, [r7, #4]
  9716. 800473c: 4413 add r3, r2
  9717. 800473e: 461a mov r2, r3
  9718. 8004740: 68b9 ldr r1, [r7, #8]
  9719. 8004742: 68f8 ldr r0, [r7, #12]
  9720. 8004744: f7fe fc55 bl 8002ff2 <ReadFloatFromBuffer>
  9721. for(uint8_t i = 0; i < 3; i++)
  9722. 8004748: 7dfb ldrb r3, [r7, #23]
  9723. 800474a: 3301 adds r3, #1
  9724. 800474c: 75fb strb r3, [r7, #23]
  9725. 800474e: 7dfb ldrb r3, [r7, #23]
  9726. 8004750: 2b02 cmp r3, #2
  9727. 8004752: d9f0 bls.n 8004736 <ReadMeasSetFromBuffer+0x12>
  9728. }
  9729. }
  9730. 8004754: bf00 nop
  9731. 8004756: bf00 nop
  9732. 8004758: 3718 adds r7, #24
  9733. 800475a: 46bd mov sp, r7
  9734. 800475c: bd80 pop {r7, pc}
  9735. ...
  9736. 08004760 <UartTxTask>:
  9737. void UartTxTask (void* argument) {
  9738. 8004760: b580 push {r7, lr}
  9739. 8004762: b0d4 sub sp, #336 @ 0x150
  9740. 8004764: af02 add r7, sp, #8
  9741. 8004766: f507 73a4 add.w r3, r7, #328 @ 0x148
  9742. 800476a: f5a3 73a2 sub.w r3, r3, #324 @ 0x144
  9743. 800476e: 6018 str r0, [r3, #0]
  9744. UartTaskData* const uartTaskData = (UartTaskData*)argument;
  9745. 8004770: f507 73a4 add.w r3, r7, #328 @ 0x148
  9746. 8004774: f5a3 73a2 sub.w r3, r3, #324 @ 0x144
  9747. 8004778: 681b ldr r3, [r3, #0]
  9748. 800477a: f8c7 3140 str.w r3, [r7, #320] @ 0x140
  9749. InterProcessData data = { 0 };
  9750. 800477e: f507 7390 add.w r3, r7, #288 @ 0x120
  9751. 8004782: 2200 movs r2, #0
  9752. 8004784: 601a str r2, [r3, #0]
  9753. 8004786: 605a str r2, [r3, #4]
  9754. 8004788: 609a str r2, [r3, #8]
  9755. SerialProtocolFrameData frameData = { 0 };
  9756. 800478a: f507 73a4 add.w r3, r7, #328 @ 0x148
  9757. 800478e: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9758. 8004792: 4618 mov r0, r3
  9759. 8004794: f44f 7386 mov.w r3, #268 @ 0x10c
  9760. 8004798: 461a mov r2, r3
  9761. 800479a: 2100 movs r1, #0
  9762. 800479c: f025 fab0 bl 8029d00 <memset>
  9763. size_t bytesInMsg;
  9764. uint16_t frameId = 0;
  9765. 80047a0: 2300 movs r3, #0
  9766. 80047a2: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9767. uint32_t rndVal = 0;
  9768. 80047a6: f507 73a4 add.w r3, r7, #328 @ 0x148
  9769. 80047aa: f5a3 739c sub.w r3, r3, #312 @ 0x138
  9770. 80047ae: 2200 movs r2, #0
  9771. 80047b0: 601a str r2, [r3, #0]
  9772. uint16_t bytesToSend = 0;
  9773. 80047b2: 2300 movs r3, #0
  9774. 80047b4: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9775. SerialProtocolCommands frameCommand = spUnknown;
  9776. 80047b8: 2309 movs r3, #9
  9777. 80047ba: f887 313b strb.w r3, [r7, #315] @ 0x13b
  9778. uint16_t inputDataBufferPos = 0;
  9779. 80047be: f507 73a4 add.w r3, r7, #328 @ 0x148
  9780. 80047c2: f5a3 739d sub.w r3, r3, #314 @ 0x13a
  9781. 80047c6: 2200 movs r2, #0
  9782. 80047c8: 801a strh r2, [r3, #0]
  9783. uint8_t boardNumber = 0;
  9784. 80047ca: 2300 movs r3, #0
  9785. 80047cc: f887 3147 strb.w r3, [r7, #327] @ 0x147
  9786. while (pdTRUE) {
  9787. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  9788. 80047d0: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9789. 80047d4: 6adb ldr r3, [r3, #44] @ 0x2c
  9790. 80047d6: 2b00 cmp r3, #0
  9791. 80047d8: f000 8226 beq.w 8004c28 <UartTxTask+0x4c8>
  9792. osMessageQueueGet (uartTaskData->sendCmdToSlaveQueue, &data, 0, osWaitForever);
  9793. 80047dc: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9794. 80047e0: 6ad8 ldr r0, [r3, #44] @ 0x2c
  9795. 80047e2: f507 7190 add.w r1, r7, #288 @ 0x120
  9796. 80047e6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9797. 80047ea: 2200 movs r2, #0
  9798. 80047ec: f00c fc14 bl 8011018 <osMessageQueueGet>
  9799. HAL_RNG_GenerateRandomNumber (&hrng, &rndVal);
  9800. 80047f0: f107 0310 add.w r3, r7, #16
  9801. 80047f4: 4619 mov r1, r3
  9802. 80047f6: 48a2 ldr r0, [pc, #648] @ (8004a80 <UartTxTask+0x320>)
  9803. 80047f8: f007 fff2 bl 800c7e0 <HAL_RNG_GenerateRandomNumber>
  9804. frameId = (uint16_t)(rndVal & 0xFFFF);
  9805. 80047fc: f507 73a4 add.w r3, r7, #328 @ 0x148
  9806. 8004800: f5a3 739c sub.w r3, r3, #312 @ 0x138
  9807. 8004804: 681b ldr r3, [r3, #0]
  9808. 8004806: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9809. frameCommand = data.spCommand;
  9810. 800480a: f897 3120 ldrb.w r3, [r7, #288] @ 0x120
  9811. 800480e: f887 313b strb.w r3, [r7, #315] @ 0x13b
  9812. outputDataBufferPos = 0;
  9813. 8004812: 4b9c ldr r3, [pc, #624] @ (8004a84 <UartTxTask+0x324>)
  9814. 8004814: 2200 movs r2, #0
  9815. 8004816: 801a strh r2, [r3, #0]
  9816. memset (outputDataBuffer, 0x00, OUTPUT_DATA_BUFF_SIZE);
  9817. 8004818: 2280 movs r2, #128 @ 0x80
  9818. 800481a: 2100 movs r1, #0
  9819. 800481c: 489a ldr r0, [pc, #616] @ (8004a88 <UartTxTask+0x328>)
  9820. 800481e: f025 fa6f bl 8029d00 <memset>
  9821. switch (frameCommand) {
  9822. 8004822: f897 313b ldrb.w r3, [r7, #315] @ 0x13b
  9823. 8004826: 2b08 cmp r3, #8
  9824. 8004828: f200 8203 bhi.w 8004c32 <UartTxTask+0x4d2>
  9825. 800482c: a201 add r2, pc, #4 @ (adr r2, 8004834 <UartTxTask+0xd4>)
  9826. 800482e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9827. 8004832: bf00 nop
  9828. 8004834: 080048a1 .word 0x080048a1
  9829. 8004838: 080048a1 .word 0x080048a1
  9830. 800483c: 08004859 .word 0x08004859
  9831. 8004840: 08004859 .word 0x08004859
  9832. 8004844: 08004859 .word 0x08004859
  9833. 8004848: 0800488f .word 0x0800488f
  9834. 800484c: 0800488f .word 0x0800488f
  9835. 8004850: 0800487d .word 0x0800487d
  9836. 8004854: 080048a1 .word 0x080048a1
  9837. case spSetFanSpeed:
  9838. case spSetMotorXOn:
  9839. case spSetMotorYOn:
  9840. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (float));
  9841. 8004858: f507 7390 add.w r3, r7, #288 @ 0x120
  9842. 800485c: 1d1a adds r2, r3, #4
  9843. 800485e: 2304 movs r3, #4
  9844. 8004860: 4988 ldr r1, [pc, #544] @ (8004a84 <UartTxTask+0x324>)
  9845. 8004862: 4889 ldr r0, [pc, #548] @ (8004a88 <UartTxTask+0x328>)
  9846. 8004864: f7fe fb94 bl 8002f90 <WriteDataToBuffer>
  9847. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[1], sizeof (float));
  9848. 8004868: f507 7390 add.w r3, r7, #288 @ 0x120
  9849. 800486c: f103 0208 add.w r2, r3, #8
  9850. 8004870: 2304 movs r3, #4
  9851. 8004872: 4984 ldr r1, [pc, #528] @ (8004a84 <UartTxTask+0x324>)
  9852. 8004874: 4884 ldr r0, [pc, #528] @ (8004a88 <UartTxTask+0x328>)
  9853. 8004876: f7fe fb8b bl 8002f90 <WriteDataToBuffer>
  9854. break;
  9855. 800487a: e012 b.n 80048a2 <UartTxTask+0x142>
  9856. case spSetDiodeOn: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (float)); break;
  9857. 800487c: f507 7390 add.w r3, r7, #288 @ 0x120
  9858. 8004880: 1d1a adds r2, r3, #4
  9859. 8004882: 2304 movs r3, #4
  9860. 8004884: 497f ldr r1, [pc, #508] @ (8004a84 <UartTxTask+0x324>)
  9861. 8004886: 4880 ldr r0, [pc, #512] @ (8004a88 <UartTxTask+0x328>)
  9862. 8004888: f7fe fb82 bl 8002f90 <WriteDataToBuffer>
  9863. 800488c: e009 b.n 80048a2 <UartTxTask+0x142>
  9864. case spSetmotorXMaxCurrent:
  9865. case spSetmotorYMaxCurrent: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float)); break;
  9866. 800488e: f507 7390 add.w r3, r7, #288 @ 0x120
  9867. 8004892: 1d1a adds r2, r3, #4
  9868. 8004894: 2304 movs r3, #4
  9869. 8004896: 497b ldr r1, [pc, #492] @ (8004a84 <UartTxTask+0x324>)
  9870. 8004898: 487b ldr r0, [pc, #492] @ (8004a88 <UartTxTask+0x328>)
  9871. 800489a: f7fe fb79 bl 8002f90 <WriteDataToBuffer>
  9872. 800489e: e000 b.n 80048a2 <UartTxTask+0x142>
  9873. case spGetElectricalMeasurments:
  9874. case spGetSensorMeasurments: break;
  9875. 80048a0: bf00 nop
  9876. case spClearPeakMeasurments: break;
  9877. default: continue; break;
  9878. }
  9879. bytesToSend = PrepareReqFrame (uartTaskData->uartTxBuffer, frameId, frameCommand, outputDataBuffer, outputDataBufferPos);
  9880. 80048a2: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9881. 80048a6: 6898 ldr r0, [r3, #8]
  9882. 80048a8: 4b76 ldr r3, [pc, #472] @ (8004a84 <UartTxTask+0x324>)
  9883. 80048aa: 881b ldrh r3, [r3, #0]
  9884. 80048ac: f897 213b ldrb.w r2, [r7, #315] @ 0x13b
  9885. 80048b0: f8b7 113e ldrh.w r1, [r7, #318] @ 0x13e
  9886. 80048b4: 9300 str r3, [sp, #0]
  9887. 80048b6: 4b74 ldr r3, [pc, #464] @ (8004a88 <UartTxTask+0x328>)
  9888. 80048b8: f7fe fbf6 bl 80030a8 <PrepareReqFrame>
  9889. 80048bc: 4603 mov r3, r0
  9890. 80048be: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9891. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, bytesToSend);
  9892. 80048c2: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9893. 80048c6: 6b18 ldr r0, [r3, #48] @ 0x30
  9894. 80048c8: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9895. 80048cc: 689b ldr r3, [r3, #8]
  9896. 80048ce: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  9897. 80048d2: 4619 mov r1, r3
  9898. 80048d4: f008 faf8 bl 800cec8 <HAL_UART_Transmit_IT>
  9899. bytesInMsg = xMessageBufferReceive (uartTaskData->processRxDataMsgBuffer, &frameData, INPUT_DATA_BUFF_SIZE, pdMS_TO_TICKS (1000));
  9900. 80048d8: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9901. 80048dc: 6a58 ldr r0, [r3, #36] @ 0x24
  9902. 80048de: f107 0114 add.w r1, r7, #20
  9903. 80048e2: f44f 737a mov.w r3, #1000 @ 0x3e8
  9904. 80048e6: f44f 7280 mov.w r2, #256 @ 0x100
  9905. 80048ea: f00d ffc9 bl 8012880 <xStreamBufferReceive>
  9906. 80048ee: f8c7 0134 str.w r0, [r7, #308] @ 0x134
  9907. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  9908. 80048f2: 2300 movs r3, #0
  9909. 80048f4: f887 3147 strb.w r3, [r7, #327] @ 0x147
  9910. 80048f8: e00e b.n 8004918 <UartTxTask+0x1b8>
  9911. {
  9912. if(boardToUartNumberMap[boardNumber] == uartTaskData->uartNumber)
  9913. 80048fa: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  9914. 80048fe: 4a63 ldr r2, [pc, #396] @ (8004a8c <UartTxTask+0x32c>)
  9915. 8004900: 5cd2 ldrb r2, [r2, r3]
  9916. 8004902: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9917. 8004906: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9918. 800490a: 429a cmp r2, r3
  9919. 800490c: d009 beq.n 8004922 <UartTxTask+0x1c2>
  9920. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  9921. 800490e: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  9922. 8004912: 3301 adds r3, #1
  9923. 8004914: f887 3147 strb.w r3, [r7, #327] @ 0x147
  9924. 8004918: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  9925. 800491c: 2b03 cmp r3, #3
  9926. 800491e: d9ec bls.n 80048fa <UartTxTask+0x19a>
  9927. 8004920: e000 b.n 8004924 <UartTxTask+0x1c4>
  9928. {
  9929. break;
  9930. 8004922: bf00 nop
  9931. }
  9932. }
  9933. if (bytesInMsg == 0) {
  9934. 8004924: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  9935. 8004928: 2b00 cmp r3, #0
  9936. 800492a: d124 bne.n 8004976 <UartTxTask+0x216>
  9937. if (frameCommand == spGetElectricalMeasurments)
  9938. 800492c: f897 313b ldrb.w r3, [r7, #315] @ 0x13b
  9939. 8004930: 2b00 cmp r3, #0
  9940. 8004932: d114 bne.n 800495e <UartTxTask+0x1fe>
  9941. {
  9942. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  9943. 8004934: 4b56 ldr r3, [pc, #344] @ (8004a90 <UartTxTask+0x330>)
  9944. 8004936: 681b ldr r3, [r3, #0]
  9945. 8004938: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9946. 800493c: 4618 mov r0, r3
  9947. 800493e: f00c f8cb bl 8010ad8 <osMutexAcquire>
  9948. slaveLastSeen[boardNumber]++;
  9949. 8004942: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  9950. 8004946: 4a53 ldr r2, [pc, #332] @ (8004a94 <UartTxTask+0x334>)
  9951. 8004948: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  9952. 800494c: 3201 adds r2, #1
  9953. 800494e: 4951 ldr r1, [pc, #324] @ (8004a94 <UartTxTask+0x334>)
  9954. 8004950: f841 2023 str.w r2, [r1, r3, lsl #2]
  9955. osMutexRelease(resMeasurementsMutex);
  9956. 8004954: 4b4e ldr r3, [pc, #312] @ (8004a90 <UartTxTask+0x330>)
  9957. 8004956: 681b ldr r3, [r3, #0]
  9958. 8004958: 4618 mov r0, r3
  9959. 800495a: f00c f908 bl 8010b6e <osMutexRelease>
  9960. }
  9961. #if UART_TASK_LOGS
  9962. printf ("Uart%d: Response timeout for frameId 0x%x\n", uartTaskData->uartNumber, frameId);
  9963. 800495e: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9964. 8004962: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9965. 8004966: 4619 mov r1, r3
  9966. 8004968: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9967. 800496c: 461a mov r2, r3
  9968. 800496e: 484a ldr r0, [pc, #296] @ (8004a98 <UartTxTask+0x338>)
  9969. 8004970: f025 f834 bl 80299dc <iprintf>
  9970. 8004974: e72c b.n 80047d0 <UartTxTask+0x70>
  9971. #endif
  9972. } else {
  9973. if ((frameId == frameData.frameHeader.frameId) && (frameData.frameHeader.respStatus == spOK)) {
  9974. 8004976: f507 73a4 add.w r3, r7, #328 @ 0x148
  9975. 800497a: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9976. 800497e: 881b ldrh r3, [r3, #0]
  9977. 8004980: f8b7 213e ldrh.w r2, [r7, #318] @ 0x13e
  9978. 8004984: 429a cmp r2, r3
  9979. 8004986: f47f af23 bne.w 80047d0 <UartTxTask+0x70>
  9980. 800498a: f507 73a4 add.w r3, r7, #328 @ 0x148
  9981. 800498e: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9982. 8004992: f993 3003 ldrsb.w r3, [r3, #3]
  9983. 8004996: 2b00 cmp r3, #0
  9984. 8004998: f47f af1a bne.w 80047d0 <UartTxTask+0x70>
  9985. #if UART_TASK_LOGS
  9986. printf ("Uart%d: Response for frameId 0x%x OK\n", uartTaskData->uartNumber, frameId);
  9987. 800499c: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  9988. 80049a0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9989. 80049a4: 4619 mov r1, r3
  9990. 80049a6: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9991. 80049aa: 461a mov r2, r3
  9992. 80049ac: 483b ldr r0, [pc, #236] @ (8004a9c <UartTxTask+0x33c>)
  9993. 80049ae: f025 f815 bl 80299dc <iprintf>
  9994. #endif
  9995. slaveLastSeen[boardNumber] = 0;
  9996. 80049b2: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  9997. 80049b6: 4a37 ldr r2, [pc, #220] @ (8004a94 <UartTxTask+0x334>)
  9998. 80049b8: 2100 movs r1, #0
  9999. 80049ba: f842 1023 str.w r1, [r2, r3, lsl #2]
  10000. switch(frameData.frameHeader.frameCommand)
  10001. 80049be: f507 73a4 add.w r3, r7, #328 @ 0x148
  10002. 80049c2: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10003. 80049c6: 789b ldrb r3, [r3, #2]
  10004. 80049c8: 2b00 cmp r3, #0
  10005. 80049ca: d002 beq.n 80049d2 <UartTxTask+0x272>
  10006. 80049cc: 2b01 cmp r3, #1
  10007. 80049ce: d069 beq.n 8004aa4 <UartTxTask+0x344>
  10008. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitSwitchCenter);
  10009. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->powerSupplyFailMask);
  10010. osMutexRelease(sensorsInfoMutex);
  10011. break;
  10012. default:
  10013. break;
  10014. 80049d0: e130 b.n 8004c34 <UartTxTask+0x4d4>
  10015. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10016. 80049d2: 4b2f ldr r3, [pc, #188] @ (8004a90 <UartTxTask+0x330>)
  10017. 80049d4: 681b ldr r3, [r3, #0]
  10018. 80049d6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10019. 80049da: 4618 mov r0, r3
  10020. 80049dc: f00c f87c bl 8010ad8 <osMutexAcquire>
  10021. RESMeasurements *resMeas = &resMeasurements[boardNumber];
  10022. 80049e0: f897 2147 ldrb.w r2, [r7, #327] @ 0x147
  10023. 80049e4: 4613 mov r3, r2
  10024. 80049e6: 011b lsls r3, r3, #4
  10025. 80049e8: 1a9b subs r3, r3, r2
  10026. 80049ea: 009b lsls r3, r3, #2
  10027. 80049ec: 4a2c ldr r2, [pc, #176] @ (8004aa0 <UartTxTask+0x340>)
  10028. 80049ee: 4413 add r3, r2
  10029. 80049f0: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10030. inputDataBufferPos = 0;
  10031. 80049f4: f507 73a4 add.w r3, r7, #328 @ 0x148
  10032. 80049f8: f5a3 739d sub.w r3, r3, #314 @ 0x13a
  10033. 80049fc: 2200 movs r2, #0
  10034. 80049fe: 801a strh r2, [r3, #0]
  10035. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltageRMS);
  10036. 8004a00: f8d7 212c ldr.w r2, [r7, #300] @ 0x12c
  10037. 8004a04: f107 010e add.w r1, r7, #14
  10038. 8004a08: f107 0314 add.w r3, r7, #20
  10039. 8004a0c: 330c adds r3, #12
  10040. 8004a0e: 4618 mov r0, r3
  10041. 8004a10: f7ff fe88 bl 8004724 <ReadMeasSetFromBuffer>
  10042. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltagePeak);
  10043. 8004a14: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10044. 8004a18: f103 020c add.w r2, r3, #12
  10045. 8004a1c: f107 010e add.w r1, r7, #14
  10046. 8004a20: f107 0314 add.w r3, r7, #20
  10047. 8004a24: 330c adds r3, #12
  10048. 8004a26: 4618 mov r0, r3
  10049. 8004a28: f7ff fe7c bl 8004724 <ReadMeasSetFromBuffer>
  10050. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentRMS);
  10051. 8004a2c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10052. 8004a30: f103 0218 add.w r2, r3, #24
  10053. 8004a34: f107 010e add.w r1, r7, #14
  10054. 8004a38: f107 0314 add.w r3, r7, #20
  10055. 8004a3c: 330c adds r3, #12
  10056. 8004a3e: 4618 mov r0, r3
  10057. 8004a40: f7ff fe70 bl 8004724 <ReadMeasSetFromBuffer>
  10058. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentPeak);
  10059. 8004a44: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10060. 8004a48: f103 0224 add.w r2, r3, #36 @ 0x24
  10061. 8004a4c: f107 010e add.w r1, r7, #14
  10062. 8004a50: f107 0314 add.w r3, r7, #20
  10063. 8004a54: 330c adds r3, #12
  10064. 8004a56: 4618 mov r0, r3
  10065. 8004a58: f7ff fe64 bl 8004724 <ReadMeasSetFromBuffer>
  10066. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->power);
  10067. 8004a5c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10068. 8004a60: f103 0230 add.w r2, r3, #48 @ 0x30
  10069. 8004a64: f107 010e add.w r1, r7, #14
  10070. 8004a68: f107 0314 add.w r3, r7, #20
  10071. 8004a6c: 330c adds r3, #12
  10072. 8004a6e: 4618 mov r0, r3
  10073. 8004a70: f7ff fe58 bl 8004724 <ReadMeasSetFromBuffer>
  10074. osMutexRelease(resMeasurementsMutex);
  10075. 8004a74: 4b06 ldr r3, [pc, #24] @ (8004a90 <UartTxTask+0x330>)
  10076. 8004a76: 681b ldr r3, [r3, #0]
  10077. 8004a78: 4618 mov r0, r3
  10078. 8004a7a: f00c f878 bl 8010b6e <osMutexRelease>
  10079. break;
  10080. 8004a7e: e0d9 b.n 8004c34 <UartTxTask+0x4d4>
  10081. 8004a80: 2400026c .word 0x2400026c
  10082. 8004a84: 24001fc4 .word 0x24001fc4
  10083. 8004a88: 24001f44 .word 0x24001f44
  10084. 8004a8c: 24000014 .word 0x24000014
  10085. 8004a90: 24002168 .word 0x24002168
  10086. 8004a94: 24002158 .word 0x24002158
  10087. 8004a98: 0802c9bc .word 0x0802c9bc
  10088. 8004a9c: 0802c9e8 .word 0x0802c9e8
  10089. 8004aa0: 24001fc8 .word 0x24001fc8
  10090. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  10091. 8004aa4: 4b64 ldr r3, [pc, #400] @ (8004c38 <UartTxTask+0x4d8>)
  10092. 8004aa6: 681b ldr r3, [r3, #0]
  10093. 8004aa8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10094. 8004aac: 4618 mov r0, r3
  10095. 8004aae: f00c f813 bl 8010ad8 <osMutexAcquire>
  10096. inputDataBufferPos = 0;
  10097. 8004ab2: f507 73a4 add.w r3, r7, #328 @ 0x148
  10098. 8004ab6: f5a3 739d sub.w r3, r3, #314 @ 0x13a
  10099. 8004aba: 2200 movs r2, #0
  10100. 8004abc: 801a strh r2, [r3, #0]
  10101. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  10102. 8004abe: f897 2147 ldrb.w r2, [r7, #327] @ 0x147
  10103. 8004ac2: 4613 mov r3, r2
  10104. 8004ac4: 009b lsls r3, r3, #2
  10105. 8004ac6: 4413 add r3, r2
  10106. 8004ac8: 00db lsls r3, r3, #3
  10107. 8004aca: 4a5c ldr r2, [pc, #368] @ (8004c3c <UartTxTask+0x4dc>)
  10108. 8004acc: 4413 add r3, r2
  10109. 8004ace: f8c7 3130 str.w r3, [r7, #304] @ 0x130
  10110. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvTemperature[0]);
  10111. 8004ad2: f8d7 2130 ldr.w r2, [r7, #304] @ 0x130
  10112. 8004ad6: f107 010e add.w r1, r7, #14
  10113. 8004ada: f107 0314 add.w r3, r7, #20
  10114. 8004ade: 330c adds r3, #12
  10115. 8004ae0: 4618 mov r0, r3
  10116. 8004ae2: f7fe fa86 bl 8002ff2 <ReadFloatFromBuffer>
  10117. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvTemperature[1]);
  10118. 8004ae6: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10119. 8004aea: 1d1a adds r2, r3, #4
  10120. 8004aec: f107 010e add.w r1, r7, #14
  10121. 8004af0: f107 0314 add.w r3, r7, #20
  10122. 8004af4: 330c adds r3, #12
  10123. 8004af6: 4618 mov r0, r3
  10124. 8004af8: f7fe fa7b bl 8002ff2 <ReadFloatFromBuffer>
  10125. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->fanVoltage);
  10126. 8004afc: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10127. 8004b00: f103 0208 add.w r2, r3, #8
  10128. 8004b04: f107 010e add.w r1, r7, #14
  10129. 8004b08: f107 0314 add.w r3, r7, #20
  10130. 8004b0c: 330c adds r3, #12
  10131. 8004b0e: 4618 mov r0, r3
  10132. 8004b10: f7fe fa6f bl 8002ff2 <ReadFloatFromBuffer>
  10133. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvEncoder);
  10134. 8004b14: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10135. 8004b18: f103 020c add.w r2, r3, #12
  10136. 8004b1c: f107 010e add.w r1, r7, #14
  10137. 8004b20: f107 0314 add.w r3, r7, #20
  10138. 8004b24: 330c adds r3, #12
  10139. 8004b26: 4618 mov r0, r3
  10140. 8004b28: f7fe fa63 bl 8002ff2 <ReadFloatFromBuffer>
  10141. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXStatus);
  10142. 8004b2c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10143. 8004b30: f103 0210 add.w r2, r3, #16
  10144. 8004b34: f107 010e add.w r1, r7, #14
  10145. 8004b38: f107 0314 add.w r3, r7, #20
  10146. 8004b3c: 330c adds r3, #12
  10147. 8004b3e: 4618 mov r0, r3
  10148. 8004b40: f7fe fa8c bl 800305c <ReadByteFromBufer>
  10149. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYStatus);
  10150. 8004b44: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10151. 8004b48: f103 0211 add.w r2, r3, #17
  10152. 8004b4c: f107 010e add.w r1, r7, #14
  10153. 8004b50: f107 0314 add.w r3, r7, #20
  10154. 8004b54: 330c adds r3, #12
  10155. 8004b56: 4618 mov r0, r3
  10156. 8004b58: f7fe fa80 bl 800305c <ReadByteFromBufer>
  10157. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXAveCurrent);
  10158. 8004b5c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10159. 8004b60: f103 0214 add.w r2, r3, #20
  10160. 8004b64: f107 010e add.w r1, r7, #14
  10161. 8004b68: f107 0314 add.w r3, r7, #20
  10162. 8004b6c: 330c adds r3, #12
  10163. 8004b6e: 4618 mov r0, r3
  10164. 8004b70: f7fe fa3f bl 8002ff2 <ReadFloatFromBuffer>
  10165. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYAveCurrent);
  10166. 8004b74: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10167. 8004b78: f103 0218 add.w r2, r3, #24
  10168. 8004b7c: f107 010e add.w r1, r7, #14
  10169. 8004b80: f107 0314 add.w r3, r7, #20
  10170. 8004b84: 330c adds r3, #12
  10171. 8004b86: 4618 mov r0, r3
  10172. 8004b88: f7fe fa33 bl 8002ff2 <ReadFloatFromBuffer>
  10173. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXPeakCurrent);
  10174. 8004b8c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10175. 8004b90: f103 021c add.w r2, r3, #28
  10176. 8004b94: f107 010e add.w r1, r7, #14
  10177. 8004b98: f107 0314 add.w r3, r7, #20
  10178. 8004b9c: 330c adds r3, #12
  10179. 8004b9e: 4618 mov r0, r3
  10180. 8004ba0: f7fe fa27 bl 8002ff2 <ReadFloatFromBuffer>
  10181. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYPeakCurrent);
  10182. 8004ba4: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10183. 8004ba8: f103 0220 add.w r2, r3, #32
  10184. 8004bac: f107 010e add.w r1, r7, #14
  10185. 8004bb0: f107 0314 add.w r3, r7, #20
  10186. 8004bb4: 330c adds r3, #12
  10187. 8004bb6: 4618 mov r0, r3
  10188. 8004bb8: f7fe fa1b bl 8002ff2 <ReadFloatFromBuffer>
  10189. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitSwitchUp);
  10190. 8004bbc: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10191. 8004bc0: f103 0224 add.w r2, r3, #36 @ 0x24
  10192. 8004bc4: f107 010e add.w r1, r7, #14
  10193. 8004bc8: f107 0314 add.w r3, r7, #20
  10194. 8004bcc: 330c adds r3, #12
  10195. 8004bce: 4618 mov r0, r3
  10196. 8004bd0: f7fe fa44 bl 800305c <ReadByteFromBufer>
  10197. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitSwitchDown);
  10198. 8004bd4: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10199. 8004bd8: f103 0225 add.w r2, r3, #37 @ 0x25
  10200. 8004bdc: f107 010e add.w r1, r7, #14
  10201. 8004be0: f107 0314 add.w r3, r7, #20
  10202. 8004be4: 330c adds r3, #12
  10203. 8004be6: 4618 mov r0, r3
  10204. 8004be8: f7fe fa38 bl 800305c <ReadByteFromBufer>
  10205. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitSwitchCenter);
  10206. 8004bec: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10207. 8004bf0: f103 0226 add.w r2, r3, #38 @ 0x26
  10208. 8004bf4: f107 010e add.w r1, r7, #14
  10209. 8004bf8: f107 0314 add.w r3, r7, #20
  10210. 8004bfc: 330c adds r3, #12
  10211. 8004bfe: 4618 mov r0, r3
  10212. 8004c00: f7fe fa2c bl 800305c <ReadByteFromBufer>
  10213. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->powerSupplyFailMask);
  10214. 8004c04: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10215. 8004c08: f103 0227 add.w r2, r3, #39 @ 0x27
  10216. 8004c0c: f107 010e add.w r1, r7, #14
  10217. 8004c10: f107 0314 add.w r3, r7, #20
  10218. 8004c14: 330c adds r3, #12
  10219. 8004c16: 4618 mov r0, r3
  10220. 8004c18: f7fe fa20 bl 800305c <ReadByteFromBufer>
  10221. osMutexRelease(sensorsInfoMutex);
  10222. 8004c1c: 4b06 ldr r3, [pc, #24] @ (8004c38 <UartTxTask+0x4d8>)
  10223. 8004c1e: 681b ldr r3, [r3, #0]
  10224. 8004c20: 4618 mov r0, r3
  10225. 8004c22: f00b ffa4 bl 8010b6e <osMutexRelease>
  10226. break;
  10227. 8004c26: e005 b.n 8004c34 <UartTxTask+0x4d4>
  10228. }
  10229. }
  10230. }
  10231. } else {
  10232. osDelay (pdMS_TO_TICKS (1000));
  10233. 8004c28: f44f 707a mov.w r0, #1000 @ 0x3e8
  10234. 8004c2c: f00b feb3 bl 8010996 <osDelay>
  10235. 8004c30: e5ce b.n 80047d0 <UartTxTask+0x70>
  10236. default: continue; break;
  10237. 8004c32: bf00 nop
  10238. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  10239. 8004c34: e5cc b.n 80047d0 <UartTxTask+0x70>
  10240. 8004c36: bf00 nop
  10241. 8004c38: 2400216c .word 0x2400216c
  10242. 8004c3c: 240020b8 .word 0x240020b8
  10243. 08004c40 <MeasurmentsReqSchedulerTaskInit>:
  10244. }
  10245. }
  10246. }
  10247. void MeasurmentsReqSchedulerTaskInit (void) {
  10248. 8004c40: b580 push {r7, lr}
  10249. 8004c42: b08a sub sp, #40 @ 0x28
  10250. 8004c44: af00 add r7, sp, #0
  10251. osThreadAttr_t osThreadAttrMeasurmentsReqSchedulerTask = { 0 };
  10252. 8004c46: 1d3b adds r3, r7, #4
  10253. 8004c48: 2224 movs r2, #36 @ 0x24
  10254. 8004c4a: 2100 movs r1, #0
  10255. 8004c4c: 4618 mov r0, r3
  10256. 8004c4e: f025 f857 bl 8029d00 <memset>
  10257. osThreadAttrMeasurmentsReqSchedulerTask.name = "os_thread_XXX";
  10258. 8004c52: 4b08 ldr r3, [pc, #32] @ (8004c74 <MeasurmentsReqSchedulerTaskInit+0x34>)
  10259. 8004c54: 607b str r3, [r7, #4]
  10260. osThreadAttrMeasurmentsReqSchedulerTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  10261. 8004c56: f44f 6380 mov.w r3, #1024 @ 0x400
  10262. 8004c5a: 61bb str r3, [r7, #24]
  10263. osThreadAttrMeasurmentsReqSchedulerTask.priority = (osPriority_t)osPriorityNormal;
  10264. 8004c5c: 2318 movs r3, #24
  10265. 8004c5e: 61fb str r3, [r7, #28]
  10266. osThreadNew (MeasurmentsReqSchedulerTask, uartTasks, &osThreadAttrMeasurmentsReqSchedulerTask);
  10267. 8004c60: 1d3b adds r3, r7, #4
  10268. 8004c62: 461a mov r2, r3
  10269. 8004c64: 4904 ldr r1, [pc, #16] @ (8004c78 <MeasurmentsReqSchedulerTaskInit+0x38>)
  10270. 8004c66: 4805 ldr r0, [pc, #20] @ (8004c7c <MeasurmentsReqSchedulerTaskInit+0x3c>)
  10271. 8004c68: f00b fdf7 bl 801085a <osThreadNew>
  10272. }
  10273. 8004c6c: bf00 nop
  10274. 8004c6e: 3728 adds r7, #40 @ 0x28
  10275. 8004c70: 46bd mov sp, r7
  10276. 8004c72: bd80 pop {r7, pc}
  10277. 8004c74: 0802ca10 .word 0x0802ca10
  10278. 8004c78: 24000018 .word 0x24000018
  10279. 8004c7c: 08004c81 .word 0x08004c81
  10280. 08004c80 <MeasurmentsReqSchedulerTask>:
  10281. void MeasurmentsReqSchedulerTask (void* argument) {
  10282. 8004c80: b580 push {r7, lr}
  10283. 8004c82: b088 sub sp, #32
  10284. 8004c84: af00 add r7, sp, #0
  10285. 8004c86: 6078 str r0, [r7, #4]
  10286. while (pdTRUE) {
  10287. __uintptr_t* ptr = (__uintptr_t*)argument;
  10288. 8004c88: 687b ldr r3, [r7, #4]
  10289. 8004c8a: 61fb str r3, [r7, #28]
  10290. while (*ptr != 0) {
  10291. 8004c8c: e04a b.n 8004d24 <MeasurmentsReqSchedulerTask+0xa4>
  10292. UartTaskData* uartTask = (UartTaskData*)*ptr;
  10293. 8004c8e: 69fb ldr r3, [r7, #28]
  10294. 8004c90: 681b ldr r3, [r3, #0]
  10295. 8004c92: 617b str r3, [r7, #20]
  10296. if (uartTask->sendCmdToSlaveQueue != NULL) {
  10297. 8004c94: 697b ldr r3, [r7, #20]
  10298. 8004c96: 6adb ldr r3, [r3, #44] @ 0x2c
  10299. 8004c98: 2b00 cmp r3, #0
  10300. 8004c9a: d040 beq.n 8004d1e <MeasurmentsReqSchedulerTask+0x9e>
  10301. InterProcessData data = { 0 };
  10302. 8004c9c: f107 0308 add.w r3, r7, #8
  10303. 8004ca0: 2200 movs r2, #0
  10304. 8004ca2: 601a str r2, [r3, #0]
  10305. 8004ca4: 605a str r2, [r3, #4]
  10306. 8004ca6: 609a str r2, [r3, #8]
  10307. uint8_t boardNumber = 0;
  10308. 8004ca8: 2300 movs r3, #0
  10309. 8004caa: 76fb strb r3, [r7, #27]
  10310. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10311. 8004cac: 2300 movs r3, #0
  10312. 8004cae: 76fb strb r3, [r7, #27]
  10313. 8004cb0: e00a b.n 8004cc8 <MeasurmentsReqSchedulerTask+0x48>
  10314. {
  10315. if(boardToUartNumberMap[boardNumber] == uartTask->uartNumber)
  10316. 8004cb2: 7efb ldrb r3, [r7, #27]
  10317. 8004cb4: 4a20 ldr r2, [pc, #128] @ (8004d38 <MeasurmentsReqSchedulerTask+0xb8>)
  10318. 8004cb6: 5cd2 ldrb r2, [r2, r3]
  10319. 8004cb8: 697b ldr r3, [r7, #20]
  10320. 8004cba: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10321. 8004cbe: 429a cmp r2, r3
  10322. 8004cc0: d006 beq.n 8004cd0 <MeasurmentsReqSchedulerTask+0x50>
  10323. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10324. 8004cc2: 7efb ldrb r3, [r7, #27]
  10325. 8004cc4: 3301 adds r3, #1
  10326. 8004cc6: 76fb strb r3, [r7, #27]
  10327. 8004cc8: 7efb ldrb r3, [r7, #27]
  10328. 8004cca: 2b03 cmp r3, #3
  10329. 8004ccc: d9f1 bls.n 8004cb2 <MeasurmentsReqSchedulerTask+0x32>
  10330. 8004cce: e000 b.n 8004cd2 <MeasurmentsReqSchedulerTask+0x52>
  10331. {
  10332. break;
  10333. 8004cd0: bf00 nop
  10334. }
  10335. }
  10336. data.spCommand = spGetElectricalMeasurments;
  10337. 8004cd2: 2300 movs r3, #0
  10338. 8004cd4: 723b strb r3, [r7, #8]
  10339. osMessageQueuePut (uartTask->sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  10340. 8004cd6: 697b ldr r3, [r7, #20]
  10341. 8004cd8: 6ad8 ldr r0, [r3, #44] @ 0x2c
  10342. 8004cda: f107 0108 add.w r1, r7, #8
  10343. 8004cde: 2364 movs r3, #100 @ 0x64
  10344. 8004ce0: 2200 movs r2, #0
  10345. 8004ce2: f00c f939 bl 8010f58 <osMessageQueuePut>
  10346. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10347. 8004ce6: 4b15 ldr r3, [pc, #84] @ (8004d3c <MeasurmentsReqSchedulerTask+0xbc>)
  10348. 8004ce8: 681b ldr r3, [r3, #0]
  10349. 8004cea: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10350. 8004cee: 4618 mov r0, r3
  10351. 8004cf0: f00b fef2 bl 8010ad8 <osMutexAcquire>
  10352. if(slaveLastSeen[boardNumber] == 0)
  10353. 8004cf4: 7efb ldrb r3, [r7, #27]
  10354. 8004cf6: 4a12 ldr r2, [pc, #72] @ (8004d40 <MeasurmentsReqSchedulerTask+0xc0>)
  10355. 8004cf8: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  10356. 8004cfc: 2b00 cmp r3, #0
  10357. 8004cfe: d109 bne.n 8004d14 <MeasurmentsReqSchedulerTask+0x94>
  10358. {
  10359. data.spCommand = spGetSensorMeasurments;
  10360. 8004d00: 2301 movs r3, #1
  10361. 8004d02: 723b strb r3, [r7, #8]
  10362. osMessageQueuePut (uartTask->sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  10363. 8004d04: 697b ldr r3, [r7, #20]
  10364. 8004d06: 6ad8 ldr r0, [r3, #44] @ 0x2c
  10365. 8004d08: f107 0108 add.w r1, r7, #8
  10366. 8004d0c: 2364 movs r3, #100 @ 0x64
  10367. 8004d0e: 2200 movs r2, #0
  10368. 8004d10: f00c f922 bl 8010f58 <osMessageQueuePut>
  10369. }
  10370. osMutexRelease(resMeasurementsMutex);
  10371. 8004d14: 4b09 ldr r3, [pc, #36] @ (8004d3c <MeasurmentsReqSchedulerTask+0xbc>)
  10372. 8004d16: 681b ldr r3, [r3, #0]
  10373. 8004d18: 4618 mov r0, r3
  10374. 8004d1a: f00b ff28 bl 8010b6e <osMutexRelease>
  10375. }
  10376. ptr++;
  10377. 8004d1e: 69fb ldr r3, [r7, #28]
  10378. 8004d20: 3304 adds r3, #4
  10379. 8004d22: 61fb str r3, [r7, #28]
  10380. while (*ptr != 0) {
  10381. 8004d24: 69fb ldr r3, [r7, #28]
  10382. 8004d26: 681b ldr r3, [r3, #0]
  10383. 8004d28: 2b00 cmp r3, #0
  10384. 8004d2a: d1b0 bne.n 8004c8e <MeasurmentsReqSchedulerTask+0xe>
  10385. }
  10386. osDelay (pdMS_TO_TICKS (MEASURMENTS_SCHEDULER_INTERVAL_MS));
  10387. 8004d2c: f44f 707a mov.w r0, #1000 @ 0x3e8
  10388. 8004d30: f00b fe31 bl 8010996 <osDelay>
  10389. while (pdTRUE) {
  10390. 8004d34: e7a8 b.n 8004c88 <MeasurmentsReqSchedulerTask+0x8>
  10391. 8004d36: bf00 nop
  10392. 8004d38: 24000014 .word 0x24000014
  10393. 8004d3c: 24002168 .word 0x24002168
  10394. 8004d40: 24002158 .word 0x24002158
  10395. 08004d44 <Reset_Handler>:
  10396. .section .text.Reset_Handler
  10397. .weak Reset_Handler
  10398. .type Reset_Handler, %function
  10399. Reset_Handler:
  10400. ldr sp, =_estack /* set stack pointer */
  10401. 8004d44: f8df d034 ldr.w sp, [pc, #52] @ 8004d7c <LoopFillZerobss+0xe>
  10402. /* Call the clock system initialization function.*/
  10403. bl SystemInit
  10404. 8004d48: f7fe ffa8 bl 8003c9c <SystemInit>
  10405. /* Copy the data segment initializers from flash to SRAM */
  10406. ldr r0, =_sdata
  10407. 8004d4c: 480c ldr r0, [pc, #48] @ (8004d80 <LoopFillZerobss+0x12>)
  10408. ldr r1, =_edata
  10409. 8004d4e: 490d ldr r1, [pc, #52] @ (8004d84 <LoopFillZerobss+0x16>)
  10410. ldr r2, =_sidata
  10411. 8004d50: 4a0d ldr r2, [pc, #52] @ (8004d88 <LoopFillZerobss+0x1a>)
  10412. movs r3, #0
  10413. 8004d52: 2300 movs r3, #0
  10414. b LoopCopyDataInit
  10415. 8004d54: e002 b.n 8004d5c <LoopCopyDataInit>
  10416. 08004d56 <CopyDataInit>:
  10417. CopyDataInit:
  10418. ldr r4, [r2, r3]
  10419. 8004d56: 58d4 ldr r4, [r2, r3]
  10420. str r4, [r0, r3]
  10421. 8004d58: 50c4 str r4, [r0, r3]
  10422. adds r3, r3, #4
  10423. 8004d5a: 3304 adds r3, #4
  10424. 08004d5c <LoopCopyDataInit>:
  10425. LoopCopyDataInit:
  10426. adds r4, r0, r3
  10427. 8004d5c: 18c4 adds r4, r0, r3
  10428. cmp r4, r1
  10429. 8004d5e: 428c cmp r4, r1
  10430. bcc CopyDataInit
  10431. 8004d60: d3f9 bcc.n 8004d56 <CopyDataInit>
  10432. /* Zero fill the bss segment. */
  10433. ldr r2, =_sbss
  10434. 8004d62: 4a0a ldr r2, [pc, #40] @ (8004d8c <LoopFillZerobss+0x1e>)
  10435. ldr r4, =_ebss
  10436. 8004d64: 4c0a ldr r4, [pc, #40] @ (8004d90 <LoopFillZerobss+0x22>)
  10437. movs r3, #0
  10438. 8004d66: 2300 movs r3, #0
  10439. b LoopFillZerobss
  10440. 8004d68: e001 b.n 8004d6e <LoopFillZerobss>
  10441. 08004d6a <FillZerobss>:
  10442. FillZerobss:
  10443. str r3, [r2]
  10444. 8004d6a: 6013 str r3, [r2, #0]
  10445. adds r2, r2, #4
  10446. 8004d6c: 3204 adds r2, #4
  10447. 08004d6e <LoopFillZerobss>:
  10448. LoopFillZerobss:
  10449. cmp r2, r4
  10450. 8004d6e: 42a2 cmp r2, r4
  10451. bcc FillZerobss
  10452. 8004d70: d3fb bcc.n 8004d6a <FillZerobss>
  10453. /* Call static constructors */
  10454. bl __libc_init_array
  10455. 8004d72: f025 f895 bl 8029ea0 <__libc_init_array>
  10456. /* Call the application's entry point.*/
  10457. bl main
  10458. 8004d76: f7fc ff9f bl 8001cb8 <main>
  10459. bx lr
  10460. 8004d7a: 4770 bx lr
  10461. ldr sp, =_estack /* set stack pointer */
  10462. 8004d7c: 24060000 .word 0x24060000
  10463. ldr r0, =_sdata
  10464. 8004d80: 24000000 .word 0x24000000
  10465. ldr r1, =_edata
  10466. 8004d84: 24000224 .word 0x24000224
  10467. ldr r2, =_sidata
  10468. 8004d88: 0803110c .word 0x0803110c
  10469. ldr r2, =_sbss
  10470. 8004d8c: 24000224 .word 0x24000224
  10471. ldr r4, =_ebss
  10472. 8004d90: 2402b188 .word 0x2402b188
  10473. 08004d94 <ADC3_IRQHandler>:
  10474. * @retval None
  10475. */
  10476. .section .text.Default_Handler,"ax",%progbits
  10477. Default_Handler:
  10478. Infinite_Loop:
  10479. b Infinite_Loop
  10480. 8004d94: e7fe b.n 8004d94 <ADC3_IRQHandler>
  10481. 08004d96 <DP83848_RegisterBusIO>:
  10482. * @param ioctx: holds device IO functions.
  10483. * @retval DP83848_STATUS_OK if OK
  10484. * DP83848_STATUS_ERROR if missing mandatory function
  10485. */
  10486. int32_t DP83848_RegisterBusIO(dp83848_Object_t *pObj, dp83848_IOCtx_t *ioctx)
  10487. {
  10488. 8004d96: b480 push {r7}
  10489. 8004d98: b083 sub sp, #12
  10490. 8004d9a: af00 add r7, sp, #0
  10491. 8004d9c: 6078 str r0, [r7, #4]
  10492. 8004d9e: 6039 str r1, [r7, #0]
  10493. if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick)
  10494. 8004da0: 687b ldr r3, [r7, #4]
  10495. 8004da2: 2b00 cmp r3, #0
  10496. 8004da4: d00b beq.n 8004dbe <DP83848_RegisterBusIO+0x28>
  10497. 8004da6: 683b ldr r3, [r7, #0]
  10498. 8004da8: 68db ldr r3, [r3, #12]
  10499. 8004daa: 2b00 cmp r3, #0
  10500. 8004dac: d007 beq.n 8004dbe <DP83848_RegisterBusIO+0x28>
  10501. 8004dae: 683b ldr r3, [r7, #0]
  10502. 8004db0: 689b ldr r3, [r3, #8]
  10503. 8004db2: 2b00 cmp r3, #0
  10504. 8004db4: d003 beq.n 8004dbe <DP83848_RegisterBusIO+0x28>
  10505. 8004db6: 683b ldr r3, [r7, #0]
  10506. 8004db8: 691b ldr r3, [r3, #16]
  10507. 8004dba: 2b00 cmp r3, #0
  10508. 8004dbc: d102 bne.n 8004dc4 <DP83848_RegisterBusIO+0x2e>
  10509. {
  10510. return DP83848_STATUS_ERROR;
  10511. 8004dbe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10512. 8004dc2: e014 b.n 8004dee <DP83848_RegisterBusIO+0x58>
  10513. }
  10514. pObj->IO.Init = ioctx->Init;
  10515. 8004dc4: 683b ldr r3, [r7, #0]
  10516. 8004dc6: 681a ldr r2, [r3, #0]
  10517. 8004dc8: 687b ldr r3, [r7, #4]
  10518. 8004dca: 609a str r2, [r3, #8]
  10519. pObj->IO.DeInit = ioctx->DeInit;
  10520. 8004dcc: 683b ldr r3, [r7, #0]
  10521. 8004dce: 685a ldr r2, [r3, #4]
  10522. 8004dd0: 687b ldr r3, [r7, #4]
  10523. 8004dd2: 60da str r2, [r3, #12]
  10524. pObj->IO.ReadReg = ioctx->ReadReg;
  10525. 8004dd4: 683b ldr r3, [r7, #0]
  10526. 8004dd6: 68da ldr r2, [r3, #12]
  10527. 8004dd8: 687b ldr r3, [r7, #4]
  10528. 8004dda: 615a str r2, [r3, #20]
  10529. pObj->IO.WriteReg = ioctx->WriteReg;
  10530. 8004ddc: 683b ldr r3, [r7, #0]
  10531. 8004dde: 689a ldr r2, [r3, #8]
  10532. 8004de0: 687b ldr r3, [r7, #4]
  10533. 8004de2: 611a str r2, [r3, #16]
  10534. pObj->IO.GetTick = ioctx->GetTick;
  10535. 8004de4: 683b ldr r3, [r7, #0]
  10536. 8004de6: 691a ldr r2, [r3, #16]
  10537. 8004de8: 687b ldr r3, [r7, #4]
  10538. 8004dea: 619a str r2, [r3, #24]
  10539. return DP83848_STATUS_OK;
  10540. 8004dec: 2300 movs r3, #0
  10541. }
  10542. 8004dee: 4618 mov r0, r3
  10543. 8004df0: 370c adds r7, #12
  10544. 8004df2: 46bd mov sp, r7
  10545. 8004df4: f85d 7b04 ldr.w r7, [sp], #4
  10546. 8004df8: 4770 bx lr
  10547. 08004dfa <DP83848_Init>:
  10548. * @retval DP83848_STATUS_OK if OK
  10549. * DP83848_STATUS_ADDRESS_ERROR if cannot find device address
  10550. * DP83848_STATUS_READ_ERROR if connot read register
  10551. */
  10552. int32_t DP83848_Init(dp83848_Object_t *pObj)
  10553. {
  10554. 8004dfa: b580 push {r7, lr}
  10555. 8004dfc: b086 sub sp, #24
  10556. 8004dfe: af00 add r7, sp, #0
  10557. 8004e00: 6078 str r0, [r7, #4]
  10558. uint32_t regvalue = 0, addr = 0;
  10559. 8004e02: 2300 movs r3, #0
  10560. 8004e04: 60fb str r3, [r7, #12]
  10561. 8004e06: 2300 movs r3, #0
  10562. 8004e08: 617b str r3, [r7, #20]
  10563. int32_t status = DP83848_STATUS_OK;
  10564. 8004e0a: 2300 movs r3, #0
  10565. 8004e0c: 613b str r3, [r7, #16]
  10566. if(pObj->Is_Initialized == 0)
  10567. 8004e0e: 687b ldr r3, [r7, #4]
  10568. 8004e10: 685b ldr r3, [r3, #4]
  10569. 8004e12: 2b00 cmp r3, #0
  10570. 8004e14: d139 bne.n 8004e8a <DP83848_Init+0x90>
  10571. {
  10572. if(pObj->IO.Init != 0)
  10573. 8004e16: 687b ldr r3, [r7, #4]
  10574. 8004e18: 689b ldr r3, [r3, #8]
  10575. 8004e1a: 2b00 cmp r3, #0
  10576. 8004e1c: d002 beq.n 8004e24 <DP83848_Init+0x2a>
  10577. {
  10578. /* GPIO and Clocks initialization */
  10579. pObj->IO.Init();
  10580. 8004e1e: 687b ldr r3, [r7, #4]
  10581. 8004e20: 689b ldr r3, [r3, #8]
  10582. 8004e22: 4798 blx r3
  10583. }
  10584. /* for later check */
  10585. pObj->DevAddr = DP83848_MAX_DEV_ADDR + 1;
  10586. 8004e24: 687b ldr r3, [r7, #4]
  10587. 8004e26: 2220 movs r2, #32
  10588. 8004e28: 601a str r2, [r3, #0]
  10589. /* Get the device address from special mode register */
  10590. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  10591. 8004e2a: 2300 movs r3, #0
  10592. 8004e2c: 617b str r3, [r7, #20]
  10593. 8004e2e: e01c b.n 8004e6a <DP83848_Init+0x70>
  10594. {
  10595. if(pObj->IO.ReadReg(addr, DP83848_SMR, &regvalue) < 0)
  10596. 8004e30: 687b ldr r3, [r7, #4]
  10597. 8004e32: 695b ldr r3, [r3, #20]
  10598. 8004e34: f107 020c add.w r2, r7, #12
  10599. 8004e38: 2119 movs r1, #25
  10600. 8004e3a: 6978 ldr r0, [r7, #20]
  10601. 8004e3c: 4798 blx r3
  10602. 8004e3e: 4603 mov r3, r0
  10603. 8004e40: 2b00 cmp r3, #0
  10604. 8004e42: da03 bge.n 8004e4c <DP83848_Init+0x52>
  10605. {
  10606. status = DP83848_STATUS_READ_ERROR;
  10607. 8004e44: f06f 0304 mvn.w r3, #4
  10608. 8004e48: 613b str r3, [r7, #16]
  10609. /* Can't read from this device address
  10610. continue with next address */
  10611. continue;
  10612. 8004e4a: e00b b.n 8004e64 <DP83848_Init+0x6a>
  10613. }
  10614. if((regvalue & DP83848_SMR_PHY_ADDR) == addr)
  10615. 8004e4c: 68fb ldr r3, [r7, #12]
  10616. 8004e4e: f003 031f and.w r3, r3, #31
  10617. 8004e52: 697a ldr r2, [r7, #20]
  10618. 8004e54: 429a cmp r2, r3
  10619. 8004e56: d105 bne.n 8004e64 <DP83848_Init+0x6a>
  10620. {
  10621. pObj->DevAddr = addr;
  10622. 8004e58: 687b ldr r3, [r7, #4]
  10623. 8004e5a: 697a ldr r2, [r7, #20]
  10624. 8004e5c: 601a str r2, [r3, #0]
  10625. status = DP83848_STATUS_OK;
  10626. 8004e5e: 2300 movs r3, #0
  10627. 8004e60: 613b str r3, [r7, #16]
  10628. break;
  10629. 8004e62: e005 b.n 8004e70 <DP83848_Init+0x76>
  10630. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  10631. 8004e64: 697b ldr r3, [r7, #20]
  10632. 8004e66: 3301 adds r3, #1
  10633. 8004e68: 617b str r3, [r7, #20]
  10634. 8004e6a: 697b ldr r3, [r7, #20]
  10635. 8004e6c: 2b1f cmp r3, #31
  10636. 8004e6e: d9df bls.n 8004e30 <DP83848_Init+0x36>
  10637. }
  10638. }
  10639. if(pObj->DevAddr > DP83848_MAX_DEV_ADDR)
  10640. 8004e70: 687b ldr r3, [r7, #4]
  10641. 8004e72: 681b ldr r3, [r3, #0]
  10642. 8004e74: 2b1f cmp r3, #31
  10643. 8004e76: d902 bls.n 8004e7e <DP83848_Init+0x84>
  10644. {
  10645. status = DP83848_STATUS_ADDRESS_ERROR;
  10646. 8004e78: f06f 0302 mvn.w r3, #2
  10647. 8004e7c: 613b str r3, [r7, #16]
  10648. }
  10649. /* if device address is matched */
  10650. if(status == DP83848_STATUS_OK)
  10651. 8004e7e: 693b ldr r3, [r7, #16]
  10652. 8004e80: 2b00 cmp r3, #0
  10653. 8004e82: d102 bne.n 8004e8a <DP83848_Init+0x90>
  10654. {
  10655. pObj->Is_Initialized = 1;
  10656. 8004e84: 687b ldr r3, [r7, #4]
  10657. 8004e86: 2201 movs r2, #1
  10658. 8004e88: 605a str r2, [r3, #4]
  10659. }
  10660. }
  10661. return status;
  10662. 8004e8a: 693b ldr r3, [r7, #16]
  10663. }
  10664. 8004e8c: 4618 mov r0, r3
  10665. 8004e8e: 3718 adds r7, #24
  10666. 8004e90: 46bd mov sp, r7
  10667. 8004e92: bd80 pop {r7, pc}
  10668. 08004e94 <DP83848_GetLinkState>:
  10669. * DP83848_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD
  10670. * DP83848_STATUS_READ_ERROR if connot read register
  10671. * DP83848_STATUS_WRITE_ERROR if connot write to register
  10672. */
  10673. int32_t DP83848_GetLinkState(dp83848_Object_t *pObj)
  10674. {
  10675. 8004e94: b580 push {r7, lr}
  10676. 8004e96: b084 sub sp, #16
  10677. 8004e98: af00 add r7, sp, #0
  10678. 8004e9a: 6078 str r0, [r7, #4]
  10679. uint32_t readval = 0;
  10680. 8004e9c: 2300 movs r3, #0
  10681. 8004e9e: 60fb str r3, [r7, #12]
  10682. /* Read Status register */
  10683. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  10684. 8004ea0: 687b ldr r3, [r7, #4]
  10685. 8004ea2: 695b ldr r3, [r3, #20]
  10686. 8004ea4: 687a ldr r2, [r7, #4]
  10687. 8004ea6: 6810 ldr r0, [r2, #0]
  10688. 8004ea8: f107 020c add.w r2, r7, #12
  10689. 8004eac: 2101 movs r1, #1
  10690. 8004eae: 4798 blx r3
  10691. 8004eb0: 4603 mov r3, r0
  10692. 8004eb2: 2b00 cmp r3, #0
  10693. 8004eb4: da02 bge.n 8004ebc <DP83848_GetLinkState+0x28>
  10694. {
  10695. return DP83848_STATUS_READ_ERROR;
  10696. 8004eb6: f06f 0304 mvn.w r3, #4
  10697. 8004eba: e06e b.n 8004f9a <DP83848_GetLinkState+0x106>
  10698. }
  10699. /* Read Status register again */
  10700. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  10701. 8004ebc: 687b ldr r3, [r7, #4]
  10702. 8004ebe: 695b ldr r3, [r3, #20]
  10703. 8004ec0: 687a ldr r2, [r7, #4]
  10704. 8004ec2: 6810 ldr r0, [r2, #0]
  10705. 8004ec4: f107 020c add.w r2, r7, #12
  10706. 8004ec8: 2101 movs r1, #1
  10707. 8004eca: 4798 blx r3
  10708. 8004ecc: 4603 mov r3, r0
  10709. 8004ece: 2b00 cmp r3, #0
  10710. 8004ed0: da02 bge.n 8004ed8 <DP83848_GetLinkState+0x44>
  10711. {
  10712. return DP83848_STATUS_READ_ERROR;
  10713. 8004ed2: f06f 0304 mvn.w r3, #4
  10714. 8004ed6: e060 b.n 8004f9a <DP83848_GetLinkState+0x106>
  10715. }
  10716. if((readval & DP83848_BSR_LINK_STATUS) == 0)
  10717. 8004ed8: 68fb ldr r3, [r7, #12]
  10718. 8004eda: f003 0304 and.w r3, r3, #4
  10719. 8004ede: 2b00 cmp r3, #0
  10720. 8004ee0: d101 bne.n 8004ee6 <DP83848_GetLinkState+0x52>
  10721. {
  10722. /* Return Link Down status */
  10723. return DP83848_STATUS_LINK_DOWN;
  10724. 8004ee2: 2301 movs r3, #1
  10725. 8004ee4: e059 b.n 8004f9a <DP83848_GetLinkState+0x106>
  10726. }
  10727. /* Check Auto negotiaition */
  10728. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, &readval) < 0)
  10729. 8004ee6: 687b ldr r3, [r7, #4]
  10730. 8004ee8: 695b ldr r3, [r3, #20]
  10731. 8004eea: 687a ldr r2, [r7, #4]
  10732. 8004eec: 6810 ldr r0, [r2, #0]
  10733. 8004eee: f107 020c add.w r2, r7, #12
  10734. 8004ef2: 2100 movs r1, #0
  10735. 8004ef4: 4798 blx r3
  10736. 8004ef6: 4603 mov r3, r0
  10737. 8004ef8: 2b00 cmp r3, #0
  10738. 8004efa: da02 bge.n 8004f02 <DP83848_GetLinkState+0x6e>
  10739. {
  10740. return DP83848_STATUS_READ_ERROR;
  10741. 8004efc: f06f 0304 mvn.w r3, #4
  10742. 8004f00: e04b b.n 8004f9a <DP83848_GetLinkState+0x106>
  10743. }
  10744. if((readval & DP83848_BCR_AUTONEGO_EN) != DP83848_BCR_AUTONEGO_EN)
  10745. 8004f02: 68fb ldr r3, [r7, #12]
  10746. 8004f04: f403 5380 and.w r3, r3, #4096 @ 0x1000
  10747. 8004f08: 2b00 cmp r3, #0
  10748. 8004f0a: d11b bne.n 8004f44 <DP83848_GetLinkState+0xb0>
  10749. {
  10750. if(((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT) && ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE))
  10751. 8004f0c: 68fb ldr r3, [r7, #12]
  10752. 8004f0e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  10753. 8004f12: 2b00 cmp r3, #0
  10754. 8004f14: d006 beq.n 8004f24 <DP83848_GetLinkState+0x90>
  10755. 8004f16: 68fb ldr r3, [r7, #12]
  10756. 8004f18: f403 7380 and.w r3, r3, #256 @ 0x100
  10757. 8004f1c: 2b00 cmp r3, #0
  10758. 8004f1e: d001 beq.n 8004f24 <DP83848_GetLinkState+0x90>
  10759. {
  10760. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  10761. 8004f20: 2302 movs r3, #2
  10762. 8004f22: e03a b.n 8004f9a <DP83848_GetLinkState+0x106>
  10763. }
  10764. else if ((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT)
  10765. 8004f24: 68fb ldr r3, [r7, #12]
  10766. 8004f26: f403 5300 and.w r3, r3, #8192 @ 0x2000
  10767. 8004f2a: 2b00 cmp r3, #0
  10768. 8004f2c: d001 beq.n 8004f32 <DP83848_GetLinkState+0x9e>
  10769. {
  10770. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  10771. 8004f2e: 2303 movs r3, #3
  10772. 8004f30: e033 b.n 8004f9a <DP83848_GetLinkState+0x106>
  10773. }
  10774. else if ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE)
  10775. 8004f32: 68fb ldr r3, [r7, #12]
  10776. 8004f34: f403 7380 and.w r3, r3, #256 @ 0x100
  10777. 8004f38: 2b00 cmp r3, #0
  10778. 8004f3a: d001 beq.n 8004f40 <DP83848_GetLinkState+0xac>
  10779. {
  10780. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  10781. 8004f3c: 2304 movs r3, #4
  10782. 8004f3e: e02c b.n 8004f9a <DP83848_GetLinkState+0x106>
  10783. }
  10784. else
  10785. {
  10786. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  10787. 8004f40: 2305 movs r3, #5
  10788. 8004f42: e02a b.n 8004f9a <DP83848_GetLinkState+0x106>
  10789. }
  10790. }
  10791. else /* Auto Nego enabled */
  10792. {
  10793. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_PHYSCSR, &readval) < 0)
  10794. 8004f44: 687b ldr r3, [r7, #4]
  10795. 8004f46: 695b ldr r3, [r3, #20]
  10796. 8004f48: 687a ldr r2, [r7, #4]
  10797. 8004f4a: 6810 ldr r0, [r2, #0]
  10798. 8004f4c: f107 020c add.w r2, r7, #12
  10799. 8004f50: 2110 movs r1, #16
  10800. 8004f52: 4798 blx r3
  10801. 8004f54: 4603 mov r3, r0
  10802. 8004f56: 2b00 cmp r3, #0
  10803. 8004f58: da02 bge.n 8004f60 <DP83848_GetLinkState+0xcc>
  10804. {
  10805. return DP83848_STATUS_READ_ERROR;
  10806. 8004f5a: f06f 0304 mvn.w r3, #4
  10807. 8004f5e: e01c b.n 8004f9a <DP83848_GetLinkState+0x106>
  10808. }
  10809. /* Check if auto nego not done */
  10810. if((readval & DP83848_PHYSCSR_AUTONEGO_DONE) == 0)
  10811. 8004f60: 68fb ldr r3, [r7, #12]
  10812. 8004f62: f003 0310 and.w r3, r3, #16
  10813. 8004f66: 2b00 cmp r3, #0
  10814. 8004f68: d101 bne.n 8004f6e <DP83848_GetLinkState+0xda>
  10815. {
  10816. return DP83848_STATUS_AUTONEGO_NOTDONE;
  10817. 8004f6a: 2306 movs r3, #6
  10818. 8004f6c: e015 b.n 8004f9a <DP83848_GetLinkState+0x106>
  10819. }
  10820. if((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_FD)
  10821. 8004f6e: 68fb ldr r3, [r7, #12]
  10822. 8004f70: f003 0306 and.w r3, r3, #6
  10823. 8004f74: 2b04 cmp r3, #4
  10824. 8004f76: d101 bne.n 8004f7c <DP83848_GetLinkState+0xe8>
  10825. {
  10826. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  10827. 8004f78: 2302 movs r3, #2
  10828. 8004f7a: e00e b.n 8004f9a <DP83848_GetLinkState+0x106>
  10829. }
  10830. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_HD)
  10831. 8004f7c: 68fb ldr r3, [r7, #12]
  10832. 8004f7e: f003 0306 and.w r3, r3, #6
  10833. 8004f82: 2b00 cmp r3, #0
  10834. 8004f84: d101 bne.n 8004f8a <DP83848_GetLinkState+0xf6>
  10835. {
  10836. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  10837. 8004f86: 2303 movs r3, #3
  10838. 8004f88: e007 b.n 8004f9a <DP83848_GetLinkState+0x106>
  10839. }
  10840. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_10BT_FD)
  10841. 8004f8a: 68fb ldr r3, [r7, #12]
  10842. 8004f8c: f003 0306 and.w r3, r3, #6
  10843. 8004f90: 2b06 cmp r3, #6
  10844. 8004f92: d101 bne.n 8004f98 <DP83848_GetLinkState+0x104>
  10845. {
  10846. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  10847. 8004f94: 2304 movs r3, #4
  10848. 8004f96: e000 b.n 8004f9a <DP83848_GetLinkState+0x106>
  10849. }
  10850. else
  10851. {
  10852. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  10853. 8004f98: 2305 movs r3, #5
  10854. }
  10855. }
  10856. }
  10857. 8004f9a: 4618 mov r0, r3
  10858. 8004f9c: 3710 adds r7, #16
  10859. 8004f9e: 46bd mov sp, r7
  10860. 8004fa0: bd80 pop {r7, pc}
  10861. ...
  10862. 08004fa4 <HAL_Init>:
  10863. * need to ensure that the SysTick time base is always set to 1 millisecond
  10864. * to have correct HAL operation.
  10865. * @retval HAL status
  10866. */
  10867. HAL_StatusTypeDef HAL_Init(void)
  10868. {
  10869. 8004fa4: b580 push {r7, lr}
  10870. 8004fa6: b082 sub sp, #8
  10871. 8004fa8: af00 add r7, sp, #0
  10872. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  10873. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  10874. #endif /* DUAL_CORE && CORE_CM4 */
  10875. /* Set Interrupt Group Priority */
  10876. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  10877. 8004faa: 2003 movs r0, #3
  10878. 8004fac: f000 f947 bl 800523e <HAL_NVIC_SetPriorityGrouping>
  10879. /* Update the SystemCoreClock global variable */
  10880. #if defined(RCC_D1CFGR_D1CPRE)
  10881. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  10882. 8004fb0: f005 fb8c bl 800a6cc <HAL_RCC_GetSysClockFreq>
  10883. 8004fb4: 4602 mov r2, r0
  10884. 8004fb6: 4b15 ldr r3, [pc, #84] @ (800500c <HAL_Init+0x68>)
  10885. 8004fb8: 699b ldr r3, [r3, #24]
  10886. 8004fba: 0a1b lsrs r3, r3, #8
  10887. 8004fbc: f003 030f and.w r3, r3, #15
  10888. 8004fc0: 4913 ldr r1, [pc, #76] @ (8005010 <HAL_Init+0x6c>)
  10889. 8004fc2: 5ccb ldrb r3, [r1, r3]
  10890. 8004fc4: f003 031f and.w r3, r3, #31
  10891. 8004fc8: fa22 f303 lsr.w r3, r2, r3
  10892. 8004fcc: 607b str r3, [r7, #4]
  10893. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  10894. #endif
  10895. /* Update the SystemD2Clock global variable */
  10896. #if defined(RCC_D1CFGR_HPRE)
  10897. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  10898. 8004fce: 4b0f ldr r3, [pc, #60] @ (800500c <HAL_Init+0x68>)
  10899. 8004fd0: 699b ldr r3, [r3, #24]
  10900. 8004fd2: f003 030f and.w r3, r3, #15
  10901. 8004fd6: 4a0e ldr r2, [pc, #56] @ (8005010 <HAL_Init+0x6c>)
  10902. 8004fd8: 5cd3 ldrb r3, [r2, r3]
  10903. 8004fda: f003 031f and.w r3, r3, #31
  10904. 8004fde: 687a ldr r2, [r7, #4]
  10905. 8004fe0: fa22 f303 lsr.w r3, r2, r3
  10906. 8004fe4: 4a0b ldr r2, [pc, #44] @ (8005014 <HAL_Init+0x70>)
  10907. 8004fe6: 6013 str r3, [r2, #0]
  10908. #endif
  10909. #if defined(DUAL_CORE) && defined(CORE_CM4)
  10910. SystemCoreClock = SystemD2Clock;
  10911. #else
  10912. SystemCoreClock = common_system_clock;
  10913. 8004fe8: 4a0b ldr r2, [pc, #44] @ (8005018 <HAL_Init+0x74>)
  10914. 8004fea: 687b ldr r3, [r7, #4]
  10915. 8004fec: 6013 str r3, [r2, #0]
  10916. #endif /* DUAL_CORE && CORE_CM4 */
  10917. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  10918. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  10919. 8004fee: 200f movs r0, #15
  10920. 8004ff0: f7fe fc7a bl 80038e8 <HAL_InitTick>
  10921. 8004ff4: 4603 mov r3, r0
  10922. 8004ff6: 2b00 cmp r3, #0
  10923. 8004ff8: d001 beq.n 8004ffe <HAL_Init+0x5a>
  10924. {
  10925. return HAL_ERROR;
  10926. 8004ffa: 2301 movs r3, #1
  10927. 8004ffc: e002 b.n 8005004 <HAL_Init+0x60>
  10928. }
  10929. /* Init the low level hardware */
  10930. HAL_MspInit();
  10931. 8004ffe: f7fe f985 bl 800330c <HAL_MspInit>
  10932. /* Return function status */
  10933. return HAL_OK;
  10934. 8005002: 2300 movs r3, #0
  10935. }
  10936. 8005004: 4618 mov r0, r3
  10937. 8005006: 3708 adds r7, #8
  10938. 8005008: 46bd mov sp, r7
  10939. 800500a: bd80 pop {r7, pc}
  10940. 800500c: 58024400 .word 0x58024400
  10941. 8005010: 08030a7c .word 0x08030a7c
  10942. 8005014: 24000010 .word 0x24000010
  10943. 8005018: 2400000c .word 0x2400000c
  10944. 0800501c <HAL_IncTick>:
  10945. * @note This function is declared as __weak to be overwritten in case of other
  10946. * implementations in user file.
  10947. * @retval None
  10948. */
  10949. __weak void HAL_IncTick(void)
  10950. {
  10951. 800501c: b480 push {r7}
  10952. 800501e: af00 add r7, sp, #0
  10953. uwTick += (uint32_t)uwTickFreq;
  10954. 8005020: 4b06 ldr r3, [pc, #24] @ (800503c <HAL_IncTick+0x20>)
  10955. 8005022: 781b ldrb r3, [r3, #0]
  10956. 8005024: 461a mov r2, r3
  10957. 8005026: 4b06 ldr r3, [pc, #24] @ (8005040 <HAL_IncTick+0x24>)
  10958. 8005028: 681b ldr r3, [r3, #0]
  10959. 800502a: 4413 add r3, r2
  10960. 800502c: 4a04 ldr r2, [pc, #16] @ (8005040 <HAL_IncTick+0x24>)
  10961. 800502e: 6013 str r3, [r2, #0]
  10962. }
  10963. 8005030: bf00 nop
  10964. 8005032: 46bd mov sp, r7
  10965. 8005034: f85d 7b04 ldr.w r7, [sp], #4
  10966. 8005038: 4770 bx lr
  10967. 800503a: bf00 nop
  10968. 800503c: 24000030 .word 0x24000030
  10969. 8005040: 24002170 .word 0x24002170
  10970. 08005044 <HAL_GetTick>:
  10971. * @note This function is declared as __weak to be overwritten in case of other
  10972. * implementations in user file.
  10973. * @retval tick value
  10974. */
  10975. __weak uint32_t HAL_GetTick(void)
  10976. {
  10977. 8005044: b480 push {r7}
  10978. 8005046: af00 add r7, sp, #0
  10979. return uwTick;
  10980. 8005048: 4b03 ldr r3, [pc, #12] @ (8005058 <HAL_GetTick+0x14>)
  10981. 800504a: 681b ldr r3, [r3, #0]
  10982. }
  10983. 800504c: 4618 mov r0, r3
  10984. 800504e: 46bd mov sp, r7
  10985. 8005050: f85d 7b04 ldr.w r7, [sp], #4
  10986. 8005054: 4770 bx lr
  10987. 8005056: bf00 nop
  10988. 8005058: 24002170 .word 0x24002170
  10989. 0800505c <HAL_Delay>:
  10990. * implementations in user file.
  10991. * @param Delay specifies the delay time length, in milliseconds.
  10992. * @retval None
  10993. */
  10994. __weak void HAL_Delay(uint32_t Delay)
  10995. {
  10996. 800505c: b580 push {r7, lr}
  10997. 800505e: b084 sub sp, #16
  10998. 8005060: af00 add r7, sp, #0
  10999. 8005062: 6078 str r0, [r7, #4]
  11000. uint32_t tickstart = HAL_GetTick();
  11001. 8005064: f7ff ffee bl 8005044 <HAL_GetTick>
  11002. 8005068: 60b8 str r0, [r7, #8]
  11003. uint32_t wait = Delay;
  11004. 800506a: 687b ldr r3, [r7, #4]
  11005. 800506c: 60fb str r3, [r7, #12]
  11006. /* Add a freq to guarantee minimum wait */
  11007. if (wait < HAL_MAX_DELAY)
  11008. 800506e: 68fb ldr r3, [r7, #12]
  11009. 8005070: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11010. 8005074: d005 beq.n 8005082 <HAL_Delay+0x26>
  11011. {
  11012. wait += (uint32_t)(uwTickFreq);
  11013. 8005076: 4b0a ldr r3, [pc, #40] @ (80050a0 <HAL_Delay+0x44>)
  11014. 8005078: 781b ldrb r3, [r3, #0]
  11015. 800507a: 461a mov r2, r3
  11016. 800507c: 68fb ldr r3, [r7, #12]
  11017. 800507e: 4413 add r3, r2
  11018. 8005080: 60fb str r3, [r7, #12]
  11019. }
  11020. while ((HAL_GetTick() - tickstart) < wait)
  11021. 8005082: bf00 nop
  11022. 8005084: f7ff ffde bl 8005044 <HAL_GetTick>
  11023. 8005088: 4602 mov r2, r0
  11024. 800508a: 68bb ldr r3, [r7, #8]
  11025. 800508c: 1ad3 subs r3, r2, r3
  11026. 800508e: 68fa ldr r2, [r7, #12]
  11027. 8005090: 429a cmp r2, r3
  11028. 8005092: d8f7 bhi.n 8005084 <HAL_Delay+0x28>
  11029. {
  11030. }
  11031. }
  11032. 8005094: bf00 nop
  11033. 8005096: bf00 nop
  11034. 8005098: 3710 adds r7, #16
  11035. 800509a: 46bd mov sp, r7
  11036. 800509c: bd80 pop {r7, pc}
  11037. 800509e: bf00 nop
  11038. 80050a0: 24000030 .word 0x24000030
  11039. 080050a4 <HAL_GetREVID>:
  11040. /**
  11041. * @brief Returns the device revision identifier.
  11042. * @retval Device revision identifier
  11043. */
  11044. uint32_t HAL_GetREVID(void)
  11045. {
  11046. 80050a4: b480 push {r7}
  11047. 80050a6: af00 add r7, sp, #0
  11048. return((DBGMCU->IDCODE) >> 16);
  11049. 80050a8: 4b03 ldr r3, [pc, #12] @ (80050b8 <HAL_GetREVID+0x14>)
  11050. 80050aa: 681b ldr r3, [r3, #0]
  11051. 80050ac: 0c1b lsrs r3, r3, #16
  11052. }
  11053. 80050ae: 4618 mov r0, r3
  11054. 80050b0: 46bd mov sp, r7
  11055. 80050b2: f85d 7b04 ldr.w r7, [sp], #4
  11056. 80050b6: 4770 bx lr
  11057. 80050b8: 5c001000 .word 0x5c001000
  11058. 080050bc <HAL_SYSCFG_ETHInterfaceSelect>:
  11059. * @arg SYSCFG_ETH_MII : Select the Media Independent Interface
  11060. * @arg SYSCFG_ETH_RMII: Select the Reduced Media Independent Interface
  11061. * @retval None
  11062. */
  11063. void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface)
  11064. {
  11065. 80050bc: b480 push {r7}
  11066. 80050be: b083 sub sp, #12
  11067. 80050c0: af00 add r7, sp, #0
  11068. 80050c2: 6078 str r0, [r7, #4]
  11069. /* Check the parameter */
  11070. assert_param(IS_SYSCFG_ETHERNET_CONFIG(SYSCFG_ETHInterface));
  11071. MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, (uint32_t)(SYSCFG_ETHInterface));
  11072. 80050c4: 4b06 ldr r3, [pc, #24] @ (80050e0 <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  11073. 80050c6: 685b ldr r3, [r3, #4]
  11074. 80050c8: f423 0260 bic.w r2, r3, #14680064 @ 0xe00000
  11075. 80050cc: 4904 ldr r1, [pc, #16] @ (80050e0 <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  11076. 80050ce: 687b ldr r3, [r7, #4]
  11077. 80050d0: 4313 orrs r3, r2
  11078. 80050d2: 604b str r3, [r1, #4]
  11079. }
  11080. 80050d4: bf00 nop
  11081. 80050d6: 370c adds r7, #12
  11082. 80050d8: 46bd mov sp, r7
  11083. 80050da: f85d 7b04 ldr.w r7, [sp], #4
  11084. 80050de: 4770 bx lr
  11085. 80050e0: 58000400 .word 0x58000400
  11086. 080050e4 <__NVIC_SetPriorityGrouping>:
  11087. {
  11088. 80050e4: b480 push {r7}
  11089. 80050e6: b085 sub sp, #20
  11090. 80050e8: af00 add r7, sp, #0
  11091. 80050ea: 6078 str r0, [r7, #4]
  11092. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  11093. 80050ec: 687b ldr r3, [r7, #4]
  11094. 80050ee: f003 0307 and.w r3, r3, #7
  11095. 80050f2: 60fb str r3, [r7, #12]
  11096. reg_value = SCB->AIRCR; /* read old register configuration */
  11097. 80050f4: 4b0b ldr r3, [pc, #44] @ (8005124 <__NVIC_SetPriorityGrouping+0x40>)
  11098. 80050f6: 68db ldr r3, [r3, #12]
  11099. 80050f8: 60bb str r3, [r7, #8]
  11100. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  11101. 80050fa: 68ba ldr r2, [r7, #8]
  11102. 80050fc: f64f 03ff movw r3, #63743 @ 0xf8ff
  11103. 8005100: 4013 ands r3, r2
  11104. 8005102: 60bb str r3, [r7, #8]
  11105. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  11106. 8005104: 68fb ldr r3, [r7, #12]
  11107. 8005106: 021a lsls r2, r3, #8
  11108. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  11109. 8005108: 68bb ldr r3, [r7, #8]
  11110. 800510a: 431a orrs r2, r3
  11111. reg_value = (reg_value |
  11112. 800510c: 4b06 ldr r3, [pc, #24] @ (8005128 <__NVIC_SetPriorityGrouping+0x44>)
  11113. 800510e: 4313 orrs r3, r2
  11114. 8005110: 60bb str r3, [r7, #8]
  11115. SCB->AIRCR = reg_value;
  11116. 8005112: 4a04 ldr r2, [pc, #16] @ (8005124 <__NVIC_SetPriorityGrouping+0x40>)
  11117. 8005114: 68bb ldr r3, [r7, #8]
  11118. 8005116: 60d3 str r3, [r2, #12]
  11119. }
  11120. 8005118: bf00 nop
  11121. 800511a: 3714 adds r7, #20
  11122. 800511c: 46bd mov sp, r7
  11123. 800511e: f85d 7b04 ldr.w r7, [sp], #4
  11124. 8005122: 4770 bx lr
  11125. 8005124: e000ed00 .word 0xe000ed00
  11126. 8005128: 05fa0000 .word 0x05fa0000
  11127. 0800512c <__NVIC_GetPriorityGrouping>:
  11128. {
  11129. 800512c: b480 push {r7}
  11130. 800512e: af00 add r7, sp, #0
  11131. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  11132. 8005130: 4b04 ldr r3, [pc, #16] @ (8005144 <__NVIC_GetPriorityGrouping+0x18>)
  11133. 8005132: 68db ldr r3, [r3, #12]
  11134. 8005134: 0a1b lsrs r3, r3, #8
  11135. 8005136: f003 0307 and.w r3, r3, #7
  11136. }
  11137. 800513a: 4618 mov r0, r3
  11138. 800513c: 46bd mov sp, r7
  11139. 800513e: f85d 7b04 ldr.w r7, [sp], #4
  11140. 8005142: 4770 bx lr
  11141. 8005144: e000ed00 .word 0xe000ed00
  11142. 08005148 <__NVIC_EnableIRQ>:
  11143. {
  11144. 8005148: b480 push {r7}
  11145. 800514a: b083 sub sp, #12
  11146. 800514c: af00 add r7, sp, #0
  11147. 800514e: 4603 mov r3, r0
  11148. 8005150: 80fb strh r3, [r7, #6]
  11149. if ((int32_t)(IRQn) >= 0)
  11150. 8005152: f9b7 3006 ldrsh.w r3, [r7, #6]
  11151. 8005156: 2b00 cmp r3, #0
  11152. 8005158: db0b blt.n 8005172 <__NVIC_EnableIRQ+0x2a>
  11153. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  11154. 800515a: 88fb ldrh r3, [r7, #6]
  11155. 800515c: f003 021f and.w r2, r3, #31
  11156. 8005160: 4907 ldr r1, [pc, #28] @ (8005180 <__NVIC_EnableIRQ+0x38>)
  11157. 8005162: f9b7 3006 ldrsh.w r3, [r7, #6]
  11158. 8005166: 095b lsrs r3, r3, #5
  11159. 8005168: 2001 movs r0, #1
  11160. 800516a: fa00 f202 lsl.w r2, r0, r2
  11161. 800516e: f841 2023 str.w r2, [r1, r3, lsl #2]
  11162. }
  11163. 8005172: bf00 nop
  11164. 8005174: 370c adds r7, #12
  11165. 8005176: 46bd mov sp, r7
  11166. 8005178: f85d 7b04 ldr.w r7, [sp], #4
  11167. 800517c: 4770 bx lr
  11168. 800517e: bf00 nop
  11169. 8005180: e000e100 .word 0xe000e100
  11170. 08005184 <__NVIC_SetPriority>:
  11171. {
  11172. 8005184: b480 push {r7}
  11173. 8005186: b083 sub sp, #12
  11174. 8005188: af00 add r7, sp, #0
  11175. 800518a: 4603 mov r3, r0
  11176. 800518c: 6039 str r1, [r7, #0]
  11177. 800518e: 80fb strh r3, [r7, #6]
  11178. if ((int32_t)(IRQn) >= 0)
  11179. 8005190: f9b7 3006 ldrsh.w r3, [r7, #6]
  11180. 8005194: 2b00 cmp r3, #0
  11181. 8005196: db0a blt.n 80051ae <__NVIC_SetPriority+0x2a>
  11182. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  11183. 8005198: 683b ldr r3, [r7, #0]
  11184. 800519a: b2da uxtb r2, r3
  11185. 800519c: 490c ldr r1, [pc, #48] @ (80051d0 <__NVIC_SetPriority+0x4c>)
  11186. 800519e: f9b7 3006 ldrsh.w r3, [r7, #6]
  11187. 80051a2: 0112 lsls r2, r2, #4
  11188. 80051a4: b2d2 uxtb r2, r2
  11189. 80051a6: 440b add r3, r1
  11190. 80051a8: f883 2300 strb.w r2, [r3, #768] @ 0x300
  11191. }
  11192. 80051ac: e00a b.n 80051c4 <__NVIC_SetPriority+0x40>
  11193. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  11194. 80051ae: 683b ldr r3, [r7, #0]
  11195. 80051b0: b2da uxtb r2, r3
  11196. 80051b2: 4908 ldr r1, [pc, #32] @ (80051d4 <__NVIC_SetPriority+0x50>)
  11197. 80051b4: 88fb ldrh r3, [r7, #6]
  11198. 80051b6: f003 030f and.w r3, r3, #15
  11199. 80051ba: 3b04 subs r3, #4
  11200. 80051bc: 0112 lsls r2, r2, #4
  11201. 80051be: b2d2 uxtb r2, r2
  11202. 80051c0: 440b add r3, r1
  11203. 80051c2: 761a strb r2, [r3, #24]
  11204. }
  11205. 80051c4: bf00 nop
  11206. 80051c6: 370c adds r7, #12
  11207. 80051c8: 46bd mov sp, r7
  11208. 80051ca: f85d 7b04 ldr.w r7, [sp], #4
  11209. 80051ce: 4770 bx lr
  11210. 80051d0: e000e100 .word 0xe000e100
  11211. 80051d4: e000ed00 .word 0xe000ed00
  11212. 080051d8 <NVIC_EncodePriority>:
  11213. {
  11214. 80051d8: b480 push {r7}
  11215. 80051da: b089 sub sp, #36 @ 0x24
  11216. 80051dc: af00 add r7, sp, #0
  11217. 80051de: 60f8 str r0, [r7, #12]
  11218. 80051e0: 60b9 str r1, [r7, #8]
  11219. 80051e2: 607a str r2, [r7, #4]
  11220. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  11221. 80051e4: 68fb ldr r3, [r7, #12]
  11222. 80051e6: f003 0307 and.w r3, r3, #7
  11223. 80051ea: 61fb str r3, [r7, #28]
  11224. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  11225. 80051ec: 69fb ldr r3, [r7, #28]
  11226. 80051ee: f1c3 0307 rsb r3, r3, #7
  11227. 80051f2: 2b04 cmp r3, #4
  11228. 80051f4: bf28 it cs
  11229. 80051f6: 2304 movcs r3, #4
  11230. 80051f8: 61bb str r3, [r7, #24]
  11231. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  11232. 80051fa: 69fb ldr r3, [r7, #28]
  11233. 80051fc: 3304 adds r3, #4
  11234. 80051fe: 2b06 cmp r3, #6
  11235. 8005200: d902 bls.n 8005208 <NVIC_EncodePriority+0x30>
  11236. 8005202: 69fb ldr r3, [r7, #28]
  11237. 8005204: 3b03 subs r3, #3
  11238. 8005206: e000 b.n 800520a <NVIC_EncodePriority+0x32>
  11239. 8005208: 2300 movs r3, #0
  11240. 800520a: 617b str r3, [r7, #20]
  11241. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  11242. 800520c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  11243. 8005210: 69bb ldr r3, [r7, #24]
  11244. 8005212: fa02 f303 lsl.w r3, r2, r3
  11245. 8005216: 43da mvns r2, r3
  11246. 8005218: 68bb ldr r3, [r7, #8]
  11247. 800521a: 401a ands r2, r3
  11248. 800521c: 697b ldr r3, [r7, #20]
  11249. 800521e: 409a lsls r2, r3
  11250. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  11251. 8005220: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11252. 8005224: 697b ldr r3, [r7, #20]
  11253. 8005226: fa01 f303 lsl.w r3, r1, r3
  11254. 800522a: 43d9 mvns r1, r3
  11255. 800522c: 687b ldr r3, [r7, #4]
  11256. 800522e: 400b ands r3, r1
  11257. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  11258. 8005230: 4313 orrs r3, r2
  11259. }
  11260. 8005232: 4618 mov r0, r3
  11261. 8005234: 3724 adds r7, #36 @ 0x24
  11262. 8005236: 46bd mov sp, r7
  11263. 8005238: f85d 7b04 ldr.w r7, [sp], #4
  11264. 800523c: 4770 bx lr
  11265. 0800523e <HAL_NVIC_SetPriorityGrouping>:
  11266. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  11267. * The pending IRQ priority will be managed only by the subpriority.
  11268. * @retval None
  11269. */
  11270. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  11271. {
  11272. 800523e: b580 push {r7, lr}
  11273. 8005240: b082 sub sp, #8
  11274. 8005242: af00 add r7, sp, #0
  11275. 8005244: 6078 str r0, [r7, #4]
  11276. /* Check the parameters */
  11277. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  11278. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  11279. NVIC_SetPriorityGrouping(PriorityGroup);
  11280. 8005246: 6878 ldr r0, [r7, #4]
  11281. 8005248: f7ff ff4c bl 80050e4 <__NVIC_SetPriorityGrouping>
  11282. }
  11283. 800524c: bf00 nop
  11284. 800524e: 3708 adds r7, #8
  11285. 8005250: 46bd mov sp, r7
  11286. 8005252: bd80 pop {r7, pc}
  11287. 08005254 <HAL_NVIC_SetPriority>:
  11288. * This parameter can be a value between 0 and 15
  11289. * A lower priority value indicates a higher priority.
  11290. * @retval None
  11291. */
  11292. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  11293. {
  11294. 8005254: b580 push {r7, lr}
  11295. 8005256: b086 sub sp, #24
  11296. 8005258: af00 add r7, sp, #0
  11297. 800525a: 4603 mov r3, r0
  11298. 800525c: 60b9 str r1, [r7, #8]
  11299. 800525e: 607a str r2, [r7, #4]
  11300. 8005260: 81fb strh r3, [r7, #14]
  11301. /* Check the parameters */
  11302. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  11303. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  11304. prioritygroup = NVIC_GetPriorityGrouping();
  11305. 8005262: f7ff ff63 bl 800512c <__NVIC_GetPriorityGrouping>
  11306. 8005266: 6178 str r0, [r7, #20]
  11307. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  11308. 8005268: 687a ldr r2, [r7, #4]
  11309. 800526a: 68b9 ldr r1, [r7, #8]
  11310. 800526c: 6978 ldr r0, [r7, #20]
  11311. 800526e: f7ff ffb3 bl 80051d8 <NVIC_EncodePriority>
  11312. 8005272: 4602 mov r2, r0
  11313. 8005274: f9b7 300e ldrsh.w r3, [r7, #14]
  11314. 8005278: 4611 mov r1, r2
  11315. 800527a: 4618 mov r0, r3
  11316. 800527c: f7ff ff82 bl 8005184 <__NVIC_SetPriority>
  11317. }
  11318. 8005280: bf00 nop
  11319. 8005282: 3718 adds r7, #24
  11320. 8005284: 46bd mov sp, r7
  11321. 8005286: bd80 pop {r7, pc}
  11322. 08005288 <HAL_NVIC_EnableIRQ>:
  11323. * This parameter can be an enumerator of IRQn_Type enumeration
  11324. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  11325. * @retval None
  11326. */
  11327. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  11328. {
  11329. 8005288: b580 push {r7, lr}
  11330. 800528a: b082 sub sp, #8
  11331. 800528c: af00 add r7, sp, #0
  11332. 800528e: 4603 mov r3, r0
  11333. 8005290: 80fb strh r3, [r7, #6]
  11334. /* Check the parameters */
  11335. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  11336. /* Enable interrupt */
  11337. NVIC_EnableIRQ(IRQn);
  11338. 8005292: f9b7 3006 ldrsh.w r3, [r7, #6]
  11339. 8005296: 4618 mov r0, r3
  11340. 8005298: f7ff ff56 bl 8005148 <__NVIC_EnableIRQ>
  11341. }
  11342. 800529c: bf00 nop
  11343. 800529e: 3708 adds r7, #8
  11344. 80052a0: 46bd mov sp, r7
  11345. 80052a2: bd80 pop {r7, pc}
  11346. 080052a4 <HAL_MPU_Disable>:
  11347. /**
  11348. * @brief Disables the MPU
  11349. * @retval None
  11350. */
  11351. void HAL_MPU_Disable(void)
  11352. {
  11353. 80052a4: b480 push {r7}
  11354. 80052a6: af00 add r7, sp, #0
  11355. \details Ensures the apparent order of the explicit memory operations before
  11356. and after the instruction, without ensuring their completion.
  11357. */
  11358. __STATIC_FORCEINLINE void __DMB(void)
  11359. {
  11360. __ASM volatile ("dmb 0xF":::"memory");
  11361. 80052a8: f3bf 8f5f dmb sy
  11362. }
  11363. 80052ac: bf00 nop
  11364. /* Make sure outstanding transfers are done */
  11365. __DMB();
  11366. /* Disable fault exceptions */
  11367. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  11368. 80052ae: 4b07 ldr r3, [pc, #28] @ (80052cc <HAL_MPU_Disable+0x28>)
  11369. 80052b0: 6a5b ldr r3, [r3, #36] @ 0x24
  11370. 80052b2: 4a06 ldr r2, [pc, #24] @ (80052cc <HAL_MPU_Disable+0x28>)
  11371. 80052b4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  11372. 80052b8: 6253 str r3, [r2, #36] @ 0x24
  11373. /* Disable the MPU and clear the control register*/
  11374. MPU->CTRL = 0;
  11375. 80052ba: 4b05 ldr r3, [pc, #20] @ (80052d0 <HAL_MPU_Disable+0x2c>)
  11376. 80052bc: 2200 movs r2, #0
  11377. 80052be: 605a str r2, [r3, #4]
  11378. }
  11379. 80052c0: bf00 nop
  11380. 80052c2: 46bd mov sp, r7
  11381. 80052c4: f85d 7b04 ldr.w r7, [sp], #4
  11382. 80052c8: 4770 bx lr
  11383. 80052ca: bf00 nop
  11384. 80052cc: e000ed00 .word 0xe000ed00
  11385. 80052d0: e000ed90 .word 0xe000ed90
  11386. 080052d4 <HAL_MPU_Enable>:
  11387. * @arg MPU_PRIVILEGED_DEFAULT
  11388. * @arg MPU_HFNMI_PRIVDEF
  11389. * @retval None
  11390. */
  11391. void HAL_MPU_Enable(uint32_t MPU_Control)
  11392. {
  11393. 80052d4: b480 push {r7}
  11394. 80052d6: b083 sub sp, #12
  11395. 80052d8: af00 add r7, sp, #0
  11396. 80052da: 6078 str r0, [r7, #4]
  11397. /* Enable the MPU */
  11398. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  11399. 80052dc: 4a0b ldr r2, [pc, #44] @ (800530c <HAL_MPU_Enable+0x38>)
  11400. 80052de: 687b ldr r3, [r7, #4]
  11401. 80052e0: f043 0301 orr.w r3, r3, #1
  11402. 80052e4: 6053 str r3, [r2, #4]
  11403. /* Enable fault exceptions */
  11404. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  11405. 80052e6: 4b0a ldr r3, [pc, #40] @ (8005310 <HAL_MPU_Enable+0x3c>)
  11406. 80052e8: 6a5b ldr r3, [r3, #36] @ 0x24
  11407. 80052ea: 4a09 ldr r2, [pc, #36] @ (8005310 <HAL_MPU_Enable+0x3c>)
  11408. 80052ec: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  11409. 80052f0: 6253 str r3, [r2, #36] @ 0x24
  11410. __ASM volatile ("dsb 0xF":::"memory");
  11411. 80052f2: f3bf 8f4f dsb sy
  11412. }
  11413. 80052f6: bf00 nop
  11414. __ASM volatile ("isb 0xF":::"memory");
  11415. 80052f8: f3bf 8f6f isb sy
  11416. }
  11417. 80052fc: bf00 nop
  11418. /* Ensure MPU setting take effects */
  11419. __DSB();
  11420. __ISB();
  11421. }
  11422. 80052fe: bf00 nop
  11423. 8005300: 370c adds r7, #12
  11424. 8005302: 46bd mov sp, r7
  11425. 8005304: f85d 7b04 ldr.w r7, [sp], #4
  11426. 8005308: 4770 bx lr
  11427. 800530a: bf00 nop
  11428. 800530c: e000ed90 .word 0xe000ed90
  11429. 8005310: e000ed00 .word 0xe000ed00
  11430. 08005314 <HAL_MPU_ConfigRegion>:
  11431. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  11432. * the initialization and configuration information.
  11433. * @retval None
  11434. */
  11435. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  11436. {
  11437. 8005314: b480 push {r7}
  11438. 8005316: b083 sub sp, #12
  11439. 8005318: af00 add r7, sp, #0
  11440. 800531a: 6078 str r0, [r7, #4]
  11441. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  11442. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  11443. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  11444. /* Set the Region number */
  11445. MPU->RNR = MPU_Init->Number;
  11446. 800531c: 687b ldr r3, [r7, #4]
  11447. 800531e: 785a ldrb r2, [r3, #1]
  11448. 8005320: 4b1b ldr r3, [pc, #108] @ (8005390 <HAL_MPU_ConfigRegion+0x7c>)
  11449. 8005322: 609a str r2, [r3, #8]
  11450. /* Disable the Region */
  11451. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  11452. 8005324: 4b1a ldr r3, [pc, #104] @ (8005390 <HAL_MPU_ConfigRegion+0x7c>)
  11453. 8005326: 691b ldr r3, [r3, #16]
  11454. 8005328: 4a19 ldr r2, [pc, #100] @ (8005390 <HAL_MPU_ConfigRegion+0x7c>)
  11455. 800532a: f023 0301 bic.w r3, r3, #1
  11456. 800532e: 6113 str r3, [r2, #16]
  11457. /* Apply configuration */
  11458. MPU->RBAR = MPU_Init->BaseAddress;
  11459. 8005330: 4a17 ldr r2, [pc, #92] @ (8005390 <HAL_MPU_ConfigRegion+0x7c>)
  11460. 8005332: 687b ldr r3, [r7, #4]
  11461. 8005334: 685b ldr r3, [r3, #4]
  11462. 8005336: 60d3 str r3, [r2, #12]
  11463. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11464. 8005338: 687b ldr r3, [r7, #4]
  11465. 800533a: 7b1b ldrb r3, [r3, #12]
  11466. 800533c: 071a lsls r2, r3, #28
  11467. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  11468. 800533e: 687b ldr r3, [r7, #4]
  11469. 8005340: 7adb ldrb r3, [r3, #11]
  11470. 8005342: 061b lsls r3, r3, #24
  11471. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11472. 8005344: 431a orrs r2, r3
  11473. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  11474. 8005346: 687b ldr r3, [r7, #4]
  11475. 8005348: 7a9b ldrb r3, [r3, #10]
  11476. 800534a: 04db lsls r3, r3, #19
  11477. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  11478. 800534c: 431a orrs r2, r3
  11479. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  11480. 800534e: 687b ldr r3, [r7, #4]
  11481. 8005350: 7b5b ldrb r3, [r3, #13]
  11482. 8005352: 049b lsls r3, r3, #18
  11483. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  11484. 8005354: 431a orrs r2, r3
  11485. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  11486. 8005356: 687b ldr r3, [r7, #4]
  11487. 8005358: 7b9b ldrb r3, [r3, #14]
  11488. 800535a: 045b lsls r3, r3, #17
  11489. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  11490. 800535c: 431a orrs r2, r3
  11491. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  11492. 800535e: 687b ldr r3, [r7, #4]
  11493. 8005360: 7bdb ldrb r3, [r3, #15]
  11494. 8005362: 041b lsls r3, r3, #16
  11495. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  11496. 8005364: 431a orrs r2, r3
  11497. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  11498. 8005366: 687b ldr r3, [r7, #4]
  11499. 8005368: 7a5b ldrb r3, [r3, #9]
  11500. 800536a: 021b lsls r3, r3, #8
  11501. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  11502. 800536c: 431a orrs r2, r3
  11503. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  11504. 800536e: 687b ldr r3, [r7, #4]
  11505. 8005370: 7a1b ldrb r3, [r3, #8]
  11506. 8005372: 005b lsls r3, r3, #1
  11507. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  11508. 8005374: 4313 orrs r3, r2
  11509. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  11510. 8005376: 687a ldr r2, [r7, #4]
  11511. 8005378: 7812 ldrb r2, [r2, #0]
  11512. 800537a: 4611 mov r1, r2
  11513. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11514. 800537c: 4a04 ldr r2, [pc, #16] @ (8005390 <HAL_MPU_ConfigRegion+0x7c>)
  11515. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  11516. 800537e: 430b orrs r3, r1
  11517. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11518. 8005380: 6113 str r3, [r2, #16]
  11519. }
  11520. 8005382: bf00 nop
  11521. 8005384: 370c adds r7, #12
  11522. 8005386: 46bd mov sp, r7
  11523. 8005388: f85d 7b04 ldr.w r7, [sp], #4
  11524. 800538c: 4770 bx lr
  11525. 800538e: bf00 nop
  11526. 8005390: e000ed90 .word 0xe000ed90
  11527. 08005394 <HAL_CRC_Init>:
  11528. * parameters in the CRC_InitTypeDef and create the associated handle.
  11529. * @param hcrc CRC handle
  11530. * @retval HAL status
  11531. */
  11532. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  11533. {
  11534. 8005394: b580 push {r7, lr}
  11535. 8005396: b082 sub sp, #8
  11536. 8005398: af00 add r7, sp, #0
  11537. 800539a: 6078 str r0, [r7, #4]
  11538. /* Check the CRC handle allocation */
  11539. if (hcrc == NULL)
  11540. 800539c: 687b ldr r3, [r7, #4]
  11541. 800539e: 2b00 cmp r3, #0
  11542. 80053a0: d101 bne.n 80053a6 <HAL_CRC_Init+0x12>
  11543. {
  11544. return HAL_ERROR;
  11545. 80053a2: 2301 movs r3, #1
  11546. 80053a4: e054 b.n 8005450 <HAL_CRC_Init+0xbc>
  11547. }
  11548. /* Check the parameters */
  11549. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  11550. if (hcrc->State == HAL_CRC_STATE_RESET)
  11551. 80053a6: 687b ldr r3, [r7, #4]
  11552. 80053a8: 7f5b ldrb r3, [r3, #29]
  11553. 80053aa: b2db uxtb r3, r3
  11554. 80053ac: 2b00 cmp r3, #0
  11555. 80053ae: d105 bne.n 80053bc <HAL_CRC_Init+0x28>
  11556. {
  11557. /* Allocate lock resource and initialize it */
  11558. hcrc->Lock = HAL_UNLOCKED;
  11559. 80053b0: 687b ldr r3, [r7, #4]
  11560. 80053b2: 2200 movs r2, #0
  11561. 80053b4: 771a strb r2, [r3, #28]
  11562. /* Init the low level hardware */
  11563. HAL_CRC_MspInit(hcrc);
  11564. 80053b6: 6878 ldr r0, [r7, #4]
  11565. 80053b8: f7fd ffce bl 8003358 <HAL_CRC_MspInit>
  11566. }
  11567. hcrc->State = HAL_CRC_STATE_BUSY;
  11568. 80053bc: 687b ldr r3, [r7, #4]
  11569. 80053be: 2202 movs r2, #2
  11570. 80053c0: 775a strb r2, [r3, #29]
  11571. /* check whether or not non-default generating polynomial has been
  11572. * picked up by user */
  11573. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  11574. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  11575. 80053c2: 687b ldr r3, [r7, #4]
  11576. 80053c4: 791b ldrb r3, [r3, #4]
  11577. 80053c6: 2b00 cmp r3, #0
  11578. 80053c8: d10c bne.n 80053e4 <HAL_CRC_Init+0x50>
  11579. {
  11580. /* initialize peripheral with default generating polynomial */
  11581. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  11582. 80053ca: 687b ldr r3, [r7, #4]
  11583. 80053cc: 681b ldr r3, [r3, #0]
  11584. 80053ce: 4a22 ldr r2, [pc, #136] @ (8005458 <HAL_CRC_Init+0xc4>)
  11585. 80053d0: 615a str r2, [r3, #20]
  11586. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  11587. 80053d2: 687b ldr r3, [r7, #4]
  11588. 80053d4: 681b ldr r3, [r3, #0]
  11589. 80053d6: 689a ldr r2, [r3, #8]
  11590. 80053d8: 687b ldr r3, [r7, #4]
  11591. 80053da: 681b ldr r3, [r3, #0]
  11592. 80053dc: f022 0218 bic.w r2, r2, #24
  11593. 80053e0: 609a str r2, [r3, #8]
  11594. 80053e2: e00c b.n 80053fe <HAL_CRC_Init+0x6a>
  11595. }
  11596. else
  11597. {
  11598. /* initialize CRC peripheral with generating polynomial defined by user */
  11599. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  11600. 80053e4: 687b ldr r3, [r7, #4]
  11601. 80053e6: 6899 ldr r1, [r3, #8]
  11602. 80053e8: 687b ldr r3, [r7, #4]
  11603. 80053ea: 68db ldr r3, [r3, #12]
  11604. 80053ec: 461a mov r2, r3
  11605. 80053ee: 6878 ldr r0, [r7, #4]
  11606. 80053f0: f000 f948 bl 8005684 <HAL_CRCEx_Polynomial_Set>
  11607. 80053f4: 4603 mov r3, r0
  11608. 80053f6: 2b00 cmp r3, #0
  11609. 80053f8: d001 beq.n 80053fe <HAL_CRC_Init+0x6a>
  11610. {
  11611. return HAL_ERROR;
  11612. 80053fa: 2301 movs r3, #1
  11613. 80053fc: e028 b.n 8005450 <HAL_CRC_Init+0xbc>
  11614. }
  11615. /* check whether or not non-default CRC initial value has been
  11616. * picked up by user */
  11617. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  11618. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  11619. 80053fe: 687b ldr r3, [r7, #4]
  11620. 8005400: 795b ldrb r3, [r3, #5]
  11621. 8005402: 2b00 cmp r3, #0
  11622. 8005404: d105 bne.n 8005412 <HAL_CRC_Init+0x7e>
  11623. {
  11624. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  11625. 8005406: 687b ldr r3, [r7, #4]
  11626. 8005408: 681b ldr r3, [r3, #0]
  11627. 800540a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  11628. 800540e: 611a str r2, [r3, #16]
  11629. 8005410: e004 b.n 800541c <HAL_CRC_Init+0x88>
  11630. }
  11631. else
  11632. {
  11633. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  11634. 8005412: 687b ldr r3, [r7, #4]
  11635. 8005414: 681b ldr r3, [r3, #0]
  11636. 8005416: 687a ldr r2, [r7, #4]
  11637. 8005418: 6912 ldr r2, [r2, #16]
  11638. 800541a: 611a str r2, [r3, #16]
  11639. }
  11640. /* set input data inversion mode */
  11641. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  11642. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  11643. 800541c: 687b ldr r3, [r7, #4]
  11644. 800541e: 681b ldr r3, [r3, #0]
  11645. 8005420: 689b ldr r3, [r3, #8]
  11646. 8005422: f023 0160 bic.w r1, r3, #96 @ 0x60
  11647. 8005426: 687b ldr r3, [r7, #4]
  11648. 8005428: 695a ldr r2, [r3, #20]
  11649. 800542a: 687b ldr r3, [r7, #4]
  11650. 800542c: 681b ldr r3, [r3, #0]
  11651. 800542e: 430a orrs r2, r1
  11652. 8005430: 609a str r2, [r3, #8]
  11653. /* set output data inversion mode */
  11654. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  11655. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  11656. 8005432: 687b ldr r3, [r7, #4]
  11657. 8005434: 681b ldr r3, [r3, #0]
  11658. 8005436: 689b ldr r3, [r3, #8]
  11659. 8005438: f023 0180 bic.w r1, r3, #128 @ 0x80
  11660. 800543c: 687b ldr r3, [r7, #4]
  11661. 800543e: 699a ldr r2, [r3, #24]
  11662. 8005440: 687b ldr r3, [r7, #4]
  11663. 8005442: 681b ldr r3, [r3, #0]
  11664. 8005444: 430a orrs r2, r1
  11665. 8005446: 609a str r2, [r3, #8]
  11666. /* makes sure the input data format (bytes, halfwords or words stream)
  11667. * is properly specified by user */
  11668. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  11669. /* Change CRC peripheral state */
  11670. hcrc->State = HAL_CRC_STATE_READY;
  11671. 8005448: 687b ldr r3, [r7, #4]
  11672. 800544a: 2201 movs r2, #1
  11673. 800544c: 775a strb r2, [r3, #29]
  11674. /* Return function status */
  11675. return HAL_OK;
  11676. 800544e: 2300 movs r3, #0
  11677. }
  11678. 8005450: 4618 mov r0, r3
  11679. 8005452: 3708 adds r7, #8
  11680. 8005454: 46bd mov sp, r7
  11681. 8005456: bd80 pop {r7, pc}
  11682. 8005458: 04c11db7 .word 0x04c11db7
  11683. 0800545c <HAL_CRC_Calculate>:
  11684. * and the API will internally adjust its input data processing based on the
  11685. * handle field hcrc->InputDataFormat.
  11686. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  11687. */
  11688. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  11689. {
  11690. 800545c: b580 push {r7, lr}
  11691. 800545e: b086 sub sp, #24
  11692. 8005460: af00 add r7, sp, #0
  11693. 8005462: 60f8 str r0, [r7, #12]
  11694. 8005464: 60b9 str r1, [r7, #8]
  11695. 8005466: 607a str r2, [r7, #4]
  11696. uint32_t index; /* CRC input data buffer index */
  11697. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  11698. 8005468: 2300 movs r3, #0
  11699. 800546a: 613b str r3, [r7, #16]
  11700. /* Change CRC peripheral state */
  11701. hcrc->State = HAL_CRC_STATE_BUSY;
  11702. 800546c: 68fb ldr r3, [r7, #12]
  11703. 800546e: 2202 movs r2, #2
  11704. 8005470: 775a strb r2, [r3, #29]
  11705. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  11706. * written in hcrc->Instance->DR) */
  11707. __HAL_CRC_DR_RESET(hcrc);
  11708. 8005472: 68fb ldr r3, [r7, #12]
  11709. 8005474: 681b ldr r3, [r3, #0]
  11710. 8005476: 689a ldr r2, [r3, #8]
  11711. 8005478: 68fb ldr r3, [r7, #12]
  11712. 800547a: 681b ldr r3, [r3, #0]
  11713. 800547c: f042 0201 orr.w r2, r2, #1
  11714. 8005480: 609a str r2, [r3, #8]
  11715. switch (hcrc->InputDataFormat)
  11716. 8005482: 68fb ldr r3, [r7, #12]
  11717. 8005484: 6a1b ldr r3, [r3, #32]
  11718. 8005486: 2b03 cmp r3, #3
  11719. 8005488: d006 beq.n 8005498 <HAL_CRC_Calculate+0x3c>
  11720. 800548a: 2b03 cmp r3, #3
  11721. 800548c: d829 bhi.n 80054e2 <HAL_CRC_Calculate+0x86>
  11722. 800548e: 2b01 cmp r3, #1
  11723. 8005490: d019 beq.n 80054c6 <HAL_CRC_Calculate+0x6a>
  11724. 8005492: 2b02 cmp r3, #2
  11725. 8005494: d01e beq.n 80054d4 <HAL_CRC_Calculate+0x78>
  11726. /* Specific 16-bit input data handling */
  11727. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  11728. break;
  11729. default:
  11730. break;
  11731. 8005496: e024 b.n 80054e2 <HAL_CRC_Calculate+0x86>
  11732. for (index = 0U; index < BufferLength; index++)
  11733. 8005498: 2300 movs r3, #0
  11734. 800549a: 617b str r3, [r7, #20]
  11735. 800549c: e00a b.n 80054b4 <HAL_CRC_Calculate+0x58>
  11736. hcrc->Instance->DR = pBuffer[index];
  11737. 800549e: 697b ldr r3, [r7, #20]
  11738. 80054a0: 009b lsls r3, r3, #2
  11739. 80054a2: 68ba ldr r2, [r7, #8]
  11740. 80054a4: 441a add r2, r3
  11741. 80054a6: 68fb ldr r3, [r7, #12]
  11742. 80054a8: 681b ldr r3, [r3, #0]
  11743. 80054aa: 6812 ldr r2, [r2, #0]
  11744. 80054ac: 601a str r2, [r3, #0]
  11745. for (index = 0U; index < BufferLength; index++)
  11746. 80054ae: 697b ldr r3, [r7, #20]
  11747. 80054b0: 3301 adds r3, #1
  11748. 80054b2: 617b str r3, [r7, #20]
  11749. 80054b4: 697a ldr r2, [r7, #20]
  11750. 80054b6: 687b ldr r3, [r7, #4]
  11751. 80054b8: 429a cmp r2, r3
  11752. 80054ba: d3f0 bcc.n 800549e <HAL_CRC_Calculate+0x42>
  11753. temp = hcrc->Instance->DR;
  11754. 80054bc: 68fb ldr r3, [r7, #12]
  11755. 80054be: 681b ldr r3, [r3, #0]
  11756. 80054c0: 681b ldr r3, [r3, #0]
  11757. 80054c2: 613b str r3, [r7, #16]
  11758. break;
  11759. 80054c4: e00e b.n 80054e4 <HAL_CRC_Calculate+0x88>
  11760. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  11761. 80054c6: 687a ldr r2, [r7, #4]
  11762. 80054c8: 68b9 ldr r1, [r7, #8]
  11763. 80054ca: 68f8 ldr r0, [r7, #12]
  11764. 80054cc: f000 f812 bl 80054f4 <CRC_Handle_8>
  11765. 80054d0: 6138 str r0, [r7, #16]
  11766. break;
  11767. 80054d2: e007 b.n 80054e4 <HAL_CRC_Calculate+0x88>
  11768. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  11769. 80054d4: 687a ldr r2, [r7, #4]
  11770. 80054d6: 68b9 ldr r1, [r7, #8]
  11771. 80054d8: 68f8 ldr r0, [r7, #12]
  11772. 80054da: f000 f899 bl 8005610 <CRC_Handle_16>
  11773. 80054de: 6138 str r0, [r7, #16]
  11774. break;
  11775. 80054e0: e000 b.n 80054e4 <HAL_CRC_Calculate+0x88>
  11776. break;
  11777. 80054e2: bf00 nop
  11778. }
  11779. /* Change CRC peripheral state */
  11780. hcrc->State = HAL_CRC_STATE_READY;
  11781. 80054e4: 68fb ldr r3, [r7, #12]
  11782. 80054e6: 2201 movs r2, #1
  11783. 80054e8: 775a strb r2, [r3, #29]
  11784. /* Return the CRC computed value */
  11785. return temp;
  11786. 80054ea: 693b ldr r3, [r7, #16]
  11787. }
  11788. 80054ec: 4618 mov r0, r3
  11789. 80054ee: 3718 adds r7, #24
  11790. 80054f0: 46bd mov sp, r7
  11791. 80054f2: bd80 pop {r7, pc}
  11792. 080054f4 <CRC_Handle_8>:
  11793. * @param pBuffer pointer to the input data buffer
  11794. * @param BufferLength input data buffer length
  11795. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  11796. */
  11797. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  11798. {
  11799. 80054f4: b480 push {r7}
  11800. 80054f6: b089 sub sp, #36 @ 0x24
  11801. 80054f8: af00 add r7, sp, #0
  11802. 80054fa: 60f8 str r0, [r7, #12]
  11803. 80054fc: 60b9 str r1, [r7, #8]
  11804. 80054fe: 607a str r2, [r7, #4]
  11805. __IO uint16_t *pReg;
  11806. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  11807. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  11808. * handling by the peripheral */
  11809. for (i = 0U; i < (BufferLength / 4U); i++)
  11810. 8005500: 2300 movs r3, #0
  11811. 8005502: 61fb str r3, [r7, #28]
  11812. 8005504: e023 b.n 800554e <CRC_Handle_8+0x5a>
  11813. {
  11814. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  11815. 8005506: 69fb ldr r3, [r7, #28]
  11816. 8005508: 009b lsls r3, r3, #2
  11817. 800550a: 68ba ldr r2, [r7, #8]
  11818. 800550c: 4413 add r3, r2
  11819. 800550e: 781b ldrb r3, [r3, #0]
  11820. 8005510: 061a lsls r2, r3, #24
  11821. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  11822. 8005512: 69fb ldr r3, [r7, #28]
  11823. 8005514: 009b lsls r3, r3, #2
  11824. 8005516: 3301 adds r3, #1
  11825. 8005518: 68b9 ldr r1, [r7, #8]
  11826. 800551a: 440b add r3, r1
  11827. 800551c: 781b ldrb r3, [r3, #0]
  11828. 800551e: 041b lsls r3, r3, #16
  11829. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  11830. 8005520: 431a orrs r2, r3
  11831. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  11832. 8005522: 69fb ldr r3, [r7, #28]
  11833. 8005524: 009b lsls r3, r3, #2
  11834. 8005526: 3302 adds r3, #2
  11835. 8005528: 68b9 ldr r1, [r7, #8]
  11836. 800552a: 440b add r3, r1
  11837. 800552c: 781b ldrb r3, [r3, #0]
  11838. 800552e: 021b lsls r3, r3, #8
  11839. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  11840. 8005530: 431a orrs r2, r3
  11841. (uint32_t)pBuffer[(4U * i) + 3U];
  11842. 8005532: 69fb ldr r3, [r7, #28]
  11843. 8005534: 009b lsls r3, r3, #2
  11844. 8005536: 3303 adds r3, #3
  11845. 8005538: 68b9 ldr r1, [r7, #8]
  11846. 800553a: 440b add r3, r1
  11847. 800553c: 781b ldrb r3, [r3, #0]
  11848. 800553e: 4619 mov r1, r3
  11849. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  11850. 8005540: 68fb ldr r3, [r7, #12]
  11851. 8005542: 681b ldr r3, [r3, #0]
  11852. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  11853. 8005544: 430a orrs r2, r1
  11854. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  11855. 8005546: 601a str r2, [r3, #0]
  11856. for (i = 0U; i < (BufferLength / 4U); i++)
  11857. 8005548: 69fb ldr r3, [r7, #28]
  11858. 800554a: 3301 adds r3, #1
  11859. 800554c: 61fb str r3, [r7, #28]
  11860. 800554e: 687b ldr r3, [r7, #4]
  11861. 8005550: 089b lsrs r3, r3, #2
  11862. 8005552: 69fa ldr r2, [r7, #28]
  11863. 8005554: 429a cmp r2, r3
  11864. 8005556: d3d6 bcc.n 8005506 <CRC_Handle_8+0x12>
  11865. }
  11866. /* last bytes specific handling */
  11867. if ((BufferLength % 4U) != 0U)
  11868. 8005558: 687b ldr r3, [r7, #4]
  11869. 800555a: f003 0303 and.w r3, r3, #3
  11870. 800555e: 2b00 cmp r3, #0
  11871. 8005560: d04d beq.n 80055fe <CRC_Handle_8+0x10a>
  11872. {
  11873. if ((BufferLength % 4U) == 1U)
  11874. 8005562: 687b ldr r3, [r7, #4]
  11875. 8005564: f003 0303 and.w r3, r3, #3
  11876. 8005568: 2b01 cmp r3, #1
  11877. 800556a: d107 bne.n 800557c <CRC_Handle_8+0x88>
  11878. {
  11879. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  11880. 800556c: 69fb ldr r3, [r7, #28]
  11881. 800556e: 009b lsls r3, r3, #2
  11882. 8005570: 68ba ldr r2, [r7, #8]
  11883. 8005572: 4413 add r3, r2
  11884. 8005574: 68fa ldr r2, [r7, #12]
  11885. 8005576: 6812 ldr r2, [r2, #0]
  11886. 8005578: 781b ldrb r3, [r3, #0]
  11887. 800557a: 7013 strb r3, [r2, #0]
  11888. }
  11889. if ((BufferLength % 4U) == 2U)
  11890. 800557c: 687b ldr r3, [r7, #4]
  11891. 800557e: f003 0303 and.w r3, r3, #3
  11892. 8005582: 2b02 cmp r3, #2
  11893. 8005584: d116 bne.n 80055b4 <CRC_Handle_8+0xc0>
  11894. {
  11895. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  11896. 8005586: 69fb ldr r3, [r7, #28]
  11897. 8005588: 009b lsls r3, r3, #2
  11898. 800558a: 68ba ldr r2, [r7, #8]
  11899. 800558c: 4413 add r3, r2
  11900. 800558e: 781b ldrb r3, [r3, #0]
  11901. 8005590: 021b lsls r3, r3, #8
  11902. 8005592: b21a sxth r2, r3
  11903. 8005594: 69fb ldr r3, [r7, #28]
  11904. 8005596: 009b lsls r3, r3, #2
  11905. 8005598: 3301 adds r3, #1
  11906. 800559a: 68b9 ldr r1, [r7, #8]
  11907. 800559c: 440b add r3, r1
  11908. 800559e: 781b ldrb r3, [r3, #0]
  11909. 80055a0: b21b sxth r3, r3
  11910. 80055a2: 4313 orrs r3, r2
  11911. 80055a4: b21b sxth r3, r3
  11912. 80055a6: 837b strh r3, [r7, #26]
  11913. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  11914. 80055a8: 68fb ldr r3, [r7, #12]
  11915. 80055aa: 681b ldr r3, [r3, #0]
  11916. 80055ac: 617b str r3, [r7, #20]
  11917. *pReg = data;
  11918. 80055ae: 697b ldr r3, [r7, #20]
  11919. 80055b0: 8b7a ldrh r2, [r7, #26]
  11920. 80055b2: 801a strh r2, [r3, #0]
  11921. }
  11922. if ((BufferLength % 4U) == 3U)
  11923. 80055b4: 687b ldr r3, [r7, #4]
  11924. 80055b6: f003 0303 and.w r3, r3, #3
  11925. 80055ba: 2b03 cmp r3, #3
  11926. 80055bc: d11f bne.n 80055fe <CRC_Handle_8+0x10a>
  11927. {
  11928. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  11929. 80055be: 69fb ldr r3, [r7, #28]
  11930. 80055c0: 009b lsls r3, r3, #2
  11931. 80055c2: 68ba ldr r2, [r7, #8]
  11932. 80055c4: 4413 add r3, r2
  11933. 80055c6: 781b ldrb r3, [r3, #0]
  11934. 80055c8: 021b lsls r3, r3, #8
  11935. 80055ca: b21a sxth r2, r3
  11936. 80055cc: 69fb ldr r3, [r7, #28]
  11937. 80055ce: 009b lsls r3, r3, #2
  11938. 80055d0: 3301 adds r3, #1
  11939. 80055d2: 68b9 ldr r1, [r7, #8]
  11940. 80055d4: 440b add r3, r1
  11941. 80055d6: 781b ldrb r3, [r3, #0]
  11942. 80055d8: b21b sxth r3, r3
  11943. 80055da: 4313 orrs r3, r2
  11944. 80055dc: b21b sxth r3, r3
  11945. 80055de: 837b strh r3, [r7, #26]
  11946. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  11947. 80055e0: 68fb ldr r3, [r7, #12]
  11948. 80055e2: 681b ldr r3, [r3, #0]
  11949. 80055e4: 617b str r3, [r7, #20]
  11950. *pReg = data;
  11951. 80055e6: 697b ldr r3, [r7, #20]
  11952. 80055e8: 8b7a ldrh r2, [r7, #26]
  11953. 80055ea: 801a strh r2, [r3, #0]
  11954. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  11955. 80055ec: 69fb ldr r3, [r7, #28]
  11956. 80055ee: 009b lsls r3, r3, #2
  11957. 80055f0: 3302 adds r3, #2
  11958. 80055f2: 68ba ldr r2, [r7, #8]
  11959. 80055f4: 4413 add r3, r2
  11960. 80055f6: 68fa ldr r2, [r7, #12]
  11961. 80055f8: 6812 ldr r2, [r2, #0]
  11962. 80055fa: 781b ldrb r3, [r3, #0]
  11963. 80055fc: 7013 strb r3, [r2, #0]
  11964. }
  11965. }
  11966. /* Return the CRC computed value */
  11967. return hcrc->Instance->DR;
  11968. 80055fe: 68fb ldr r3, [r7, #12]
  11969. 8005600: 681b ldr r3, [r3, #0]
  11970. 8005602: 681b ldr r3, [r3, #0]
  11971. }
  11972. 8005604: 4618 mov r0, r3
  11973. 8005606: 3724 adds r7, #36 @ 0x24
  11974. 8005608: 46bd mov sp, r7
  11975. 800560a: f85d 7b04 ldr.w r7, [sp], #4
  11976. 800560e: 4770 bx lr
  11977. 08005610 <CRC_Handle_16>:
  11978. * @param pBuffer pointer to the input data buffer
  11979. * @param BufferLength input data buffer length
  11980. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  11981. */
  11982. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  11983. {
  11984. 8005610: b480 push {r7}
  11985. 8005612: b087 sub sp, #28
  11986. 8005614: af00 add r7, sp, #0
  11987. 8005616: 60f8 str r0, [r7, #12]
  11988. 8005618: 60b9 str r1, [r7, #8]
  11989. 800561a: 607a str r2, [r7, #4]
  11990. __IO uint16_t *pReg;
  11991. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  11992. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  11993. * a correct type handling by the peripheral */
  11994. for (i = 0U; i < (BufferLength / 2U); i++)
  11995. 800561c: 2300 movs r3, #0
  11996. 800561e: 617b str r3, [r7, #20]
  11997. 8005620: e013 b.n 800564a <CRC_Handle_16+0x3a>
  11998. {
  11999. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  12000. 8005622: 697b ldr r3, [r7, #20]
  12001. 8005624: 009b lsls r3, r3, #2
  12002. 8005626: 68ba ldr r2, [r7, #8]
  12003. 8005628: 4413 add r3, r2
  12004. 800562a: 881b ldrh r3, [r3, #0]
  12005. 800562c: 041a lsls r2, r3, #16
  12006. 800562e: 697b ldr r3, [r7, #20]
  12007. 8005630: 009b lsls r3, r3, #2
  12008. 8005632: 3302 adds r3, #2
  12009. 8005634: 68b9 ldr r1, [r7, #8]
  12010. 8005636: 440b add r3, r1
  12011. 8005638: 881b ldrh r3, [r3, #0]
  12012. 800563a: 4619 mov r1, r3
  12013. 800563c: 68fb ldr r3, [r7, #12]
  12014. 800563e: 681b ldr r3, [r3, #0]
  12015. 8005640: 430a orrs r2, r1
  12016. 8005642: 601a str r2, [r3, #0]
  12017. for (i = 0U; i < (BufferLength / 2U); i++)
  12018. 8005644: 697b ldr r3, [r7, #20]
  12019. 8005646: 3301 adds r3, #1
  12020. 8005648: 617b str r3, [r7, #20]
  12021. 800564a: 687b ldr r3, [r7, #4]
  12022. 800564c: 085b lsrs r3, r3, #1
  12023. 800564e: 697a ldr r2, [r7, #20]
  12024. 8005650: 429a cmp r2, r3
  12025. 8005652: d3e6 bcc.n 8005622 <CRC_Handle_16+0x12>
  12026. }
  12027. if ((BufferLength % 2U) != 0U)
  12028. 8005654: 687b ldr r3, [r7, #4]
  12029. 8005656: f003 0301 and.w r3, r3, #1
  12030. 800565a: 2b00 cmp r3, #0
  12031. 800565c: d009 beq.n 8005672 <CRC_Handle_16+0x62>
  12032. {
  12033. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12034. 800565e: 68fb ldr r3, [r7, #12]
  12035. 8005660: 681b ldr r3, [r3, #0]
  12036. 8005662: 613b str r3, [r7, #16]
  12037. *pReg = pBuffer[2U * i];
  12038. 8005664: 697b ldr r3, [r7, #20]
  12039. 8005666: 009b lsls r3, r3, #2
  12040. 8005668: 68ba ldr r2, [r7, #8]
  12041. 800566a: 4413 add r3, r2
  12042. 800566c: 881a ldrh r2, [r3, #0]
  12043. 800566e: 693b ldr r3, [r7, #16]
  12044. 8005670: 801a strh r2, [r3, #0]
  12045. }
  12046. /* Return the CRC computed value */
  12047. return hcrc->Instance->DR;
  12048. 8005672: 68fb ldr r3, [r7, #12]
  12049. 8005674: 681b ldr r3, [r3, #0]
  12050. 8005676: 681b ldr r3, [r3, #0]
  12051. }
  12052. 8005678: 4618 mov r0, r3
  12053. 800567a: 371c adds r7, #28
  12054. 800567c: 46bd mov sp, r7
  12055. 800567e: f85d 7b04 ldr.w r7, [sp], #4
  12056. 8005682: 4770 bx lr
  12057. 08005684 <HAL_CRCEx_Polynomial_Set>:
  12058. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  12059. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  12060. * @retval HAL status
  12061. */
  12062. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  12063. {
  12064. 8005684: b480 push {r7}
  12065. 8005686: b087 sub sp, #28
  12066. 8005688: af00 add r7, sp, #0
  12067. 800568a: 60f8 str r0, [r7, #12]
  12068. 800568c: 60b9 str r1, [r7, #8]
  12069. 800568e: 607a str r2, [r7, #4]
  12070. HAL_StatusTypeDef status = HAL_OK;
  12071. 8005690: 2300 movs r3, #0
  12072. 8005692: 75fb strb r3, [r7, #23]
  12073. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  12074. 8005694: 231f movs r3, #31
  12075. 8005696: 613b str r3, [r7, #16]
  12076. /* Check the parameters */
  12077. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  12078. /* Ensure that the generating polynomial is odd */
  12079. if ((Pol & (uint32_t)(0x1U)) == 0U)
  12080. 8005698: 68bb ldr r3, [r7, #8]
  12081. 800569a: f003 0301 and.w r3, r3, #1
  12082. 800569e: 2b00 cmp r3, #0
  12083. 80056a0: d102 bne.n 80056a8 <HAL_CRCEx_Polynomial_Set+0x24>
  12084. {
  12085. status = HAL_ERROR;
  12086. 80056a2: 2301 movs r3, #1
  12087. 80056a4: 75fb strb r3, [r7, #23]
  12088. 80056a6: e063 b.n 8005770 <HAL_CRCEx_Polynomial_Set+0xec>
  12089. * definition. HAL_ERROR is reported if Pol degree is
  12090. * larger than that indicated by PolyLength.
  12091. * Look for MSB position: msb will contain the degree of
  12092. * the second to the largest polynomial member. E.g., for
  12093. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  12094. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  12095. 80056a8: bf00 nop
  12096. 80056aa: 693b ldr r3, [r7, #16]
  12097. 80056ac: 1e5a subs r2, r3, #1
  12098. 80056ae: 613a str r2, [r7, #16]
  12099. 80056b0: 2b00 cmp r3, #0
  12100. 80056b2: d009 beq.n 80056c8 <HAL_CRCEx_Polynomial_Set+0x44>
  12101. 80056b4: 693b ldr r3, [r7, #16]
  12102. 80056b6: f003 031f and.w r3, r3, #31
  12103. 80056ba: 68ba ldr r2, [r7, #8]
  12104. 80056bc: fa22 f303 lsr.w r3, r2, r3
  12105. 80056c0: f003 0301 and.w r3, r3, #1
  12106. 80056c4: 2b00 cmp r3, #0
  12107. 80056c6: d0f0 beq.n 80056aa <HAL_CRCEx_Polynomial_Set+0x26>
  12108. {
  12109. }
  12110. switch (PolyLength)
  12111. 80056c8: 687b ldr r3, [r7, #4]
  12112. 80056ca: 2b18 cmp r3, #24
  12113. 80056cc: d846 bhi.n 800575c <HAL_CRCEx_Polynomial_Set+0xd8>
  12114. 80056ce: a201 add r2, pc, #4 @ (adr r2, 80056d4 <HAL_CRCEx_Polynomial_Set+0x50>)
  12115. 80056d0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  12116. 80056d4: 08005763 .word 0x08005763
  12117. 80056d8: 0800575d .word 0x0800575d
  12118. 80056dc: 0800575d .word 0x0800575d
  12119. 80056e0: 0800575d .word 0x0800575d
  12120. 80056e4: 0800575d .word 0x0800575d
  12121. 80056e8: 0800575d .word 0x0800575d
  12122. 80056ec: 0800575d .word 0x0800575d
  12123. 80056f0: 0800575d .word 0x0800575d
  12124. 80056f4: 08005751 .word 0x08005751
  12125. 80056f8: 0800575d .word 0x0800575d
  12126. 80056fc: 0800575d .word 0x0800575d
  12127. 8005700: 0800575d .word 0x0800575d
  12128. 8005704: 0800575d .word 0x0800575d
  12129. 8005708: 0800575d .word 0x0800575d
  12130. 800570c: 0800575d .word 0x0800575d
  12131. 8005710: 0800575d .word 0x0800575d
  12132. 8005714: 08005745 .word 0x08005745
  12133. 8005718: 0800575d .word 0x0800575d
  12134. 800571c: 0800575d .word 0x0800575d
  12135. 8005720: 0800575d .word 0x0800575d
  12136. 8005724: 0800575d .word 0x0800575d
  12137. 8005728: 0800575d .word 0x0800575d
  12138. 800572c: 0800575d .word 0x0800575d
  12139. 8005730: 0800575d .word 0x0800575d
  12140. 8005734: 08005739 .word 0x08005739
  12141. {
  12142. case CRC_POLYLENGTH_7B:
  12143. if (msb >= HAL_CRC_LENGTH_7B)
  12144. 8005738: 693b ldr r3, [r7, #16]
  12145. 800573a: 2b06 cmp r3, #6
  12146. 800573c: d913 bls.n 8005766 <HAL_CRCEx_Polynomial_Set+0xe2>
  12147. {
  12148. status = HAL_ERROR;
  12149. 800573e: 2301 movs r3, #1
  12150. 8005740: 75fb strb r3, [r7, #23]
  12151. }
  12152. break;
  12153. 8005742: e010 b.n 8005766 <HAL_CRCEx_Polynomial_Set+0xe2>
  12154. case CRC_POLYLENGTH_8B:
  12155. if (msb >= HAL_CRC_LENGTH_8B)
  12156. 8005744: 693b ldr r3, [r7, #16]
  12157. 8005746: 2b07 cmp r3, #7
  12158. 8005748: d90f bls.n 800576a <HAL_CRCEx_Polynomial_Set+0xe6>
  12159. {
  12160. status = HAL_ERROR;
  12161. 800574a: 2301 movs r3, #1
  12162. 800574c: 75fb strb r3, [r7, #23]
  12163. }
  12164. break;
  12165. 800574e: e00c b.n 800576a <HAL_CRCEx_Polynomial_Set+0xe6>
  12166. case CRC_POLYLENGTH_16B:
  12167. if (msb >= HAL_CRC_LENGTH_16B)
  12168. 8005750: 693b ldr r3, [r7, #16]
  12169. 8005752: 2b0f cmp r3, #15
  12170. 8005754: d90b bls.n 800576e <HAL_CRCEx_Polynomial_Set+0xea>
  12171. {
  12172. status = HAL_ERROR;
  12173. 8005756: 2301 movs r3, #1
  12174. 8005758: 75fb strb r3, [r7, #23]
  12175. }
  12176. break;
  12177. 800575a: e008 b.n 800576e <HAL_CRCEx_Polynomial_Set+0xea>
  12178. case CRC_POLYLENGTH_32B:
  12179. /* no polynomial definition vs. polynomial length issue possible */
  12180. break;
  12181. default:
  12182. status = HAL_ERROR;
  12183. 800575c: 2301 movs r3, #1
  12184. 800575e: 75fb strb r3, [r7, #23]
  12185. break;
  12186. 8005760: e006 b.n 8005770 <HAL_CRCEx_Polynomial_Set+0xec>
  12187. break;
  12188. 8005762: bf00 nop
  12189. 8005764: e004 b.n 8005770 <HAL_CRCEx_Polynomial_Set+0xec>
  12190. break;
  12191. 8005766: bf00 nop
  12192. 8005768: e002 b.n 8005770 <HAL_CRCEx_Polynomial_Set+0xec>
  12193. break;
  12194. 800576a: bf00 nop
  12195. 800576c: e000 b.n 8005770 <HAL_CRCEx_Polynomial_Set+0xec>
  12196. break;
  12197. 800576e: bf00 nop
  12198. }
  12199. }
  12200. if (status == HAL_OK)
  12201. 8005770: 7dfb ldrb r3, [r7, #23]
  12202. 8005772: 2b00 cmp r3, #0
  12203. 8005774: d10d bne.n 8005792 <HAL_CRCEx_Polynomial_Set+0x10e>
  12204. {
  12205. /* set generating polynomial */
  12206. WRITE_REG(hcrc->Instance->POL, Pol);
  12207. 8005776: 68fb ldr r3, [r7, #12]
  12208. 8005778: 681b ldr r3, [r3, #0]
  12209. 800577a: 68ba ldr r2, [r7, #8]
  12210. 800577c: 615a str r2, [r3, #20]
  12211. /* set generating polynomial size */
  12212. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  12213. 800577e: 68fb ldr r3, [r7, #12]
  12214. 8005780: 681b ldr r3, [r3, #0]
  12215. 8005782: 689b ldr r3, [r3, #8]
  12216. 8005784: f023 0118 bic.w r1, r3, #24
  12217. 8005788: 68fb ldr r3, [r7, #12]
  12218. 800578a: 681b ldr r3, [r3, #0]
  12219. 800578c: 687a ldr r2, [r7, #4]
  12220. 800578e: 430a orrs r2, r1
  12221. 8005790: 609a str r2, [r3, #8]
  12222. }
  12223. /* Return function status */
  12224. return status;
  12225. 8005792: 7dfb ldrb r3, [r7, #23]
  12226. }
  12227. 8005794: 4618 mov r0, r3
  12228. 8005796: 371c adds r7, #28
  12229. 8005798: 46bd mov sp, r7
  12230. 800579a: f85d 7b04 ldr.w r7, [sp], #4
  12231. 800579e: 4770 bx lr
  12232. 080057a0 <HAL_DMA_Init>:
  12233. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  12234. * the configuration information for the specified DMA Stream.
  12235. * @retval HAL status
  12236. */
  12237. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  12238. {
  12239. 80057a0: b580 push {r7, lr}
  12240. 80057a2: b086 sub sp, #24
  12241. 80057a4: af00 add r7, sp, #0
  12242. 80057a6: 6078 str r0, [r7, #4]
  12243. uint32_t registerValue;
  12244. uint32_t tickstart = HAL_GetTick();
  12245. 80057a8: f7ff fc4c bl 8005044 <HAL_GetTick>
  12246. 80057ac: 6138 str r0, [r7, #16]
  12247. DMA_Base_Registers *regs_dma;
  12248. BDMA_Base_Registers *regs_bdma;
  12249. /* Check the DMA peripheral handle */
  12250. if(hdma == NULL)
  12251. 80057ae: 687b ldr r3, [r7, #4]
  12252. 80057b0: 2b00 cmp r3, #0
  12253. 80057b2: d101 bne.n 80057b8 <HAL_DMA_Init+0x18>
  12254. {
  12255. return HAL_ERROR;
  12256. 80057b4: 2301 movs r3, #1
  12257. 80057b6: e316 b.n 8005de6 <HAL_DMA_Init+0x646>
  12258. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  12259. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  12260. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  12261. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  12262. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  12263. 80057b8: 687b ldr r3, [r7, #4]
  12264. 80057ba: 681b ldr r3, [r3, #0]
  12265. 80057bc: 4a66 ldr r2, [pc, #408] @ (8005958 <HAL_DMA_Init+0x1b8>)
  12266. 80057be: 4293 cmp r3, r2
  12267. 80057c0: d04a beq.n 8005858 <HAL_DMA_Init+0xb8>
  12268. 80057c2: 687b ldr r3, [r7, #4]
  12269. 80057c4: 681b ldr r3, [r3, #0]
  12270. 80057c6: 4a65 ldr r2, [pc, #404] @ (800595c <HAL_DMA_Init+0x1bc>)
  12271. 80057c8: 4293 cmp r3, r2
  12272. 80057ca: d045 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12273. 80057cc: 687b ldr r3, [r7, #4]
  12274. 80057ce: 681b ldr r3, [r3, #0]
  12275. 80057d0: 4a63 ldr r2, [pc, #396] @ (8005960 <HAL_DMA_Init+0x1c0>)
  12276. 80057d2: 4293 cmp r3, r2
  12277. 80057d4: d040 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12278. 80057d6: 687b ldr r3, [r7, #4]
  12279. 80057d8: 681b ldr r3, [r3, #0]
  12280. 80057da: 4a62 ldr r2, [pc, #392] @ (8005964 <HAL_DMA_Init+0x1c4>)
  12281. 80057dc: 4293 cmp r3, r2
  12282. 80057de: d03b beq.n 8005858 <HAL_DMA_Init+0xb8>
  12283. 80057e0: 687b ldr r3, [r7, #4]
  12284. 80057e2: 681b ldr r3, [r3, #0]
  12285. 80057e4: 4a60 ldr r2, [pc, #384] @ (8005968 <HAL_DMA_Init+0x1c8>)
  12286. 80057e6: 4293 cmp r3, r2
  12287. 80057e8: d036 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12288. 80057ea: 687b ldr r3, [r7, #4]
  12289. 80057ec: 681b ldr r3, [r3, #0]
  12290. 80057ee: 4a5f ldr r2, [pc, #380] @ (800596c <HAL_DMA_Init+0x1cc>)
  12291. 80057f0: 4293 cmp r3, r2
  12292. 80057f2: d031 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12293. 80057f4: 687b ldr r3, [r7, #4]
  12294. 80057f6: 681b ldr r3, [r3, #0]
  12295. 80057f8: 4a5d ldr r2, [pc, #372] @ (8005970 <HAL_DMA_Init+0x1d0>)
  12296. 80057fa: 4293 cmp r3, r2
  12297. 80057fc: d02c beq.n 8005858 <HAL_DMA_Init+0xb8>
  12298. 80057fe: 687b ldr r3, [r7, #4]
  12299. 8005800: 681b ldr r3, [r3, #0]
  12300. 8005802: 4a5c ldr r2, [pc, #368] @ (8005974 <HAL_DMA_Init+0x1d4>)
  12301. 8005804: 4293 cmp r3, r2
  12302. 8005806: d027 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12303. 8005808: 687b ldr r3, [r7, #4]
  12304. 800580a: 681b ldr r3, [r3, #0]
  12305. 800580c: 4a5a ldr r2, [pc, #360] @ (8005978 <HAL_DMA_Init+0x1d8>)
  12306. 800580e: 4293 cmp r3, r2
  12307. 8005810: d022 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12308. 8005812: 687b ldr r3, [r7, #4]
  12309. 8005814: 681b ldr r3, [r3, #0]
  12310. 8005816: 4a59 ldr r2, [pc, #356] @ (800597c <HAL_DMA_Init+0x1dc>)
  12311. 8005818: 4293 cmp r3, r2
  12312. 800581a: d01d beq.n 8005858 <HAL_DMA_Init+0xb8>
  12313. 800581c: 687b ldr r3, [r7, #4]
  12314. 800581e: 681b ldr r3, [r3, #0]
  12315. 8005820: 4a57 ldr r2, [pc, #348] @ (8005980 <HAL_DMA_Init+0x1e0>)
  12316. 8005822: 4293 cmp r3, r2
  12317. 8005824: d018 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12318. 8005826: 687b ldr r3, [r7, #4]
  12319. 8005828: 681b ldr r3, [r3, #0]
  12320. 800582a: 4a56 ldr r2, [pc, #344] @ (8005984 <HAL_DMA_Init+0x1e4>)
  12321. 800582c: 4293 cmp r3, r2
  12322. 800582e: d013 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12323. 8005830: 687b ldr r3, [r7, #4]
  12324. 8005832: 681b ldr r3, [r3, #0]
  12325. 8005834: 4a54 ldr r2, [pc, #336] @ (8005988 <HAL_DMA_Init+0x1e8>)
  12326. 8005836: 4293 cmp r3, r2
  12327. 8005838: d00e beq.n 8005858 <HAL_DMA_Init+0xb8>
  12328. 800583a: 687b ldr r3, [r7, #4]
  12329. 800583c: 681b ldr r3, [r3, #0]
  12330. 800583e: 4a53 ldr r2, [pc, #332] @ (800598c <HAL_DMA_Init+0x1ec>)
  12331. 8005840: 4293 cmp r3, r2
  12332. 8005842: d009 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12333. 8005844: 687b ldr r3, [r7, #4]
  12334. 8005846: 681b ldr r3, [r3, #0]
  12335. 8005848: 4a51 ldr r2, [pc, #324] @ (8005990 <HAL_DMA_Init+0x1f0>)
  12336. 800584a: 4293 cmp r3, r2
  12337. 800584c: d004 beq.n 8005858 <HAL_DMA_Init+0xb8>
  12338. 800584e: 687b ldr r3, [r7, #4]
  12339. 8005850: 681b ldr r3, [r3, #0]
  12340. 8005852: 4a50 ldr r2, [pc, #320] @ (8005994 <HAL_DMA_Init+0x1f4>)
  12341. 8005854: 4293 cmp r3, r2
  12342. 8005856: d101 bne.n 800585c <HAL_DMA_Init+0xbc>
  12343. 8005858: 2301 movs r3, #1
  12344. 800585a: e000 b.n 800585e <HAL_DMA_Init+0xbe>
  12345. 800585c: 2300 movs r3, #0
  12346. 800585e: 2b00 cmp r3, #0
  12347. 8005860: f000 813b beq.w 8005ada <HAL_DMA_Init+0x33a>
  12348. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  12349. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  12350. }
  12351. /* Change DMA peripheral state */
  12352. hdma->State = HAL_DMA_STATE_BUSY;
  12353. 8005864: 687b ldr r3, [r7, #4]
  12354. 8005866: 2202 movs r2, #2
  12355. 8005868: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12356. /* Allocate lock resource */
  12357. __HAL_UNLOCK(hdma);
  12358. 800586c: 687b ldr r3, [r7, #4]
  12359. 800586e: 2200 movs r2, #0
  12360. 8005870: f883 2034 strb.w r2, [r3, #52] @ 0x34
  12361. /* Disable the peripheral */
  12362. __HAL_DMA_DISABLE(hdma);
  12363. 8005874: 687b ldr r3, [r7, #4]
  12364. 8005876: 681b ldr r3, [r3, #0]
  12365. 8005878: 4a37 ldr r2, [pc, #220] @ (8005958 <HAL_DMA_Init+0x1b8>)
  12366. 800587a: 4293 cmp r3, r2
  12367. 800587c: d04a beq.n 8005914 <HAL_DMA_Init+0x174>
  12368. 800587e: 687b ldr r3, [r7, #4]
  12369. 8005880: 681b ldr r3, [r3, #0]
  12370. 8005882: 4a36 ldr r2, [pc, #216] @ (800595c <HAL_DMA_Init+0x1bc>)
  12371. 8005884: 4293 cmp r3, r2
  12372. 8005886: d045 beq.n 8005914 <HAL_DMA_Init+0x174>
  12373. 8005888: 687b ldr r3, [r7, #4]
  12374. 800588a: 681b ldr r3, [r3, #0]
  12375. 800588c: 4a34 ldr r2, [pc, #208] @ (8005960 <HAL_DMA_Init+0x1c0>)
  12376. 800588e: 4293 cmp r3, r2
  12377. 8005890: d040 beq.n 8005914 <HAL_DMA_Init+0x174>
  12378. 8005892: 687b ldr r3, [r7, #4]
  12379. 8005894: 681b ldr r3, [r3, #0]
  12380. 8005896: 4a33 ldr r2, [pc, #204] @ (8005964 <HAL_DMA_Init+0x1c4>)
  12381. 8005898: 4293 cmp r3, r2
  12382. 800589a: d03b beq.n 8005914 <HAL_DMA_Init+0x174>
  12383. 800589c: 687b ldr r3, [r7, #4]
  12384. 800589e: 681b ldr r3, [r3, #0]
  12385. 80058a0: 4a31 ldr r2, [pc, #196] @ (8005968 <HAL_DMA_Init+0x1c8>)
  12386. 80058a2: 4293 cmp r3, r2
  12387. 80058a4: d036 beq.n 8005914 <HAL_DMA_Init+0x174>
  12388. 80058a6: 687b ldr r3, [r7, #4]
  12389. 80058a8: 681b ldr r3, [r3, #0]
  12390. 80058aa: 4a30 ldr r2, [pc, #192] @ (800596c <HAL_DMA_Init+0x1cc>)
  12391. 80058ac: 4293 cmp r3, r2
  12392. 80058ae: d031 beq.n 8005914 <HAL_DMA_Init+0x174>
  12393. 80058b0: 687b ldr r3, [r7, #4]
  12394. 80058b2: 681b ldr r3, [r3, #0]
  12395. 80058b4: 4a2e ldr r2, [pc, #184] @ (8005970 <HAL_DMA_Init+0x1d0>)
  12396. 80058b6: 4293 cmp r3, r2
  12397. 80058b8: d02c beq.n 8005914 <HAL_DMA_Init+0x174>
  12398. 80058ba: 687b ldr r3, [r7, #4]
  12399. 80058bc: 681b ldr r3, [r3, #0]
  12400. 80058be: 4a2d ldr r2, [pc, #180] @ (8005974 <HAL_DMA_Init+0x1d4>)
  12401. 80058c0: 4293 cmp r3, r2
  12402. 80058c2: d027 beq.n 8005914 <HAL_DMA_Init+0x174>
  12403. 80058c4: 687b ldr r3, [r7, #4]
  12404. 80058c6: 681b ldr r3, [r3, #0]
  12405. 80058c8: 4a2b ldr r2, [pc, #172] @ (8005978 <HAL_DMA_Init+0x1d8>)
  12406. 80058ca: 4293 cmp r3, r2
  12407. 80058cc: d022 beq.n 8005914 <HAL_DMA_Init+0x174>
  12408. 80058ce: 687b ldr r3, [r7, #4]
  12409. 80058d0: 681b ldr r3, [r3, #0]
  12410. 80058d2: 4a2a ldr r2, [pc, #168] @ (800597c <HAL_DMA_Init+0x1dc>)
  12411. 80058d4: 4293 cmp r3, r2
  12412. 80058d6: d01d beq.n 8005914 <HAL_DMA_Init+0x174>
  12413. 80058d8: 687b ldr r3, [r7, #4]
  12414. 80058da: 681b ldr r3, [r3, #0]
  12415. 80058dc: 4a28 ldr r2, [pc, #160] @ (8005980 <HAL_DMA_Init+0x1e0>)
  12416. 80058de: 4293 cmp r3, r2
  12417. 80058e0: d018 beq.n 8005914 <HAL_DMA_Init+0x174>
  12418. 80058e2: 687b ldr r3, [r7, #4]
  12419. 80058e4: 681b ldr r3, [r3, #0]
  12420. 80058e6: 4a27 ldr r2, [pc, #156] @ (8005984 <HAL_DMA_Init+0x1e4>)
  12421. 80058e8: 4293 cmp r3, r2
  12422. 80058ea: d013 beq.n 8005914 <HAL_DMA_Init+0x174>
  12423. 80058ec: 687b ldr r3, [r7, #4]
  12424. 80058ee: 681b ldr r3, [r3, #0]
  12425. 80058f0: 4a25 ldr r2, [pc, #148] @ (8005988 <HAL_DMA_Init+0x1e8>)
  12426. 80058f2: 4293 cmp r3, r2
  12427. 80058f4: d00e beq.n 8005914 <HAL_DMA_Init+0x174>
  12428. 80058f6: 687b ldr r3, [r7, #4]
  12429. 80058f8: 681b ldr r3, [r3, #0]
  12430. 80058fa: 4a24 ldr r2, [pc, #144] @ (800598c <HAL_DMA_Init+0x1ec>)
  12431. 80058fc: 4293 cmp r3, r2
  12432. 80058fe: d009 beq.n 8005914 <HAL_DMA_Init+0x174>
  12433. 8005900: 687b ldr r3, [r7, #4]
  12434. 8005902: 681b ldr r3, [r3, #0]
  12435. 8005904: 4a22 ldr r2, [pc, #136] @ (8005990 <HAL_DMA_Init+0x1f0>)
  12436. 8005906: 4293 cmp r3, r2
  12437. 8005908: d004 beq.n 8005914 <HAL_DMA_Init+0x174>
  12438. 800590a: 687b ldr r3, [r7, #4]
  12439. 800590c: 681b ldr r3, [r3, #0]
  12440. 800590e: 4a21 ldr r2, [pc, #132] @ (8005994 <HAL_DMA_Init+0x1f4>)
  12441. 8005910: 4293 cmp r3, r2
  12442. 8005912: d108 bne.n 8005926 <HAL_DMA_Init+0x186>
  12443. 8005914: 687b ldr r3, [r7, #4]
  12444. 8005916: 681b ldr r3, [r3, #0]
  12445. 8005918: 681a ldr r2, [r3, #0]
  12446. 800591a: 687b ldr r3, [r7, #4]
  12447. 800591c: 681b ldr r3, [r3, #0]
  12448. 800591e: f022 0201 bic.w r2, r2, #1
  12449. 8005922: 601a str r2, [r3, #0]
  12450. 8005924: e007 b.n 8005936 <HAL_DMA_Init+0x196>
  12451. 8005926: 687b ldr r3, [r7, #4]
  12452. 8005928: 681b ldr r3, [r3, #0]
  12453. 800592a: 681a ldr r2, [r3, #0]
  12454. 800592c: 687b ldr r3, [r7, #4]
  12455. 800592e: 681b ldr r3, [r3, #0]
  12456. 8005930: f022 0201 bic.w r2, r2, #1
  12457. 8005934: 601a str r2, [r3, #0]
  12458. /* Check if the DMA Stream is effectively disabled */
  12459. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  12460. 8005936: e02f b.n 8005998 <HAL_DMA_Init+0x1f8>
  12461. {
  12462. /* Check for the Timeout */
  12463. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  12464. 8005938: f7ff fb84 bl 8005044 <HAL_GetTick>
  12465. 800593c: 4602 mov r2, r0
  12466. 800593e: 693b ldr r3, [r7, #16]
  12467. 8005940: 1ad3 subs r3, r2, r3
  12468. 8005942: 2b05 cmp r3, #5
  12469. 8005944: d928 bls.n 8005998 <HAL_DMA_Init+0x1f8>
  12470. {
  12471. /* Update error code */
  12472. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  12473. 8005946: 687b ldr r3, [r7, #4]
  12474. 8005948: 2220 movs r2, #32
  12475. 800594a: 655a str r2, [r3, #84] @ 0x54
  12476. /* Change the DMA state */
  12477. hdma->State = HAL_DMA_STATE_ERROR;
  12478. 800594c: 687b ldr r3, [r7, #4]
  12479. 800594e: 2203 movs r2, #3
  12480. 8005950: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12481. return HAL_ERROR;
  12482. 8005954: 2301 movs r3, #1
  12483. 8005956: e246 b.n 8005de6 <HAL_DMA_Init+0x646>
  12484. 8005958: 40020010 .word 0x40020010
  12485. 800595c: 40020028 .word 0x40020028
  12486. 8005960: 40020040 .word 0x40020040
  12487. 8005964: 40020058 .word 0x40020058
  12488. 8005968: 40020070 .word 0x40020070
  12489. 800596c: 40020088 .word 0x40020088
  12490. 8005970: 400200a0 .word 0x400200a0
  12491. 8005974: 400200b8 .word 0x400200b8
  12492. 8005978: 40020410 .word 0x40020410
  12493. 800597c: 40020428 .word 0x40020428
  12494. 8005980: 40020440 .word 0x40020440
  12495. 8005984: 40020458 .word 0x40020458
  12496. 8005988: 40020470 .word 0x40020470
  12497. 800598c: 40020488 .word 0x40020488
  12498. 8005990: 400204a0 .word 0x400204a0
  12499. 8005994: 400204b8 .word 0x400204b8
  12500. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  12501. 8005998: 687b ldr r3, [r7, #4]
  12502. 800599a: 681b ldr r3, [r3, #0]
  12503. 800599c: 681b ldr r3, [r3, #0]
  12504. 800599e: f003 0301 and.w r3, r3, #1
  12505. 80059a2: 2b00 cmp r3, #0
  12506. 80059a4: d1c8 bne.n 8005938 <HAL_DMA_Init+0x198>
  12507. }
  12508. }
  12509. /* Get the CR register value */
  12510. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  12511. 80059a6: 687b ldr r3, [r7, #4]
  12512. 80059a8: 681b ldr r3, [r3, #0]
  12513. 80059aa: 681b ldr r3, [r3, #0]
  12514. 80059ac: 617b str r3, [r7, #20]
  12515. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  12516. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  12517. 80059ae: 697a ldr r2, [r7, #20]
  12518. 80059b0: 4b83 ldr r3, [pc, #524] @ (8005bc0 <HAL_DMA_Init+0x420>)
  12519. 80059b2: 4013 ands r3, r2
  12520. 80059b4: 617b str r3, [r7, #20]
  12521. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  12522. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  12523. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  12524. /* Prepare the DMA Stream configuration */
  12525. registerValue |= hdma->Init.Direction |
  12526. 80059b6: 687b ldr r3, [r7, #4]
  12527. 80059b8: 689a ldr r2, [r3, #8]
  12528. hdma->Init.PeriphInc | hdma->Init.MemInc |
  12529. 80059ba: 687b ldr r3, [r7, #4]
  12530. 80059bc: 68db ldr r3, [r3, #12]
  12531. registerValue |= hdma->Init.Direction |
  12532. 80059be: 431a orrs r2, r3
  12533. hdma->Init.PeriphInc | hdma->Init.MemInc |
  12534. 80059c0: 687b ldr r3, [r7, #4]
  12535. 80059c2: 691b ldr r3, [r3, #16]
  12536. 80059c4: 431a orrs r2, r3
  12537. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  12538. 80059c6: 687b ldr r3, [r7, #4]
  12539. 80059c8: 695b ldr r3, [r3, #20]
  12540. hdma->Init.PeriphInc | hdma->Init.MemInc |
  12541. 80059ca: 431a orrs r2, r3
  12542. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  12543. 80059cc: 687b ldr r3, [r7, #4]
  12544. 80059ce: 699b ldr r3, [r3, #24]
  12545. 80059d0: 431a orrs r2, r3
  12546. hdma->Init.Mode | hdma->Init.Priority;
  12547. 80059d2: 687b ldr r3, [r7, #4]
  12548. 80059d4: 69db ldr r3, [r3, #28]
  12549. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  12550. 80059d6: 431a orrs r2, r3
  12551. hdma->Init.Mode | hdma->Init.Priority;
  12552. 80059d8: 687b ldr r3, [r7, #4]
  12553. 80059da: 6a1b ldr r3, [r3, #32]
  12554. 80059dc: 4313 orrs r3, r2
  12555. registerValue |= hdma->Init.Direction |
  12556. 80059de: 697a ldr r2, [r7, #20]
  12557. 80059e0: 4313 orrs r3, r2
  12558. 80059e2: 617b str r3, [r7, #20]
  12559. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  12560. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  12561. 80059e4: 687b ldr r3, [r7, #4]
  12562. 80059e6: 6a5b ldr r3, [r3, #36] @ 0x24
  12563. 80059e8: 2b04 cmp r3, #4
  12564. 80059ea: d107 bne.n 80059fc <HAL_DMA_Init+0x25c>
  12565. {
  12566. /* Get memory burst and peripheral burst */
  12567. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  12568. 80059ec: 687b ldr r3, [r7, #4]
  12569. 80059ee: 6ada ldr r2, [r3, #44] @ 0x2c
  12570. 80059f0: 687b ldr r3, [r7, #4]
  12571. 80059f2: 6b1b ldr r3, [r3, #48] @ 0x30
  12572. 80059f4: 4313 orrs r3, r2
  12573. 80059f6: 697a ldr r2, [r7, #20]
  12574. 80059f8: 4313 orrs r3, r2
  12575. 80059fa: 617b str r3, [r7, #20]
  12576. }
  12577. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  12578. lock when transferring data to/from USART/UART */
  12579. #if (STM32H7_DEV_ID == 0x450UL)
  12580. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  12581. 80059fc: 4b71 ldr r3, [pc, #452] @ (8005bc4 <HAL_DMA_Init+0x424>)
  12582. 80059fe: 681a ldr r2, [r3, #0]
  12583. 8005a00: 4b71 ldr r3, [pc, #452] @ (8005bc8 <HAL_DMA_Init+0x428>)
  12584. 8005a02: 4013 ands r3, r2
  12585. 8005a04: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  12586. 8005a08: d328 bcc.n 8005a5c <HAL_DMA_Init+0x2bc>
  12587. {
  12588. #endif /* STM32H7_DEV_ID == 0x450UL */
  12589. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  12590. 8005a0a: 687b ldr r3, [r7, #4]
  12591. 8005a0c: 685b ldr r3, [r3, #4]
  12592. 8005a0e: 2b28 cmp r3, #40 @ 0x28
  12593. 8005a10: d903 bls.n 8005a1a <HAL_DMA_Init+0x27a>
  12594. 8005a12: 687b ldr r3, [r7, #4]
  12595. 8005a14: 685b ldr r3, [r3, #4]
  12596. 8005a16: 2b2e cmp r3, #46 @ 0x2e
  12597. 8005a18: d917 bls.n 8005a4a <HAL_DMA_Init+0x2aa>
  12598. 8005a1a: 687b ldr r3, [r7, #4]
  12599. 8005a1c: 685b ldr r3, [r3, #4]
  12600. 8005a1e: 2b3e cmp r3, #62 @ 0x3e
  12601. 8005a20: d903 bls.n 8005a2a <HAL_DMA_Init+0x28a>
  12602. 8005a22: 687b ldr r3, [r7, #4]
  12603. 8005a24: 685b ldr r3, [r3, #4]
  12604. 8005a26: 2b42 cmp r3, #66 @ 0x42
  12605. 8005a28: d90f bls.n 8005a4a <HAL_DMA_Init+0x2aa>
  12606. 8005a2a: 687b ldr r3, [r7, #4]
  12607. 8005a2c: 685b ldr r3, [r3, #4]
  12608. 8005a2e: 2b46 cmp r3, #70 @ 0x46
  12609. 8005a30: d903 bls.n 8005a3a <HAL_DMA_Init+0x29a>
  12610. 8005a32: 687b ldr r3, [r7, #4]
  12611. 8005a34: 685b ldr r3, [r3, #4]
  12612. 8005a36: 2b48 cmp r3, #72 @ 0x48
  12613. 8005a38: d907 bls.n 8005a4a <HAL_DMA_Init+0x2aa>
  12614. 8005a3a: 687b ldr r3, [r7, #4]
  12615. 8005a3c: 685b ldr r3, [r3, #4]
  12616. 8005a3e: 2b4e cmp r3, #78 @ 0x4e
  12617. 8005a40: d905 bls.n 8005a4e <HAL_DMA_Init+0x2ae>
  12618. 8005a42: 687b ldr r3, [r7, #4]
  12619. 8005a44: 685b ldr r3, [r3, #4]
  12620. 8005a46: 2b52 cmp r3, #82 @ 0x52
  12621. 8005a48: d801 bhi.n 8005a4e <HAL_DMA_Init+0x2ae>
  12622. 8005a4a: 2301 movs r3, #1
  12623. 8005a4c: e000 b.n 8005a50 <HAL_DMA_Init+0x2b0>
  12624. 8005a4e: 2300 movs r3, #0
  12625. 8005a50: 2b00 cmp r3, #0
  12626. 8005a52: d003 beq.n 8005a5c <HAL_DMA_Init+0x2bc>
  12627. {
  12628. registerValue |= DMA_SxCR_TRBUFF;
  12629. 8005a54: 697b ldr r3, [r7, #20]
  12630. 8005a56: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  12631. 8005a5a: 617b str r3, [r7, #20]
  12632. #if (STM32H7_DEV_ID == 0x450UL)
  12633. }
  12634. #endif /* STM32H7_DEV_ID == 0x450UL */
  12635. /* Write to DMA Stream CR register */
  12636. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  12637. 8005a5c: 687b ldr r3, [r7, #4]
  12638. 8005a5e: 681b ldr r3, [r3, #0]
  12639. 8005a60: 697a ldr r2, [r7, #20]
  12640. 8005a62: 601a str r2, [r3, #0]
  12641. /* Get the FCR register value */
  12642. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  12643. 8005a64: 687b ldr r3, [r7, #4]
  12644. 8005a66: 681b ldr r3, [r3, #0]
  12645. 8005a68: 695b ldr r3, [r3, #20]
  12646. 8005a6a: 617b str r3, [r7, #20]
  12647. /* Clear Direct mode and FIFO threshold bits */
  12648. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  12649. 8005a6c: 697b ldr r3, [r7, #20]
  12650. 8005a6e: f023 0307 bic.w r3, r3, #7
  12651. 8005a72: 617b str r3, [r7, #20]
  12652. /* Prepare the DMA Stream FIFO configuration */
  12653. registerValue |= hdma->Init.FIFOMode;
  12654. 8005a74: 687b ldr r3, [r7, #4]
  12655. 8005a76: 6a5b ldr r3, [r3, #36] @ 0x24
  12656. 8005a78: 697a ldr r2, [r7, #20]
  12657. 8005a7a: 4313 orrs r3, r2
  12658. 8005a7c: 617b str r3, [r7, #20]
  12659. /* the FIFO threshold is not used when the FIFO mode is disabled */
  12660. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  12661. 8005a7e: 687b ldr r3, [r7, #4]
  12662. 8005a80: 6a5b ldr r3, [r3, #36] @ 0x24
  12663. 8005a82: 2b04 cmp r3, #4
  12664. 8005a84: d117 bne.n 8005ab6 <HAL_DMA_Init+0x316>
  12665. {
  12666. /* Get the FIFO threshold */
  12667. registerValue |= hdma->Init.FIFOThreshold;
  12668. 8005a86: 687b ldr r3, [r7, #4]
  12669. 8005a88: 6a9b ldr r3, [r3, #40] @ 0x28
  12670. 8005a8a: 697a ldr r2, [r7, #20]
  12671. 8005a8c: 4313 orrs r3, r2
  12672. 8005a8e: 617b str r3, [r7, #20]
  12673. /* Check compatibility between FIFO threshold level and size of the memory burst */
  12674. /* for INCR4, INCR8, INCR16 */
  12675. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  12676. 8005a90: 687b ldr r3, [r7, #4]
  12677. 8005a92: 6adb ldr r3, [r3, #44] @ 0x2c
  12678. 8005a94: 2b00 cmp r3, #0
  12679. 8005a96: d00e beq.n 8005ab6 <HAL_DMA_Init+0x316>
  12680. {
  12681. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  12682. 8005a98: 6878 ldr r0, [r7, #4]
  12683. 8005a9a: f001 ff1d bl 80078d8 <DMA_CheckFifoParam>
  12684. 8005a9e: 4603 mov r3, r0
  12685. 8005aa0: 2b00 cmp r3, #0
  12686. 8005aa2: d008 beq.n 8005ab6 <HAL_DMA_Init+0x316>
  12687. {
  12688. /* Update error code */
  12689. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  12690. 8005aa4: 687b ldr r3, [r7, #4]
  12691. 8005aa6: 2240 movs r2, #64 @ 0x40
  12692. 8005aa8: 655a str r2, [r3, #84] @ 0x54
  12693. /* Change the DMA state */
  12694. hdma->State = HAL_DMA_STATE_READY;
  12695. 8005aaa: 687b ldr r3, [r7, #4]
  12696. 8005aac: 2201 movs r2, #1
  12697. 8005aae: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12698. return HAL_ERROR;
  12699. 8005ab2: 2301 movs r3, #1
  12700. 8005ab4: e197 b.n 8005de6 <HAL_DMA_Init+0x646>
  12701. }
  12702. }
  12703. }
  12704. /* Write to DMA Stream FCR */
  12705. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  12706. 8005ab6: 687b ldr r3, [r7, #4]
  12707. 8005ab8: 681b ldr r3, [r3, #0]
  12708. 8005aba: 697a ldr r2, [r7, #20]
  12709. 8005abc: 615a str r2, [r3, #20]
  12710. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  12711. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  12712. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  12713. 8005abe: 6878 ldr r0, [r7, #4]
  12714. 8005ac0: f001 fe58 bl 8007774 <DMA_CalcBaseAndBitshift>
  12715. 8005ac4: 4603 mov r3, r0
  12716. 8005ac6: 60bb str r3, [r7, #8]
  12717. /* Clear all interrupt flags */
  12718. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  12719. 8005ac8: 687b ldr r3, [r7, #4]
  12720. 8005aca: 6ddb ldr r3, [r3, #92] @ 0x5c
  12721. 8005acc: f003 031f and.w r3, r3, #31
  12722. 8005ad0: 223f movs r2, #63 @ 0x3f
  12723. 8005ad2: 409a lsls r2, r3
  12724. 8005ad4: 68bb ldr r3, [r7, #8]
  12725. 8005ad6: 609a str r2, [r3, #8]
  12726. 8005ad8: e0cd b.n 8005c76 <HAL_DMA_Init+0x4d6>
  12727. }
  12728. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  12729. 8005ada: 687b ldr r3, [r7, #4]
  12730. 8005adc: 681b ldr r3, [r3, #0]
  12731. 8005ade: 4a3b ldr r2, [pc, #236] @ (8005bcc <HAL_DMA_Init+0x42c>)
  12732. 8005ae0: 4293 cmp r3, r2
  12733. 8005ae2: d022 beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12734. 8005ae4: 687b ldr r3, [r7, #4]
  12735. 8005ae6: 681b ldr r3, [r3, #0]
  12736. 8005ae8: 4a39 ldr r2, [pc, #228] @ (8005bd0 <HAL_DMA_Init+0x430>)
  12737. 8005aea: 4293 cmp r3, r2
  12738. 8005aec: d01d beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12739. 8005aee: 687b ldr r3, [r7, #4]
  12740. 8005af0: 681b ldr r3, [r3, #0]
  12741. 8005af2: 4a38 ldr r2, [pc, #224] @ (8005bd4 <HAL_DMA_Init+0x434>)
  12742. 8005af4: 4293 cmp r3, r2
  12743. 8005af6: d018 beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12744. 8005af8: 687b ldr r3, [r7, #4]
  12745. 8005afa: 681b ldr r3, [r3, #0]
  12746. 8005afc: 4a36 ldr r2, [pc, #216] @ (8005bd8 <HAL_DMA_Init+0x438>)
  12747. 8005afe: 4293 cmp r3, r2
  12748. 8005b00: d013 beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12749. 8005b02: 687b ldr r3, [r7, #4]
  12750. 8005b04: 681b ldr r3, [r3, #0]
  12751. 8005b06: 4a35 ldr r2, [pc, #212] @ (8005bdc <HAL_DMA_Init+0x43c>)
  12752. 8005b08: 4293 cmp r3, r2
  12753. 8005b0a: d00e beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12754. 8005b0c: 687b ldr r3, [r7, #4]
  12755. 8005b0e: 681b ldr r3, [r3, #0]
  12756. 8005b10: 4a33 ldr r2, [pc, #204] @ (8005be0 <HAL_DMA_Init+0x440>)
  12757. 8005b12: 4293 cmp r3, r2
  12758. 8005b14: d009 beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12759. 8005b16: 687b ldr r3, [r7, #4]
  12760. 8005b18: 681b ldr r3, [r3, #0]
  12761. 8005b1a: 4a32 ldr r2, [pc, #200] @ (8005be4 <HAL_DMA_Init+0x444>)
  12762. 8005b1c: 4293 cmp r3, r2
  12763. 8005b1e: d004 beq.n 8005b2a <HAL_DMA_Init+0x38a>
  12764. 8005b20: 687b ldr r3, [r7, #4]
  12765. 8005b22: 681b ldr r3, [r3, #0]
  12766. 8005b24: 4a30 ldr r2, [pc, #192] @ (8005be8 <HAL_DMA_Init+0x448>)
  12767. 8005b26: 4293 cmp r3, r2
  12768. 8005b28: d101 bne.n 8005b2e <HAL_DMA_Init+0x38e>
  12769. 8005b2a: 2301 movs r3, #1
  12770. 8005b2c: e000 b.n 8005b30 <HAL_DMA_Init+0x390>
  12771. 8005b2e: 2300 movs r3, #0
  12772. 8005b30: 2b00 cmp r3, #0
  12773. 8005b32: f000 8097 beq.w 8005c64 <HAL_DMA_Init+0x4c4>
  12774. {
  12775. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  12776. 8005b36: 687b ldr r3, [r7, #4]
  12777. 8005b38: 681b ldr r3, [r3, #0]
  12778. 8005b3a: 4a24 ldr r2, [pc, #144] @ (8005bcc <HAL_DMA_Init+0x42c>)
  12779. 8005b3c: 4293 cmp r3, r2
  12780. 8005b3e: d021 beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12781. 8005b40: 687b ldr r3, [r7, #4]
  12782. 8005b42: 681b ldr r3, [r3, #0]
  12783. 8005b44: 4a22 ldr r2, [pc, #136] @ (8005bd0 <HAL_DMA_Init+0x430>)
  12784. 8005b46: 4293 cmp r3, r2
  12785. 8005b48: d01c beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12786. 8005b4a: 687b ldr r3, [r7, #4]
  12787. 8005b4c: 681b ldr r3, [r3, #0]
  12788. 8005b4e: 4a21 ldr r2, [pc, #132] @ (8005bd4 <HAL_DMA_Init+0x434>)
  12789. 8005b50: 4293 cmp r3, r2
  12790. 8005b52: d017 beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12791. 8005b54: 687b ldr r3, [r7, #4]
  12792. 8005b56: 681b ldr r3, [r3, #0]
  12793. 8005b58: 4a1f ldr r2, [pc, #124] @ (8005bd8 <HAL_DMA_Init+0x438>)
  12794. 8005b5a: 4293 cmp r3, r2
  12795. 8005b5c: d012 beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12796. 8005b5e: 687b ldr r3, [r7, #4]
  12797. 8005b60: 681b ldr r3, [r3, #0]
  12798. 8005b62: 4a1e ldr r2, [pc, #120] @ (8005bdc <HAL_DMA_Init+0x43c>)
  12799. 8005b64: 4293 cmp r3, r2
  12800. 8005b66: d00d beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12801. 8005b68: 687b ldr r3, [r7, #4]
  12802. 8005b6a: 681b ldr r3, [r3, #0]
  12803. 8005b6c: 4a1c ldr r2, [pc, #112] @ (8005be0 <HAL_DMA_Init+0x440>)
  12804. 8005b6e: 4293 cmp r3, r2
  12805. 8005b70: d008 beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12806. 8005b72: 687b ldr r3, [r7, #4]
  12807. 8005b74: 681b ldr r3, [r3, #0]
  12808. 8005b76: 4a1b ldr r2, [pc, #108] @ (8005be4 <HAL_DMA_Init+0x444>)
  12809. 8005b78: 4293 cmp r3, r2
  12810. 8005b7a: d003 beq.n 8005b84 <HAL_DMA_Init+0x3e4>
  12811. 8005b7c: 687b ldr r3, [r7, #4]
  12812. 8005b7e: 681b ldr r3, [r3, #0]
  12813. 8005b80: 4a19 ldr r2, [pc, #100] @ (8005be8 <HAL_DMA_Init+0x448>)
  12814. 8005b82: 4293 cmp r3, r2
  12815. /* Check the request parameter */
  12816. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  12817. }
  12818. /* Change DMA peripheral state */
  12819. hdma->State = HAL_DMA_STATE_BUSY;
  12820. 8005b84: 687b ldr r3, [r7, #4]
  12821. 8005b86: 2202 movs r2, #2
  12822. 8005b88: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12823. /* Allocate lock resource */
  12824. __HAL_UNLOCK(hdma);
  12825. 8005b8c: 687b ldr r3, [r7, #4]
  12826. 8005b8e: 2200 movs r2, #0
  12827. 8005b90: f883 2034 strb.w r2, [r3, #52] @ 0x34
  12828. /* Get the CR register value */
  12829. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  12830. 8005b94: 687b ldr r3, [r7, #4]
  12831. 8005b96: 681b ldr r3, [r3, #0]
  12832. 8005b98: 681b ldr r3, [r3, #0]
  12833. 8005b9a: 617b str r3, [r7, #20]
  12834. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  12835. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  12836. 8005b9c: 697a ldr r2, [r7, #20]
  12837. 8005b9e: 4b13 ldr r3, [pc, #76] @ (8005bec <HAL_DMA_Init+0x44c>)
  12838. 8005ba0: 4013 ands r3, r2
  12839. 8005ba2: 617b str r3, [r7, #20]
  12840. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  12841. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  12842. BDMA_CCR_CT));
  12843. /* Prepare the DMA Channel configuration */
  12844. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  12845. 8005ba4: 687b ldr r3, [r7, #4]
  12846. 8005ba6: 689b ldr r3, [r3, #8]
  12847. 8005ba8: 2b40 cmp r3, #64 @ 0x40
  12848. 8005baa: d021 beq.n 8005bf0 <HAL_DMA_Init+0x450>
  12849. 8005bac: 687b ldr r3, [r7, #4]
  12850. 8005bae: 689b ldr r3, [r3, #8]
  12851. 8005bb0: 2b80 cmp r3, #128 @ 0x80
  12852. 8005bb2: d102 bne.n 8005bba <HAL_DMA_Init+0x41a>
  12853. 8005bb4: f44f 4380 mov.w r3, #16384 @ 0x4000
  12854. 8005bb8: e01b b.n 8005bf2 <HAL_DMA_Init+0x452>
  12855. 8005bba: 2300 movs r3, #0
  12856. 8005bbc: e019 b.n 8005bf2 <HAL_DMA_Init+0x452>
  12857. 8005bbe: bf00 nop
  12858. 8005bc0: fe10803f .word 0xfe10803f
  12859. 8005bc4: 5c001000 .word 0x5c001000
  12860. 8005bc8: ffff0000 .word 0xffff0000
  12861. 8005bcc: 58025408 .word 0x58025408
  12862. 8005bd0: 5802541c .word 0x5802541c
  12863. 8005bd4: 58025430 .word 0x58025430
  12864. 8005bd8: 58025444 .word 0x58025444
  12865. 8005bdc: 58025458 .word 0x58025458
  12866. 8005be0: 5802546c .word 0x5802546c
  12867. 8005be4: 58025480 .word 0x58025480
  12868. 8005be8: 58025494 .word 0x58025494
  12869. 8005bec: fffe000f .word 0xfffe000f
  12870. 8005bf0: 2310 movs r3, #16
  12871. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  12872. 8005bf2: 687a ldr r2, [r7, #4]
  12873. 8005bf4: 68d2 ldr r2, [r2, #12]
  12874. 8005bf6: 08d2 lsrs r2, r2, #3
  12875. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  12876. 8005bf8: 431a orrs r2, r3
  12877. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  12878. 8005bfa: 687b ldr r3, [r7, #4]
  12879. 8005bfc: 691b ldr r3, [r3, #16]
  12880. 8005bfe: 08db lsrs r3, r3, #3
  12881. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  12882. 8005c00: 431a orrs r2, r3
  12883. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  12884. 8005c02: 687b ldr r3, [r7, #4]
  12885. 8005c04: 695b ldr r3, [r3, #20]
  12886. 8005c06: 08db lsrs r3, r3, #3
  12887. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  12888. 8005c08: 431a orrs r2, r3
  12889. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  12890. 8005c0a: 687b ldr r3, [r7, #4]
  12891. 8005c0c: 699b ldr r3, [r3, #24]
  12892. 8005c0e: 08db lsrs r3, r3, #3
  12893. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  12894. 8005c10: 431a orrs r2, r3
  12895. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  12896. 8005c12: 687b ldr r3, [r7, #4]
  12897. 8005c14: 69db ldr r3, [r3, #28]
  12898. 8005c16: 08db lsrs r3, r3, #3
  12899. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  12900. 8005c18: 431a orrs r2, r3
  12901. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  12902. 8005c1a: 687b ldr r3, [r7, #4]
  12903. 8005c1c: 6a1b ldr r3, [r3, #32]
  12904. 8005c1e: 091b lsrs r3, r3, #4
  12905. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  12906. 8005c20: 4313 orrs r3, r2
  12907. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  12908. 8005c22: 697a ldr r2, [r7, #20]
  12909. 8005c24: 4313 orrs r3, r2
  12910. 8005c26: 617b str r3, [r7, #20]
  12911. /* Write to DMA Channel CR register */
  12912. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  12913. 8005c28: 687b ldr r3, [r7, #4]
  12914. 8005c2a: 681b ldr r3, [r3, #0]
  12915. 8005c2c: 697a ldr r2, [r7, #20]
  12916. 8005c2e: 601a str r2, [r3, #0]
  12917. /* calculation of the channel index */
  12918. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  12919. 8005c30: 687b ldr r3, [r7, #4]
  12920. 8005c32: 681b ldr r3, [r3, #0]
  12921. 8005c34: 461a mov r2, r3
  12922. 8005c36: 4b6e ldr r3, [pc, #440] @ (8005df0 <HAL_DMA_Init+0x650>)
  12923. 8005c38: 4413 add r3, r2
  12924. 8005c3a: 4a6e ldr r2, [pc, #440] @ (8005df4 <HAL_DMA_Init+0x654>)
  12925. 8005c3c: fba2 2303 umull r2, r3, r2, r3
  12926. 8005c40: 091b lsrs r3, r3, #4
  12927. 8005c42: 009a lsls r2, r3, #2
  12928. 8005c44: 687b ldr r3, [r7, #4]
  12929. 8005c46: 65da str r2, [r3, #92] @ 0x5c
  12930. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  12931. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  12932. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  12933. 8005c48: 6878 ldr r0, [r7, #4]
  12934. 8005c4a: f001 fd93 bl 8007774 <DMA_CalcBaseAndBitshift>
  12935. 8005c4e: 4603 mov r3, r0
  12936. 8005c50: 60fb str r3, [r7, #12]
  12937. /* Clear all interrupt flags */
  12938. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  12939. 8005c52: 687b ldr r3, [r7, #4]
  12940. 8005c54: 6ddb ldr r3, [r3, #92] @ 0x5c
  12941. 8005c56: f003 031f and.w r3, r3, #31
  12942. 8005c5a: 2201 movs r2, #1
  12943. 8005c5c: 409a lsls r2, r3
  12944. 8005c5e: 68fb ldr r3, [r7, #12]
  12945. 8005c60: 605a str r2, [r3, #4]
  12946. 8005c62: e008 b.n 8005c76 <HAL_DMA_Init+0x4d6>
  12947. }
  12948. else
  12949. {
  12950. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  12951. 8005c64: 687b ldr r3, [r7, #4]
  12952. 8005c66: 2240 movs r2, #64 @ 0x40
  12953. 8005c68: 655a str r2, [r3, #84] @ 0x54
  12954. hdma->State = HAL_DMA_STATE_ERROR;
  12955. 8005c6a: 687b ldr r3, [r7, #4]
  12956. 8005c6c: 2203 movs r2, #3
  12957. 8005c6e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12958. return HAL_ERROR;
  12959. 8005c72: 2301 movs r3, #1
  12960. 8005c74: e0b7 b.n 8005de6 <HAL_DMA_Init+0x646>
  12961. }
  12962. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  12963. 8005c76: 687b ldr r3, [r7, #4]
  12964. 8005c78: 681b ldr r3, [r3, #0]
  12965. 8005c7a: 4a5f ldr r2, [pc, #380] @ (8005df8 <HAL_DMA_Init+0x658>)
  12966. 8005c7c: 4293 cmp r3, r2
  12967. 8005c7e: d072 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12968. 8005c80: 687b ldr r3, [r7, #4]
  12969. 8005c82: 681b ldr r3, [r3, #0]
  12970. 8005c84: 4a5d ldr r2, [pc, #372] @ (8005dfc <HAL_DMA_Init+0x65c>)
  12971. 8005c86: 4293 cmp r3, r2
  12972. 8005c88: d06d beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12973. 8005c8a: 687b ldr r3, [r7, #4]
  12974. 8005c8c: 681b ldr r3, [r3, #0]
  12975. 8005c8e: 4a5c ldr r2, [pc, #368] @ (8005e00 <HAL_DMA_Init+0x660>)
  12976. 8005c90: 4293 cmp r3, r2
  12977. 8005c92: d068 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12978. 8005c94: 687b ldr r3, [r7, #4]
  12979. 8005c96: 681b ldr r3, [r3, #0]
  12980. 8005c98: 4a5a ldr r2, [pc, #360] @ (8005e04 <HAL_DMA_Init+0x664>)
  12981. 8005c9a: 4293 cmp r3, r2
  12982. 8005c9c: d063 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12983. 8005c9e: 687b ldr r3, [r7, #4]
  12984. 8005ca0: 681b ldr r3, [r3, #0]
  12985. 8005ca2: 4a59 ldr r2, [pc, #356] @ (8005e08 <HAL_DMA_Init+0x668>)
  12986. 8005ca4: 4293 cmp r3, r2
  12987. 8005ca6: d05e beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12988. 8005ca8: 687b ldr r3, [r7, #4]
  12989. 8005caa: 681b ldr r3, [r3, #0]
  12990. 8005cac: 4a57 ldr r2, [pc, #348] @ (8005e0c <HAL_DMA_Init+0x66c>)
  12991. 8005cae: 4293 cmp r3, r2
  12992. 8005cb0: d059 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12993. 8005cb2: 687b ldr r3, [r7, #4]
  12994. 8005cb4: 681b ldr r3, [r3, #0]
  12995. 8005cb6: 4a56 ldr r2, [pc, #344] @ (8005e10 <HAL_DMA_Init+0x670>)
  12996. 8005cb8: 4293 cmp r3, r2
  12997. 8005cba: d054 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  12998. 8005cbc: 687b ldr r3, [r7, #4]
  12999. 8005cbe: 681b ldr r3, [r3, #0]
  13000. 8005cc0: 4a54 ldr r2, [pc, #336] @ (8005e14 <HAL_DMA_Init+0x674>)
  13001. 8005cc2: 4293 cmp r3, r2
  13002. 8005cc4: d04f beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13003. 8005cc6: 687b ldr r3, [r7, #4]
  13004. 8005cc8: 681b ldr r3, [r3, #0]
  13005. 8005cca: 4a53 ldr r2, [pc, #332] @ (8005e18 <HAL_DMA_Init+0x678>)
  13006. 8005ccc: 4293 cmp r3, r2
  13007. 8005cce: d04a beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13008. 8005cd0: 687b ldr r3, [r7, #4]
  13009. 8005cd2: 681b ldr r3, [r3, #0]
  13010. 8005cd4: 4a51 ldr r2, [pc, #324] @ (8005e1c <HAL_DMA_Init+0x67c>)
  13011. 8005cd6: 4293 cmp r3, r2
  13012. 8005cd8: d045 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13013. 8005cda: 687b ldr r3, [r7, #4]
  13014. 8005cdc: 681b ldr r3, [r3, #0]
  13015. 8005cde: 4a50 ldr r2, [pc, #320] @ (8005e20 <HAL_DMA_Init+0x680>)
  13016. 8005ce0: 4293 cmp r3, r2
  13017. 8005ce2: d040 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13018. 8005ce4: 687b ldr r3, [r7, #4]
  13019. 8005ce6: 681b ldr r3, [r3, #0]
  13020. 8005ce8: 4a4e ldr r2, [pc, #312] @ (8005e24 <HAL_DMA_Init+0x684>)
  13021. 8005cea: 4293 cmp r3, r2
  13022. 8005cec: d03b beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13023. 8005cee: 687b ldr r3, [r7, #4]
  13024. 8005cf0: 681b ldr r3, [r3, #0]
  13025. 8005cf2: 4a4d ldr r2, [pc, #308] @ (8005e28 <HAL_DMA_Init+0x688>)
  13026. 8005cf4: 4293 cmp r3, r2
  13027. 8005cf6: d036 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13028. 8005cf8: 687b ldr r3, [r7, #4]
  13029. 8005cfa: 681b ldr r3, [r3, #0]
  13030. 8005cfc: 4a4b ldr r2, [pc, #300] @ (8005e2c <HAL_DMA_Init+0x68c>)
  13031. 8005cfe: 4293 cmp r3, r2
  13032. 8005d00: d031 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13033. 8005d02: 687b ldr r3, [r7, #4]
  13034. 8005d04: 681b ldr r3, [r3, #0]
  13035. 8005d06: 4a4a ldr r2, [pc, #296] @ (8005e30 <HAL_DMA_Init+0x690>)
  13036. 8005d08: 4293 cmp r3, r2
  13037. 8005d0a: d02c beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13038. 8005d0c: 687b ldr r3, [r7, #4]
  13039. 8005d0e: 681b ldr r3, [r3, #0]
  13040. 8005d10: 4a48 ldr r2, [pc, #288] @ (8005e34 <HAL_DMA_Init+0x694>)
  13041. 8005d12: 4293 cmp r3, r2
  13042. 8005d14: d027 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13043. 8005d16: 687b ldr r3, [r7, #4]
  13044. 8005d18: 681b ldr r3, [r3, #0]
  13045. 8005d1a: 4a47 ldr r2, [pc, #284] @ (8005e38 <HAL_DMA_Init+0x698>)
  13046. 8005d1c: 4293 cmp r3, r2
  13047. 8005d1e: d022 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13048. 8005d20: 687b ldr r3, [r7, #4]
  13049. 8005d22: 681b ldr r3, [r3, #0]
  13050. 8005d24: 4a45 ldr r2, [pc, #276] @ (8005e3c <HAL_DMA_Init+0x69c>)
  13051. 8005d26: 4293 cmp r3, r2
  13052. 8005d28: d01d beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13053. 8005d2a: 687b ldr r3, [r7, #4]
  13054. 8005d2c: 681b ldr r3, [r3, #0]
  13055. 8005d2e: 4a44 ldr r2, [pc, #272] @ (8005e40 <HAL_DMA_Init+0x6a0>)
  13056. 8005d30: 4293 cmp r3, r2
  13057. 8005d32: d018 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13058. 8005d34: 687b ldr r3, [r7, #4]
  13059. 8005d36: 681b ldr r3, [r3, #0]
  13060. 8005d38: 4a42 ldr r2, [pc, #264] @ (8005e44 <HAL_DMA_Init+0x6a4>)
  13061. 8005d3a: 4293 cmp r3, r2
  13062. 8005d3c: d013 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13063. 8005d3e: 687b ldr r3, [r7, #4]
  13064. 8005d40: 681b ldr r3, [r3, #0]
  13065. 8005d42: 4a41 ldr r2, [pc, #260] @ (8005e48 <HAL_DMA_Init+0x6a8>)
  13066. 8005d44: 4293 cmp r3, r2
  13067. 8005d46: d00e beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13068. 8005d48: 687b ldr r3, [r7, #4]
  13069. 8005d4a: 681b ldr r3, [r3, #0]
  13070. 8005d4c: 4a3f ldr r2, [pc, #252] @ (8005e4c <HAL_DMA_Init+0x6ac>)
  13071. 8005d4e: 4293 cmp r3, r2
  13072. 8005d50: d009 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13073. 8005d52: 687b ldr r3, [r7, #4]
  13074. 8005d54: 681b ldr r3, [r3, #0]
  13075. 8005d56: 4a3e ldr r2, [pc, #248] @ (8005e50 <HAL_DMA_Init+0x6b0>)
  13076. 8005d58: 4293 cmp r3, r2
  13077. 8005d5a: d004 beq.n 8005d66 <HAL_DMA_Init+0x5c6>
  13078. 8005d5c: 687b ldr r3, [r7, #4]
  13079. 8005d5e: 681b ldr r3, [r3, #0]
  13080. 8005d60: 4a3c ldr r2, [pc, #240] @ (8005e54 <HAL_DMA_Init+0x6b4>)
  13081. 8005d62: 4293 cmp r3, r2
  13082. 8005d64: d101 bne.n 8005d6a <HAL_DMA_Init+0x5ca>
  13083. 8005d66: 2301 movs r3, #1
  13084. 8005d68: e000 b.n 8005d6c <HAL_DMA_Init+0x5cc>
  13085. 8005d6a: 2300 movs r3, #0
  13086. 8005d6c: 2b00 cmp r3, #0
  13087. 8005d6e: d032 beq.n 8005dd6 <HAL_DMA_Init+0x636>
  13088. {
  13089. /* Initialize parameters for DMAMUX channel :
  13090. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  13091. */
  13092. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  13093. 8005d70: 6878 ldr r0, [r7, #4]
  13094. 8005d72: f001 fe2d bl 80079d0 <DMA_CalcDMAMUXChannelBaseAndMask>
  13095. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  13096. 8005d76: 687b ldr r3, [r7, #4]
  13097. 8005d78: 689b ldr r3, [r3, #8]
  13098. 8005d7a: 2b80 cmp r3, #128 @ 0x80
  13099. 8005d7c: d102 bne.n 8005d84 <HAL_DMA_Init+0x5e4>
  13100. {
  13101. /* if memory to memory force the request to 0*/
  13102. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  13103. 8005d7e: 687b ldr r3, [r7, #4]
  13104. 8005d80: 2200 movs r2, #0
  13105. 8005d82: 605a str r2, [r3, #4]
  13106. }
  13107. /* Set peripheral request to DMAMUX channel */
  13108. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  13109. 8005d84: 687b ldr r3, [r7, #4]
  13110. 8005d86: 685a ldr r2, [r3, #4]
  13111. 8005d88: 687b ldr r3, [r7, #4]
  13112. 8005d8a: 6e1b ldr r3, [r3, #96] @ 0x60
  13113. 8005d8c: b2d2 uxtb r2, r2
  13114. 8005d8e: 601a str r2, [r3, #0]
  13115. /* Clear the DMAMUX synchro overrun flag */
  13116. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  13117. 8005d90: 687b ldr r3, [r7, #4]
  13118. 8005d92: 6e5b ldr r3, [r3, #100] @ 0x64
  13119. 8005d94: 687a ldr r2, [r7, #4]
  13120. 8005d96: 6e92 ldr r2, [r2, #104] @ 0x68
  13121. 8005d98: 605a str r2, [r3, #4]
  13122. /* Initialize parameters for DMAMUX request generator :
  13123. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  13124. */
  13125. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  13126. 8005d9a: 687b ldr r3, [r7, #4]
  13127. 8005d9c: 685b ldr r3, [r3, #4]
  13128. 8005d9e: 2b00 cmp r3, #0
  13129. 8005da0: d010 beq.n 8005dc4 <HAL_DMA_Init+0x624>
  13130. 8005da2: 687b ldr r3, [r7, #4]
  13131. 8005da4: 685b ldr r3, [r3, #4]
  13132. 8005da6: 2b08 cmp r3, #8
  13133. 8005da8: d80c bhi.n 8005dc4 <HAL_DMA_Init+0x624>
  13134. {
  13135. /* Initialize parameters for DMAMUX request generator :
  13136. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  13137. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  13138. 8005daa: 6878 ldr r0, [r7, #4]
  13139. 8005dac: f001 feaa bl 8007b04 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  13140. /* Reset the DMAMUX request generator register */
  13141. hdma->DMAmuxRequestGen->RGCR = 0U;
  13142. 8005db0: 687b ldr r3, [r7, #4]
  13143. 8005db2: 6edb ldr r3, [r3, #108] @ 0x6c
  13144. 8005db4: 2200 movs r2, #0
  13145. 8005db6: 601a str r2, [r3, #0]
  13146. /* Clear the DMAMUX request generator overrun flag */
  13147. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  13148. 8005db8: 687b ldr r3, [r7, #4]
  13149. 8005dba: 6f1b ldr r3, [r3, #112] @ 0x70
  13150. 8005dbc: 687a ldr r2, [r7, #4]
  13151. 8005dbe: 6f52 ldr r2, [r2, #116] @ 0x74
  13152. 8005dc0: 605a str r2, [r3, #4]
  13153. 8005dc2: e008 b.n 8005dd6 <HAL_DMA_Init+0x636>
  13154. }
  13155. else
  13156. {
  13157. hdma->DMAmuxRequestGen = 0U;
  13158. 8005dc4: 687b ldr r3, [r7, #4]
  13159. 8005dc6: 2200 movs r2, #0
  13160. 8005dc8: 66da str r2, [r3, #108] @ 0x6c
  13161. hdma->DMAmuxRequestGenStatus = 0U;
  13162. 8005dca: 687b ldr r3, [r7, #4]
  13163. 8005dcc: 2200 movs r2, #0
  13164. 8005dce: 671a str r2, [r3, #112] @ 0x70
  13165. hdma->DMAmuxRequestGenStatusMask = 0U;
  13166. 8005dd0: 687b ldr r3, [r7, #4]
  13167. 8005dd2: 2200 movs r2, #0
  13168. 8005dd4: 675a str r2, [r3, #116] @ 0x74
  13169. }
  13170. }
  13171. /* Initialize the error code */
  13172. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  13173. 8005dd6: 687b ldr r3, [r7, #4]
  13174. 8005dd8: 2200 movs r2, #0
  13175. 8005dda: 655a str r2, [r3, #84] @ 0x54
  13176. /* Initialize the DMA state */
  13177. hdma->State = HAL_DMA_STATE_READY;
  13178. 8005ddc: 687b ldr r3, [r7, #4]
  13179. 8005dde: 2201 movs r2, #1
  13180. 8005de0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13181. return HAL_OK;
  13182. 8005de4: 2300 movs r3, #0
  13183. }
  13184. 8005de6: 4618 mov r0, r3
  13185. 8005de8: 3718 adds r7, #24
  13186. 8005dea: 46bd mov sp, r7
  13187. 8005dec: bd80 pop {r7, pc}
  13188. 8005dee: bf00 nop
  13189. 8005df0: a7fdabf8 .word 0xa7fdabf8
  13190. 8005df4: cccccccd .word 0xcccccccd
  13191. 8005df8: 40020010 .word 0x40020010
  13192. 8005dfc: 40020028 .word 0x40020028
  13193. 8005e00: 40020040 .word 0x40020040
  13194. 8005e04: 40020058 .word 0x40020058
  13195. 8005e08: 40020070 .word 0x40020070
  13196. 8005e0c: 40020088 .word 0x40020088
  13197. 8005e10: 400200a0 .word 0x400200a0
  13198. 8005e14: 400200b8 .word 0x400200b8
  13199. 8005e18: 40020410 .word 0x40020410
  13200. 8005e1c: 40020428 .word 0x40020428
  13201. 8005e20: 40020440 .word 0x40020440
  13202. 8005e24: 40020458 .word 0x40020458
  13203. 8005e28: 40020470 .word 0x40020470
  13204. 8005e2c: 40020488 .word 0x40020488
  13205. 8005e30: 400204a0 .word 0x400204a0
  13206. 8005e34: 400204b8 .word 0x400204b8
  13207. 8005e38: 58025408 .word 0x58025408
  13208. 8005e3c: 5802541c .word 0x5802541c
  13209. 8005e40: 58025430 .word 0x58025430
  13210. 8005e44: 58025444 .word 0x58025444
  13211. 8005e48: 58025458 .word 0x58025458
  13212. 8005e4c: 5802546c .word 0x5802546c
  13213. 8005e50: 58025480 .word 0x58025480
  13214. 8005e54: 58025494 .word 0x58025494
  13215. 08005e58 <HAL_DMA_Abort>:
  13216. * and the Stream will be effectively disabled only after the transfer of
  13217. * this single data is finished.
  13218. * @retval HAL status
  13219. */
  13220. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  13221. {
  13222. 8005e58: b580 push {r7, lr}
  13223. 8005e5a: b086 sub sp, #24
  13224. 8005e5c: af00 add r7, sp, #0
  13225. 8005e5e: 6078 str r0, [r7, #4]
  13226. /* calculate DMA base and stream number */
  13227. DMA_Base_Registers *regs_dma;
  13228. BDMA_Base_Registers *regs_bdma;
  13229. const __IO uint32_t *enableRegister;
  13230. uint32_t tickstart = HAL_GetTick();
  13231. 8005e60: f7ff f8f0 bl 8005044 <HAL_GetTick>
  13232. 8005e64: 6138 str r0, [r7, #16]
  13233. /* Check the DMA peripheral handle */
  13234. if(hdma == NULL)
  13235. 8005e66: 687b ldr r3, [r7, #4]
  13236. 8005e68: 2b00 cmp r3, #0
  13237. 8005e6a: d101 bne.n 8005e70 <HAL_DMA_Abort+0x18>
  13238. {
  13239. return HAL_ERROR;
  13240. 8005e6c: 2301 movs r3, #1
  13241. 8005e6e: e2dc b.n 800642a <HAL_DMA_Abort+0x5d2>
  13242. }
  13243. /* Check the DMA peripheral state */
  13244. if(hdma->State != HAL_DMA_STATE_BUSY)
  13245. 8005e70: 687b ldr r3, [r7, #4]
  13246. 8005e72: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  13247. 8005e76: b2db uxtb r3, r3
  13248. 8005e78: 2b02 cmp r3, #2
  13249. 8005e7a: d008 beq.n 8005e8e <HAL_DMA_Abort+0x36>
  13250. {
  13251. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  13252. 8005e7c: 687b ldr r3, [r7, #4]
  13253. 8005e7e: 2280 movs r2, #128 @ 0x80
  13254. 8005e80: 655a str r2, [r3, #84] @ 0x54
  13255. /* Process Unlocked */
  13256. __HAL_UNLOCK(hdma);
  13257. 8005e82: 687b ldr r3, [r7, #4]
  13258. 8005e84: 2200 movs r2, #0
  13259. 8005e86: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13260. return HAL_ERROR;
  13261. 8005e8a: 2301 movs r3, #1
  13262. 8005e8c: e2cd b.n 800642a <HAL_DMA_Abort+0x5d2>
  13263. }
  13264. else
  13265. {
  13266. /* Disable all the transfer interrupts */
  13267. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13268. 8005e8e: 687b ldr r3, [r7, #4]
  13269. 8005e90: 681b ldr r3, [r3, #0]
  13270. 8005e92: 4a76 ldr r2, [pc, #472] @ (800606c <HAL_DMA_Abort+0x214>)
  13271. 8005e94: 4293 cmp r3, r2
  13272. 8005e96: d04a beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13273. 8005e98: 687b ldr r3, [r7, #4]
  13274. 8005e9a: 681b ldr r3, [r3, #0]
  13275. 8005e9c: 4a74 ldr r2, [pc, #464] @ (8006070 <HAL_DMA_Abort+0x218>)
  13276. 8005e9e: 4293 cmp r3, r2
  13277. 8005ea0: d045 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13278. 8005ea2: 687b ldr r3, [r7, #4]
  13279. 8005ea4: 681b ldr r3, [r3, #0]
  13280. 8005ea6: 4a73 ldr r2, [pc, #460] @ (8006074 <HAL_DMA_Abort+0x21c>)
  13281. 8005ea8: 4293 cmp r3, r2
  13282. 8005eaa: d040 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13283. 8005eac: 687b ldr r3, [r7, #4]
  13284. 8005eae: 681b ldr r3, [r3, #0]
  13285. 8005eb0: 4a71 ldr r2, [pc, #452] @ (8006078 <HAL_DMA_Abort+0x220>)
  13286. 8005eb2: 4293 cmp r3, r2
  13287. 8005eb4: d03b beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13288. 8005eb6: 687b ldr r3, [r7, #4]
  13289. 8005eb8: 681b ldr r3, [r3, #0]
  13290. 8005eba: 4a70 ldr r2, [pc, #448] @ (800607c <HAL_DMA_Abort+0x224>)
  13291. 8005ebc: 4293 cmp r3, r2
  13292. 8005ebe: d036 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13293. 8005ec0: 687b ldr r3, [r7, #4]
  13294. 8005ec2: 681b ldr r3, [r3, #0]
  13295. 8005ec4: 4a6e ldr r2, [pc, #440] @ (8006080 <HAL_DMA_Abort+0x228>)
  13296. 8005ec6: 4293 cmp r3, r2
  13297. 8005ec8: d031 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13298. 8005eca: 687b ldr r3, [r7, #4]
  13299. 8005ecc: 681b ldr r3, [r3, #0]
  13300. 8005ece: 4a6d ldr r2, [pc, #436] @ (8006084 <HAL_DMA_Abort+0x22c>)
  13301. 8005ed0: 4293 cmp r3, r2
  13302. 8005ed2: d02c beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13303. 8005ed4: 687b ldr r3, [r7, #4]
  13304. 8005ed6: 681b ldr r3, [r3, #0]
  13305. 8005ed8: 4a6b ldr r2, [pc, #428] @ (8006088 <HAL_DMA_Abort+0x230>)
  13306. 8005eda: 4293 cmp r3, r2
  13307. 8005edc: d027 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13308. 8005ede: 687b ldr r3, [r7, #4]
  13309. 8005ee0: 681b ldr r3, [r3, #0]
  13310. 8005ee2: 4a6a ldr r2, [pc, #424] @ (800608c <HAL_DMA_Abort+0x234>)
  13311. 8005ee4: 4293 cmp r3, r2
  13312. 8005ee6: d022 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13313. 8005ee8: 687b ldr r3, [r7, #4]
  13314. 8005eea: 681b ldr r3, [r3, #0]
  13315. 8005eec: 4a68 ldr r2, [pc, #416] @ (8006090 <HAL_DMA_Abort+0x238>)
  13316. 8005eee: 4293 cmp r3, r2
  13317. 8005ef0: d01d beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13318. 8005ef2: 687b ldr r3, [r7, #4]
  13319. 8005ef4: 681b ldr r3, [r3, #0]
  13320. 8005ef6: 4a67 ldr r2, [pc, #412] @ (8006094 <HAL_DMA_Abort+0x23c>)
  13321. 8005ef8: 4293 cmp r3, r2
  13322. 8005efa: d018 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13323. 8005efc: 687b ldr r3, [r7, #4]
  13324. 8005efe: 681b ldr r3, [r3, #0]
  13325. 8005f00: 4a65 ldr r2, [pc, #404] @ (8006098 <HAL_DMA_Abort+0x240>)
  13326. 8005f02: 4293 cmp r3, r2
  13327. 8005f04: d013 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13328. 8005f06: 687b ldr r3, [r7, #4]
  13329. 8005f08: 681b ldr r3, [r3, #0]
  13330. 8005f0a: 4a64 ldr r2, [pc, #400] @ (800609c <HAL_DMA_Abort+0x244>)
  13331. 8005f0c: 4293 cmp r3, r2
  13332. 8005f0e: d00e beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13333. 8005f10: 687b ldr r3, [r7, #4]
  13334. 8005f12: 681b ldr r3, [r3, #0]
  13335. 8005f14: 4a62 ldr r2, [pc, #392] @ (80060a0 <HAL_DMA_Abort+0x248>)
  13336. 8005f16: 4293 cmp r3, r2
  13337. 8005f18: d009 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13338. 8005f1a: 687b ldr r3, [r7, #4]
  13339. 8005f1c: 681b ldr r3, [r3, #0]
  13340. 8005f1e: 4a61 ldr r2, [pc, #388] @ (80060a4 <HAL_DMA_Abort+0x24c>)
  13341. 8005f20: 4293 cmp r3, r2
  13342. 8005f22: d004 beq.n 8005f2e <HAL_DMA_Abort+0xd6>
  13343. 8005f24: 687b ldr r3, [r7, #4]
  13344. 8005f26: 681b ldr r3, [r3, #0]
  13345. 8005f28: 4a5f ldr r2, [pc, #380] @ (80060a8 <HAL_DMA_Abort+0x250>)
  13346. 8005f2a: 4293 cmp r3, r2
  13347. 8005f2c: d101 bne.n 8005f32 <HAL_DMA_Abort+0xda>
  13348. 8005f2e: 2301 movs r3, #1
  13349. 8005f30: e000 b.n 8005f34 <HAL_DMA_Abort+0xdc>
  13350. 8005f32: 2300 movs r3, #0
  13351. 8005f34: 2b00 cmp r3, #0
  13352. 8005f36: d013 beq.n 8005f60 <HAL_DMA_Abort+0x108>
  13353. {
  13354. /* Disable DMA All Interrupts */
  13355. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  13356. 8005f38: 687b ldr r3, [r7, #4]
  13357. 8005f3a: 681b ldr r3, [r3, #0]
  13358. 8005f3c: 681a ldr r2, [r3, #0]
  13359. 8005f3e: 687b ldr r3, [r7, #4]
  13360. 8005f40: 681b ldr r3, [r3, #0]
  13361. 8005f42: f022 021e bic.w r2, r2, #30
  13362. 8005f46: 601a str r2, [r3, #0]
  13363. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  13364. 8005f48: 687b ldr r3, [r7, #4]
  13365. 8005f4a: 681b ldr r3, [r3, #0]
  13366. 8005f4c: 695a ldr r2, [r3, #20]
  13367. 8005f4e: 687b ldr r3, [r7, #4]
  13368. 8005f50: 681b ldr r3, [r3, #0]
  13369. 8005f52: f022 0280 bic.w r2, r2, #128 @ 0x80
  13370. 8005f56: 615a str r2, [r3, #20]
  13371. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  13372. 8005f58: 687b ldr r3, [r7, #4]
  13373. 8005f5a: 681b ldr r3, [r3, #0]
  13374. 8005f5c: 617b str r3, [r7, #20]
  13375. 8005f5e: e00a b.n 8005f76 <HAL_DMA_Abort+0x11e>
  13376. }
  13377. else /* BDMA channel */
  13378. {
  13379. /* Disable DMA All Interrupts */
  13380. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  13381. 8005f60: 687b ldr r3, [r7, #4]
  13382. 8005f62: 681b ldr r3, [r3, #0]
  13383. 8005f64: 681a ldr r2, [r3, #0]
  13384. 8005f66: 687b ldr r3, [r7, #4]
  13385. 8005f68: 681b ldr r3, [r3, #0]
  13386. 8005f6a: f022 020e bic.w r2, r2, #14
  13387. 8005f6e: 601a str r2, [r3, #0]
  13388. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  13389. 8005f70: 687b ldr r3, [r7, #4]
  13390. 8005f72: 681b ldr r3, [r3, #0]
  13391. 8005f74: 617b str r3, [r7, #20]
  13392. }
  13393. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  13394. 8005f76: 687b ldr r3, [r7, #4]
  13395. 8005f78: 681b ldr r3, [r3, #0]
  13396. 8005f7a: 4a3c ldr r2, [pc, #240] @ (800606c <HAL_DMA_Abort+0x214>)
  13397. 8005f7c: 4293 cmp r3, r2
  13398. 8005f7e: d072 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13399. 8005f80: 687b ldr r3, [r7, #4]
  13400. 8005f82: 681b ldr r3, [r3, #0]
  13401. 8005f84: 4a3a ldr r2, [pc, #232] @ (8006070 <HAL_DMA_Abort+0x218>)
  13402. 8005f86: 4293 cmp r3, r2
  13403. 8005f88: d06d beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13404. 8005f8a: 687b ldr r3, [r7, #4]
  13405. 8005f8c: 681b ldr r3, [r3, #0]
  13406. 8005f8e: 4a39 ldr r2, [pc, #228] @ (8006074 <HAL_DMA_Abort+0x21c>)
  13407. 8005f90: 4293 cmp r3, r2
  13408. 8005f92: d068 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13409. 8005f94: 687b ldr r3, [r7, #4]
  13410. 8005f96: 681b ldr r3, [r3, #0]
  13411. 8005f98: 4a37 ldr r2, [pc, #220] @ (8006078 <HAL_DMA_Abort+0x220>)
  13412. 8005f9a: 4293 cmp r3, r2
  13413. 8005f9c: d063 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13414. 8005f9e: 687b ldr r3, [r7, #4]
  13415. 8005fa0: 681b ldr r3, [r3, #0]
  13416. 8005fa2: 4a36 ldr r2, [pc, #216] @ (800607c <HAL_DMA_Abort+0x224>)
  13417. 8005fa4: 4293 cmp r3, r2
  13418. 8005fa6: d05e beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13419. 8005fa8: 687b ldr r3, [r7, #4]
  13420. 8005faa: 681b ldr r3, [r3, #0]
  13421. 8005fac: 4a34 ldr r2, [pc, #208] @ (8006080 <HAL_DMA_Abort+0x228>)
  13422. 8005fae: 4293 cmp r3, r2
  13423. 8005fb0: d059 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13424. 8005fb2: 687b ldr r3, [r7, #4]
  13425. 8005fb4: 681b ldr r3, [r3, #0]
  13426. 8005fb6: 4a33 ldr r2, [pc, #204] @ (8006084 <HAL_DMA_Abort+0x22c>)
  13427. 8005fb8: 4293 cmp r3, r2
  13428. 8005fba: d054 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13429. 8005fbc: 687b ldr r3, [r7, #4]
  13430. 8005fbe: 681b ldr r3, [r3, #0]
  13431. 8005fc0: 4a31 ldr r2, [pc, #196] @ (8006088 <HAL_DMA_Abort+0x230>)
  13432. 8005fc2: 4293 cmp r3, r2
  13433. 8005fc4: d04f beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13434. 8005fc6: 687b ldr r3, [r7, #4]
  13435. 8005fc8: 681b ldr r3, [r3, #0]
  13436. 8005fca: 4a30 ldr r2, [pc, #192] @ (800608c <HAL_DMA_Abort+0x234>)
  13437. 8005fcc: 4293 cmp r3, r2
  13438. 8005fce: d04a beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13439. 8005fd0: 687b ldr r3, [r7, #4]
  13440. 8005fd2: 681b ldr r3, [r3, #0]
  13441. 8005fd4: 4a2e ldr r2, [pc, #184] @ (8006090 <HAL_DMA_Abort+0x238>)
  13442. 8005fd6: 4293 cmp r3, r2
  13443. 8005fd8: d045 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13444. 8005fda: 687b ldr r3, [r7, #4]
  13445. 8005fdc: 681b ldr r3, [r3, #0]
  13446. 8005fde: 4a2d ldr r2, [pc, #180] @ (8006094 <HAL_DMA_Abort+0x23c>)
  13447. 8005fe0: 4293 cmp r3, r2
  13448. 8005fe2: d040 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13449. 8005fe4: 687b ldr r3, [r7, #4]
  13450. 8005fe6: 681b ldr r3, [r3, #0]
  13451. 8005fe8: 4a2b ldr r2, [pc, #172] @ (8006098 <HAL_DMA_Abort+0x240>)
  13452. 8005fea: 4293 cmp r3, r2
  13453. 8005fec: d03b beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13454. 8005fee: 687b ldr r3, [r7, #4]
  13455. 8005ff0: 681b ldr r3, [r3, #0]
  13456. 8005ff2: 4a2a ldr r2, [pc, #168] @ (800609c <HAL_DMA_Abort+0x244>)
  13457. 8005ff4: 4293 cmp r3, r2
  13458. 8005ff6: d036 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13459. 8005ff8: 687b ldr r3, [r7, #4]
  13460. 8005ffa: 681b ldr r3, [r3, #0]
  13461. 8005ffc: 4a28 ldr r2, [pc, #160] @ (80060a0 <HAL_DMA_Abort+0x248>)
  13462. 8005ffe: 4293 cmp r3, r2
  13463. 8006000: d031 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13464. 8006002: 687b ldr r3, [r7, #4]
  13465. 8006004: 681b ldr r3, [r3, #0]
  13466. 8006006: 4a27 ldr r2, [pc, #156] @ (80060a4 <HAL_DMA_Abort+0x24c>)
  13467. 8006008: 4293 cmp r3, r2
  13468. 800600a: d02c beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13469. 800600c: 687b ldr r3, [r7, #4]
  13470. 800600e: 681b ldr r3, [r3, #0]
  13471. 8006010: 4a25 ldr r2, [pc, #148] @ (80060a8 <HAL_DMA_Abort+0x250>)
  13472. 8006012: 4293 cmp r3, r2
  13473. 8006014: d027 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13474. 8006016: 687b ldr r3, [r7, #4]
  13475. 8006018: 681b ldr r3, [r3, #0]
  13476. 800601a: 4a24 ldr r2, [pc, #144] @ (80060ac <HAL_DMA_Abort+0x254>)
  13477. 800601c: 4293 cmp r3, r2
  13478. 800601e: d022 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13479. 8006020: 687b ldr r3, [r7, #4]
  13480. 8006022: 681b ldr r3, [r3, #0]
  13481. 8006024: 4a22 ldr r2, [pc, #136] @ (80060b0 <HAL_DMA_Abort+0x258>)
  13482. 8006026: 4293 cmp r3, r2
  13483. 8006028: d01d beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13484. 800602a: 687b ldr r3, [r7, #4]
  13485. 800602c: 681b ldr r3, [r3, #0]
  13486. 800602e: 4a21 ldr r2, [pc, #132] @ (80060b4 <HAL_DMA_Abort+0x25c>)
  13487. 8006030: 4293 cmp r3, r2
  13488. 8006032: d018 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13489. 8006034: 687b ldr r3, [r7, #4]
  13490. 8006036: 681b ldr r3, [r3, #0]
  13491. 8006038: 4a1f ldr r2, [pc, #124] @ (80060b8 <HAL_DMA_Abort+0x260>)
  13492. 800603a: 4293 cmp r3, r2
  13493. 800603c: d013 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13494. 800603e: 687b ldr r3, [r7, #4]
  13495. 8006040: 681b ldr r3, [r3, #0]
  13496. 8006042: 4a1e ldr r2, [pc, #120] @ (80060bc <HAL_DMA_Abort+0x264>)
  13497. 8006044: 4293 cmp r3, r2
  13498. 8006046: d00e beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13499. 8006048: 687b ldr r3, [r7, #4]
  13500. 800604a: 681b ldr r3, [r3, #0]
  13501. 800604c: 4a1c ldr r2, [pc, #112] @ (80060c0 <HAL_DMA_Abort+0x268>)
  13502. 800604e: 4293 cmp r3, r2
  13503. 8006050: d009 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13504. 8006052: 687b ldr r3, [r7, #4]
  13505. 8006054: 681b ldr r3, [r3, #0]
  13506. 8006056: 4a1b ldr r2, [pc, #108] @ (80060c4 <HAL_DMA_Abort+0x26c>)
  13507. 8006058: 4293 cmp r3, r2
  13508. 800605a: d004 beq.n 8006066 <HAL_DMA_Abort+0x20e>
  13509. 800605c: 687b ldr r3, [r7, #4]
  13510. 800605e: 681b ldr r3, [r3, #0]
  13511. 8006060: 4a19 ldr r2, [pc, #100] @ (80060c8 <HAL_DMA_Abort+0x270>)
  13512. 8006062: 4293 cmp r3, r2
  13513. 8006064: d132 bne.n 80060cc <HAL_DMA_Abort+0x274>
  13514. 8006066: 2301 movs r3, #1
  13515. 8006068: e031 b.n 80060ce <HAL_DMA_Abort+0x276>
  13516. 800606a: bf00 nop
  13517. 800606c: 40020010 .word 0x40020010
  13518. 8006070: 40020028 .word 0x40020028
  13519. 8006074: 40020040 .word 0x40020040
  13520. 8006078: 40020058 .word 0x40020058
  13521. 800607c: 40020070 .word 0x40020070
  13522. 8006080: 40020088 .word 0x40020088
  13523. 8006084: 400200a0 .word 0x400200a0
  13524. 8006088: 400200b8 .word 0x400200b8
  13525. 800608c: 40020410 .word 0x40020410
  13526. 8006090: 40020428 .word 0x40020428
  13527. 8006094: 40020440 .word 0x40020440
  13528. 8006098: 40020458 .word 0x40020458
  13529. 800609c: 40020470 .word 0x40020470
  13530. 80060a0: 40020488 .word 0x40020488
  13531. 80060a4: 400204a0 .word 0x400204a0
  13532. 80060a8: 400204b8 .word 0x400204b8
  13533. 80060ac: 58025408 .word 0x58025408
  13534. 80060b0: 5802541c .word 0x5802541c
  13535. 80060b4: 58025430 .word 0x58025430
  13536. 80060b8: 58025444 .word 0x58025444
  13537. 80060bc: 58025458 .word 0x58025458
  13538. 80060c0: 5802546c .word 0x5802546c
  13539. 80060c4: 58025480 .word 0x58025480
  13540. 80060c8: 58025494 .word 0x58025494
  13541. 80060cc: 2300 movs r3, #0
  13542. 80060ce: 2b00 cmp r3, #0
  13543. 80060d0: d007 beq.n 80060e2 <HAL_DMA_Abort+0x28a>
  13544. {
  13545. /* disable the DMAMUX sync overrun IT */
  13546. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  13547. 80060d2: 687b ldr r3, [r7, #4]
  13548. 80060d4: 6e1b ldr r3, [r3, #96] @ 0x60
  13549. 80060d6: 681a ldr r2, [r3, #0]
  13550. 80060d8: 687b ldr r3, [r7, #4]
  13551. 80060da: 6e1b ldr r3, [r3, #96] @ 0x60
  13552. 80060dc: f422 7280 bic.w r2, r2, #256 @ 0x100
  13553. 80060e0: 601a str r2, [r3, #0]
  13554. }
  13555. /* Disable the stream */
  13556. __HAL_DMA_DISABLE(hdma);
  13557. 80060e2: 687b ldr r3, [r7, #4]
  13558. 80060e4: 681b ldr r3, [r3, #0]
  13559. 80060e6: 4a6d ldr r2, [pc, #436] @ (800629c <HAL_DMA_Abort+0x444>)
  13560. 80060e8: 4293 cmp r3, r2
  13561. 80060ea: d04a beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13562. 80060ec: 687b ldr r3, [r7, #4]
  13563. 80060ee: 681b ldr r3, [r3, #0]
  13564. 80060f0: 4a6b ldr r2, [pc, #428] @ (80062a0 <HAL_DMA_Abort+0x448>)
  13565. 80060f2: 4293 cmp r3, r2
  13566. 80060f4: d045 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13567. 80060f6: 687b ldr r3, [r7, #4]
  13568. 80060f8: 681b ldr r3, [r3, #0]
  13569. 80060fa: 4a6a ldr r2, [pc, #424] @ (80062a4 <HAL_DMA_Abort+0x44c>)
  13570. 80060fc: 4293 cmp r3, r2
  13571. 80060fe: d040 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13572. 8006100: 687b ldr r3, [r7, #4]
  13573. 8006102: 681b ldr r3, [r3, #0]
  13574. 8006104: 4a68 ldr r2, [pc, #416] @ (80062a8 <HAL_DMA_Abort+0x450>)
  13575. 8006106: 4293 cmp r3, r2
  13576. 8006108: d03b beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13577. 800610a: 687b ldr r3, [r7, #4]
  13578. 800610c: 681b ldr r3, [r3, #0]
  13579. 800610e: 4a67 ldr r2, [pc, #412] @ (80062ac <HAL_DMA_Abort+0x454>)
  13580. 8006110: 4293 cmp r3, r2
  13581. 8006112: d036 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13582. 8006114: 687b ldr r3, [r7, #4]
  13583. 8006116: 681b ldr r3, [r3, #0]
  13584. 8006118: 4a65 ldr r2, [pc, #404] @ (80062b0 <HAL_DMA_Abort+0x458>)
  13585. 800611a: 4293 cmp r3, r2
  13586. 800611c: d031 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13587. 800611e: 687b ldr r3, [r7, #4]
  13588. 8006120: 681b ldr r3, [r3, #0]
  13589. 8006122: 4a64 ldr r2, [pc, #400] @ (80062b4 <HAL_DMA_Abort+0x45c>)
  13590. 8006124: 4293 cmp r3, r2
  13591. 8006126: d02c beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13592. 8006128: 687b ldr r3, [r7, #4]
  13593. 800612a: 681b ldr r3, [r3, #0]
  13594. 800612c: 4a62 ldr r2, [pc, #392] @ (80062b8 <HAL_DMA_Abort+0x460>)
  13595. 800612e: 4293 cmp r3, r2
  13596. 8006130: d027 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13597. 8006132: 687b ldr r3, [r7, #4]
  13598. 8006134: 681b ldr r3, [r3, #0]
  13599. 8006136: 4a61 ldr r2, [pc, #388] @ (80062bc <HAL_DMA_Abort+0x464>)
  13600. 8006138: 4293 cmp r3, r2
  13601. 800613a: d022 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13602. 800613c: 687b ldr r3, [r7, #4]
  13603. 800613e: 681b ldr r3, [r3, #0]
  13604. 8006140: 4a5f ldr r2, [pc, #380] @ (80062c0 <HAL_DMA_Abort+0x468>)
  13605. 8006142: 4293 cmp r3, r2
  13606. 8006144: d01d beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13607. 8006146: 687b ldr r3, [r7, #4]
  13608. 8006148: 681b ldr r3, [r3, #0]
  13609. 800614a: 4a5e ldr r2, [pc, #376] @ (80062c4 <HAL_DMA_Abort+0x46c>)
  13610. 800614c: 4293 cmp r3, r2
  13611. 800614e: d018 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13612. 8006150: 687b ldr r3, [r7, #4]
  13613. 8006152: 681b ldr r3, [r3, #0]
  13614. 8006154: 4a5c ldr r2, [pc, #368] @ (80062c8 <HAL_DMA_Abort+0x470>)
  13615. 8006156: 4293 cmp r3, r2
  13616. 8006158: d013 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13617. 800615a: 687b ldr r3, [r7, #4]
  13618. 800615c: 681b ldr r3, [r3, #0]
  13619. 800615e: 4a5b ldr r2, [pc, #364] @ (80062cc <HAL_DMA_Abort+0x474>)
  13620. 8006160: 4293 cmp r3, r2
  13621. 8006162: d00e beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13622. 8006164: 687b ldr r3, [r7, #4]
  13623. 8006166: 681b ldr r3, [r3, #0]
  13624. 8006168: 4a59 ldr r2, [pc, #356] @ (80062d0 <HAL_DMA_Abort+0x478>)
  13625. 800616a: 4293 cmp r3, r2
  13626. 800616c: d009 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13627. 800616e: 687b ldr r3, [r7, #4]
  13628. 8006170: 681b ldr r3, [r3, #0]
  13629. 8006172: 4a58 ldr r2, [pc, #352] @ (80062d4 <HAL_DMA_Abort+0x47c>)
  13630. 8006174: 4293 cmp r3, r2
  13631. 8006176: d004 beq.n 8006182 <HAL_DMA_Abort+0x32a>
  13632. 8006178: 687b ldr r3, [r7, #4]
  13633. 800617a: 681b ldr r3, [r3, #0]
  13634. 800617c: 4a56 ldr r2, [pc, #344] @ (80062d8 <HAL_DMA_Abort+0x480>)
  13635. 800617e: 4293 cmp r3, r2
  13636. 8006180: d108 bne.n 8006194 <HAL_DMA_Abort+0x33c>
  13637. 8006182: 687b ldr r3, [r7, #4]
  13638. 8006184: 681b ldr r3, [r3, #0]
  13639. 8006186: 681a ldr r2, [r3, #0]
  13640. 8006188: 687b ldr r3, [r7, #4]
  13641. 800618a: 681b ldr r3, [r3, #0]
  13642. 800618c: f022 0201 bic.w r2, r2, #1
  13643. 8006190: 601a str r2, [r3, #0]
  13644. 8006192: e007 b.n 80061a4 <HAL_DMA_Abort+0x34c>
  13645. 8006194: 687b ldr r3, [r7, #4]
  13646. 8006196: 681b ldr r3, [r3, #0]
  13647. 8006198: 681a ldr r2, [r3, #0]
  13648. 800619a: 687b ldr r3, [r7, #4]
  13649. 800619c: 681b ldr r3, [r3, #0]
  13650. 800619e: f022 0201 bic.w r2, r2, #1
  13651. 80061a2: 601a str r2, [r3, #0]
  13652. /* Check if the DMA Stream is effectively disabled */
  13653. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  13654. 80061a4: e013 b.n 80061ce <HAL_DMA_Abort+0x376>
  13655. {
  13656. /* Check for the Timeout */
  13657. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  13658. 80061a6: f7fe ff4d bl 8005044 <HAL_GetTick>
  13659. 80061aa: 4602 mov r2, r0
  13660. 80061ac: 693b ldr r3, [r7, #16]
  13661. 80061ae: 1ad3 subs r3, r2, r3
  13662. 80061b0: 2b05 cmp r3, #5
  13663. 80061b2: d90c bls.n 80061ce <HAL_DMA_Abort+0x376>
  13664. {
  13665. /* Update error code */
  13666. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  13667. 80061b4: 687b ldr r3, [r7, #4]
  13668. 80061b6: 2220 movs r2, #32
  13669. 80061b8: 655a str r2, [r3, #84] @ 0x54
  13670. /* Change the DMA state */
  13671. hdma->State = HAL_DMA_STATE_ERROR;
  13672. 80061ba: 687b ldr r3, [r7, #4]
  13673. 80061bc: 2203 movs r2, #3
  13674. 80061be: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13675. /* Process Unlocked */
  13676. __HAL_UNLOCK(hdma);
  13677. 80061c2: 687b ldr r3, [r7, #4]
  13678. 80061c4: 2200 movs r2, #0
  13679. 80061c6: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13680. return HAL_ERROR;
  13681. 80061ca: 2301 movs r3, #1
  13682. 80061cc: e12d b.n 800642a <HAL_DMA_Abort+0x5d2>
  13683. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  13684. 80061ce: 697b ldr r3, [r7, #20]
  13685. 80061d0: 681b ldr r3, [r3, #0]
  13686. 80061d2: f003 0301 and.w r3, r3, #1
  13687. 80061d6: 2b00 cmp r3, #0
  13688. 80061d8: d1e5 bne.n 80061a6 <HAL_DMA_Abort+0x34e>
  13689. }
  13690. }
  13691. /* Clear all interrupt flags at correct offset within the register */
  13692. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13693. 80061da: 687b ldr r3, [r7, #4]
  13694. 80061dc: 681b ldr r3, [r3, #0]
  13695. 80061de: 4a2f ldr r2, [pc, #188] @ (800629c <HAL_DMA_Abort+0x444>)
  13696. 80061e0: 4293 cmp r3, r2
  13697. 80061e2: d04a beq.n 800627a <HAL_DMA_Abort+0x422>
  13698. 80061e4: 687b ldr r3, [r7, #4]
  13699. 80061e6: 681b ldr r3, [r3, #0]
  13700. 80061e8: 4a2d ldr r2, [pc, #180] @ (80062a0 <HAL_DMA_Abort+0x448>)
  13701. 80061ea: 4293 cmp r3, r2
  13702. 80061ec: d045 beq.n 800627a <HAL_DMA_Abort+0x422>
  13703. 80061ee: 687b ldr r3, [r7, #4]
  13704. 80061f0: 681b ldr r3, [r3, #0]
  13705. 80061f2: 4a2c ldr r2, [pc, #176] @ (80062a4 <HAL_DMA_Abort+0x44c>)
  13706. 80061f4: 4293 cmp r3, r2
  13707. 80061f6: d040 beq.n 800627a <HAL_DMA_Abort+0x422>
  13708. 80061f8: 687b ldr r3, [r7, #4]
  13709. 80061fa: 681b ldr r3, [r3, #0]
  13710. 80061fc: 4a2a ldr r2, [pc, #168] @ (80062a8 <HAL_DMA_Abort+0x450>)
  13711. 80061fe: 4293 cmp r3, r2
  13712. 8006200: d03b beq.n 800627a <HAL_DMA_Abort+0x422>
  13713. 8006202: 687b ldr r3, [r7, #4]
  13714. 8006204: 681b ldr r3, [r3, #0]
  13715. 8006206: 4a29 ldr r2, [pc, #164] @ (80062ac <HAL_DMA_Abort+0x454>)
  13716. 8006208: 4293 cmp r3, r2
  13717. 800620a: d036 beq.n 800627a <HAL_DMA_Abort+0x422>
  13718. 800620c: 687b ldr r3, [r7, #4]
  13719. 800620e: 681b ldr r3, [r3, #0]
  13720. 8006210: 4a27 ldr r2, [pc, #156] @ (80062b0 <HAL_DMA_Abort+0x458>)
  13721. 8006212: 4293 cmp r3, r2
  13722. 8006214: d031 beq.n 800627a <HAL_DMA_Abort+0x422>
  13723. 8006216: 687b ldr r3, [r7, #4]
  13724. 8006218: 681b ldr r3, [r3, #0]
  13725. 800621a: 4a26 ldr r2, [pc, #152] @ (80062b4 <HAL_DMA_Abort+0x45c>)
  13726. 800621c: 4293 cmp r3, r2
  13727. 800621e: d02c beq.n 800627a <HAL_DMA_Abort+0x422>
  13728. 8006220: 687b ldr r3, [r7, #4]
  13729. 8006222: 681b ldr r3, [r3, #0]
  13730. 8006224: 4a24 ldr r2, [pc, #144] @ (80062b8 <HAL_DMA_Abort+0x460>)
  13731. 8006226: 4293 cmp r3, r2
  13732. 8006228: d027 beq.n 800627a <HAL_DMA_Abort+0x422>
  13733. 800622a: 687b ldr r3, [r7, #4]
  13734. 800622c: 681b ldr r3, [r3, #0]
  13735. 800622e: 4a23 ldr r2, [pc, #140] @ (80062bc <HAL_DMA_Abort+0x464>)
  13736. 8006230: 4293 cmp r3, r2
  13737. 8006232: d022 beq.n 800627a <HAL_DMA_Abort+0x422>
  13738. 8006234: 687b ldr r3, [r7, #4]
  13739. 8006236: 681b ldr r3, [r3, #0]
  13740. 8006238: 4a21 ldr r2, [pc, #132] @ (80062c0 <HAL_DMA_Abort+0x468>)
  13741. 800623a: 4293 cmp r3, r2
  13742. 800623c: d01d beq.n 800627a <HAL_DMA_Abort+0x422>
  13743. 800623e: 687b ldr r3, [r7, #4]
  13744. 8006240: 681b ldr r3, [r3, #0]
  13745. 8006242: 4a20 ldr r2, [pc, #128] @ (80062c4 <HAL_DMA_Abort+0x46c>)
  13746. 8006244: 4293 cmp r3, r2
  13747. 8006246: d018 beq.n 800627a <HAL_DMA_Abort+0x422>
  13748. 8006248: 687b ldr r3, [r7, #4]
  13749. 800624a: 681b ldr r3, [r3, #0]
  13750. 800624c: 4a1e ldr r2, [pc, #120] @ (80062c8 <HAL_DMA_Abort+0x470>)
  13751. 800624e: 4293 cmp r3, r2
  13752. 8006250: d013 beq.n 800627a <HAL_DMA_Abort+0x422>
  13753. 8006252: 687b ldr r3, [r7, #4]
  13754. 8006254: 681b ldr r3, [r3, #0]
  13755. 8006256: 4a1d ldr r2, [pc, #116] @ (80062cc <HAL_DMA_Abort+0x474>)
  13756. 8006258: 4293 cmp r3, r2
  13757. 800625a: d00e beq.n 800627a <HAL_DMA_Abort+0x422>
  13758. 800625c: 687b ldr r3, [r7, #4]
  13759. 800625e: 681b ldr r3, [r3, #0]
  13760. 8006260: 4a1b ldr r2, [pc, #108] @ (80062d0 <HAL_DMA_Abort+0x478>)
  13761. 8006262: 4293 cmp r3, r2
  13762. 8006264: d009 beq.n 800627a <HAL_DMA_Abort+0x422>
  13763. 8006266: 687b ldr r3, [r7, #4]
  13764. 8006268: 681b ldr r3, [r3, #0]
  13765. 800626a: 4a1a ldr r2, [pc, #104] @ (80062d4 <HAL_DMA_Abort+0x47c>)
  13766. 800626c: 4293 cmp r3, r2
  13767. 800626e: d004 beq.n 800627a <HAL_DMA_Abort+0x422>
  13768. 8006270: 687b ldr r3, [r7, #4]
  13769. 8006272: 681b ldr r3, [r3, #0]
  13770. 8006274: 4a18 ldr r2, [pc, #96] @ (80062d8 <HAL_DMA_Abort+0x480>)
  13771. 8006276: 4293 cmp r3, r2
  13772. 8006278: d101 bne.n 800627e <HAL_DMA_Abort+0x426>
  13773. 800627a: 2301 movs r3, #1
  13774. 800627c: e000 b.n 8006280 <HAL_DMA_Abort+0x428>
  13775. 800627e: 2300 movs r3, #0
  13776. 8006280: 2b00 cmp r3, #0
  13777. 8006282: d02b beq.n 80062dc <HAL_DMA_Abort+0x484>
  13778. {
  13779. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  13780. 8006284: 687b ldr r3, [r7, #4]
  13781. 8006286: 6d9b ldr r3, [r3, #88] @ 0x58
  13782. 8006288: 60bb str r3, [r7, #8]
  13783. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  13784. 800628a: 687b ldr r3, [r7, #4]
  13785. 800628c: 6ddb ldr r3, [r3, #92] @ 0x5c
  13786. 800628e: f003 031f and.w r3, r3, #31
  13787. 8006292: 223f movs r2, #63 @ 0x3f
  13788. 8006294: 409a lsls r2, r3
  13789. 8006296: 68bb ldr r3, [r7, #8]
  13790. 8006298: 609a str r2, [r3, #8]
  13791. 800629a: e02a b.n 80062f2 <HAL_DMA_Abort+0x49a>
  13792. 800629c: 40020010 .word 0x40020010
  13793. 80062a0: 40020028 .word 0x40020028
  13794. 80062a4: 40020040 .word 0x40020040
  13795. 80062a8: 40020058 .word 0x40020058
  13796. 80062ac: 40020070 .word 0x40020070
  13797. 80062b0: 40020088 .word 0x40020088
  13798. 80062b4: 400200a0 .word 0x400200a0
  13799. 80062b8: 400200b8 .word 0x400200b8
  13800. 80062bc: 40020410 .word 0x40020410
  13801. 80062c0: 40020428 .word 0x40020428
  13802. 80062c4: 40020440 .word 0x40020440
  13803. 80062c8: 40020458 .word 0x40020458
  13804. 80062cc: 40020470 .word 0x40020470
  13805. 80062d0: 40020488 .word 0x40020488
  13806. 80062d4: 400204a0 .word 0x400204a0
  13807. 80062d8: 400204b8 .word 0x400204b8
  13808. }
  13809. else /* BDMA channel */
  13810. {
  13811. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  13812. 80062dc: 687b ldr r3, [r7, #4]
  13813. 80062de: 6d9b ldr r3, [r3, #88] @ 0x58
  13814. 80062e0: 60fb str r3, [r7, #12]
  13815. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  13816. 80062e2: 687b ldr r3, [r7, #4]
  13817. 80062e4: 6ddb ldr r3, [r3, #92] @ 0x5c
  13818. 80062e6: f003 031f and.w r3, r3, #31
  13819. 80062ea: 2201 movs r2, #1
  13820. 80062ec: 409a lsls r2, r3
  13821. 80062ee: 68fb ldr r3, [r7, #12]
  13822. 80062f0: 605a str r2, [r3, #4]
  13823. }
  13824. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  13825. 80062f2: 687b ldr r3, [r7, #4]
  13826. 80062f4: 681b ldr r3, [r3, #0]
  13827. 80062f6: 4a4f ldr r2, [pc, #316] @ (8006434 <HAL_DMA_Abort+0x5dc>)
  13828. 80062f8: 4293 cmp r3, r2
  13829. 80062fa: d072 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13830. 80062fc: 687b ldr r3, [r7, #4]
  13831. 80062fe: 681b ldr r3, [r3, #0]
  13832. 8006300: 4a4d ldr r2, [pc, #308] @ (8006438 <HAL_DMA_Abort+0x5e0>)
  13833. 8006302: 4293 cmp r3, r2
  13834. 8006304: d06d beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13835. 8006306: 687b ldr r3, [r7, #4]
  13836. 8006308: 681b ldr r3, [r3, #0]
  13837. 800630a: 4a4c ldr r2, [pc, #304] @ (800643c <HAL_DMA_Abort+0x5e4>)
  13838. 800630c: 4293 cmp r3, r2
  13839. 800630e: d068 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13840. 8006310: 687b ldr r3, [r7, #4]
  13841. 8006312: 681b ldr r3, [r3, #0]
  13842. 8006314: 4a4a ldr r2, [pc, #296] @ (8006440 <HAL_DMA_Abort+0x5e8>)
  13843. 8006316: 4293 cmp r3, r2
  13844. 8006318: d063 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13845. 800631a: 687b ldr r3, [r7, #4]
  13846. 800631c: 681b ldr r3, [r3, #0]
  13847. 800631e: 4a49 ldr r2, [pc, #292] @ (8006444 <HAL_DMA_Abort+0x5ec>)
  13848. 8006320: 4293 cmp r3, r2
  13849. 8006322: d05e beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13850. 8006324: 687b ldr r3, [r7, #4]
  13851. 8006326: 681b ldr r3, [r3, #0]
  13852. 8006328: 4a47 ldr r2, [pc, #284] @ (8006448 <HAL_DMA_Abort+0x5f0>)
  13853. 800632a: 4293 cmp r3, r2
  13854. 800632c: d059 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13855. 800632e: 687b ldr r3, [r7, #4]
  13856. 8006330: 681b ldr r3, [r3, #0]
  13857. 8006332: 4a46 ldr r2, [pc, #280] @ (800644c <HAL_DMA_Abort+0x5f4>)
  13858. 8006334: 4293 cmp r3, r2
  13859. 8006336: d054 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13860. 8006338: 687b ldr r3, [r7, #4]
  13861. 800633a: 681b ldr r3, [r3, #0]
  13862. 800633c: 4a44 ldr r2, [pc, #272] @ (8006450 <HAL_DMA_Abort+0x5f8>)
  13863. 800633e: 4293 cmp r3, r2
  13864. 8006340: d04f beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13865. 8006342: 687b ldr r3, [r7, #4]
  13866. 8006344: 681b ldr r3, [r3, #0]
  13867. 8006346: 4a43 ldr r2, [pc, #268] @ (8006454 <HAL_DMA_Abort+0x5fc>)
  13868. 8006348: 4293 cmp r3, r2
  13869. 800634a: d04a beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13870. 800634c: 687b ldr r3, [r7, #4]
  13871. 800634e: 681b ldr r3, [r3, #0]
  13872. 8006350: 4a41 ldr r2, [pc, #260] @ (8006458 <HAL_DMA_Abort+0x600>)
  13873. 8006352: 4293 cmp r3, r2
  13874. 8006354: d045 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13875. 8006356: 687b ldr r3, [r7, #4]
  13876. 8006358: 681b ldr r3, [r3, #0]
  13877. 800635a: 4a40 ldr r2, [pc, #256] @ (800645c <HAL_DMA_Abort+0x604>)
  13878. 800635c: 4293 cmp r3, r2
  13879. 800635e: d040 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13880. 8006360: 687b ldr r3, [r7, #4]
  13881. 8006362: 681b ldr r3, [r3, #0]
  13882. 8006364: 4a3e ldr r2, [pc, #248] @ (8006460 <HAL_DMA_Abort+0x608>)
  13883. 8006366: 4293 cmp r3, r2
  13884. 8006368: d03b beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13885. 800636a: 687b ldr r3, [r7, #4]
  13886. 800636c: 681b ldr r3, [r3, #0]
  13887. 800636e: 4a3d ldr r2, [pc, #244] @ (8006464 <HAL_DMA_Abort+0x60c>)
  13888. 8006370: 4293 cmp r3, r2
  13889. 8006372: d036 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13890. 8006374: 687b ldr r3, [r7, #4]
  13891. 8006376: 681b ldr r3, [r3, #0]
  13892. 8006378: 4a3b ldr r2, [pc, #236] @ (8006468 <HAL_DMA_Abort+0x610>)
  13893. 800637a: 4293 cmp r3, r2
  13894. 800637c: d031 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13895. 800637e: 687b ldr r3, [r7, #4]
  13896. 8006380: 681b ldr r3, [r3, #0]
  13897. 8006382: 4a3a ldr r2, [pc, #232] @ (800646c <HAL_DMA_Abort+0x614>)
  13898. 8006384: 4293 cmp r3, r2
  13899. 8006386: d02c beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13900. 8006388: 687b ldr r3, [r7, #4]
  13901. 800638a: 681b ldr r3, [r3, #0]
  13902. 800638c: 4a38 ldr r2, [pc, #224] @ (8006470 <HAL_DMA_Abort+0x618>)
  13903. 800638e: 4293 cmp r3, r2
  13904. 8006390: d027 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13905. 8006392: 687b ldr r3, [r7, #4]
  13906. 8006394: 681b ldr r3, [r3, #0]
  13907. 8006396: 4a37 ldr r2, [pc, #220] @ (8006474 <HAL_DMA_Abort+0x61c>)
  13908. 8006398: 4293 cmp r3, r2
  13909. 800639a: d022 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13910. 800639c: 687b ldr r3, [r7, #4]
  13911. 800639e: 681b ldr r3, [r3, #0]
  13912. 80063a0: 4a35 ldr r2, [pc, #212] @ (8006478 <HAL_DMA_Abort+0x620>)
  13913. 80063a2: 4293 cmp r3, r2
  13914. 80063a4: d01d beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13915. 80063a6: 687b ldr r3, [r7, #4]
  13916. 80063a8: 681b ldr r3, [r3, #0]
  13917. 80063aa: 4a34 ldr r2, [pc, #208] @ (800647c <HAL_DMA_Abort+0x624>)
  13918. 80063ac: 4293 cmp r3, r2
  13919. 80063ae: d018 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13920. 80063b0: 687b ldr r3, [r7, #4]
  13921. 80063b2: 681b ldr r3, [r3, #0]
  13922. 80063b4: 4a32 ldr r2, [pc, #200] @ (8006480 <HAL_DMA_Abort+0x628>)
  13923. 80063b6: 4293 cmp r3, r2
  13924. 80063b8: d013 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13925. 80063ba: 687b ldr r3, [r7, #4]
  13926. 80063bc: 681b ldr r3, [r3, #0]
  13927. 80063be: 4a31 ldr r2, [pc, #196] @ (8006484 <HAL_DMA_Abort+0x62c>)
  13928. 80063c0: 4293 cmp r3, r2
  13929. 80063c2: d00e beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13930. 80063c4: 687b ldr r3, [r7, #4]
  13931. 80063c6: 681b ldr r3, [r3, #0]
  13932. 80063c8: 4a2f ldr r2, [pc, #188] @ (8006488 <HAL_DMA_Abort+0x630>)
  13933. 80063ca: 4293 cmp r3, r2
  13934. 80063cc: d009 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13935. 80063ce: 687b ldr r3, [r7, #4]
  13936. 80063d0: 681b ldr r3, [r3, #0]
  13937. 80063d2: 4a2e ldr r2, [pc, #184] @ (800648c <HAL_DMA_Abort+0x634>)
  13938. 80063d4: 4293 cmp r3, r2
  13939. 80063d6: d004 beq.n 80063e2 <HAL_DMA_Abort+0x58a>
  13940. 80063d8: 687b ldr r3, [r7, #4]
  13941. 80063da: 681b ldr r3, [r3, #0]
  13942. 80063dc: 4a2c ldr r2, [pc, #176] @ (8006490 <HAL_DMA_Abort+0x638>)
  13943. 80063de: 4293 cmp r3, r2
  13944. 80063e0: d101 bne.n 80063e6 <HAL_DMA_Abort+0x58e>
  13945. 80063e2: 2301 movs r3, #1
  13946. 80063e4: e000 b.n 80063e8 <HAL_DMA_Abort+0x590>
  13947. 80063e6: 2300 movs r3, #0
  13948. 80063e8: 2b00 cmp r3, #0
  13949. 80063ea: d015 beq.n 8006418 <HAL_DMA_Abort+0x5c0>
  13950. {
  13951. /* Clear the DMAMUX synchro overrun flag */
  13952. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  13953. 80063ec: 687b ldr r3, [r7, #4]
  13954. 80063ee: 6e5b ldr r3, [r3, #100] @ 0x64
  13955. 80063f0: 687a ldr r2, [r7, #4]
  13956. 80063f2: 6e92 ldr r2, [r2, #104] @ 0x68
  13957. 80063f4: 605a str r2, [r3, #4]
  13958. if(hdma->DMAmuxRequestGen != 0U)
  13959. 80063f6: 687b ldr r3, [r7, #4]
  13960. 80063f8: 6edb ldr r3, [r3, #108] @ 0x6c
  13961. 80063fa: 2b00 cmp r3, #0
  13962. 80063fc: d00c beq.n 8006418 <HAL_DMA_Abort+0x5c0>
  13963. {
  13964. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  13965. /* disable the request gen overrun IT */
  13966. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  13967. 80063fe: 687b ldr r3, [r7, #4]
  13968. 8006400: 6edb ldr r3, [r3, #108] @ 0x6c
  13969. 8006402: 681a ldr r2, [r3, #0]
  13970. 8006404: 687b ldr r3, [r7, #4]
  13971. 8006406: 6edb ldr r3, [r3, #108] @ 0x6c
  13972. 8006408: f422 7280 bic.w r2, r2, #256 @ 0x100
  13973. 800640c: 601a str r2, [r3, #0]
  13974. /* Clear the DMAMUX request generator overrun flag */
  13975. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  13976. 800640e: 687b ldr r3, [r7, #4]
  13977. 8006410: 6f1b ldr r3, [r3, #112] @ 0x70
  13978. 8006412: 687a ldr r2, [r7, #4]
  13979. 8006414: 6f52 ldr r2, [r2, #116] @ 0x74
  13980. 8006416: 605a str r2, [r3, #4]
  13981. }
  13982. }
  13983. /* Change the DMA state */
  13984. hdma->State = HAL_DMA_STATE_READY;
  13985. 8006418: 687b ldr r3, [r7, #4]
  13986. 800641a: 2201 movs r2, #1
  13987. 800641c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13988. /* Process Unlocked */
  13989. __HAL_UNLOCK(hdma);
  13990. 8006420: 687b ldr r3, [r7, #4]
  13991. 8006422: 2200 movs r2, #0
  13992. 8006424: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13993. }
  13994. return HAL_OK;
  13995. 8006428: 2300 movs r3, #0
  13996. }
  13997. 800642a: 4618 mov r0, r3
  13998. 800642c: 3718 adds r7, #24
  13999. 800642e: 46bd mov sp, r7
  14000. 8006430: bd80 pop {r7, pc}
  14001. 8006432: bf00 nop
  14002. 8006434: 40020010 .word 0x40020010
  14003. 8006438: 40020028 .word 0x40020028
  14004. 800643c: 40020040 .word 0x40020040
  14005. 8006440: 40020058 .word 0x40020058
  14006. 8006444: 40020070 .word 0x40020070
  14007. 8006448: 40020088 .word 0x40020088
  14008. 800644c: 400200a0 .word 0x400200a0
  14009. 8006450: 400200b8 .word 0x400200b8
  14010. 8006454: 40020410 .word 0x40020410
  14011. 8006458: 40020428 .word 0x40020428
  14012. 800645c: 40020440 .word 0x40020440
  14013. 8006460: 40020458 .word 0x40020458
  14014. 8006464: 40020470 .word 0x40020470
  14015. 8006468: 40020488 .word 0x40020488
  14016. 800646c: 400204a0 .word 0x400204a0
  14017. 8006470: 400204b8 .word 0x400204b8
  14018. 8006474: 58025408 .word 0x58025408
  14019. 8006478: 5802541c .word 0x5802541c
  14020. 800647c: 58025430 .word 0x58025430
  14021. 8006480: 58025444 .word 0x58025444
  14022. 8006484: 58025458 .word 0x58025458
  14023. 8006488: 5802546c .word 0x5802546c
  14024. 800648c: 58025480 .word 0x58025480
  14025. 8006490: 58025494 .word 0x58025494
  14026. 08006494 <HAL_DMA_Abort_IT>:
  14027. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  14028. * the configuration information for the specified DMA Stream.
  14029. * @retval HAL status
  14030. */
  14031. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  14032. {
  14033. 8006494: b580 push {r7, lr}
  14034. 8006496: b084 sub sp, #16
  14035. 8006498: af00 add r7, sp, #0
  14036. 800649a: 6078 str r0, [r7, #4]
  14037. BDMA_Base_Registers *regs_bdma;
  14038. /* Check the DMA peripheral handle */
  14039. if(hdma == NULL)
  14040. 800649c: 687b ldr r3, [r7, #4]
  14041. 800649e: 2b00 cmp r3, #0
  14042. 80064a0: d101 bne.n 80064a6 <HAL_DMA_Abort_IT+0x12>
  14043. {
  14044. return HAL_ERROR;
  14045. 80064a2: 2301 movs r3, #1
  14046. 80064a4: e237 b.n 8006916 <HAL_DMA_Abort_IT+0x482>
  14047. }
  14048. if(hdma->State != HAL_DMA_STATE_BUSY)
  14049. 80064a6: 687b ldr r3, [r7, #4]
  14050. 80064a8: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  14051. 80064ac: b2db uxtb r3, r3
  14052. 80064ae: 2b02 cmp r3, #2
  14053. 80064b0: d004 beq.n 80064bc <HAL_DMA_Abort_IT+0x28>
  14054. {
  14055. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  14056. 80064b2: 687b ldr r3, [r7, #4]
  14057. 80064b4: 2280 movs r2, #128 @ 0x80
  14058. 80064b6: 655a str r2, [r3, #84] @ 0x54
  14059. return HAL_ERROR;
  14060. 80064b8: 2301 movs r3, #1
  14061. 80064ba: e22c b.n 8006916 <HAL_DMA_Abort_IT+0x482>
  14062. }
  14063. else
  14064. {
  14065. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14066. 80064bc: 687b ldr r3, [r7, #4]
  14067. 80064be: 681b ldr r3, [r3, #0]
  14068. 80064c0: 4a5c ldr r2, [pc, #368] @ (8006634 <HAL_DMA_Abort_IT+0x1a0>)
  14069. 80064c2: 4293 cmp r3, r2
  14070. 80064c4: d04a beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14071. 80064c6: 687b ldr r3, [r7, #4]
  14072. 80064c8: 681b ldr r3, [r3, #0]
  14073. 80064ca: 4a5b ldr r2, [pc, #364] @ (8006638 <HAL_DMA_Abort_IT+0x1a4>)
  14074. 80064cc: 4293 cmp r3, r2
  14075. 80064ce: d045 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14076. 80064d0: 687b ldr r3, [r7, #4]
  14077. 80064d2: 681b ldr r3, [r3, #0]
  14078. 80064d4: 4a59 ldr r2, [pc, #356] @ (800663c <HAL_DMA_Abort_IT+0x1a8>)
  14079. 80064d6: 4293 cmp r3, r2
  14080. 80064d8: d040 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14081. 80064da: 687b ldr r3, [r7, #4]
  14082. 80064dc: 681b ldr r3, [r3, #0]
  14083. 80064de: 4a58 ldr r2, [pc, #352] @ (8006640 <HAL_DMA_Abort_IT+0x1ac>)
  14084. 80064e0: 4293 cmp r3, r2
  14085. 80064e2: d03b beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14086. 80064e4: 687b ldr r3, [r7, #4]
  14087. 80064e6: 681b ldr r3, [r3, #0]
  14088. 80064e8: 4a56 ldr r2, [pc, #344] @ (8006644 <HAL_DMA_Abort_IT+0x1b0>)
  14089. 80064ea: 4293 cmp r3, r2
  14090. 80064ec: d036 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14091. 80064ee: 687b ldr r3, [r7, #4]
  14092. 80064f0: 681b ldr r3, [r3, #0]
  14093. 80064f2: 4a55 ldr r2, [pc, #340] @ (8006648 <HAL_DMA_Abort_IT+0x1b4>)
  14094. 80064f4: 4293 cmp r3, r2
  14095. 80064f6: d031 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14096. 80064f8: 687b ldr r3, [r7, #4]
  14097. 80064fa: 681b ldr r3, [r3, #0]
  14098. 80064fc: 4a53 ldr r2, [pc, #332] @ (800664c <HAL_DMA_Abort_IT+0x1b8>)
  14099. 80064fe: 4293 cmp r3, r2
  14100. 8006500: d02c beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14101. 8006502: 687b ldr r3, [r7, #4]
  14102. 8006504: 681b ldr r3, [r3, #0]
  14103. 8006506: 4a52 ldr r2, [pc, #328] @ (8006650 <HAL_DMA_Abort_IT+0x1bc>)
  14104. 8006508: 4293 cmp r3, r2
  14105. 800650a: d027 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14106. 800650c: 687b ldr r3, [r7, #4]
  14107. 800650e: 681b ldr r3, [r3, #0]
  14108. 8006510: 4a50 ldr r2, [pc, #320] @ (8006654 <HAL_DMA_Abort_IT+0x1c0>)
  14109. 8006512: 4293 cmp r3, r2
  14110. 8006514: d022 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14111. 8006516: 687b ldr r3, [r7, #4]
  14112. 8006518: 681b ldr r3, [r3, #0]
  14113. 800651a: 4a4f ldr r2, [pc, #316] @ (8006658 <HAL_DMA_Abort_IT+0x1c4>)
  14114. 800651c: 4293 cmp r3, r2
  14115. 800651e: d01d beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14116. 8006520: 687b ldr r3, [r7, #4]
  14117. 8006522: 681b ldr r3, [r3, #0]
  14118. 8006524: 4a4d ldr r2, [pc, #308] @ (800665c <HAL_DMA_Abort_IT+0x1c8>)
  14119. 8006526: 4293 cmp r3, r2
  14120. 8006528: d018 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14121. 800652a: 687b ldr r3, [r7, #4]
  14122. 800652c: 681b ldr r3, [r3, #0]
  14123. 800652e: 4a4c ldr r2, [pc, #304] @ (8006660 <HAL_DMA_Abort_IT+0x1cc>)
  14124. 8006530: 4293 cmp r3, r2
  14125. 8006532: d013 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14126. 8006534: 687b ldr r3, [r7, #4]
  14127. 8006536: 681b ldr r3, [r3, #0]
  14128. 8006538: 4a4a ldr r2, [pc, #296] @ (8006664 <HAL_DMA_Abort_IT+0x1d0>)
  14129. 800653a: 4293 cmp r3, r2
  14130. 800653c: d00e beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14131. 800653e: 687b ldr r3, [r7, #4]
  14132. 8006540: 681b ldr r3, [r3, #0]
  14133. 8006542: 4a49 ldr r2, [pc, #292] @ (8006668 <HAL_DMA_Abort_IT+0x1d4>)
  14134. 8006544: 4293 cmp r3, r2
  14135. 8006546: d009 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14136. 8006548: 687b ldr r3, [r7, #4]
  14137. 800654a: 681b ldr r3, [r3, #0]
  14138. 800654c: 4a47 ldr r2, [pc, #284] @ (800666c <HAL_DMA_Abort_IT+0x1d8>)
  14139. 800654e: 4293 cmp r3, r2
  14140. 8006550: d004 beq.n 800655c <HAL_DMA_Abort_IT+0xc8>
  14141. 8006552: 687b ldr r3, [r7, #4]
  14142. 8006554: 681b ldr r3, [r3, #0]
  14143. 8006556: 4a46 ldr r2, [pc, #280] @ (8006670 <HAL_DMA_Abort_IT+0x1dc>)
  14144. 8006558: 4293 cmp r3, r2
  14145. 800655a: d101 bne.n 8006560 <HAL_DMA_Abort_IT+0xcc>
  14146. 800655c: 2301 movs r3, #1
  14147. 800655e: e000 b.n 8006562 <HAL_DMA_Abort_IT+0xce>
  14148. 8006560: 2300 movs r3, #0
  14149. 8006562: 2b00 cmp r3, #0
  14150. 8006564: f000 8086 beq.w 8006674 <HAL_DMA_Abort_IT+0x1e0>
  14151. {
  14152. /* Set Abort State */
  14153. hdma->State = HAL_DMA_STATE_ABORT;
  14154. 8006568: 687b ldr r3, [r7, #4]
  14155. 800656a: 2204 movs r2, #4
  14156. 800656c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14157. /* Disable the stream */
  14158. __HAL_DMA_DISABLE(hdma);
  14159. 8006570: 687b ldr r3, [r7, #4]
  14160. 8006572: 681b ldr r3, [r3, #0]
  14161. 8006574: 4a2f ldr r2, [pc, #188] @ (8006634 <HAL_DMA_Abort_IT+0x1a0>)
  14162. 8006576: 4293 cmp r3, r2
  14163. 8006578: d04a beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14164. 800657a: 687b ldr r3, [r7, #4]
  14165. 800657c: 681b ldr r3, [r3, #0]
  14166. 800657e: 4a2e ldr r2, [pc, #184] @ (8006638 <HAL_DMA_Abort_IT+0x1a4>)
  14167. 8006580: 4293 cmp r3, r2
  14168. 8006582: d045 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14169. 8006584: 687b ldr r3, [r7, #4]
  14170. 8006586: 681b ldr r3, [r3, #0]
  14171. 8006588: 4a2c ldr r2, [pc, #176] @ (800663c <HAL_DMA_Abort_IT+0x1a8>)
  14172. 800658a: 4293 cmp r3, r2
  14173. 800658c: d040 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14174. 800658e: 687b ldr r3, [r7, #4]
  14175. 8006590: 681b ldr r3, [r3, #0]
  14176. 8006592: 4a2b ldr r2, [pc, #172] @ (8006640 <HAL_DMA_Abort_IT+0x1ac>)
  14177. 8006594: 4293 cmp r3, r2
  14178. 8006596: d03b beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14179. 8006598: 687b ldr r3, [r7, #4]
  14180. 800659a: 681b ldr r3, [r3, #0]
  14181. 800659c: 4a29 ldr r2, [pc, #164] @ (8006644 <HAL_DMA_Abort_IT+0x1b0>)
  14182. 800659e: 4293 cmp r3, r2
  14183. 80065a0: d036 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14184. 80065a2: 687b ldr r3, [r7, #4]
  14185. 80065a4: 681b ldr r3, [r3, #0]
  14186. 80065a6: 4a28 ldr r2, [pc, #160] @ (8006648 <HAL_DMA_Abort_IT+0x1b4>)
  14187. 80065a8: 4293 cmp r3, r2
  14188. 80065aa: d031 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14189. 80065ac: 687b ldr r3, [r7, #4]
  14190. 80065ae: 681b ldr r3, [r3, #0]
  14191. 80065b0: 4a26 ldr r2, [pc, #152] @ (800664c <HAL_DMA_Abort_IT+0x1b8>)
  14192. 80065b2: 4293 cmp r3, r2
  14193. 80065b4: d02c beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14194. 80065b6: 687b ldr r3, [r7, #4]
  14195. 80065b8: 681b ldr r3, [r3, #0]
  14196. 80065ba: 4a25 ldr r2, [pc, #148] @ (8006650 <HAL_DMA_Abort_IT+0x1bc>)
  14197. 80065bc: 4293 cmp r3, r2
  14198. 80065be: d027 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14199. 80065c0: 687b ldr r3, [r7, #4]
  14200. 80065c2: 681b ldr r3, [r3, #0]
  14201. 80065c4: 4a23 ldr r2, [pc, #140] @ (8006654 <HAL_DMA_Abort_IT+0x1c0>)
  14202. 80065c6: 4293 cmp r3, r2
  14203. 80065c8: d022 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14204. 80065ca: 687b ldr r3, [r7, #4]
  14205. 80065cc: 681b ldr r3, [r3, #0]
  14206. 80065ce: 4a22 ldr r2, [pc, #136] @ (8006658 <HAL_DMA_Abort_IT+0x1c4>)
  14207. 80065d0: 4293 cmp r3, r2
  14208. 80065d2: d01d beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14209. 80065d4: 687b ldr r3, [r7, #4]
  14210. 80065d6: 681b ldr r3, [r3, #0]
  14211. 80065d8: 4a20 ldr r2, [pc, #128] @ (800665c <HAL_DMA_Abort_IT+0x1c8>)
  14212. 80065da: 4293 cmp r3, r2
  14213. 80065dc: d018 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14214. 80065de: 687b ldr r3, [r7, #4]
  14215. 80065e0: 681b ldr r3, [r3, #0]
  14216. 80065e2: 4a1f ldr r2, [pc, #124] @ (8006660 <HAL_DMA_Abort_IT+0x1cc>)
  14217. 80065e4: 4293 cmp r3, r2
  14218. 80065e6: d013 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14219. 80065e8: 687b ldr r3, [r7, #4]
  14220. 80065ea: 681b ldr r3, [r3, #0]
  14221. 80065ec: 4a1d ldr r2, [pc, #116] @ (8006664 <HAL_DMA_Abort_IT+0x1d0>)
  14222. 80065ee: 4293 cmp r3, r2
  14223. 80065f0: d00e beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14224. 80065f2: 687b ldr r3, [r7, #4]
  14225. 80065f4: 681b ldr r3, [r3, #0]
  14226. 80065f6: 4a1c ldr r2, [pc, #112] @ (8006668 <HAL_DMA_Abort_IT+0x1d4>)
  14227. 80065f8: 4293 cmp r3, r2
  14228. 80065fa: d009 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14229. 80065fc: 687b ldr r3, [r7, #4]
  14230. 80065fe: 681b ldr r3, [r3, #0]
  14231. 8006600: 4a1a ldr r2, [pc, #104] @ (800666c <HAL_DMA_Abort_IT+0x1d8>)
  14232. 8006602: 4293 cmp r3, r2
  14233. 8006604: d004 beq.n 8006610 <HAL_DMA_Abort_IT+0x17c>
  14234. 8006606: 687b ldr r3, [r7, #4]
  14235. 8006608: 681b ldr r3, [r3, #0]
  14236. 800660a: 4a19 ldr r2, [pc, #100] @ (8006670 <HAL_DMA_Abort_IT+0x1dc>)
  14237. 800660c: 4293 cmp r3, r2
  14238. 800660e: d108 bne.n 8006622 <HAL_DMA_Abort_IT+0x18e>
  14239. 8006610: 687b ldr r3, [r7, #4]
  14240. 8006612: 681b ldr r3, [r3, #0]
  14241. 8006614: 681a ldr r2, [r3, #0]
  14242. 8006616: 687b ldr r3, [r7, #4]
  14243. 8006618: 681b ldr r3, [r3, #0]
  14244. 800661a: f022 0201 bic.w r2, r2, #1
  14245. 800661e: 601a str r2, [r3, #0]
  14246. 8006620: e178 b.n 8006914 <HAL_DMA_Abort_IT+0x480>
  14247. 8006622: 687b ldr r3, [r7, #4]
  14248. 8006624: 681b ldr r3, [r3, #0]
  14249. 8006626: 681a ldr r2, [r3, #0]
  14250. 8006628: 687b ldr r3, [r7, #4]
  14251. 800662a: 681b ldr r3, [r3, #0]
  14252. 800662c: f022 0201 bic.w r2, r2, #1
  14253. 8006630: 601a str r2, [r3, #0]
  14254. 8006632: e16f b.n 8006914 <HAL_DMA_Abort_IT+0x480>
  14255. 8006634: 40020010 .word 0x40020010
  14256. 8006638: 40020028 .word 0x40020028
  14257. 800663c: 40020040 .word 0x40020040
  14258. 8006640: 40020058 .word 0x40020058
  14259. 8006644: 40020070 .word 0x40020070
  14260. 8006648: 40020088 .word 0x40020088
  14261. 800664c: 400200a0 .word 0x400200a0
  14262. 8006650: 400200b8 .word 0x400200b8
  14263. 8006654: 40020410 .word 0x40020410
  14264. 8006658: 40020428 .word 0x40020428
  14265. 800665c: 40020440 .word 0x40020440
  14266. 8006660: 40020458 .word 0x40020458
  14267. 8006664: 40020470 .word 0x40020470
  14268. 8006668: 40020488 .word 0x40020488
  14269. 800666c: 400204a0 .word 0x400204a0
  14270. 8006670: 400204b8 .word 0x400204b8
  14271. }
  14272. else /* BDMA channel */
  14273. {
  14274. /* Disable DMA All Interrupts */
  14275. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  14276. 8006674: 687b ldr r3, [r7, #4]
  14277. 8006676: 681b ldr r3, [r3, #0]
  14278. 8006678: 681a ldr r2, [r3, #0]
  14279. 800667a: 687b ldr r3, [r7, #4]
  14280. 800667c: 681b ldr r3, [r3, #0]
  14281. 800667e: f022 020e bic.w r2, r2, #14
  14282. 8006682: 601a str r2, [r3, #0]
  14283. /* Disable the channel */
  14284. __HAL_DMA_DISABLE(hdma);
  14285. 8006684: 687b ldr r3, [r7, #4]
  14286. 8006686: 681b ldr r3, [r3, #0]
  14287. 8006688: 4a6c ldr r2, [pc, #432] @ (800683c <HAL_DMA_Abort_IT+0x3a8>)
  14288. 800668a: 4293 cmp r3, r2
  14289. 800668c: d04a beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14290. 800668e: 687b ldr r3, [r7, #4]
  14291. 8006690: 681b ldr r3, [r3, #0]
  14292. 8006692: 4a6b ldr r2, [pc, #428] @ (8006840 <HAL_DMA_Abort_IT+0x3ac>)
  14293. 8006694: 4293 cmp r3, r2
  14294. 8006696: d045 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14295. 8006698: 687b ldr r3, [r7, #4]
  14296. 800669a: 681b ldr r3, [r3, #0]
  14297. 800669c: 4a69 ldr r2, [pc, #420] @ (8006844 <HAL_DMA_Abort_IT+0x3b0>)
  14298. 800669e: 4293 cmp r3, r2
  14299. 80066a0: d040 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14300. 80066a2: 687b ldr r3, [r7, #4]
  14301. 80066a4: 681b ldr r3, [r3, #0]
  14302. 80066a6: 4a68 ldr r2, [pc, #416] @ (8006848 <HAL_DMA_Abort_IT+0x3b4>)
  14303. 80066a8: 4293 cmp r3, r2
  14304. 80066aa: d03b beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14305. 80066ac: 687b ldr r3, [r7, #4]
  14306. 80066ae: 681b ldr r3, [r3, #0]
  14307. 80066b0: 4a66 ldr r2, [pc, #408] @ (800684c <HAL_DMA_Abort_IT+0x3b8>)
  14308. 80066b2: 4293 cmp r3, r2
  14309. 80066b4: d036 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14310. 80066b6: 687b ldr r3, [r7, #4]
  14311. 80066b8: 681b ldr r3, [r3, #0]
  14312. 80066ba: 4a65 ldr r2, [pc, #404] @ (8006850 <HAL_DMA_Abort_IT+0x3bc>)
  14313. 80066bc: 4293 cmp r3, r2
  14314. 80066be: d031 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14315. 80066c0: 687b ldr r3, [r7, #4]
  14316. 80066c2: 681b ldr r3, [r3, #0]
  14317. 80066c4: 4a63 ldr r2, [pc, #396] @ (8006854 <HAL_DMA_Abort_IT+0x3c0>)
  14318. 80066c6: 4293 cmp r3, r2
  14319. 80066c8: d02c beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14320. 80066ca: 687b ldr r3, [r7, #4]
  14321. 80066cc: 681b ldr r3, [r3, #0]
  14322. 80066ce: 4a62 ldr r2, [pc, #392] @ (8006858 <HAL_DMA_Abort_IT+0x3c4>)
  14323. 80066d0: 4293 cmp r3, r2
  14324. 80066d2: d027 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14325. 80066d4: 687b ldr r3, [r7, #4]
  14326. 80066d6: 681b ldr r3, [r3, #0]
  14327. 80066d8: 4a60 ldr r2, [pc, #384] @ (800685c <HAL_DMA_Abort_IT+0x3c8>)
  14328. 80066da: 4293 cmp r3, r2
  14329. 80066dc: d022 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14330. 80066de: 687b ldr r3, [r7, #4]
  14331. 80066e0: 681b ldr r3, [r3, #0]
  14332. 80066e2: 4a5f ldr r2, [pc, #380] @ (8006860 <HAL_DMA_Abort_IT+0x3cc>)
  14333. 80066e4: 4293 cmp r3, r2
  14334. 80066e6: d01d beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14335. 80066e8: 687b ldr r3, [r7, #4]
  14336. 80066ea: 681b ldr r3, [r3, #0]
  14337. 80066ec: 4a5d ldr r2, [pc, #372] @ (8006864 <HAL_DMA_Abort_IT+0x3d0>)
  14338. 80066ee: 4293 cmp r3, r2
  14339. 80066f0: d018 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14340. 80066f2: 687b ldr r3, [r7, #4]
  14341. 80066f4: 681b ldr r3, [r3, #0]
  14342. 80066f6: 4a5c ldr r2, [pc, #368] @ (8006868 <HAL_DMA_Abort_IT+0x3d4>)
  14343. 80066f8: 4293 cmp r3, r2
  14344. 80066fa: d013 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14345. 80066fc: 687b ldr r3, [r7, #4]
  14346. 80066fe: 681b ldr r3, [r3, #0]
  14347. 8006700: 4a5a ldr r2, [pc, #360] @ (800686c <HAL_DMA_Abort_IT+0x3d8>)
  14348. 8006702: 4293 cmp r3, r2
  14349. 8006704: d00e beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14350. 8006706: 687b ldr r3, [r7, #4]
  14351. 8006708: 681b ldr r3, [r3, #0]
  14352. 800670a: 4a59 ldr r2, [pc, #356] @ (8006870 <HAL_DMA_Abort_IT+0x3dc>)
  14353. 800670c: 4293 cmp r3, r2
  14354. 800670e: d009 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14355. 8006710: 687b ldr r3, [r7, #4]
  14356. 8006712: 681b ldr r3, [r3, #0]
  14357. 8006714: 4a57 ldr r2, [pc, #348] @ (8006874 <HAL_DMA_Abort_IT+0x3e0>)
  14358. 8006716: 4293 cmp r3, r2
  14359. 8006718: d004 beq.n 8006724 <HAL_DMA_Abort_IT+0x290>
  14360. 800671a: 687b ldr r3, [r7, #4]
  14361. 800671c: 681b ldr r3, [r3, #0]
  14362. 800671e: 4a56 ldr r2, [pc, #344] @ (8006878 <HAL_DMA_Abort_IT+0x3e4>)
  14363. 8006720: 4293 cmp r3, r2
  14364. 8006722: d108 bne.n 8006736 <HAL_DMA_Abort_IT+0x2a2>
  14365. 8006724: 687b ldr r3, [r7, #4]
  14366. 8006726: 681b ldr r3, [r3, #0]
  14367. 8006728: 681a ldr r2, [r3, #0]
  14368. 800672a: 687b ldr r3, [r7, #4]
  14369. 800672c: 681b ldr r3, [r3, #0]
  14370. 800672e: f022 0201 bic.w r2, r2, #1
  14371. 8006732: 601a str r2, [r3, #0]
  14372. 8006734: e007 b.n 8006746 <HAL_DMA_Abort_IT+0x2b2>
  14373. 8006736: 687b ldr r3, [r7, #4]
  14374. 8006738: 681b ldr r3, [r3, #0]
  14375. 800673a: 681a ldr r2, [r3, #0]
  14376. 800673c: 687b ldr r3, [r7, #4]
  14377. 800673e: 681b ldr r3, [r3, #0]
  14378. 8006740: f022 0201 bic.w r2, r2, #1
  14379. 8006744: 601a str r2, [r3, #0]
  14380. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  14381. 8006746: 687b ldr r3, [r7, #4]
  14382. 8006748: 681b ldr r3, [r3, #0]
  14383. 800674a: 4a3c ldr r2, [pc, #240] @ (800683c <HAL_DMA_Abort_IT+0x3a8>)
  14384. 800674c: 4293 cmp r3, r2
  14385. 800674e: d072 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14386. 8006750: 687b ldr r3, [r7, #4]
  14387. 8006752: 681b ldr r3, [r3, #0]
  14388. 8006754: 4a3a ldr r2, [pc, #232] @ (8006840 <HAL_DMA_Abort_IT+0x3ac>)
  14389. 8006756: 4293 cmp r3, r2
  14390. 8006758: d06d beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14391. 800675a: 687b ldr r3, [r7, #4]
  14392. 800675c: 681b ldr r3, [r3, #0]
  14393. 800675e: 4a39 ldr r2, [pc, #228] @ (8006844 <HAL_DMA_Abort_IT+0x3b0>)
  14394. 8006760: 4293 cmp r3, r2
  14395. 8006762: d068 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14396. 8006764: 687b ldr r3, [r7, #4]
  14397. 8006766: 681b ldr r3, [r3, #0]
  14398. 8006768: 4a37 ldr r2, [pc, #220] @ (8006848 <HAL_DMA_Abort_IT+0x3b4>)
  14399. 800676a: 4293 cmp r3, r2
  14400. 800676c: d063 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14401. 800676e: 687b ldr r3, [r7, #4]
  14402. 8006770: 681b ldr r3, [r3, #0]
  14403. 8006772: 4a36 ldr r2, [pc, #216] @ (800684c <HAL_DMA_Abort_IT+0x3b8>)
  14404. 8006774: 4293 cmp r3, r2
  14405. 8006776: d05e beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14406. 8006778: 687b ldr r3, [r7, #4]
  14407. 800677a: 681b ldr r3, [r3, #0]
  14408. 800677c: 4a34 ldr r2, [pc, #208] @ (8006850 <HAL_DMA_Abort_IT+0x3bc>)
  14409. 800677e: 4293 cmp r3, r2
  14410. 8006780: d059 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14411. 8006782: 687b ldr r3, [r7, #4]
  14412. 8006784: 681b ldr r3, [r3, #0]
  14413. 8006786: 4a33 ldr r2, [pc, #204] @ (8006854 <HAL_DMA_Abort_IT+0x3c0>)
  14414. 8006788: 4293 cmp r3, r2
  14415. 800678a: d054 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14416. 800678c: 687b ldr r3, [r7, #4]
  14417. 800678e: 681b ldr r3, [r3, #0]
  14418. 8006790: 4a31 ldr r2, [pc, #196] @ (8006858 <HAL_DMA_Abort_IT+0x3c4>)
  14419. 8006792: 4293 cmp r3, r2
  14420. 8006794: d04f beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14421. 8006796: 687b ldr r3, [r7, #4]
  14422. 8006798: 681b ldr r3, [r3, #0]
  14423. 800679a: 4a30 ldr r2, [pc, #192] @ (800685c <HAL_DMA_Abort_IT+0x3c8>)
  14424. 800679c: 4293 cmp r3, r2
  14425. 800679e: d04a beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14426. 80067a0: 687b ldr r3, [r7, #4]
  14427. 80067a2: 681b ldr r3, [r3, #0]
  14428. 80067a4: 4a2e ldr r2, [pc, #184] @ (8006860 <HAL_DMA_Abort_IT+0x3cc>)
  14429. 80067a6: 4293 cmp r3, r2
  14430. 80067a8: d045 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14431. 80067aa: 687b ldr r3, [r7, #4]
  14432. 80067ac: 681b ldr r3, [r3, #0]
  14433. 80067ae: 4a2d ldr r2, [pc, #180] @ (8006864 <HAL_DMA_Abort_IT+0x3d0>)
  14434. 80067b0: 4293 cmp r3, r2
  14435. 80067b2: d040 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14436. 80067b4: 687b ldr r3, [r7, #4]
  14437. 80067b6: 681b ldr r3, [r3, #0]
  14438. 80067b8: 4a2b ldr r2, [pc, #172] @ (8006868 <HAL_DMA_Abort_IT+0x3d4>)
  14439. 80067ba: 4293 cmp r3, r2
  14440. 80067bc: d03b beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14441. 80067be: 687b ldr r3, [r7, #4]
  14442. 80067c0: 681b ldr r3, [r3, #0]
  14443. 80067c2: 4a2a ldr r2, [pc, #168] @ (800686c <HAL_DMA_Abort_IT+0x3d8>)
  14444. 80067c4: 4293 cmp r3, r2
  14445. 80067c6: d036 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14446. 80067c8: 687b ldr r3, [r7, #4]
  14447. 80067ca: 681b ldr r3, [r3, #0]
  14448. 80067cc: 4a28 ldr r2, [pc, #160] @ (8006870 <HAL_DMA_Abort_IT+0x3dc>)
  14449. 80067ce: 4293 cmp r3, r2
  14450. 80067d0: d031 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14451. 80067d2: 687b ldr r3, [r7, #4]
  14452. 80067d4: 681b ldr r3, [r3, #0]
  14453. 80067d6: 4a27 ldr r2, [pc, #156] @ (8006874 <HAL_DMA_Abort_IT+0x3e0>)
  14454. 80067d8: 4293 cmp r3, r2
  14455. 80067da: d02c beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14456. 80067dc: 687b ldr r3, [r7, #4]
  14457. 80067de: 681b ldr r3, [r3, #0]
  14458. 80067e0: 4a25 ldr r2, [pc, #148] @ (8006878 <HAL_DMA_Abort_IT+0x3e4>)
  14459. 80067e2: 4293 cmp r3, r2
  14460. 80067e4: d027 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14461. 80067e6: 687b ldr r3, [r7, #4]
  14462. 80067e8: 681b ldr r3, [r3, #0]
  14463. 80067ea: 4a24 ldr r2, [pc, #144] @ (800687c <HAL_DMA_Abort_IT+0x3e8>)
  14464. 80067ec: 4293 cmp r3, r2
  14465. 80067ee: d022 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14466. 80067f0: 687b ldr r3, [r7, #4]
  14467. 80067f2: 681b ldr r3, [r3, #0]
  14468. 80067f4: 4a22 ldr r2, [pc, #136] @ (8006880 <HAL_DMA_Abort_IT+0x3ec>)
  14469. 80067f6: 4293 cmp r3, r2
  14470. 80067f8: d01d beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14471. 80067fa: 687b ldr r3, [r7, #4]
  14472. 80067fc: 681b ldr r3, [r3, #0]
  14473. 80067fe: 4a21 ldr r2, [pc, #132] @ (8006884 <HAL_DMA_Abort_IT+0x3f0>)
  14474. 8006800: 4293 cmp r3, r2
  14475. 8006802: d018 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14476. 8006804: 687b ldr r3, [r7, #4]
  14477. 8006806: 681b ldr r3, [r3, #0]
  14478. 8006808: 4a1f ldr r2, [pc, #124] @ (8006888 <HAL_DMA_Abort_IT+0x3f4>)
  14479. 800680a: 4293 cmp r3, r2
  14480. 800680c: d013 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14481. 800680e: 687b ldr r3, [r7, #4]
  14482. 8006810: 681b ldr r3, [r3, #0]
  14483. 8006812: 4a1e ldr r2, [pc, #120] @ (800688c <HAL_DMA_Abort_IT+0x3f8>)
  14484. 8006814: 4293 cmp r3, r2
  14485. 8006816: d00e beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14486. 8006818: 687b ldr r3, [r7, #4]
  14487. 800681a: 681b ldr r3, [r3, #0]
  14488. 800681c: 4a1c ldr r2, [pc, #112] @ (8006890 <HAL_DMA_Abort_IT+0x3fc>)
  14489. 800681e: 4293 cmp r3, r2
  14490. 8006820: d009 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14491. 8006822: 687b ldr r3, [r7, #4]
  14492. 8006824: 681b ldr r3, [r3, #0]
  14493. 8006826: 4a1b ldr r2, [pc, #108] @ (8006894 <HAL_DMA_Abort_IT+0x400>)
  14494. 8006828: 4293 cmp r3, r2
  14495. 800682a: d004 beq.n 8006836 <HAL_DMA_Abort_IT+0x3a2>
  14496. 800682c: 687b ldr r3, [r7, #4]
  14497. 800682e: 681b ldr r3, [r3, #0]
  14498. 8006830: 4a19 ldr r2, [pc, #100] @ (8006898 <HAL_DMA_Abort_IT+0x404>)
  14499. 8006832: 4293 cmp r3, r2
  14500. 8006834: d132 bne.n 800689c <HAL_DMA_Abort_IT+0x408>
  14501. 8006836: 2301 movs r3, #1
  14502. 8006838: e031 b.n 800689e <HAL_DMA_Abort_IT+0x40a>
  14503. 800683a: bf00 nop
  14504. 800683c: 40020010 .word 0x40020010
  14505. 8006840: 40020028 .word 0x40020028
  14506. 8006844: 40020040 .word 0x40020040
  14507. 8006848: 40020058 .word 0x40020058
  14508. 800684c: 40020070 .word 0x40020070
  14509. 8006850: 40020088 .word 0x40020088
  14510. 8006854: 400200a0 .word 0x400200a0
  14511. 8006858: 400200b8 .word 0x400200b8
  14512. 800685c: 40020410 .word 0x40020410
  14513. 8006860: 40020428 .word 0x40020428
  14514. 8006864: 40020440 .word 0x40020440
  14515. 8006868: 40020458 .word 0x40020458
  14516. 800686c: 40020470 .word 0x40020470
  14517. 8006870: 40020488 .word 0x40020488
  14518. 8006874: 400204a0 .word 0x400204a0
  14519. 8006878: 400204b8 .word 0x400204b8
  14520. 800687c: 58025408 .word 0x58025408
  14521. 8006880: 5802541c .word 0x5802541c
  14522. 8006884: 58025430 .word 0x58025430
  14523. 8006888: 58025444 .word 0x58025444
  14524. 800688c: 58025458 .word 0x58025458
  14525. 8006890: 5802546c .word 0x5802546c
  14526. 8006894: 58025480 .word 0x58025480
  14527. 8006898: 58025494 .word 0x58025494
  14528. 800689c: 2300 movs r3, #0
  14529. 800689e: 2b00 cmp r3, #0
  14530. 80068a0: d028 beq.n 80068f4 <HAL_DMA_Abort_IT+0x460>
  14531. {
  14532. /* disable the DMAMUX sync overrun IT */
  14533. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  14534. 80068a2: 687b ldr r3, [r7, #4]
  14535. 80068a4: 6e1b ldr r3, [r3, #96] @ 0x60
  14536. 80068a6: 681a ldr r2, [r3, #0]
  14537. 80068a8: 687b ldr r3, [r7, #4]
  14538. 80068aa: 6e1b ldr r3, [r3, #96] @ 0x60
  14539. 80068ac: f422 7280 bic.w r2, r2, #256 @ 0x100
  14540. 80068b0: 601a str r2, [r3, #0]
  14541. /* Clear all flags */
  14542. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  14543. 80068b2: 687b ldr r3, [r7, #4]
  14544. 80068b4: 6d9b ldr r3, [r3, #88] @ 0x58
  14545. 80068b6: 60fb str r3, [r7, #12]
  14546. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  14547. 80068b8: 687b ldr r3, [r7, #4]
  14548. 80068ba: 6ddb ldr r3, [r3, #92] @ 0x5c
  14549. 80068bc: f003 031f and.w r3, r3, #31
  14550. 80068c0: 2201 movs r2, #1
  14551. 80068c2: 409a lsls r2, r3
  14552. 80068c4: 68fb ldr r3, [r7, #12]
  14553. 80068c6: 605a str r2, [r3, #4]
  14554. /* Clear the DMAMUX synchro overrun flag */
  14555. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  14556. 80068c8: 687b ldr r3, [r7, #4]
  14557. 80068ca: 6e5b ldr r3, [r3, #100] @ 0x64
  14558. 80068cc: 687a ldr r2, [r7, #4]
  14559. 80068ce: 6e92 ldr r2, [r2, #104] @ 0x68
  14560. 80068d0: 605a str r2, [r3, #4]
  14561. if(hdma->DMAmuxRequestGen != 0U)
  14562. 80068d2: 687b ldr r3, [r7, #4]
  14563. 80068d4: 6edb ldr r3, [r3, #108] @ 0x6c
  14564. 80068d6: 2b00 cmp r3, #0
  14565. 80068d8: d00c beq.n 80068f4 <HAL_DMA_Abort_IT+0x460>
  14566. {
  14567. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  14568. /* disable the request gen overrun IT */
  14569. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  14570. 80068da: 687b ldr r3, [r7, #4]
  14571. 80068dc: 6edb ldr r3, [r3, #108] @ 0x6c
  14572. 80068de: 681a ldr r2, [r3, #0]
  14573. 80068e0: 687b ldr r3, [r7, #4]
  14574. 80068e2: 6edb ldr r3, [r3, #108] @ 0x6c
  14575. 80068e4: f422 7280 bic.w r2, r2, #256 @ 0x100
  14576. 80068e8: 601a str r2, [r3, #0]
  14577. /* Clear the DMAMUX request generator overrun flag */
  14578. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  14579. 80068ea: 687b ldr r3, [r7, #4]
  14580. 80068ec: 6f1b ldr r3, [r3, #112] @ 0x70
  14581. 80068ee: 687a ldr r2, [r7, #4]
  14582. 80068f0: 6f52 ldr r2, [r2, #116] @ 0x74
  14583. 80068f2: 605a str r2, [r3, #4]
  14584. }
  14585. }
  14586. /* Change the DMA state */
  14587. hdma->State = HAL_DMA_STATE_READY;
  14588. 80068f4: 687b ldr r3, [r7, #4]
  14589. 80068f6: 2201 movs r2, #1
  14590. 80068f8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14591. /* Process Unlocked */
  14592. __HAL_UNLOCK(hdma);
  14593. 80068fc: 687b ldr r3, [r7, #4]
  14594. 80068fe: 2200 movs r2, #0
  14595. 8006900: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14596. /* Call User Abort callback */
  14597. if(hdma->XferAbortCallback != NULL)
  14598. 8006904: 687b ldr r3, [r7, #4]
  14599. 8006906: 6d1b ldr r3, [r3, #80] @ 0x50
  14600. 8006908: 2b00 cmp r3, #0
  14601. 800690a: d003 beq.n 8006914 <HAL_DMA_Abort_IT+0x480>
  14602. {
  14603. hdma->XferAbortCallback(hdma);
  14604. 800690c: 687b ldr r3, [r7, #4]
  14605. 800690e: 6d1b ldr r3, [r3, #80] @ 0x50
  14606. 8006910: 6878 ldr r0, [r7, #4]
  14607. 8006912: 4798 blx r3
  14608. }
  14609. }
  14610. }
  14611. return HAL_OK;
  14612. 8006914: 2300 movs r3, #0
  14613. }
  14614. 8006916: 4618 mov r0, r3
  14615. 8006918: 3710 adds r7, #16
  14616. 800691a: 46bd mov sp, r7
  14617. 800691c: bd80 pop {r7, pc}
  14618. 800691e: bf00 nop
  14619. 08006920 <HAL_DMA_IRQHandler>:
  14620. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  14621. * the configuration information for the specified DMA Stream.
  14622. * @retval None
  14623. */
  14624. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  14625. {
  14626. 8006920: b580 push {r7, lr}
  14627. 8006922: b08a sub sp, #40 @ 0x28
  14628. 8006924: af00 add r7, sp, #0
  14629. 8006926: 6078 str r0, [r7, #4]
  14630. uint32_t tmpisr_dma, tmpisr_bdma;
  14631. uint32_t ccr_reg;
  14632. __IO uint32_t count = 0U;
  14633. 8006928: 2300 movs r3, #0
  14634. 800692a: 60fb str r3, [r7, #12]
  14635. uint32_t timeout = SystemCoreClock / 9600U;
  14636. 800692c: 4b67 ldr r3, [pc, #412] @ (8006acc <HAL_DMA_IRQHandler+0x1ac>)
  14637. 800692e: 681b ldr r3, [r3, #0]
  14638. 8006930: 4a67 ldr r2, [pc, #412] @ (8006ad0 <HAL_DMA_IRQHandler+0x1b0>)
  14639. 8006932: fba2 2303 umull r2, r3, r2, r3
  14640. 8006936: 0a9b lsrs r3, r3, #10
  14641. 8006938: 627b str r3, [r7, #36] @ 0x24
  14642. /* calculate DMA base and stream number */
  14643. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  14644. 800693a: 687b ldr r3, [r7, #4]
  14645. 800693c: 6d9b ldr r3, [r3, #88] @ 0x58
  14646. 800693e: 623b str r3, [r7, #32]
  14647. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  14648. 8006940: 687b ldr r3, [r7, #4]
  14649. 8006942: 6d9b ldr r3, [r3, #88] @ 0x58
  14650. 8006944: 61fb str r3, [r7, #28]
  14651. tmpisr_dma = regs_dma->ISR;
  14652. 8006946: 6a3b ldr r3, [r7, #32]
  14653. 8006948: 681b ldr r3, [r3, #0]
  14654. 800694a: 61bb str r3, [r7, #24]
  14655. tmpisr_bdma = regs_bdma->ISR;
  14656. 800694c: 69fb ldr r3, [r7, #28]
  14657. 800694e: 681b ldr r3, [r3, #0]
  14658. 8006950: 617b str r3, [r7, #20]
  14659. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14660. 8006952: 687b ldr r3, [r7, #4]
  14661. 8006954: 681b ldr r3, [r3, #0]
  14662. 8006956: 4a5f ldr r2, [pc, #380] @ (8006ad4 <HAL_DMA_IRQHandler+0x1b4>)
  14663. 8006958: 4293 cmp r3, r2
  14664. 800695a: d04a beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14665. 800695c: 687b ldr r3, [r7, #4]
  14666. 800695e: 681b ldr r3, [r3, #0]
  14667. 8006960: 4a5d ldr r2, [pc, #372] @ (8006ad8 <HAL_DMA_IRQHandler+0x1b8>)
  14668. 8006962: 4293 cmp r3, r2
  14669. 8006964: d045 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14670. 8006966: 687b ldr r3, [r7, #4]
  14671. 8006968: 681b ldr r3, [r3, #0]
  14672. 800696a: 4a5c ldr r2, [pc, #368] @ (8006adc <HAL_DMA_IRQHandler+0x1bc>)
  14673. 800696c: 4293 cmp r3, r2
  14674. 800696e: d040 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14675. 8006970: 687b ldr r3, [r7, #4]
  14676. 8006972: 681b ldr r3, [r3, #0]
  14677. 8006974: 4a5a ldr r2, [pc, #360] @ (8006ae0 <HAL_DMA_IRQHandler+0x1c0>)
  14678. 8006976: 4293 cmp r3, r2
  14679. 8006978: d03b beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14680. 800697a: 687b ldr r3, [r7, #4]
  14681. 800697c: 681b ldr r3, [r3, #0]
  14682. 800697e: 4a59 ldr r2, [pc, #356] @ (8006ae4 <HAL_DMA_IRQHandler+0x1c4>)
  14683. 8006980: 4293 cmp r3, r2
  14684. 8006982: d036 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14685. 8006984: 687b ldr r3, [r7, #4]
  14686. 8006986: 681b ldr r3, [r3, #0]
  14687. 8006988: 4a57 ldr r2, [pc, #348] @ (8006ae8 <HAL_DMA_IRQHandler+0x1c8>)
  14688. 800698a: 4293 cmp r3, r2
  14689. 800698c: d031 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14690. 800698e: 687b ldr r3, [r7, #4]
  14691. 8006990: 681b ldr r3, [r3, #0]
  14692. 8006992: 4a56 ldr r2, [pc, #344] @ (8006aec <HAL_DMA_IRQHandler+0x1cc>)
  14693. 8006994: 4293 cmp r3, r2
  14694. 8006996: d02c beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14695. 8006998: 687b ldr r3, [r7, #4]
  14696. 800699a: 681b ldr r3, [r3, #0]
  14697. 800699c: 4a54 ldr r2, [pc, #336] @ (8006af0 <HAL_DMA_IRQHandler+0x1d0>)
  14698. 800699e: 4293 cmp r3, r2
  14699. 80069a0: d027 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14700. 80069a2: 687b ldr r3, [r7, #4]
  14701. 80069a4: 681b ldr r3, [r3, #0]
  14702. 80069a6: 4a53 ldr r2, [pc, #332] @ (8006af4 <HAL_DMA_IRQHandler+0x1d4>)
  14703. 80069a8: 4293 cmp r3, r2
  14704. 80069aa: d022 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14705. 80069ac: 687b ldr r3, [r7, #4]
  14706. 80069ae: 681b ldr r3, [r3, #0]
  14707. 80069b0: 4a51 ldr r2, [pc, #324] @ (8006af8 <HAL_DMA_IRQHandler+0x1d8>)
  14708. 80069b2: 4293 cmp r3, r2
  14709. 80069b4: d01d beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14710. 80069b6: 687b ldr r3, [r7, #4]
  14711. 80069b8: 681b ldr r3, [r3, #0]
  14712. 80069ba: 4a50 ldr r2, [pc, #320] @ (8006afc <HAL_DMA_IRQHandler+0x1dc>)
  14713. 80069bc: 4293 cmp r3, r2
  14714. 80069be: d018 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14715. 80069c0: 687b ldr r3, [r7, #4]
  14716. 80069c2: 681b ldr r3, [r3, #0]
  14717. 80069c4: 4a4e ldr r2, [pc, #312] @ (8006b00 <HAL_DMA_IRQHandler+0x1e0>)
  14718. 80069c6: 4293 cmp r3, r2
  14719. 80069c8: d013 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14720. 80069ca: 687b ldr r3, [r7, #4]
  14721. 80069cc: 681b ldr r3, [r3, #0]
  14722. 80069ce: 4a4d ldr r2, [pc, #308] @ (8006b04 <HAL_DMA_IRQHandler+0x1e4>)
  14723. 80069d0: 4293 cmp r3, r2
  14724. 80069d2: d00e beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14725. 80069d4: 687b ldr r3, [r7, #4]
  14726. 80069d6: 681b ldr r3, [r3, #0]
  14727. 80069d8: 4a4b ldr r2, [pc, #300] @ (8006b08 <HAL_DMA_IRQHandler+0x1e8>)
  14728. 80069da: 4293 cmp r3, r2
  14729. 80069dc: d009 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14730. 80069de: 687b ldr r3, [r7, #4]
  14731. 80069e0: 681b ldr r3, [r3, #0]
  14732. 80069e2: 4a4a ldr r2, [pc, #296] @ (8006b0c <HAL_DMA_IRQHandler+0x1ec>)
  14733. 80069e4: 4293 cmp r3, r2
  14734. 80069e6: d004 beq.n 80069f2 <HAL_DMA_IRQHandler+0xd2>
  14735. 80069e8: 687b ldr r3, [r7, #4]
  14736. 80069ea: 681b ldr r3, [r3, #0]
  14737. 80069ec: 4a48 ldr r2, [pc, #288] @ (8006b10 <HAL_DMA_IRQHandler+0x1f0>)
  14738. 80069ee: 4293 cmp r3, r2
  14739. 80069f0: d101 bne.n 80069f6 <HAL_DMA_IRQHandler+0xd6>
  14740. 80069f2: 2301 movs r3, #1
  14741. 80069f4: e000 b.n 80069f8 <HAL_DMA_IRQHandler+0xd8>
  14742. 80069f6: 2300 movs r3, #0
  14743. 80069f8: 2b00 cmp r3, #0
  14744. 80069fa: f000 842b beq.w 8007254 <HAL_DMA_IRQHandler+0x934>
  14745. {
  14746. /* Transfer Error Interrupt management ***************************************/
  14747. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14748. 80069fe: 687b ldr r3, [r7, #4]
  14749. 8006a00: 6ddb ldr r3, [r3, #92] @ 0x5c
  14750. 8006a02: f003 031f and.w r3, r3, #31
  14751. 8006a06: 2208 movs r2, #8
  14752. 8006a08: 409a lsls r2, r3
  14753. 8006a0a: 69bb ldr r3, [r7, #24]
  14754. 8006a0c: 4013 ands r3, r2
  14755. 8006a0e: 2b00 cmp r3, #0
  14756. 8006a10: f000 80a2 beq.w 8006b58 <HAL_DMA_IRQHandler+0x238>
  14757. {
  14758. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  14759. 8006a14: 687b ldr r3, [r7, #4]
  14760. 8006a16: 681b ldr r3, [r3, #0]
  14761. 8006a18: 4a2e ldr r2, [pc, #184] @ (8006ad4 <HAL_DMA_IRQHandler+0x1b4>)
  14762. 8006a1a: 4293 cmp r3, r2
  14763. 8006a1c: d04a beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14764. 8006a1e: 687b ldr r3, [r7, #4]
  14765. 8006a20: 681b ldr r3, [r3, #0]
  14766. 8006a22: 4a2d ldr r2, [pc, #180] @ (8006ad8 <HAL_DMA_IRQHandler+0x1b8>)
  14767. 8006a24: 4293 cmp r3, r2
  14768. 8006a26: d045 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14769. 8006a28: 687b ldr r3, [r7, #4]
  14770. 8006a2a: 681b ldr r3, [r3, #0]
  14771. 8006a2c: 4a2b ldr r2, [pc, #172] @ (8006adc <HAL_DMA_IRQHandler+0x1bc>)
  14772. 8006a2e: 4293 cmp r3, r2
  14773. 8006a30: d040 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14774. 8006a32: 687b ldr r3, [r7, #4]
  14775. 8006a34: 681b ldr r3, [r3, #0]
  14776. 8006a36: 4a2a ldr r2, [pc, #168] @ (8006ae0 <HAL_DMA_IRQHandler+0x1c0>)
  14777. 8006a38: 4293 cmp r3, r2
  14778. 8006a3a: d03b beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14779. 8006a3c: 687b ldr r3, [r7, #4]
  14780. 8006a3e: 681b ldr r3, [r3, #0]
  14781. 8006a40: 4a28 ldr r2, [pc, #160] @ (8006ae4 <HAL_DMA_IRQHandler+0x1c4>)
  14782. 8006a42: 4293 cmp r3, r2
  14783. 8006a44: d036 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14784. 8006a46: 687b ldr r3, [r7, #4]
  14785. 8006a48: 681b ldr r3, [r3, #0]
  14786. 8006a4a: 4a27 ldr r2, [pc, #156] @ (8006ae8 <HAL_DMA_IRQHandler+0x1c8>)
  14787. 8006a4c: 4293 cmp r3, r2
  14788. 8006a4e: d031 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14789. 8006a50: 687b ldr r3, [r7, #4]
  14790. 8006a52: 681b ldr r3, [r3, #0]
  14791. 8006a54: 4a25 ldr r2, [pc, #148] @ (8006aec <HAL_DMA_IRQHandler+0x1cc>)
  14792. 8006a56: 4293 cmp r3, r2
  14793. 8006a58: d02c beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14794. 8006a5a: 687b ldr r3, [r7, #4]
  14795. 8006a5c: 681b ldr r3, [r3, #0]
  14796. 8006a5e: 4a24 ldr r2, [pc, #144] @ (8006af0 <HAL_DMA_IRQHandler+0x1d0>)
  14797. 8006a60: 4293 cmp r3, r2
  14798. 8006a62: d027 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14799. 8006a64: 687b ldr r3, [r7, #4]
  14800. 8006a66: 681b ldr r3, [r3, #0]
  14801. 8006a68: 4a22 ldr r2, [pc, #136] @ (8006af4 <HAL_DMA_IRQHandler+0x1d4>)
  14802. 8006a6a: 4293 cmp r3, r2
  14803. 8006a6c: d022 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14804. 8006a6e: 687b ldr r3, [r7, #4]
  14805. 8006a70: 681b ldr r3, [r3, #0]
  14806. 8006a72: 4a21 ldr r2, [pc, #132] @ (8006af8 <HAL_DMA_IRQHandler+0x1d8>)
  14807. 8006a74: 4293 cmp r3, r2
  14808. 8006a76: d01d beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14809. 8006a78: 687b ldr r3, [r7, #4]
  14810. 8006a7a: 681b ldr r3, [r3, #0]
  14811. 8006a7c: 4a1f ldr r2, [pc, #124] @ (8006afc <HAL_DMA_IRQHandler+0x1dc>)
  14812. 8006a7e: 4293 cmp r3, r2
  14813. 8006a80: d018 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14814. 8006a82: 687b ldr r3, [r7, #4]
  14815. 8006a84: 681b ldr r3, [r3, #0]
  14816. 8006a86: 4a1e ldr r2, [pc, #120] @ (8006b00 <HAL_DMA_IRQHandler+0x1e0>)
  14817. 8006a88: 4293 cmp r3, r2
  14818. 8006a8a: d013 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14819. 8006a8c: 687b ldr r3, [r7, #4]
  14820. 8006a8e: 681b ldr r3, [r3, #0]
  14821. 8006a90: 4a1c ldr r2, [pc, #112] @ (8006b04 <HAL_DMA_IRQHandler+0x1e4>)
  14822. 8006a92: 4293 cmp r3, r2
  14823. 8006a94: d00e beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14824. 8006a96: 687b ldr r3, [r7, #4]
  14825. 8006a98: 681b ldr r3, [r3, #0]
  14826. 8006a9a: 4a1b ldr r2, [pc, #108] @ (8006b08 <HAL_DMA_IRQHandler+0x1e8>)
  14827. 8006a9c: 4293 cmp r3, r2
  14828. 8006a9e: d009 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14829. 8006aa0: 687b ldr r3, [r7, #4]
  14830. 8006aa2: 681b ldr r3, [r3, #0]
  14831. 8006aa4: 4a19 ldr r2, [pc, #100] @ (8006b0c <HAL_DMA_IRQHandler+0x1ec>)
  14832. 8006aa6: 4293 cmp r3, r2
  14833. 8006aa8: d004 beq.n 8006ab4 <HAL_DMA_IRQHandler+0x194>
  14834. 8006aaa: 687b ldr r3, [r7, #4]
  14835. 8006aac: 681b ldr r3, [r3, #0]
  14836. 8006aae: 4a18 ldr r2, [pc, #96] @ (8006b10 <HAL_DMA_IRQHandler+0x1f0>)
  14837. 8006ab0: 4293 cmp r3, r2
  14838. 8006ab2: d12f bne.n 8006b14 <HAL_DMA_IRQHandler+0x1f4>
  14839. 8006ab4: 687b ldr r3, [r7, #4]
  14840. 8006ab6: 681b ldr r3, [r3, #0]
  14841. 8006ab8: 681b ldr r3, [r3, #0]
  14842. 8006aba: f003 0304 and.w r3, r3, #4
  14843. 8006abe: 2b00 cmp r3, #0
  14844. 8006ac0: bf14 ite ne
  14845. 8006ac2: 2301 movne r3, #1
  14846. 8006ac4: 2300 moveq r3, #0
  14847. 8006ac6: b2db uxtb r3, r3
  14848. 8006ac8: e02e b.n 8006b28 <HAL_DMA_IRQHandler+0x208>
  14849. 8006aca: bf00 nop
  14850. 8006acc: 2400000c .word 0x2400000c
  14851. 8006ad0: 1b4e81b5 .word 0x1b4e81b5
  14852. 8006ad4: 40020010 .word 0x40020010
  14853. 8006ad8: 40020028 .word 0x40020028
  14854. 8006adc: 40020040 .word 0x40020040
  14855. 8006ae0: 40020058 .word 0x40020058
  14856. 8006ae4: 40020070 .word 0x40020070
  14857. 8006ae8: 40020088 .word 0x40020088
  14858. 8006aec: 400200a0 .word 0x400200a0
  14859. 8006af0: 400200b8 .word 0x400200b8
  14860. 8006af4: 40020410 .word 0x40020410
  14861. 8006af8: 40020428 .word 0x40020428
  14862. 8006afc: 40020440 .word 0x40020440
  14863. 8006b00: 40020458 .word 0x40020458
  14864. 8006b04: 40020470 .word 0x40020470
  14865. 8006b08: 40020488 .word 0x40020488
  14866. 8006b0c: 400204a0 .word 0x400204a0
  14867. 8006b10: 400204b8 .word 0x400204b8
  14868. 8006b14: 687b ldr r3, [r7, #4]
  14869. 8006b16: 681b ldr r3, [r3, #0]
  14870. 8006b18: 681b ldr r3, [r3, #0]
  14871. 8006b1a: f003 0308 and.w r3, r3, #8
  14872. 8006b1e: 2b00 cmp r3, #0
  14873. 8006b20: bf14 ite ne
  14874. 8006b22: 2301 movne r3, #1
  14875. 8006b24: 2300 moveq r3, #0
  14876. 8006b26: b2db uxtb r3, r3
  14877. 8006b28: 2b00 cmp r3, #0
  14878. 8006b2a: d015 beq.n 8006b58 <HAL_DMA_IRQHandler+0x238>
  14879. {
  14880. /* Disable the transfer error interrupt */
  14881. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  14882. 8006b2c: 687b ldr r3, [r7, #4]
  14883. 8006b2e: 681b ldr r3, [r3, #0]
  14884. 8006b30: 681a ldr r2, [r3, #0]
  14885. 8006b32: 687b ldr r3, [r7, #4]
  14886. 8006b34: 681b ldr r3, [r3, #0]
  14887. 8006b36: f022 0204 bic.w r2, r2, #4
  14888. 8006b3a: 601a str r2, [r3, #0]
  14889. /* Clear the transfer error flag */
  14890. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  14891. 8006b3c: 687b ldr r3, [r7, #4]
  14892. 8006b3e: 6ddb ldr r3, [r3, #92] @ 0x5c
  14893. 8006b40: f003 031f and.w r3, r3, #31
  14894. 8006b44: 2208 movs r2, #8
  14895. 8006b46: 409a lsls r2, r3
  14896. 8006b48: 6a3b ldr r3, [r7, #32]
  14897. 8006b4a: 609a str r2, [r3, #8]
  14898. /* Update error code */
  14899. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  14900. 8006b4c: 687b ldr r3, [r7, #4]
  14901. 8006b4e: 6d5b ldr r3, [r3, #84] @ 0x54
  14902. 8006b50: f043 0201 orr.w r2, r3, #1
  14903. 8006b54: 687b ldr r3, [r7, #4]
  14904. 8006b56: 655a str r2, [r3, #84] @ 0x54
  14905. }
  14906. }
  14907. /* FIFO Error Interrupt management ******************************************/
  14908. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14909. 8006b58: 687b ldr r3, [r7, #4]
  14910. 8006b5a: 6ddb ldr r3, [r3, #92] @ 0x5c
  14911. 8006b5c: f003 031f and.w r3, r3, #31
  14912. 8006b60: 69ba ldr r2, [r7, #24]
  14913. 8006b62: fa22 f303 lsr.w r3, r2, r3
  14914. 8006b66: f003 0301 and.w r3, r3, #1
  14915. 8006b6a: 2b00 cmp r3, #0
  14916. 8006b6c: d06e beq.n 8006c4c <HAL_DMA_IRQHandler+0x32c>
  14917. {
  14918. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  14919. 8006b6e: 687b ldr r3, [r7, #4]
  14920. 8006b70: 681b ldr r3, [r3, #0]
  14921. 8006b72: 4a69 ldr r2, [pc, #420] @ (8006d18 <HAL_DMA_IRQHandler+0x3f8>)
  14922. 8006b74: 4293 cmp r3, r2
  14923. 8006b76: d04a beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14924. 8006b78: 687b ldr r3, [r7, #4]
  14925. 8006b7a: 681b ldr r3, [r3, #0]
  14926. 8006b7c: 4a67 ldr r2, [pc, #412] @ (8006d1c <HAL_DMA_IRQHandler+0x3fc>)
  14927. 8006b7e: 4293 cmp r3, r2
  14928. 8006b80: d045 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14929. 8006b82: 687b ldr r3, [r7, #4]
  14930. 8006b84: 681b ldr r3, [r3, #0]
  14931. 8006b86: 4a66 ldr r2, [pc, #408] @ (8006d20 <HAL_DMA_IRQHandler+0x400>)
  14932. 8006b88: 4293 cmp r3, r2
  14933. 8006b8a: d040 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14934. 8006b8c: 687b ldr r3, [r7, #4]
  14935. 8006b8e: 681b ldr r3, [r3, #0]
  14936. 8006b90: 4a64 ldr r2, [pc, #400] @ (8006d24 <HAL_DMA_IRQHandler+0x404>)
  14937. 8006b92: 4293 cmp r3, r2
  14938. 8006b94: d03b beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14939. 8006b96: 687b ldr r3, [r7, #4]
  14940. 8006b98: 681b ldr r3, [r3, #0]
  14941. 8006b9a: 4a63 ldr r2, [pc, #396] @ (8006d28 <HAL_DMA_IRQHandler+0x408>)
  14942. 8006b9c: 4293 cmp r3, r2
  14943. 8006b9e: d036 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14944. 8006ba0: 687b ldr r3, [r7, #4]
  14945. 8006ba2: 681b ldr r3, [r3, #0]
  14946. 8006ba4: 4a61 ldr r2, [pc, #388] @ (8006d2c <HAL_DMA_IRQHandler+0x40c>)
  14947. 8006ba6: 4293 cmp r3, r2
  14948. 8006ba8: d031 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14949. 8006baa: 687b ldr r3, [r7, #4]
  14950. 8006bac: 681b ldr r3, [r3, #0]
  14951. 8006bae: 4a60 ldr r2, [pc, #384] @ (8006d30 <HAL_DMA_IRQHandler+0x410>)
  14952. 8006bb0: 4293 cmp r3, r2
  14953. 8006bb2: d02c beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14954. 8006bb4: 687b ldr r3, [r7, #4]
  14955. 8006bb6: 681b ldr r3, [r3, #0]
  14956. 8006bb8: 4a5e ldr r2, [pc, #376] @ (8006d34 <HAL_DMA_IRQHandler+0x414>)
  14957. 8006bba: 4293 cmp r3, r2
  14958. 8006bbc: d027 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14959. 8006bbe: 687b ldr r3, [r7, #4]
  14960. 8006bc0: 681b ldr r3, [r3, #0]
  14961. 8006bc2: 4a5d ldr r2, [pc, #372] @ (8006d38 <HAL_DMA_IRQHandler+0x418>)
  14962. 8006bc4: 4293 cmp r3, r2
  14963. 8006bc6: d022 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14964. 8006bc8: 687b ldr r3, [r7, #4]
  14965. 8006bca: 681b ldr r3, [r3, #0]
  14966. 8006bcc: 4a5b ldr r2, [pc, #364] @ (8006d3c <HAL_DMA_IRQHandler+0x41c>)
  14967. 8006bce: 4293 cmp r3, r2
  14968. 8006bd0: d01d beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14969. 8006bd2: 687b ldr r3, [r7, #4]
  14970. 8006bd4: 681b ldr r3, [r3, #0]
  14971. 8006bd6: 4a5a ldr r2, [pc, #360] @ (8006d40 <HAL_DMA_IRQHandler+0x420>)
  14972. 8006bd8: 4293 cmp r3, r2
  14973. 8006bda: d018 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14974. 8006bdc: 687b ldr r3, [r7, #4]
  14975. 8006bde: 681b ldr r3, [r3, #0]
  14976. 8006be0: 4a58 ldr r2, [pc, #352] @ (8006d44 <HAL_DMA_IRQHandler+0x424>)
  14977. 8006be2: 4293 cmp r3, r2
  14978. 8006be4: d013 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14979. 8006be6: 687b ldr r3, [r7, #4]
  14980. 8006be8: 681b ldr r3, [r3, #0]
  14981. 8006bea: 4a57 ldr r2, [pc, #348] @ (8006d48 <HAL_DMA_IRQHandler+0x428>)
  14982. 8006bec: 4293 cmp r3, r2
  14983. 8006bee: d00e beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14984. 8006bf0: 687b ldr r3, [r7, #4]
  14985. 8006bf2: 681b ldr r3, [r3, #0]
  14986. 8006bf4: 4a55 ldr r2, [pc, #340] @ (8006d4c <HAL_DMA_IRQHandler+0x42c>)
  14987. 8006bf6: 4293 cmp r3, r2
  14988. 8006bf8: d009 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14989. 8006bfa: 687b ldr r3, [r7, #4]
  14990. 8006bfc: 681b ldr r3, [r3, #0]
  14991. 8006bfe: 4a54 ldr r2, [pc, #336] @ (8006d50 <HAL_DMA_IRQHandler+0x430>)
  14992. 8006c00: 4293 cmp r3, r2
  14993. 8006c02: d004 beq.n 8006c0e <HAL_DMA_IRQHandler+0x2ee>
  14994. 8006c04: 687b ldr r3, [r7, #4]
  14995. 8006c06: 681b ldr r3, [r3, #0]
  14996. 8006c08: 4a52 ldr r2, [pc, #328] @ (8006d54 <HAL_DMA_IRQHandler+0x434>)
  14997. 8006c0a: 4293 cmp r3, r2
  14998. 8006c0c: d10a bne.n 8006c24 <HAL_DMA_IRQHandler+0x304>
  14999. 8006c0e: 687b ldr r3, [r7, #4]
  15000. 8006c10: 681b ldr r3, [r3, #0]
  15001. 8006c12: 695b ldr r3, [r3, #20]
  15002. 8006c14: f003 0380 and.w r3, r3, #128 @ 0x80
  15003. 8006c18: 2b00 cmp r3, #0
  15004. 8006c1a: bf14 ite ne
  15005. 8006c1c: 2301 movne r3, #1
  15006. 8006c1e: 2300 moveq r3, #0
  15007. 8006c20: b2db uxtb r3, r3
  15008. 8006c22: e003 b.n 8006c2c <HAL_DMA_IRQHandler+0x30c>
  15009. 8006c24: 687b ldr r3, [r7, #4]
  15010. 8006c26: 681b ldr r3, [r3, #0]
  15011. 8006c28: 681b ldr r3, [r3, #0]
  15012. 8006c2a: 2300 movs r3, #0
  15013. 8006c2c: 2b00 cmp r3, #0
  15014. 8006c2e: d00d beq.n 8006c4c <HAL_DMA_IRQHandler+0x32c>
  15015. {
  15016. /* Clear the FIFO error flag */
  15017. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15018. 8006c30: 687b ldr r3, [r7, #4]
  15019. 8006c32: 6ddb ldr r3, [r3, #92] @ 0x5c
  15020. 8006c34: f003 031f and.w r3, r3, #31
  15021. 8006c38: 2201 movs r2, #1
  15022. 8006c3a: 409a lsls r2, r3
  15023. 8006c3c: 6a3b ldr r3, [r7, #32]
  15024. 8006c3e: 609a str r2, [r3, #8]
  15025. /* Update error code */
  15026. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  15027. 8006c40: 687b ldr r3, [r7, #4]
  15028. 8006c42: 6d5b ldr r3, [r3, #84] @ 0x54
  15029. 8006c44: f043 0202 orr.w r2, r3, #2
  15030. 8006c48: 687b ldr r3, [r7, #4]
  15031. 8006c4a: 655a str r2, [r3, #84] @ 0x54
  15032. }
  15033. }
  15034. /* Direct Mode Error Interrupt management ***********************************/
  15035. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15036. 8006c4c: 687b ldr r3, [r7, #4]
  15037. 8006c4e: 6ddb ldr r3, [r3, #92] @ 0x5c
  15038. 8006c50: f003 031f and.w r3, r3, #31
  15039. 8006c54: 2204 movs r2, #4
  15040. 8006c56: 409a lsls r2, r3
  15041. 8006c58: 69bb ldr r3, [r7, #24]
  15042. 8006c5a: 4013 ands r3, r2
  15043. 8006c5c: 2b00 cmp r3, #0
  15044. 8006c5e: f000 808f beq.w 8006d80 <HAL_DMA_IRQHandler+0x460>
  15045. {
  15046. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  15047. 8006c62: 687b ldr r3, [r7, #4]
  15048. 8006c64: 681b ldr r3, [r3, #0]
  15049. 8006c66: 4a2c ldr r2, [pc, #176] @ (8006d18 <HAL_DMA_IRQHandler+0x3f8>)
  15050. 8006c68: 4293 cmp r3, r2
  15051. 8006c6a: d04a beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15052. 8006c6c: 687b ldr r3, [r7, #4]
  15053. 8006c6e: 681b ldr r3, [r3, #0]
  15054. 8006c70: 4a2a ldr r2, [pc, #168] @ (8006d1c <HAL_DMA_IRQHandler+0x3fc>)
  15055. 8006c72: 4293 cmp r3, r2
  15056. 8006c74: d045 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15057. 8006c76: 687b ldr r3, [r7, #4]
  15058. 8006c78: 681b ldr r3, [r3, #0]
  15059. 8006c7a: 4a29 ldr r2, [pc, #164] @ (8006d20 <HAL_DMA_IRQHandler+0x400>)
  15060. 8006c7c: 4293 cmp r3, r2
  15061. 8006c7e: d040 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15062. 8006c80: 687b ldr r3, [r7, #4]
  15063. 8006c82: 681b ldr r3, [r3, #0]
  15064. 8006c84: 4a27 ldr r2, [pc, #156] @ (8006d24 <HAL_DMA_IRQHandler+0x404>)
  15065. 8006c86: 4293 cmp r3, r2
  15066. 8006c88: d03b beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15067. 8006c8a: 687b ldr r3, [r7, #4]
  15068. 8006c8c: 681b ldr r3, [r3, #0]
  15069. 8006c8e: 4a26 ldr r2, [pc, #152] @ (8006d28 <HAL_DMA_IRQHandler+0x408>)
  15070. 8006c90: 4293 cmp r3, r2
  15071. 8006c92: d036 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15072. 8006c94: 687b ldr r3, [r7, #4]
  15073. 8006c96: 681b ldr r3, [r3, #0]
  15074. 8006c98: 4a24 ldr r2, [pc, #144] @ (8006d2c <HAL_DMA_IRQHandler+0x40c>)
  15075. 8006c9a: 4293 cmp r3, r2
  15076. 8006c9c: d031 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15077. 8006c9e: 687b ldr r3, [r7, #4]
  15078. 8006ca0: 681b ldr r3, [r3, #0]
  15079. 8006ca2: 4a23 ldr r2, [pc, #140] @ (8006d30 <HAL_DMA_IRQHandler+0x410>)
  15080. 8006ca4: 4293 cmp r3, r2
  15081. 8006ca6: d02c beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15082. 8006ca8: 687b ldr r3, [r7, #4]
  15083. 8006caa: 681b ldr r3, [r3, #0]
  15084. 8006cac: 4a21 ldr r2, [pc, #132] @ (8006d34 <HAL_DMA_IRQHandler+0x414>)
  15085. 8006cae: 4293 cmp r3, r2
  15086. 8006cb0: d027 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15087. 8006cb2: 687b ldr r3, [r7, #4]
  15088. 8006cb4: 681b ldr r3, [r3, #0]
  15089. 8006cb6: 4a20 ldr r2, [pc, #128] @ (8006d38 <HAL_DMA_IRQHandler+0x418>)
  15090. 8006cb8: 4293 cmp r3, r2
  15091. 8006cba: d022 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15092. 8006cbc: 687b ldr r3, [r7, #4]
  15093. 8006cbe: 681b ldr r3, [r3, #0]
  15094. 8006cc0: 4a1e ldr r2, [pc, #120] @ (8006d3c <HAL_DMA_IRQHandler+0x41c>)
  15095. 8006cc2: 4293 cmp r3, r2
  15096. 8006cc4: d01d beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15097. 8006cc6: 687b ldr r3, [r7, #4]
  15098. 8006cc8: 681b ldr r3, [r3, #0]
  15099. 8006cca: 4a1d ldr r2, [pc, #116] @ (8006d40 <HAL_DMA_IRQHandler+0x420>)
  15100. 8006ccc: 4293 cmp r3, r2
  15101. 8006cce: d018 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15102. 8006cd0: 687b ldr r3, [r7, #4]
  15103. 8006cd2: 681b ldr r3, [r3, #0]
  15104. 8006cd4: 4a1b ldr r2, [pc, #108] @ (8006d44 <HAL_DMA_IRQHandler+0x424>)
  15105. 8006cd6: 4293 cmp r3, r2
  15106. 8006cd8: d013 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15107. 8006cda: 687b ldr r3, [r7, #4]
  15108. 8006cdc: 681b ldr r3, [r3, #0]
  15109. 8006cde: 4a1a ldr r2, [pc, #104] @ (8006d48 <HAL_DMA_IRQHandler+0x428>)
  15110. 8006ce0: 4293 cmp r3, r2
  15111. 8006ce2: d00e beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15112. 8006ce4: 687b ldr r3, [r7, #4]
  15113. 8006ce6: 681b ldr r3, [r3, #0]
  15114. 8006ce8: 4a18 ldr r2, [pc, #96] @ (8006d4c <HAL_DMA_IRQHandler+0x42c>)
  15115. 8006cea: 4293 cmp r3, r2
  15116. 8006cec: d009 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15117. 8006cee: 687b ldr r3, [r7, #4]
  15118. 8006cf0: 681b ldr r3, [r3, #0]
  15119. 8006cf2: 4a17 ldr r2, [pc, #92] @ (8006d50 <HAL_DMA_IRQHandler+0x430>)
  15120. 8006cf4: 4293 cmp r3, r2
  15121. 8006cf6: d004 beq.n 8006d02 <HAL_DMA_IRQHandler+0x3e2>
  15122. 8006cf8: 687b ldr r3, [r7, #4]
  15123. 8006cfa: 681b ldr r3, [r3, #0]
  15124. 8006cfc: 4a15 ldr r2, [pc, #84] @ (8006d54 <HAL_DMA_IRQHandler+0x434>)
  15125. 8006cfe: 4293 cmp r3, r2
  15126. 8006d00: d12a bne.n 8006d58 <HAL_DMA_IRQHandler+0x438>
  15127. 8006d02: 687b ldr r3, [r7, #4]
  15128. 8006d04: 681b ldr r3, [r3, #0]
  15129. 8006d06: 681b ldr r3, [r3, #0]
  15130. 8006d08: f003 0302 and.w r3, r3, #2
  15131. 8006d0c: 2b00 cmp r3, #0
  15132. 8006d0e: bf14 ite ne
  15133. 8006d10: 2301 movne r3, #1
  15134. 8006d12: 2300 moveq r3, #0
  15135. 8006d14: b2db uxtb r3, r3
  15136. 8006d16: e023 b.n 8006d60 <HAL_DMA_IRQHandler+0x440>
  15137. 8006d18: 40020010 .word 0x40020010
  15138. 8006d1c: 40020028 .word 0x40020028
  15139. 8006d20: 40020040 .word 0x40020040
  15140. 8006d24: 40020058 .word 0x40020058
  15141. 8006d28: 40020070 .word 0x40020070
  15142. 8006d2c: 40020088 .word 0x40020088
  15143. 8006d30: 400200a0 .word 0x400200a0
  15144. 8006d34: 400200b8 .word 0x400200b8
  15145. 8006d38: 40020410 .word 0x40020410
  15146. 8006d3c: 40020428 .word 0x40020428
  15147. 8006d40: 40020440 .word 0x40020440
  15148. 8006d44: 40020458 .word 0x40020458
  15149. 8006d48: 40020470 .word 0x40020470
  15150. 8006d4c: 40020488 .word 0x40020488
  15151. 8006d50: 400204a0 .word 0x400204a0
  15152. 8006d54: 400204b8 .word 0x400204b8
  15153. 8006d58: 687b ldr r3, [r7, #4]
  15154. 8006d5a: 681b ldr r3, [r3, #0]
  15155. 8006d5c: 681b ldr r3, [r3, #0]
  15156. 8006d5e: 2300 movs r3, #0
  15157. 8006d60: 2b00 cmp r3, #0
  15158. 8006d62: d00d beq.n 8006d80 <HAL_DMA_IRQHandler+0x460>
  15159. {
  15160. /* Clear the direct mode error flag */
  15161. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15162. 8006d64: 687b ldr r3, [r7, #4]
  15163. 8006d66: 6ddb ldr r3, [r3, #92] @ 0x5c
  15164. 8006d68: f003 031f and.w r3, r3, #31
  15165. 8006d6c: 2204 movs r2, #4
  15166. 8006d6e: 409a lsls r2, r3
  15167. 8006d70: 6a3b ldr r3, [r7, #32]
  15168. 8006d72: 609a str r2, [r3, #8]
  15169. /* Update error code */
  15170. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  15171. 8006d74: 687b ldr r3, [r7, #4]
  15172. 8006d76: 6d5b ldr r3, [r3, #84] @ 0x54
  15173. 8006d78: f043 0204 orr.w r2, r3, #4
  15174. 8006d7c: 687b ldr r3, [r7, #4]
  15175. 8006d7e: 655a str r2, [r3, #84] @ 0x54
  15176. }
  15177. }
  15178. /* Half Transfer Complete Interrupt management ******************************/
  15179. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15180. 8006d80: 687b ldr r3, [r7, #4]
  15181. 8006d82: 6ddb ldr r3, [r3, #92] @ 0x5c
  15182. 8006d84: f003 031f and.w r3, r3, #31
  15183. 8006d88: 2210 movs r2, #16
  15184. 8006d8a: 409a lsls r2, r3
  15185. 8006d8c: 69bb ldr r3, [r7, #24]
  15186. 8006d8e: 4013 ands r3, r2
  15187. 8006d90: 2b00 cmp r3, #0
  15188. 8006d92: f000 80a6 beq.w 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15189. {
  15190. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  15191. 8006d96: 687b ldr r3, [r7, #4]
  15192. 8006d98: 681b ldr r3, [r3, #0]
  15193. 8006d9a: 4a85 ldr r2, [pc, #532] @ (8006fb0 <HAL_DMA_IRQHandler+0x690>)
  15194. 8006d9c: 4293 cmp r3, r2
  15195. 8006d9e: d04a beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15196. 8006da0: 687b ldr r3, [r7, #4]
  15197. 8006da2: 681b ldr r3, [r3, #0]
  15198. 8006da4: 4a83 ldr r2, [pc, #524] @ (8006fb4 <HAL_DMA_IRQHandler+0x694>)
  15199. 8006da6: 4293 cmp r3, r2
  15200. 8006da8: d045 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15201. 8006daa: 687b ldr r3, [r7, #4]
  15202. 8006dac: 681b ldr r3, [r3, #0]
  15203. 8006dae: 4a82 ldr r2, [pc, #520] @ (8006fb8 <HAL_DMA_IRQHandler+0x698>)
  15204. 8006db0: 4293 cmp r3, r2
  15205. 8006db2: d040 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15206. 8006db4: 687b ldr r3, [r7, #4]
  15207. 8006db6: 681b ldr r3, [r3, #0]
  15208. 8006db8: 4a80 ldr r2, [pc, #512] @ (8006fbc <HAL_DMA_IRQHandler+0x69c>)
  15209. 8006dba: 4293 cmp r3, r2
  15210. 8006dbc: d03b beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15211. 8006dbe: 687b ldr r3, [r7, #4]
  15212. 8006dc0: 681b ldr r3, [r3, #0]
  15213. 8006dc2: 4a7f ldr r2, [pc, #508] @ (8006fc0 <HAL_DMA_IRQHandler+0x6a0>)
  15214. 8006dc4: 4293 cmp r3, r2
  15215. 8006dc6: d036 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15216. 8006dc8: 687b ldr r3, [r7, #4]
  15217. 8006dca: 681b ldr r3, [r3, #0]
  15218. 8006dcc: 4a7d ldr r2, [pc, #500] @ (8006fc4 <HAL_DMA_IRQHandler+0x6a4>)
  15219. 8006dce: 4293 cmp r3, r2
  15220. 8006dd0: d031 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15221. 8006dd2: 687b ldr r3, [r7, #4]
  15222. 8006dd4: 681b ldr r3, [r3, #0]
  15223. 8006dd6: 4a7c ldr r2, [pc, #496] @ (8006fc8 <HAL_DMA_IRQHandler+0x6a8>)
  15224. 8006dd8: 4293 cmp r3, r2
  15225. 8006dda: d02c beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15226. 8006ddc: 687b ldr r3, [r7, #4]
  15227. 8006dde: 681b ldr r3, [r3, #0]
  15228. 8006de0: 4a7a ldr r2, [pc, #488] @ (8006fcc <HAL_DMA_IRQHandler+0x6ac>)
  15229. 8006de2: 4293 cmp r3, r2
  15230. 8006de4: d027 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15231. 8006de6: 687b ldr r3, [r7, #4]
  15232. 8006de8: 681b ldr r3, [r3, #0]
  15233. 8006dea: 4a79 ldr r2, [pc, #484] @ (8006fd0 <HAL_DMA_IRQHandler+0x6b0>)
  15234. 8006dec: 4293 cmp r3, r2
  15235. 8006dee: d022 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15236. 8006df0: 687b ldr r3, [r7, #4]
  15237. 8006df2: 681b ldr r3, [r3, #0]
  15238. 8006df4: 4a77 ldr r2, [pc, #476] @ (8006fd4 <HAL_DMA_IRQHandler+0x6b4>)
  15239. 8006df6: 4293 cmp r3, r2
  15240. 8006df8: d01d beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15241. 8006dfa: 687b ldr r3, [r7, #4]
  15242. 8006dfc: 681b ldr r3, [r3, #0]
  15243. 8006dfe: 4a76 ldr r2, [pc, #472] @ (8006fd8 <HAL_DMA_IRQHandler+0x6b8>)
  15244. 8006e00: 4293 cmp r3, r2
  15245. 8006e02: d018 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15246. 8006e04: 687b ldr r3, [r7, #4]
  15247. 8006e06: 681b ldr r3, [r3, #0]
  15248. 8006e08: 4a74 ldr r2, [pc, #464] @ (8006fdc <HAL_DMA_IRQHandler+0x6bc>)
  15249. 8006e0a: 4293 cmp r3, r2
  15250. 8006e0c: d013 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15251. 8006e0e: 687b ldr r3, [r7, #4]
  15252. 8006e10: 681b ldr r3, [r3, #0]
  15253. 8006e12: 4a73 ldr r2, [pc, #460] @ (8006fe0 <HAL_DMA_IRQHandler+0x6c0>)
  15254. 8006e14: 4293 cmp r3, r2
  15255. 8006e16: d00e beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15256. 8006e18: 687b ldr r3, [r7, #4]
  15257. 8006e1a: 681b ldr r3, [r3, #0]
  15258. 8006e1c: 4a71 ldr r2, [pc, #452] @ (8006fe4 <HAL_DMA_IRQHandler+0x6c4>)
  15259. 8006e1e: 4293 cmp r3, r2
  15260. 8006e20: d009 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15261. 8006e22: 687b ldr r3, [r7, #4]
  15262. 8006e24: 681b ldr r3, [r3, #0]
  15263. 8006e26: 4a70 ldr r2, [pc, #448] @ (8006fe8 <HAL_DMA_IRQHandler+0x6c8>)
  15264. 8006e28: 4293 cmp r3, r2
  15265. 8006e2a: d004 beq.n 8006e36 <HAL_DMA_IRQHandler+0x516>
  15266. 8006e2c: 687b ldr r3, [r7, #4]
  15267. 8006e2e: 681b ldr r3, [r3, #0]
  15268. 8006e30: 4a6e ldr r2, [pc, #440] @ (8006fec <HAL_DMA_IRQHandler+0x6cc>)
  15269. 8006e32: 4293 cmp r3, r2
  15270. 8006e34: d10a bne.n 8006e4c <HAL_DMA_IRQHandler+0x52c>
  15271. 8006e36: 687b ldr r3, [r7, #4]
  15272. 8006e38: 681b ldr r3, [r3, #0]
  15273. 8006e3a: 681b ldr r3, [r3, #0]
  15274. 8006e3c: f003 0308 and.w r3, r3, #8
  15275. 8006e40: 2b00 cmp r3, #0
  15276. 8006e42: bf14 ite ne
  15277. 8006e44: 2301 movne r3, #1
  15278. 8006e46: 2300 moveq r3, #0
  15279. 8006e48: b2db uxtb r3, r3
  15280. 8006e4a: e009 b.n 8006e60 <HAL_DMA_IRQHandler+0x540>
  15281. 8006e4c: 687b ldr r3, [r7, #4]
  15282. 8006e4e: 681b ldr r3, [r3, #0]
  15283. 8006e50: 681b ldr r3, [r3, #0]
  15284. 8006e52: f003 0304 and.w r3, r3, #4
  15285. 8006e56: 2b00 cmp r3, #0
  15286. 8006e58: bf14 ite ne
  15287. 8006e5a: 2301 movne r3, #1
  15288. 8006e5c: 2300 moveq r3, #0
  15289. 8006e5e: b2db uxtb r3, r3
  15290. 8006e60: 2b00 cmp r3, #0
  15291. 8006e62: d03e beq.n 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15292. {
  15293. /* Clear the half transfer complete flag */
  15294. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  15295. 8006e64: 687b ldr r3, [r7, #4]
  15296. 8006e66: 6ddb ldr r3, [r3, #92] @ 0x5c
  15297. 8006e68: f003 031f and.w r3, r3, #31
  15298. 8006e6c: 2210 movs r2, #16
  15299. 8006e6e: 409a lsls r2, r3
  15300. 8006e70: 6a3b ldr r3, [r7, #32]
  15301. 8006e72: 609a str r2, [r3, #8]
  15302. /* Multi_Buffering mode enabled */
  15303. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  15304. 8006e74: 687b ldr r3, [r7, #4]
  15305. 8006e76: 681b ldr r3, [r3, #0]
  15306. 8006e78: 681b ldr r3, [r3, #0]
  15307. 8006e7a: f403 2380 and.w r3, r3, #262144 @ 0x40000
  15308. 8006e7e: 2b00 cmp r3, #0
  15309. 8006e80: d018 beq.n 8006eb4 <HAL_DMA_IRQHandler+0x594>
  15310. {
  15311. /* Current memory buffer used is Memory 0 */
  15312. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  15313. 8006e82: 687b ldr r3, [r7, #4]
  15314. 8006e84: 681b ldr r3, [r3, #0]
  15315. 8006e86: 681b ldr r3, [r3, #0]
  15316. 8006e88: f403 2300 and.w r3, r3, #524288 @ 0x80000
  15317. 8006e8c: 2b00 cmp r3, #0
  15318. 8006e8e: d108 bne.n 8006ea2 <HAL_DMA_IRQHandler+0x582>
  15319. {
  15320. if(hdma->XferHalfCpltCallback != NULL)
  15321. 8006e90: 687b ldr r3, [r7, #4]
  15322. 8006e92: 6c1b ldr r3, [r3, #64] @ 0x40
  15323. 8006e94: 2b00 cmp r3, #0
  15324. 8006e96: d024 beq.n 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15325. {
  15326. /* Half transfer callback */
  15327. hdma->XferHalfCpltCallback(hdma);
  15328. 8006e98: 687b ldr r3, [r7, #4]
  15329. 8006e9a: 6c1b ldr r3, [r3, #64] @ 0x40
  15330. 8006e9c: 6878 ldr r0, [r7, #4]
  15331. 8006e9e: 4798 blx r3
  15332. 8006ea0: e01f b.n 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15333. }
  15334. }
  15335. /* Current memory buffer used is Memory 1 */
  15336. else
  15337. {
  15338. if(hdma->XferM1HalfCpltCallback != NULL)
  15339. 8006ea2: 687b ldr r3, [r7, #4]
  15340. 8006ea4: 6c9b ldr r3, [r3, #72] @ 0x48
  15341. 8006ea6: 2b00 cmp r3, #0
  15342. 8006ea8: d01b beq.n 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15343. {
  15344. /* Half transfer callback */
  15345. hdma->XferM1HalfCpltCallback(hdma);
  15346. 8006eaa: 687b ldr r3, [r7, #4]
  15347. 8006eac: 6c9b ldr r3, [r3, #72] @ 0x48
  15348. 8006eae: 6878 ldr r0, [r7, #4]
  15349. 8006eb0: 4798 blx r3
  15350. 8006eb2: e016 b.n 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15351. }
  15352. }
  15353. else
  15354. {
  15355. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  15356. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  15357. 8006eb4: 687b ldr r3, [r7, #4]
  15358. 8006eb6: 681b ldr r3, [r3, #0]
  15359. 8006eb8: 681b ldr r3, [r3, #0]
  15360. 8006eba: f403 7380 and.w r3, r3, #256 @ 0x100
  15361. 8006ebe: 2b00 cmp r3, #0
  15362. 8006ec0: d107 bne.n 8006ed2 <HAL_DMA_IRQHandler+0x5b2>
  15363. {
  15364. /* Disable the half transfer interrupt */
  15365. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  15366. 8006ec2: 687b ldr r3, [r7, #4]
  15367. 8006ec4: 681b ldr r3, [r3, #0]
  15368. 8006ec6: 681a ldr r2, [r3, #0]
  15369. 8006ec8: 687b ldr r3, [r7, #4]
  15370. 8006eca: 681b ldr r3, [r3, #0]
  15371. 8006ecc: f022 0208 bic.w r2, r2, #8
  15372. 8006ed0: 601a str r2, [r3, #0]
  15373. }
  15374. if(hdma->XferHalfCpltCallback != NULL)
  15375. 8006ed2: 687b ldr r3, [r7, #4]
  15376. 8006ed4: 6c1b ldr r3, [r3, #64] @ 0x40
  15377. 8006ed6: 2b00 cmp r3, #0
  15378. 8006ed8: d003 beq.n 8006ee2 <HAL_DMA_IRQHandler+0x5c2>
  15379. {
  15380. /* Half transfer callback */
  15381. hdma->XferHalfCpltCallback(hdma);
  15382. 8006eda: 687b ldr r3, [r7, #4]
  15383. 8006edc: 6c1b ldr r3, [r3, #64] @ 0x40
  15384. 8006ede: 6878 ldr r0, [r7, #4]
  15385. 8006ee0: 4798 blx r3
  15386. }
  15387. }
  15388. }
  15389. }
  15390. /* Transfer Complete Interrupt management ***********************************/
  15391. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15392. 8006ee2: 687b ldr r3, [r7, #4]
  15393. 8006ee4: 6ddb ldr r3, [r3, #92] @ 0x5c
  15394. 8006ee6: f003 031f and.w r3, r3, #31
  15395. 8006eea: 2220 movs r2, #32
  15396. 8006eec: 409a lsls r2, r3
  15397. 8006eee: 69bb ldr r3, [r7, #24]
  15398. 8006ef0: 4013 ands r3, r2
  15399. 8006ef2: 2b00 cmp r3, #0
  15400. 8006ef4: f000 8110 beq.w 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15401. {
  15402. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  15403. 8006ef8: 687b ldr r3, [r7, #4]
  15404. 8006efa: 681b ldr r3, [r3, #0]
  15405. 8006efc: 4a2c ldr r2, [pc, #176] @ (8006fb0 <HAL_DMA_IRQHandler+0x690>)
  15406. 8006efe: 4293 cmp r3, r2
  15407. 8006f00: d04a beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15408. 8006f02: 687b ldr r3, [r7, #4]
  15409. 8006f04: 681b ldr r3, [r3, #0]
  15410. 8006f06: 4a2b ldr r2, [pc, #172] @ (8006fb4 <HAL_DMA_IRQHandler+0x694>)
  15411. 8006f08: 4293 cmp r3, r2
  15412. 8006f0a: d045 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15413. 8006f0c: 687b ldr r3, [r7, #4]
  15414. 8006f0e: 681b ldr r3, [r3, #0]
  15415. 8006f10: 4a29 ldr r2, [pc, #164] @ (8006fb8 <HAL_DMA_IRQHandler+0x698>)
  15416. 8006f12: 4293 cmp r3, r2
  15417. 8006f14: d040 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15418. 8006f16: 687b ldr r3, [r7, #4]
  15419. 8006f18: 681b ldr r3, [r3, #0]
  15420. 8006f1a: 4a28 ldr r2, [pc, #160] @ (8006fbc <HAL_DMA_IRQHandler+0x69c>)
  15421. 8006f1c: 4293 cmp r3, r2
  15422. 8006f1e: d03b beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15423. 8006f20: 687b ldr r3, [r7, #4]
  15424. 8006f22: 681b ldr r3, [r3, #0]
  15425. 8006f24: 4a26 ldr r2, [pc, #152] @ (8006fc0 <HAL_DMA_IRQHandler+0x6a0>)
  15426. 8006f26: 4293 cmp r3, r2
  15427. 8006f28: d036 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15428. 8006f2a: 687b ldr r3, [r7, #4]
  15429. 8006f2c: 681b ldr r3, [r3, #0]
  15430. 8006f2e: 4a25 ldr r2, [pc, #148] @ (8006fc4 <HAL_DMA_IRQHandler+0x6a4>)
  15431. 8006f30: 4293 cmp r3, r2
  15432. 8006f32: d031 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15433. 8006f34: 687b ldr r3, [r7, #4]
  15434. 8006f36: 681b ldr r3, [r3, #0]
  15435. 8006f38: 4a23 ldr r2, [pc, #140] @ (8006fc8 <HAL_DMA_IRQHandler+0x6a8>)
  15436. 8006f3a: 4293 cmp r3, r2
  15437. 8006f3c: d02c beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15438. 8006f3e: 687b ldr r3, [r7, #4]
  15439. 8006f40: 681b ldr r3, [r3, #0]
  15440. 8006f42: 4a22 ldr r2, [pc, #136] @ (8006fcc <HAL_DMA_IRQHandler+0x6ac>)
  15441. 8006f44: 4293 cmp r3, r2
  15442. 8006f46: d027 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15443. 8006f48: 687b ldr r3, [r7, #4]
  15444. 8006f4a: 681b ldr r3, [r3, #0]
  15445. 8006f4c: 4a20 ldr r2, [pc, #128] @ (8006fd0 <HAL_DMA_IRQHandler+0x6b0>)
  15446. 8006f4e: 4293 cmp r3, r2
  15447. 8006f50: d022 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15448. 8006f52: 687b ldr r3, [r7, #4]
  15449. 8006f54: 681b ldr r3, [r3, #0]
  15450. 8006f56: 4a1f ldr r2, [pc, #124] @ (8006fd4 <HAL_DMA_IRQHandler+0x6b4>)
  15451. 8006f58: 4293 cmp r3, r2
  15452. 8006f5a: d01d beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15453. 8006f5c: 687b ldr r3, [r7, #4]
  15454. 8006f5e: 681b ldr r3, [r3, #0]
  15455. 8006f60: 4a1d ldr r2, [pc, #116] @ (8006fd8 <HAL_DMA_IRQHandler+0x6b8>)
  15456. 8006f62: 4293 cmp r3, r2
  15457. 8006f64: d018 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15458. 8006f66: 687b ldr r3, [r7, #4]
  15459. 8006f68: 681b ldr r3, [r3, #0]
  15460. 8006f6a: 4a1c ldr r2, [pc, #112] @ (8006fdc <HAL_DMA_IRQHandler+0x6bc>)
  15461. 8006f6c: 4293 cmp r3, r2
  15462. 8006f6e: d013 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15463. 8006f70: 687b ldr r3, [r7, #4]
  15464. 8006f72: 681b ldr r3, [r3, #0]
  15465. 8006f74: 4a1a ldr r2, [pc, #104] @ (8006fe0 <HAL_DMA_IRQHandler+0x6c0>)
  15466. 8006f76: 4293 cmp r3, r2
  15467. 8006f78: d00e beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15468. 8006f7a: 687b ldr r3, [r7, #4]
  15469. 8006f7c: 681b ldr r3, [r3, #0]
  15470. 8006f7e: 4a19 ldr r2, [pc, #100] @ (8006fe4 <HAL_DMA_IRQHandler+0x6c4>)
  15471. 8006f80: 4293 cmp r3, r2
  15472. 8006f82: d009 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15473. 8006f84: 687b ldr r3, [r7, #4]
  15474. 8006f86: 681b ldr r3, [r3, #0]
  15475. 8006f88: 4a17 ldr r2, [pc, #92] @ (8006fe8 <HAL_DMA_IRQHandler+0x6c8>)
  15476. 8006f8a: 4293 cmp r3, r2
  15477. 8006f8c: d004 beq.n 8006f98 <HAL_DMA_IRQHandler+0x678>
  15478. 8006f8e: 687b ldr r3, [r7, #4]
  15479. 8006f90: 681b ldr r3, [r3, #0]
  15480. 8006f92: 4a16 ldr r2, [pc, #88] @ (8006fec <HAL_DMA_IRQHandler+0x6cc>)
  15481. 8006f94: 4293 cmp r3, r2
  15482. 8006f96: d12b bne.n 8006ff0 <HAL_DMA_IRQHandler+0x6d0>
  15483. 8006f98: 687b ldr r3, [r7, #4]
  15484. 8006f9a: 681b ldr r3, [r3, #0]
  15485. 8006f9c: 681b ldr r3, [r3, #0]
  15486. 8006f9e: f003 0310 and.w r3, r3, #16
  15487. 8006fa2: 2b00 cmp r3, #0
  15488. 8006fa4: bf14 ite ne
  15489. 8006fa6: 2301 movne r3, #1
  15490. 8006fa8: 2300 moveq r3, #0
  15491. 8006faa: b2db uxtb r3, r3
  15492. 8006fac: e02a b.n 8007004 <HAL_DMA_IRQHandler+0x6e4>
  15493. 8006fae: bf00 nop
  15494. 8006fb0: 40020010 .word 0x40020010
  15495. 8006fb4: 40020028 .word 0x40020028
  15496. 8006fb8: 40020040 .word 0x40020040
  15497. 8006fbc: 40020058 .word 0x40020058
  15498. 8006fc0: 40020070 .word 0x40020070
  15499. 8006fc4: 40020088 .word 0x40020088
  15500. 8006fc8: 400200a0 .word 0x400200a0
  15501. 8006fcc: 400200b8 .word 0x400200b8
  15502. 8006fd0: 40020410 .word 0x40020410
  15503. 8006fd4: 40020428 .word 0x40020428
  15504. 8006fd8: 40020440 .word 0x40020440
  15505. 8006fdc: 40020458 .word 0x40020458
  15506. 8006fe0: 40020470 .word 0x40020470
  15507. 8006fe4: 40020488 .word 0x40020488
  15508. 8006fe8: 400204a0 .word 0x400204a0
  15509. 8006fec: 400204b8 .word 0x400204b8
  15510. 8006ff0: 687b ldr r3, [r7, #4]
  15511. 8006ff2: 681b ldr r3, [r3, #0]
  15512. 8006ff4: 681b ldr r3, [r3, #0]
  15513. 8006ff6: f003 0302 and.w r3, r3, #2
  15514. 8006ffa: 2b00 cmp r3, #0
  15515. 8006ffc: bf14 ite ne
  15516. 8006ffe: 2301 movne r3, #1
  15517. 8007000: 2300 moveq r3, #0
  15518. 8007002: b2db uxtb r3, r3
  15519. 8007004: 2b00 cmp r3, #0
  15520. 8007006: f000 8087 beq.w 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15521. {
  15522. /* Clear the transfer complete flag */
  15523. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  15524. 800700a: 687b ldr r3, [r7, #4]
  15525. 800700c: 6ddb ldr r3, [r3, #92] @ 0x5c
  15526. 800700e: f003 031f and.w r3, r3, #31
  15527. 8007012: 2220 movs r2, #32
  15528. 8007014: 409a lsls r2, r3
  15529. 8007016: 6a3b ldr r3, [r7, #32]
  15530. 8007018: 609a str r2, [r3, #8]
  15531. if(HAL_DMA_STATE_ABORT == hdma->State)
  15532. 800701a: 687b ldr r3, [r7, #4]
  15533. 800701c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  15534. 8007020: b2db uxtb r3, r3
  15535. 8007022: 2b04 cmp r3, #4
  15536. 8007024: d139 bne.n 800709a <HAL_DMA_IRQHandler+0x77a>
  15537. {
  15538. /* Disable all the transfer interrupts */
  15539. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  15540. 8007026: 687b ldr r3, [r7, #4]
  15541. 8007028: 681b ldr r3, [r3, #0]
  15542. 800702a: 681a ldr r2, [r3, #0]
  15543. 800702c: 687b ldr r3, [r7, #4]
  15544. 800702e: 681b ldr r3, [r3, #0]
  15545. 8007030: f022 0216 bic.w r2, r2, #22
  15546. 8007034: 601a str r2, [r3, #0]
  15547. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  15548. 8007036: 687b ldr r3, [r7, #4]
  15549. 8007038: 681b ldr r3, [r3, #0]
  15550. 800703a: 695a ldr r2, [r3, #20]
  15551. 800703c: 687b ldr r3, [r7, #4]
  15552. 800703e: 681b ldr r3, [r3, #0]
  15553. 8007040: f022 0280 bic.w r2, r2, #128 @ 0x80
  15554. 8007044: 615a str r2, [r3, #20]
  15555. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  15556. 8007046: 687b ldr r3, [r7, #4]
  15557. 8007048: 6c1b ldr r3, [r3, #64] @ 0x40
  15558. 800704a: 2b00 cmp r3, #0
  15559. 800704c: d103 bne.n 8007056 <HAL_DMA_IRQHandler+0x736>
  15560. 800704e: 687b ldr r3, [r7, #4]
  15561. 8007050: 6c9b ldr r3, [r3, #72] @ 0x48
  15562. 8007052: 2b00 cmp r3, #0
  15563. 8007054: d007 beq.n 8007066 <HAL_DMA_IRQHandler+0x746>
  15564. {
  15565. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  15566. 8007056: 687b ldr r3, [r7, #4]
  15567. 8007058: 681b ldr r3, [r3, #0]
  15568. 800705a: 681a ldr r2, [r3, #0]
  15569. 800705c: 687b ldr r3, [r7, #4]
  15570. 800705e: 681b ldr r3, [r3, #0]
  15571. 8007060: f022 0208 bic.w r2, r2, #8
  15572. 8007064: 601a str r2, [r3, #0]
  15573. }
  15574. /* Clear all interrupt flags at correct offset within the register */
  15575. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  15576. 8007066: 687b ldr r3, [r7, #4]
  15577. 8007068: 6ddb ldr r3, [r3, #92] @ 0x5c
  15578. 800706a: f003 031f and.w r3, r3, #31
  15579. 800706e: 223f movs r2, #63 @ 0x3f
  15580. 8007070: 409a lsls r2, r3
  15581. 8007072: 6a3b ldr r3, [r7, #32]
  15582. 8007074: 609a str r2, [r3, #8]
  15583. /* Change the DMA state */
  15584. hdma->State = HAL_DMA_STATE_READY;
  15585. 8007076: 687b ldr r3, [r7, #4]
  15586. 8007078: 2201 movs r2, #1
  15587. 800707a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15588. /* Process Unlocked */
  15589. __HAL_UNLOCK(hdma);
  15590. 800707e: 687b ldr r3, [r7, #4]
  15591. 8007080: 2200 movs r2, #0
  15592. 8007082: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15593. if(hdma->XferAbortCallback != NULL)
  15594. 8007086: 687b ldr r3, [r7, #4]
  15595. 8007088: 6d1b ldr r3, [r3, #80] @ 0x50
  15596. 800708a: 2b00 cmp r3, #0
  15597. 800708c: f000 834a beq.w 8007724 <HAL_DMA_IRQHandler+0xe04>
  15598. {
  15599. hdma->XferAbortCallback(hdma);
  15600. 8007090: 687b ldr r3, [r7, #4]
  15601. 8007092: 6d1b ldr r3, [r3, #80] @ 0x50
  15602. 8007094: 6878 ldr r0, [r7, #4]
  15603. 8007096: 4798 blx r3
  15604. }
  15605. return;
  15606. 8007098: e344 b.n 8007724 <HAL_DMA_IRQHandler+0xe04>
  15607. }
  15608. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  15609. 800709a: 687b ldr r3, [r7, #4]
  15610. 800709c: 681b ldr r3, [r3, #0]
  15611. 800709e: 681b ldr r3, [r3, #0]
  15612. 80070a0: f403 2380 and.w r3, r3, #262144 @ 0x40000
  15613. 80070a4: 2b00 cmp r3, #0
  15614. 80070a6: d018 beq.n 80070da <HAL_DMA_IRQHandler+0x7ba>
  15615. {
  15616. /* Current memory buffer used is Memory 0 */
  15617. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  15618. 80070a8: 687b ldr r3, [r7, #4]
  15619. 80070aa: 681b ldr r3, [r3, #0]
  15620. 80070ac: 681b ldr r3, [r3, #0]
  15621. 80070ae: f403 2300 and.w r3, r3, #524288 @ 0x80000
  15622. 80070b2: 2b00 cmp r3, #0
  15623. 80070b4: d108 bne.n 80070c8 <HAL_DMA_IRQHandler+0x7a8>
  15624. {
  15625. if(hdma->XferM1CpltCallback != NULL)
  15626. 80070b6: 687b ldr r3, [r7, #4]
  15627. 80070b8: 6c5b ldr r3, [r3, #68] @ 0x44
  15628. 80070ba: 2b00 cmp r3, #0
  15629. 80070bc: d02c beq.n 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15630. {
  15631. /* Transfer complete Callback for memory1 */
  15632. hdma->XferM1CpltCallback(hdma);
  15633. 80070be: 687b ldr r3, [r7, #4]
  15634. 80070c0: 6c5b ldr r3, [r3, #68] @ 0x44
  15635. 80070c2: 6878 ldr r0, [r7, #4]
  15636. 80070c4: 4798 blx r3
  15637. 80070c6: e027 b.n 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15638. }
  15639. }
  15640. /* Current memory buffer used is Memory 1 */
  15641. else
  15642. {
  15643. if(hdma->XferCpltCallback != NULL)
  15644. 80070c8: 687b ldr r3, [r7, #4]
  15645. 80070ca: 6bdb ldr r3, [r3, #60] @ 0x3c
  15646. 80070cc: 2b00 cmp r3, #0
  15647. 80070ce: d023 beq.n 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15648. {
  15649. /* Transfer complete Callback for memory0 */
  15650. hdma->XferCpltCallback(hdma);
  15651. 80070d0: 687b ldr r3, [r7, #4]
  15652. 80070d2: 6bdb ldr r3, [r3, #60] @ 0x3c
  15653. 80070d4: 6878 ldr r0, [r7, #4]
  15654. 80070d6: 4798 blx r3
  15655. 80070d8: e01e b.n 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15656. }
  15657. }
  15658. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  15659. else
  15660. {
  15661. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  15662. 80070da: 687b ldr r3, [r7, #4]
  15663. 80070dc: 681b ldr r3, [r3, #0]
  15664. 80070de: 681b ldr r3, [r3, #0]
  15665. 80070e0: f403 7380 and.w r3, r3, #256 @ 0x100
  15666. 80070e4: 2b00 cmp r3, #0
  15667. 80070e6: d10f bne.n 8007108 <HAL_DMA_IRQHandler+0x7e8>
  15668. {
  15669. /* Disable the transfer complete interrupt */
  15670. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  15671. 80070e8: 687b ldr r3, [r7, #4]
  15672. 80070ea: 681b ldr r3, [r3, #0]
  15673. 80070ec: 681a ldr r2, [r3, #0]
  15674. 80070ee: 687b ldr r3, [r7, #4]
  15675. 80070f0: 681b ldr r3, [r3, #0]
  15676. 80070f2: f022 0210 bic.w r2, r2, #16
  15677. 80070f6: 601a str r2, [r3, #0]
  15678. /* Change the DMA state */
  15679. hdma->State = HAL_DMA_STATE_READY;
  15680. 80070f8: 687b ldr r3, [r7, #4]
  15681. 80070fa: 2201 movs r2, #1
  15682. 80070fc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15683. /* Process Unlocked */
  15684. __HAL_UNLOCK(hdma);
  15685. 8007100: 687b ldr r3, [r7, #4]
  15686. 8007102: 2200 movs r2, #0
  15687. 8007104: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15688. }
  15689. if(hdma->XferCpltCallback != NULL)
  15690. 8007108: 687b ldr r3, [r7, #4]
  15691. 800710a: 6bdb ldr r3, [r3, #60] @ 0x3c
  15692. 800710c: 2b00 cmp r3, #0
  15693. 800710e: d003 beq.n 8007118 <HAL_DMA_IRQHandler+0x7f8>
  15694. {
  15695. /* Transfer complete callback */
  15696. hdma->XferCpltCallback(hdma);
  15697. 8007110: 687b ldr r3, [r7, #4]
  15698. 8007112: 6bdb ldr r3, [r3, #60] @ 0x3c
  15699. 8007114: 6878 ldr r0, [r7, #4]
  15700. 8007116: 4798 blx r3
  15701. }
  15702. }
  15703. }
  15704. /* manage error case */
  15705. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  15706. 8007118: 687b ldr r3, [r7, #4]
  15707. 800711a: 6d5b ldr r3, [r3, #84] @ 0x54
  15708. 800711c: 2b00 cmp r3, #0
  15709. 800711e: f000 8306 beq.w 800772e <HAL_DMA_IRQHandler+0xe0e>
  15710. {
  15711. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  15712. 8007122: 687b ldr r3, [r7, #4]
  15713. 8007124: 6d5b ldr r3, [r3, #84] @ 0x54
  15714. 8007126: f003 0301 and.w r3, r3, #1
  15715. 800712a: 2b00 cmp r3, #0
  15716. 800712c: f000 8088 beq.w 8007240 <HAL_DMA_IRQHandler+0x920>
  15717. {
  15718. hdma->State = HAL_DMA_STATE_ABORT;
  15719. 8007130: 687b ldr r3, [r7, #4]
  15720. 8007132: 2204 movs r2, #4
  15721. 8007134: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15722. /* Disable the stream */
  15723. __HAL_DMA_DISABLE(hdma);
  15724. 8007138: 687b ldr r3, [r7, #4]
  15725. 800713a: 681b ldr r3, [r3, #0]
  15726. 800713c: 4a7a ldr r2, [pc, #488] @ (8007328 <HAL_DMA_IRQHandler+0xa08>)
  15727. 800713e: 4293 cmp r3, r2
  15728. 8007140: d04a beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15729. 8007142: 687b ldr r3, [r7, #4]
  15730. 8007144: 681b ldr r3, [r3, #0]
  15731. 8007146: 4a79 ldr r2, [pc, #484] @ (800732c <HAL_DMA_IRQHandler+0xa0c>)
  15732. 8007148: 4293 cmp r3, r2
  15733. 800714a: d045 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15734. 800714c: 687b ldr r3, [r7, #4]
  15735. 800714e: 681b ldr r3, [r3, #0]
  15736. 8007150: 4a77 ldr r2, [pc, #476] @ (8007330 <HAL_DMA_IRQHandler+0xa10>)
  15737. 8007152: 4293 cmp r3, r2
  15738. 8007154: d040 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15739. 8007156: 687b ldr r3, [r7, #4]
  15740. 8007158: 681b ldr r3, [r3, #0]
  15741. 800715a: 4a76 ldr r2, [pc, #472] @ (8007334 <HAL_DMA_IRQHandler+0xa14>)
  15742. 800715c: 4293 cmp r3, r2
  15743. 800715e: d03b beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15744. 8007160: 687b ldr r3, [r7, #4]
  15745. 8007162: 681b ldr r3, [r3, #0]
  15746. 8007164: 4a74 ldr r2, [pc, #464] @ (8007338 <HAL_DMA_IRQHandler+0xa18>)
  15747. 8007166: 4293 cmp r3, r2
  15748. 8007168: d036 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15749. 800716a: 687b ldr r3, [r7, #4]
  15750. 800716c: 681b ldr r3, [r3, #0]
  15751. 800716e: 4a73 ldr r2, [pc, #460] @ (800733c <HAL_DMA_IRQHandler+0xa1c>)
  15752. 8007170: 4293 cmp r3, r2
  15753. 8007172: d031 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15754. 8007174: 687b ldr r3, [r7, #4]
  15755. 8007176: 681b ldr r3, [r3, #0]
  15756. 8007178: 4a71 ldr r2, [pc, #452] @ (8007340 <HAL_DMA_IRQHandler+0xa20>)
  15757. 800717a: 4293 cmp r3, r2
  15758. 800717c: d02c beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15759. 800717e: 687b ldr r3, [r7, #4]
  15760. 8007180: 681b ldr r3, [r3, #0]
  15761. 8007182: 4a70 ldr r2, [pc, #448] @ (8007344 <HAL_DMA_IRQHandler+0xa24>)
  15762. 8007184: 4293 cmp r3, r2
  15763. 8007186: d027 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15764. 8007188: 687b ldr r3, [r7, #4]
  15765. 800718a: 681b ldr r3, [r3, #0]
  15766. 800718c: 4a6e ldr r2, [pc, #440] @ (8007348 <HAL_DMA_IRQHandler+0xa28>)
  15767. 800718e: 4293 cmp r3, r2
  15768. 8007190: d022 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15769. 8007192: 687b ldr r3, [r7, #4]
  15770. 8007194: 681b ldr r3, [r3, #0]
  15771. 8007196: 4a6d ldr r2, [pc, #436] @ (800734c <HAL_DMA_IRQHandler+0xa2c>)
  15772. 8007198: 4293 cmp r3, r2
  15773. 800719a: d01d beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15774. 800719c: 687b ldr r3, [r7, #4]
  15775. 800719e: 681b ldr r3, [r3, #0]
  15776. 80071a0: 4a6b ldr r2, [pc, #428] @ (8007350 <HAL_DMA_IRQHandler+0xa30>)
  15777. 80071a2: 4293 cmp r3, r2
  15778. 80071a4: d018 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15779. 80071a6: 687b ldr r3, [r7, #4]
  15780. 80071a8: 681b ldr r3, [r3, #0]
  15781. 80071aa: 4a6a ldr r2, [pc, #424] @ (8007354 <HAL_DMA_IRQHandler+0xa34>)
  15782. 80071ac: 4293 cmp r3, r2
  15783. 80071ae: d013 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15784. 80071b0: 687b ldr r3, [r7, #4]
  15785. 80071b2: 681b ldr r3, [r3, #0]
  15786. 80071b4: 4a68 ldr r2, [pc, #416] @ (8007358 <HAL_DMA_IRQHandler+0xa38>)
  15787. 80071b6: 4293 cmp r3, r2
  15788. 80071b8: d00e beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15789. 80071ba: 687b ldr r3, [r7, #4]
  15790. 80071bc: 681b ldr r3, [r3, #0]
  15791. 80071be: 4a67 ldr r2, [pc, #412] @ (800735c <HAL_DMA_IRQHandler+0xa3c>)
  15792. 80071c0: 4293 cmp r3, r2
  15793. 80071c2: d009 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15794. 80071c4: 687b ldr r3, [r7, #4]
  15795. 80071c6: 681b ldr r3, [r3, #0]
  15796. 80071c8: 4a65 ldr r2, [pc, #404] @ (8007360 <HAL_DMA_IRQHandler+0xa40>)
  15797. 80071ca: 4293 cmp r3, r2
  15798. 80071cc: d004 beq.n 80071d8 <HAL_DMA_IRQHandler+0x8b8>
  15799. 80071ce: 687b ldr r3, [r7, #4]
  15800. 80071d0: 681b ldr r3, [r3, #0]
  15801. 80071d2: 4a64 ldr r2, [pc, #400] @ (8007364 <HAL_DMA_IRQHandler+0xa44>)
  15802. 80071d4: 4293 cmp r3, r2
  15803. 80071d6: d108 bne.n 80071ea <HAL_DMA_IRQHandler+0x8ca>
  15804. 80071d8: 687b ldr r3, [r7, #4]
  15805. 80071da: 681b ldr r3, [r3, #0]
  15806. 80071dc: 681a ldr r2, [r3, #0]
  15807. 80071de: 687b ldr r3, [r7, #4]
  15808. 80071e0: 681b ldr r3, [r3, #0]
  15809. 80071e2: f022 0201 bic.w r2, r2, #1
  15810. 80071e6: 601a str r2, [r3, #0]
  15811. 80071e8: e007 b.n 80071fa <HAL_DMA_IRQHandler+0x8da>
  15812. 80071ea: 687b ldr r3, [r7, #4]
  15813. 80071ec: 681b ldr r3, [r3, #0]
  15814. 80071ee: 681a ldr r2, [r3, #0]
  15815. 80071f0: 687b ldr r3, [r7, #4]
  15816. 80071f2: 681b ldr r3, [r3, #0]
  15817. 80071f4: f022 0201 bic.w r2, r2, #1
  15818. 80071f8: 601a str r2, [r3, #0]
  15819. do
  15820. {
  15821. if (++count > timeout)
  15822. 80071fa: 68fb ldr r3, [r7, #12]
  15823. 80071fc: 3301 adds r3, #1
  15824. 80071fe: 60fb str r3, [r7, #12]
  15825. 8007200: 6a7a ldr r2, [r7, #36] @ 0x24
  15826. 8007202: 429a cmp r2, r3
  15827. 8007204: d307 bcc.n 8007216 <HAL_DMA_IRQHandler+0x8f6>
  15828. {
  15829. break;
  15830. }
  15831. }
  15832. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  15833. 8007206: 687b ldr r3, [r7, #4]
  15834. 8007208: 681b ldr r3, [r3, #0]
  15835. 800720a: 681b ldr r3, [r3, #0]
  15836. 800720c: f003 0301 and.w r3, r3, #1
  15837. 8007210: 2b00 cmp r3, #0
  15838. 8007212: d1f2 bne.n 80071fa <HAL_DMA_IRQHandler+0x8da>
  15839. 8007214: e000 b.n 8007218 <HAL_DMA_IRQHandler+0x8f8>
  15840. break;
  15841. 8007216: bf00 nop
  15842. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  15843. 8007218: 687b ldr r3, [r7, #4]
  15844. 800721a: 681b ldr r3, [r3, #0]
  15845. 800721c: 681b ldr r3, [r3, #0]
  15846. 800721e: f003 0301 and.w r3, r3, #1
  15847. 8007222: 2b00 cmp r3, #0
  15848. 8007224: d004 beq.n 8007230 <HAL_DMA_IRQHandler+0x910>
  15849. {
  15850. /* Change the DMA state to error if DMA disable fails */
  15851. hdma->State = HAL_DMA_STATE_ERROR;
  15852. 8007226: 687b ldr r3, [r7, #4]
  15853. 8007228: 2203 movs r2, #3
  15854. 800722a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15855. 800722e: e003 b.n 8007238 <HAL_DMA_IRQHandler+0x918>
  15856. }
  15857. else
  15858. {
  15859. /* Change the DMA state to Ready if DMA disable success */
  15860. hdma->State = HAL_DMA_STATE_READY;
  15861. 8007230: 687b ldr r3, [r7, #4]
  15862. 8007232: 2201 movs r2, #1
  15863. 8007234: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15864. }
  15865. /* Process Unlocked */
  15866. __HAL_UNLOCK(hdma);
  15867. 8007238: 687b ldr r3, [r7, #4]
  15868. 800723a: 2200 movs r2, #0
  15869. 800723c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15870. }
  15871. if(hdma->XferErrorCallback != NULL)
  15872. 8007240: 687b ldr r3, [r7, #4]
  15873. 8007242: 6cdb ldr r3, [r3, #76] @ 0x4c
  15874. 8007244: 2b00 cmp r3, #0
  15875. 8007246: f000 8272 beq.w 800772e <HAL_DMA_IRQHandler+0xe0e>
  15876. {
  15877. /* Transfer error callback */
  15878. hdma->XferErrorCallback(hdma);
  15879. 800724a: 687b ldr r3, [r7, #4]
  15880. 800724c: 6cdb ldr r3, [r3, #76] @ 0x4c
  15881. 800724e: 6878 ldr r0, [r7, #4]
  15882. 8007250: 4798 blx r3
  15883. 8007252: e26c b.n 800772e <HAL_DMA_IRQHandler+0xe0e>
  15884. }
  15885. }
  15886. }
  15887. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  15888. 8007254: 687b ldr r3, [r7, #4]
  15889. 8007256: 681b ldr r3, [r3, #0]
  15890. 8007258: 4a43 ldr r2, [pc, #268] @ (8007368 <HAL_DMA_IRQHandler+0xa48>)
  15891. 800725a: 4293 cmp r3, r2
  15892. 800725c: d022 beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15893. 800725e: 687b ldr r3, [r7, #4]
  15894. 8007260: 681b ldr r3, [r3, #0]
  15895. 8007262: 4a42 ldr r2, [pc, #264] @ (800736c <HAL_DMA_IRQHandler+0xa4c>)
  15896. 8007264: 4293 cmp r3, r2
  15897. 8007266: d01d beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15898. 8007268: 687b ldr r3, [r7, #4]
  15899. 800726a: 681b ldr r3, [r3, #0]
  15900. 800726c: 4a40 ldr r2, [pc, #256] @ (8007370 <HAL_DMA_IRQHandler+0xa50>)
  15901. 800726e: 4293 cmp r3, r2
  15902. 8007270: d018 beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15903. 8007272: 687b ldr r3, [r7, #4]
  15904. 8007274: 681b ldr r3, [r3, #0]
  15905. 8007276: 4a3f ldr r2, [pc, #252] @ (8007374 <HAL_DMA_IRQHandler+0xa54>)
  15906. 8007278: 4293 cmp r3, r2
  15907. 800727a: d013 beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15908. 800727c: 687b ldr r3, [r7, #4]
  15909. 800727e: 681b ldr r3, [r3, #0]
  15910. 8007280: 4a3d ldr r2, [pc, #244] @ (8007378 <HAL_DMA_IRQHandler+0xa58>)
  15911. 8007282: 4293 cmp r3, r2
  15912. 8007284: d00e beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15913. 8007286: 687b ldr r3, [r7, #4]
  15914. 8007288: 681b ldr r3, [r3, #0]
  15915. 800728a: 4a3c ldr r2, [pc, #240] @ (800737c <HAL_DMA_IRQHandler+0xa5c>)
  15916. 800728c: 4293 cmp r3, r2
  15917. 800728e: d009 beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15918. 8007290: 687b ldr r3, [r7, #4]
  15919. 8007292: 681b ldr r3, [r3, #0]
  15920. 8007294: 4a3a ldr r2, [pc, #232] @ (8007380 <HAL_DMA_IRQHandler+0xa60>)
  15921. 8007296: 4293 cmp r3, r2
  15922. 8007298: d004 beq.n 80072a4 <HAL_DMA_IRQHandler+0x984>
  15923. 800729a: 687b ldr r3, [r7, #4]
  15924. 800729c: 681b ldr r3, [r3, #0]
  15925. 800729e: 4a39 ldr r2, [pc, #228] @ (8007384 <HAL_DMA_IRQHandler+0xa64>)
  15926. 80072a0: 4293 cmp r3, r2
  15927. 80072a2: d101 bne.n 80072a8 <HAL_DMA_IRQHandler+0x988>
  15928. 80072a4: 2301 movs r3, #1
  15929. 80072a6: e000 b.n 80072aa <HAL_DMA_IRQHandler+0x98a>
  15930. 80072a8: 2300 movs r3, #0
  15931. 80072aa: 2b00 cmp r3, #0
  15932. 80072ac: f000 823f beq.w 800772e <HAL_DMA_IRQHandler+0xe0e>
  15933. {
  15934. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  15935. 80072b0: 687b ldr r3, [r7, #4]
  15936. 80072b2: 681b ldr r3, [r3, #0]
  15937. 80072b4: 681b ldr r3, [r3, #0]
  15938. 80072b6: 613b str r3, [r7, #16]
  15939. /* Half Transfer Complete Interrupt management ******************************/
  15940. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  15941. 80072b8: 687b ldr r3, [r7, #4]
  15942. 80072ba: 6ddb ldr r3, [r3, #92] @ 0x5c
  15943. 80072bc: f003 031f and.w r3, r3, #31
  15944. 80072c0: 2204 movs r2, #4
  15945. 80072c2: 409a lsls r2, r3
  15946. 80072c4: 697b ldr r3, [r7, #20]
  15947. 80072c6: 4013 ands r3, r2
  15948. 80072c8: 2b00 cmp r3, #0
  15949. 80072ca: f000 80cd beq.w 8007468 <HAL_DMA_IRQHandler+0xb48>
  15950. 80072ce: 693b ldr r3, [r7, #16]
  15951. 80072d0: f003 0304 and.w r3, r3, #4
  15952. 80072d4: 2b00 cmp r3, #0
  15953. 80072d6: f000 80c7 beq.w 8007468 <HAL_DMA_IRQHandler+0xb48>
  15954. {
  15955. /* Clear the half transfer complete flag */
  15956. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  15957. 80072da: 687b ldr r3, [r7, #4]
  15958. 80072dc: 6ddb ldr r3, [r3, #92] @ 0x5c
  15959. 80072de: f003 031f and.w r3, r3, #31
  15960. 80072e2: 2204 movs r2, #4
  15961. 80072e4: 409a lsls r2, r3
  15962. 80072e6: 69fb ldr r3, [r7, #28]
  15963. 80072e8: 605a str r2, [r3, #4]
  15964. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  15965. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15966. 80072ea: 693b ldr r3, [r7, #16]
  15967. 80072ec: f403 4300 and.w r3, r3, #32768 @ 0x8000
  15968. 80072f0: 2b00 cmp r3, #0
  15969. 80072f2: d049 beq.n 8007388 <HAL_DMA_IRQHandler+0xa68>
  15970. {
  15971. /* Current memory buffer used is Memory 0 */
  15972. if((ccr_reg & BDMA_CCR_CT) == 0U)
  15973. 80072f4: 693b ldr r3, [r7, #16]
  15974. 80072f6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  15975. 80072fa: 2b00 cmp r3, #0
  15976. 80072fc: d109 bne.n 8007312 <HAL_DMA_IRQHandler+0x9f2>
  15977. {
  15978. if(hdma->XferM1HalfCpltCallback != NULL)
  15979. 80072fe: 687b ldr r3, [r7, #4]
  15980. 8007300: 6c9b ldr r3, [r3, #72] @ 0x48
  15981. 8007302: 2b00 cmp r3, #0
  15982. 8007304: f000 8210 beq.w 8007728 <HAL_DMA_IRQHandler+0xe08>
  15983. {
  15984. /* Half transfer Callback for Memory 1 */
  15985. hdma->XferM1HalfCpltCallback(hdma);
  15986. 8007308: 687b ldr r3, [r7, #4]
  15987. 800730a: 6c9b ldr r3, [r3, #72] @ 0x48
  15988. 800730c: 6878 ldr r0, [r7, #4]
  15989. 800730e: 4798 blx r3
  15990. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  15991. 8007310: e20a b.n 8007728 <HAL_DMA_IRQHandler+0xe08>
  15992. }
  15993. }
  15994. /* Current memory buffer used is Memory 1 */
  15995. else
  15996. {
  15997. if(hdma->XferHalfCpltCallback != NULL)
  15998. 8007312: 687b ldr r3, [r7, #4]
  15999. 8007314: 6c1b ldr r3, [r3, #64] @ 0x40
  16000. 8007316: 2b00 cmp r3, #0
  16001. 8007318: f000 8206 beq.w 8007728 <HAL_DMA_IRQHandler+0xe08>
  16002. {
  16003. /* Half transfer Callback for Memory 0 */
  16004. hdma->XferHalfCpltCallback(hdma);
  16005. 800731c: 687b ldr r3, [r7, #4]
  16006. 800731e: 6c1b ldr r3, [r3, #64] @ 0x40
  16007. 8007320: 6878 ldr r0, [r7, #4]
  16008. 8007322: 4798 blx r3
  16009. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16010. 8007324: e200 b.n 8007728 <HAL_DMA_IRQHandler+0xe08>
  16011. 8007326: bf00 nop
  16012. 8007328: 40020010 .word 0x40020010
  16013. 800732c: 40020028 .word 0x40020028
  16014. 8007330: 40020040 .word 0x40020040
  16015. 8007334: 40020058 .word 0x40020058
  16016. 8007338: 40020070 .word 0x40020070
  16017. 800733c: 40020088 .word 0x40020088
  16018. 8007340: 400200a0 .word 0x400200a0
  16019. 8007344: 400200b8 .word 0x400200b8
  16020. 8007348: 40020410 .word 0x40020410
  16021. 800734c: 40020428 .word 0x40020428
  16022. 8007350: 40020440 .word 0x40020440
  16023. 8007354: 40020458 .word 0x40020458
  16024. 8007358: 40020470 .word 0x40020470
  16025. 800735c: 40020488 .word 0x40020488
  16026. 8007360: 400204a0 .word 0x400204a0
  16027. 8007364: 400204b8 .word 0x400204b8
  16028. 8007368: 58025408 .word 0x58025408
  16029. 800736c: 5802541c .word 0x5802541c
  16030. 8007370: 58025430 .word 0x58025430
  16031. 8007374: 58025444 .word 0x58025444
  16032. 8007378: 58025458 .word 0x58025458
  16033. 800737c: 5802546c .word 0x5802546c
  16034. 8007380: 58025480 .word 0x58025480
  16035. 8007384: 58025494 .word 0x58025494
  16036. }
  16037. }
  16038. }
  16039. else
  16040. {
  16041. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  16042. 8007388: 693b ldr r3, [r7, #16]
  16043. 800738a: f003 0320 and.w r3, r3, #32
  16044. 800738e: 2b00 cmp r3, #0
  16045. 8007390: d160 bne.n 8007454 <HAL_DMA_IRQHandler+0xb34>
  16046. {
  16047. /* Disable the half transfer interrupt */
  16048. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  16049. 8007392: 687b ldr r3, [r7, #4]
  16050. 8007394: 681b ldr r3, [r3, #0]
  16051. 8007396: 4a7f ldr r2, [pc, #508] @ (8007594 <HAL_DMA_IRQHandler+0xc74>)
  16052. 8007398: 4293 cmp r3, r2
  16053. 800739a: d04a beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16054. 800739c: 687b ldr r3, [r7, #4]
  16055. 800739e: 681b ldr r3, [r3, #0]
  16056. 80073a0: 4a7d ldr r2, [pc, #500] @ (8007598 <HAL_DMA_IRQHandler+0xc78>)
  16057. 80073a2: 4293 cmp r3, r2
  16058. 80073a4: d045 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16059. 80073a6: 687b ldr r3, [r7, #4]
  16060. 80073a8: 681b ldr r3, [r3, #0]
  16061. 80073aa: 4a7c ldr r2, [pc, #496] @ (800759c <HAL_DMA_IRQHandler+0xc7c>)
  16062. 80073ac: 4293 cmp r3, r2
  16063. 80073ae: d040 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16064. 80073b0: 687b ldr r3, [r7, #4]
  16065. 80073b2: 681b ldr r3, [r3, #0]
  16066. 80073b4: 4a7a ldr r2, [pc, #488] @ (80075a0 <HAL_DMA_IRQHandler+0xc80>)
  16067. 80073b6: 4293 cmp r3, r2
  16068. 80073b8: d03b beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16069. 80073ba: 687b ldr r3, [r7, #4]
  16070. 80073bc: 681b ldr r3, [r3, #0]
  16071. 80073be: 4a79 ldr r2, [pc, #484] @ (80075a4 <HAL_DMA_IRQHandler+0xc84>)
  16072. 80073c0: 4293 cmp r3, r2
  16073. 80073c2: d036 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16074. 80073c4: 687b ldr r3, [r7, #4]
  16075. 80073c6: 681b ldr r3, [r3, #0]
  16076. 80073c8: 4a77 ldr r2, [pc, #476] @ (80075a8 <HAL_DMA_IRQHandler+0xc88>)
  16077. 80073ca: 4293 cmp r3, r2
  16078. 80073cc: d031 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16079. 80073ce: 687b ldr r3, [r7, #4]
  16080. 80073d0: 681b ldr r3, [r3, #0]
  16081. 80073d2: 4a76 ldr r2, [pc, #472] @ (80075ac <HAL_DMA_IRQHandler+0xc8c>)
  16082. 80073d4: 4293 cmp r3, r2
  16083. 80073d6: d02c beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16084. 80073d8: 687b ldr r3, [r7, #4]
  16085. 80073da: 681b ldr r3, [r3, #0]
  16086. 80073dc: 4a74 ldr r2, [pc, #464] @ (80075b0 <HAL_DMA_IRQHandler+0xc90>)
  16087. 80073de: 4293 cmp r3, r2
  16088. 80073e0: d027 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16089. 80073e2: 687b ldr r3, [r7, #4]
  16090. 80073e4: 681b ldr r3, [r3, #0]
  16091. 80073e6: 4a73 ldr r2, [pc, #460] @ (80075b4 <HAL_DMA_IRQHandler+0xc94>)
  16092. 80073e8: 4293 cmp r3, r2
  16093. 80073ea: d022 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16094. 80073ec: 687b ldr r3, [r7, #4]
  16095. 80073ee: 681b ldr r3, [r3, #0]
  16096. 80073f0: 4a71 ldr r2, [pc, #452] @ (80075b8 <HAL_DMA_IRQHandler+0xc98>)
  16097. 80073f2: 4293 cmp r3, r2
  16098. 80073f4: d01d beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16099. 80073f6: 687b ldr r3, [r7, #4]
  16100. 80073f8: 681b ldr r3, [r3, #0]
  16101. 80073fa: 4a70 ldr r2, [pc, #448] @ (80075bc <HAL_DMA_IRQHandler+0xc9c>)
  16102. 80073fc: 4293 cmp r3, r2
  16103. 80073fe: d018 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16104. 8007400: 687b ldr r3, [r7, #4]
  16105. 8007402: 681b ldr r3, [r3, #0]
  16106. 8007404: 4a6e ldr r2, [pc, #440] @ (80075c0 <HAL_DMA_IRQHandler+0xca0>)
  16107. 8007406: 4293 cmp r3, r2
  16108. 8007408: d013 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16109. 800740a: 687b ldr r3, [r7, #4]
  16110. 800740c: 681b ldr r3, [r3, #0]
  16111. 800740e: 4a6d ldr r2, [pc, #436] @ (80075c4 <HAL_DMA_IRQHandler+0xca4>)
  16112. 8007410: 4293 cmp r3, r2
  16113. 8007412: d00e beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16114. 8007414: 687b ldr r3, [r7, #4]
  16115. 8007416: 681b ldr r3, [r3, #0]
  16116. 8007418: 4a6b ldr r2, [pc, #428] @ (80075c8 <HAL_DMA_IRQHandler+0xca8>)
  16117. 800741a: 4293 cmp r3, r2
  16118. 800741c: d009 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16119. 800741e: 687b ldr r3, [r7, #4]
  16120. 8007420: 681b ldr r3, [r3, #0]
  16121. 8007422: 4a6a ldr r2, [pc, #424] @ (80075cc <HAL_DMA_IRQHandler+0xcac>)
  16122. 8007424: 4293 cmp r3, r2
  16123. 8007426: d004 beq.n 8007432 <HAL_DMA_IRQHandler+0xb12>
  16124. 8007428: 687b ldr r3, [r7, #4]
  16125. 800742a: 681b ldr r3, [r3, #0]
  16126. 800742c: 4a68 ldr r2, [pc, #416] @ (80075d0 <HAL_DMA_IRQHandler+0xcb0>)
  16127. 800742e: 4293 cmp r3, r2
  16128. 8007430: d108 bne.n 8007444 <HAL_DMA_IRQHandler+0xb24>
  16129. 8007432: 687b ldr r3, [r7, #4]
  16130. 8007434: 681b ldr r3, [r3, #0]
  16131. 8007436: 681a ldr r2, [r3, #0]
  16132. 8007438: 687b ldr r3, [r7, #4]
  16133. 800743a: 681b ldr r3, [r3, #0]
  16134. 800743c: f022 0208 bic.w r2, r2, #8
  16135. 8007440: 601a str r2, [r3, #0]
  16136. 8007442: e007 b.n 8007454 <HAL_DMA_IRQHandler+0xb34>
  16137. 8007444: 687b ldr r3, [r7, #4]
  16138. 8007446: 681b ldr r3, [r3, #0]
  16139. 8007448: 681a ldr r2, [r3, #0]
  16140. 800744a: 687b ldr r3, [r7, #4]
  16141. 800744c: 681b ldr r3, [r3, #0]
  16142. 800744e: f022 0204 bic.w r2, r2, #4
  16143. 8007452: 601a str r2, [r3, #0]
  16144. }
  16145. /* DMA peripheral state is not updated in Half Transfer */
  16146. /* but in Transfer Complete case */
  16147. if(hdma->XferHalfCpltCallback != NULL)
  16148. 8007454: 687b ldr r3, [r7, #4]
  16149. 8007456: 6c1b ldr r3, [r3, #64] @ 0x40
  16150. 8007458: 2b00 cmp r3, #0
  16151. 800745a: f000 8165 beq.w 8007728 <HAL_DMA_IRQHandler+0xe08>
  16152. {
  16153. /* Half transfer callback */
  16154. hdma->XferHalfCpltCallback(hdma);
  16155. 800745e: 687b ldr r3, [r7, #4]
  16156. 8007460: 6c1b ldr r3, [r3, #64] @ 0x40
  16157. 8007462: 6878 ldr r0, [r7, #4]
  16158. 8007464: 4798 blx r3
  16159. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16160. 8007466: e15f b.n 8007728 <HAL_DMA_IRQHandler+0xe08>
  16161. }
  16162. }
  16163. }
  16164. /* Transfer Complete Interrupt management ***********************************/
  16165. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  16166. 8007468: 687b ldr r3, [r7, #4]
  16167. 800746a: 6ddb ldr r3, [r3, #92] @ 0x5c
  16168. 800746c: f003 031f and.w r3, r3, #31
  16169. 8007470: 2202 movs r2, #2
  16170. 8007472: 409a lsls r2, r3
  16171. 8007474: 697b ldr r3, [r7, #20]
  16172. 8007476: 4013 ands r3, r2
  16173. 8007478: 2b00 cmp r3, #0
  16174. 800747a: f000 80c5 beq.w 8007608 <HAL_DMA_IRQHandler+0xce8>
  16175. 800747e: 693b ldr r3, [r7, #16]
  16176. 8007480: f003 0302 and.w r3, r3, #2
  16177. 8007484: 2b00 cmp r3, #0
  16178. 8007486: f000 80bf beq.w 8007608 <HAL_DMA_IRQHandler+0xce8>
  16179. {
  16180. /* Clear the transfer complete flag */
  16181. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  16182. 800748a: 687b ldr r3, [r7, #4]
  16183. 800748c: 6ddb ldr r3, [r3, #92] @ 0x5c
  16184. 800748e: f003 031f and.w r3, r3, #31
  16185. 8007492: 2202 movs r2, #2
  16186. 8007494: 409a lsls r2, r3
  16187. 8007496: 69fb ldr r3, [r7, #28]
  16188. 8007498: 605a str r2, [r3, #4]
  16189. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  16190. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16191. 800749a: 693b ldr r3, [r7, #16]
  16192. 800749c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  16193. 80074a0: 2b00 cmp r3, #0
  16194. 80074a2: d018 beq.n 80074d6 <HAL_DMA_IRQHandler+0xbb6>
  16195. {
  16196. /* Current memory buffer used is Memory 0 */
  16197. if((ccr_reg & BDMA_CCR_CT) == 0U)
  16198. 80074a4: 693b ldr r3, [r7, #16]
  16199. 80074a6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  16200. 80074aa: 2b00 cmp r3, #0
  16201. 80074ac: d109 bne.n 80074c2 <HAL_DMA_IRQHandler+0xba2>
  16202. {
  16203. if(hdma->XferM1CpltCallback != NULL)
  16204. 80074ae: 687b ldr r3, [r7, #4]
  16205. 80074b0: 6c5b ldr r3, [r3, #68] @ 0x44
  16206. 80074b2: 2b00 cmp r3, #0
  16207. 80074b4: f000 813a beq.w 800772c <HAL_DMA_IRQHandler+0xe0c>
  16208. {
  16209. /* Transfer complete Callback for Memory 1 */
  16210. hdma->XferM1CpltCallback(hdma);
  16211. 80074b8: 687b ldr r3, [r7, #4]
  16212. 80074ba: 6c5b ldr r3, [r3, #68] @ 0x44
  16213. 80074bc: 6878 ldr r0, [r7, #4]
  16214. 80074be: 4798 blx r3
  16215. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16216. 80074c0: e134 b.n 800772c <HAL_DMA_IRQHandler+0xe0c>
  16217. }
  16218. }
  16219. /* Current memory buffer used is Memory 1 */
  16220. else
  16221. {
  16222. if(hdma->XferCpltCallback != NULL)
  16223. 80074c2: 687b ldr r3, [r7, #4]
  16224. 80074c4: 6bdb ldr r3, [r3, #60] @ 0x3c
  16225. 80074c6: 2b00 cmp r3, #0
  16226. 80074c8: f000 8130 beq.w 800772c <HAL_DMA_IRQHandler+0xe0c>
  16227. {
  16228. /* Transfer complete Callback for Memory 0 */
  16229. hdma->XferCpltCallback(hdma);
  16230. 80074cc: 687b ldr r3, [r7, #4]
  16231. 80074ce: 6bdb ldr r3, [r3, #60] @ 0x3c
  16232. 80074d0: 6878 ldr r0, [r7, #4]
  16233. 80074d2: 4798 blx r3
  16234. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16235. 80074d4: e12a b.n 800772c <HAL_DMA_IRQHandler+0xe0c>
  16236. }
  16237. }
  16238. }
  16239. else
  16240. {
  16241. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  16242. 80074d6: 693b ldr r3, [r7, #16]
  16243. 80074d8: f003 0320 and.w r3, r3, #32
  16244. 80074dc: 2b00 cmp r3, #0
  16245. 80074de: f040 8089 bne.w 80075f4 <HAL_DMA_IRQHandler+0xcd4>
  16246. {
  16247. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  16248. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  16249. 80074e2: 687b ldr r3, [r7, #4]
  16250. 80074e4: 681b ldr r3, [r3, #0]
  16251. 80074e6: 4a2b ldr r2, [pc, #172] @ (8007594 <HAL_DMA_IRQHandler+0xc74>)
  16252. 80074e8: 4293 cmp r3, r2
  16253. 80074ea: d04a beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16254. 80074ec: 687b ldr r3, [r7, #4]
  16255. 80074ee: 681b ldr r3, [r3, #0]
  16256. 80074f0: 4a29 ldr r2, [pc, #164] @ (8007598 <HAL_DMA_IRQHandler+0xc78>)
  16257. 80074f2: 4293 cmp r3, r2
  16258. 80074f4: d045 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16259. 80074f6: 687b ldr r3, [r7, #4]
  16260. 80074f8: 681b ldr r3, [r3, #0]
  16261. 80074fa: 4a28 ldr r2, [pc, #160] @ (800759c <HAL_DMA_IRQHandler+0xc7c>)
  16262. 80074fc: 4293 cmp r3, r2
  16263. 80074fe: d040 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16264. 8007500: 687b ldr r3, [r7, #4]
  16265. 8007502: 681b ldr r3, [r3, #0]
  16266. 8007504: 4a26 ldr r2, [pc, #152] @ (80075a0 <HAL_DMA_IRQHandler+0xc80>)
  16267. 8007506: 4293 cmp r3, r2
  16268. 8007508: d03b beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16269. 800750a: 687b ldr r3, [r7, #4]
  16270. 800750c: 681b ldr r3, [r3, #0]
  16271. 800750e: 4a25 ldr r2, [pc, #148] @ (80075a4 <HAL_DMA_IRQHandler+0xc84>)
  16272. 8007510: 4293 cmp r3, r2
  16273. 8007512: d036 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16274. 8007514: 687b ldr r3, [r7, #4]
  16275. 8007516: 681b ldr r3, [r3, #0]
  16276. 8007518: 4a23 ldr r2, [pc, #140] @ (80075a8 <HAL_DMA_IRQHandler+0xc88>)
  16277. 800751a: 4293 cmp r3, r2
  16278. 800751c: d031 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16279. 800751e: 687b ldr r3, [r7, #4]
  16280. 8007520: 681b ldr r3, [r3, #0]
  16281. 8007522: 4a22 ldr r2, [pc, #136] @ (80075ac <HAL_DMA_IRQHandler+0xc8c>)
  16282. 8007524: 4293 cmp r3, r2
  16283. 8007526: d02c beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16284. 8007528: 687b ldr r3, [r7, #4]
  16285. 800752a: 681b ldr r3, [r3, #0]
  16286. 800752c: 4a20 ldr r2, [pc, #128] @ (80075b0 <HAL_DMA_IRQHandler+0xc90>)
  16287. 800752e: 4293 cmp r3, r2
  16288. 8007530: d027 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16289. 8007532: 687b ldr r3, [r7, #4]
  16290. 8007534: 681b ldr r3, [r3, #0]
  16291. 8007536: 4a1f ldr r2, [pc, #124] @ (80075b4 <HAL_DMA_IRQHandler+0xc94>)
  16292. 8007538: 4293 cmp r3, r2
  16293. 800753a: d022 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16294. 800753c: 687b ldr r3, [r7, #4]
  16295. 800753e: 681b ldr r3, [r3, #0]
  16296. 8007540: 4a1d ldr r2, [pc, #116] @ (80075b8 <HAL_DMA_IRQHandler+0xc98>)
  16297. 8007542: 4293 cmp r3, r2
  16298. 8007544: d01d beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16299. 8007546: 687b ldr r3, [r7, #4]
  16300. 8007548: 681b ldr r3, [r3, #0]
  16301. 800754a: 4a1c ldr r2, [pc, #112] @ (80075bc <HAL_DMA_IRQHandler+0xc9c>)
  16302. 800754c: 4293 cmp r3, r2
  16303. 800754e: d018 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16304. 8007550: 687b ldr r3, [r7, #4]
  16305. 8007552: 681b ldr r3, [r3, #0]
  16306. 8007554: 4a1a ldr r2, [pc, #104] @ (80075c0 <HAL_DMA_IRQHandler+0xca0>)
  16307. 8007556: 4293 cmp r3, r2
  16308. 8007558: d013 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16309. 800755a: 687b ldr r3, [r7, #4]
  16310. 800755c: 681b ldr r3, [r3, #0]
  16311. 800755e: 4a19 ldr r2, [pc, #100] @ (80075c4 <HAL_DMA_IRQHandler+0xca4>)
  16312. 8007560: 4293 cmp r3, r2
  16313. 8007562: d00e beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16314. 8007564: 687b ldr r3, [r7, #4]
  16315. 8007566: 681b ldr r3, [r3, #0]
  16316. 8007568: 4a17 ldr r2, [pc, #92] @ (80075c8 <HAL_DMA_IRQHandler+0xca8>)
  16317. 800756a: 4293 cmp r3, r2
  16318. 800756c: d009 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16319. 800756e: 687b ldr r3, [r7, #4]
  16320. 8007570: 681b ldr r3, [r3, #0]
  16321. 8007572: 4a16 ldr r2, [pc, #88] @ (80075cc <HAL_DMA_IRQHandler+0xcac>)
  16322. 8007574: 4293 cmp r3, r2
  16323. 8007576: d004 beq.n 8007582 <HAL_DMA_IRQHandler+0xc62>
  16324. 8007578: 687b ldr r3, [r7, #4]
  16325. 800757a: 681b ldr r3, [r3, #0]
  16326. 800757c: 4a14 ldr r2, [pc, #80] @ (80075d0 <HAL_DMA_IRQHandler+0xcb0>)
  16327. 800757e: 4293 cmp r3, r2
  16328. 8007580: d128 bne.n 80075d4 <HAL_DMA_IRQHandler+0xcb4>
  16329. 8007582: 687b ldr r3, [r7, #4]
  16330. 8007584: 681b ldr r3, [r3, #0]
  16331. 8007586: 681a ldr r2, [r3, #0]
  16332. 8007588: 687b ldr r3, [r7, #4]
  16333. 800758a: 681b ldr r3, [r3, #0]
  16334. 800758c: f022 0214 bic.w r2, r2, #20
  16335. 8007590: 601a str r2, [r3, #0]
  16336. 8007592: e027 b.n 80075e4 <HAL_DMA_IRQHandler+0xcc4>
  16337. 8007594: 40020010 .word 0x40020010
  16338. 8007598: 40020028 .word 0x40020028
  16339. 800759c: 40020040 .word 0x40020040
  16340. 80075a0: 40020058 .word 0x40020058
  16341. 80075a4: 40020070 .word 0x40020070
  16342. 80075a8: 40020088 .word 0x40020088
  16343. 80075ac: 400200a0 .word 0x400200a0
  16344. 80075b0: 400200b8 .word 0x400200b8
  16345. 80075b4: 40020410 .word 0x40020410
  16346. 80075b8: 40020428 .word 0x40020428
  16347. 80075bc: 40020440 .word 0x40020440
  16348. 80075c0: 40020458 .word 0x40020458
  16349. 80075c4: 40020470 .word 0x40020470
  16350. 80075c8: 40020488 .word 0x40020488
  16351. 80075cc: 400204a0 .word 0x400204a0
  16352. 80075d0: 400204b8 .word 0x400204b8
  16353. 80075d4: 687b ldr r3, [r7, #4]
  16354. 80075d6: 681b ldr r3, [r3, #0]
  16355. 80075d8: 681a ldr r2, [r3, #0]
  16356. 80075da: 687b ldr r3, [r7, #4]
  16357. 80075dc: 681b ldr r3, [r3, #0]
  16358. 80075de: f022 020a bic.w r2, r2, #10
  16359. 80075e2: 601a str r2, [r3, #0]
  16360. /* Change the DMA state */
  16361. hdma->State = HAL_DMA_STATE_READY;
  16362. 80075e4: 687b ldr r3, [r7, #4]
  16363. 80075e6: 2201 movs r2, #1
  16364. 80075e8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16365. /* Process Unlocked */
  16366. __HAL_UNLOCK(hdma);
  16367. 80075ec: 687b ldr r3, [r7, #4]
  16368. 80075ee: 2200 movs r2, #0
  16369. 80075f0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16370. }
  16371. if(hdma->XferCpltCallback != NULL)
  16372. 80075f4: 687b ldr r3, [r7, #4]
  16373. 80075f6: 6bdb ldr r3, [r3, #60] @ 0x3c
  16374. 80075f8: 2b00 cmp r3, #0
  16375. 80075fa: f000 8097 beq.w 800772c <HAL_DMA_IRQHandler+0xe0c>
  16376. {
  16377. /* Transfer complete callback */
  16378. hdma->XferCpltCallback(hdma);
  16379. 80075fe: 687b ldr r3, [r7, #4]
  16380. 8007600: 6bdb ldr r3, [r3, #60] @ 0x3c
  16381. 8007602: 6878 ldr r0, [r7, #4]
  16382. 8007604: 4798 blx r3
  16383. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16384. 8007606: e091 b.n 800772c <HAL_DMA_IRQHandler+0xe0c>
  16385. }
  16386. }
  16387. }
  16388. /* Transfer Error Interrupt management **************************************/
  16389. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  16390. 8007608: 687b ldr r3, [r7, #4]
  16391. 800760a: 6ddb ldr r3, [r3, #92] @ 0x5c
  16392. 800760c: f003 031f and.w r3, r3, #31
  16393. 8007610: 2208 movs r2, #8
  16394. 8007612: 409a lsls r2, r3
  16395. 8007614: 697b ldr r3, [r7, #20]
  16396. 8007616: 4013 ands r3, r2
  16397. 8007618: 2b00 cmp r3, #0
  16398. 800761a: f000 8088 beq.w 800772e <HAL_DMA_IRQHandler+0xe0e>
  16399. 800761e: 693b ldr r3, [r7, #16]
  16400. 8007620: f003 0308 and.w r3, r3, #8
  16401. 8007624: 2b00 cmp r3, #0
  16402. 8007626: f000 8082 beq.w 800772e <HAL_DMA_IRQHandler+0xe0e>
  16403. {
  16404. /* When a DMA transfer error occurs */
  16405. /* A hardware clear of its EN bits is performed */
  16406. /* Disable ALL DMA IT */
  16407. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  16408. 800762a: 687b ldr r3, [r7, #4]
  16409. 800762c: 681b ldr r3, [r3, #0]
  16410. 800762e: 4a41 ldr r2, [pc, #260] @ (8007734 <HAL_DMA_IRQHandler+0xe14>)
  16411. 8007630: 4293 cmp r3, r2
  16412. 8007632: d04a beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16413. 8007634: 687b ldr r3, [r7, #4]
  16414. 8007636: 681b ldr r3, [r3, #0]
  16415. 8007638: 4a3f ldr r2, [pc, #252] @ (8007738 <HAL_DMA_IRQHandler+0xe18>)
  16416. 800763a: 4293 cmp r3, r2
  16417. 800763c: d045 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16418. 800763e: 687b ldr r3, [r7, #4]
  16419. 8007640: 681b ldr r3, [r3, #0]
  16420. 8007642: 4a3e ldr r2, [pc, #248] @ (800773c <HAL_DMA_IRQHandler+0xe1c>)
  16421. 8007644: 4293 cmp r3, r2
  16422. 8007646: d040 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16423. 8007648: 687b ldr r3, [r7, #4]
  16424. 800764a: 681b ldr r3, [r3, #0]
  16425. 800764c: 4a3c ldr r2, [pc, #240] @ (8007740 <HAL_DMA_IRQHandler+0xe20>)
  16426. 800764e: 4293 cmp r3, r2
  16427. 8007650: d03b beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16428. 8007652: 687b ldr r3, [r7, #4]
  16429. 8007654: 681b ldr r3, [r3, #0]
  16430. 8007656: 4a3b ldr r2, [pc, #236] @ (8007744 <HAL_DMA_IRQHandler+0xe24>)
  16431. 8007658: 4293 cmp r3, r2
  16432. 800765a: d036 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16433. 800765c: 687b ldr r3, [r7, #4]
  16434. 800765e: 681b ldr r3, [r3, #0]
  16435. 8007660: 4a39 ldr r2, [pc, #228] @ (8007748 <HAL_DMA_IRQHandler+0xe28>)
  16436. 8007662: 4293 cmp r3, r2
  16437. 8007664: d031 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16438. 8007666: 687b ldr r3, [r7, #4]
  16439. 8007668: 681b ldr r3, [r3, #0]
  16440. 800766a: 4a38 ldr r2, [pc, #224] @ (800774c <HAL_DMA_IRQHandler+0xe2c>)
  16441. 800766c: 4293 cmp r3, r2
  16442. 800766e: d02c beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16443. 8007670: 687b ldr r3, [r7, #4]
  16444. 8007672: 681b ldr r3, [r3, #0]
  16445. 8007674: 4a36 ldr r2, [pc, #216] @ (8007750 <HAL_DMA_IRQHandler+0xe30>)
  16446. 8007676: 4293 cmp r3, r2
  16447. 8007678: d027 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16448. 800767a: 687b ldr r3, [r7, #4]
  16449. 800767c: 681b ldr r3, [r3, #0]
  16450. 800767e: 4a35 ldr r2, [pc, #212] @ (8007754 <HAL_DMA_IRQHandler+0xe34>)
  16451. 8007680: 4293 cmp r3, r2
  16452. 8007682: d022 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16453. 8007684: 687b ldr r3, [r7, #4]
  16454. 8007686: 681b ldr r3, [r3, #0]
  16455. 8007688: 4a33 ldr r2, [pc, #204] @ (8007758 <HAL_DMA_IRQHandler+0xe38>)
  16456. 800768a: 4293 cmp r3, r2
  16457. 800768c: d01d beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16458. 800768e: 687b ldr r3, [r7, #4]
  16459. 8007690: 681b ldr r3, [r3, #0]
  16460. 8007692: 4a32 ldr r2, [pc, #200] @ (800775c <HAL_DMA_IRQHandler+0xe3c>)
  16461. 8007694: 4293 cmp r3, r2
  16462. 8007696: d018 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16463. 8007698: 687b ldr r3, [r7, #4]
  16464. 800769a: 681b ldr r3, [r3, #0]
  16465. 800769c: 4a30 ldr r2, [pc, #192] @ (8007760 <HAL_DMA_IRQHandler+0xe40>)
  16466. 800769e: 4293 cmp r3, r2
  16467. 80076a0: d013 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16468. 80076a2: 687b ldr r3, [r7, #4]
  16469. 80076a4: 681b ldr r3, [r3, #0]
  16470. 80076a6: 4a2f ldr r2, [pc, #188] @ (8007764 <HAL_DMA_IRQHandler+0xe44>)
  16471. 80076a8: 4293 cmp r3, r2
  16472. 80076aa: d00e beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16473. 80076ac: 687b ldr r3, [r7, #4]
  16474. 80076ae: 681b ldr r3, [r3, #0]
  16475. 80076b0: 4a2d ldr r2, [pc, #180] @ (8007768 <HAL_DMA_IRQHandler+0xe48>)
  16476. 80076b2: 4293 cmp r3, r2
  16477. 80076b4: d009 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16478. 80076b6: 687b ldr r3, [r7, #4]
  16479. 80076b8: 681b ldr r3, [r3, #0]
  16480. 80076ba: 4a2c ldr r2, [pc, #176] @ (800776c <HAL_DMA_IRQHandler+0xe4c>)
  16481. 80076bc: 4293 cmp r3, r2
  16482. 80076be: d004 beq.n 80076ca <HAL_DMA_IRQHandler+0xdaa>
  16483. 80076c0: 687b ldr r3, [r7, #4]
  16484. 80076c2: 681b ldr r3, [r3, #0]
  16485. 80076c4: 4a2a ldr r2, [pc, #168] @ (8007770 <HAL_DMA_IRQHandler+0xe50>)
  16486. 80076c6: 4293 cmp r3, r2
  16487. 80076c8: d108 bne.n 80076dc <HAL_DMA_IRQHandler+0xdbc>
  16488. 80076ca: 687b ldr r3, [r7, #4]
  16489. 80076cc: 681b ldr r3, [r3, #0]
  16490. 80076ce: 681a ldr r2, [r3, #0]
  16491. 80076d0: 687b ldr r3, [r7, #4]
  16492. 80076d2: 681b ldr r3, [r3, #0]
  16493. 80076d4: f022 021c bic.w r2, r2, #28
  16494. 80076d8: 601a str r2, [r3, #0]
  16495. 80076da: e007 b.n 80076ec <HAL_DMA_IRQHandler+0xdcc>
  16496. 80076dc: 687b ldr r3, [r7, #4]
  16497. 80076de: 681b ldr r3, [r3, #0]
  16498. 80076e0: 681a ldr r2, [r3, #0]
  16499. 80076e2: 687b ldr r3, [r7, #4]
  16500. 80076e4: 681b ldr r3, [r3, #0]
  16501. 80076e6: f022 020e bic.w r2, r2, #14
  16502. 80076ea: 601a str r2, [r3, #0]
  16503. /* Clear all flags */
  16504. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  16505. 80076ec: 687b ldr r3, [r7, #4]
  16506. 80076ee: 6ddb ldr r3, [r3, #92] @ 0x5c
  16507. 80076f0: f003 031f and.w r3, r3, #31
  16508. 80076f4: 2201 movs r2, #1
  16509. 80076f6: 409a lsls r2, r3
  16510. 80076f8: 69fb ldr r3, [r7, #28]
  16511. 80076fa: 605a str r2, [r3, #4]
  16512. /* Update error code */
  16513. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  16514. 80076fc: 687b ldr r3, [r7, #4]
  16515. 80076fe: 2201 movs r2, #1
  16516. 8007700: 655a str r2, [r3, #84] @ 0x54
  16517. /* Change the DMA state */
  16518. hdma->State = HAL_DMA_STATE_READY;
  16519. 8007702: 687b ldr r3, [r7, #4]
  16520. 8007704: 2201 movs r2, #1
  16521. 8007706: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16522. /* Process Unlocked */
  16523. __HAL_UNLOCK(hdma);
  16524. 800770a: 687b ldr r3, [r7, #4]
  16525. 800770c: 2200 movs r2, #0
  16526. 800770e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16527. if (hdma->XferErrorCallback != NULL)
  16528. 8007712: 687b ldr r3, [r7, #4]
  16529. 8007714: 6cdb ldr r3, [r3, #76] @ 0x4c
  16530. 8007716: 2b00 cmp r3, #0
  16531. 8007718: d009 beq.n 800772e <HAL_DMA_IRQHandler+0xe0e>
  16532. {
  16533. /* Transfer error callback */
  16534. hdma->XferErrorCallback(hdma);
  16535. 800771a: 687b ldr r3, [r7, #4]
  16536. 800771c: 6cdb ldr r3, [r3, #76] @ 0x4c
  16537. 800771e: 6878 ldr r0, [r7, #4]
  16538. 8007720: 4798 blx r3
  16539. 8007722: e004 b.n 800772e <HAL_DMA_IRQHandler+0xe0e>
  16540. return;
  16541. 8007724: bf00 nop
  16542. 8007726: e002 b.n 800772e <HAL_DMA_IRQHandler+0xe0e>
  16543. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16544. 8007728: bf00 nop
  16545. 800772a: e000 b.n 800772e <HAL_DMA_IRQHandler+0xe0e>
  16546. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16547. 800772c: bf00 nop
  16548. }
  16549. else
  16550. {
  16551. /* Nothing To Do */
  16552. }
  16553. }
  16554. 800772e: 3728 adds r7, #40 @ 0x28
  16555. 8007730: 46bd mov sp, r7
  16556. 8007732: bd80 pop {r7, pc}
  16557. 8007734: 40020010 .word 0x40020010
  16558. 8007738: 40020028 .word 0x40020028
  16559. 800773c: 40020040 .word 0x40020040
  16560. 8007740: 40020058 .word 0x40020058
  16561. 8007744: 40020070 .word 0x40020070
  16562. 8007748: 40020088 .word 0x40020088
  16563. 800774c: 400200a0 .word 0x400200a0
  16564. 8007750: 400200b8 .word 0x400200b8
  16565. 8007754: 40020410 .word 0x40020410
  16566. 8007758: 40020428 .word 0x40020428
  16567. 800775c: 40020440 .word 0x40020440
  16568. 8007760: 40020458 .word 0x40020458
  16569. 8007764: 40020470 .word 0x40020470
  16570. 8007768: 40020488 .word 0x40020488
  16571. 800776c: 400204a0 .word 0x400204a0
  16572. 8007770: 400204b8 .word 0x400204b8
  16573. 08007774 <DMA_CalcBaseAndBitshift>:
  16574. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  16575. * the configuration information for the specified DMA Stream.
  16576. * @retval Stream base address
  16577. */
  16578. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  16579. {
  16580. 8007774: b480 push {r7}
  16581. 8007776: b085 sub sp, #20
  16582. 8007778: af00 add r7, sp, #0
  16583. 800777a: 6078 str r0, [r7, #4]
  16584. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  16585. 800777c: 687b ldr r3, [r7, #4]
  16586. 800777e: 681b ldr r3, [r3, #0]
  16587. 8007780: 4a42 ldr r2, [pc, #264] @ (800788c <DMA_CalcBaseAndBitshift+0x118>)
  16588. 8007782: 4293 cmp r3, r2
  16589. 8007784: d04a beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16590. 8007786: 687b ldr r3, [r7, #4]
  16591. 8007788: 681b ldr r3, [r3, #0]
  16592. 800778a: 4a41 ldr r2, [pc, #260] @ (8007890 <DMA_CalcBaseAndBitshift+0x11c>)
  16593. 800778c: 4293 cmp r3, r2
  16594. 800778e: d045 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16595. 8007790: 687b ldr r3, [r7, #4]
  16596. 8007792: 681b ldr r3, [r3, #0]
  16597. 8007794: 4a3f ldr r2, [pc, #252] @ (8007894 <DMA_CalcBaseAndBitshift+0x120>)
  16598. 8007796: 4293 cmp r3, r2
  16599. 8007798: d040 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16600. 800779a: 687b ldr r3, [r7, #4]
  16601. 800779c: 681b ldr r3, [r3, #0]
  16602. 800779e: 4a3e ldr r2, [pc, #248] @ (8007898 <DMA_CalcBaseAndBitshift+0x124>)
  16603. 80077a0: 4293 cmp r3, r2
  16604. 80077a2: d03b beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16605. 80077a4: 687b ldr r3, [r7, #4]
  16606. 80077a6: 681b ldr r3, [r3, #0]
  16607. 80077a8: 4a3c ldr r2, [pc, #240] @ (800789c <DMA_CalcBaseAndBitshift+0x128>)
  16608. 80077aa: 4293 cmp r3, r2
  16609. 80077ac: d036 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16610. 80077ae: 687b ldr r3, [r7, #4]
  16611. 80077b0: 681b ldr r3, [r3, #0]
  16612. 80077b2: 4a3b ldr r2, [pc, #236] @ (80078a0 <DMA_CalcBaseAndBitshift+0x12c>)
  16613. 80077b4: 4293 cmp r3, r2
  16614. 80077b6: d031 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16615. 80077b8: 687b ldr r3, [r7, #4]
  16616. 80077ba: 681b ldr r3, [r3, #0]
  16617. 80077bc: 4a39 ldr r2, [pc, #228] @ (80078a4 <DMA_CalcBaseAndBitshift+0x130>)
  16618. 80077be: 4293 cmp r3, r2
  16619. 80077c0: d02c beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16620. 80077c2: 687b ldr r3, [r7, #4]
  16621. 80077c4: 681b ldr r3, [r3, #0]
  16622. 80077c6: 4a38 ldr r2, [pc, #224] @ (80078a8 <DMA_CalcBaseAndBitshift+0x134>)
  16623. 80077c8: 4293 cmp r3, r2
  16624. 80077ca: d027 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16625. 80077cc: 687b ldr r3, [r7, #4]
  16626. 80077ce: 681b ldr r3, [r3, #0]
  16627. 80077d0: 4a36 ldr r2, [pc, #216] @ (80078ac <DMA_CalcBaseAndBitshift+0x138>)
  16628. 80077d2: 4293 cmp r3, r2
  16629. 80077d4: d022 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16630. 80077d6: 687b ldr r3, [r7, #4]
  16631. 80077d8: 681b ldr r3, [r3, #0]
  16632. 80077da: 4a35 ldr r2, [pc, #212] @ (80078b0 <DMA_CalcBaseAndBitshift+0x13c>)
  16633. 80077dc: 4293 cmp r3, r2
  16634. 80077de: d01d beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16635. 80077e0: 687b ldr r3, [r7, #4]
  16636. 80077e2: 681b ldr r3, [r3, #0]
  16637. 80077e4: 4a33 ldr r2, [pc, #204] @ (80078b4 <DMA_CalcBaseAndBitshift+0x140>)
  16638. 80077e6: 4293 cmp r3, r2
  16639. 80077e8: d018 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16640. 80077ea: 687b ldr r3, [r7, #4]
  16641. 80077ec: 681b ldr r3, [r3, #0]
  16642. 80077ee: 4a32 ldr r2, [pc, #200] @ (80078b8 <DMA_CalcBaseAndBitshift+0x144>)
  16643. 80077f0: 4293 cmp r3, r2
  16644. 80077f2: d013 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16645. 80077f4: 687b ldr r3, [r7, #4]
  16646. 80077f6: 681b ldr r3, [r3, #0]
  16647. 80077f8: 4a30 ldr r2, [pc, #192] @ (80078bc <DMA_CalcBaseAndBitshift+0x148>)
  16648. 80077fa: 4293 cmp r3, r2
  16649. 80077fc: d00e beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16650. 80077fe: 687b ldr r3, [r7, #4]
  16651. 8007800: 681b ldr r3, [r3, #0]
  16652. 8007802: 4a2f ldr r2, [pc, #188] @ (80078c0 <DMA_CalcBaseAndBitshift+0x14c>)
  16653. 8007804: 4293 cmp r3, r2
  16654. 8007806: d009 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16655. 8007808: 687b ldr r3, [r7, #4]
  16656. 800780a: 681b ldr r3, [r3, #0]
  16657. 800780c: 4a2d ldr r2, [pc, #180] @ (80078c4 <DMA_CalcBaseAndBitshift+0x150>)
  16658. 800780e: 4293 cmp r3, r2
  16659. 8007810: d004 beq.n 800781c <DMA_CalcBaseAndBitshift+0xa8>
  16660. 8007812: 687b ldr r3, [r7, #4]
  16661. 8007814: 681b ldr r3, [r3, #0]
  16662. 8007816: 4a2c ldr r2, [pc, #176] @ (80078c8 <DMA_CalcBaseAndBitshift+0x154>)
  16663. 8007818: 4293 cmp r3, r2
  16664. 800781a: d101 bne.n 8007820 <DMA_CalcBaseAndBitshift+0xac>
  16665. 800781c: 2301 movs r3, #1
  16666. 800781e: e000 b.n 8007822 <DMA_CalcBaseAndBitshift+0xae>
  16667. 8007820: 2300 movs r3, #0
  16668. 8007822: 2b00 cmp r3, #0
  16669. 8007824: d024 beq.n 8007870 <DMA_CalcBaseAndBitshift+0xfc>
  16670. {
  16671. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  16672. 8007826: 687b ldr r3, [r7, #4]
  16673. 8007828: 681b ldr r3, [r3, #0]
  16674. 800782a: b2db uxtb r3, r3
  16675. 800782c: 3b10 subs r3, #16
  16676. 800782e: 4a27 ldr r2, [pc, #156] @ (80078cc <DMA_CalcBaseAndBitshift+0x158>)
  16677. 8007830: fba2 2303 umull r2, r3, r2, r3
  16678. 8007834: 091b lsrs r3, r3, #4
  16679. 8007836: 60fb str r3, [r7, #12]
  16680. /* lookup table for necessary bitshift of flags within status registers */
  16681. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  16682. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  16683. 8007838: 68fb ldr r3, [r7, #12]
  16684. 800783a: f003 0307 and.w r3, r3, #7
  16685. 800783e: 4a24 ldr r2, [pc, #144] @ (80078d0 <DMA_CalcBaseAndBitshift+0x15c>)
  16686. 8007840: 5cd3 ldrb r3, [r2, r3]
  16687. 8007842: 461a mov r2, r3
  16688. 8007844: 687b ldr r3, [r7, #4]
  16689. 8007846: 65da str r2, [r3, #92] @ 0x5c
  16690. if (stream_number > 3U)
  16691. 8007848: 68fb ldr r3, [r7, #12]
  16692. 800784a: 2b03 cmp r3, #3
  16693. 800784c: d908 bls.n 8007860 <DMA_CalcBaseAndBitshift+0xec>
  16694. {
  16695. /* return pointer to HISR and HIFCR */
  16696. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  16697. 800784e: 687b ldr r3, [r7, #4]
  16698. 8007850: 681b ldr r3, [r3, #0]
  16699. 8007852: 461a mov r2, r3
  16700. 8007854: 4b1f ldr r3, [pc, #124] @ (80078d4 <DMA_CalcBaseAndBitshift+0x160>)
  16701. 8007856: 4013 ands r3, r2
  16702. 8007858: 1d1a adds r2, r3, #4
  16703. 800785a: 687b ldr r3, [r7, #4]
  16704. 800785c: 659a str r2, [r3, #88] @ 0x58
  16705. 800785e: e00d b.n 800787c <DMA_CalcBaseAndBitshift+0x108>
  16706. }
  16707. else
  16708. {
  16709. /* return pointer to LISR and LIFCR */
  16710. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  16711. 8007860: 687b ldr r3, [r7, #4]
  16712. 8007862: 681b ldr r3, [r3, #0]
  16713. 8007864: 461a mov r2, r3
  16714. 8007866: 4b1b ldr r3, [pc, #108] @ (80078d4 <DMA_CalcBaseAndBitshift+0x160>)
  16715. 8007868: 4013 ands r3, r2
  16716. 800786a: 687a ldr r2, [r7, #4]
  16717. 800786c: 6593 str r3, [r2, #88] @ 0x58
  16718. 800786e: e005 b.n 800787c <DMA_CalcBaseAndBitshift+0x108>
  16719. }
  16720. }
  16721. else /* BDMA instance(s) */
  16722. {
  16723. /* return pointer to ISR and IFCR */
  16724. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  16725. 8007870: 687b ldr r3, [r7, #4]
  16726. 8007872: 681b ldr r3, [r3, #0]
  16727. 8007874: f023 02ff bic.w r2, r3, #255 @ 0xff
  16728. 8007878: 687b ldr r3, [r7, #4]
  16729. 800787a: 659a str r2, [r3, #88] @ 0x58
  16730. }
  16731. return hdma->StreamBaseAddress;
  16732. 800787c: 687b ldr r3, [r7, #4]
  16733. 800787e: 6d9b ldr r3, [r3, #88] @ 0x58
  16734. }
  16735. 8007880: 4618 mov r0, r3
  16736. 8007882: 3714 adds r7, #20
  16737. 8007884: 46bd mov sp, r7
  16738. 8007886: f85d 7b04 ldr.w r7, [sp], #4
  16739. 800788a: 4770 bx lr
  16740. 800788c: 40020010 .word 0x40020010
  16741. 8007890: 40020028 .word 0x40020028
  16742. 8007894: 40020040 .word 0x40020040
  16743. 8007898: 40020058 .word 0x40020058
  16744. 800789c: 40020070 .word 0x40020070
  16745. 80078a0: 40020088 .word 0x40020088
  16746. 80078a4: 400200a0 .word 0x400200a0
  16747. 80078a8: 400200b8 .word 0x400200b8
  16748. 80078ac: 40020410 .word 0x40020410
  16749. 80078b0: 40020428 .word 0x40020428
  16750. 80078b4: 40020440 .word 0x40020440
  16751. 80078b8: 40020458 .word 0x40020458
  16752. 80078bc: 40020470 .word 0x40020470
  16753. 80078c0: 40020488 .word 0x40020488
  16754. 80078c4: 400204a0 .word 0x400204a0
  16755. 80078c8: 400204b8 .word 0x400204b8
  16756. 80078cc: aaaaaaab .word 0xaaaaaaab
  16757. 80078d0: 08030a8c .word 0x08030a8c
  16758. 80078d4: fffffc00 .word 0xfffffc00
  16759. 080078d8 <DMA_CheckFifoParam>:
  16760. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  16761. * the configuration information for the specified DMA Stream.
  16762. * @retval HAL status
  16763. */
  16764. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  16765. {
  16766. 80078d8: b480 push {r7}
  16767. 80078da: b085 sub sp, #20
  16768. 80078dc: af00 add r7, sp, #0
  16769. 80078de: 6078 str r0, [r7, #4]
  16770. HAL_StatusTypeDef status = HAL_OK;
  16771. 80078e0: 2300 movs r3, #0
  16772. 80078e2: 73fb strb r3, [r7, #15]
  16773. /* Memory Data size equal to Byte */
  16774. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  16775. 80078e4: 687b ldr r3, [r7, #4]
  16776. 80078e6: 699b ldr r3, [r3, #24]
  16777. 80078e8: 2b00 cmp r3, #0
  16778. 80078ea: d120 bne.n 800792e <DMA_CheckFifoParam+0x56>
  16779. {
  16780. switch (hdma->Init.FIFOThreshold)
  16781. 80078ec: 687b ldr r3, [r7, #4]
  16782. 80078ee: 6a9b ldr r3, [r3, #40] @ 0x28
  16783. 80078f0: 2b03 cmp r3, #3
  16784. 80078f2: d858 bhi.n 80079a6 <DMA_CheckFifoParam+0xce>
  16785. 80078f4: a201 add r2, pc, #4 @ (adr r2, 80078fc <DMA_CheckFifoParam+0x24>)
  16786. 80078f6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  16787. 80078fa: bf00 nop
  16788. 80078fc: 0800790d .word 0x0800790d
  16789. 8007900: 0800791f .word 0x0800791f
  16790. 8007904: 0800790d .word 0x0800790d
  16791. 8007908: 080079a7 .word 0x080079a7
  16792. {
  16793. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  16794. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  16795. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  16796. 800790c: 687b ldr r3, [r7, #4]
  16797. 800790e: 6adb ldr r3, [r3, #44] @ 0x2c
  16798. 8007910: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  16799. 8007914: 2b00 cmp r3, #0
  16800. 8007916: d048 beq.n 80079aa <DMA_CheckFifoParam+0xd2>
  16801. {
  16802. status = HAL_ERROR;
  16803. 8007918: 2301 movs r3, #1
  16804. 800791a: 73fb strb r3, [r7, #15]
  16805. }
  16806. break;
  16807. 800791c: e045 b.n 80079aa <DMA_CheckFifoParam+0xd2>
  16808. case DMA_FIFO_THRESHOLD_HALFFULL:
  16809. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  16810. 800791e: 687b ldr r3, [r7, #4]
  16811. 8007920: 6adb ldr r3, [r3, #44] @ 0x2c
  16812. 8007922: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  16813. 8007926: d142 bne.n 80079ae <DMA_CheckFifoParam+0xd6>
  16814. {
  16815. status = HAL_ERROR;
  16816. 8007928: 2301 movs r3, #1
  16817. 800792a: 73fb strb r3, [r7, #15]
  16818. }
  16819. break;
  16820. 800792c: e03f b.n 80079ae <DMA_CheckFifoParam+0xd6>
  16821. break;
  16822. }
  16823. }
  16824. /* Memory Data size equal to Half-Word */
  16825. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  16826. 800792e: 687b ldr r3, [r7, #4]
  16827. 8007930: 699b ldr r3, [r3, #24]
  16828. 8007932: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  16829. 8007936: d123 bne.n 8007980 <DMA_CheckFifoParam+0xa8>
  16830. {
  16831. switch (hdma->Init.FIFOThreshold)
  16832. 8007938: 687b ldr r3, [r7, #4]
  16833. 800793a: 6a9b ldr r3, [r3, #40] @ 0x28
  16834. 800793c: 2b03 cmp r3, #3
  16835. 800793e: d838 bhi.n 80079b2 <DMA_CheckFifoParam+0xda>
  16836. 8007940: a201 add r2, pc, #4 @ (adr r2, 8007948 <DMA_CheckFifoParam+0x70>)
  16837. 8007942: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  16838. 8007946: bf00 nop
  16839. 8007948: 08007959 .word 0x08007959
  16840. 800794c: 0800795f .word 0x0800795f
  16841. 8007950: 08007959 .word 0x08007959
  16842. 8007954: 08007971 .word 0x08007971
  16843. {
  16844. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  16845. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  16846. status = HAL_ERROR;
  16847. 8007958: 2301 movs r3, #1
  16848. 800795a: 73fb strb r3, [r7, #15]
  16849. break;
  16850. 800795c: e030 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16851. case DMA_FIFO_THRESHOLD_HALFFULL:
  16852. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  16853. 800795e: 687b ldr r3, [r7, #4]
  16854. 8007960: 6adb ldr r3, [r3, #44] @ 0x2c
  16855. 8007962: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  16856. 8007966: 2b00 cmp r3, #0
  16857. 8007968: d025 beq.n 80079b6 <DMA_CheckFifoParam+0xde>
  16858. {
  16859. status = HAL_ERROR;
  16860. 800796a: 2301 movs r3, #1
  16861. 800796c: 73fb strb r3, [r7, #15]
  16862. }
  16863. break;
  16864. 800796e: e022 b.n 80079b6 <DMA_CheckFifoParam+0xde>
  16865. case DMA_FIFO_THRESHOLD_FULL:
  16866. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  16867. 8007970: 687b ldr r3, [r7, #4]
  16868. 8007972: 6adb ldr r3, [r3, #44] @ 0x2c
  16869. 8007974: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  16870. 8007978: d11f bne.n 80079ba <DMA_CheckFifoParam+0xe2>
  16871. {
  16872. status = HAL_ERROR;
  16873. 800797a: 2301 movs r3, #1
  16874. 800797c: 73fb strb r3, [r7, #15]
  16875. }
  16876. break;
  16877. 800797e: e01c b.n 80079ba <DMA_CheckFifoParam+0xe2>
  16878. }
  16879. /* Memory Data size equal to Word */
  16880. else
  16881. {
  16882. switch (hdma->Init.FIFOThreshold)
  16883. 8007980: 687b ldr r3, [r7, #4]
  16884. 8007982: 6a9b ldr r3, [r3, #40] @ 0x28
  16885. 8007984: 2b02 cmp r3, #2
  16886. 8007986: d902 bls.n 800798e <DMA_CheckFifoParam+0xb6>
  16887. 8007988: 2b03 cmp r3, #3
  16888. 800798a: d003 beq.n 8007994 <DMA_CheckFifoParam+0xbc>
  16889. status = HAL_ERROR;
  16890. }
  16891. break;
  16892. default:
  16893. break;
  16894. 800798c: e018 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16895. status = HAL_ERROR;
  16896. 800798e: 2301 movs r3, #1
  16897. 8007990: 73fb strb r3, [r7, #15]
  16898. break;
  16899. 8007992: e015 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16900. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  16901. 8007994: 687b ldr r3, [r7, #4]
  16902. 8007996: 6adb ldr r3, [r3, #44] @ 0x2c
  16903. 8007998: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  16904. 800799c: 2b00 cmp r3, #0
  16905. 800799e: d00e beq.n 80079be <DMA_CheckFifoParam+0xe6>
  16906. status = HAL_ERROR;
  16907. 80079a0: 2301 movs r3, #1
  16908. 80079a2: 73fb strb r3, [r7, #15]
  16909. break;
  16910. 80079a4: e00b b.n 80079be <DMA_CheckFifoParam+0xe6>
  16911. break;
  16912. 80079a6: bf00 nop
  16913. 80079a8: e00a b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16914. break;
  16915. 80079aa: bf00 nop
  16916. 80079ac: e008 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16917. break;
  16918. 80079ae: bf00 nop
  16919. 80079b0: e006 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16920. break;
  16921. 80079b2: bf00 nop
  16922. 80079b4: e004 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16923. break;
  16924. 80079b6: bf00 nop
  16925. 80079b8: e002 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16926. break;
  16927. 80079ba: bf00 nop
  16928. 80079bc: e000 b.n 80079c0 <DMA_CheckFifoParam+0xe8>
  16929. break;
  16930. 80079be: bf00 nop
  16931. }
  16932. }
  16933. return status;
  16934. 80079c0: 7bfb ldrb r3, [r7, #15]
  16935. }
  16936. 80079c2: 4618 mov r0, r3
  16937. 80079c4: 3714 adds r7, #20
  16938. 80079c6: 46bd mov sp, r7
  16939. 80079c8: f85d 7b04 ldr.w r7, [sp], #4
  16940. 80079cc: 4770 bx lr
  16941. 80079ce: bf00 nop
  16942. 080079d0 <DMA_CalcDMAMUXChannelBaseAndMask>:
  16943. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  16944. * the configuration information for the specified DMA Stream.
  16945. * @retval HAL status
  16946. */
  16947. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  16948. {
  16949. 80079d0: b480 push {r7}
  16950. 80079d2: b085 sub sp, #20
  16951. 80079d4: af00 add r7, sp, #0
  16952. 80079d6: 6078 str r0, [r7, #4]
  16953. uint32_t stream_number;
  16954. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  16955. 80079d8: 687b ldr r3, [r7, #4]
  16956. 80079da: 681b ldr r3, [r3, #0]
  16957. 80079dc: 60bb str r3, [r7, #8]
  16958. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  16959. 80079de: 687b ldr r3, [r7, #4]
  16960. 80079e0: 681b ldr r3, [r3, #0]
  16961. 80079e2: 4a38 ldr r2, [pc, #224] @ (8007ac4 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  16962. 80079e4: 4293 cmp r3, r2
  16963. 80079e6: d022 beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16964. 80079e8: 687b ldr r3, [r7, #4]
  16965. 80079ea: 681b ldr r3, [r3, #0]
  16966. 80079ec: 4a36 ldr r2, [pc, #216] @ (8007ac8 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  16967. 80079ee: 4293 cmp r3, r2
  16968. 80079f0: d01d beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16969. 80079f2: 687b ldr r3, [r7, #4]
  16970. 80079f4: 681b ldr r3, [r3, #0]
  16971. 80079f6: 4a35 ldr r2, [pc, #212] @ (8007acc <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  16972. 80079f8: 4293 cmp r3, r2
  16973. 80079fa: d018 beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16974. 80079fc: 687b ldr r3, [r7, #4]
  16975. 80079fe: 681b ldr r3, [r3, #0]
  16976. 8007a00: 4a33 ldr r2, [pc, #204] @ (8007ad0 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  16977. 8007a02: 4293 cmp r3, r2
  16978. 8007a04: d013 beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16979. 8007a06: 687b ldr r3, [r7, #4]
  16980. 8007a08: 681b ldr r3, [r3, #0]
  16981. 8007a0a: 4a32 ldr r2, [pc, #200] @ (8007ad4 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  16982. 8007a0c: 4293 cmp r3, r2
  16983. 8007a0e: d00e beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16984. 8007a10: 687b ldr r3, [r7, #4]
  16985. 8007a12: 681b ldr r3, [r3, #0]
  16986. 8007a14: 4a30 ldr r2, [pc, #192] @ (8007ad8 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  16987. 8007a16: 4293 cmp r3, r2
  16988. 8007a18: d009 beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16989. 8007a1a: 687b ldr r3, [r7, #4]
  16990. 8007a1c: 681b ldr r3, [r3, #0]
  16991. 8007a1e: 4a2f ldr r2, [pc, #188] @ (8007adc <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  16992. 8007a20: 4293 cmp r3, r2
  16993. 8007a22: d004 beq.n 8007a2e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  16994. 8007a24: 687b ldr r3, [r7, #4]
  16995. 8007a26: 681b ldr r3, [r3, #0]
  16996. 8007a28: 4a2d ldr r2, [pc, #180] @ (8007ae0 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  16997. 8007a2a: 4293 cmp r3, r2
  16998. 8007a2c: d101 bne.n 8007a32 <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  16999. 8007a2e: 2301 movs r3, #1
  17000. 8007a30: e000 b.n 8007a34 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  17001. 8007a32: 2300 movs r3, #0
  17002. 8007a34: 2b00 cmp r3, #0
  17003. 8007a36: d01a beq.n 8007a6e <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  17004. {
  17005. /* BDMA Channels are connected to DMAMUX2 channels */
  17006. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  17007. 8007a38: 687b ldr r3, [r7, #4]
  17008. 8007a3a: 681b ldr r3, [r3, #0]
  17009. 8007a3c: b2db uxtb r3, r3
  17010. 8007a3e: 3b08 subs r3, #8
  17011. 8007a40: 4a28 ldr r2, [pc, #160] @ (8007ae4 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  17012. 8007a42: fba2 2303 umull r2, r3, r2, r3
  17013. 8007a46: 091b lsrs r3, r3, #4
  17014. 8007a48: 60fb str r3, [r7, #12]
  17015. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  17016. 8007a4a: 68fa ldr r2, [r7, #12]
  17017. 8007a4c: 4b26 ldr r3, [pc, #152] @ (8007ae8 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  17018. 8007a4e: 4413 add r3, r2
  17019. 8007a50: 009b lsls r3, r3, #2
  17020. 8007a52: 461a mov r2, r3
  17021. 8007a54: 687b ldr r3, [r7, #4]
  17022. 8007a56: 661a str r2, [r3, #96] @ 0x60
  17023. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  17024. 8007a58: 687b ldr r3, [r7, #4]
  17025. 8007a5a: 4a24 ldr r2, [pc, #144] @ (8007aec <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  17026. 8007a5c: 665a str r2, [r3, #100] @ 0x64
  17027. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17028. 8007a5e: 68fb ldr r3, [r7, #12]
  17029. 8007a60: f003 031f and.w r3, r3, #31
  17030. 8007a64: 2201 movs r2, #1
  17031. 8007a66: 409a lsls r2, r3
  17032. 8007a68: 687b ldr r3, [r7, #4]
  17033. 8007a6a: 669a str r2, [r3, #104] @ 0x68
  17034. }
  17035. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  17036. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  17037. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17038. }
  17039. }
  17040. 8007a6c: e024 b.n 8007ab8 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  17041. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  17042. 8007a6e: 687b ldr r3, [r7, #4]
  17043. 8007a70: 681b ldr r3, [r3, #0]
  17044. 8007a72: b2db uxtb r3, r3
  17045. 8007a74: 3b10 subs r3, #16
  17046. 8007a76: 4a1e ldr r2, [pc, #120] @ (8007af0 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  17047. 8007a78: fba2 2303 umull r2, r3, r2, r3
  17048. 8007a7c: 091b lsrs r3, r3, #4
  17049. 8007a7e: 60fb str r3, [r7, #12]
  17050. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  17051. 8007a80: 68bb ldr r3, [r7, #8]
  17052. 8007a82: 4a1c ldr r2, [pc, #112] @ (8007af4 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  17053. 8007a84: 4293 cmp r3, r2
  17054. 8007a86: d806 bhi.n 8007a96 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  17055. 8007a88: 68bb ldr r3, [r7, #8]
  17056. 8007a8a: 4a1b ldr r2, [pc, #108] @ (8007af8 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  17057. 8007a8c: 4293 cmp r3, r2
  17058. 8007a8e: d902 bls.n 8007a96 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  17059. stream_number += 8U;
  17060. 8007a90: 68fb ldr r3, [r7, #12]
  17061. 8007a92: 3308 adds r3, #8
  17062. 8007a94: 60fb str r3, [r7, #12]
  17063. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  17064. 8007a96: 68fa ldr r2, [r7, #12]
  17065. 8007a98: 4b18 ldr r3, [pc, #96] @ (8007afc <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  17066. 8007a9a: 4413 add r3, r2
  17067. 8007a9c: 009b lsls r3, r3, #2
  17068. 8007a9e: 461a mov r2, r3
  17069. 8007aa0: 687b ldr r3, [r7, #4]
  17070. 8007aa2: 661a str r2, [r3, #96] @ 0x60
  17071. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  17072. 8007aa4: 687b ldr r3, [r7, #4]
  17073. 8007aa6: 4a16 ldr r2, [pc, #88] @ (8007b00 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  17074. 8007aa8: 665a str r2, [r3, #100] @ 0x64
  17075. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17076. 8007aaa: 68fb ldr r3, [r7, #12]
  17077. 8007aac: f003 031f and.w r3, r3, #31
  17078. 8007ab0: 2201 movs r2, #1
  17079. 8007ab2: 409a lsls r2, r3
  17080. 8007ab4: 687b ldr r3, [r7, #4]
  17081. 8007ab6: 669a str r2, [r3, #104] @ 0x68
  17082. }
  17083. 8007ab8: bf00 nop
  17084. 8007aba: 3714 adds r7, #20
  17085. 8007abc: 46bd mov sp, r7
  17086. 8007abe: f85d 7b04 ldr.w r7, [sp], #4
  17087. 8007ac2: 4770 bx lr
  17088. 8007ac4: 58025408 .word 0x58025408
  17089. 8007ac8: 5802541c .word 0x5802541c
  17090. 8007acc: 58025430 .word 0x58025430
  17091. 8007ad0: 58025444 .word 0x58025444
  17092. 8007ad4: 58025458 .word 0x58025458
  17093. 8007ad8: 5802546c .word 0x5802546c
  17094. 8007adc: 58025480 .word 0x58025480
  17095. 8007ae0: 58025494 .word 0x58025494
  17096. 8007ae4: cccccccd .word 0xcccccccd
  17097. 8007ae8: 16009600 .word 0x16009600
  17098. 8007aec: 58025880 .word 0x58025880
  17099. 8007af0: aaaaaaab .word 0xaaaaaaab
  17100. 8007af4: 400204b8 .word 0x400204b8
  17101. 8007af8: 4002040f .word 0x4002040f
  17102. 8007afc: 10008200 .word 0x10008200
  17103. 8007b00: 40020880 .word 0x40020880
  17104. 08007b04 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  17105. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17106. * the configuration information for the specified DMA Stream.
  17107. * @retval HAL status
  17108. */
  17109. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  17110. {
  17111. 8007b04: b480 push {r7}
  17112. 8007b06: b085 sub sp, #20
  17113. 8007b08: af00 add r7, sp, #0
  17114. 8007b0a: 6078 str r0, [r7, #4]
  17115. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  17116. 8007b0c: 687b ldr r3, [r7, #4]
  17117. 8007b0e: 685b ldr r3, [r3, #4]
  17118. 8007b10: b2db uxtb r3, r3
  17119. 8007b12: 60fb str r3, [r7, #12]
  17120. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  17121. 8007b14: 68fb ldr r3, [r7, #12]
  17122. 8007b16: 2b00 cmp r3, #0
  17123. 8007b18: d04a beq.n 8007bb0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  17124. 8007b1a: 68fb ldr r3, [r7, #12]
  17125. 8007b1c: 2b08 cmp r3, #8
  17126. 8007b1e: d847 bhi.n 8007bb0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  17127. {
  17128. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  17129. 8007b20: 687b ldr r3, [r7, #4]
  17130. 8007b22: 681b ldr r3, [r3, #0]
  17131. 8007b24: 4a25 ldr r2, [pc, #148] @ (8007bbc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  17132. 8007b26: 4293 cmp r3, r2
  17133. 8007b28: d022 beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17134. 8007b2a: 687b ldr r3, [r7, #4]
  17135. 8007b2c: 681b ldr r3, [r3, #0]
  17136. 8007b2e: 4a24 ldr r2, [pc, #144] @ (8007bc0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  17137. 8007b30: 4293 cmp r3, r2
  17138. 8007b32: d01d beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17139. 8007b34: 687b ldr r3, [r7, #4]
  17140. 8007b36: 681b ldr r3, [r3, #0]
  17141. 8007b38: 4a22 ldr r2, [pc, #136] @ (8007bc4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  17142. 8007b3a: 4293 cmp r3, r2
  17143. 8007b3c: d018 beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17144. 8007b3e: 687b ldr r3, [r7, #4]
  17145. 8007b40: 681b ldr r3, [r3, #0]
  17146. 8007b42: 4a21 ldr r2, [pc, #132] @ (8007bc8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  17147. 8007b44: 4293 cmp r3, r2
  17148. 8007b46: d013 beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17149. 8007b48: 687b ldr r3, [r7, #4]
  17150. 8007b4a: 681b ldr r3, [r3, #0]
  17151. 8007b4c: 4a1f ldr r2, [pc, #124] @ (8007bcc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  17152. 8007b4e: 4293 cmp r3, r2
  17153. 8007b50: d00e beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17154. 8007b52: 687b ldr r3, [r7, #4]
  17155. 8007b54: 681b ldr r3, [r3, #0]
  17156. 8007b56: 4a1e ldr r2, [pc, #120] @ (8007bd0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  17157. 8007b58: 4293 cmp r3, r2
  17158. 8007b5a: d009 beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17159. 8007b5c: 687b ldr r3, [r7, #4]
  17160. 8007b5e: 681b ldr r3, [r3, #0]
  17161. 8007b60: 4a1c ldr r2, [pc, #112] @ (8007bd4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  17162. 8007b62: 4293 cmp r3, r2
  17163. 8007b64: d004 beq.n 8007b70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17164. 8007b66: 687b ldr r3, [r7, #4]
  17165. 8007b68: 681b ldr r3, [r3, #0]
  17166. 8007b6a: 4a1b ldr r2, [pc, #108] @ (8007bd8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  17167. 8007b6c: 4293 cmp r3, r2
  17168. 8007b6e: d101 bne.n 8007b74 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  17169. 8007b70: 2301 movs r3, #1
  17170. 8007b72: e000 b.n 8007b76 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  17171. 8007b74: 2300 movs r3, #0
  17172. 8007b76: 2b00 cmp r3, #0
  17173. 8007b78: d00a beq.n 8007b90 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  17174. {
  17175. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  17176. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  17177. 8007b7a: 68fa ldr r2, [r7, #12]
  17178. 8007b7c: 4b17 ldr r3, [pc, #92] @ (8007bdc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  17179. 8007b7e: 4413 add r3, r2
  17180. 8007b80: 009b lsls r3, r3, #2
  17181. 8007b82: 461a mov r2, r3
  17182. 8007b84: 687b ldr r3, [r7, #4]
  17183. 8007b86: 66da str r2, [r3, #108] @ 0x6c
  17184. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  17185. 8007b88: 687b ldr r3, [r7, #4]
  17186. 8007b8a: 4a15 ldr r2, [pc, #84] @ (8007be0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  17187. 8007b8c: 671a str r2, [r3, #112] @ 0x70
  17188. 8007b8e: e009 b.n 8007ba4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  17189. }
  17190. else
  17191. {
  17192. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  17193. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  17194. 8007b90: 68fa ldr r2, [r7, #12]
  17195. 8007b92: 4b14 ldr r3, [pc, #80] @ (8007be4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  17196. 8007b94: 4413 add r3, r2
  17197. 8007b96: 009b lsls r3, r3, #2
  17198. 8007b98: 461a mov r2, r3
  17199. 8007b9a: 687b ldr r3, [r7, #4]
  17200. 8007b9c: 66da str r2, [r3, #108] @ 0x6c
  17201. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  17202. 8007b9e: 687b ldr r3, [r7, #4]
  17203. 8007ba0: 4a11 ldr r2, [pc, #68] @ (8007be8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  17204. 8007ba2: 671a str r2, [r3, #112] @ 0x70
  17205. }
  17206. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  17207. 8007ba4: 68fb ldr r3, [r7, #12]
  17208. 8007ba6: 3b01 subs r3, #1
  17209. 8007ba8: 2201 movs r2, #1
  17210. 8007baa: 409a lsls r2, r3
  17211. 8007bac: 687b ldr r3, [r7, #4]
  17212. 8007bae: 675a str r2, [r3, #116] @ 0x74
  17213. }
  17214. }
  17215. 8007bb0: bf00 nop
  17216. 8007bb2: 3714 adds r7, #20
  17217. 8007bb4: 46bd mov sp, r7
  17218. 8007bb6: f85d 7b04 ldr.w r7, [sp], #4
  17219. 8007bba: 4770 bx lr
  17220. 8007bbc: 58025408 .word 0x58025408
  17221. 8007bc0: 5802541c .word 0x5802541c
  17222. 8007bc4: 58025430 .word 0x58025430
  17223. 8007bc8: 58025444 .word 0x58025444
  17224. 8007bcc: 58025458 .word 0x58025458
  17225. 8007bd0: 5802546c .word 0x5802546c
  17226. 8007bd4: 58025480 .word 0x58025480
  17227. 8007bd8: 58025494 .word 0x58025494
  17228. 8007bdc: 1600963f .word 0x1600963f
  17229. 8007be0: 58025940 .word 0x58025940
  17230. 8007be4: 1000823f .word 0x1000823f
  17231. 8007be8: 40020940 .word 0x40020940
  17232. 08007bec <HAL_ETH_Init>:
  17233. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17234. * the configuration information for ETHERNET module
  17235. * @retval HAL status
  17236. */
  17237. HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth)
  17238. {
  17239. 8007bec: b580 push {r7, lr}
  17240. 8007bee: b084 sub sp, #16
  17241. 8007bf0: af00 add r7, sp, #0
  17242. 8007bf2: 6078 str r0, [r7, #4]
  17243. uint32_t tickstart;
  17244. if (heth == NULL)
  17245. 8007bf4: 687b ldr r3, [r7, #4]
  17246. 8007bf6: 2b00 cmp r3, #0
  17247. 8007bf8: d101 bne.n 8007bfe <HAL_ETH_Init+0x12>
  17248. {
  17249. return HAL_ERROR;
  17250. 8007bfa: 2301 movs r3, #1
  17251. 8007bfc: e0e3 b.n 8007dc6 <HAL_ETH_Init+0x1da>
  17252. }
  17253. if (heth->gState == HAL_ETH_STATE_RESET)
  17254. 8007bfe: 687b ldr r3, [r7, #4]
  17255. 8007c00: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17256. 8007c04: 2b00 cmp r3, #0
  17257. 8007c06: d106 bne.n 8007c16 <HAL_ETH_Init+0x2a>
  17258. {
  17259. heth->gState = HAL_ETH_STATE_BUSY;
  17260. 8007c08: 687b ldr r3, [r7, #4]
  17261. 8007c0a: 2223 movs r2, #35 @ 0x23
  17262. 8007c0c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17263. /* Init the low level hardware */
  17264. heth->MspInitCallback(heth);
  17265. #else
  17266. /* Init the low level hardware : GPIO, CLOCK, NVIC. */
  17267. HAL_ETH_MspInit(heth);
  17268. 8007c10: 6878 ldr r0, [r7, #4]
  17269. 8007c12: f008 fa03 bl 801001c <HAL_ETH_MspInit>
  17270. #endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */
  17271. }
  17272. __HAL_RCC_SYSCFG_CLK_ENABLE();
  17273. 8007c16: 4b6e ldr r3, [pc, #440] @ (8007dd0 <HAL_ETH_Init+0x1e4>)
  17274. 8007c18: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  17275. 8007c1c: 4a6c ldr r2, [pc, #432] @ (8007dd0 <HAL_ETH_Init+0x1e4>)
  17276. 8007c1e: f043 0302 orr.w r3, r3, #2
  17277. 8007c22: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  17278. 8007c26: 4b6a ldr r3, [pc, #424] @ (8007dd0 <HAL_ETH_Init+0x1e4>)
  17279. 8007c28: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  17280. 8007c2c: f003 0302 and.w r3, r3, #2
  17281. 8007c30: 60bb str r3, [r7, #8]
  17282. 8007c32: 68bb ldr r3, [r7, #8]
  17283. if (heth->Init.MediaInterface == HAL_ETH_MII_MODE)
  17284. 8007c34: 687b ldr r3, [r7, #4]
  17285. 8007c36: 7a1b ldrb r3, [r3, #8]
  17286. 8007c38: 2b00 cmp r3, #0
  17287. 8007c3a: d103 bne.n 8007c44 <HAL_ETH_Init+0x58>
  17288. {
  17289. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_MII);
  17290. 8007c3c: 2000 movs r0, #0
  17291. 8007c3e: f7fd fa3d bl 80050bc <HAL_SYSCFG_ETHInterfaceSelect>
  17292. 8007c42: e003 b.n 8007c4c <HAL_ETH_Init+0x60>
  17293. }
  17294. else
  17295. {
  17296. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);
  17297. 8007c44: f44f 0000 mov.w r0, #8388608 @ 0x800000
  17298. 8007c48: f7fd fa38 bl 80050bc <HAL_SYSCFG_ETHInterfaceSelect>
  17299. }
  17300. /* Dummy read to sync with ETH */
  17301. (void)SYSCFG->PMCR;
  17302. 8007c4c: 4b61 ldr r3, [pc, #388] @ (8007dd4 <HAL_ETH_Init+0x1e8>)
  17303. 8007c4e: 685b ldr r3, [r3, #4]
  17304. /* Ethernet Software reset */
  17305. /* Set the SWR bit: resets all MAC subsystem internal registers and logic */
  17306. /* After reset all the registers holds their respective reset values */
  17307. SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR);
  17308. 8007c50: 687b ldr r3, [r7, #4]
  17309. 8007c52: 681b ldr r3, [r3, #0]
  17310. 8007c54: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17311. 8007c58: 681b ldr r3, [r3, #0]
  17312. 8007c5a: 687a ldr r2, [r7, #4]
  17313. 8007c5c: 6812 ldr r2, [r2, #0]
  17314. 8007c5e: f043 0301 orr.w r3, r3, #1
  17315. 8007c62: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17316. 8007c66: 6013 str r3, [r2, #0]
  17317. /* Get tick */
  17318. tickstart = HAL_GetTick();
  17319. 8007c68: f7fd f9ec bl 8005044 <HAL_GetTick>
  17320. 8007c6c: 60f8 str r0, [r7, #12]
  17321. /* Wait for software reset */
  17322. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  17323. 8007c6e: e011 b.n 8007c94 <HAL_ETH_Init+0xa8>
  17324. {
  17325. if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT))
  17326. 8007c70: f7fd f9e8 bl 8005044 <HAL_GetTick>
  17327. 8007c74: 4602 mov r2, r0
  17328. 8007c76: 68fb ldr r3, [r7, #12]
  17329. 8007c78: 1ad3 subs r3, r2, r3
  17330. 8007c7a: f5b3 7ffa cmp.w r3, #500 @ 0x1f4
  17331. 8007c7e: d909 bls.n 8007c94 <HAL_ETH_Init+0xa8>
  17332. {
  17333. /* Set Error Code */
  17334. heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT;
  17335. 8007c80: 687b ldr r3, [r7, #4]
  17336. 8007c82: 2204 movs r2, #4
  17337. 8007c84: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17338. /* Set State as Error */
  17339. heth->gState = HAL_ETH_STATE_ERROR;
  17340. 8007c88: 687b ldr r3, [r7, #4]
  17341. 8007c8a: 22e0 movs r2, #224 @ 0xe0
  17342. 8007c8c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17343. /* Return Error */
  17344. return HAL_ERROR;
  17345. 8007c90: 2301 movs r3, #1
  17346. 8007c92: e098 b.n 8007dc6 <HAL_ETH_Init+0x1da>
  17347. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  17348. 8007c94: 687b ldr r3, [r7, #4]
  17349. 8007c96: 681b ldr r3, [r3, #0]
  17350. 8007c98: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17351. 8007c9c: 681b ldr r3, [r3, #0]
  17352. 8007c9e: f003 0301 and.w r3, r3, #1
  17353. 8007ca2: 2b00 cmp r3, #0
  17354. 8007ca4: d1e4 bne.n 8007c70 <HAL_ETH_Init+0x84>
  17355. }
  17356. }
  17357. /*------------------ MDIO CSR Clock Range Configuration --------------------*/
  17358. HAL_ETH_SetMDIOClockRange(heth);
  17359. 8007ca6: 6878 ldr r0, [r7, #4]
  17360. 8007ca8: f000 ff1c bl 8008ae4 <HAL_ETH_SetMDIOClockRange>
  17361. /*------------------ MAC LPI 1US Tic Counter Configuration --------------------*/
  17362. WRITE_REG(heth->Instance->MAC1USTCR, (((uint32_t)HAL_RCC_GetHCLKFreq() / ETH_MAC_US_TICK) - 1U));
  17363. 8007cac: f002 fe88 bl 800a9c0 <HAL_RCC_GetHCLKFreq>
  17364. 8007cb0: 4603 mov r3, r0
  17365. 8007cb2: 4a49 ldr r2, [pc, #292] @ (8007dd8 <HAL_ETH_Init+0x1ec>)
  17366. 8007cb4: fba2 2303 umull r2, r3, r2, r3
  17367. 8007cb8: 0c9a lsrs r2, r3, #18
  17368. 8007cba: 687b ldr r3, [r7, #4]
  17369. 8007cbc: 681b ldr r3, [r3, #0]
  17370. 8007cbe: 3a01 subs r2, #1
  17371. 8007cc0: f8c3 20dc str.w r2, [r3, #220] @ 0xdc
  17372. /*------------------ MAC, MTL and DMA default Configuration ----------------*/
  17373. ETH_MACDMAConfig(heth);
  17374. 8007cc4: 6878 ldr r0, [r7, #4]
  17375. 8007cc6: f001 f90d bl 8008ee4 <ETH_MACDMAConfig>
  17376. /* SET DSL to 64 bit */
  17377. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT);
  17378. 8007cca: 687b ldr r3, [r7, #4]
  17379. 8007ccc: 681b ldr r3, [r3, #0]
  17380. 8007cce: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17381. 8007cd2: f8d3 3100 ldr.w r3, [r3, #256] @ 0x100
  17382. 8007cd6: f423 13e0 bic.w r3, r3, #1835008 @ 0x1c0000
  17383. 8007cda: 687a ldr r2, [r7, #4]
  17384. 8007cdc: 6812 ldr r2, [r2, #0]
  17385. 8007cde: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  17386. 8007ce2: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17387. 8007ce6: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  17388. /* Set Receive Buffers Length (must be a multiple of 4) */
  17389. if ((heth->Init.RxBuffLen % 0x4U) != 0x0U)
  17390. 8007cea: 687b ldr r3, [r7, #4]
  17391. 8007cec: 695b ldr r3, [r3, #20]
  17392. 8007cee: f003 0303 and.w r3, r3, #3
  17393. 8007cf2: 2b00 cmp r3, #0
  17394. 8007cf4: d009 beq.n 8007d0a <HAL_ETH_Init+0x11e>
  17395. {
  17396. /* Set Error Code */
  17397. heth->ErrorCode = HAL_ETH_ERROR_PARAM;
  17398. 8007cf6: 687b ldr r3, [r7, #4]
  17399. 8007cf8: 2201 movs r2, #1
  17400. 8007cfa: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17401. /* Set State as Error */
  17402. heth->gState = HAL_ETH_STATE_ERROR;
  17403. 8007cfe: 687b ldr r3, [r7, #4]
  17404. 8007d00: 22e0 movs r2, #224 @ 0xe0
  17405. 8007d02: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17406. /* Return Error */
  17407. return HAL_ERROR;
  17408. 8007d06: 2301 movs r3, #1
  17409. 8007d08: e05d b.n 8007dc6 <HAL_ETH_Init+0x1da>
  17410. }
  17411. else
  17412. {
  17413. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_RBSZ, ((heth->Init.RxBuffLen) << 1));
  17414. 8007d0a: 687b ldr r3, [r7, #4]
  17415. 8007d0c: 681b ldr r3, [r3, #0]
  17416. 8007d0e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17417. 8007d12: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  17418. 8007d16: 4b31 ldr r3, [pc, #196] @ (8007ddc <HAL_ETH_Init+0x1f0>)
  17419. 8007d18: 4013 ands r3, r2
  17420. 8007d1a: 687a ldr r2, [r7, #4]
  17421. 8007d1c: 6952 ldr r2, [r2, #20]
  17422. 8007d1e: 0051 lsls r1, r2, #1
  17423. 8007d20: 687a ldr r2, [r7, #4]
  17424. 8007d22: 6812 ldr r2, [r2, #0]
  17425. 8007d24: 430b orrs r3, r1
  17426. 8007d26: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17427. 8007d2a: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  17428. }
  17429. /*------------------ DMA Tx Descriptors Configuration ----------------------*/
  17430. ETH_DMATxDescListInit(heth);
  17431. 8007d2e: 6878 ldr r0, [r7, #4]
  17432. 8007d30: f001 f975 bl 800901e <ETH_DMATxDescListInit>
  17433. /*------------------ DMA Rx Descriptors Configuration ----------------------*/
  17434. ETH_DMARxDescListInit(heth);
  17435. 8007d34: 6878 ldr r0, [r7, #4]
  17436. 8007d36: f001 f9bb bl 80090b0 <ETH_DMARxDescListInit>
  17437. /*--------------------- ETHERNET MAC Address Configuration ------------------*/
  17438. /* Set MAC addr bits 32 to 47 */
  17439. heth->Instance->MACA0HR = (((uint32_t)(heth->Init.MACAddr[5]) << 8) | (uint32_t)heth->Init.MACAddr[4]);
  17440. 8007d3a: 687b ldr r3, [r7, #4]
  17441. 8007d3c: 685b ldr r3, [r3, #4]
  17442. 8007d3e: 3305 adds r3, #5
  17443. 8007d40: 781b ldrb r3, [r3, #0]
  17444. 8007d42: 021a lsls r2, r3, #8
  17445. 8007d44: 687b ldr r3, [r7, #4]
  17446. 8007d46: 685b ldr r3, [r3, #4]
  17447. 8007d48: 3304 adds r3, #4
  17448. 8007d4a: 781b ldrb r3, [r3, #0]
  17449. 8007d4c: 4619 mov r1, r3
  17450. 8007d4e: 687b ldr r3, [r7, #4]
  17451. 8007d50: 681b ldr r3, [r3, #0]
  17452. 8007d52: 430a orrs r2, r1
  17453. 8007d54: f8c3 2300 str.w r2, [r3, #768] @ 0x300
  17454. /* Set MAC addr bits 0 to 31 */
  17455. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17456. 8007d58: 687b ldr r3, [r7, #4]
  17457. 8007d5a: 685b ldr r3, [r3, #4]
  17458. 8007d5c: 3303 adds r3, #3
  17459. 8007d5e: 781b ldrb r3, [r3, #0]
  17460. 8007d60: 061a lsls r2, r3, #24
  17461. 8007d62: 687b ldr r3, [r7, #4]
  17462. 8007d64: 685b ldr r3, [r3, #4]
  17463. 8007d66: 3302 adds r3, #2
  17464. 8007d68: 781b ldrb r3, [r3, #0]
  17465. 8007d6a: 041b lsls r3, r3, #16
  17466. 8007d6c: 431a orrs r2, r3
  17467. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  17468. 8007d6e: 687b ldr r3, [r7, #4]
  17469. 8007d70: 685b ldr r3, [r3, #4]
  17470. 8007d72: 3301 adds r3, #1
  17471. 8007d74: 781b ldrb r3, [r3, #0]
  17472. 8007d76: 021b lsls r3, r3, #8
  17473. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17474. 8007d78: 431a orrs r2, r3
  17475. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  17476. 8007d7a: 687b ldr r3, [r7, #4]
  17477. 8007d7c: 685b ldr r3, [r3, #4]
  17478. 8007d7e: 781b ldrb r3, [r3, #0]
  17479. 8007d80: 4619 mov r1, r3
  17480. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17481. 8007d82: 687b ldr r3, [r7, #4]
  17482. 8007d84: 681b ldr r3, [r3, #0]
  17483. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  17484. 8007d86: 430a orrs r2, r1
  17485. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17486. 8007d88: f8c3 2304 str.w r2, [r3, #772] @ 0x304
  17487. /* Disable Rx MMC Interrupts */
  17488. SET_BIT(heth->Instance->MMCRIMR, ETH_MMCRIMR_RXLPITRCIM | ETH_MMCRIMR_RXLPIUSCIM | \
  17489. 8007d8c: 687b ldr r3, [r7, #4]
  17490. 8007d8e: 681b ldr r3, [r3, #0]
  17491. 8007d90: f8d3 170c ldr.w r1, [r3, #1804] @ 0x70c
  17492. 8007d94: 687b ldr r3, [r7, #4]
  17493. 8007d96: 681a ldr r2, [r3, #0]
  17494. 8007d98: 4b11 ldr r3, [pc, #68] @ (8007de0 <HAL_ETH_Init+0x1f4>)
  17495. 8007d9a: 430b orrs r3, r1
  17496. 8007d9c: f8c2 370c str.w r3, [r2, #1804] @ 0x70c
  17497. ETH_MMCRIMR_RXUCGPIM | ETH_MMCRIMR_RXALGNERPIM | ETH_MMCRIMR_RXCRCERPIM);
  17498. /* Disable Tx MMC Interrupts */
  17499. SET_BIT(heth->Instance->MMCTIMR, ETH_MMCTIMR_TXLPITRCIM | ETH_MMCTIMR_TXLPIUSCIM | \
  17500. 8007da0: 687b ldr r3, [r7, #4]
  17501. 8007da2: 681b ldr r3, [r3, #0]
  17502. 8007da4: f8d3 1710 ldr.w r1, [r3, #1808] @ 0x710
  17503. 8007da8: 687b ldr r3, [r7, #4]
  17504. 8007daa: 681a ldr r2, [r3, #0]
  17505. 8007dac: 4b0d ldr r3, [pc, #52] @ (8007de4 <HAL_ETH_Init+0x1f8>)
  17506. 8007dae: 430b orrs r3, r1
  17507. 8007db0: f8c2 3710 str.w r3, [r2, #1808] @ 0x710
  17508. ETH_MMCTIMR_TXGPKTIM | ETH_MMCTIMR_TXMCOLGPIM | ETH_MMCTIMR_TXSCOLGPIM);
  17509. heth->ErrorCode = HAL_ETH_ERROR_NONE;
  17510. 8007db4: 687b ldr r3, [r7, #4]
  17511. 8007db6: 2200 movs r2, #0
  17512. 8007db8: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17513. heth->gState = HAL_ETH_STATE_READY;
  17514. 8007dbc: 687b ldr r3, [r7, #4]
  17515. 8007dbe: 2210 movs r2, #16
  17516. 8007dc0: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17517. return HAL_OK;
  17518. 8007dc4: 2300 movs r3, #0
  17519. }
  17520. 8007dc6: 4618 mov r0, r3
  17521. 8007dc8: 3710 adds r7, #16
  17522. 8007dca: 46bd mov sp, r7
  17523. 8007dcc: bd80 pop {r7, pc}
  17524. 8007dce: bf00 nop
  17525. 8007dd0: 58024400 .word 0x58024400
  17526. 8007dd4: 58000400 .word 0x58000400
  17527. 8007dd8: 431bde83 .word 0x431bde83
  17528. 8007ddc: ffff8001 .word 0xffff8001
  17529. 8007de0: 0c020060 .word 0x0c020060
  17530. 8007de4: 0c20c000 .word 0x0c20c000
  17531. 08007de8 <HAL_ETH_Start_IT>:
  17532. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17533. * the configuration information for ETHERNET module
  17534. * @retval HAL status
  17535. */
  17536. HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth)
  17537. {
  17538. 8007de8: b580 push {r7, lr}
  17539. 8007dea: b082 sub sp, #8
  17540. 8007dec: af00 add r7, sp, #0
  17541. 8007dee: 6078 str r0, [r7, #4]
  17542. if (heth->gState == HAL_ETH_STATE_READY)
  17543. 8007df0: 687b ldr r3, [r7, #4]
  17544. 8007df2: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17545. 8007df6: 2b10 cmp r3, #16
  17546. 8007df8: d165 bne.n 8007ec6 <HAL_ETH_Start_IT+0xde>
  17547. {
  17548. heth->gState = HAL_ETH_STATE_BUSY;
  17549. 8007dfa: 687b ldr r3, [r7, #4]
  17550. 8007dfc: 2223 movs r2, #35 @ 0x23
  17551. 8007dfe: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17552. /* save IT mode to ETH Handle */
  17553. heth->RxDescList.ItMode = 1U;
  17554. 8007e02: 687b ldr r3, [r7, #4]
  17555. 8007e04: 2201 movs r2, #1
  17556. 8007e06: 659a str r2, [r3, #88] @ 0x58
  17557. /* Set number of descriptors to build */
  17558. heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT;
  17559. 8007e08: 687b ldr r3, [r7, #4]
  17560. 8007e0a: 2204 movs r2, #4
  17561. 8007e0c: 66da str r2, [r3, #108] @ 0x6c
  17562. /* Build all descriptors */
  17563. ETH_UpdateDescriptor(heth);
  17564. 8007e0e: 6878 ldr r0, [r7, #4]
  17565. 8007e10: f000 f9e4 bl 80081dc <ETH_UpdateDescriptor>
  17566. /* Enable the DMA transmission */
  17567. SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  17568. 8007e14: 687b ldr r3, [r7, #4]
  17569. 8007e16: 681b ldr r3, [r3, #0]
  17570. 8007e18: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17571. 8007e1c: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  17572. 8007e20: 687a ldr r2, [r7, #4]
  17573. 8007e22: 6812 ldr r2, [r2, #0]
  17574. 8007e24: f043 0301 orr.w r3, r3, #1
  17575. 8007e28: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17576. 8007e2c: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  17577. /* Enable the DMA reception */
  17578. SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  17579. 8007e30: 687b ldr r3, [r7, #4]
  17580. 8007e32: 681b ldr r3, [r3, #0]
  17581. 8007e34: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17582. 8007e38: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  17583. 8007e3c: 687a ldr r2, [r7, #4]
  17584. 8007e3e: 6812 ldr r2, [r2, #0]
  17585. 8007e40: f043 0301 orr.w r3, r3, #1
  17586. 8007e44: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17587. 8007e48: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  17588. /* Clear Tx and Rx process stopped flags */
  17589. heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS);
  17590. 8007e4c: 687b ldr r3, [r7, #4]
  17591. 8007e4e: 681b ldr r3, [r3, #0]
  17592. 8007e50: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17593. 8007e54: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  17594. 8007e58: 687a ldr r2, [r7, #4]
  17595. 8007e5a: 6812 ldr r2, [r2, #0]
  17596. 8007e5c: f443 7381 orr.w r3, r3, #258 @ 0x102
  17597. 8007e60: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17598. 8007e64: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  17599. /* Set the Flush Transmit FIFO bit */
  17600. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  17601. 8007e68: 687b ldr r3, [r7, #4]
  17602. 8007e6a: 681b ldr r3, [r3, #0]
  17603. 8007e6c: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  17604. 8007e70: 687b ldr r3, [r7, #4]
  17605. 8007e72: 681b ldr r3, [r3, #0]
  17606. 8007e74: f042 0201 orr.w r2, r2, #1
  17607. 8007e78: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  17608. /* Enable the MAC transmission */
  17609. SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  17610. 8007e7c: 687b ldr r3, [r7, #4]
  17611. 8007e7e: 681b ldr r3, [r3, #0]
  17612. 8007e80: 681a ldr r2, [r3, #0]
  17613. 8007e82: 687b ldr r3, [r7, #4]
  17614. 8007e84: 681b ldr r3, [r3, #0]
  17615. 8007e86: f042 0202 orr.w r2, r2, #2
  17616. 8007e8a: 601a str r2, [r3, #0]
  17617. /* Enable the MAC reception */
  17618. SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  17619. 8007e8c: 687b ldr r3, [r7, #4]
  17620. 8007e8e: 681b ldr r3, [r3, #0]
  17621. 8007e90: 681a ldr r2, [r3, #0]
  17622. 8007e92: 687b ldr r3, [r7, #4]
  17623. 8007e94: 681b ldr r3, [r3, #0]
  17624. 8007e96: f042 0201 orr.w r2, r2, #1
  17625. 8007e9a: 601a str r2, [r3, #0]
  17626. /* Enable ETH DMA interrupts:
  17627. - Tx complete interrupt
  17628. - Rx complete interrupt
  17629. - Fatal bus interrupt
  17630. */
  17631. __HAL_ETH_DMA_ENABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  17632. 8007e9c: 687b ldr r3, [r7, #4]
  17633. 8007e9e: 681b ldr r3, [r3, #0]
  17634. 8007ea0: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17635. 8007ea4: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  17636. 8007ea8: 687b ldr r3, [r7, #4]
  17637. 8007eaa: 681a ldr r2, [r3, #0]
  17638. 8007eac: f24d 03c1 movw r3, #53441 @ 0xd0c1
  17639. 8007eb0: 430b orrs r3, r1
  17640. 8007eb2: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17641. 8007eb6: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  17642. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  17643. heth->gState = HAL_ETH_STATE_STARTED;
  17644. 8007eba: 687b ldr r3, [r7, #4]
  17645. 8007ebc: 2223 movs r2, #35 @ 0x23
  17646. 8007ebe: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17647. return HAL_OK;
  17648. 8007ec2: 2300 movs r3, #0
  17649. 8007ec4: e000 b.n 8007ec8 <HAL_ETH_Start_IT+0xe0>
  17650. }
  17651. else
  17652. {
  17653. return HAL_ERROR;
  17654. 8007ec6: 2301 movs r3, #1
  17655. }
  17656. }
  17657. 8007ec8: 4618 mov r0, r3
  17658. 8007eca: 3708 adds r7, #8
  17659. 8007ecc: 46bd mov sp, r7
  17660. 8007ece: bd80 pop {r7, pc}
  17661. 08007ed0 <HAL_ETH_Stop_IT>:
  17662. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17663. * the configuration information for ETHERNET module
  17664. * @retval HAL status
  17665. */
  17666. HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth)
  17667. {
  17668. 8007ed0: b480 push {r7}
  17669. 8007ed2: b085 sub sp, #20
  17670. 8007ed4: af00 add r7, sp, #0
  17671. 8007ed6: 6078 str r0, [r7, #4]
  17672. ETH_DMADescTypeDef *dmarxdesc;
  17673. uint32_t descindex;
  17674. if (heth->gState == HAL_ETH_STATE_STARTED)
  17675. 8007ed8: 687b ldr r3, [r7, #4]
  17676. 8007eda: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17677. 8007ede: 2b23 cmp r3, #35 @ 0x23
  17678. 8007ee0: d165 bne.n 8007fae <HAL_ETH_Stop_IT+0xde>
  17679. {
  17680. /* Set the ETH peripheral state to BUSY */
  17681. heth->gState = HAL_ETH_STATE_BUSY;
  17682. 8007ee2: 687b ldr r3, [r7, #4]
  17683. 8007ee4: 2223 movs r2, #35 @ 0x23
  17684. 8007ee6: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17685. /* Disable interrupts:
  17686. - Tx complete interrupt
  17687. - Rx complete interrupt
  17688. - Fatal bus interrupt
  17689. */
  17690. __HAL_ETH_DMA_DISABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  17691. 8007eea: 687b ldr r3, [r7, #4]
  17692. 8007eec: 681b ldr r3, [r3, #0]
  17693. 8007eee: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17694. 8007ef2: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  17695. 8007ef6: 687b ldr r3, [r7, #4]
  17696. 8007ef8: 681a ldr r2, [r3, #0]
  17697. 8007efa: 4b30 ldr r3, [pc, #192] @ (8007fbc <HAL_ETH_Stop_IT+0xec>)
  17698. 8007efc: 400b ands r3, r1
  17699. 8007efe: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17700. 8007f02: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  17701. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  17702. /* Disable the DMA transmission */
  17703. CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  17704. 8007f06: 687b ldr r3, [r7, #4]
  17705. 8007f08: 681b ldr r3, [r3, #0]
  17706. 8007f0a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17707. 8007f0e: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  17708. 8007f12: 687a ldr r2, [r7, #4]
  17709. 8007f14: 6812 ldr r2, [r2, #0]
  17710. 8007f16: f023 0301 bic.w r3, r3, #1
  17711. 8007f1a: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17712. 8007f1e: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  17713. /* Disable the DMA reception */
  17714. CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  17715. 8007f22: 687b ldr r3, [r7, #4]
  17716. 8007f24: 681b ldr r3, [r3, #0]
  17717. 8007f26: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17718. 8007f2a: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  17719. 8007f2e: 687a ldr r2, [r7, #4]
  17720. 8007f30: 6812 ldr r2, [r2, #0]
  17721. 8007f32: f023 0301 bic.w r3, r3, #1
  17722. 8007f36: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17723. 8007f3a: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  17724. /* Disable the MAC reception */
  17725. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  17726. 8007f3e: 687b ldr r3, [r7, #4]
  17727. 8007f40: 681b ldr r3, [r3, #0]
  17728. 8007f42: 681a ldr r2, [r3, #0]
  17729. 8007f44: 687b ldr r3, [r7, #4]
  17730. 8007f46: 681b ldr r3, [r3, #0]
  17731. 8007f48: f022 0201 bic.w r2, r2, #1
  17732. 8007f4c: 601a str r2, [r3, #0]
  17733. /* Set the Flush Transmit FIFO bit */
  17734. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  17735. 8007f4e: 687b ldr r3, [r7, #4]
  17736. 8007f50: 681b ldr r3, [r3, #0]
  17737. 8007f52: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  17738. 8007f56: 687b ldr r3, [r7, #4]
  17739. 8007f58: 681b ldr r3, [r3, #0]
  17740. 8007f5a: f042 0201 orr.w r2, r2, #1
  17741. 8007f5e: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  17742. /* Disable the MAC transmission */
  17743. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  17744. 8007f62: 687b ldr r3, [r7, #4]
  17745. 8007f64: 681b ldr r3, [r3, #0]
  17746. 8007f66: 681a ldr r2, [r3, #0]
  17747. 8007f68: 687b ldr r3, [r7, #4]
  17748. 8007f6a: 681b ldr r3, [r3, #0]
  17749. 8007f6c: f022 0202 bic.w r2, r2, #2
  17750. 8007f70: 601a str r2, [r3, #0]
  17751. /* Clear IOC bit to all Rx descriptors */
  17752. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  17753. 8007f72: 2300 movs r3, #0
  17754. 8007f74: 60fb str r3, [r7, #12]
  17755. 8007f76: e00e b.n 8007f96 <HAL_ETH_Stop_IT+0xc6>
  17756. {
  17757. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descindex];
  17758. 8007f78: 687b ldr r3, [r7, #4]
  17759. 8007f7a: 68fa ldr r2, [r7, #12]
  17760. 8007f7c: 3212 adds r2, #18
  17761. 8007f7e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  17762. 8007f82: 60bb str r3, [r7, #8]
  17763. CLEAR_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCRF_IOC);
  17764. 8007f84: 68bb ldr r3, [r7, #8]
  17765. 8007f86: 68db ldr r3, [r3, #12]
  17766. 8007f88: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  17767. 8007f8c: 68bb ldr r3, [r7, #8]
  17768. 8007f8e: 60da str r2, [r3, #12]
  17769. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  17770. 8007f90: 68fb ldr r3, [r7, #12]
  17771. 8007f92: 3301 adds r3, #1
  17772. 8007f94: 60fb str r3, [r7, #12]
  17773. 8007f96: 68fb ldr r3, [r7, #12]
  17774. 8007f98: 2b03 cmp r3, #3
  17775. 8007f9a: d9ed bls.n 8007f78 <HAL_ETH_Stop_IT+0xa8>
  17776. }
  17777. heth->RxDescList.ItMode = 0U;
  17778. 8007f9c: 687b ldr r3, [r7, #4]
  17779. 8007f9e: 2200 movs r2, #0
  17780. 8007fa0: 659a str r2, [r3, #88] @ 0x58
  17781. heth->gState = HAL_ETH_STATE_READY;
  17782. 8007fa2: 687b ldr r3, [r7, #4]
  17783. 8007fa4: 2210 movs r2, #16
  17784. 8007fa6: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17785. /* Return function status */
  17786. return HAL_OK;
  17787. 8007faa: 2300 movs r3, #0
  17788. 8007fac: e000 b.n 8007fb0 <HAL_ETH_Stop_IT+0xe0>
  17789. }
  17790. else
  17791. {
  17792. return HAL_ERROR;
  17793. 8007fae: 2301 movs r3, #1
  17794. }
  17795. }
  17796. 8007fb0: 4618 mov r0, r3
  17797. 8007fb2: 3714 adds r7, #20
  17798. 8007fb4: 46bd mov sp, r7
  17799. 8007fb6: f85d 7b04 ldr.w r7, [sp], #4
  17800. 8007fba: 4770 bx lr
  17801. 8007fbc: ffff2f3e .word 0xffff2f3e
  17802. 08007fc0 <HAL_ETH_Transmit_IT>:
  17803. * the configuration information for ETHERNET module
  17804. * @param pTxConfig: Hold the configuration of packet to be transmitted
  17805. * @retval HAL status
  17806. */
  17807. HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfigTypeDef *pTxConfig)
  17808. {
  17809. 8007fc0: b580 push {r7, lr}
  17810. 8007fc2: b082 sub sp, #8
  17811. 8007fc4: af00 add r7, sp, #0
  17812. 8007fc6: 6078 str r0, [r7, #4]
  17813. 8007fc8: 6039 str r1, [r7, #0]
  17814. if (pTxConfig == NULL)
  17815. 8007fca: 683b ldr r3, [r7, #0]
  17816. 8007fcc: 2b00 cmp r3, #0
  17817. 8007fce: d109 bne.n 8007fe4 <HAL_ETH_Transmit_IT+0x24>
  17818. {
  17819. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  17820. 8007fd0: 687b ldr r3, [r7, #4]
  17821. 8007fd2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  17822. 8007fd6: f043 0201 orr.w r2, r3, #1
  17823. 8007fda: 687b ldr r3, [r7, #4]
  17824. 8007fdc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17825. return HAL_ERROR;
  17826. 8007fe0: 2301 movs r3, #1
  17827. 8007fe2: e03a b.n 800805a <HAL_ETH_Transmit_IT+0x9a>
  17828. }
  17829. if (heth->gState == HAL_ETH_STATE_STARTED)
  17830. 8007fe4: 687b ldr r3, [r7, #4]
  17831. 8007fe6: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17832. 8007fea: 2b23 cmp r3, #35 @ 0x23
  17833. 8007fec: d134 bne.n 8008058 <HAL_ETH_Transmit_IT+0x98>
  17834. {
  17835. /* Save the packet pointer to release. */
  17836. heth->TxDescList.CurrentPacketAddress = (uint32_t *)pTxConfig->pData;
  17837. 8007fee: 683b ldr r3, [r7, #0]
  17838. 8007ff0: 6b5a ldr r2, [r3, #52] @ 0x34
  17839. 8007ff2: 687b ldr r3, [r7, #4]
  17840. 8007ff4: 63da str r2, [r3, #60] @ 0x3c
  17841. /* Config DMA Tx descriptor by Tx Packet info */
  17842. if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 1) != HAL_ETH_ERROR_NONE)
  17843. 8007ff6: 2201 movs r2, #1
  17844. 8007ff8: 6839 ldr r1, [r7, #0]
  17845. 8007ffa: 6878 ldr r0, [r7, #4]
  17846. 8007ffc: f001 f8b6 bl 800916c <ETH_Prepare_Tx_Descriptors>
  17847. 8008000: 4603 mov r3, r0
  17848. 8008002: 2b00 cmp r3, #0
  17849. 8008004: d009 beq.n 800801a <HAL_ETH_Transmit_IT+0x5a>
  17850. {
  17851. heth->ErrorCode |= HAL_ETH_ERROR_BUSY;
  17852. 8008006: 687b ldr r3, [r7, #4]
  17853. 8008008: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  17854. 800800c: f043 0202 orr.w r2, r3, #2
  17855. 8008010: 687b ldr r3, [r7, #4]
  17856. 8008012: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17857. return HAL_ERROR;
  17858. 8008016: 2301 movs r3, #1
  17859. 8008018: e01f b.n 800805a <HAL_ETH_Transmit_IT+0x9a>
  17860. __ASM volatile ("dsb 0xF":::"memory");
  17861. 800801a: f3bf 8f4f dsb sy
  17862. }
  17863. 800801e: bf00 nop
  17864. /* Ensure completion of descriptor preparation before transmission start */
  17865. __DSB();
  17866. /* Incr current tx desc index */
  17867. INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U);
  17868. 8008020: 687b ldr r3, [r7, #4]
  17869. 8008022: 6a9b ldr r3, [r3, #40] @ 0x28
  17870. 8008024: 1c5a adds r2, r3, #1
  17871. 8008026: 687b ldr r3, [r7, #4]
  17872. 8008028: 629a str r2, [r3, #40] @ 0x28
  17873. 800802a: 687b ldr r3, [r7, #4]
  17874. 800802c: 6a9b ldr r3, [r3, #40] @ 0x28
  17875. 800802e: 2b03 cmp r3, #3
  17876. 8008030: d904 bls.n 800803c <HAL_ETH_Transmit_IT+0x7c>
  17877. 8008032: 687b ldr r3, [r7, #4]
  17878. 8008034: 6a9b ldr r3, [r3, #40] @ 0x28
  17879. 8008036: 1f1a subs r2, r3, #4
  17880. 8008038: 687b ldr r3, [r7, #4]
  17881. 800803a: 629a str r2, [r3, #40] @ 0x28
  17882. /* Start transmission */
  17883. /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */
  17884. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc]));
  17885. 800803c: 687b ldr r3, [r7, #4]
  17886. 800803e: 6a99 ldr r1, [r3, #40] @ 0x28
  17887. 8008040: 687b ldr r3, [r7, #4]
  17888. 8008042: 681a ldr r2, [r3, #0]
  17889. 8008044: 687b ldr r3, [r7, #4]
  17890. 8008046: 3106 adds r1, #6
  17891. 8008048: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  17892. 800804c: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17893. 8008050: f8c2 3120 str.w r3, [r2, #288] @ 0x120
  17894. return HAL_OK;
  17895. 8008054: 2300 movs r3, #0
  17896. 8008056: e000 b.n 800805a <HAL_ETH_Transmit_IT+0x9a>
  17897. }
  17898. else
  17899. {
  17900. return HAL_ERROR;
  17901. 8008058: 2301 movs r3, #1
  17902. }
  17903. }
  17904. 800805a: 4618 mov r0, r3
  17905. 800805c: 3708 adds r7, #8
  17906. 800805e: 46bd mov sp, r7
  17907. 8008060: bd80 pop {r7, pc}
  17908. 08008062 <HAL_ETH_ReadData>:
  17909. * the configuration information for ETHERNET module
  17910. * @param pAppBuff: Pointer to an application buffer to receive the packet.
  17911. * @retval HAL status
  17912. */
  17913. HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff)
  17914. {
  17915. 8008062: b580 push {r7, lr}
  17916. 8008064: b088 sub sp, #32
  17917. 8008066: af00 add r7, sp, #0
  17918. 8008068: 6078 str r0, [r7, #4]
  17919. 800806a: 6039 str r1, [r7, #0]
  17920. uint32_t descidx;
  17921. ETH_DMADescTypeDef *dmarxdesc;
  17922. uint32_t desccnt = 0U;
  17923. 800806c: 2300 movs r3, #0
  17924. 800806e: 617b str r3, [r7, #20]
  17925. uint32_t desccntmax;
  17926. uint32_t bufflength;
  17927. uint8_t rxdataready = 0U;
  17928. 8008070: 2300 movs r3, #0
  17929. 8008072: 74fb strb r3, [r7, #19]
  17930. if (pAppBuff == NULL)
  17931. 8008074: 683b ldr r3, [r7, #0]
  17932. 8008076: 2b00 cmp r3, #0
  17933. 8008078: d109 bne.n 800808e <HAL_ETH_ReadData+0x2c>
  17934. {
  17935. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  17936. 800807a: 687b ldr r3, [r7, #4]
  17937. 800807c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  17938. 8008080: f043 0201 orr.w r2, r3, #1
  17939. 8008084: 687b ldr r3, [r7, #4]
  17940. 8008086: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17941. return HAL_ERROR;
  17942. 800808a: 2301 movs r3, #1
  17943. 800808c: e0a2 b.n 80081d4 <HAL_ETH_ReadData+0x172>
  17944. }
  17945. if (heth->gState != HAL_ETH_STATE_STARTED)
  17946. 800808e: 687b ldr r3, [r7, #4]
  17947. 8008090: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17948. 8008094: 2b23 cmp r3, #35 @ 0x23
  17949. 8008096: d001 beq.n 800809c <HAL_ETH_ReadData+0x3a>
  17950. {
  17951. return HAL_ERROR;
  17952. 8008098: 2301 movs r3, #1
  17953. 800809a: e09b b.n 80081d4 <HAL_ETH_ReadData+0x172>
  17954. }
  17955. descidx = heth->RxDescList.RxDescIdx;
  17956. 800809c: 687b ldr r3, [r7, #4]
  17957. 800809e: 6ddb ldr r3, [r3, #92] @ 0x5c
  17958. 80080a0: 61fb str r3, [r7, #28]
  17959. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  17960. 80080a2: 687b ldr r3, [r7, #4]
  17961. 80080a4: 69fa ldr r2, [r7, #28]
  17962. 80080a6: 3212 adds r2, #18
  17963. 80080a8: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  17964. 80080ac: 61bb str r3, [r7, #24]
  17965. desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt;
  17966. 80080ae: 687b ldr r3, [r7, #4]
  17967. 80080b0: 6edb ldr r3, [r3, #108] @ 0x6c
  17968. 80080b2: f1c3 0304 rsb r3, r3, #4
  17969. 80080b6: 60fb str r3, [r7, #12]
  17970. /* Check if descriptor is not owned by DMA */
  17971. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  17972. 80080b8: e064 b.n 8008184 <HAL_ETH_ReadData+0x122>
  17973. && (rxdataready == 0U))
  17974. {
  17975. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_CTXT) != (uint32_t)RESET)
  17976. 80080ba: 69bb ldr r3, [r7, #24]
  17977. 80080bc: 68db ldr r3, [r3, #12]
  17978. 80080be: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  17979. 80080c2: 2b00 cmp r3, #0
  17980. 80080c4: d007 beq.n 80080d6 <HAL_ETH_ReadData+0x74>
  17981. {
  17982. /* Get timestamp high */
  17983. heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC1;
  17984. 80080c6: 69bb ldr r3, [r7, #24]
  17985. 80080c8: 685a ldr r2, [r3, #4]
  17986. 80080ca: 687b ldr r3, [r7, #4]
  17987. 80080cc: 679a str r2, [r3, #120] @ 0x78
  17988. /* Get timestamp low */
  17989. heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC0;
  17990. 80080ce: 69bb ldr r3, [r7, #24]
  17991. 80080d0: 681a ldr r2, [r3, #0]
  17992. 80080d2: 687b ldr r3, [r7, #4]
  17993. 80080d4: 675a str r2, [r3, #116] @ 0x74
  17994. }
  17995. if ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL))
  17996. 80080d6: 69bb ldr r3, [r7, #24]
  17997. 80080d8: 68db ldr r3, [r3, #12]
  17998. 80080da: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17999. 80080de: 2b00 cmp r3, #0
  18000. 80080e0: d103 bne.n 80080ea <HAL_ETH_ReadData+0x88>
  18001. 80080e2: 687b ldr r3, [r7, #4]
  18002. 80080e4: 6fdb ldr r3, [r3, #124] @ 0x7c
  18003. 80080e6: 2b00 cmp r3, #0
  18004. 80080e8: d03a beq.n 8008160 <HAL_ETH_ReadData+0xfe>
  18005. {
  18006. /* Check if first descriptor */
  18007. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET)
  18008. 80080ea: 69bb ldr r3, [r7, #24]
  18009. 80080ec: 68db ldr r3, [r3, #12]
  18010. 80080ee: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18011. 80080f2: 2b00 cmp r3, #0
  18012. 80080f4: d005 beq.n 8008102 <HAL_ETH_ReadData+0xa0>
  18013. {
  18014. heth->RxDescList.RxDescCnt = 0;
  18015. 80080f6: 687b ldr r3, [r7, #4]
  18016. 80080f8: 2200 movs r2, #0
  18017. 80080fa: 661a str r2, [r3, #96] @ 0x60
  18018. heth->RxDescList.RxDataLength = 0;
  18019. 80080fc: 687b ldr r3, [r7, #4]
  18020. 80080fe: 2200 movs r2, #0
  18021. 8008100: 665a str r2, [r3, #100] @ 0x64
  18022. }
  18023. /* Get the Frame Length of the received packet: substruct 4 bytes of the CRC */
  18024. bufflength = READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_PL) - heth->RxDescList.RxDataLength;
  18025. 8008102: 69bb ldr r3, [r7, #24]
  18026. 8008104: 68db ldr r3, [r3, #12]
  18027. 8008106: f3c3 020e ubfx r2, r3, #0, #15
  18028. 800810a: 687b ldr r3, [r7, #4]
  18029. 800810c: 6e5b ldr r3, [r3, #100] @ 0x64
  18030. 800810e: 1ad3 subs r3, r2, r3
  18031. 8008110: 60bb str r3, [r7, #8]
  18032. /* Check if last descriptor */
  18033. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_LD) != (uint32_t)RESET)
  18034. 8008112: 69bb ldr r3, [r7, #24]
  18035. 8008114: 68db ldr r3, [r3, #12]
  18036. 8008116: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  18037. 800811a: 2b00 cmp r3, #0
  18038. 800811c: d005 beq.n 800812a <HAL_ETH_ReadData+0xc8>
  18039. {
  18040. /* Save Last descriptor index */
  18041. heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC3;
  18042. 800811e: 69bb ldr r3, [r7, #24]
  18043. 8008120: 68da ldr r2, [r3, #12]
  18044. 8008122: 687b ldr r3, [r7, #4]
  18045. 8008124: 671a str r2, [r3, #112] @ 0x70
  18046. /* Packet ready */
  18047. rxdataready = 1;
  18048. 8008126: 2301 movs r3, #1
  18049. 8008128: 74fb strb r3, [r7, #19]
  18050. /*Call registered Link callback*/
  18051. heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18052. (uint8_t *)dmarxdesc->BackupAddr0, bufflength);
  18053. #else
  18054. /* Link callback */
  18055. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18056. 800812a: 687b ldr r3, [r7, #4]
  18057. 800812c: f103 007c add.w r0, r3, #124 @ 0x7c
  18058. 8008130: 687b ldr r3, [r7, #4]
  18059. 8008132: f103 0180 add.w r1, r3, #128 @ 0x80
  18060. (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength);
  18061. 8008136: 69bb ldr r3, [r7, #24]
  18062. 8008138: 691b ldr r3, [r3, #16]
  18063. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18064. 800813a: 461a mov r2, r3
  18065. 800813c: 68bb ldr r3, [r7, #8]
  18066. 800813e: b29b uxth r3, r3
  18067. 8008140: f008 f96e bl 8010420 <HAL_ETH_RxLinkCallback>
  18068. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18069. heth->RxDescList.RxDescCnt++;
  18070. 8008144: 687b ldr r3, [r7, #4]
  18071. 8008146: 6e1b ldr r3, [r3, #96] @ 0x60
  18072. 8008148: 1c5a adds r2, r3, #1
  18073. 800814a: 687b ldr r3, [r7, #4]
  18074. 800814c: 661a str r2, [r3, #96] @ 0x60
  18075. heth->RxDescList.RxDataLength += bufflength;
  18076. 800814e: 687b ldr r3, [r7, #4]
  18077. 8008150: 6e5a ldr r2, [r3, #100] @ 0x64
  18078. 8008152: 68bb ldr r3, [r7, #8]
  18079. 8008154: 441a add r2, r3
  18080. 8008156: 687b ldr r3, [r7, #4]
  18081. 8008158: 665a str r2, [r3, #100] @ 0x64
  18082. /* Clear buffer pointer */
  18083. dmarxdesc->BackupAddr0 = 0;
  18084. 800815a: 69bb ldr r3, [r7, #24]
  18085. 800815c: 2200 movs r2, #0
  18086. 800815e: 611a str r2, [r3, #16]
  18087. }
  18088. /* Increment current rx descriptor index */
  18089. INCR_RX_DESC_INDEX(descidx, 1U);
  18090. 8008160: 69fb ldr r3, [r7, #28]
  18091. 8008162: 3301 adds r3, #1
  18092. 8008164: 61fb str r3, [r7, #28]
  18093. 8008166: 69fb ldr r3, [r7, #28]
  18094. 8008168: 2b03 cmp r3, #3
  18095. 800816a: d902 bls.n 8008172 <HAL_ETH_ReadData+0x110>
  18096. 800816c: 69fb ldr r3, [r7, #28]
  18097. 800816e: 3b04 subs r3, #4
  18098. 8008170: 61fb str r3, [r7, #28]
  18099. /* Get current descriptor address */
  18100. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18101. 8008172: 687b ldr r3, [r7, #4]
  18102. 8008174: 69fa ldr r2, [r7, #28]
  18103. 8008176: 3212 adds r2, #18
  18104. 8008178: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18105. 800817c: 61bb str r3, [r7, #24]
  18106. desccnt++;
  18107. 800817e: 697b ldr r3, [r7, #20]
  18108. 8008180: 3301 adds r3, #1
  18109. 8008182: 617b str r3, [r7, #20]
  18110. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18111. 8008184: 69bb ldr r3, [r7, #24]
  18112. 8008186: 68db ldr r3, [r3, #12]
  18113. && (rxdataready == 0U))
  18114. 8008188: 2b00 cmp r3, #0
  18115. 800818a: db06 blt.n 800819a <HAL_ETH_ReadData+0x138>
  18116. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18117. 800818c: 697a ldr r2, [r7, #20]
  18118. 800818e: 68fb ldr r3, [r7, #12]
  18119. 8008190: 429a cmp r2, r3
  18120. 8008192: d202 bcs.n 800819a <HAL_ETH_ReadData+0x138>
  18121. && (rxdataready == 0U))
  18122. 8008194: 7cfb ldrb r3, [r7, #19]
  18123. 8008196: 2b00 cmp r3, #0
  18124. 8008198: d08f beq.n 80080ba <HAL_ETH_ReadData+0x58>
  18125. }
  18126. heth->RxDescList.RxBuildDescCnt += desccnt;
  18127. 800819a: 687b ldr r3, [r7, #4]
  18128. 800819c: 6eda ldr r2, [r3, #108] @ 0x6c
  18129. 800819e: 697b ldr r3, [r7, #20]
  18130. 80081a0: 441a add r2, r3
  18131. 80081a2: 687b ldr r3, [r7, #4]
  18132. 80081a4: 66da str r2, [r3, #108] @ 0x6c
  18133. if ((heth->RxDescList.RxBuildDescCnt) != 0U)
  18134. 80081a6: 687b ldr r3, [r7, #4]
  18135. 80081a8: 6edb ldr r3, [r3, #108] @ 0x6c
  18136. 80081aa: 2b00 cmp r3, #0
  18137. 80081ac: d002 beq.n 80081b4 <HAL_ETH_ReadData+0x152>
  18138. {
  18139. /* Update Descriptors */
  18140. ETH_UpdateDescriptor(heth);
  18141. 80081ae: 6878 ldr r0, [r7, #4]
  18142. 80081b0: f000 f814 bl 80081dc <ETH_UpdateDescriptor>
  18143. }
  18144. heth->RxDescList.RxDescIdx = descidx;
  18145. 80081b4: 687b ldr r3, [r7, #4]
  18146. 80081b6: 69fa ldr r2, [r7, #28]
  18147. 80081b8: 65da str r2, [r3, #92] @ 0x5c
  18148. if (rxdataready == 1U)
  18149. 80081ba: 7cfb ldrb r3, [r7, #19]
  18150. 80081bc: 2b01 cmp r3, #1
  18151. 80081be: d108 bne.n 80081d2 <HAL_ETH_ReadData+0x170>
  18152. {
  18153. /* Return received packet */
  18154. *pAppBuff = heth->RxDescList.pRxStart;
  18155. 80081c0: 687b ldr r3, [r7, #4]
  18156. 80081c2: 6fda ldr r2, [r3, #124] @ 0x7c
  18157. 80081c4: 683b ldr r3, [r7, #0]
  18158. 80081c6: 601a str r2, [r3, #0]
  18159. /* Reset first element */
  18160. heth->RxDescList.pRxStart = NULL;
  18161. 80081c8: 687b ldr r3, [r7, #4]
  18162. 80081ca: 2200 movs r2, #0
  18163. 80081cc: 67da str r2, [r3, #124] @ 0x7c
  18164. return HAL_OK;
  18165. 80081ce: 2300 movs r3, #0
  18166. 80081d0: e000 b.n 80081d4 <HAL_ETH_ReadData+0x172>
  18167. }
  18168. /* Packet not ready */
  18169. return HAL_ERROR;
  18170. 80081d2: 2301 movs r3, #1
  18171. }
  18172. 80081d4: 4618 mov r0, r3
  18173. 80081d6: 3720 adds r7, #32
  18174. 80081d8: 46bd mov sp, r7
  18175. 80081da: bd80 pop {r7, pc}
  18176. 080081dc <ETH_UpdateDescriptor>:
  18177. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18178. * the configuration information for ETHERNET module
  18179. * @retval HAL status
  18180. */
  18181. static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
  18182. {
  18183. 80081dc: b580 push {r7, lr}
  18184. 80081de: b088 sub sp, #32
  18185. 80081e0: af00 add r7, sp, #0
  18186. 80081e2: 6078 str r0, [r7, #4]
  18187. uint32_t descidx;
  18188. uint32_t tailidx;
  18189. uint32_t desccount;
  18190. ETH_DMADescTypeDef *dmarxdesc;
  18191. uint8_t *buff = NULL;
  18192. 80081e4: 2300 movs r3, #0
  18193. 80081e6: 60bb str r3, [r7, #8]
  18194. uint8_t allocStatus = 1U;
  18195. 80081e8: 2301 movs r3, #1
  18196. 80081ea: 74fb strb r3, [r7, #19]
  18197. descidx = heth->RxDescList.RxBuildDescIdx;
  18198. 80081ec: 687b ldr r3, [r7, #4]
  18199. 80081ee: 6e9b ldr r3, [r3, #104] @ 0x68
  18200. 80081f0: 61fb str r3, [r7, #28]
  18201. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18202. 80081f2: 687b ldr r3, [r7, #4]
  18203. 80081f4: 69fa ldr r2, [r7, #28]
  18204. 80081f6: 3212 adds r2, #18
  18205. 80081f8: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18206. 80081fc: 617b str r3, [r7, #20]
  18207. desccount = heth->RxDescList.RxBuildDescCnt;
  18208. 80081fe: 687b ldr r3, [r7, #4]
  18209. 8008200: 6edb ldr r3, [r3, #108] @ 0x6c
  18210. 8008202: 61bb str r3, [r7, #24]
  18211. while ((desccount > 0U) && (allocStatus != 0U))
  18212. 8008204: e038 b.n 8008278 <ETH_UpdateDescriptor+0x9c>
  18213. {
  18214. /* Check if a buffer's attached the descriptor */
  18215. if (READ_REG(dmarxdesc->BackupAddr0) == 0U)
  18216. 8008206: 697b ldr r3, [r7, #20]
  18217. 8008208: 691b ldr r3, [r3, #16]
  18218. 800820a: 2b00 cmp r3, #0
  18219. 800820c: d112 bne.n 8008234 <ETH_UpdateDescriptor+0x58>
  18220. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18221. /*Call registered Allocate callback*/
  18222. heth->rxAllocateCallback(&buff);
  18223. #else
  18224. /* Allocate callback */
  18225. HAL_ETH_RxAllocateCallback(&buff);
  18226. 800820e: f107 0308 add.w r3, r7, #8
  18227. 8008212: 4618 mov r0, r3
  18228. 8008214: f008 f8d4 bl 80103c0 <HAL_ETH_RxAllocateCallback>
  18229. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18230. if (buff == NULL)
  18231. 8008218: 68bb ldr r3, [r7, #8]
  18232. 800821a: 2b00 cmp r3, #0
  18233. 800821c: d102 bne.n 8008224 <ETH_UpdateDescriptor+0x48>
  18234. {
  18235. allocStatus = 0U;
  18236. 800821e: 2300 movs r3, #0
  18237. 8008220: 74fb strb r3, [r7, #19]
  18238. 8008222: e007 b.n 8008234 <ETH_UpdateDescriptor+0x58>
  18239. }
  18240. else
  18241. {
  18242. WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff);
  18243. 8008224: 68bb ldr r3, [r7, #8]
  18244. 8008226: 461a mov r2, r3
  18245. 8008228: 697b ldr r3, [r7, #20]
  18246. 800822a: 611a str r2, [r3, #16]
  18247. WRITE_REG(dmarxdesc->DESC0, (uint32_t)buff);
  18248. 800822c: 68bb ldr r3, [r7, #8]
  18249. 800822e: 461a mov r2, r3
  18250. 8008230: 697b ldr r3, [r7, #20]
  18251. 8008232: 601a str r2, [r3, #0]
  18252. }
  18253. }
  18254. if (allocStatus != 0U)
  18255. 8008234: 7cfb ldrb r3, [r7, #19]
  18256. 8008236: 2b00 cmp r3, #0
  18257. 8008238: d01e beq.n 8008278 <ETH_UpdateDescriptor+0x9c>
  18258. {
  18259. if (heth->RxDescList.ItMode != 0U)
  18260. 800823a: 687b ldr r3, [r7, #4]
  18261. 800823c: 6d9b ldr r3, [r3, #88] @ 0x58
  18262. 800823e: 2b00 cmp r3, #0
  18263. 8008240: d004 beq.n 800824c <ETH_UpdateDescriptor+0x70>
  18264. {
  18265. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V | ETH_DMARXNDESCRF_IOC);
  18266. 8008242: 697b ldr r3, [r7, #20]
  18267. 8008244: f04f 4241 mov.w r2, #3238002688 @ 0xc1000000
  18268. 8008248: 60da str r2, [r3, #12]
  18269. 800824a: e003 b.n 8008254 <ETH_UpdateDescriptor+0x78>
  18270. }
  18271. else
  18272. {
  18273. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V);
  18274. 800824c: 697b ldr r3, [r7, #20]
  18275. 800824e: f04f 4201 mov.w r2, #2164260864 @ 0x81000000
  18276. 8008252: 60da str r2, [r3, #12]
  18277. }
  18278. /* Increment current rx descriptor index */
  18279. INCR_RX_DESC_INDEX(descidx, 1U);
  18280. 8008254: 69fb ldr r3, [r7, #28]
  18281. 8008256: 3301 adds r3, #1
  18282. 8008258: 61fb str r3, [r7, #28]
  18283. 800825a: 69fb ldr r3, [r7, #28]
  18284. 800825c: 2b03 cmp r3, #3
  18285. 800825e: d902 bls.n 8008266 <ETH_UpdateDescriptor+0x8a>
  18286. 8008260: 69fb ldr r3, [r7, #28]
  18287. 8008262: 3b04 subs r3, #4
  18288. 8008264: 61fb str r3, [r7, #28]
  18289. /* Get current descriptor address */
  18290. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18291. 8008266: 687b ldr r3, [r7, #4]
  18292. 8008268: 69fa ldr r2, [r7, #28]
  18293. 800826a: 3212 adds r2, #18
  18294. 800826c: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18295. 8008270: 617b str r3, [r7, #20]
  18296. desccount--;
  18297. 8008272: 69bb ldr r3, [r7, #24]
  18298. 8008274: 3b01 subs r3, #1
  18299. 8008276: 61bb str r3, [r7, #24]
  18300. while ((desccount > 0U) && (allocStatus != 0U))
  18301. 8008278: 69bb ldr r3, [r7, #24]
  18302. 800827a: 2b00 cmp r3, #0
  18303. 800827c: d002 beq.n 8008284 <ETH_UpdateDescriptor+0xa8>
  18304. 800827e: 7cfb ldrb r3, [r7, #19]
  18305. 8008280: 2b00 cmp r3, #0
  18306. 8008282: d1c0 bne.n 8008206 <ETH_UpdateDescriptor+0x2a>
  18307. }
  18308. }
  18309. if (heth->RxDescList.RxBuildDescCnt != desccount)
  18310. 8008284: 687b ldr r3, [r7, #4]
  18311. 8008286: 6edb ldr r3, [r3, #108] @ 0x6c
  18312. 8008288: 69ba ldr r2, [r7, #24]
  18313. 800828a: 429a cmp r2, r3
  18314. 800828c: d01b beq.n 80082c6 <ETH_UpdateDescriptor+0xea>
  18315. {
  18316. /* Set the tail pointer index */
  18317. tailidx = (descidx + 1U) % ETH_RX_DESC_CNT;
  18318. 800828e: 69fb ldr r3, [r7, #28]
  18319. 8008290: 3301 adds r3, #1
  18320. 8008292: f003 0303 and.w r3, r3, #3
  18321. 8008296: 60fb str r3, [r7, #12]
  18322. __ASM volatile ("dmb 0xF":::"memory");
  18323. 8008298: f3bf 8f5f dmb sy
  18324. }
  18325. 800829c: bf00 nop
  18326. /* DMB instruction to avoid race condition */
  18327. __DMB();
  18328. /* Set the Tail pointer address */
  18329. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (tailidx))));
  18330. 800829e: 687b ldr r3, [r7, #4]
  18331. 80082a0: 6919 ldr r1, [r3, #16]
  18332. 80082a2: 68fa ldr r2, [r7, #12]
  18333. 80082a4: 4613 mov r3, r2
  18334. 80082a6: 005b lsls r3, r3, #1
  18335. 80082a8: 4413 add r3, r2
  18336. 80082aa: 00db lsls r3, r3, #3
  18337. 80082ac: 18ca adds r2, r1, r3
  18338. 80082ae: 687b ldr r3, [r7, #4]
  18339. 80082b0: 681b ldr r3, [r3, #0]
  18340. 80082b2: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18341. 80082b6: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  18342. heth->RxDescList.RxBuildDescIdx = descidx;
  18343. 80082ba: 687b ldr r3, [r7, #4]
  18344. 80082bc: 69fa ldr r2, [r7, #28]
  18345. 80082be: 669a str r2, [r3, #104] @ 0x68
  18346. heth->RxDescList.RxBuildDescCnt = desccount;
  18347. 80082c0: 687b ldr r3, [r7, #4]
  18348. 80082c2: 69ba ldr r2, [r7, #24]
  18349. 80082c4: 66da str r2, [r3, #108] @ 0x6c
  18350. }
  18351. }
  18352. 80082c6: bf00 nop
  18353. 80082c8: 3720 adds r7, #32
  18354. 80082ca: 46bd mov sp, r7
  18355. 80082cc: bd80 pop {r7, pc}
  18356. 080082ce <HAL_ETH_ReleaseTxPacket>:
  18357. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18358. * the configuration information for ETHERNET module
  18359. * @retval HAL status
  18360. */
  18361. HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth)
  18362. {
  18363. 80082ce: b580 push {r7, lr}
  18364. 80082d0: b086 sub sp, #24
  18365. 80082d2: af00 add r7, sp, #0
  18366. 80082d4: 6078 str r0, [r7, #4]
  18367. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  18368. 80082d6: 687b ldr r3, [r7, #4]
  18369. 80082d8: 3318 adds r3, #24
  18370. 80082da: 60bb str r3, [r7, #8]
  18371. uint32_t numOfBuf = dmatxdesclist->BuffersInUse;
  18372. 80082dc: 68bb ldr r3, [r7, #8]
  18373. 80082de: 6a9b ldr r3, [r3, #40] @ 0x28
  18374. 80082e0: 617b str r3, [r7, #20]
  18375. uint32_t idx = dmatxdesclist->releaseIndex;
  18376. 80082e2: 68bb ldr r3, [r7, #8]
  18377. 80082e4: 6adb ldr r3, [r3, #44] @ 0x2c
  18378. 80082e6: 613b str r3, [r7, #16]
  18379. uint8_t pktTxStatus = 1U;
  18380. 80082e8: 2301 movs r3, #1
  18381. 80082ea: 73fb strb r3, [r7, #15]
  18382. #ifdef HAL_ETH_USE_PTP
  18383. ETH_TimeStampTypeDef *timestamp = &heth->TxTimestamp;
  18384. #endif /* HAL_ETH_USE_PTP */
  18385. /* Loop through buffers in use. */
  18386. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  18387. 80082ec: e047 b.n 800837e <HAL_ETH_ReleaseTxPacket+0xb0>
  18388. {
  18389. pktInUse = 1U;
  18390. 80082ee: 2301 movs r3, #1
  18391. 80082f0: 73bb strb r3, [r7, #14]
  18392. numOfBuf--;
  18393. 80082f2: 697b ldr r3, [r7, #20]
  18394. 80082f4: 3b01 subs r3, #1
  18395. 80082f6: 617b str r3, [r7, #20]
  18396. /* If no packet, just examine the next packet. */
  18397. if (dmatxdesclist->PacketAddress[idx] == NULL)
  18398. 80082f8: 68ba ldr r2, [r7, #8]
  18399. 80082fa: 693b ldr r3, [r7, #16]
  18400. 80082fc: 3304 adds r3, #4
  18401. 80082fe: 009b lsls r3, r3, #2
  18402. 8008300: 4413 add r3, r2
  18403. 8008302: 685b ldr r3, [r3, #4]
  18404. 8008304: 2b00 cmp r3, #0
  18405. 8008306: d10a bne.n 800831e <HAL_ETH_ReleaseTxPacket+0x50>
  18406. {
  18407. /* No packet in use, skip to next. */
  18408. INCR_TX_DESC_INDEX(idx, 1U);
  18409. 8008308: 693b ldr r3, [r7, #16]
  18410. 800830a: 3301 adds r3, #1
  18411. 800830c: 613b str r3, [r7, #16]
  18412. 800830e: 693b ldr r3, [r7, #16]
  18413. 8008310: 2b03 cmp r3, #3
  18414. 8008312: d902 bls.n 800831a <HAL_ETH_ReleaseTxPacket+0x4c>
  18415. 8008314: 693b ldr r3, [r7, #16]
  18416. 8008316: 3b04 subs r3, #4
  18417. 8008318: 613b str r3, [r7, #16]
  18418. pktInUse = 0U;
  18419. 800831a: 2300 movs r3, #0
  18420. 800831c: 73bb strb r3, [r7, #14]
  18421. }
  18422. if (pktInUse != 0U)
  18423. 800831e: 7bbb ldrb r3, [r7, #14]
  18424. 8008320: 2b00 cmp r3, #0
  18425. 8008322: d02c beq.n 800837e <HAL_ETH_ReleaseTxPacket+0xb0>
  18426. {
  18427. /* Determine if the packet has been transmitted. */
  18428. if ((heth->Init.TxDesc[idx].DESC3 & ETH_DMATXNDESCRF_OWN) == 0U)
  18429. 8008324: 687b ldr r3, [r7, #4]
  18430. 8008326: 68d9 ldr r1, [r3, #12]
  18431. 8008328: 693a ldr r2, [r7, #16]
  18432. 800832a: 4613 mov r3, r2
  18433. 800832c: 005b lsls r3, r3, #1
  18434. 800832e: 4413 add r3, r2
  18435. 8008330: 00db lsls r3, r3, #3
  18436. 8008332: 440b add r3, r1
  18437. 8008334: 68db ldr r3, [r3, #12]
  18438. 8008336: 2b00 cmp r3, #0
  18439. 8008338: db1f blt.n 800837a <HAL_ETH_ReleaseTxPacket+0xac>
  18440. {
  18441. HAL_ETH_TxPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp);
  18442. }
  18443. #endif /* HAL_ETH_USE_PTP */
  18444. /* Release the packet. */
  18445. HAL_ETH_TxFreeCallback(dmatxdesclist->PacketAddress[idx]);
  18446. 800833a: 68ba ldr r2, [r7, #8]
  18447. 800833c: 693b ldr r3, [r7, #16]
  18448. 800833e: 3304 adds r3, #4
  18449. 8008340: 009b lsls r3, r3, #2
  18450. 8008342: 4413 add r3, r2
  18451. 8008344: 685b ldr r3, [r3, #4]
  18452. 8008346: 4618 mov r0, r3
  18453. 8008348: f008 f8d2 bl 80104f0 <HAL_ETH_TxFreeCallback>
  18454. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18455. /* Clear the entry in the in-use array. */
  18456. dmatxdesclist->PacketAddress[idx] = NULL;
  18457. 800834c: 68ba ldr r2, [r7, #8]
  18458. 800834e: 693b ldr r3, [r7, #16]
  18459. 8008350: 3304 adds r3, #4
  18460. 8008352: 009b lsls r3, r3, #2
  18461. 8008354: 4413 add r3, r2
  18462. 8008356: 2200 movs r2, #0
  18463. 8008358: 605a str r2, [r3, #4]
  18464. /* Update the transmit relesae index and number of buffers in use. */
  18465. INCR_TX_DESC_INDEX(idx, 1U);
  18466. 800835a: 693b ldr r3, [r7, #16]
  18467. 800835c: 3301 adds r3, #1
  18468. 800835e: 613b str r3, [r7, #16]
  18469. 8008360: 693b ldr r3, [r7, #16]
  18470. 8008362: 2b03 cmp r3, #3
  18471. 8008364: d902 bls.n 800836c <HAL_ETH_ReleaseTxPacket+0x9e>
  18472. 8008366: 693b ldr r3, [r7, #16]
  18473. 8008368: 3b04 subs r3, #4
  18474. 800836a: 613b str r3, [r7, #16]
  18475. dmatxdesclist->BuffersInUse = numOfBuf;
  18476. 800836c: 68bb ldr r3, [r7, #8]
  18477. 800836e: 697a ldr r2, [r7, #20]
  18478. 8008370: 629a str r2, [r3, #40] @ 0x28
  18479. dmatxdesclist->releaseIndex = idx;
  18480. 8008372: 68bb ldr r3, [r7, #8]
  18481. 8008374: 693a ldr r2, [r7, #16]
  18482. 8008376: 62da str r2, [r3, #44] @ 0x2c
  18483. 8008378: e001 b.n 800837e <HAL_ETH_ReleaseTxPacket+0xb0>
  18484. }
  18485. else
  18486. {
  18487. /* Get out of the loop! */
  18488. pktTxStatus = 0U;
  18489. 800837a: 2300 movs r3, #0
  18490. 800837c: 73fb strb r3, [r7, #15]
  18491. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  18492. 800837e: 697b ldr r3, [r7, #20]
  18493. 8008380: 2b00 cmp r3, #0
  18494. 8008382: d002 beq.n 800838a <HAL_ETH_ReleaseTxPacket+0xbc>
  18495. 8008384: 7bfb ldrb r3, [r7, #15]
  18496. 8008386: 2b00 cmp r3, #0
  18497. 8008388: d1b1 bne.n 80082ee <HAL_ETH_ReleaseTxPacket+0x20>
  18498. }
  18499. }
  18500. }
  18501. return HAL_OK;
  18502. 800838a: 2300 movs r3, #0
  18503. }
  18504. 800838c: 4618 mov r0, r3
  18505. 800838e: 3718 adds r7, #24
  18506. 8008390: 46bd mov sp, r7
  18507. 8008392: bd80 pop {r7, pc}
  18508. 08008394 <HAL_ETH_IRQHandler>:
  18509. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18510. * the configuration information for ETHERNET module
  18511. * @retval HAL status
  18512. */
  18513. void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth)
  18514. {
  18515. 8008394: b580 push {r7, lr}
  18516. 8008396: b086 sub sp, #24
  18517. 8008398: af00 add r7, sp, #0
  18518. 800839a: 6078 str r0, [r7, #4]
  18519. uint32_t mac_flag = READ_REG(heth->Instance->MACISR);
  18520. 800839c: 687b ldr r3, [r7, #4]
  18521. 800839e: 681b ldr r3, [r3, #0]
  18522. 80083a0: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  18523. 80083a4: 617b str r3, [r7, #20]
  18524. uint32_t dma_flag = READ_REG(heth->Instance->DMACSR);
  18525. 80083a6: 687b ldr r3, [r7, #4]
  18526. 80083a8: 681b ldr r3, [r3, #0]
  18527. 80083aa: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18528. 80083ae: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  18529. 80083b2: 613b str r3, [r7, #16]
  18530. uint32_t dma_itsource = READ_REG(heth->Instance->DMACIER);
  18531. 80083b4: 687b ldr r3, [r7, #4]
  18532. 80083b6: 681b ldr r3, [r3, #0]
  18533. 80083b8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18534. 80083bc: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  18535. 80083c0: 60fb str r3, [r7, #12]
  18536. uint32_t exti_d1_flag = READ_REG(EXTI_D1->PR3);
  18537. 80083c2: 4b6d ldr r3, [pc, #436] @ (8008578 <HAL_ETH_IRQHandler+0x1e4>)
  18538. 80083c4: 6a9b ldr r3, [r3, #40] @ 0x28
  18539. 80083c6: 60bb str r3, [r7, #8]
  18540. #if defined(DUAL_CORE)
  18541. uint32_t exti_d2_flag = READ_REG(EXTI_D2->PR3);
  18542. #endif /* DUAL_CORE */
  18543. /* Packet received */
  18544. if (((dma_flag & ETH_DMACSR_RI) != 0U) && ((dma_itsource & ETH_DMACIER_RIE) != 0U))
  18545. 80083c8: 693b ldr r3, [r7, #16]
  18546. 80083ca: f003 0340 and.w r3, r3, #64 @ 0x40
  18547. 80083ce: 2b00 cmp r3, #0
  18548. 80083d0: d010 beq.n 80083f4 <HAL_ETH_IRQHandler+0x60>
  18549. 80083d2: 68fb ldr r3, [r7, #12]
  18550. 80083d4: f003 0340 and.w r3, r3, #64 @ 0x40
  18551. 80083d8: 2b00 cmp r3, #0
  18552. 80083da: d00b beq.n 80083f4 <HAL_ETH_IRQHandler+0x60>
  18553. {
  18554. /* Clear the Eth DMA Rx IT pending bits */
  18555. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_RI | ETH_DMACSR_NIS);
  18556. 80083dc: 687b ldr r3, [r7, #4]
  18557. 80083de: 681b ldr r3, [r3, #0]
  18558. 80083e0: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18559. 80083e4: 461a mov r2, r3
  18560. 80083e6: f248 0340 movw r3, #32832 @ 0x8040
  18561. 80083ea: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18562. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18563. /*Call registered Receive complete callback*/
  18564. heth->RxCpltCallback(heth);
  18565. #else
  18566. /* Receive complete callback */
  18567. HAL_ETH_RxCpltCallback(heth);
  18568. 80083ee: 6878 ldr r0, [r7, #4]
  18569. 80083f0: f007 fb6e bl 800fad0 <HAL_ETH_RxCpltCallback>
  18570. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18571. }
  18572. /* Packet transmitted */
  18573. if (((dma_flag & ETH_DMACSR_TI) != 0U) && ((dma_itsource & ETH_DMACIER_TIE) != 0U))
  18574. 80083f4: 693b ldr r3, [r7, #16]
  18575. 80083f6: f003 0301 and.w r3, r3, #1
  18576. 80083fa: 2b00 cmp r3, #0
  18577. 80083fc: d010 beq.n 8008420 <HAL_ETH_IRQHandler+0x8c>
  18578. 80083fe: 68fb ldr r3, [r7, #12]
  18579. 8008400: f003 0301 and.w r3, r3, #1
  18580. 8008404: 2b00 cmp r3, #0
  18581. 8008406: d00b beq.n 8008420 <HAL_ETH_IRQHandler+0x8c>
  18582. {
  18583. /* Clear the Eth DMA Tx IT pending bits */
  18584. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_TI | ETH_DMACSR_NIS);
  18585. 8008408: 687b ldr r3, [r7, #4]
  18586. 800840a: 681b ldr r3, [r3, #0]
  18587. 800840c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18588. 8008410: 461a mov r2, r3
  18589. 8008412: f248 0301 movw r3, #32769 @ 0x8001
  18590. 8008416: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18591. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18592. /*Call registered Transmit complete callback*/
  18593. heth->TxCpltCallback(heth);
  18594. #else
  18595. /* Transfer complete callback */
  18596. HAL_ETH_TxCpltCallback(heth);
  18597. 800841a: 6878 ldr r0, [r7, #4]
  18598. 800841c: f007 fb68 bl 800faf0 <HAL_ETH_TxCpltCallback>
  18599. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18600. }
  18601. /* ETH DMA Error */
  18602. if (((dma_flag & ETH_DMACSR_AIS) != 0U) && ((dma_itsource & ETH_DMACIER_AIE) != 0U))
  18603. 8008420: 693b ldr r3, [r7, #16]
  18604. 8008422: f403 4380 and.w r3, r3, #16384 @ 0x4000
  18605. 8008426: 2b00 cmp r3, #0
  18606. 8008428: d047 beq.n 80084ba <HAL_ETH_IRQHandler+0x126>
  18607. 800842a: 68fb ldr r3, [r7, #12]
  18608. 800842c: f403 4380 and.w r3, r3, #16384 @ 0x4000
  18609. 8008430: 2b00 cmp r3, #0
  18610. 8008432: d042 beq.n 80084ba <HAL_ETH_IRQHandler+0x126>
  18611. {
  18612. heth->ErrorCode |= HAL_ETH_ERROR_DMA;
  18613. 8008434: 687b ldr r3, [r7, #4]
  18614. 8008436: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18615. 800843a: f043 0208 orr.w r2, r3, #8
  18616. 800843e: 687b ldr r3, [r7, #4]
  18617. 8008440: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18618. /* if fatal bus error occurred */
  18619. if ((dma_flag & ETH_DMACSR_FBE) != 0U)
  18620. 8008444: 693b ldr r3, [r7, #16]
  18621. 8008446: f403 5380 and.w r3, r3, #4096 @ 0x1000
  18622. 800844a: 2b00 cmp r3, #0
  18623. 800844c: d01e beq.n 800848c <HAL_ETH_IRQHandler+0xf8>
  18624. {
  18625. /* Get DMA error code */
  18626. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_FBE | ETH_DMACSR_TPS | ETH_DMACSR_RPS));
  18627. 800844e: 687b ldr r3, [r7, #4]
  18628. 8008450: 681b ldr r3, [r3, #0]
  18629. 8008452: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18630. 8008456: f8d3 2160 ldr.w r2, [r3, #352] @ 0x160
  18631. 800845a: f241 1302 movw r3, #4354 @ 0x1102
  18632. 800845e: 4013 ands r3, r2
  18633. 8008460: 687a ldr r2, [r7, #4]
  18634. 8008462: f8c2 308c str.w r3, [r2, #140] @ 0x8c
  18635. /* Disable all interrupts */
  18636. __HAL_ETH_DMA_DISABLE_IT(heth, ETH_DMACIER_NIE | ETH_DMACIER_AIE);
  18637. 8008466: 687b ldr r3, [r7, #4]
  18638. 8008468: 681b ldr r3, [r3, #0]
  18639. 800846a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18640. 800846e: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  18641. 8008472: 687a ldr r2, [r7, #4]
  18642. 8008474: 6812 ldr r2, [r2, #0]
  18643. 8008476: f423 4340 bic.w r3, r3, #49152 @ 0xc000
  18644. 800847a: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18645. 800847e: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  18646. /* Set HAL state to ERROR */
  18647. heth->gState = HAL_ETH_STATE_ERROR;
  18648. 8008482: 687b ldr r3, [r7, #4]
  18649. 8008484: 22e0 movs r2, #224 @ 0xe0
  18650. 8008486: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18651. 800848a: e013 b.n 80084b4 <HAL_ETH_IRQHandler+0x120>
  18652. }
  18653. else
  18654. {
  18655. /* Get DMA error status */
  18656. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  18657. 800848c: 687b ldr r3, [r7, #4]
  18658. 800848e: 681b ldr r3, [r3, #0]
  18659. 8008490: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18660. 8008494: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  18661. 8008498: f403 42cd and.w r2, r3, #26240 @ 0x6680
  18662. 800849c: 687b ldr r3, [r7, #4]
  18663. 800849e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  18664. ETH_DMACSR_RBU | ETH_DMACSR_AIS));
  18665. /* Clear the interrupt summary flag */
  18666. __HAL_ETH_DMA_CLEAR_IT(heth, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  18667. 80084a2: 687b ldr r3, [r7, #4]
  18668. 80084a4: 681b ldr r3, [r3, #0]
  18669. 80084a6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18670. 80084aa: 461a mov r2, r3
  18671. 80084ac: f44f 43cd mov.w r3, #26240 @ 0x6680
  18672. 80084b0: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18673. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18674. /* Call registered Error callback*/
  18675. heth->ErrorCallback(heth);
  18676. #else
  18677. /* Ethernet DMA Error callback */
  18678. HAL_ETH_ErrorCallback(heth);
  18679. 80084b4: 6878 ldr r0, [r7, #4]
  18680. 80084b6: f007 fb2b bl 800fb10 <HAL_ETH_ErrorCallback>
  18681. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18682. }
  18683. /* ETH MAC Error IT */
  18684. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  18685. 80084ba: 697b ldr r3, [r7, #20]
  18686. 80084bc: f403 4380 and.w r3, r3, #16384 @ 0x4000
  18687. 80084c0: 2b00 cmp r3, #0
  18688. 80084c2: d104 bne.n 80084ce <HAL_ETH_IRQHandler+0x13a>
  18689. ((mac_flag & ETH_MACIER_TXSTSIE) == ETH_MACIER_TXSTSIE))
  18690. 80084c4: 697b ldr r3, [r7, #20]
  18691. 80084c6: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18692. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  18693. 80084ca: 2b00 cmp r3, #0
  18694. 80084cc: d019 beq.n 8008502 <HAL_ETH_IRQHandler+0x16e>
  18695. {
  18696. heth->ErrorCode |= HAL_ETH_ERROR_MAC;
  18697. 80084ce: 687b ldr r3, [r7, #4]
  18698. 80084d0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18699. 80084d4: f043 0210 orr.w r2, r3, #16
  18700. 80084d8: 687b ldr r3, [r7, #4]
  18701. 80084da: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18702. /* Get MAC Rx Tx status and clear Status register pending bit */
  18703. heth->MACErrorCode = READ_REG(heth->Instance->MACRXTXSR);
  18704. 80084de: 687b ldr r3, [r7, #4]
  18705. 80084e0: 681b ldr r3, [r3, #0]
  18706. 80084e2: f8d3 20b8 ldr.w r2, [r3, #184] @ 0xb8
  18707. 80084e6: 687b ldr r3, [r7, #4]
  18708. 80084e8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  18709. heth->gState = HAL_ETH_STATE_ERROR;
  18710. 80084ec: 687b ldr r3, [r7, #4]
  18711. 80084ee: 22e0 movs r2, #224 @ 0xe0
  18712. 80084f0: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18713. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18714. /* Call registered Error callback*/
  18715. heth->ErrorCallback(heth);
  18716. #else
  18717. /* Ethernet Error callback */
  18718. HAL_ETH_ErrorCallback(heth);
  18719. 80084f4: 6878 ldr r0, [r7, #4]
  18720. 80084f6: f007 fb0b bl 800fb10 <HAL_ETH_ErrorCallback>
  18721. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18722. heth->MACErrorCode = (uint32_t)(0x0U);
  18723. 80084fa: 687b ldr r3, [r7, #4]
  18724. 80084fc: 2200 movs r2, #0
  18725. 80084fe: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  18726. }
  18727. /* ETH PMT IT */
  18728. if ((mac_flag & ETH_MAC_PMT_IT) != 0U)
  18729. 8008502: 697b ldr r3, [r7, #20]
  18730. 8008504: f003 0310 and.w r3, r3, #16
  18731. 8008508: 2b00 cmp r3, #0
  18732. 800850a: d00f beq.n 800852c <HAL_ETH_IRQHandler+0x198>
  18733. {
  18734. /* Get MAC Wake-up source and clear the status register pending bit */
  18735. heth->MACWakeUpEvent = READ_BIT(heth->Instance->MACPCSR, (ETH_MACPCSR_RWKPRCVD | ETH_MACPCSR_MGKPRCVD));
  18736. 800850c: 687b ldr r3, [r7, #4]
  18737. 800850e: 681b ldr r3, [r3, #0]
  18738. 8008510: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0
  18739. 8008514: f003 0260 and.w r2, r3, #96 @ 0x60
  18740. 8008518: 687b ldr r3, [r7, #4]
  18741. 800851a: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  18742. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18743. /* Call registered PMT callback*/
  18744. heth->PMTCallback(heth);
  18745. #else
  18746. /* Ethernet PMT callback */
  18747. HAL_ETH_PMTCallback(heth);
  18748. 800851e: 6878 ldr r0, [r7, #4]
  18749. 8008520: f000 f82c bl 800857c <HAL_ETH_PMTCallback>
  18750. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18751. heth->MACWakeUpEvent = (uint32_t)(0x0U);
  18752. 8008524: 687b ldr r3, [r7, #4]
  18753. 8008526: 2200 movs r2, #0
  18754. 8008528: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  18755. }
  18756. /* ETH EEE IT */
  18757. if ((mac_flag & ETH_MAC_LPI_IT) != 0U)
  18758. 800852c: 697b ldr r3, [r7, #20]
  18759. 800852e: f003 0320 and.w r3, r3, #32
  18760. 8008532: 2b00 cmp r3, #0
  18761. 8008534: d00f beq.n 8008556 <HAL_ETH_IRQHandler+0x1c2>
  18762. {
  18763. /* Get MAC LPI interrupt source and clear the status register pending bit */
  18764. heth->MACLPIEvent = READ_BIT(heth->Instance->MACLCSR, 0x0000000FU);
  18765. 8008536: 687b ldr r3, [r7, #4]
  18766. 8008538: 681b ldr r3, [r3, #0]
  18767. 800853a: f8d3 30d0 ldr.w r3, [r3, #208] @ 0xd0
  18768. 800853e: f003 020f and.w r2, r3, #15
  18769. 8008542: 687b ldr r3, [r7, #4]
  18770. 8008544: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  18771. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18772. /* Call registered EEE callback*/
  18773. heth->EEECallback(heth);
  18774. #else
  18775. /* Ethernet EEE callback */
  18776. HAL_ETH_EEECallback(heth);
  18777. 8008548: 6878 ldr r0, [r7, #4]
  18778. 800854a: f000 f821 bl 8008590 <HAL_ETH_EEECallback>
  18779. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18780. heth->MACLPIEvent = (uint32_t)(0x0U);
  18781. 800854e: 687b ldr r3, [r7, #4]
  18782. 8008550: 2200 movs r2, #0
  18783. 8008552: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  18784. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18785. }
  18786. }
  18787. #else /* DUAL_CORE not defined */
  18788. /* check ETH WAKEUP exti flag */
  18789. if ((exti_d1_flag & ETH_WAKEUP_EXTI_LINE) != 0U)
  18790. 8008556: 68bb ldr r3, [r7, #8]
  18791. 8008558: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  18792. 800855c: 2b00 cmp r3, #0
  18793. 800855e: d006 beq.n 800856e <HAL_ETH_IRQHandler+0x1da>
  18794. {
  18795. /* Clear ETH WAKEUP Exti pending bit */
  18796. __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE);
  18797. 8008560: 4b05 ldr r3, [pc, #20] @ (8008578 <HAL_ETH_IRQHandler+0x1e4>)
  18798. 8008562: f44f 0280 mov.w r2, #4194304 @ 0x400000
  18799. 8008566: 629a str r2, [r3, #40] @ 0x28
  18800. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18801. /* Call registered WakeUp callback*/
  18802. heth->WakeUpCallback(heth);
  18803. #else
  18804. /* ETH WAKEUP callback */
  18805. HAL_ETH_WakeUpCallback(heth);
  18806. 8008568: 6878 ldr r0, [r7, #4]
  18807. 800856a: f000 f81b bl 80085a4 <HAL_ETH_WakeUpCallback>
  18808. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18809. }
  18810. #endif /* DUAL_CORE */
  18811. }
  18812. 800856e: bf00 nop
  18813. 8008570: 3718 adds r7, #24
  18814. 8008572: 46bd mov sp, r7
  18815. 8008574: bd80 pop {r7, pc}
  18816. 8008576: bf00 nop
  18817. 8008578: 58000080 .word 0x58000080
  18818. 0800857c <HAL_ETH_PMTCallback>:
  18819. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18820. * the configuration information for ETHERNET module
  18821. * @retval None
  18822. */
  18823. __weak void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth)
  18824. {
  18825. 800857c: b480 push {r7}
  18826. 800857e: b083 sub sp, #12
  18827. 8008580: af00 add r7, sp, #0
  18828. 8008582: 6078 str r0, [r7, #4]
  18829. /* Prevent unused argument(s) compilation warning */
  18830. UNUSED(heth);
  18831. /* NOTE : This function Should not be modified, when the callback is needed,
  18832. the HAL_ETH_PMTCallback could be implemented in the user file
  18833. */
  18834. }
  18835. 8008584: bf00 nop
  18836. 8008586: 370c adds r7, #12
  18837. 8008588: 46bd mov sp, r7
  18838. 800858a: f85d 7b04 ldr.w r7, [sp], #4
  18839. 800858e: 4770 bx lr
  18840. 08008590 <HAL_ETH_EEECallback>:
  18841. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18842. * the configuration information for ETHERNET module
  18843. * @retval None
  18844. */
  18845. __weak void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth)
  18846. {
  18847. 8008590: b480 push {r7}
  18848. 8008592: b083 sub sp, #12
  18849. 8008594: af00 add r7, sp, #0
  18850. 8008596: 6078 str r0, [r7, #4]
  18851. /* Prevent unused argument(s) compilation warning */
  18852. UNUSED(heth);
  18853. /* NOTE : This function Should not be modified, when the callback is needed,
  18854. the HAL_ETH_EEECallback could be implemented in the user file
  18855. */
  18856. }
  18857. 8008598: bf00 nop
  18858. 800859a: 370c adds r7, #12
  18859. 800859c: 46bd mov sp, r7
  18860. 800859e: f85d 7b04 ldr.w r7, [sp], #4
  18861. 80085a2: 4770 bx lr
  18862. 080085a4 <HAL_ETH_WakeUpCallback>:
  18863. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18864. * the configuration information for ETHERNET module
  18865. * @retval None
  18866. */
  18867. __weak void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth)
  18868. {
  18869. 80085a4: b480 push {r7}
  18870. 80085a6: b083 sub sp, #12
  18871. 80085a8: af00 add r7, sp, #0
  18872. 80085aa: 6078 str r0, [r7, #4]
  18873. /* Prevent unused argument(s) compilation warning */
  18874. UNUSED(heth);
  18875. /* NOTE : This function Should not be modified, when the callback is needed,
  18876. the HAL_ETH_WakeUpCallback could be implemented in the user file
  18877. */
  18878. }
  18879. 80085ac: bf00 nop
  18880. 80085ae: 370c adds r7, #12
  18881. 80085b0: 46bd mov sp, r7
  18882. 80085b2: f85d 7b04 ldr.w r7, [sp], #4
  18883. 80085b6: 4770 bx lr
  18884. 080085b8 <HAL_ETH_ReadPHYRegister>:
  18885. * @param pRegValue: parameter to hold read value
  18886. * @retval HAL status
  18887. */
  18888. HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  18889. uint32_t *pRegValue)
  18890. {
  18891. 80085b8: b580 push {r7, lr}
  18892. 80085ba: b086 sub sp, #24
  18893. 80085bc: af00 add r7, sp, #0
  18894. 80085be: 60f8 str r0, [r7, #12]
  18895. 80085c0: 60b9 str r1, [r7, #8]
  18896. 80085c2: 607a str r2, [r7, #4]
  18897. 80085c4: 603b str r3, [r7, #0]
  18898. uint32_t tickstart;
  18899. uint32_t tmpreg;
  18900. /* Check for the Busy flag */
  18901. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  18902. 80085c6: 68fb ldr r3, [r7, #12]
  18903. 80085c8: 681b ldr r3, [r3, #0]
  18904. 80085ca: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18905. 80085ce: f003 0301 and.w r3, r3, #1
  18906. 80085d2: 2b00 cmp r3, #0
  18907. 80085d4: d001 beq.n 80085da <HAL_ETH_ReadPHYRegister+0x22>
  18908. {
  18909. return HAL_ERROR;
  18910. 80085d6: 2301 movs r3, #1
  18911. 80085d8: e03e b.n 8008658 <HAL_ETH_ReadPHYRegister+0xa0>
  18912. }
  18913. /* Get the MACMDIOAR value */
  18914. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  18915. 80085da: 68fb ldr r3, [r7, #12]
  18916. 80085dc: 681b ldr r3, [r3, #0]
  18917. 80085de: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18918. 80085e2: 617b str r3, [r7, #20]
  18919. - Set the PHY device address
  18920. - Set the PHY register address
  18921. - Set the read mode
  18922. - Set the MII Busy bit */
  18923. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  18924. 80085e4: 697b ldr r3, [r7, #20]
  18925. 80085e6: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  18926. 80085ea: 68bb ldr r3, [r7, #8]
  18927. 80085ec: 055b lsls r3, r3, #21
  18928. 80085ee: 4313 orrs r3, r2
  18929. 80085f0: 617b str r3, [r7, #20]
  18930. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  18931. 80085f2: 697b ldr r3, [r7, #20]
  18932. 80085f4: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  18933. 80085f8: 687b ldr r3, [r7, #4]
  18934. 80085fa: 041b lsls r3, r3, #16
  18935. 80085fc: 4313 orrs r3, r2
  18936. 80085fe: 617b str r3, [r7, #20]
  18937. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_RD);
  18938. 8008600: 697b ldr r3, [r7, #20]
  18939. 8008602: f043 030c orr.w r3, r3, #12
  18940. 8008606: 617b str r3, [r7, #20]
  18941. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  18942. 8008608: 697b ldr r3, [r7, #20]
  18943. 800860a: f043 0301 orr.w r3, r3, #1
  18944. 800860e: 617b str r3, [r7, #20]
  18945. /* Write the result value into the MDII Address register */
  18946. WRITE_REG(heth->Instance->MACMDIOAR, tmpreg);
  18947. 8008610: 68fb ldr r3, [r7, #12]
  18948. 8008612: 681b ldr r3, [r3, #0]
  18949. 8008614: 697a ldr r2, [r7, #20]
  18950. 8008616: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  18951. tickstart = HAL_GetTick();
  18952. 800861a: f7fc fd13 bl 8005044 <HAL_GetTick>
  18953. 800861e: 6138 str r0, [r7, #16]
  18954. /* Wait for the Busy flag */
  18955. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  18956. 8008620: e009 b.n 8008636 <HAL_ETH_ReadPHYRegister+0x7e>
  18957. {
  18958. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  18959. 8008622: f7fc fd0f bl 8005044 <HAL_GetTick>
  18960. 8008626: 4602 mov r2, r0
  18961. 8008628: 693b ldr r3, [r7, #16]
  18962. 800862a: 1ad3 subs r3, r2, r3
  18963. 800862c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  18964. 8008630: d901 bls.n 8008636 <HAL_ETH_ReadPHYRegister+0x7e>
  18965. {
  18966. return HAL_ERROR;
  18967. 8008632: 2301 movs r3, #1
  18968. 8008634: e010 b.n 8008658 <HAL_ETH_ReadPHYRegister+0xa0>
  18969. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  18970. 8008636: 68fb ldr r3, [r7, #12]
  18971. 8008638: 681b ldr r3, [r3, #0]
  18972. 800863a: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  18973. 800863e: f003 0301 and.w r3, r3, #1
  18974. 8008642: 2b00 cmp r3, #0
  18975. 8008644: d1ed bne.n 8008622 <HAL_ETH_ReadPHYRegister+0x6a>
  18976. }
  18977. }
  18978. /* Get MACMIIDR value */
  18979. WRITE_REG(*pRegValue, (uint16_t)heth->Instance->MACMDIODR);
  18980. 8008646: 68fb ldr r3, [r7, #12]
  18981. 8008648: 681b ldr r3, [r3, #0]
  18982. 800864a: f8d3 3204 ldr.w r3, [r3, #516] @ 0x204
  18983. 800864e: b29b uxth r3, r3
  18984. 8008650: 461a mov r2, r3
  18985. 8008652: 683b ldr r3, [r7, #0]
  18986. 8008654: 601a str r2, [r3, #0]
  18987. return HAL_OK;
  18988. 8008656: 2300 movs r3, #0
  18989. }
  18990. 8008658: 4618 mov r0, r3
  18991. 800865a: 3718 adds r7, #24
  18992. 800865c: 46bd mov sp, r7
  18993. 800865e: bd80 pop {r7, pc}
  18994. 08008660 <HAL_ETH_WritePHYRegister>:
  18995. * @param RegValue: the value to write
  18996. * @retval HAL status
  18997. */
  18998. HAL_StatusTypeDef HAL_ETH_WritePHYRegister(const ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  18999. uint32_t RegValue)
  19000. {
  19001. 8008660: b580 push {r7, lr}
  19002. 8008662: b086 sub sp, #24
  19003. 8008664: af00 add r7, sp, #0
  19004. 8008666: 60f8 str r0, [r7, #12]
  19005. 8008668: 60b9 str r1, [r7, #8]
  19006. 800866a: 607a str r2, [r7, #4]
  19007. 800866c: 603b str r3, [r7, #0]
  19008. uint32_t tickstart;
  19009. uint32_t tmpreg;
  19010. /* Check for the Busy flag */
  19011. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  19012. 800866e: 68fb ldr r3, [r7, #12]
  19013. 8008670: 681b ldr r3, [r3, #0]
  19014. 8008672: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19015. 8008676: f003 0301 and.w r3, r3, #1
  19016. 800867a: 2b00 cmp r3, #0
  19017. 800867c: d001 beq.n 8008682 <HAL_ETH_WritePHYRegister+0x22>
  19018. {
  19019. return HAL_ERROR;
  19020. 800867e: 2301 movs r3, #1
  19021. 8008680: e03c b.n 80086fc <HAL_ETH_WritePHYRegister+0x9c>
  19022. }
  19023. /* Get the MACMDIOAR value */
  19024. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  19025. 8008682: 68fb ldr r3, [r7, #12]
  19026. 8008684: 681b ldr r3, [r3, #0]
  19027. 8008686: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19028. 800868a: 617b str r3, [r7, #20]
  19029. - Set the PHY device address
  19030. - Set the PHY register address
  19031. - Set the write mode
  19032. - Set the MII Busy bit */
  19033. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  19034. 800868c: 697b ldr r3, [r7, #20]
  19035. 800868e: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  19036. 8008692: 68bb ldr r3, [r7, #8]
  19037. 8008694: 055b lsls r3, r3, #21
  19038. 8008696: 4313 orrs r3, r2
  19039. 8008698: 617b str r3, [r7, #20]
  19040. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  19041. 800869a: 697b ldr r3, [r7, #20]
  19042. 800869c: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  19043. 80086a0: 687b ldr r3, [r7, #4]
  19044. 80086a2: 041b lsls r3, r3, #16
  19045. 80086a4: 4313 orrs r3, r2
  19046. 80086a6: 617b str r3, [r7, #20]
  19047. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_WR);
  19048. 80086a8: 697b ldr r3, [r7, #20]
  19049. 80086aa: f023 030c bic.w r3, r3, #12
  19050. 80086ae: f043 0304 orr.w r3, r3, #4
  19051. 80086b2: 617b str r3, [r7, #20]
  19052. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  19053. 80086b4: 697b ldr r3, [r7, #20]
  19054. 80086b6: f043 0301 orr.w r3, r3, #1
  19055. 80086ba: 617b str r3, [r7, #20]
  19056. /* Give the value to the MII data register */
  19057. WRITE_REG(ETH->MACMDIODR, (uint16_t)RegValue);
  19058. 80086bc: 683b ldr r3, [r7, #0]
  19059. 80086be: b29a uxth r2, r3
  19060. 80086c0: 4b10 ldr r3, [pc, #64] @ (8008704 <HAL_ETH_WritePHYRegister+0xa4>)
  19061. 80086c2: f8c3 2204 str.w r2, [r3, #516] @ 0x204
  19062. /* Write the result value into the MII Address register */
  19063. WRITE_REG(ETH->MACMDIOAR, tmpreg);
  19064. 80086c6: 4a0f ldr r2, [pc, #60] @ (8008704 <HAL_ETH_WritePHYRegister+0xa4>)
  19065. 80086c8: 697b ldr r3, [r7, #20]
  19066. 80086ca: f8c2 3200 str.w r3, [r2, #512] @ 0x200
  19067. tickstart = HAL_GetTick();
  19068. 80086ce: f7fc fcb9 bl 8005044 <HAL_GetTick>
  19069. 80086d2: 6138 str r0, [r7, #16]
  19070. /* Wait for the Busy flag */
  19071. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19072. 80086d4: e009 b.n 80086ea <HAL_ETH_WritePHYRegister+0x8a>
  19073. {
  19074. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  19075. 80086d6: f7fc fcb5 bl 8005044 <HAL_GetTick>
  19076. 80086da: 4602 mov r2, r0
  19077. 80086dc: 693b ldr r3, [r7, #16]
  19078. 80086de: 1ad3 subs r3, r2, r3
  19079. 80086e0: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  19080. 80086e4: d901 bls.n 80086ea <HAL_ETH_WritePHYRegister+0x8a>
  19081. {
  19082. return HAL_ERROR;
  19083. 80086e6: 2301 movs r3, #1
  19084. 80086e8: e008 b.n 80086fc <HAL_ETH_WritePHYRegister+0x9c>
  19085. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19086. 80086ea: 68fb ldr r3, [r7, #12]
  19087. 80086ec: 681b ldr r3, [r3, #0]
  19088. 80086ee: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19089. 80086f2: f003 0301 and.w r3, r3, #1
  19090. 80086f6: 2b00 cmp r3, #0
  19091. 80086f8: d1ed bne.n 80086d6 <HAL_ETH_WritePHYRegister+0x76>
  19092. }
  19093. }
  19094. return HAL_OK;
  19095. 80086fa: 2300 movs r3, #0
  19096. }
  19097. 80086fc: 4618 mov r0, r3
  19098. 80086fe: 3718 adds r7, #24
  19099. 8008700: 46bd mov sp, r7
  19100. 8008702: bd80 pop {r7, pc}
  19101. 8008704: 40028000 .word 0x40028000
  19102. 08008708 <HAL_ETH_GetMACConfig>:
  19103. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold
  19104. * the configuration of the MAC.
  19105. * @retval HAL Status
  19106. */
  19107. HAL_StatusTypeDef HAL_ETH_GetMACConfig(const ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  19108. {
  19109. 8008708: b480 push {r7}
  19110. 800870a: b083 sub sp, #12
  19111. 800870c: af00 add r7, sp, #0
  19112. 800870e: 6078 str r0, [r7, #4]
  19113. 8008710: 6039 str r1, [r7, #0]
  19114. if (macconf == NULL)
  19115. 8008712: 683b ldr r3, [r7, #0]
  19116. 8008714: 2b00 cmp r3, #0
  19117. 8008716: d101 bne.n 800871c <HAL_ETH_GetMACConfig+0x14>
  19118. {
  19119. return HAL_ERROR;
  19120. 8008718: 2301 movs r3, #1
  19121. 800871a: e1c3 b.n 8008aa4 <HAL_ETH_GetMACConfig+0x39c>
  19122. }
  19123. /* Get MAC parameters */
  19124. macconf->PreambleLength = READ_BIT(heth->Instance->MACCR, ETH_MACCR_PRELEN);
  19125. 800871c: 687b ldr r3, [r7, #4]
  19126. 800871e: 681b ldr r3, [r3, #0]
  19127. 8008720: 681b ldr r3, [r3, #0]
  19128. 8008722: f003 020c and.w r2, r3, #12
  19129. 8008726: 683b ldr r3, [r7, #0]
  19130. 8008728: 62da str r2, [r3, #44] @ 0x2c
  19131. macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE;
  19132. 800872a: 687b ldr r3, [r7, #4]
  19133. 800872c: 681b ldr r3, [r3, #0]
  19134. 800872e: 681b ldr r3, [r3, #0]
  19135. 8008730: f003 0310 and.w r3, r3, #16
  19136. 8008734: 2b00 cmp r3, #0
  19137. 8008736: bf14 ite ne
  19138. 8008738: 2301 movne r3, #1
  19139. 800873a: 2300 moveq r3, #0
  19140. 800873c: b2db uxtb r3, r3
  19141. 800873e: 461a mov r2, r3
  19142. 8008740: 683b ldr r3, [r7, #0]
  19143. 8008742: f883 2028 strb.w r2, [r3, #40] @ 0x28
  19144. macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL);
  19145. 8008746: 687b ldr r3, [r7, #4]
  19146. 8008748: 681b ldr r3, [r3, #0]
  19147. 800874a: 681b ldr r3, [r3, #0]
  19148. 800874c: f003 0260 and.w r2, r3, #96 @ 0x60
  19149. 8008750: 683b ldr r3, [r7, #0]
  19150. 8008752: 625a str r2, [r3, #36] @ 0x24
  19151. macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DR) >> 8) == 0U) ? ENABLE : DISABLE;
  19152. 8008754: 687b ldr r3, [r7, #4]
  19153. 8008756: 681b ldr r3, [r3, #0]
  19154. 8008758: 681b ldr r3, [r3, #0]
  19155. 800875a: f403 7380 and.w r3, r3, #256 @ 0x100
  19156. 800875e: 2b00 cmp r3, #0
  19157. 8008760: bf0c ite eq
  19158. 8008762: 2301 moveq r3, #1
  19159. 8008764: 2300 movne r3, #0
  19160. 8008766: b2db uxtb r3, r3
  19161. 8008768: 461a mov r2, r3
  19162. 800876a: 683b ldr r3, [r7, #0]
  19163. 800876c: f883 2020 strb.w r2, [r3, #32]
  19164. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  19165. 8008770: 687b ldr r3, [r7, #4]
  19166. 8008772: 681b ldr r3, [r3, #0]
  19167. 8008774: 681b ldr r3, [r3, #0]
  19168. 8008776: f403 7300 and.w r3, r3, #512 @ 0x200
  19169. ? ENABLE : DISABLE;
  19170. 800877a: 2b00 cmp r3, #0
  19171. 800877c: bf14 ite ne
  19172. 800877e: 2301 movne r3, #1
  19173. 8008780: 2300 moveq r3, #0
  19174. 8008782: b2db uxtb r3, r3
  19175. 8008784: 461a mov r2, r3
  19176. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  19177. 8008786: 683b ldr r3, [r7, #0]
  19178. 8008788: 77da strb r2, [r3, #31]
  19179. macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DO) >> 10) == 0U) ? ENABLE : DISABLE;
  19180. 800878a: 687b ldr r3, [r7, #4]
  19181. 800878c: 681b ldr r3, [r3, #0]
  19182. 800878e: 681b ldr r3, [r3, #0]
  19183. 8008790: f403 6380 and.w r3, r3, #1024 @ 0x400
  19184. 8008794: 2b00 cmp r3, #0
  19185. 8008796: bf0c ite eq
  19186. 8008798: 2301 moveq r3, #1
  19187. 800879a: 2300 movne r3, #0
  19188. 800879c: b2db uxtb r3, r3
  19189. 800879e: 461a mov r2, r3
  19190. 80087a0: 683b ldr r3, [r7, #0]
  19191. 80087a2: 779a strb r2, [r3, #30]
  19192. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  19193. 80087a4: 687b ldr r3, [r7, #4]
  19194. 80087a6: 681b ldr r3, [r3, #0]
  19195. 80087a8: 681b ldr r3, [r3, #0]
  19196. ETH_MACCR_ECRSFD) >> 11) > 0U) ? ENABLE : DISABLE;
  19197. 80087aa: f403 6300 and.w r3, r3, #2048 @ 0x800
  19198. 80087ae: 2b00 cmp r3, #0
  19199. 80087b0: bf14 ite ne
  19200. 80087b2: 2301 movne r3, #1
  19201. 80087b4: 2300 moveq r3, #0
  19202. 80087b6: b2db uxtb r3, r3
  19203. 80087b8: 461a mov r2, r3
  19204. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  19205. 80087ba: 683b ldr r3, [r7, #0]
  19206. 80087bc: 775a strb r2, [r3, #29]
  19207. macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE;
  19208. 80087be: 687b ldr r3, [r7, #4]
  19209. 80087c0: 681b ldr r3, [r3, #0]
  19210. 80087c2: 681b ldr r3, [r3, #0]
  19211. 80087c4: f403 5380 and.w r3, r3, #4096 @ 0x1000
  19212. 80087c8: 2b00 cmp r3, #0
  19213. 80087ca: bf14 ite ne
  19214. 80087cc: 2301 movne r3, #1
  19215. 80087ce: 2300 moveq r3, #0
  19216. 80087d0: b2db uxtb r3, r3
  19217. 80087d2: 461a mov r2, r3
  19218. 80087d4: 683b ldr r3, [r7, #0]
  19219. 80087d6: 771a strb r2, [r3, #28]
  19220. macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM);
  19221. 80087d8: 687b ldr r3, [r7, #4]
  19222. 80087da: 681b ldr r3, [r3, #0]
  19223. 80087dc: 681b ldr r3, [r3, #0]
  19224. 80087de: f403 5200 and.w r2, r3, #8192 @ 0x2000
  19225. 80087e2: 683b ldr r3, [r7, #0]
  19226. 80087e4: 619a str r2, [r3, #24]
  19227. macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES);
  19228. 80087e6: 687b ldr r3, [r7, #4]
  19229. 80087e8: 681b ldr r3, [r3, #0]
  19230. 80087ea: 681b ldr r3, [r3, #0]
  19231. 80087ec: f403 4280 and.w r2, r3, #16384 @ 0x4000
  19232. 80087f0: 683b ldr r3, [r7, #0]
  19233. 80087f2: 615a str r2, [r3, #20]
  19234. macconf->JumboPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JE) >> 16) > 0U) ? ENABLE : DISABLE;
  19235. 80087f4: 687b ldr r3, [r7, #4]
  19236. 80087f6: 681b ldr r3, [r3, #0]
  19237. 80087f8: 681b ldr r3, [r3, #0]
  19238. 80087fa: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19239. 80087fe: 2b00 cmp r3, #0
  19240. 8008800: bf14 ite ne
  19241. 8008802: 2301 movne r3, #1
  19242. 8008804: 2300 moveq r3, #0
  19243. 8008806: b2db uxtb r3, r3
  19244. 8008808: 461a mov r2, r3
  19245. 800880a: 683b ldr r3, [r7, #0]
  19246. 800880c: 749a strb r2, [r3, #18]
  19247. macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 17) == 0U) ? ENABLE : DISABLE;
  19248. 800880e: 687b ldr r3, [r7, #4]
  19249. 8008810: 681b ldr r3, [r3, #0]
  19250. 8008812: 681b ldr r3, [r3, #0]
  19251. 8008814: f403 3300 and.w r3, r3, #131072 @ 0x20000
  19252. 8008818: 2b00 cmp r3, #0
  19253. 800881a: bf0c ite eq
  19254. 800881c: 2301 moveq r3, #1
  19255. 800881e: 2300 movne r3, #0
  19256. 8008820: b2db uxtb r3, r3
  19257. 8008822: 461a mov r2, r3
  19258. 8008824: 683b ldr r3, [r7, #0]
  19259. 8008826: 745a strb r2, [r3, #17]
  19260. macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 19) == 0U) ? ENABLE : DISABLE;
  19261. 8008828: 687b ldr r3, [r7, #4]
  19262. 800882a: 681b ldr r3, [r3, #0]
  19263. 800882c: 681b ldr r3, [r3, #0]
  19264. 800882e: f403 2300 and.w r3, r3, #524288 @ 0x80000
  19265. 8008832: 2b00 cmp r3, #0
  19266. 8008834: bf0c ite eq
  19267. 8008836: 2301 moveq r3, #1
  19268. 8008838: 2300 movne r3, #0
  19269. 800883a: b2db uxtb r3, r3
  19270. 800883c: 461a mov r2, r3
  19271. 800883e: 683b ldr r3, [r7, #0]
  19272. 8008840: 741a strb r2, [r3, #16]
  19273. macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ACS) >> 20) > 0U) ? ENABLE : DISABLE;
  19274. 8008842: 687b ldr r3, [r7, #4]
  19275. 8008844: 681b ldr r3, [r3, #0]
  19276. 8008846: 681b ldr r3, [r3, #0]
  19277. 8008848: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  19278. 800884c: 2b00 cmp r3, #0
  19279. 800884e: bf14 ite ne
  19280. 8008850: 2301 movne r3, #1
  19281. 8008852: 2300 moveq r3, #0
  19282. 8008854: b2db uxtb r3, r3
  19283. 8008856: 461a mov r2, r3
  19284. 8008858: 683b ldr r3, [r7, #0]
  19285. 800885a: 73da strb r2, [r3, #15]
  19286. macconf->CRCStripTypePacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CST) >> 21) > 0U) ? ENABLE : DISABLE;
  19287. 800885c: 687b ldr r3, [r7, #4]
  19288. 800885e: 681b ldr r3, [r3, #0]
  19289. 8008860: 681b ldr r3, [r3, #0]
  19290. 8008862: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  19291. 8008866: 2b00 cmp r3, #0
  19292. 8008868: bf14 ite ne
  19293. 800886a: 2301 movne r3, #1
  19294. 800886c: 2300 moveq r3, #0
  19295. 800886e: b2db uxtb r3, r3
  19296. 8008870: 461a mov r2, r3
  19297. 8008872: 683b ldr r3, [r7, #0]
  19298. 8008874: 739a strb r2, [r3, #14]
  19299. macconf->Support2KPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_S2KP) >> 22) > 0U) ? ENABLE : DISABLE;
  19300. 8008876: 687b ldr r3, [r7, #4]
  19301. 8008878: 681b ldr r3, [r3, #0]
  19302. 800887a: 681b ldr r3, [r3, #0]
  19303. 800887c: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  19304. 8008880: 2b00 cmp r3, #0
  19305. 8008882: bf14 ite ne
  19306. 8008884: 2301 movne r3, #1
  19307. 8008886: 2300 moveq r3, #0
  19308. 8008888: b2db uxtb r3, r3
  19309. 800888a: 461a mov r2, r3
  19310. 800888c: 683b ldr r3, [r7, #0]
  19311. 800888e: 735a strb r2, [r3, #13]
  19312. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  19313. 8008890: 687b ldr r3, [r7, #4]
  19314. 8008892: 681b ldr r3, [r3, #0]
  19315. 8008894: 681b ldr r3, [r3, #0]
  19316. ETH_MACCR_GPSLCE) >> 23) > 0U) ? ENABLE : DISABLE;
  19317. 8008896: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  19318. 800889a: 2b00 cmp r3, #0
  19319. 800889c: bf14 ite ne
  19320. 800889e: 2301 movne r3, #1
  19321. 80088a0: 2300 moveq r3, #0
  19322. 80088a2: b2db uxtb r3, r3
  19323. 80088a4: 461a mov r2, r3
  19324. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  19325. 80088a6: 683b ldr r3, [r7, #0]
  19326. 80088a8: 731a strb r2, [r3, #12]
  19327. macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPG);
  19328. 80088aa: 687b ldr r3, [r7, #4]
  19329. 80088ac: 681b ldr r3, [r3, #0]
  19330. 80088ae: 681b ldr r3, [r3, #0]
  19331. 80088b0: f003 62e0 and.w r2, r3, #117440512 @ 0x7000000
  19332. 80088b4: 683b ldr r3, [r7, #0]
  19333. 80088b6: 609a str r2, [r3, #8]
  19334. macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPC) >> 27) > 0U) ? ENABLE : DISABLE;
  19335. 80088b8: 687b ldr r3, [r7, #4]
  19336. 80088ba: 681b ldr r3, [r3, #0]
  19337. 80088bc: 681b ldr r3, [r3, #0]
  19338. 80088be: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  19339. 80088c2: 2b00 cmp r3, #0
  19340. 80088c4: bf14 ite ne
  19341. 80088c6: 2301 movne r3, #1
  19342. 80088c8: 2300 moveq r3, #0
  19343. 80088ca: b2db uxtb r3, r3
  19344. 80088cc: 461a mov r2, r3
  19345. 80088ce: 683b ldr r3, [r7, #0]
  19346. 80088d0: 711a strb r2, [r3, #4]
  19347. macconf->SourceAddrControl = READ_BIT(heth->Instance->MACCR, ETH_MACCR_SARC);
  19348. 80088d2: 687b ldr r3, [r7, #4]
  19349. 80088d4: 681b ldr r3, [r3, #0]
  19350. 80088d6: 681b ldr r3, [r3, #0]
  19351. 80088d8: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000
  19352. 80088dc: 683b ldr r3, [r7, #0]
  19353. 80088de: 601a str r2, [r3, #0]
  19354. macconf->GiantPacketSizeLimit = READ_BIT(heth->Instance->MACECR, ETH_MACECR_GPSL);
  19355. 80088e0: 687b ldr r3, [r7, #4]
  19356. 80088e2: 681b ldr r3, [r3, #0]
  19357. 80088e4: 685b ldr r3, [r3, #4]
  19358. 80088e6: f3c3 020d ubfx r2, r3, #0, #14
  19359. 80088ea: 683b ldr r3, [r7, #0]
  19360. 80088ec: 635a str r2, [r3, #52] @ 0x34
  19361. macconf->CRCCheckingRxPackets = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_DCRCC) >> 16) == 0U) ? ENABLE : DISABLE;
  19362. 80088ee: 687b ldr r3, [r7, #4]
  19363. 80088f0: 681b ldr r3, [r3, #0]
  19364. 80088f2: 685b ldr r3, [r3, #4]
  19365. 80088f4: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19366. 80088f8: 2b00 cmp r3, #0
  19367. 80088fa: bf0c ite eq
  19368. 80088fc: 2301 moveq r3, #1
  19369. 80088fe: 2300 movne r3, #0
  19370. 8008900: b2db uxtb r3, r3
  19371. 8008902: 461a mov r2, r3
  19372. 8008904: 683b ldr r3, [r7, #0]
  19373. 8008906: f883 2032 strb.w r2, [r3, #50] @ 0x32
  19374. macconf->SlowProtocolDetect = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_SPEN) >> 17) > 0U) ? ENABLE : DISABLE;
  19375. 800890a: 687b ldr r3, [r7, #4]
  19376. 800890c: 681b ldr r3, [r3, #0]
  19377. 800890e: 685b ldr r3, [r3, #4]
  19378. 8008910: f403 3300 and.w r3, r3, #131072 @ 0x20000
  19379. 8008914: 2b00 cmp r3, #0
  19380. 8008916: bf14 ite ne
  19381. 8008918: 2301 movne r3, #1
  19382. 800891a: 2300 moveq r3, #0
  19383. 800891c: b2db uxtb r3, r3
  19384. 800891e: 461a mov r2, r3
  19385. 8008920: 683b ldr r3, [r7, #0]
  19386. 8008922: f883 2031 strb.w r2, [r3, #49] @ 0x31
  19387. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  19388. 8008926: 687b ldr r3, [r7, #4]
  19389. 8008928: 681b ldr r3, [r3, #0]
  19390. 800892a: 685b ldr r3, [r3, #4]
  19391. ETH_MACECR_USP) >> 18) > 0U) ? ENABLE : DISABLE;
  19392. 800892c: f403 2380 and.w r3, r3, #262144 @ 0x40000
  19393. 8008930: 2b00 cmp r3, #0
  19394. 8008932: bf14 ite ne
  19395. 8008934: 2301 movne r3, #1
  19396. 8008936: 2300 moveq r3, #0
  19397. 8008938: b2db uxtb r3, r3
  19398. 800893a: 461a mov r2, r3
  19399. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  19400. 800893c: 683b ldr r3, [r7, #0]
  19401. 800893e: f883 2030 strb.w r2, [r3, #48] @ 0x30
  19402. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  19403. 8008942: 687b ldr r3, [r7, #4]
  19404. 8008944: 681b ldr r3, [r3, #0]
  19405. 8008946: 685b ldr r3, [r3, #4]
  19406. 8008948: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  19407. ? ENABLE : DISABLE;
  19408. 800894c: 2b00 cmp r3, #0
  19409. 800894e: bf14 ite ne
  19410. 8008950: 2301 movne r3, #1
  19411. 8008952: 2300 moveq r3, #0
  19412. 8008954: b2db uxtb r3, r3
  19413. 8008956: 461a mov r2, r3
  19414. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  19415. 8008958: 683b ldr r3, [r7, #0]
  19416. 800895a: f883 2038 strb.w r2, [r3, #56] @ 0x38
  19417. macconf->ExtendedInterPacketGapVal = READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPG) >> 25;
  19418. 800895e: 687b ldr r3, [r7, #4]
  19419. 8008960: 681b ldr r3, [r3, #0]
  19420. 8008962: 685b ldr r3, [r3, #4]
  19421. 8008964: 0e5b lsrs r3, r3, #25
  19422. 8008966: f003 021f and.w r2, r3, #31
  19423. 800896a: 683b ldr r3, [r7, #0]
  19424. 800896c: 63da str r2, [r3, #60] @ 0x3c
  19425. macconf->ProgrammableWatchdog = ((READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_PWE) >> 8) > 0U) ? ENABLE : DISABLE;
  19426. 800896e: 687b ldr r3, [r7, #4]
  19427. 8008970: 681b ldr r3, [r3, #0]
  19428. 8008972: 68db ldr r3, [r3, #12]
  19429. 8008974: f403 7380 and.w r3, r3, #256 @ 0x100
  19430. 8008978: 2b00 cmp r3, #0
  19431. 800897a: bf14 ite ne
  19432. 800897c: 2301 movne r3, #1
  19433. 800897e: 2300 moveq r3, #0
  19434. 8008980: b2db uxtb r3, r3
  19435. 8008982: 461a mov r2, r3
  19436. 8008984: 683b ldr r3, [r7, #0]
  19437. 8008986: f883 2040 strb.w r2, [r3, #64] @ 0x40
  19438. macconf->WatchdogTimeout = READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_WTO);
  19439. 800898a: 687b ldr r3, [r7, #4]
  19440. 800898c: 681b ldr r3, [r3, #0]
  19441. 800898e: 68db ldr r3, [r3, #12]
  19442. 8008990: f003 020f and.w r2, r3, #15
  19443. 8008994: 683b ldr r3, [r7, #0]
  19444. 8008996: 645a str r2, [r3, #68] @ 0x44
  19445. macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_TFE) >> 1) > 0U) ? ENABLE : DISABLE;
  19446. 8008998: 687b ldr r3, [r7, #4]
  19447. 800899a: 681b ldr r3, [r3, #0]
  19448. 800899c: 6f1b ldr r3, [r3, #112] @ 0x70
  19449. 800899e: f003 0302 and.w r3, r3, #2
  19450. 80089a2: 2b00 cmp r3, #0
  19451. 80089a4: bf14 ite ne
  19452. 80089a6: 2301 movne r3, #1
  19453. 80089a8: 2300 moveq r3, #0
  19454. 80089aa: b2db uxtb r3, r3
  19455. 80089ac: 461a mov r2, r3
  19456. 80089ae: 683b ldr r3, [r7, #0]
  19457. 80089b0: f883 2054 strb.w r2, [r3, #84] @ 0x54
  19458. macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_DZPQ) >> 7) == 0U) ? ENABLE : DISABLE;
  19459. 80089b4: 687b ldr r3, [r7, #4]
  19460. 80089b6: 681b ldr r3, [r3, #0]
  19461. 80089b8: 6f1b ldr r3, [r3, #112] @ 0x70
  19462. 80089ba: f003 0380 and.w r3, r3, #128 @ 0x80
  19463. 80089be: 2b00 cmp r3, #0
  19464. 80089c0: bf0c ite eq
  19465. 80089c2: 2301 moveq r3, #1
  19466. 80089c4: 2300 movne r3, #0
  19467. 80089c6: b2db uxtb r3, r3
  19468. 80089c8: 461a mov r2, r3
  19469. 80089ca: 683b ldr r3, [r7, #0]
  19470. 80089cc: f883 204c strb.w r2, [r3, #76] @ 0x4c
  19471. macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PLT);
  19472. 80089d0: 687b ldr r3, [r7, #4]
  19473. 80089d2: 681b ldr r3, [r3, #0]
  19474. 80089d4: 6f1b ldr r3, [r3, #112] @ 0x70
  19475. 80089d6: f003 0270 and.w r2, r3, #112 @ 0x70
  19476. 80089da: 683b ldr r3, [r7, #0]
  19477. 80089dc: 651a str r2, [r3, #80] @ 0x50
  19478. macconf->PauseTime = (READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PT) >> 16);
  19479. 80089de: 687b ldr r3, [r7, #4]
  19480. 80089e0: 681b ldr r3, [r3, #0]
  19481. 80089e2: 6f1b ldr r3, [r3, #112] @ 0x70
  19482. 80089e4: 0c1b lsrs r3, r3, #16
  19483. 80089e6: b29a uxth r2, r3
  19484. 80089e8: 683b ldr r3, [r7, #0]
  19485. 80089ea: 649a str r2, [r3, #72] @ 0x48
  19486. macconf->ReceiveFlowControl = (READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_RFE) > 0U) ? ENABLE : DISABLE;
  19487. 80089ec: 687b ldr r3, [r7, #4]
  19488. 80089ee: 681b ldr r3, [r3, #0]
  19489. 80089f0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  19490. 80089f4: f003 0301 and.w r3, r3, #1
  19491. 80089f8: 2b00 cmp r3, #0
  19492. 80089fa: bf14 ite ne
  19493. 80089fc: 2301 movne r3, #1
  19494. 80089fe: 2300 moveq r3, #0
  19495. 8008a00: b2db uxtb r3, r3
  19496. 8008a02: 461a mov r2, r3
  19497. 8008a04: 683b ldr r3, [r7, #0]
  19498. 8008a06: f883 2056 strb.w r2, [r3, #86] @ 0x56
  19499. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  19500. 8008a0a: 687b ldr r3, [r7, #4]
  19501. 8008a0c: 681b ldr r3, [r3, #0]
  19502. 8008a0e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  19503. 8008a12: f003 0302 and.w r3, r3, #2
  19504. ? ENABLE : DISABLE;
  19505. 8008a16: 2b00 cmp r3, #0
  19506. 8008a18: bf14 ite ne
  19507. 8008a1a: 2301 movne r3, #1
  19508. 8008a1c: 2300 moveq r3, #0
  19509. 8008a1e: b2db uxtb r3, r3
  19510. 8008a20: 461a mov r2, r3
  19511. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  19512. 8008a22: 683b ldr r3, [r7, #0]
  19513. 8008a24: f883 2055 strb.w r2, [r3, #85] @ 0x55
  19514. macconf->TransmitQueueMode = READ_BIT(heth->Instance->MTLTQOMR, (ETH_MTLTQOMR_TTC | ETH_MTLTQOMR_TSF));
  19515. 8008a28: 687b ldr r3, [r7, #4]
  19516. 8008a2a: 681b ldr r3, [r3, #0]
  19517. 8008a2c: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  19518. 8008a30: f003 0272 and.w r2, r3, #114 @ 0x72
  19519. 8008a34: 683b ldr r3, [r7, #0]
  19520. 8008a36: 659a str r2, [r3, #88] @ 0x58
  19521. macconf->ReceiveQueueMode = READ_BIT(heth->Instance->MTLRQOMR, (ETH_MTLRQOMR_RTC | ETH_MTLRQOMR_RSF));
  19522. 8008a38: 687b ldr r3, [r7, #4]
  19523. 8008a3a: 681b ldr r3, [r3, #0]
  19524. 8008a3c: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19525. 8008a40: f003 0223 and.w r2, r3, #35 @ 0x23
  19526. 8008a44: 683b ldr r3, [r7, #0]
  19527. 8008a46: 65da str r2, [r3, #92] @ 0x5c
  19528. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19529. 8008a48: 687b ldr r3, [r7, #4]
  19530. 8008a4a: 681b ldr r3, [r3, #0]
  19531. 8008a4c: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19532. ETH_MTLRQOMR_FUP) >> 3) > 0U) ? ENABLE : DISABLE;
  19533. 8008a50: f003 0308 and.w r3, r3, #8
  19534. 8008a54: 2b00 cmp r3, #0
  19535. 8008a56: bf14 ite ne
  19536. 8008a58: 2301 movne r3, #1
  19537. 8008a5a: 2300 moveq r3, #0
  19538. 8008a5c: b2db uxtb r3, r3
  19539. 8008a5e: 461a mov r2, r3
  19540. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19541. 8008a60: 683b ldr r3, [r7, #0]
  19542. 8008a62: f883 2062 strb.w r2, [r3, #98] @ 0x62
  19543. macconf->ForwardRxErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_FEP) >> 4) > 0U) ? ENABLE : DISABLE;
  19544. 8008a66: 687b ldr r3, [r7, #4]
  19545. 8008a68: 681b ldr r3, [r3, #0]
  19546. 8008a6a: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19547. 8008a6e: f003 0310 and.w r3, r3, #16
  19548. 8008a72: 2b00 cmp r3, #0
  19549. 8008a74: bf14 ite ne
  19550. 8008a76: 2301 movne r3, #1
  19551. 8008a78: 2300 moveq r3, #0
  19552. 8008a7a: b2db uxtb r3, r3
  19553. 8008a7c: 461a mov r2, r3
  19554. 8008a7e: 683b ldr r3, [r7, #0]
  19555. 8008a80: f883 2061 strb.w r2, [r3, #97] @ 0x61
  19556. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19557. 8008a84: 687b ldr r3, [r7, #4]
  19558. 8008a86: 681b ldr r3, [r3, #0]
  19559. 8008a88: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19560. ETH_MTLRQOMR_DISTCPEF) >> 6) == 0U) ? ENABLE : DISABLE;
  19561. 8008a8c: f003 0340 and.w r3, r3, #64 @ 0x40
  19562. 8008a90: 2b00 cmp r3, #0
  19563. 8008a92: bf0c ite eq
  19564. 8008a94: 2301 moveq r3, #1
  19565. 8008a96: 2300 movne r3, #0
  19566. 8008a98: b2db uxtb r3, r3
  19567. 8008a9a: 461a mov r2, r3
  19568. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19569. 8008a9c: 683b ldr r3, [r7, #0]
  19570. 8008a9e: f883 2060 strb.w r2, [r3, #96] @ 0x60
  19571. return HAL_OK;
  19572. 8008aa2: 2300 movs r3, #0
  19573. }
  19574. 8008aa4: 4618 mov r0, r3
  19575. 8008aa6: 370c adds r7, #12
  19576. 8008aa8: 46bd mov sp, r7
  19577. 8008aaa: f85d 7b04 ldr.w r7, [sp], #4
  19578. 8008aae: 4770 bx lr
  19579. 08008ab0 <HAL_ETH_SetMACConfig>:
  19580. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains
  19581. * the configuration of the MAC.
  19582. * @retval HAL status
  19583. */
  19584. HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  19585. {
  19586. 8008ab0: b580 push {r7, lr}
  19587. 8008ab2: b082 sub sp, #8
  19588. 8008ab4: af00 add r7, sp, #0
  19589. 8008ab6: 6078 str r0, [r7, #4]
  19590. 8008ab8: 6039 str r1, [r7, #0]
  19591. if (macconf == NULL)
  19592. 8008aba: 683b ldr r3, [r7, #0]
  19593. 8008abc: 2b00 cmp r3, #0
  19594. 8008abe: d101 bne.n 8008ac4 <HAL_ETH_SetMACConfig+0x14>
  19595. {
  19596. return HAL_ERROR;
  19597. 8008ac0: 2301 movs r3, #1
  19598. 8008ac2: e00b b.n 8008adc <HAL_ETH_SetMACConfig+0x2c>
  19599. }
  19600. if (heth->gState == HAL_ETH_STATE_READY)
  19601. 8008ac4: 687b ldr r3, [r7, #4]
  19602. 8008ac6: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  19603. 8008aca: 2b10 cmp r3, #16
  19604. 8008acc: d105 bne.n 8008ada <HAL_ETH_SetMACConfig+0x2a>
  19605. {
  19606. ETH_SetMACConfig(heth, macconf);
  19607. 8008ace: 6839 ldr r1, [r7, #0]
  19608. 8008ad0: 6878 ldr r0, [r7, #4]
  19609. 8008ad2: f000 f865 bl 8008ba0 <ETH_SetMACConfig>
  19610. return HAL_OK;
  19611. 8008ad6: 2300 movs r3, #0
  19612. 8008ad8: e000 b.n 8008adc <HAL_ETH_SetMACConfig+0x2c>
  19613. }
  19614. else
  19615. {
  19616. return HAL_ERROR;
  19617. 8008ada: 2301 movs r3, #1
  19618. }
  19619. }
  19620. 8008adc: 4618 mov r0, r3
  19621. 8008ade: 3708 adds r7, #8
  19622. 8008ae0: 46bd mov sp, r7
  19623. 8008ae2: bd80 pop {r7, pc}
  19624. 08008ae4 <HAL_ETH_SetMDIOClockRange>:
  19625. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19626. * the configuration information for ETHERNET module
  19627. * @retval None
  19628. */
  19629. void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth)
  19630. {
  19631. 8008ae4: b580 push {r7, lr}
  19632. 8008ae6: b084 sub sp, #16
  19633. 8008ae8: af00 add r7, sp, #0
  19634. 8008aea: 6078 str r0, [r7, #4]
  19635. uint32_t hclk;
  19636. uint32_t tmpreg;
  19637. /* Get the ETHERNET MACMDIOAR value */
  19638. tmpreg = (heth->Instance)->MACMDIOAR;
  19639. 8008aec: 687b ldr r3, [r7, #4]
  19640. 8008aee: 681b ldr r3, [r3, #0]
  19641. 8008af0: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19642. 8008af4: 60fb str r3, [r7, #12]
  19643. /* Clear CSR Clock Range bits */
  19644. tmpreg &= ~ETH_MACMDIOAR_CR;
  19645. 8008af6: 68fb ldr r3, [r7, #12]
  19646. 8008af8: f423 6370 bic.w r3, r3, #3840 @ 0xf00
  19647. 8008afc: 60fb str r3, [r7, #12]
  19648. /* Get hclk frequency value */
  19649. hclk = HAL_RCC_GetHCLKFreq();
  19650. 8008afe: f001 ff5f bl 800a9c0 <HAL_RCC_GetHCLKFreq>
  19651. 8008b02: 60b8 str r0, [r7, #8]
  19652. /* Set CR bits depending on hclk value */
  19653. if (hclk < 35000000U)
  19654. 8008b04: 68bb ldr r3, [r7, #8]
  19655. 8008b06: 4a1a ldr r2, [pc, #104] @ (8008b70 <HAL_ETH_SetMDIOClockRange+0x8c>)
  19656. 8008b08: 4293 cmp r3, r2
  19657. 8008b0a: d804 bhi.n 8008b16 <HAL_ETH_SetMDIOClockRange+0x32>
  19658. {
  19659. /* CSR Clock Range between 0-35 MHz */
  19660. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV16;
  19661. 8008b0c: 68fb ldr r3, [r7, #12]
  19662. 8008b0e: f443 7300 orr.w r3, r3, #512 @ 0x200
  19663. 8008b12: 60fb str r3, [r7, #12]
  19664. 8008b14: e022 b.n 8008b5c <HAL_ETH_SetMDIOClockRange+0x78>
  19665. }
  19666. else if (hclk < 60000000U)
  19667. 8008b16: 68bb ldr r3, [r7, #8]
  19668. 8008b18: 4a16 ldr r2, [pc, #88] @ (8008b74 <HAL_ETH_SetMDIOClockRange+0x90>)
  19669. 8008b1a: 4293 cmp r3, r2
  19670. 8008b1c: d204 bcs.n 8008b28 <HAL_ETH_SetMDIOClockRange+0x44>
  19671. {
  19672. /* CSR Clock Range between 35-60 MHz */
  19673. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV26;
  19674. 8008b1e: 68fb ldr r3, [r7, #12]
  19675. 8008b20: f443 7340 orr.w r3, r3, #768 @ 0x300
  19676. 8008b24: 60fb str r3, [r7, #12]
  19677. 8008b26: e019 b.n 8008b5c <HAL_ETH_SetMDIOClockRange+0x78>
  19678. }
  19679. else if (hclk < 100000000U)
  19680. 8008b28: 68bb ldr r3, [r7, #8]
  19681. 8008b2a: 4a13 ldr r2, [pc, #76] @ (8008b78 <HAL_ETH_SetMDIOClockRange+0x94>)
  19682. 8008b2c: 4293 cmp r3, r2
  19683. 8008b2e: d915 bls.n 8008b5c <HAL_ETH_SetMDIOClockRange+0x78>
  19684. {
  19685. /* CSR Clock Range between 60-100 MHz */
  19686. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42;
  19687. }
  19688. else if (hclk < 150000000U)
  19689. 8008b30: 68bb ldr r3, [r7, #8]
  19690. 8008b32: 4a12 ldr r2, [pc, #72] @ (8008b7c <HAL_ETH_SetMDIOClockRange+0x98>)
  19691. 8008b34: 4293 cmp r3, r2
  19692. 8008b36: d804 bhi.n 8008b42 <HAL_ETH_SetMDIOClockRange+0x5e>
  19693. {
  19694. /* CSR Clock Range between 100-150 MHz */
  19695. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV62;
  19696. 8008b38: 68fb ldr r3, [r7, #12]
  19697. 8008b3a: f443 7380 orr.w r3, r3, #256 @ 0x100
  19698. 8008b3e: 60fb str r3, [r7, #12]
  19699. 8008b40: e00c b.n 8008b5c <HAL_ETH_SetMDIOClockRange+0x78>
  19700. }
  19701. else if (hclk < 250000000U)
  19702. 8008b42: 68bb ldr r3, [r7, #8]
  19703. 8008b44: 4a0e ldr r2, [pc, #56] @ (8008b80 <HAL_ETH_SetMDIOClockRange+0x9c>)
  19704. 8008b46: 4293 cmp r3, r2
  19705. 8008b48: d804 bhi.n 8008b54 <HAL_ETH_SetMDIOClockRange+0x70>
  19706. {
  19707. /* CSR Clock Range between 150-250 MHz */
  19708. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV102;
  19709. 8008b4a: 68fb ldr r3, [r7, #12]
  19710. 8008b4c: f443 6380 orr.w r3, r3, #1024 @ 0x400
  19711. 8008b50: 60fb str r3, [r7, #12]
  19712. 8008b52: e003 b.n 8008b5c <HAL_ETH_SetMDIOClockRange+0x78>
  19713. }
  19714. else /* (hclk >= 250000000U) */
  19715. {
  19716. /* CSR Clock >= 250 MHz */
  19717. tmpreg |= (uint32_t)(ETH_MACMDIOAR_CR_DIV124);
  19718. 8008b54: 68fb ldr r3, [r7, #12]
  19719. 8008b56: f443 63a0 orr.w r3, r3, #1280 @ 0x500
  19720. 8008b5a: 60fb str r3, [r7, #12]
  19721. }
  19722. /* Configure the CSR Clock Range */
  19723. (heth->Instance)->MACMDIOAR = (uint32_t)tmpreg;
  19724. 8008b5c: 687b ldr r3, [r7, #4]
  19725. 8008b5e: 681b ldr r3, [r3, #0]
  19726. 8008b60: 68fa ldr r2, [r7, #12]
  19727. 8008b62: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  19728. }
  19729. 8008b66: bf00 nop
  19730. 8008b68: 3710 adds r7, #16
  19731. 8008b6a: 46bd mov sp, r7
  19732. 8008b6c: bd80 pop {r7, pc}
  19733. 8008b6e: bf00 nop
  19734. 8008b70: 02160ebf .word 0x02160ebf
  19735. 8008b74: 03938700 .word 0x03938700
  19736. 8008b78: 05f5e0ff .word 0x05f5e0ff
  19737. 8008b7c: 08f0d17f .word 0x08f0d17f
  19738. 8008b80: 0ee6b27f .word 0x0ee6b27f
  19739. 08008b84 <HAL_ETH_GetDMAError>:
  19740. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19741. * the configuration information for ETHERNET module
  19742. * @retval ETH DMA Error Code
  19743. */
  19744. uint32_t HAL_ETH_GetDMAError(const ETH_HandleTypeDef *heth)
  19745. {
  19746. 8008b84: b480 push {r7}
  19747. 8008b86: b083 sub sp, #12
  19748. 8008b88: af00 add r7, sp, #0
  19749. 8008b8a: 6078 str r0, [r7, #4]
  19750. return heth->DMAErrorCode;
  19751. 8008b8c: 687b ldr r3, [r7, #4]
  19752. 8008b8e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  19753. }
  19754. 8008b92: 4618 mov r0, r3
  19755. 8008b94: 370c adds r7, #12
  19756. 8008b96: 46bd mov sp, r7
  19757. 8008b98: f85d 7b04 ldr.w r7, [sp], #4
  19758. 8008b9c: 4770 bx lr
  19759. ...
  19760. 08008ba0 <ETH_SetMACConfig>:
  19761. /** @addtogroup ETH_Private_Functions ETH Private Functions
  19762. * @{
  19763. */
  19764. static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, const ETH_MACConfigTypeDef *macconf)
  19765. {
  19766. 8008ba0: b480 push {r7}
  19767. 8008ba2: b085 sub sp, #20
  19768. 8008ba4: af00 add r7, sp, #0
  19769. 8008ba6: 6078 str r0, [r7, #4]
  19770. 8008ba8: 6039 str r1, [r7, #0]
  19771. uint32_t macregval;
  19772. /*------------------------ MACCR Configuration --------------------*/
  19773. macregval = (macconf->InterPacketGapVal |
  19774. 8008baa: 683b ldr r3, [r7, #0]
  19775. 8008bac: 689a ldr r2, [r3, #8]
  19776. macconf->SourceAddrControl |
  19777. 8008bae: 683b ldr r3, [r7, #0]
  19778. 8008bb0: 681b ldr r3, [r3, #0]
  19779. macregval = (macconf->InterPacketGapVal |
  19780. 8008bb2: 431a orrs r2, r3
  19781. ((uint32_t)macconf->ChecksumOffload << 27) |
  19782. 8008bb4: 683b ldr r3, [r7, #0]
  19783. 8008bb6: 791b ldrb r3, [r3, #4]
  19784. 8008bb8: 06db lsls r3, r3, #27
  19785. macconf->SourceAddrControl |
  19786. 8008bba: 431a orrs r2, r3
  19787. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  19788. 8008bbc: 683b ldr r3, [r7, #0]
  19789. 8008bbe: 7b1b ldrb r3, [r3, #12]
  19790. 8008bc0: 05db lsls r3, r3, #23
  19791. ((uint32_t)macconf->ChecksumOffload << 27) |
  19792. 8008bc2: 431a orrs r2, r3
  19793. ((uint32_t)macconf->Support2KPacket << 22) |
  19794. 8008bc4: 683b ldr r3, [r7, #0]
  19795. 8008bc6: 7b5b ldrb r3, [r3, #13]
  19796. 8008bc8: 059b lsls r3, r3, #22
  19797. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  19798. 8008bca: 431a orrs r2, r3
  19799. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  19800. 8008bcc: 683b ldr r3, [r7, #0]
  19801. 8008bce: 7b9b ldrb r3, [r3, #14]
  19802. 8008bd0: 055b lsls r3, r3, #21
  19803. ((uint32_t)macconf->Support2KPacket << 22) |
  19804. 8008bd2: 431a orrs r2, r3
  19805. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  19806. 8008bd4: 683b ldr r3, [r7, #0]
  19807. 8008bd6: 7bdb ldrb r3, [r3, #15]
  19808. 8008bd8: 051b lsls r3, r3, #20
  19809. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  19810. 8008bda: 4313 orrs r3, r2
  19811. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  19812. 8008bdc: 683a ldr r2, [r7, #0]
  19813. 8008bde: 7c12 ldrb r2, [r2, #16]
  19814. 8008be0: 2a00 cmp r2, #0
  19815. 8008be2: d102 bne.n 8008bea <ETH_SetMACConfig+0x4a>
  19816. 8008be4: f44f 2200 mov.w r2, #524288 @ 0x80000
  19817. 8008be8: e000 b.n 8008bec <ETH_SetMACConfig+0x4c>
  19818. 8008bea: 2200 movs r2, #0
  19819. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  19820. 8008bec: 4313 orrs r3, r2
  19821. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  19822. 8008bee: 683a ldr r2, [r7, #0]
  19823. 8008bf0: 7c52 ldrb r2, [r2, #17]
  19824. 8008bf2: 2a00 cmp r2, #0
  19825. 8008bf4: d102 bne.n 8008bfc <ETH_SetMACConfig+0x5c>
  19826. 8008bf6: f44f 3200 mov.w r2, #131072 @ 0x20000
  19827. 8008bfa: e000 b.n 8008bfe <ETH_SetMACConfig+0x5e>
  19828. 8008bfc: 2200 movs r2, #0
  19829. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  19830. 8008bfe: 431a orrs r2, r3
  19831. ((uint32_t)macconf->JumboPacket << 16) |
  19832. 8008c00: 683b ldr r3, [r7, #0]
  19833. 8008c02: 7c9b ldrb r3, [r3, #18]
  19834. 8008c04: 041b lsls r3, r3, #16
  19835. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  19836. 8008c06: 431a orrs r2, r3
  19837. macconf->Speed |
  19838. 8008c08: 683b ldr r3, [r7, #0]
  19839. 8008c0a: 695b ldr r3, [r3, #20]
  19840. ((uint32_t)macconf->JumboPacket << 16) |
  19841. 8008c0c: 431a orrs r2, r3
  19842. macconf->DuplexMode |
  19843. 8008c0e: 683b ldr r3, [r7, #0]
  19844. 8008c10: 699b ldr r3, [r3, #24]
  19845. macconf->Speed |
  19846. 8008c12: 431a orrs r2, r3
  19847. ((uint32_t)macconf->LoopbackMode << 12) |
  19848. 8008c14: 683b ldr r3, [r7, #0]
  19849. 8008c16: 7f1b ldrb r3, [r3, #28]
  19850. 8008c18: 031b lsls r3, r3, #12
  19851. macconf->DuplexMode |
  19852. 8008c1a: 431a orrs r2, r3
  19853. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  19854. 8008c1c: 683b ldr r3, [r7, #0]
  19855. 8008c1e: 7f5b ldrb r3, [r3, #29]
  19856. 8008c20: 02db lsls r3, r3, #11
  19857. ((uint32_t)macconf->LoopbackMode << 12) |
  19858. 8008c22: 4313 orrs r3, r2
  19859. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  19860. 8008c24: 683a ldr r2, [r7, #0]
  19861. 8008c26: 7f92 ldrb r2, [r2, #30]
  19862. 8008c28: 2a00 cmp r2, #0
  19863. 8008c2a: d102 bne.n 8008c32 <ETH_SetMACConfig+0x92>
  19864. 8008c2c: f44f 6280 mov.w r2, #1024 @ 0x400
  19865. 8008c30: e000 b.n 8008c34 <ETH_SetMACConfig+0x94>
  19866. 8008c32: 2200 movs r2, #0
  19867. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  19868. 8008c34: 431a orrs r2, r3
  19869. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  19870. 8008c36: 683b ldr r3, [r7, #0]
  19871. 8008c38: 7fdb ldrb r3, [r3, #31]
  19872. 8008c3a: 025b lsls r3, r3, #9
  19873. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  19874. 8008c3c: 4313 orrs r3, r2
  19875. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  19876. 8008c3e: 683a ldr r2, [r7, #0]
  19877. 8008c40: f892 2020 ldrb.w r2, [r2, #32]
  19878. 8008c44: 2a00 cmp r2, #0
  19879. 8008c46: d102 bne.n 8008c4e <ETH_SetMACConfig+0xae>
  19880. 8008c48: f44f 7280 mov.w r2, #256 @ 0x100
  19881. 8008c4c: e000 b.n 8008c50 <ETH_SetMACConfig+0xb0>
  19882. 8008c4e: 2200 movs r2, #0
  19883. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  19884. 8008c50: 431a orrs r2, r3
  19885. macconf->BackOffLimit |
  19886. 8008c52: 683b ldr r3, [r7, #0]
  19887. 8008c54: 6a5b ldr r3, [r3, #36] @ 0x24
  19888. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  19889. 8008c56: 431a orrs r2, r3
  19890. ((uint32_t)macconf->DeferralCheck << 4) |
  19891. 8008c58: 683b ldr r3, [r7, #0]
  19892. 8008c5a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  19893. 8008c5e: 011b lsls r3, r3, #4
  19894. macconf->BackOffLimit |
  19895. 8008c60: 431a orrs r2, r3
  19896. macconf->PreambleLength);
  19897. 8008c62: 683b ldr r3, [r7, #0]
  19898. 8008c64: 6adb ldr r3, [r3, #44] @ 0x2c
  19899. macregval = (macconf->InterPacketGapVal |
  19900. 8008c66: 4313 orrs r3, r2
  19901. 8008c68: 60fb str r3, [r7, #12]
  19902. /* Write to MACCR */
  19903. MODIFY_REG(heth->Instance->MACCR, ETH_MACCR_MASK, macregval);
  19904. 8008c6a: 687b ldr r3, [r7, #4]
  19905. 8008c6c: 681b ldr r3, [r3, #0]
  19906. 8008c6e: 681a ldr r2, [r3, #0]
  19907. 8008c70: 4b56 ldr r3, [pc, #344] @ (8008dcc <ETH_SetMACConfig+0x22c>)
  19908. 8008c72: 4013 ands r3, r2
  19909. 8008c74: 687a ldr r2, [r7, #4]
  19910. 8008c76: 6812 ldr r2, [r2, #0]
  19911. 8008c78: 68f9 ldr r1, [r7, #12]
  19912. 8008c7a: 430b orrs r3, r1
  19913. 8008c7c: 6013 str r3, [r2, #0]
  19914. /*------------------------ MACECR Configuration --------------------*/
  19915. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  19916. 8008c7e: 683b ldr r3, [r7, #0]
  19917. 8008c80: 6bdb ldr r3, [r3, #60] @ 0x3c
  19918. 8008c82: 065a lsls r2, r3, #25
  19919. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  19920. 8008c84: 683b ldr r3, [r7, #0]
  19921. 8008c86: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  19922. 8008c8a: 061b lsls r3, r3, #24
  19923. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  19924. 8008c8c: 431a orrs r2, r3
  19925. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  19926. 8008c8e: 683b ldr r3, [r7, #0]
  19927. 8008c90: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  19928. 8008c94: 049b lsls r3, r3, #18
  19929. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  19930. 8008c96: 431a orrs r2, r3
  19931. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  19932. 8008c98: 683b ldr r3, [r7, #0]
  19933. 8008c9a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  19934. 8008c9e: 045b lsls r3, r3, #17
  19935. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  19936. 8008ca0: 4313 orrs r3, r2
  19937. ((uint32_t)((macconf->CRCCheckingRxPackets == DISABLE) ? 1U : 0U) << 16) |
  19938. 8008ca2: 683a ldr r2, [r7, #0]
  19939. 8008ca4: f892 2032 ldrb.w r2, [r2, #50] @ 0x32
  19940. 8008ca8: 2a00 cmp r2, #0
  19941. 8008caa: d102 bne.n 8008cb2 <ETH_SetMACConfig+0x112>
  19942. 8008cac: f44f 3280 mov.w r2, #65536 @ 0x10000
  19943. 8008cb0: e000 b.n 8008cb4 <ETH_SetMACConfig+0x114>
  19944. 8008cb2: 2200 movs r2, #0
  19945. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  19946. 8008cb4: 431a orrs r2, r3
  19947. macconf->GiantPacketSizeLimit);
  19948. 8008cb6: 683b ldr r3, [r7, #0]
  19949. 8008cb8: 6b5b ldr r3, [r3, #52] @ 0x34
  19950. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  19951. 8008cba: 4313 orrs r3, r2
  19952. 8008cbc: 60fb str r3, [r7, #12]
  19953. /* Write to MACECR */
  19954. MODIFY_REG(heth->Instance->MACECR, ETH_MACECR_MASK, macregval);
  19955. 8008cbe: 687b ldr r3, [r7, #4]
  19956. 8008cc0: 681b ldr r3, [r3, #0]
  19957. 8008cc2: 685a ldr r2, [r3, #4]
  19958. 8008cc4: 4b42 ldr r3, [pc, #264] @ (8008dd0 <ETH_SetMACConfig+0x230>)
  19959. 8008cc6: 4013 ands r3, r2
  19960. 8008cc8: 687a ldr r2, [r7, #4]
  19961. 8008cca: 6812 ldr r2, [r2, #0]
  19962. 8008ccc: 68f9 ldr r1, [r7, #12]
  19963. 8008cce: 430b orrs r3, r1
  19964. 8008cd0: 6053 str r3, [r2, #4]
  19965. /*------------------------ MACWTR Configuration --------------------*/
  19966. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  19967. 8008cd2: 683b ldr r3, [r7, #0]
  19968. 8008cd4: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  19969. 8008cd8: 021a lsls r2, r3, #8
  19970. macconf->WatchdogTimeout);
  19971. 8008cda: 683b ldr r3, [r7, #0]
  19972. 8008cdc: 6c5b ldr r3, [r3, #68] @ 0x44
  19973. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  19974. 8008cde: 4313 orrs r3, r2
  19975. 8008ce0: 60fb str r3, [r7, #12]
  19976. /* Write to MACWTR */
  19977. MODIFY_REG(heth->Instance->MACWTR, ETH_MACWTR_MASK, macregval);
  19978. 8008ce2: 687b ldr r3, [r7, #4]
  19979. 8008ce4: 681b ldr r3, [r3, #0]
  19980. 8008ce6: 68da ldr r2, [r3, #12]
  19981. 8008ce8: 4b3a ldr r3, [pc, #232] @ (8008dd4 <ETH_SetMACConfig+0x234>)
  19982. 8008cea: 4013 ands r3, r2
  19983. 8008cec: 687a ldr r2, [r7, #4]
  19984. 8008cee: 6812 ldr r2, [r2, #0]
  19985. 8008cf0: 68f9 ldr r1, [r7, #12]
  19986. 8008cf2: 430b orrs r3, r1
  19987. 8008cf4: 60d3 str r3, [r2, #12]
  19988. /*------------------------ MACTFCR Configuration --------------------*/
  19989. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  19990. 8008cf6: 683b ldr r3, [r7, #0]
  19991. 8008cf8: f893 3054 ldrb.w r3, [r3, #84] @ 0x54
  19992. 8008cfc: 005a lsls r2, r3, #1
  19993. macconf->PauseLowThreshold |
  19994. 8008cfe: 683b ldr r3, [r7, #0]
  19995. 8008d00: 6d1b ldr r3, [r3, #80] @ 0x50
  19996. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  19997. 8008d02: 4313 orrs r3, r2
  19998. ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7) |
  19999. 8008d04: 683a ldr r2, [r7, #0]
  20000. 8008d06: f892 204c ldrb.w r2, [r2, #76] @ 0x4c
  20001. 8008d0a: 2a00 cmp r2, #0
  20002. 8008d0c: d101 bne.n 8008d12 <ETH_SetMACConfig+0x172>
  20003. 8008d0e: 2280 movs r2, #128 @ 0x80
  20004. 8008d10: e000 b.n 8008d14 <ETH_SetMACConfig+0x174>
  20005. 8008d12: 2200 movs r2, #0
  20006. macconf->PauseLowThreshold |
  20007. 8008d14: 431a orrs r2, r3
  20008. (macconf->PauseTime << 16));
  20009. 8008d16: 683b ldr r3, [r7, #0]
  20010. 8008d18: 6c9b ldr r3, [r3, #72] @ 0x48
  20011. 8008d1a: 041b lsls r3, r3, #16
  20012. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20013. 8008d1c: 4313 orrs r3, r2
  20014. 8008d1e: 60fb str r3, [r7, #12]
  20015. /* Write to MACTFCR */
  20016. MODIFY_REG(heth->Instance->MACTFCR, ETH_MACTFCR_MASK, macregval);
  20017. 8008d20: 687b ldr r3, [r7, #4]
  20018. 8008d22: 681b ldr r3, [r3, #0]
  20019. 8008d24: 6f1a ldr r2, [r3, #112] @ 0x70
  20020. 8008d26: f64f 730d movw r3, #65293 @ 0xff0d
  20021. 8008d2a: 4013 ands r3, r2
  20022. 8008d2c: 687a ldr r2, [r7, #4]
  20023. 8008d2e: 6812 ldr r2, [r2, #0]
  20024. 8008d30: 68f9 ldr r1, [r7, #12]
  20025. 8008d32: 430b orrs r3, r1
  20026. 8008d34: 6713 str r3, [r2, #112] @ 0x70
  20027. /*------------------------ MACRFCR Configuration --------------------*/
  20028. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  20029. 8008d36: 683b ldr r3, [r7, #0]
  20030. 8008d38: f893 3056 ldrb.w r3, [r3, #86] @ 0x56
  20031. 8008d3c: 461a mov r2, r3
  20032. ((uint32_t)macconf->UnicastPausePacketDetect << 1));
  20033. 8008d3e: 683b ldr r3, [r7, #0]
  20034. 8008d40: f893 3055 ldrb.w r3, [r3, #85] @ 0x55
  20035. 8008d44: 005b lsls r3, r3, #1
  20036. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  20037. 8008d46: 4313 orrs r3, r2
  20038. 8008d48: 60fb str r3, [r7, #12]
  20039. /* Write to MACRFCR */
  20040. MODIFY_REG(heth->Instance->MACRFCR, ETH_MACRFCR_MASK, macregval);
  20041. 8008d4a: 687b ldr r3, [r7, #4]
  20042. 8008d4c: 681b ldr r3, [r3, #0]
  20043. 8008d4e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  20044. 8008d52: f023 0103 bic.w r1, r3, #3
  20045. 8008d56: 687b ldr r3, [r7, #4]
  20046. 8008d58: 681b ldr r3, [r3, #0]
  20047. 8008d5a: 68fa ldr r2, [r7, #12]
  20048. 8008d5c: 430a orrs r2, r1
  20049. 8008d5e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  20050. /*------------------------ MTLTQOMR Configuration --------------------*/
  20051. /* Write to MTLTQOMR */
  20052. MODIFY_REG(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_MASK, macconf->TransmitQueueMode);
  20053. 8008d62: 687b ldr r3, [r7, #4]
  20054. 8008d64: 681b ldr r3, [r3, #0]
  20055. 8008d66: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  20056. 8008d6a: f023 0172 bic.w r1, r3, #114 @ 0x72
  20057. 8008d6e: 683b ldr r3, [r7, #0]
  20058. 8008d70: 6d9a ldr r2, [r3, #88] @ 0x58
  20059. 8008d72: 687b ldr r3, [r7, #4]
  20060. 8008d74: 681b ldr r3, [r3, #0]
  20061. 8008d76: 430a orrs r2, r1
  20062. 8008d78: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  20063. /*------------------------ MTLRQOMR Configuration --------------------*/
  20064. macregval = (macconf->ReceiveQueueMode |
  20065. 8008d7c: 683b ldr r3, [r7, #0]
  20066. 8008d7e: 6ddb ldr r3, [r3, #92] @ 0x5c
  20067. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  20068. 8008d80: 683a ldr r2, [r7, #0]
  20069. 8008d82: f892 2060 ldrb.w r2, [r2, #96] @ 0x60
  20070. 8008d86: 2a00 cmp r2, #0
  20071. 8008d88: d101 bne.n 8008d8e <ETH_SetMACConfig+0x1ee>
  20072. 8008d8a: 2240 movs r2, #64 @ 0x40
  20073. 8008d8c: e000 b.n 8008d90 <ETH_SetMACConfig+0x1f0>
  20074. 8008d8e: 2200 movs r2, #0
  20075. macregval = (macconf->ReceiveQueueMode |
  20076. 8008d90: 431a orrs r2, r3
  20077. ((uint32_t)macconf->ForwardRxErrorPacket << 4) |
  20078. 8008d92: 683b ldr r3, [r7, #0]
  20079. 8008d94: f893 3061 ldrb.w r3, [r3, #97] @ 0x61
  20080. 8008d98: 011b lsls r3, r3, #4
  20081. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  20082. 8008d9a: 431a orrs r2, r3
  20083. ((uint32_t)macconf->ForwardRxUndersizedGoodPacket << 3));
  20084. 8008d9c: 683b ldr r3, [r7, #0]
  20085. 8008d9e: f893 3062 ldrb.w r3, [r3, #98] @ 0x62
  20086. 8008da2: 00db lsls r3, r3, #3
  20087. macregval = (macconf->ReceiveQueueMode |
  20088. 8008da4: 4313 orrs r3, r2
  20089. 8008da6: 60fb str r3, [r7, #12]
  20090. /* Write to MTLRQOMR */
  20091. MODIFY_REG(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_MASK, macregval);
  20092. 8008da8: 687b ldr r3, [r7, #4]
  20093. 8008daa: 681b ldr r3, [r3, #0]
  20094. 8008dac: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20095. 8008db0: f023 017b bic.w r1, r3, #123 @ 0x7b
  20096. 8008db4: 687b ldr r3, [r7, #4]
  20097. 8008db6: 681b ldr r3, [r3, #0]
  20098. 8008db8: 68fa ldr r2, [r7, #12]
  20099. 8008dba: 430a orrs r2, r1
  20100. 8008dbc: f8c3 2d30 str.w r2, [r3, #3376] @ 0xd30
  20101. }
  20102. 8008dc0: bf00 nop
  20103. 8008dc2: 3714 adds r7, #20
  20104. 8008dc4: 46bd mov sp, r7
  20105. 8008dc6: f85d 7b04 ldr.w r7, [sp], #4
  20106. 8008dca: 4770 bx lr
  20107. 8008dcc: 00048083 .word 0x00048083
  20108. 8008dd0: c0f88000 .word 0xc0f88000
  20109. 8008dd4: fffffef0 .word 0xfffffef0
  20110. 08008dd8 <ETH_SetDMAConfig>:
  20111. static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, const ETH_DMAConfigTypeDef *dmaconf)
  20112. {
  20113. 8008dd8: b480 push {r7}
  20114. 8008dda: b085 sub sp, #20
  20115. 8008ddc: af00 add r7, sp, #0
  20116. 8008dde: 6078 str r0, [r7, #4]
  20117. 8008de0: 6039 str r1, [r7, #0]
  20118. uint32_t dmaregval;
  20119. /*------------------------ DMAMR Configuration --------------------*/
  20120. MODIFY_REG(heth->Instance->DMAMR, ETH_DMAMR_MASK, dmaconf->DMAArbitration);
  20121. 8008de2: 687b ldr r3, [r7, #4]
  20122. 8008de4: 681b ldr r3, [r3, #0]
  20123. 8008de6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20124. 8008dea: 681a ldr r2, [r3, #0]
  20125. 8008dec: 4b38 ldr r3, [pc, #224] @ (8008ed0 <ETH_SetDMAConfig+0xf8>)
  20126. 8008dee: 4013 ands r3, r2
  20127. 8008df0: 683a ldr r2, [r7, #0]
  20128. 8008df2: 6811 ldr r1, [r2, #0]
  20129. 8008df4: 687a ldr r2, [r7, #4]
  20130. 8008df6: 6812 ldr r2, [r2, #0]
  20131. 8008df8: 430b orrs r3, r1
  20132. 8008dfa: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20133. 8008dfe: 6013 str r3, [r2, #0]
  20134. /*------------------------ DMASBMR Configuration --------------------*/
  20135. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20136. 8008e00: 683b ldr r3, [r7, #0]
  20137. 8008e02: 791b ldrb r3, [r3, #4]
  20138. 8008e04: 031a lsls r2, r3, #12
  20139. dmaconf->BurstMode |
  20140. 8008e06: 683b ldr r3, [r7, #0]
  20141. 8008e08: 689b ldr r3, [r3, #8]
  20142. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20143. 8008e0a: 431a orrs r2, r3
  20144. ((uint32_t)dmaconf->RebuildINCRxBurst << 15));
  20145. 8008e0c: 683b ldr r3, [r7, #0]
  20146. 8008e0e: 7b1b ldrb r3, [r3, #12]
  20147. 8008e10: 03db lsls r3, r3, #15
  20148. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20149. 8008e12: 4313 orrs r3, r2
  20150. 8008e14: 60fb str r3, [r7, #12]
  20151. MODIFY_REG(heth->Instance->DMASBMR, ETH_DMASBMR_MASK, dmaregval);
  20152. 8008e16: 687b ldr r3, [r7, #4]
  20153. 8008e18: 681b ldr r3, [r3, #0]
  20154. 8008e1a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20155. 8008e1e: 685a ldr r2, [r3, #4]
  20156. 8008e20: 4b2c ldr r3, [pc, #176] @ (8008ed4 <ETH_SetDMAConfig+0xfc>)
  20157. 8008e22: 4013 ands r3, r2
  20158. 8008e24: 687a ldr r2, [r7, #4]
  20159. 8008e26: 6812 ldr r2, [r2, #0]
  20160. 8008e28: 68f9 ldr r1, [r7, #12]
  20161. 8008e2a: 430b orrs r3, r1
  20162. 8008e2c: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20163. 8008e30: 6053 str r3, [r2, #4]
  20164. /*------------------------ DMACCR Configuration --------------------*/
  20165. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  20166. 8008e32: 683b ldr r3, [r7, #0]
  20167. 8008e34: 7b5b ldrb r3, [r3, #13]
  20168. 8008e36: 041a lsls r2, r3, #16
  20169. dmaconf->MaximumSegmentSize);
  20170. 8008e38: 683b ldr r3, [r7, #0]
  20171. 8008e3a: 6a1b ldr r3, [r3, #32]
  20172. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  20173. 8008e3c: 4313 orrs r3, r2
  20174. 8008e3e: 60fb str r3, [r7, #12]
  20175. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_MASK, dmaregval);
  20176. 8008e40: 687b ldr r3, [r7, #4]
  20177. 8008e42: 681b ldr r3, [r3, #0]
  20178. 8008e44: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20179. 8008e48: f8d3 2100 ldr.w r2, [r3, #256] @ 0x100
  20180. 8008e4c: 4b22 ldr r3, [pc, #136] @ (8008ed8 <ETH_SetDMAConfig+0x100>)
  20181. 8008e4e: 4013 ands r3, r2
  20182. 8008e50: 687a ldr r2, [r7, #4]
  20183. 8008e52: 6812 ldr r2, [r2, #0]
  20184. 8008e54: 68f9 ldr r1, [r7, #12]
  20185. 8008e56: 430b orrs r3, r1
  20186. 8008e58: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20187. 8008e5c: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  20188. /*------------------------ DMACTCR Configuration --------------------*/
  20189. dmaregval = (dmaconf->TxDMABurstLength |
  20190. 8008e60: 683b ldr r3, [r7, #0]
  20191. 8008e62: 691a ldr r2, [r3, #16]
  20192. ((uint32_t)dmaconf->SecondPacketOperate << 4) |
  20193. 8008e64: 683b ldr r3, [r7, #0]
  20194. 8008e66: 7d1b ldrb r3, [r3, #20]
  20195. 8008e68: 011b lsls r3, r3, #4
  20196. dmaregval = (dmaconf->TxDMABurstLength |
  20197. 8008e6a: 431a orrs r2, r3
  20198. ((uint32_t)dmaconf->TCPSegmentation << 12));
  20199. 8008e6c: 683b ldr r3, [r7, #0]
  20200. 8008e6e: 7f5b ldrb r3, [r3, #29]
  20201. 8008e70: 031b lsls r3, r3, #12
  20202. dmaregval = (dmaconf->TxDMABurstLength |
  20203. 8008e72: 4313 orrs r3, r2
  20204. 8008e74: 60fb str r3, [r7, #12]
  20205. MODIFY_REG(heth->Instance->DMACTCR, ETH_DMACTCR_MASK, dmaregval);
  20206. 8008e76: 687b ldr r3, [r7, #4]
  20207. 8008e78: 681b ldr r3, [r3, #0]
  20208. 8008e7a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20209. 8008e7e: f8d3 2104 ldr.w r2, [r3, #260] @ 0x104
  20210. 8008e82: 4b16 ldr r3, [pc, #88] @ (8008edc <ETH_SetDMAConfig+0x104>)
  20211. 8008e84: 4013 ands r3, r2
  20212. 8008e86: 687a ldr r2, [r7, #4]
  20213. 8008e88: 6812 ldr r2, [r2, #0]
  20214. 8008e8a: 68f9 ldr r1, [r7, #12]
  20215. 8008e8c: 430b orrs r3, r1
  20216. 8008e8e: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20217. 8008e92: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  20218. /*------------------------ DMACRCR Configuration --------------------*/
  20219. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  20220. 8008e96: 683b ldr r3, [r7, #0]
  20221. 8008e98: 7f1b ldrb r3, [r3, #28]
  20222. 8008e9a: 07da lsls r2, r3, #31
  20223. dmaconf->RxDMABurstLength);
  20224. 8008e9c: 683b ldr r3, [r7, #0]
  20225. 8008e9e: 699b ldr r3, [r3, #24]
  20226. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  20227. 8008ea0: 4313 orrs r3, r2
  20228. 8008ea2: 60fb str r3, [r7, #12]
  20229. /* Write to DMACRCR */
  20230. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_MASK, dmaregval);
  20231. 8008ea4: 687b ldr r3, [r7, #4]
  20232. 8008ea6: 681b ldr r3, [r3, #0]
  20233. 8008ea8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20234. 8008eac: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  20235. 8008eb0: 4b0b ldr r3, [pc, #44] @ (8008ee0 <ETH_SetDMAConfig+0x108>)
  20236. 8008eb2: 4013 ands r3, r2
  20237. 8008eb4: 687a ldr r2, [r7, #4]
  20238. 8008eb6: 6812 ldr r2, [r2, #0]
  20239. 8008eb8: 68f9 ldr r1, [r7, #12]
  20240. 8008eba: 430b orrs r3, r1
  20241. 8008ebc: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20242. 8008ec0: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  20243. }
  20244. 8008ec4: bf00 nop
  20245. 8008ec6: 3714 adds r7, #20
  20246. 8008ec8: 46bd mov sp, r7
  20247. 8008eca: f85d 7b04 ldr.w r7, [sp], #4
  20248. 8008ece: 4770 bx lr
  20249. 8008ed0: ffff87fd .word 0xffff87fd
  20250. 8008ed4: ffff2ffe .word 0xffff2ffe
  20251. 8008ed8: fffec000 .word 0xfffec000
  20252. 8008edc: ffc0efef .word 0xffc0efef
  20253. 8008ee0: 7fc0ffff .word 0x7fc0ffff
  20254. 08008ee4 <ETH_MACDMAConfig>:
  20255. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20256. * the configuration information for ETHERNET module
  20257. * @retval HAL status
  20258. */
  20259. static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth)
  20260. {
  20261. 8008ee4: b580 push {r7, lr}
  20262. 8008ee6: b0a4 sub sp, #144 @ 0x90
  20263. 8008ee8: af00 add r7, sp, #0
  20264. 8008eea: 6078 str r0, [r7, #4]
  20265. ETH_MACConfigTypeDef macDefaultConf;
  20266. ETH_DMAConfigTypeDef dmaDefaultConf;
  20267. /*--------------- ETHERNET MAC registers default Configuration --------------*/
  20268. macDefaultConf.AutomaticPadCRCStrip = ENABLE;
  20269. 8008eec: 2301 movs r3, #1
  20270. 8008eee: f887 303b strb.w r3, [r7, #59] @ 0x3b
  20271. macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10;
  20272. 8008ef2: 2300 movs r3, #0
  20273. 8008ef4: 653b str r3, [r7, #80] @ 0x50
  20274. macDefaultConf.CarrierSenseBeforeTransmit = DISABLE;
  20275. 8008ef6: 2300 movs r3, #0
  20276. 8008ef8: f887 3049 strb.w r3, [r7, #73] @ 0x49
  20277. macDefaultConf.CarrierSenseDuringTransmit = DISABLE;
  20278. 8008efc: 2300 movs r3, #0
  20279. 8008efe: f887 304b strb.w r3, [r7, #75] @ 0x4b
  20280. macDefaultConf.ChecksumOffload = ENABLE;
  20281. 8008f02: 2301 movs r3, #1
  20282. 8008f04: f887 3030 strb.w r3, [r7, #48] @ 0x30
  20283. macDefaultConf.CRCCheckingRxPackets = ENABLE;
  20284. 8008f08: 2301 movs r3, #1
  20285. 8008f0a: f887 305e strb.w r3, [r7, #94] @ 0x5e
  20286. macDefaultConf.CRCStripTypePacket = ENABLE;
  20287. 8008f0e: 2301 movs r3, #1
  20288. 8008f10: f887 303a strb.w r3, [r7, #58] @ 0x3a
  20289. macDefaultConf.DeferralCheck = DISABLE;
  20290. 8008f14: 2300 movs r3, #0
  20291. 8008f16: f887 3054 strb.w r3, [r7, #84] @ 0x54
  20292. macDefaultConf.DropTCPIPChecksumErrorPacket = ENABLE;
  20293. 8008f1a: 2301 movs r3, #1
  20294. 8008f1c: f887 308c strb.w r3, [r7, #140] @ 0x8c
  20295. macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE;
  20296. 8008f20: f44f 5300 mov.w r3, #8192 @ 0x2000
  20297. 8008f24: 647b str r3, [r7, #68] @ 0x44
  20298. macDefaultConf.ExtendedInterPacketGap = DISABLE;
  20299. 8008f26: 2300 movs r3, #0
  20300. 8008f28: f887 3064 strb.w r3, [r7, #100] @ 0x64
  20301. macDefaultConf.ExtendedInterPacketGapVal = 0x0U;
  20302. 8008f2c: 2300 movs r3, #0
  20303. 8008f2e: 66bb str r3, [r7, #104] @ 0x68
  20304. macDefaultConf.ForwardRxErrorPacket = DISABLE;
  20305. 8008f30: 2300 movs r3, #0
  20306. 8008f32: f887 308d strb.w r3, [r7, #141] @ 0x8d
  20307. macDefaultConf.ForwardRxUndersizedGoodPacket = DISABLE;
  20308. 8008f36: 2300 movs r3, #0
  20309. 8008f38: f887 308e strb.w r3, [r7, #142] @ 0x8e
  20310. macDefaultConf.GiantPacketSizeLimit = 0x618U;
  20311. 8008f3c: f44f 63c3 mov.w r3, #1560 @ 0x618
  20312. 8008f40: 663b str r3, [r7, #96] @ 0x60
  20313. macDefaultConf.GiantPacketSizeLimitControl = DISABLE;
  20314. 8008f42: 2300 movs r3, #0
  20315. 8008f44: f887 3038 strb.w r3, [r7, #56] @ 0x38
  20316. macDefaultConf.InterPacketGapVal = ETH_INTERPACKETGAP_96BIT;
  20317. 8008f48: 2300 movs r3, #0
  20318. 8008f4a: 637b str r3, [r7, #52] @ 0x34
  20319. macDefaultConf.Jabber = ENABLE;
  20320. 8008f4c: 2301 movs r3, #1
  20321. 8008f4e: f887 303d strb.w r3, [r7, #61] @ 0x3d
  20322. macDefaultConf.JumboPacket = DISABLE;
  20323. 8008f52: 2300 movs r3, #0
  20324. 8008f54: f887 303e strb.w r3, [r7, #62] @ 0x3e
  20325. macDefaultConf.LoopbackMode = DISABLE;
  20326. 8008f58: 2300 movs r3, #0
  20327. 8008f5a: f887 3048 strb.w r3, [r7, #72] @ 0x48
  20328. macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS_4;
  20329. 8008f5e: 2300 movs r3, #0
  20330. 8008f60: 67fb str r3, [r7, #124] @ 0x7c
  20331. macDefaultConf.PauseTime = 0x0U;
  20332. 8008f62: 2300 movs r3, #0
  20333. 8008f64: 677b str r3, [r7, #116] @ 0x74
  20334. macDefaultConf.PreambleLength = ETH_PREAMBLELENGTH_7;
  20335. 8008f66: 2300 movs r3, #0
  20336. 8008f68: 65bb str r3, [r7, #88] @ 0x58
  20337. macDefaultConf.ProgrammableWatchdog = DISABLE;
  20338. 8008f6a: 2300 movs r3, #0
  20339. 8008f6c: f887 306c strb.w r3, [r7, #108] @ 0x6c
  20340. macDefaultConf.ReceiveFlowControl = DISABLE;
  20341. 8008f70: 2300 movs r3, #0
  20342. 8008f72: f887 3082 strb.w r3, [r7, #130] @ 0x82
  20343. macDefaultConf.ReceiveOwn = ENABLE;
  20344. 8008f76: 2301 movs r3, #1
  20345. 8008f78: f887 304a strb.w r3, [r7, #74] @ 0x4a
  20346. macDefaultConf.ReceiveQueueMode = ETH_RECEIVESTOREFORWARD;
  20347. 8008f7c: 2320 movs r3, #32
  20348. 8008f7e: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  20349. macDefaultConf.RetryTransmission = ENABLE;
  20350. 8008f82: 2301 movs r3, #1
  20351. 8008f84: f887 304c strb.w r3, [r7, #76] @ 0x4c
  20352. macDefaultConf.SlowProtocolDetect = DISABLE;
  20353. 8008f88: 2300 movs r3, #0
  20354. 8008f8a: f887 305d strb.w r3, [r7, #93] @ 0x5d
  20355. macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0;
  20356. 8008f8e: f04f 5340 mov.w r3, #805306368 @ 0x30000000
  20357. 8008f92: 62fb str r3, [r7, #44] @ 0x2c
  20358. macDefaultConf.Speed = ETH_SPEED_100M;
  20359. 8008f94: f44f 4380 mov.w r3, #16384 @ 0x4000
  20360. 8008f98: 643b str r3, [r7, #64] @ 0x40
  20361. macDefaultConf.Support2KPacket = DISABLE;
  20362. 8008f9a: 2300 movs r3, #0
  20363. 8008f9c: f887 3039 strb.w r3, [r7, #57] @ 0x39
  20364. macDefaultConf.TransmitQueueMode = ETH_TRANSMITSTOREFORWARD;
  20365. 8008fa0: 2302 movs r3, #2
  20366. 8008fa2: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  20367. macDefaultConf.TransmitFlowControl = DISABLE;
  20368. 8008fa6: 2300 movs r3, #0
  20369. 8008fa8: f887 3080 strb.w r3, [r7, #128] @ 0x80
  20370. macDefaultConf.UnicastPausePacketDetect = DISABLE;
  20371. 8008fac: 2300 movs r3, #0
  20372. 8008fae: f887 3081 strb.w r3, [r7, #129] @ 0x81
  20373. macDefaultConf.UnicastSlowProtocolPacketDetect = DISABLE;
  20374. 8008fb2: 2300 movs r3, #0
  20375. 8008fb4: f887 305c strb.w r3, [r7, #92] @ 0x5c
  20376. macDefaultConf.Watchdog = ENABLE;
  20377. 8008fb8: 2301 movs r3, #1
  20378. 8008fba: f887 303c strb.w r3, [r7, #60] @ 0x3c
  20379. macDefaultConf.WatchdogTimeout = ETH_MACWTR_WTO_2KB;
  20380. 8008fbe: 2300 movs r3, #0
  20381. 8008fc0: 673b str r3, [r7, #112] @ 0x70
  20382. macDefaultConf.ZeroQuantaPause = ENABLE;
  20383. 8008fc2: 2301 movs r3, #1
  20384. 8008fc4: f887 3078 strb.w r3, [r7, #120] @ 0x78
  20385. /* MAC default configuration */
  20386. ETH_SetMACConfig(heth, &macDefaultConf);
  20387. 8008fc8: f107 032c add.w r3, r7, #44 @ 0x2c
  20388. 8008fcc: 4619 mov r1, r3
  20389. 8008fce: 6878 ldr r0, [r7, #4]
  20390. 8008fd0: f7ff fde6 bl 8008ba0 <ETH_SetMACConfig>
  20391. /*--------------- ETHERNET DMA registers default Configuration --------------*/
  20392. dmaDefaultConf.AddressAlignedBeats = ENABLE;
  20393. 8008fd4: 2301 movs r3, #1
  20394. 8008fd6: 733b strb r3, [r7, #12]
  20395. dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED;
  20396. 8008fd8: 2301 movs r3, #1
  20397. 8008fda: 613b str r3, [r7, #16]
  20398. dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_RX1_TX1;
  20399. 8008fdc: 2300 movs r3, #0
  20400. 8008fde: 60bb str r3, [r7, #8]
  20401. dmaDefaultConf.FlushRxPacket = DISABLE;
  20402. 8008fe0: 2300 movs r3, #0
  20403. 8008fe2: f887 3024 strb.w r3, [r7, #36] @ 0x24
  20404. dmaDefaultConf.PBLx8Mode = DISABLE;
  20405. 8008fe6: 2300 movs r3, #0
  20406. 8008fe8: 757b strb r3, [r7, #21]
  20407. dmaDefaultConf.RebuildINCRxBurst = DISABLE;
  20408. 8008fea: 2300 movs r3, #0
  20409. 8008fec: 753b strb r3, [r7, #20]
  20410. dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT;
  20411. 8008fee: f44f 1300 mov.w r3, #2097152 @ 0x200000
  20412. 8008ff2: 623b str r3, [r7, #32]
  20413. dmaDefaultConf.SecondPacketOperate = DISABLE;
  20414. 8008ff4: 2300 movs r3, #0
  20415. 8008ff6: 773b strb r3, [r7, #28]
  20416. dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT;
  20417. 8008ff8: f44f 1300 mov.w r3, #2097152 @ 0x200000
  20418. 8008ffc: 61bb str r3, [r7, #24]
  20419. dmaDefaultConf.TCPSegmentation = DISABLE;
  20420. 8008ffe: 2300 movs r3, #0
  20421. 8009000: f887 3025 strb.w r3, [r7, #37] @ 0x25
  20422. dmaDefaultConf.MaximumSegmentSize = ETH_SEGMENT_SIZE_DEFAULT;
  20423. 8009004: f44f 7306 mov.w r3, #536 @ 0x218
  20424. 8009008: 62bb str r3, [r7, #40] @ 0x28
  20425. /* DMA default configuration */
  20426. ETH_SetDMAConfig(heth, &dmaDefaultConf);
  20427. 800900a: f107 0308 add.w r3, r7, #8
  20428. 800900e: 4619 mov r1, r3
  20429. 8009010: 6878 ldr r0, [r7, #4]
  20430. 8009012: f7ff fee1 bl 8008dd8 <ETH_SetDMAConfig>
  20431. }
  20432. 8009016: bf00 nop
  20433. 8009018: 3790 adds r7, #144 @ 0x90
  20434. 800901a: 46bd mov sp, r7
  20435. 800901c: bd80 pop {r7, pc}
  20436. 0800901e <ETH_DMATxDescListInit>:
  20437. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20438. * the configuration information for ETHERNET module
  20439. * @retval None
  20440. */
  20441. static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth)
  20442. {
  20443. 800901e: b480 push {r7}
  20444. 8009020: b085 sub sp, #20
  20445. 8009022: af00 add r7, sp, #0
  20446. 8009024: 6078 str r0, [r7, #4]
  20447. ETH_DMADescTypeDef *dmatxdesc;
  20448. uint32_t i;
  20449. /* Fill each DMATxDesc descriptor with the right values */
  20450. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  20451. 8009026: 2300 movs r3, #0
  20452. 8009028: 60fb str r3, [r7, #12]
  20453. 800902a: e01d b.n 8009068 <ETH_DMATxDescListInit+0x4a>
  20454. {
  20455. dmatxdesc = heth->Init.TxDesc + i;
  20456. 800902c: 687b ldr r3, [r7, #4]
  20457. 800902e: 68d9 ldr r1, [r3, #12]
  20458. 8009030: 68fa ldr r2, [r7, #12]
  20459. 8009032: 4613 mov r3, r2
  20460. 8009034: 005b lsls r3, r3, #1
  20461. 8009036: 4413 add r3, r2
  20462. 8009038: 00db lsls r3, r3, #3
  20463. 800903a: 440b add r3, r1
  20464. 800903c: 60bb str r3, [r7, #8]
  20465. WRITE_REG(dmatxdesc->DESC0, 0x0U);
  20466. 800903e: 68bb ldr r3, [r7, #8]
  20467. 8009040: 2200 movs r2, #0
  20468. 8009042: 601a str r2, [r3, #0]
  20469. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  20470. 8009044: 68bb ldr r3, [r7, #8]
  20471. 8009046: 2200 movs r2, #0
  20472. 8009048: 605a str r2, [r3, #4]
  20473. WRITE_REG(dmatxdesc->DESC2, 0x0U);
  20474. 800904a: 68bb ldr r3, [r7, #8]
  20475. 800904c: 2200 movs r2, #0
  20476. 800904e: 609a str r2, [r3, #8]
  20477. WRITE_REG(dmatxdesc->DESC3, 0x0U);
  20478. 8009050: 68bb ldr r3, [r7, #8]
  20479. 8009052: 2200 movs r2, #0
  20480. 8009054: 60da str r2, [r3, #12]
  20481. WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc);
  20482. 8009056: 68b9 ldr r1, [r7, #8]
  20483. 8009058: 687b ldr r3, [r7, #4]
  20484. 800905a: 68fa ldr r2, [r7, #12]
  20485. 800905c: 3206 adds r2, #6
  20486. 800905e: f843 1022 str.w r1, [r3, r2, lsl #2]
  20487. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  20488. 8009062: 68fb ldr r3, [r7, #12]
  20489. 8009064: 3301 adds r3, #1
  20490. 8009066: 60fb str r3, [r7, #12]
  20491. 8009068: 68fb ldr r3, [r7, #12]
  20492. 800906a: 2b03 cmp r3, #3
  20493. 800906c: d9de bls.n 800902c <ETH_DMATxDescListInit+0xe>
  20494. }
  20495. heth->TxDescList.CurTxDesc = 0;
  20496. 800906e: 687b ldr r3, [r7, #4]
  20497. 8009070: 2200 movs r2, #0
  20498. 8009072: 629a str r2, [r3, #40] @ 0x28
  20499. /* Set Transmit Descriptor Ring Length */
  20500. WRITE_REG(heth->Instance->DMACTDRLR, (ETH_TX_DESC_CNT - 1U));
  20501. 8009074: 687b ldr r3, [r7, #4]
  20502. 8009076: 681b ldr r3, [r3, #0]
  20503. 8009078: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20504. 800907c: 461a mov r2, r3
  20505. 800907e: 2303 movs r3, #3
  20506. 8009080: f8c2 312c str.w r3, [r2, #300] @ 0x12c
  20507. /* Set Transmit Descriptor List Address */
  20508. WRITE_REG(heth->Instance->DMACTDLAR, (uint32_t) heth->Init.TxDesc);
  20509. 8009084: 687b ldr r3, [r7, #4]
  20510. 8009086: 68da ldr r2, [r3, #12]
  20511. 8009088: 687b ldr r3, [r7, #4]
  20512. 800908a: 681b ldr r3, [r3, #0]
  20513. 800908c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20514. 8009090: f8c3 2114 str.w r2, [r3, #276] @ 0x114
  20515. /* Set Transmit Descriptor Tail pointer */
  20516. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc);
  20517. 8009094: 687b ldr r3, [r7, #4]
  20518. 8009096: 68da ldr r2, [r3, #12]
  20519. 8009098: 687b ldr r3, [r7, #4]
  20520. 800909a: 681b ldr r3, [r3, #0]
  20521. 800909c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20522. 80090a0: f8c3 2120 str.w r2, [r3, #288] @ 0x120
  20523. }
  20524. 80090a4: bf00 nop
  20525. 80090a6: 3714 adds r7, #20
  20526. 80090a8: 46bd mov sp, r7
  20527. 80090aa: f85d 7b04 ldr.w r7, [sp], #4
  20528. 80090ae: 4770 bx lr
  20529. 080090b0 <ETH_DMARxDescListInit>:
  20530. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20531. * the configuration information for ETHERNET module
  20532. * @retval None
  20533. */
  20534. static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth)
  20535. {
  20536. 80090b0: b480 push {r7}
  20537. 80090b2: b085 sub sp, #20
  20538. 80090b4: af00 add r7, sp, #0
  20539. 80090b6: 6078 str r0, [r7, #4]
  20540. ETH_DMADescTypeDef *dmarxdesc;
  20541. uint32_t i;
  20542. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  20543. 80090b8: 2300 movs r3, #0
  20544. 80090ba: 60fb str r3, [r7, #12]
  20545. 80090bc: e023 b.n 8009106 <ETH_DMARxDescListInit+0x56>
  20546. {
  20547. dmarxdesc = heth->Init.RxDesc + i;
  20548. 80090be: 687b ldr r3, [r7, #4]
  20549. 80090c0: 6919 ldr r1, [r3, #16]
  20550. 80090c2: 68fa ldr r2, [r7, #12]
  20551. 80090c4: 4613 mov r3, r2
  20552. 80090c6: 005b lsls r3, r3, #1
  20553. 80090c8: 4413 add r3, r2
  20554. 80090ca: 00db lsls r3, r3, #3
  20555. 80090cc: 440b add r3, r1
  20556. 80090ce: 60bb str r3, [r7, #8]
  20557. WRITE_REG(dmarxdesc->DESC0, 0x0U);
  20558. 80090d0: 68bb ldr r3, [r7, #8]
  20559. 80090d2: 2200 movs r2, #0
  20560. 80090d4: 601a str r2, [r3, #0]
  20561. WRITE_REG(dmarxdesc->DESC1, 0x0U);
  20562. 80090d6: 68bb ldr r3, [r7, #8]
  20563. 80090d8: 2200 movs r2, #0
  20564. 80090da: 605a str r2, [r3, #4]
  20565. WRITE_REG(dmarxdesc->DESC2, 0x0U);
  20566. 80090dc: 68bb ldr r3, [r7, #8]
  20567. 80090de: 2200 movs r2, #0
  20568. 80090e0: 609a str r2, [r3, #8]
  20569. WRITE_REG(dmarxdesc->DESC3, 0x0U);
  20570. 80090e2: 68bb ldr r3, [r7, #8]
  20571. 80090e4: 2200 movs r2, #0
  20572. 80090e6: 60da str r2, [r3, #12]
  20573. WRITE_REG(dmarxdesc->BackupAddr0, 0x0U);
  20574. 80090e8: 68bb ldr r3, [r7, #8]
  20575. 80090ea: 2200 movs r2, #0
  20576. 80090ec: 611a str r2, [r3, #16]
  20577. WRITE_REG(dmarxdesc->BackupAddr1, 0x0U);
  20578. 80090ee: 68bb ldr r3, [r7, #8]
  20579. 80090f0: 2200 movs r2, #0
  20580. 80090f2: 615a str r2, [r3, #20]
  20581. /* Set Rx descritors addresses */
  20582. WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc);
  20583. 80090f4: 68b9 ldr r1, [r7, #8]
  20584. 80090f6: 687b ldr r3, [r7, #4]
  20585. 80090f8: 68fa ldr r2, [r7, #12]
  20586. 80090fa: 3212 adds r2, #18
  20587. 80090fc: f843 1022 str.w r1, [r3, r2, lsl #2]
  20588. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  20589. 8009100: 68fb ldr r3, [r7, #12]
  20590. 8009102: 3301 adds r3, #1
  20591. 8009104: 60fb str r3, [r7, #12]
  20592. 8009106: 68fb ldr r3, [r7, #12]
  20593. 8009108: 2b03 cmp r3, #3
  20594. 800910a: d9d8 bls.n 80090be <ETH_DMARxDescListInit+0xe>
  20595. }
  20596. WRITE_REG(heth->RxDescList.RxDescIdx, 0U);
  20597. 800910c: 687b ldr r3, [r7, #4]
  20598. 800910e: 2200 movs r2, #0
  20599. 8009110: 65da str r2, [r3, #92] @ 0x5c
  20600. WRITE_REG(heth->RxDescList.RxDescCnt, 0U);
  20601. 8009112: 687b ldr r3, [r7, #4]
  20602. 8009114: 2200 movs r2, #0
  20603. 8009116: 661a str r2, [r3, #96] @ 0x60
  20604. WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0U);
  20605. 8009118: 687b ldr r3, [r7, #4]
  20606. 800911a: 2200 movs r2, #0
  20607. 800911c: 669a str r2, [r3, #104] @ 0x68
  20608. WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0U);
  20609. 800911e: 687b ldr r3, [r7, #4]
  20610. 8009120: 2200 movs r2, #0
  20611. 8009122: 66da str r2, [r3, #108] @ 0x6c
  20612. WRITE_REG(heth->RxDescList.ItMode, 0U);
  20613. 8009124: 687b ldr r3, [r7, #4]
  20614. 8009126: 2200 movs r2, #0
  20615. 8009128: 659a str r2, [r3, #88] @ 0x58
  20616. /* Set Receive Descriptor Ring Length */
  20617. WRITE_REG(heth->Instance->DMACRDRLR, ((uint32_t)(ETH_RX_DESC_CNT - 1U)));
  20618. 800912a: 687b ldr r3, [r7, #4]
  20619. 800912c: 681b ldr r3, [r3, #0]
  20620. 800912e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20621. 8009132: 461a mov r2, r3
  20622. 8009134: 2303 movs r3, #3
  20623. 8009136: f8c2 3130 str.w r3, [r2, #304] @ 0x130
  20624. /* Set Receive Descriptor List Address */
  20625. WRITE_REG(heth->Instance->DMACRDLAR, (uint32_t) heth->Init.RxDesc);
  20626. 800913a: 687b ldr r3, [r7, #4]
  20627. 800913c: 691a ldr r2, [r3, #16]
  20628. 800913e: 687b ldr r3, [r7, #4]
  20629. 8009140: 681b ldr r3, [r3, #0]
  20630. 8009142: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20631. 8009146: f8c3 211c str.w r2, [r3, #284] @ 0x11c
  20632. /* Set Receive Descriptor Tail pointer Address */
  20633. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U))));
  20634. 800914a: 687b ldr r3, [r7, #4]
  20635. 800914c: 691b ldr r3, [r3, #16]
  20636. 800914e: f103 0248 add.w r2, r3, #72 @ 0x48
  20637. 8009152: 687b ldr r3, [r7, #4]
  20638. 8009154: 681b ldr r3, [r3, #0]
  20639. 8009156: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20640. 800915a: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  20641. }
  20642. 800915e: bf00 nop
  20643. 8009160: 3714 adds r7, #20
  20644. 8009162: 46bd mov sp, r7
  20645. 8009164: f85d 7b04 ldr.w r7, [sp], #4
  20646. 8009168: 4770 bx lr
  20647. ...
  20648. 0800916c <ETH_Prepare_Tx_Descriptors>:
  20649. * @param ItMode: Enable or disable Tx EOT interrept
  20650. * @retval Status
  20651. */
  20652. static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, const ETH_TxPacketConfigTypeDef *pTxConfig,
  20653. uint32_t ItMode)
  20654. {
  20655. 800916c: b480 push {r7}
  20656. 800916e: b091 sub sp, #68 @ 0x44
  20657. 8009170: af00 add r7, sp, #0
  20658. 8009172: 60f8 str r0, [r7, #12]
  20659. 8009174: 60b9 str r1, [r7, #8]
  20660. 8009176: 607a str r2, [r7, #4]
  20661. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  20662. 8009178: 68fb ldr r3, [r7, #12]
  20663. 800917a: 3318 adds r3, #24
  20664. 800917c: 627b str r3, [r7, #36] @ 0x24
  20665. uint32_t descidx = dmatxdesclist->CurTxDesc;
  20666. 800917e: 6a7b ldr r3, [r7, #36] @ 0x24
  20667. 8009180: 691b ldr r3, [r3, #16]
  20668. 8009182: 63fb str r3, [r7, #60] @ 0x3c
  20669. uint32_t firstdescidx = dmatxdesclist->CurTxDesc;
  20670. 8009184: 6a7b ldr r3, [r7, #36] @ 0x24
  20671. 8009186: 691b ldr r3, [r3, #16]
  20672. 8009188: 623b str r3, [r7, #32]
  20673. uint32_t idx;
  20674. uint32_t descnbr = 0;
  20675. 800918a: 2300 movs r3, #0
  20676. 800918c: 637b str r3, [r7, #52] @ 0x34
  20677. ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20678. 800918e: 6a7b ldr r3, [r7, #36] @ 0x24
  20679. 8009190: 6bfa ldr r2, [r7, #60] @ 0x3c
  20680. 8009192: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20681. 8009196: 633b str r3, [r7, #48] @ 0x30
  20682. ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer;
  20683. 8009198: 68bb ldr r3, [r7, #8]
  20684. 800919a: 689b ldr r3, [r3, #8]
  20685. 800919c: 62fb str r3, [r7, #44] @ 0x2c
  20686. uint32_t bd_count = 0;
  20687. 800919e: 2300 movs r3, #0
  20688. 80091a0: 62bb str r3, [r7, #40] @ 0x28
  20689. uint32_t primask_bit;
  20690. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  20691. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  20692. 80091a2: 6b3b ldr r3, [r7, #48] @ 0x30
  20693. 80091a4: 68db ldr r3, [r3, #12]
  20694. 80091a6: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  20695. 80091aa: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  20696. 80091ae: d007 beq.n 80091c0 <ETH_Prepare_Tx_Descriptors+0x54>
  20697. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  20698. 80091b0: 6a7a ldr r2, [r7, #36] @ 0x24
  20699. 80091b2: 6bfb ldr r3, [r7, #60] @ 0x3c
  20700. 80091b4: 3304 adds r3, #4
  20701. 80091b6: 009b lsls r3, r3, #2
  20702. 80091b8: 4413 add r3, r2
  20703. 80091ba: 685b ldr r3, [r3, #4]
  20704. 80091bc: 2b00 cmp r3, #0
  20705. 80091be: d001 beq.n 80091c4 <ETH_Prepare_Tx_Descriptors+0x58>
  20706. {
  20707. return HAL_ETH_ERROR_BUSY;
  20708. 80091c0: 2302 movs r3, #2
  20709. 80091c2: e266 b.n 8009692 <ETH_Prepare_Tx_Descriptors+0x526>
  20710. /***************************************************************************/
  20711. /***************** Context descriptor configuration (Optional) **********/
  20712. /***************************************************************************/
  20713. /* If VLAN tag is enabled for this packet */
  20714. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  20715. 80091c4: 68bb ldr r3, [r7, #8]
  20716. 80091c6: 681b ldr r3, [r3, #0]
  20717. 80091c8: f003 0304 and.w r3, r3, #4
  20718. 80091cc: 2b00 cmp r3, #0
  20719. 80091ce: d044 beq.n 800925a <ETH_Prepare_Tx_Descriptors+0xee>
  20720. {
  20721. /* Set vlan tag value */
  20722. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_VT, pTxConfig->VlanTag);
  20723. 80091d0: 6b3b ldr r3, [r7, #48] @ 0x30
  20724. 80091d2: 68da ldr r2, [r3, #12]
  20725. 80091d4: 4b75 ldr r3, [pc, #468] @ (80093ac <ETH_Prepare_Tx_Descriptors+0x240>)
  20726. 80091d6: 4013 ands r3, r2
  20727. 80091d8: 68ba ldr r2, [r7, #8]
  20728. 80091da: 6a52 ldr r2, [r2, #36] @ 0x24
  20729. 80091dc: 431a orrs r2, r3
  20730. 80091de: 6b3b ldr r3, [r7, #48] @ 0x30
  20731. 80091e0: 60da str r2, [r3, #12]
  20732. /* Set vlan tag valid bit */
  20733. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_VLTV);
  20734. 80091e2: 6b3b ldr r3, [r7, #48] @ 0x30
  20735. 80091e4: 68db ldr r3, [r3, #12]
  20736. 80091e6: f443 3280 orr.w r2, r3, #65536 @ 0x10000
  20737. 80091ea: 6b3b ldr r3, [r7, #48] @ 0x30
  20738. 80091ec: 60da str r2, [r3, #12]
  20739. /* Set the descriptor as the vlan input source */
  20740. SET_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI);
  20741. 80091ee: 68fb ldr r3, [r7, #12]
  20742. 80091f0: 681b ldr r3, [r3, #0]
  20743. 80091f2: 6e1a ldr r2, [r3, #96] @ 0x60
  20744. 80091f4: 68fb ldr r3, [r7, #12]
  20745. 80091f6: 681b ldr r3, [r3, #0]
  20746. 80091f8: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  20747. 80091fc: 661a str r2, [r3, #96] @ 0x60
  20748. /* if inner VLAN is enabled */
  20749. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_INNERVLANTAG) != (uint32_t)RESET)
  20750. 80091fe: 68bb ldr r3, [r7, #8]
  20751. 8009200: 681b ldr r3, [r3, #0]
  20752. 8009202: f003 0308 and.w r3, r3, #8
  20753. 8009206: 2b00 cmp r3, #0
  20754. 8009208: d027 beq.n 800925a <ETH_Prepare_Tx_Descriptors+0xee>
  20755. {
  20756. /* Set inner vlan tag value */
  20757. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_IVT, (pTxConfig->InnerVlanTag << 16));
  20758. 800920a: 6b3b ldr r3, [r7, #48] @ 0x30
  20759. 800920c: 689b ldr r3, [r3, #8]
  20760. 800920e: b29a uxth r2, r3
  20761. 8009210: 68bb ldr r3, [r7, #8]
  20762. 8009212: 6adb ldr r3, [r3, #44] @ 0x2c
  20763. 8009214: 041b lsls r3, r3, #16
  20764. 8009216: 431a orrs r2, r3
  20765. 8009218: 6b3b ldr r3, [r7, #48] @ 0x30
  20766. 800921a: 609a str r2, [r3, #8]
  20767. /* Set inner vlan tag valid bit */
  20768. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_IVLTV);
  20769. 800921c: 6b3b ldr r3, [r7, #48] @ 0x30
  20770. 800921e: 68db ldr r3, [r3, #12]
  20771. 8009220: f443 3200 orr.w r2, r3, #131072 @ 0x20000
  20772. 8009224: 6b3b ldr r3, [r7, #48] @ 0x30
  20773. 8009226: 60da str r2, [r3, #12]
  20774. /* Set Vlan Tag control */
  20775. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_IVTIR, pTxConfig->InnerVlanCtrl);
  20776. 8009228: 6b3b ldr r3, [r7, #48] @ 0x30
  20777. 800922a: 68db ldr r3, [r3, #12]
  20778. 800922c: f423 2240 bic.w r2, r3, #786432 @ 0xc0000
  20779. 8009230: 68bb ldr r3, [r7, #8]
  20780. 8009232: 6b1b ldr r3, [r3, #48] @ 0x30
  20781. 8009234: 431a orrs r2, r3
  20782. 8009236: 6b3b ldr r3, [r7, #48] @ 0x30
  20783. 8009238: 60da str r2, [r3, #12]
  20784. /* Set the descriptor as the inner vlan input source */
  20785. SET_BIT(heth->Instance->MACIVIR, ETH_MACIVIR_VLTI);
  20786. 800923a: 68fb ldr r3, [r7, #12]
  20787. 800923c: 681b ldr r3, [r3, #0]
  20788. 800923e: 6e5a ldr r2, [r3, #100] @ 0x64
  20789. 8009240: 68fb ldr r3, [r7, #12]
  20790. 8009242: 681b ldr r3, [r3, #0]
  20791. 8009244: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  20792. 8009248: 665a str r2, [r3, #100] @ 0x64
  20793. /* Enable double VLAN processing */
  20794. SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP);
  20795. 800924a: 68fb ldr r3, [r7, #12]
  20796. 800924c: 681b ldr r3, [r3, #0]
  20797. 800924e: 6d1a ldr r2, [r3, #80] @ 0x50
  20798. 8009250: 68fb ldr r3, [r7, #12]
  20799. 8009252: 681b ldr r3, [r3, #0]
  20800. 8009254: f042 6280 orr.w r2, r2, #67108864 @ 0x4000000
  20801. 8009258: 651a str r2, [r3, #80] @ 0x50
  20802. }
  20803. }
  20804. /* if tcp segmentation is enabled for this packet */
  20805. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  20806. 800925a: 68bb ldr r3, [r7, #8]
  20807. 800925c: 681b ldr r3, [r3, #0]
  20808. 800925e: f003 0310 and.w r3, r3, #16
  20809. 8009262: 2b00 cmp r3, #0
  20810. 8009264: d00e beq.n 8009284 <ETH_Prepare_Tx_Descriptors+0x118>
  20811. {
  20812. /* Set MSS value */
  20813. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_MSS, pTxConfig->MaxSegmentSize);
  20814. 8009266: 6b3b ldr r3, [r7, #48] @ 0x30
  20815. 8009268: 689a ldr r2, [r3, #8]
  20816. 800926a: 4b51 ldr r3, [pc, #324] @ (80093b0 <ETH_Prepare_Tx_Descriptors+0x244>)
  20817. 800926c: 4013 ands r3, r2
  20818. 800926e: 68ba ldr r2, [r7, #8]
  20819. 8009270: 6992 ldr r2, [r2, #24]
  20820. 8009272: 431a orrs r2, r3
  20821. 8009274: 6b3b ldr r3, [r7, #48] @ 0x30
  20822. 8009276: 609a str r2, [r3, #8]
  20823. /* Set MSS valid bit */
  20824. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_TCMSSV);
  20825. 8009278: 6b3b ldr r3, [r7, #48] @ 0x30
  20826. 800927a: 68db ldr r3, [r3, #12]
  20827. 800927c: f043 6280 orr.w r2, r3, #67108864 @ 0x4000000
  20828. 8009280: 6b3b ldr r3, [r7, #48] @ 0x30
  20829. 8009282: 60da str r2, [r3, #12]
  20830. }
  20831. if ((READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  20832. 8009284: 68bb ldr r3, [r7, #8]
  20833. 8009286: 681b ldr r3, [r3, #0]
  20834. 8009288: f003 0304 and.w r3, r3, #4
  20835. 800928c: 2b00 cmp r3, #0
  20836. 800928e: d105 bne.n 800929c <ETH_Prepare_Tx_Descriptors+0x130>
  20837. || (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET))
  20838. 8009290: 68bb ldr r3, [r7, #8]
  20839. 8009292: 681b ldr r3, [r3, #0]
  20840. 8009294: f003 0310 and.w r3, r3, #16
  20841. 8009298: 2b00 cmp r3, #0
  20842. 800929a: d036 beq.n 800930a <ETH_Prepare_Tx_Descriptors+0x19e>
  20843. {
  20844. /* Set as context descriptor */
  20845. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_CTXT);
  20846. 800929c: 6b3b ldr r3, [r7, #48] @ 0x30
  20847. 800929e: 68db ldr r3, [r3, #12]
  20848. 80092a0: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000
  20849. 80092a4: 6b3b ldr r3, [r7, #48] @ 0x30
  20850. 80092a6: 60da str r2, [r3, #12]
  20851. __ASM volatile ("dmb 0xF":::"memory");
  20852. 80092a8: f3bf 8f5f dmb sy
  20853. }
  20854. 80092ac: bf00 nop
  20855. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  20856. __DMB();
  20857. /* Set own bit */
  20858. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  20859. 80092ae: 6b3b ldr r3, [r7, #48] @ 0x30
  20860. 80092b0: 68db ldr r3, [r3, #12]
  20861. 80092b2: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  20862. 80092b6: 6b3b ldr r3, [r7, #48] @ 0x30
  20863. 80092b8: 60da str r2, [r3, #12]
  20864. /* Increment current tx descriptor index */
  20865. INCR_TX_DESC_INDEX(descidx, 1U);
  20866. 80092ba: 6bfb ldr r3, [r7, #60] @ 0x3c
  20867. 80092bc: 3301 adds r3, #1
  20868. 80092be: 63fb str r3, [r7, #60] @ 0x3c
  20869. 80092c0: 6bfb ldr r3, [r7, #60] @ 0x3c
  20870. 80092c2: 2b03 cmp r3, #3
  20871. 80092c4: d902 bls.n 80092cc <ETH_Prepare_Tx_Descriptors+0x160>
  20872. 80092c6: 6bfb ldr r3, [r7, #60] @ 0x3c
  20873. 80092c8: 3b04 subs r3, #4
  20874. 80092ca: 63fb str r3, [r7, #60] @ 0x3c
  20875. /* Get current descriptor address */
  20876. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20877. 80092cc: 6a7b ldr r3, [r7, #36] @ 0x24
  20878. 80092ce: 6bfa ldr r2, [r7, #60] @ 0x3c
  20879. 80092d0: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20880. 80092d4: 633b str r3, [r7, #48] @ 0x30
  20881. descnbr += 1U;
  20882. 80092d6: 6b7b ldr r3, [r7, #52] @ 0x34
  20883. 80092d8: 3301 adds r3, #1
  20884. 80092da: 637b str r3, [r7, #52] @ 0x34
  20885. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  20886. if (READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  20887. 80092dc: 6b3b ldr r3, [r7, #48] @ 0x30
  20888. 80092de: 68db ldr r3, [r3, #12]
  20889. 80092e0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  20890. 80092e4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  20891. 80092e8: d10f bne.n 800930a <ETH_Prepare_Tx_Descriptors+0x19e>
  20892. {
  20893. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[firstdescidx];
  20894. 80092ea: 6a7b ldr r3, [r7, #36] @ 0x24
  20895. 80092ec: 6a3a ldr r2, [r7, #32]
  20896. 80092ee: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20897. 80092f2: 633b str r3, [r7, #48] @ 0x30
  20898. __ASM volatile ("dmb 0xF":::"memory");
  20899. 80092f4: f3bf 8f5f dmb sy
  20900. }
  20901. 80092f8: bf00 nop
  20902. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  20903. __DMB();
  20904. /* Clear own bit */
  20905. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  20906. 80092fa: 6b3b ldr r3, [r7, #48] @ 0x30
  20907. 80092fc: 68db ldr r3, [r3, #12]
  20908. 80092fe: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  20909. 8009302: 6b3b ldr r3, [r7, #48] @ 0x30
  20910. 8009304: 60da str r2, [r3, #12]
  20911. return HAL_ETH_ERROR_BUSY;
  20912. 8009306: 2302 movs r3, #2
  20913. 8009308: e1c3 b.n 8009692 <ETH_Prepare_Tx_Descriptors+0x526>
  20914. /***************************************************************************/
  20915. /***************** Normal descriptors configuration *****************/
  20916. /***************************************************************************/
  20917. descnbr += 1U;
  20918. 800930a: 6b7b ldr r3, [r7, #52] @ 0x34
  20919. 800930c: 3301 adds r3, #1
  20920. 800930e: 637b str r3, [r7, #52] @ 0x34
  20921. /* Set header or buffer 1 address */
  20922. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  20923. 8009310: 6afb ldr r3, [r7, #44] @ 0x2c
  20924. 8009312: 681b ldr r3, [r3, #0]
  20925. 8009314: 461a mov r2, r3
  20926. 8009316: 6b3b ldr r3, [r7, #48] @ 0x30
  20927. 8009318: 601a str r2, [r3, #0]
  20928. /* Set header or buffer 1 Length */
  20929. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  20930. 800931a: 6b3b ldr r3, [r7, #48] @ 0x30
  20931. 800931c: 689a ldr r2, [r3, #8]
  20932. 800931e: 4b24 ldr r3, [pc, #144] @ (80093b0 <ETH_Prepare_Tx_Descriptors+0x244>)
  20933. 8009320: 4013 ands r3, r2
  20934. 8009322: 6afa ldr r2, [r7, #44] @ 0x2c
  20935. 8009324: 6852 ldr r2, [r2, #4]
  20936. 8009326: 431a orrs r2, r3
  20937. 8009328: 6b3b ldr r3, [r7, #48] @ 0x30
  20938. 800932a: 609a str r2, [r3, #8]
  20939. if (txbuffer->next != NULL)
  20940. 800932c: 6afb ldr r3, [r7, #44] @ 0x2c
  20941. 800932e: 689b ldr r3, [r3, #8]
  20942. 8009330: 2b00 cmp r3, #0
  20943. 8009332: d012 beq.n 800935a <ETH_Prepare_Tx_Descriptors+0x1ee>
  20944. {
  20945. txbuffer = txbuffer->next;
  20946. 8009334: 6afb ldr r3, [r7, #44] @ 0x2c
  20947. 8009336: 689b ldr r3, [r3, #8]
  20948. 8009338: 62fb str r3, [r7, #44] @ 0x2c
  20949. /* Set buffer 2 address */
  20950. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  20951. 800933a: 6afb ldr r3, [r7, #44] @ 0x2c
  20952. 800933c: 681b ldr r3, [r3, #0]
  20953. 800933e: 461a mov r2, r3
  20954. 8009340: 6b3b ldr r3, [r7, #48] @ 0x30
  20955. 8009342: 605a str r2, [r3, #4]
  20956. /* Set buffer 2 Length */
  20957. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  20958. 8009344: 6b3b ldr r3, [r7, #48] @ 0x30
  20959. 8009346: 689a ldr r2, [r3, #8]
  20960. 8009348: 4b1a ldr r3, [pc, #104] @ (80093b4 <ETH_Prepare_Tx_Descriptors+0x248>)
  20961. 800934a: 4013 ands r3, r2
  20962. 800934c: 6afa ldr r2, [r7, #44] @ 0x2c
  20963. 800934e: 6852 ldr r2, [r2, #4]
  20964. 8009350: 0412 lsls r2, r2, #16
  20965. 8009352: 431a orrs r2, r3
  20966. 8009354: 6b3b ldr r3, [r7, #48] @ 0x30
  20967. 8009356: 609a str r2, [r3, #8]
  20968. 8009358: e008 b.n 800936c <ETH_Prepare_Tx_Descriptors+0x200>
  20969. }
  20970. else
  20971. {
  20972. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  20973. 800935a: 6b3b ldr r3, [r7, #48] @ 0x30
  20974. 800935c: 2200 movs r2, #0
  20975. 800935e: 605a str r2, [r3, #4]
  20976. /* Set buffer 2 Length */
  20977. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  20978. 8009360: 6b3b ldr r3, [r7, #48] @ 0x30
  20979. 8009362: 689a ldr r2, [r3, #8]
  20980. 8009364: 4b13 ldr r3, [pc, #76] @ (80093b4 <ETH_Prepare_Tx_Descriptors+0x248>)
  20981. 8009366: 4013 ands r3, r2
  20982. 8009368: 6b3a ldr r2, [r7, #48] @ 0x30
  20983. 800936a: 6093 str r3, [r2, #8]
  20984. }
  20985. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  20986. 800936c: 68bb ldr r3, [r7, #8]
  20987. 800936e: 681b ldr r3, [r3, #0]
  20988. 8009370: f003 0310 and.w r3, r3, #16
  20989. 8009374: 2b00 cmp r3, #0
  20990. 8009376: d021 beq.n 80093bc <ETH_Prepare_Tx_Descriptors+0x250>
  20991. {
  20992. /* Set TCP Header length */
  20993. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_THL, (pTxConfig->TCPHeaderLen << 19));
  20994. 8009378: 6b3b ldr r3, [r7, #48] @ 0x30
  20995. 800937a: 68db ldr r3, [r3, #12]
  20996. 800937c: f423 02f0 bic.w r2, r3, #7864320 @ 0x780000
  20997. 8009380: 68bb ldr r3, [r7, #8]
  20998. 8009382: 6a1b ldr r3, [r3, #32]
  20999. 8009384: 04db lsls r3, r3, #19
  21000. 8009386: 431a orrs r2, r3
  21001. 8009388: 6b3b ldr r3, [r7, #48] @ 0x30
  21002. 800938a: 60da str r2, [r3, #12]
  21003. /* Set TCP payload length */
  21004. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  21005. 800938c: 6b3b ldr r3, [r7, #48] @ 0x30
  21006. 800938e: 68da ldr r2, [r3, #12]
  21007. 8009390: 4b09 ldr r3, [pc, #36] @ (80093b8 <ETH_Prepare_Tx_Descriptors+0x24c>)
  21008. 8009392: 4013 ands r3, r2
  21009. 8009394: 68ba ldr r2, [r7, #8]
  21010. 8009396: 69d2 ldr r2, [r2, #28]
  21011. 8009398: 431a orrs r2, r3
  21012. 800939a: 6b3b ldr r3, [r7, #48] @ 0x30
  21013. 800939c: 60da str r2, [r3, #12]
  21014. /* Set TCP Segmentation Enabled bit */
  21015. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  21016. 800939e: 6b3b ldr r3, [r7, #48] @ 0x30
  21017. 80093a0: 68db ldr r3, [r3, #12]
  21018. 80093a2: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  21019. 80093a6: 6b3b ldr r3, [r7, #48] @ 0x30
  21020. 80093a8: 60da str r2, [r3, #12]
  21021. 80093aa: e02e b.n 800940a <ETH_Prepare_Tx_Descriptors+0x29e>
  21022. 80093ac: ffff0000 .word 0xffff0000
  21023. 80093b0: ffffc000 .word 0xffffc000
  21024. 80093b4: c000ffff .word 0xc000ffff
  21025. 80093b8: fffc0000 .word 0xfffc0000
  21026. }
  21027. else
  21028. {
  21029. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  21030. 80093bc: 6b3b ldr r3, [r7, #48] @ 0x30
  21031. 80093be: 68da ldr r2, [r3, #12]
  21032. 80093c0: 4b7b ldr r3, [pc, #492] @ (80095b0 <ETH_Prepare_Tx_Descriptors+0x444>)
  21033. 80093c2: 4013 ands r3, r2
  21034. 80093c4: 68ba ldr r2, [r7, #8]
  21035. 80093c6: 6852 ldr r2, [r2, #4]
  21036. 80093c8: 431a orrs r2, r3
  21037. 80093ca: 6b3b ldr r3, [r7, #48] @ 0x30
  21038. 80093cc: 60da str r2, [r3, #12]
  21039. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  21040. 80093ce: 68bb ldr r3, [r7, #8]
  21041. 80093d0: 681b ldr r3, [r3, #0]
  21042. 80093d2: f003 0301 and.w r3, r3, #1
  21043. 80093d6: 2b00 cmp r3, #0
  21044. 80093d8: d008 beq.n 80093ec <ETH_Prepare_Tx_Descriptors+0x280>
  21045. {
  21046. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  21047. 80093da: 6b3b ldr r3, [r7, #48] @ 0x30
  21048. 80093dc: 68db ldr r3, [r3, #12]
  21049. 80093de: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  21050. 80093e2: 68bb ldr r3, [r7, #8]
  21051. 80093e4: 695b ldr r3, [r3, #20]
  21052. 80093e6: 431a orrs r2, r3
  21053. 80093e8: 6b3b ldr r3, [r7, #48] @ 0x30
  21054. 80093ea: 60da str r2, [r3, #12]
  21055. }
  21056. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != (uint32_t)RESET)
  21057. 80093ec: 68bb ldr r3, [r7, #8]
  21058. 80093ee: 681b ldr r3, [r3, #0]
  21059. 80093f0: f003 0320 and.w r3, r3, #32
  21060. 80093f4: 2b00 cmp r3, #0
  21061. 80093f6: d008 beq.n 800940a <ETH_Prepare_Tx_Descriptors+0x29e>
  21062. {
  21063. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CPC, pTxConfig->CRCPadCtrl);
  21064. 80093f8: 6b3b ldr r3, [r7, #48] @ 0x30
  21065. 80093fa: 68db ldr r3, [r3, #12]
  21066. 80093fc: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000
  21067. 8009400: 68bb ldr r3, [r7, #8]
  21068. 8009402: 691b ldr r3, [r3, #16]
  21069. 8009404: 431a orrs r2, r3
  21070. 8009406: 6b3b ldr r3, [r7, #48] @ 0x30
  21071. 8009408: 60da str r2, [r3, #12]
  21072. }
  21073. }
  21074. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  21075. 800940a: 68bb ldr r3, [r7, #8]
  21076. 800940c: 681b ldr r3, [r3, #0]
  21077. 800940e: f003 0304 and.w r3, r3, #4
  21078. 8009412: 2b00 cmp r3, #0
  21079. 8009414: d008 beq.n 8009428 <ETH_Prepare_Tx_Descriptors+0x2bc>
  21080. {
  21081. /* Set Vlan Tag control */
  21082. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_VTIR, pTxConfig->VlanCtrl);
  21083. 8009416: 6b3b ldr r3, [r7, #48] @ 0x30
  21084. 8009418: 689b ldr r3, [r3, #8]
  21085. 800941a: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  21086. 800941e: 68bb ldr r3, [r7, #8]
  21087. 8009420: 6a9b ldr r3, [r3, #40] @ 0x28
  21088. 8009422: 431a orrs r2, r3
  21089. 8009424: 6b3b ldr r3, [r7, #48] @ 0x30
  21090. 8009426: 609a str r2, [r3, #8]
  21091. }
  21092. /* Mark it as First Descriptor */
  21093. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  21094. 8009428: 6b3b ldr r3, [r7, #48] @ 0x30
  21095. 800942a: 68db ldr r3, [r3, #12]
  21096. 800942c: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000
  21097. 8009430: 6b3b ldr r3, [r7, #48] @ 0x30
  21098. 8009432: 60da str r2, [r3, #12]
  21099. /* Mark it as NORMAL descriptor */
  21100. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  21101. 8009434: 6b3b ldr r3, [r7, #48] @ 0x30
  21102. 8009436: 68db ldr r3, [r3, #12]
  21103. 8009438: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  21104. 800943c: 6b3b ldr r3, [r7, #48] @ 0x30
  21105. 800943e: 60da str r2, [r3, #12]
  21106. __ASM volatile ("dmb 0xF":::"memory");
  21107. 8009440: f3bf 8f5f dmb sy
  21108. }
  21109. 8009444: bf00 nop
  21110. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21111. __DMB();
  21112. /* set OWN bit of FIRST descriptor */
  21113. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21114. 8009446: 6b3b ldr r3, [r7, #48] @ 0x30
  21115. 8009448: 68db ldr r3, [r3, #12]
  21116. 800944a: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21117. 800944e: 6b3b ldr r3, [r7, #48] @ 0x30
  21118. 8009450: 60da str r2, [r3, #12]
  21119. /* If source address insertion/replacement is enabled for this packet */
  21120. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_SAIC) != (uint32_t)RESET)
  21121. 8009452: 68bb ldr r3, [r7, #8]
  21122. 8009454: 681b ldr r3, [r3, #0]
  21123. 8009456: f003 0302 and.w r3, r3, #2
  21124. 800945a: 2b00 cmp r3, #0
  21125. 800945c: f000 80da beq.w 8009614 <ETH_Prepare_Tx_Descriptors+0x4a8>
  21126. {
  21127. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_SAIC, pTxConfig->SrcAddrCtrl);
  21128. 8009460: 6b3b ldr r3, [r7, #48] @ 0x30
  21129. 8009462: 68db ldr r3, [r3, #12]
  21130. 8009464: f023 7260 bic.w r2, r3, #58720256 @ 0x3800000
  21131. 8009468: 68bb ldr r3, [r7, #8]
  21132. 800946a: 68db ldr r3, [r3, #12]
  21133. 800946c: 431a orrs r2, r3
  21134. 800946e: 6b3b ldr r3, [r7, #48] @ 0x30
  21135. 8009470: 60da str r2, [r3, #12]
  21136. }
  21137. /* only if the packet is split into more than one descriptors > 1 */
  21138. while (txbuffer->next != NULL)
  21139. 8009472: e0cf b.n 8009614 <ETH_Prepare_Tx_Descriptors+0x4a8>
  21140. {
  21141. /* Clear the LD bit of previous descriptor */
  21142. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  21143. 8009474: 6b3b ldr r3, [r7, #48] @ 0x30
  21144. 8009476: 68db ldr r3, [r3, #12]
  21145. 8009478: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000
  21146. 800947c: 6b3b ldr r3, [r7, #48] @ 0x30
  21147. 800947e: 60da str r2, [r3, #12]
  21148. /* Increment current tx descriptor index */
  21149. INCR_TX_DESC_INDEX(descidx, 1U);
  21150. 8009480: 6bfb ldr r3, [r7, #60] @ 0x3c
  21151. 8009482: 3301 adds r3, #1
  21152. 8009484: 63fb str r3, [r7, #60] @ 0x3c
  21153. 8009486: 6bfb ldr r3, [r7, #60] @ 0x3c
  21154. 8009488: 2b03 cmp r3, #3
  21155. 800948a: d902 bls.n 8009492 <ETH_Prepare_Tx_Descriptors+0x326>
  21156. 800948c: 6bfb ldr r3, [r7, #60] @ 0x3c
  21157. 800948e: 3b04 subs r3, #4
  21158. 8009490: 63fb str r3, [r7, #60] @ 0x3c
  21159. /* Get current descriptor address */
  21160. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21161. 8009492: 6a7b ldr r3, [r7, #36] @ 0x24
  21162. 8009494: 6bfa ldr r2, [r7, #60] @ 0x3c
  21163. 8009496: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21164. 800949a: 633b str r3, [r7, #48] @ 0x30
  21165. /* Clear the FD bit of new Descriptor */
  21166. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  21167. 800949c: 6b3b ldr r3, [r7, #48] @ 0x30
  21168. 800949e: 68db ldr r3, [r3, #12]
  21169. 80094a0: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000
  21170. 80094a4: 6b3b ldr r3, [r7, #48] @ 0x30
  21171. 80094a6: 60da str r2, [r3, #12]
  21172. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  21173. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN) == ETH_DMATXNDESCRF_OWN)
  21174. 80094a8: 6b3b ldr r3, [r7, #48] @ 0x30
  21175. 80094aa: 68db ldr r3, [r3, #12]
  21176. 80094ac: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  21177. 80094b0: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  21178. 80094b4: d007 beq.n 80094c6 <ETH_Prepare_Tx_Descriptors+0x35a>
  21179. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  21180. 80094b6: 6a7a ldr r2, [r7, #36] @ 0x24
  21181. 80094b8: 6bfb ldr r3, [r7, #60] @ 0x3c
  21182. 80094ba: 3304 adds r3, #4
  21183. 80094bc: 009b lsls r3, r3, #2
  21184. 80094be: 4413 add r3, r2
  21185. 80094c0: 685b ldr r3, [r3, #4]
  21186. 80094c2: 2b00 cmp r3, #0
  21187. 80094c4: d029 beq.n 800951a <ETH_Prepare_Tx_Descriptors+0x3ae>
  21188. {
  21189. descidx = firstdescidx;
  21190. 80094c6: 6a3b ldr r3, [r7, #32]
  21191. 80094c8: 63fb str r3, [r7, #60] @ 0x3c
  21192. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21193. 80094ca: 6a7b ldr r3, [r7, #36] @ 0x24
  21194. 80094cc: 6bfa ldr r2, [r7, #60] @ 0x3c
  21195. 80094ce: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21196. 80094d2: 633b str r3, [r7, #48] @ 0x30
  21197. /* clear previous desc own bit */
  21198. for (idx = 0; idx < descnbr; idx ++)
  21199. 80094d4: 2300 movs r3, #0
  21200. 80094d6: 63bb str r3, [r7, #56] @ 0x38
  21201. 80094d8: e019 b.n 800950e <ETH_Prepare_Tx_Descriptors+0x3a2>
  21202. __ASM volatile ("dmb 0xF":::"memory");
  21203. 80094da: f3bf 8f5f dmb sy
  21204. }
  21205. 80094de: bf00 nop
  21206. {
  21207. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21208. __DMB();
  21209. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21210. 80094e0: 6b3b ldr r3, [r7, #48] @ 0x30
  21211. 80094e2: 68db ldr r3, [r3, #12]
  21212. 80094e4: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  21213. 80094e8: 6b3b ldr r3, [r7, #48] @ 0x30
  21214. 80094ea: 60da str r2, [r3, #12]
  21215. /* Increment current tx descriptor index */
  21216. INCR_TX_DESC_INDEX(descidx, 1U);
  21217. 80094ec: 6bfb ldr r3, [r7, #60] @ 0x3c
  21218. 80094ee: 3301 adds r3, #1
  21219. 80094f0: 63fb str r3, [r7, #60] @ 0x3c
  21220. 80094f2: 6bfb ldr r3, [r7, #60] @ 0x3c
  21221. 80094f4: 2b03 cmp r3, #3
  21222. 80094f6: d902 bls.n 80094fe <ETH_Prepare_Tx_Descriptors+0x392>
  21223. 80094f8: 6bfb ldr r3, [r7, #60] @ 0x3c
  21224. 80094fa: 3b04 subs r3, #4
  21225. 80094fc: 63fb str r3, [r7, #60] @ 0x3c
  21226. /* Get current descriptor address */
  21227. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21228. 80094fe: 6a7b ldr r3, [r7, #36] @ 0x24
  21229. 8009500: 6bfa ldr r2, [r7, #60] @ 0x3c
  21230. 8009502: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21231. 8009506: 633b str r3, [r7, #48] @ 0x30
  21232. for (idx = 0; idx < descnbr; idx ++)
  21233. 8009508: 6bbb ldr r3, [r7, #56] @ 0x38
  21234. 800950a: 3301 adds r3, #1
  21235. 800950c: 63bb str r3, [r7, #56] @ 0x38
  21236. 800950e: 6bba ldr r2, [r7, #56] @ 0x38
  21237. 8009510: 6b7b ldr r3, [r7, #52] @ 0x34
  21238. 8009512: 429a cmp r2, r3
  21239. 8009514: d3e1 bcc.n 80094da <ETH_Prepare_Tx_Descriptors+0x36e>
  21240. }
  21241. return HAL_ETH_ERROR_BUSY;
  21242. 8009516: 2302 movs r3, #2
  21243. 8009518: e0bb b.n 8009692 <ETH_Prepare_Tx_Descriptors+0x526>
  21244. }
  21245. descnbr += 1U;
  21246. 800951a: 6b7b ldr r3, [r7, #52] @ 0x34
  21247. 800951c: 3301 adds r3, #1
  21248. 800951e: 637b str r3, [r7, #52] @ 0x34
  21249. /* Get the next Tx buffer in the list */
  21250. txbuffer = txbuffer->next;
  21251. 8009520: 6afb ldr r3, [r7, #44] @ 0x2c
  21252. 8009522: 689b ldr r3, [r3, #8]
  21253. 8009524: 62fb str r3, [r7, #44] @ 0x2c
  21254. /* Set header or buffer 1 address */
  21255. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  21256. 8009526: 6afb ldr r3, [r7, #44] @ 0x2c
  21257. 8009528: 681b ldr r3, [r3, #0]
  21258. 800952a: 461a mov r2, r3
  21259. 800952c: 6b3b ldr r3, [r7, #48] @ 0x30
  21260. 800952e: 601a str r2, [r3, #0]
  21261. /* Set header or buffer 1 Length */
  21262. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  21263. 8009530: 6b3b ldr r3, [r7, #48] @ 0x30
  21264. 8009532: 689a ldr r2, [r3, #8]
  21265. 8009534: 4b1f ldr r3, [pc, #124] @ (80095b4 <ETH_Prepare_Tx_Descriptors+0x448>)
  21266. 8009536: 4013 ands r3, r2
  21267. 8009538: 6afa ldr r2, [r7, #44] @ 0x2c
  21268. 800953a: 6852 ldr r2, [r2, #4]
  21269. 800953c: 431a orrs r2, r3
  21270. 800953e: 6b3b ldr r3, [r7, #48] @ 0x30
  21271. 8009540: 609a str r2, [r3, #8]
  21272. if (txbuffer->next != NULL)
  21273. 8009542: 6afb ldr r3, [r7, #44] @ 0x2c
  21274. 8009544: 689b ldr r3, [r3, #8]
  21275. 8009546: 2b00 cmp r3, #0
  21276. 8009548: d012 beq.n 8009570 <ETH_Prepare_Tx_Descriptors+0x404>
  21277. {
  21278. /* Get the next Tx buffer in the list */
  21279. txbuffer = txbuffer->next;
  21280. 800954a: 6afb ldr r3, [r7, #44] @ 0x2c
  21281. 800954c: 689b ldr r3, [r3, #8]
  21282. 800954e: 62fb str r3, [r7, #44] @ 0x2c
  21283. /* Set buffer 2 address */
  21284. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  21285. 8009550: 6afb ldr r3, [r7, #44] @ 0x2c
  21286. 8009552: 681b ldr r3, [r3, #0]
  21287. 8009554: 461a mov r2, r3
  21288. 8009556: 6b3b ldr r3, [r7, #48] @ 0x30
  21289. 8009558: 605a str r2, [r3, #4]
  21290. /* Set buffer 2 Length */
  21291. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  21292. 800955a: 6b3b ldr r3, [r7, #48] @ 0x30
  21293. 800955c: 689a ldr r2, [r3, #8]
  21294. 800955e: 4b16 ldr r3, [pc, #88] @ (80095b8 <ETH_Prepare_Tx_Descriptors+0x44c>)
  21295. 8009560: 4013 ands r3, r2
  21296. 8009562: 6afa ldr r2, [r7, #44] @ 0x2c
  21297. 8009564: 6852 ldr r2, [r2, #4]
  21298. 8009566: 0412 lsls r2, r2, #16
  21299. 8009568: 431a orrs r2, r3
  21300. 800956a: 6b3b ldr r3, [r7, #48] @ 0x30
  21301. 800956c: 609a str r2, [r3, #8]
  21302. 800956e: e008 b.n 8009582 <ETH_Prepare_Tx_Descriptors+0x416>
  21303. }
  21304. else
  21305. {
  21306. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  21307. 8009570: 6b3b ldr r3, [r7, #48] @ 0x30
  21308. 8009572: 2200 movs r2, #0
  21309. 8009574: 605a str r2, [r3, #4]
  21310. /* Set buffer 2 Length */
  21311. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  21312. 8009576: 6b3b ldr r3, [r7, #48] @ 0x30
  21313. 8009578: 689a ldr r2, [r3, #8]
  21314. 800957a: 4b0f ldr r3, [pc, #60] @ (80095b8 <ETH_Prepare_Tx_Descriptors+0x44c>)
  21315. 800957c: 4013 ands r3, r2
  21316. 800957e: 6b3a ldr r2, [r7, #48] @ 0x30
  21317. 8009580: 6093 str r3, [r2, #8]
  21318. }
  21319. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  21320. 8009582: 68bb ldr r3, [r7, #8]
  21321. 8009584: 681b ldr r3, [r3, #0]
  21322. 8009586: f003 0310 and.w r3, r3, #16
  21323. 800958a: 2b00 cmp r3, #0
  21324. 800958c: d018 beq.n 80095c0 <ETH_Prepare_Tx_Descriptors+0x454>
  21325. {
  21326. /* Set TCP payload length */
  21327. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  21328. 800958e: 6b3b ldr r3, [r7, #48] @ 0x30
  21329. 8009590: 68da ldr r2, [r3, #12]
  21330. 8009592: 4b0a ldr r3, [pc, #40] @ (80095bc <ETH_Prepare_Tx_Descriptors+0x450>)
  21331. 8009594: 4013 ands r3, r2
  21332. 8009596: 68ba ldr r2, [r7, #8]
  21333. 8009598: 69d2 ldr r2, [r2, #28]
  21334. 800959a: 431a orrs r2, r3
  21335. 800959c: 6b3b ldr r3, [r7, #48] @ 0x30
  21336. 800959e: 60da str r2, [r3, #12]
  21337. /* Set TCP Segmentation Enabled bit */
  21338. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  21339. 80095a0: 6b3b ldr r3, [r7, #48] @ 0x30
  21340. 80095a2: 68db ldr r3, [r3, #12]
  21341. 80095a4: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  21342. 80095a8: 6b3b ldr r3, [r7, #48] @ 0x30
  21343. 80095aa: 60da str r2, [r3, #12]
  21344. 80095ac: e020 b.n 80095f0 <ETH_Prepare_Tx_Descriptors+0x484>
  21345. 80095ae: bf00 nop
  21346. 80095b0: ffff8000 .word 0xffff8000
  21347. 80095b4: ffffc000 .word 0xffffc000
  21348. 80095b8: c000ffff .word 0xc000ffff
  21349. 80095bc: fffc0000 .word 0xfffc0000
  21350. }
  21351. else
  21352. {
  21353. /* Set the packet length */
  21354. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  21355. 80095c0: 6b3b ldr r3, [r7, #48] @ 0x30
  21356. 80095c2: 68da ldr r2, [r3, #12]
  21357. 80095c4: 4b36 ldr r3, [pc, #216] @ (80096a0 <ETH_Prepare_Tx_Descriptors+0x534>)
  21358. 80095c6: 4013 ands r3, r2
  21359. 80095c8: 68ba ldr r2, [r7, #8]
  21360. 80095ca: 6852 ldr r2, [r2, #4]
  21361. 80095cc: 431a orrs r2, r3
  21362. 80095ce: 6b3b ldr r3, [r7, #48] @ 0x30
  21363. 80095d0: 60da str r2, [r3, #12]
  21364. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  21365. 80095d2: 68bb ldr r3, [r7, #8]
  21366. 80095d4: 681b ldr r3, [r3, #0]
  21367. 80095d6: f003 0301 and.w r3, r3, #1
  21368. 80095da: 2b00 cmp r3, #0
  21369. 80095dc: d008 beq.n 80095f0 <ETH_Prepare_Tx_Descriptors+0x484>
  21370. {
  21371. /* Checksum Insertion Control */
  21372. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  21373. 80095de: 6b3b ldr r3, [r7, #48] @ 0x30
  21374. 80095e0: 68db ldr r3, [r3, #12]
  21375. 80095e2: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  21376. 80095e6: 68bb ldr r3, [r7, #8]
  21377. 80095e8: 695b ldr r3, [r3, #20]
  21378. 80095ea: 431a orrs r2, r3
  21379. 80095ec: 6b3b ldr r3, [r7, #48] @ 0x30
  21380. 80095ee: 60da str r2, [r3, #12]
  21381. }
  21382. }
  21383. bd_count += 1U;
  21384. 80095f0: 6abb ldr r3, [r7, #40] @ 0x28
  21385. 80095f2: 3301 adds r3, #1
  21386. 80095f4: 62bb str r3, [r7, #40] @ 0x28
  21387. __ASM volatile ("dmb 0xF":::"memory");
  21388. 80095f6: f3bf 8f5f dmb sy
  21389. }
  21390. 80095fa: bf00 nop
  21391. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21392. __DMB();
  21393. /* Set Own bit */
  21394. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21395. 80095fc: 6b3b ldr r3, [r7, #48] @ 0x30
  21396. 80095fe: 68db ldr r3, [r3, #12]
  21397. 8009600: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21398. 8009604: 6b3b ldr r3, [r7, #48] @ 0x30
  21399. 8009606: 60da str r2, [r3, #12]
  21400. /* Mark it as NORMAL descriptor */
  21401. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  21402. 8009608: 6b3b ldr r3, [r7, #48] @ 0x30
  21403. 800960a: 68db ldr r3, [r3, #12]
  21404. 800960c: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  21405. 8009610: 6b3b ldr r3, [r7, #48] @ 0x30
  21406. 8009612: 60da str r2, [r3, #12]
  21407. while (txbuffer->next != NULL)
  21408. 8009614: 6afb ldr r3, [r7, #44] @ 0x2c
  21409. 8009616: 689b ldr r3, [r3, #8]
  21410. 8009618: 2b00 cmp r3, #0
  21411. 800961a: f47f af2b bne.w 8009474 <ETH_Prepare_Tx_Descriptors+0x308>
  21412. }
  21413. if (ItMode != ((uint32_t)RESET))
  21414. 800961e: 687b ldr r3, [r7, #4]
  21415. 8009620: 2b00 cmp r3, #0
  21416. 8009622: d006 beq.n 8009632 <ETH_Prepare_Tx_Descriptors+0x4c6>
  21417. {
  21418. /* Set Interrupt on completion bit */
  21419. SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  21420. 8009624: 6b3b ldr r3, [r7, #48] @ 0x30
  21421. 8009626: 689b ldr r3, [r3, #8]
  21422. 8009628: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21423. 800962c: 6b3b ldr r3, [r7, #48] @ 0x30
  21424. 800962e: 609a str r2, [r3, #8]
  21425. 8009630: e005 b.n 800963e <ETH_Prepare_Tx_Descriptors+0x4d2>
  21426. }
  21427. else
  21428. {
  21429. /* Clear Interrupt on completion bit */
  21430. CLEAR_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  21431. 8009632: 6b3b ldr r3, [r7, #48] @ 0x30
  21432. 8009634: 689b ldr r3, [r3, #8]
  21433. 8009636: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  21434. 800963a: 6b3b ldr r3, [r7, #48] @ 0x30
  21435. 800963c: 609a str r2, [r3, #8]
  21436. }
  21437. /* Mark it as LAST descriptor */
  21438. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  21439. 800963e: 6b3b ldr r3, [r7, #48] @ 0x30
  21440. 8009640: 68db ldr r3, [r3, #12]
  21441. 8009642: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  21442. 8009646: 6b3b ldr r3, [r7, #48] @ 0x30
  21443. 8009648: 60da str r2, [r3, #12]
  21444. /* Save the current packet address to expose it to the application */
  21445. dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress;
  21446. 800964a: 6a7b ldr r3, [r7, #36] @ 0x24
  21447. 800964c: 6a5a ldr r2, [r3, #36] @ 0x24
  21448. 800964e: 6a79 ldr r1, [r7, #36] @ 0x24
  21449. 8009650: 6bfb ldr r3, [r7, #60] @ 0x3c
  21450. 8009652: 3304 adds r3, #4
  21451. 8009654: 009b lsls r3, r3, #2
  21452. 8009656: 440b add r3, r1
  21453. 8009658: 605a str r2, [r3, #4]
  21454. dmatxdesclist->CurTxDesc = descidx;
  21455. 800965a: 6a7b ldr r3, [r7, #36] @ 0x24
  21456. 800965c: 6bfa ldr r2, [r7, #60] @ 0x3c
  21457. 800965e: 611a str r2, [r3, #16]
  21458. __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  21459. 8009660: f3ef 8310 mrs r3, PRIMASK
  21460. 8009664: 613b str r3, [r7, #16]
  21461. return(result);
  21462. 8009666: 693b ldr r3, [r7, #16]
  21463. /* Enter critical section */
  21464. primask_bit = __get_PRIMASK();
  21465. 8009668: 61fb str r3, [r7, #28]
  21466. 800966a: 2301 movs r3, #1
  21467. 800966c: 617b str r3, [r7, #20]
  21468. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  21469. 800966e: 697b ldr r3, [r7, #20]
  21470. 8009670: f383 8810 msr PRIMASK, r3
  21471. }
  21472. 8009674: bf00 nop
  21473. __set_PRIMASK(1);
  21474. dmatxdesclist->BuffersInUse += bd_count + 1U;
  21475. 8009676: 6a7b ldr r3, [r7, #36] @ 0x24
  21476. 8009678: 6a9a ldr r2, [r3, #40] @ 0x28
  21477. 800967a: 6abb ldr r3, [r7, #40] @ 0x28
  21478. 800967c: 4413 add r3, r2
  21479. 800967e: 1c5a adds r2, r3, #1
  21480. 8009680: 6a7b ldr r3, [r7, #36] @ 0x24
  21481. 8009682: 629a str r2, [r3, #40] @ 0x28
  21482. 8009684: 69fb ldr r3, [r7, #28]
  21483. 8009686: 61bb str r3, [r7, #24]
  21484. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  21485. 8009688: 69bb ldr r3, [r7, #24]
  21486. 800968a: f383 8810 msr PRIMASK, r3
  21487. }
  21488. 800968e: bf00 nop
  21489. /* Exit critical section: restore previous priority mask */
  21490. __set_PRIMASK(primask_bit);
  21491. /* Return function status */
  21492. return HAL_ETH_ERROR_NONE;
  21493. 8009690: 2300 movs r3, #0
  21494. }
  21495. 8009692: 4618 mov r0, r3
  21496. 8009694: 3744 adds r7, #68 @ 0x44
  21497. 8009696: 46bd mov sp, r7
  21498. 8009698: f85d 7b04 ldr.w r7, [sp], #4
  21499. 800969c: 4770 bx lr
  21500. 800969e: bf00 nop
  21501. 80096a0: ffff8000 .word 0xffff8000
  21502. 080096a4 <HAL_GPIO_Init>:
  21503. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  21504. * the configuration information for the specified GPIO peripheral.
  21505. * @retval None
  21506. */
  21507. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  21508. {
  21509. 80096a4: b480 push {r7}
  21510. 80096a6: b089 sub sp, #36 @ 0x24
  21511. 80096a8: af00 add r7, sp, #0
  21512. 80096aa: 6078 str r0, [r7, #4]
  21513. 80096ac: 6039 str r1, [r7, #0]
  21514. uint32_t position = 0x00U;
  21515. 80096ae: 2300 movs r3, #0
  21516. 80096b0: 61fb str r3, [r7, #28]
  21517. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  21518. #if defined(DUAL_CORE) && defined(CORE_CM4)
  21519. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  21520. #else
  21521. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  21522. 80096b2: 4b89 ldr r3, [pc, #548] @ (80098d8 <HAL_GPIO_Init+0x234>)
  21523. 80096b4: 617b str r3, [r7, #20]
  21524. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  21525. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  21526. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  21527. /* Configure the port pins */
  21528. while (((GPIO_Init->Pin) >> position) != 0x00U)
  21529. 80096b6: e194 b.n 80099e2 <HAL_GPIO_Init+0x33e>
  21530. {
  21531. /* Get current io position */
  21532. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  21533. 80096b8: 683b ldr r3, [r7, #0]
  21534. 80096ba: 681a ldr r2, [r3, #0]
  21535. 80096bc: 2101 movs r1, #1
  21536. 80096be: 69fb ldr r3, [r7, #28]
  21537. 80096c0: fa01 f303 lsl.w r3, r1, r3
  21538. 80096c4: 4013 ands r3, r2
  21539. 80096c6: 613b str r3, [r7, #16]
  21540. if (iocurrent != 0x00U)
  21541. 80096c8: 693b ldr r3, [r7, #16]
  21542. 80096ca: 2b00 cmp r3, #0
  21543. 80096cc: f000 8186 beq.w 80099dc <HAL_GPIO_Init+0x338>
  21544. {
  21545. /*--------------------- GPIO Mode Configuration ------------------------*/
  21546. /* In case of Output or Alternate function mode selection */
  21547. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  21548. 80096d0: 683b ldr r3, [r7, #0]
  21549. 80096d2: 685b ldr r3, [r3, #4]
  21550. 80096d4: f003 0303 and.w r3, r3, #3
  21551. 80096d8: 2b01 cmp r3, #1
  21552. 80096da: d005 beq.n 80096e8 <HAL_GPIO_Init+0x44>
  21553. 80096dc: 683b ldr r3, [r7, #0]
  21554. 80096de: 685b ldr r3, [r3, #4]
  21555. 80096e0: f003 0303 and.w r3, r3, #3
  21556. 80096e4: 2b02 cmp r3, #2
  21557. 80096e6: d130 bne.n 800974a <HAL_GPIO_Init+0xa6>
  21558. {
  21559. /* Check the Speed parameter */
  21560. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  21561. /* Configure the IO Speed */
  21562. temp = GPIOx->OSPEEDR;
  21563. 80096e8: 687b ldr r3, [r7, #4]
  21564. 80096ea: 689b ldr r3, [r3, #8]
  21565. 80096ec: 61bb str r3, [r7, #24]
  21566. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  21567. 80096ee: 69fb ldr r3, [r7, #28]
  21568. 80096f0: 005b lsls r3, r3, #1
  21569. 80096f2: 2203 movs r2, #3
  21570. 80096f4: fa02 f303 lsl.w r3, r2, r3
  21571. 80096f8: 43db mvns r3, r3
  21572. 80096fa: 69ba ldr r2, [r7, #24]
  21573. 80096fc: 4013 ands r3, r2
  21574. 80096fe: 61bb str r3, [r7, #24]
  21575. temp |= (GPIO_Init->Speed << (position * 2U));
  21576. 8009700: 683b ldr r3, [r7, #0]
  21577. 8009702: 68da ldr r2, [r3, #12]
  21578. 8009704: 69fb ldr r3, [r7, #28]
  21579. 8009706: 005b lsls r3, r3, #1
  21580. 8009708: fa02 f303 lsl.w r3, r2, r3
  21581. 800970c: 69ba ldr r2, [r7, #24]
  21582. 800970e: 4313 orrs r3, r2
  21583. 8009710: 61bb str r3, [r7, #24]
  21584. GPIOx->OSPEEDR = temp;
  21585. 8009712: 687b ldr r3, [r7, #4]
  21586. 8009714: 69ba ldr r2, [r7, #24]
  21587. 8009716: 609a str r2, [r3, #8]
  21588. /* Configure the IO Output Type */
  21589. temp = GPIOx->OTYPER;
  21590. 8009718: 687b ldr r3, [r7, #4]
  21591. 800971a: 685b ldr r3, [r3, #4]
  21592. 800971c: 61bb str r3, [r7, #24]
  21593. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  21594. 800971e: 2201 movs r2, #1
  21595. 8009720: 69fb ldr r3, [r7, #28]
  21596. 8009722: fa02 f303 lsl.w r3, r2, r3
  21597. 8009726: 43db mvns r3, r3
  21598. 8009728: 69ba ldr r2, [r7, #24]
  21599. 800972a: 4013 ands r3, r2
  21600. 800972c: 61bb str r3, [r7, #24]
  21601. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  21602. 800972e: 683b ldr r3, [r7, #0]
  21603. 8009730: 685b ldr r3, [r3, #4]
  21604. 8009732: 091b lsrs r3, r3, #4
  21605. 8009734: f003 0201 and.w r2, r3, #1
  21606. 8009738: 69fb ldr r3, [r7, #28]
  21607. 800973a: fa02 f303 lsl.w r3, r2, r3
  21608. 800973e: 69ba ldr r2, [r7, #24]
  21609. 8009740: 4313 orrs r3, r2
  21610. 8009742: 61bb str r3, [r7, #24]
  21611. GPIOx->OTYPER = temp;
  21612. 8009744: 687b ldr r3, [r7, #4]
  21613. 8009746: 69ba ldr r2, [r7, #24]
  21614. 8009748: 605a str r2, [r3, #4]
  21615. }
  21616. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  21617. 800974a: 683b ldr r3, [r7, #0]
  21618. 800974c: 685b ldr r3, [r3, #4]
  21619. 800974e: f003 0303 and.w r3, r3, #3
  21620. 8009752: 2b03 cmp r3, #3
  21621. 8009754: d017 beq.n 8009786 <HAL_GPIO_Init+0xe2>
  21622. {
  21623. /* Check the Pull parameter */
  21624. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  21625. /* Activate the Pull-up or Pull down resistor for the current IO */
  21626. temp = GPIOx->PUPDR;
  21627. 8009756: 687b ldr r3, [r7, #4]
  21628. 8009758: 68db ldr r3, [r3, #12]
  21629. 800975a: 61bb str r3, [r7, #24]
  21630. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  21631. 800975c: 69fb ldr r3, [r7, #28]
  21632. 800975e: 005b lsls r3, r3, #1
  21633. 8009760: 2203 movs r2, #3
  21634. 8009762: fa02 f303 lsl.w r3, r2, r3
  21635. 8009766: 43db mvns r3, r3
  21636. 8009768: 69ba ldr r2, [r7, #24]
  21637. 800976a: 4013 ands r3, r2
  21638. 800976c: 61bb str r3, [r7, #24]
  21639. temp |= ((GPIO_Init->Pull) << (position * 2U));
  21640. 800976e: 683b ldr r3, [r7, #0]
  21641. 8009770: 689a ldr r2, [r3, #8]
  21642. 8009772: 69fb ldr r3, [r7, #28]
  21643. 8009774: 005b lsls r3, r3, #1
  21644. 8009776: fa02 f303 lsl.w r3, r2, r3
  21645. 800977a: 69ba ldr r2, [r7, #24]
  21646. 800977c: 4313 orrs r3, r2
  21647. 800977e: 61bb str r3, [r7, #24]
  21648. GPIOx->PUPDR = temp;
  21649. 8009780: 687b ldr r3, [r7, #4]
  21650. 8009782: 69ba ldr r2, [r7, #24]
  21651. 8009784: 60da str r2, [r3, #12]
  21652. }
  21653. /* In case of Alternate function mode selection */
  21654. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  21655. 8009786: 683b ldr r3, [r7, #0]
  21656. 8009788: 685b ldr r3, [r3, #4]
  21657. 800978a: f003 0303 and.w r3, r3, #3
  21658. 800978e: 2b02 cmp r3, #2
  21659. 8009790: d123 bne.n 80097da <HAL_GPIO_Init+0x136>
  21660. /* Check the Alternate function parameters */
  21661. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  21662. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  21663. /* Configure Alternate function mapped with the current IO */
  21664. temp = GPIOx->AFR[position >> 3U];
  21665. 8009792: 69fb ldr r3, [r7, #28]
  21666. 8009794: 08da lsrs r2, r3, #3
  21667. 8009796: 687b ldr r3, [r7, #4]
  21668. 8009798: 3208 adds r2, #8
  21669. 800979a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21670. 800979e: 61bb str r3, [r7, #24]
  21671. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  21672. 80097a0: 69fb ldr r3, [r7, #28]
  21673. 80097a2: f003 0307 and.w r3, r3, #7
  21674. 80097a6: 009b lsls r3, r3, #2
  21675. 80097a8: 220f movs r2, #15
  21676. 80097aa: fa02 f303 lsl.w r3, r2, r3
  21677. 80097ae: 43db mvns r3, r3
  21678. 80097b0: 69ba ldr r2, [r7, #24]
  21679. 80097b2: 4013 ands r3, r2
  21680. 80097b4: 61bb str r3, [r7, #24]
  21681. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  21682. 80097b6: 683b ldr r3, [r7, #0]
  21683. 80097b8: 691a ldr r2, [r3, #16]
  21684. 80097ba: 69fb ldr r3, [r7, #28]
  21685. 80097bc: f003 0307 and.w r3, r3, #7
  21686. 80097c0: 009b lsls r3, r3, #2
  21687. 80097c2: fa02 f303 lsl.w r3, r2, r3
  21688. 80097c6: 69ba ldr r2, [r7, #24]
  21689. 80097c8: 4313 orrs r3, r2
  21690. 80097ca: 61bb str r3, [r7, #24]
  21691. GPIOx->AFR[position >> 3U] = temp;
  21692. 80097cc: 69fb ldr r3, [r7, #28]
  21693. 80097ce: 08da lsrs r2, r3, #3
  21694. 80097d0: 687b ldr r3, [r7, #4]
  21695. 80097d2: 3208 adds r2, #8
  21696. 80097d4: 69b9 ldr r1, [r7, #24]
  21697. 80097d6: f843 1022 str.w r1, [r3, r2, lsl #2]
  21698. }
  21699. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  21700. temp = GPIOx->MODER;
  21701. 80097da: 687b ldr r3, [r7, #4]
  21702. 80097dc: 681b ldr r3, [r3, #0]
  21703. 80097de: 61bb str r3, [r7, #24]
  21704. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  21705. 80097e0: 69fb ldr r3, [r7, #28]
  21706. 80097e2: 005b lsls r3, r3, #1
  21707. 80097e4: 2203 movs r2, #3
  21708. 80097e6: fa02 f303 lsl.w r3, r2, r3
  21709. 80097ea: 43db mvns r3, r3
  21710. 80097ec: 69ba ldr r2, [r7, #24]
  21711. 80097ee: 4013 ands r3, r2
  21712. 80097f0: 61bb str r3, [r7, #24]
  21713. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  21714. 80097f2: 683b ldr r3, [r7, #0]
  21715. 80097f4: 685b ldr r3, [r3, #4]
  21716. 80097f6: f003 0203 and.w r2, r3, #3
  21717. 80097fa: 69fb ldr r3, [r7, #28]
  21718. 80097fc: 005b lsls r3, r3, #1
  21719. 80097fe: fa02 f303 lsl.w r3, r2, r3
  21720. 8009802: 69ba ldr r2, [r7, #24]
  21721. 8009804: 4313 orrs r3, r2
  21722. 8009806: 61bb str r3, [r7, #24]
  21723. GPIOx->MODER = temp;
  21724. 8009808: 687b ldr r3, [r7, #4]
  21725. 800980a: 69ba ldr r2, [r7, #24]
  21726. 800980c: 601a str r2, [r3, #0]
  21727. /*--------------------- EXTI Mode Configuration ------------------------*/
  21728. /* Configure the External Interrupt or event for the current IO */
  21729. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  21730. 800980e: 683b ldr r3, [r7, #0]
  21731. 8009810: 685b ldr r3, [r3, #4]
  21732. 8009812: f403 3340 and.w r3, r3, #196608 @ 0x30000
  21733. 8009816: 2b00 cmp r3, #0
  21734. 8009818: f000 80e0 beq.w 80099dc <HAL_GPIO_Init+0x338>
  21735. {
  21736. /* Enable SYSCFG Clock */
  21737. __HAL_RCC_SYSCFG_CLK_ENABLE();
  21738. 800981c: 4b2f ldr r3, [pc, #188] @ (80098dc <HAL_GPIO_Init+0x238>)
  21739. 800981e: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  21740. 8009822: 4a2e ldr r2, [pc, #184] @ (80098dc <HAL_GPIO_Init+0x238>)
  21741. 8009824: f043 0302 orr.w r3, r3, #2
  21742. 8009828: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  21743. 800982c: 4b2b ldr r3, [pc, #172] @ (80098dc <HAL_GPIO_Init+0x238>)
  21744. 800982e: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  21745. 8009832: f003 0302 and.w r3, r3, #2
  21746. 8009836: 60fb str r3, [r7, #12]
  21747. 8009838: 68fb ldr r3, [r7, #12]
  21748. temp = SYSCFG->EXTICR[position >> 2U];
  21749. 800983a: 4a29 ldr r2, [pc, #164] @ (80098e0 <HAL_GPIO_Init+0x23c>)
  21750. 800983c: 69fb ldr r3, [r7, #28]
  21751. 800983e: 089b lsrs r3, r3, #2
  21752. 8009840: 3302 adds r3, #2
  21753. 8009842: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  21754. 8009846: 61bb str r3, [r7, #24]
  21755. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  21756. 8009848: 69fb ldr r3, [r7, #28]
  21757. 800984a: f003 0303 and.w r3, r3, #3
  21758. 800984e: 009b lsls r3, r3, #2
  21759. 8009850: 220f movs r2, #15
  21760. 8009852: fa02 f303 lsl.w r3, r2, r3
  21761. 8009856: 43db mvns r3, r3
  21762. 8009858: 69ba ldr r2, [r7, #24]
  21763. 800985a: 4013 ands r3, r2
  21764. 800985c: 61bb str r3, [r7, #24]
  21765. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  21766. 800985e: 687b ldr r3, [r7, #4]
  21767. 8009860: 4a20 ldr r2, [pc, #128] @ (80098e4 <HAL_GPIO_Init+0x240>)
  21768. 8009862: 4293 cmp r3, r2
  21769. 8009864: d052 beq.n 800990c <HAL_GPIO_Init+0x268>
  21770. 8009866: 687b ldr r3, [r7, #4]
  21771. 8009868: 4a1f ldr r2, [pc, #124] @ (80098e8 <HAL_GPIO_Init+0x244>)
  21772. 800986a: 4293 cmp r3, r2
  21773. 800986c: d031 beq.n 80098d2 <HAL_GPIO_Init+0x22e>
  21774. 800986e: 687b ldr r3, [r7, #4]
  21775. 8009870: 4a1e ldr r2, [pc, #120] @ (80098ec <HAL_GPIO_Init+0x248>)
  21776. 8009872: 4293 cmp r3, r2
  21777. 8009874: d02b beq.n 80098ce <HAL_GPIO_Init+0x22a>
  21778. 8009876: 687b ldr r3, [r7, #4]
  21779. 8009878: 4a1d ldr r2, [pc, #116] @ (80098f0 <HAL_GPIO_Init+0x24c>)
  21780. 800987a: 4293 cmp r3, r2
  21781. 800987c: d025 beq.n 80098ca <HAL_GPIO_Init+0x226>
  21782. 800987e: 687b ldr r3, [r7, #4]
  21783. 8009880: 4a1c ldr r2, [pc, #112] @ (80098f4 <HAL_GPIO_Init+0x250>)
  21784. 8009882: 4293 cmp r3, r2
  21785. 8009884: d01f beq.n 80098c6 <HAL_GPIO_Init+0x222>
  21786. 8009886: 687b ldr r3, [r7, #4]
  21787. 8009888: 4a1b ldr r2, [pc, #108] @ (80098f8 <HAL_GPIO_Init+0x254>)
  21788. 800988a: 4293 cmp r3, r2
  21789. 800988c: d019 beq.n 80098c2 <HAL_GPIO_Init+0x21e>
  21790. 800988e: 687b ldr r3, [r7, #4]
  21791. 8009890: 4a1a ldr r2, [pc, #104] @ (80098fc <HAL_GPIO_Init+0x258>)
  21792. 8009892: 4293 cmp r3, r2
  21793. 8009894: d013 beq.n 80098be <HAL_GPIO_Init+0x21a>
  21794. 8009896: 687b ldr r3, [r7, #4]
  21795. 8009898: 4a19 ldr r2, [pc, #100] @ (8009900 <HAL_GPIO_Init+0x25c>)
  21796. 800989a: 4293 cmp r3, r2
  21797. 800989c: d00d beq.n 80098ba <HAL_GPIO_Init+0x216>
  21798. 800989e: 687b ldr r3, [r7, #4]
  21799. 80098a0: 4a18 ldr r2, [pc, #96] @ (8009904 <HAL_GPIO_Init+0x260>)
  21800. 80098a2: 4293 cmp r3, r2
  21801. 80098a4: d007 beq.n 80098b6 <HAL_GPIO_Init+0x212>
  21802. 80098a6: 687b ldr r3, [r7, #4]
  21803. 80098a8: 4a17 ldr r2, [pc, #92] @ (8009908 <HAL_GPIO_Init+0x264>)
  21804. 80098aa: 4293 cmp r3, r2
  21805. 80098ac: d101 bne.n 80098b2 <HAL_GPIO_Init+0x20e>
  21806. 80098ae: 2309 movs r3, #9
  21807. 80098b0: e02d b.n 800990e <HAL_GPIO_Init+0x26a>
  21808. 80098b2: 230a movs r3, #10
  21809. 80098b4: e02b b.n 800990e <HAL_GPIO_Init+0x26a>
  21810. 80098b6: 2308 movs r3, #8
  21811. 80098b8: e029 b.n 800990e <HAL_GPIO_Init+0x26a>
  21812. 80098ba: 2307 movs r3, #7
  21813. 80098bc: e027 b.n 800990e <HAL_GPIO_Init+0x26a>
  21814. 80098be: 2306 movs r3, #6
  21815. 80098c0: e025 b.n 800990e <HAL_GPIO_Init+0x26a>
  21816. 80098c2: 2305 movs r3, #5
  21817. 80098c4: e023 b.n 800990e <HAL_GPIO_Init+0x26a>
  21818. 80098c6: 2304 movs r3, #4
  21819. 80098c8: e021 b.n 800990e <HAL_GPIO_Init+0x26a>
  21820. 80098ca: 2303 movs r3, #3
  21821. 80098cc: e01f b.n 800990e <HAL_GPIO_Init+0x26a>
  21822. 80098ce: 2302 movs r3, #2
  21823. 80098d0: e01d b.n 800990e <HAL_GPIO_Init+0x26a>
  21824. 80098d2: 2301 movs r3, #1
  21825. 80098d4: e01b b.n 800990e <HAL_GPIO_Init+0x26a>
  21826. 80098d6: bf00 nop
  21827. 80098d8: 58000080 .word 0x58000080
  21828. 80098dc: 58024400 .word 0x58024400
  21829. 80098e0: 58000400 .word 0x58000400
  21830. 80098e4: 58020000 .word 0x58020000
  21831. 80098e8: 58020400 .word 0x58020400
  21832. 80098ec: 58020800 .word 0x58020800
  21833. 80098f0: 58020c00 .word 0x58020c00
  21834. 80098f4: 58021000 .word 0x58021000
  21835. 80098f8: 58021400 .word 0x58021400
  21836. 80098fc: 58021800 .word 0x58021800
  21837. 8009900: 58021c00 .word 0x58021c00
  21838. 8009904: 58022000 .word 0x58022000
  21839. 8009908: 58022400 .word 0x58022400
  21840. 800990c: 2300 movs r3, #0
  21841. 800990e: 69fa ldr r2, [r7, #28]
  21842. 8009910: f002 0203 and.w r2, r2, #3
  21843. 8009914: 0092 lsls r2, r2, #2
  21844. 8009916: 4093 lsls r3, r2
  21845. 8009918: 69ba ldr r2, [r7, #24]
  21846. 800991a: 4313 orrs r3, r2
  21847. 800991c: 61bb str r3, [r7, #24]
  21848. SYSCFG->EXTICR[position >> 2U] = temp;
  21849. 800991e: 4938 ldr r1, [pc, #224] @ (8009a00 <HAL_GPIO_Init+0x35c>)
  21850. 8009920: 69fb ldr r3, [r7, #28]
  21851. 8009922: 089b lsrs r3, r3, #2
  21852. 8009924: 3302 adds r3, #2
  21853. 8009926: 69ba ldr r2, [r7, #24]
  21854. 8009928: f841 2023 str.w r2, [r1, r3, lsl #2]
  21855. /* Clear Rising Falling edge configuration */
  21856. temp = EXTI->RTSR1;
  21857. 800992c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  21858. 8009930: 681b ldr r3, [r3, #0]
  21859. 8009932: 61bb str r3, [r7, #24]
  21860. temp &= ~(iocurrent);
  21861. 8009934: 693b ldr r3, [r7, #16]
  21862. 8009936: 43db mvns r3, r3
  21863. 8009938: 69ba ldr r2, [r7, #24]
  21864. 800993a: 4013 ands r3, r2
  21865. 800993c: 61bb str r3, [r7, #24]
  21866. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  21867. 800993e: 683b ldr r3, [r7, #0]
  21868. 8009940: 685b ldr r3, [r3, #4]
  21869. 8009942: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  21870. 8009946: 2b00 cmp r3, #0
  21871. 8009948: d003 beq.n 8009952 <HAL_GPIO_Init+0x2ae>
  21872. {
  21873. temp |= iocurrent;
  21874. 800994a: 69ba ldr r2, [r7, #24]
  21875. 800994c: 693b ldr r3, [r7, #16]
  21876. 800994e: 4313 orrs r3, r2
  21877. 8009950: 61bb str r3, [r7, #24]
  21878. }
  21879. EXTI->RTSR1 = temp;
  21880. 8009952: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  21881. 8009956: 69bb ldr r3, [r7, #24]
  21882. 8009958: 6013 str r3, [r2, #0]
  21883. temp = EXTI->FTSR1;
  21884. 800995a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  21885. 800995e: 685b ldr r3, [r3, #4]
  21886. 8009960: 61bb str r3, [r7, #24]
  21887. temp &= ~(iocurrent);
  21888. 8009962: 693b ldr r3, [r7, #16]
  21889. 8009964: 43db mvns r3, r3
  21890. 8009966: 69ba ldr r2, [r7, #24]
  21891. 8009968: 4013 ands r3, r2
  21892. 800996a: 61bb str r3, [r7, #24]
  21893. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  21894. 800996c: 683b ldr r3, [r7, #0]
  21895. 800996e: 685b ldr r3, [r3, #4]
  21896. 8009970: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  21897. 8009974: 2b00 cmp r3, #0
  21898. 8009976: d003 beq.n 8009980 <HAL_GPIO_Init+0x2dc>
  21899. {
  21900. temp |= iocurrent;
  21901. 8009978: 69ba ldr r2, [r7, #24]
  21902. 800997a: 693b ldr r3, [r7, #16]
  21903. 800997c: 4313 orrs r3, r2
  21904. 800997e: 61bb str r3, [r7, #24]
  21905. }
  21906. EXTI->FTSR1 = temp;
  21907. 8009980: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  21908. 8009984: 69bb ldr r3, [r7, #24]
  21909. 8009986: 6053 str r3, [r2, #4]
  21910. temp = EXTI_CurrentCPU->EMR1;
  21911. 8009988: 697b ldr r3, [r7, #20]
  21912. 800998a: 685b ldr r3, [r3, #4]
  21913. 800998c: 61bb str r3, [r7, #24]
  21914. temp &= ~(iocurrent);
  21915. 800998e: 693b ldr r3, [r7, #16]
  21916. 8009990: 43db mvns r3, r3
  21917. 8009992: 69ba ldr r2, [r7, #24]
  21918. 8009994: 4013 ands r3, r2
  21919. 8009996: 61bb str r3, [r7, #24]
  21920. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  21921. 8009998: 683b ldr r3, [r7, #0]
  21922. 800999a: 685b ldr r3, [r3, #4]
  21923. 800999c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  21924. 80099a0: 2b00 cmp r3, #0
  21925. 80099a2: d003 beq.n 80099ac <HAL_GPIO_Init+0x308>
  21926. {
  21927. temp |= iocurrent;
  21928. 80099a4: 69ba ldr r2, [r7, #24]
  21929. 80099a6: 693b ldr r3, [r7, #16]
  21930. 80099a8: 4313 orrs r3, r2
  21931. 80099aa: 61bb str r3, [r7, #24]
  21932. }
  21933. EXTI_CurrentCPU->EMR1 = temp;
  21934. 80099ac: 697b ldr r3, [r7, #20]
  21935. 80099ae: 69ba ldr r2, [r7, #24]
  21936. 80099b0: 605a str r2, [r3, #4]
  21937. /* Clear EXTI line configuration */
  21938. temp = EXTI_CurrentCPU->IMR1;
  21939. 80099b2: 697b ldr r3, [r7, #20]
  21940. 80099b4: 681b ldr r3, [r3, #0]
  21941. 80099b6: 61bb str r3, [r7, #24]
  21942. temp &= ~(iocurrent);
  21943. 80099b8: 693b ldr r3, [r7, #16]
  21944. 80099ba: 43db mvns r3, r3
  21945. 80099bc: 69ba ldr r2, [r7, #24]
  21946. 80099be: 4013 ands r3, r2
  21947. 80099c0: 61bb str r3, [r7, #24]
  21948. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  21949. 80099c2: 683b ldr r3, [r7, #0]
  21950. 80099c4: 685b ldr r3, [r3, #4]
  21951. 80099c6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  21952. 80099ca: 2b00 cmp r3, #0
  21953. 80099cc: d003 beq.n 80099d6 <HAL_GPIO_Init+0x332>
  21954. {
  21955. temp |= iocurrent;
  21956. 80099ce: 69ba ldr r2, [r7, #24]
  21957. 80099d0: 693b ldr r3, [r7, #16]
  21958. 80099d2: 4313 orrs r3, r2
  21959. 80099d4: 61bb str r3, [r7, #24]
  21960. }
  21961. EXTI_CurrentCPU->IMR1 = temp;
  21962. 80099d6: 697b ldr r3, [r7, #20]
  21963. 80099d8: 69ba ldr r2, [r7, #24]
  21964. 80099da: 601a str r2, [r3, #0]
  21965. }
  21966. }
  21967. position++;
  21968. 80099dc: 69fb ldr r3, [r7, #28]
  21969. 80099de: 3301 adds r3, #1
  21970. 80099e0: 61fb str r3, [r7, #28]
  21971. while (((GPIO_Init->Pin) >> position) != 0x00U)
  21972. 80099e2: 683b ldr r3, [r7, #0]
  21973. 80099e4: 681a ldr r2, [r3, #0]
  21974. 80099e6: 69fb ldr r3, [r7, #28]
  21975. 80099e8: fa22 f303 lsr.w r3, r2, r3
  21976. 80099ec: 2b00 cmp r3, #0
  21977. 80099ee: f47f ae63 bne.w 80096b8 <HAL_GPIO_Init+0x14>
  21978. }
  21979. }
  21980. 80099f2: bf00 nop
  21981. 80099f4: bf00 nop
  21982. 80099f6: 3724 adds r7, #36 @ 0x24
  21983. 80099f8: 46bd mov sp, r7
  21984. 80099fa: f85d 7b04 ldr.w r7, [sp], #4
  21985. 80099fe: 4770 bx lr
  21986. 8009a00: 58000400 .word 0x58000400
  21987. 08009a04 <HAL_GPIO_WritePin>:
  21988. * @arg GPIO_PIN_RESET: to clear the port pin
  21989. * @arg GPIO_PIN_SET: to set the port pin
  21990. * @retval None
  21991. */
  21992. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  21993. {
  21994. 8009a04: b480 push {r7}
  21995. 8009a06: b083 sub sp, #12
  21996. 8009a08: af00 add r7, sp, #0
  21997. 8009a0a: 6078 str r0, [r7, #4]
  21998. 8009a0c: 460b mov r3, r1
  21999. 8009a0e: 807b strh r3, [r7, #2]
  22000. 8009a10: 4613 mov r3, r2
  22001. 8009a12: 707b strb r3, [r7, #1]
  22002. /* Check the parameters */
  22003. assert_param(IS_GPIO_PIN(GPIO_Pin));
  22004. assert_param(IS_GPIO_PIN_ACTION(PinState));
  22005. if (PinState != GPIO_PIN_RESET)
  22006. 8009a14: 787b ldrb r3, [r7, #1]
  22007. 8009a16: 2b00 cmp r3, #0
  22008. 8009a18: d003 beq.n 8009a22 <HAL_GPIO_WritePin+0x1e>
  22009. {
  22010. GPIOx->BSRR = GPIO_Pin;
  22011. 8009a1a: 887a ldrh r2, [r7, #2]
  22012. 8009a1c: 687b ldr r3, [r7, #4]
  22013. 8009a1e: 619a str r2, [r3, #24]
  22014. }
  22015. else
  22016. {
  22017. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  22018. }
  22019. }
  22020. 8009a20: e003 b.n 8009a2a <HAL_GPIO_WritePin+0x26>
  22021. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  22022. 8009a22: 887b ldrh r3, [r7, #2]
  22023. 8009a24: 041a lsls r2, r3, #16
  22024. 8009a26: 687b ldr r3, [r7, #4]
  22025. 8009a28: 619a str r2, [r3, #24]
  22026. }
  22027. 8009a2a: bf00 nop
  22028. 8009a2c: 370c adds r7, #12
  22029. 8009a2e: 46bd mov sp, r7
  22030. 8009a30: f85d 7b04 ldr.w r7, [sp], #4
  22031. 8009a34: 4770 bx lr
  22032. ...
  22033. 08009a38 <HAL_PWREx_ConfigSupply>:
  22034. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  22035. * regulator.
  22036. * @retval HAL status.
  22037. */
  22038. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  22039. {
  22040. 8009a38: b580 push {r7, lr}
  22041. 8009a3a: b084 sub sp, #16
  22042. 8009a3c: af00 add r7, sp, #0
  22043. 8009a3e: 6078 str r0, [r7, #4]
  22044. /* Check the parameters */
  22045. assert_param (IS_PWR_SUPPLY (SupplySource));
  22046. /* Check if supply source was configured */
  22047. #if defined (PWR_FLAG_SCUEN)
  22048. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  22049. 8009a40: 4b19 ldr r3, [pc, #100] @ (8009aa8 <HAL_PWREx_ConfigSupply+0x70>)
  22050. 8009a42: 68db ldr r3, [r3, #12]
  22051. 8009a44: f003 0304 and.w r3, r3, #4
  22052. 8009a48: 2b04 cmp r3, #4
  22053. 8009a4a: d00a beq.n 8009a62 <HAL_PWREx_ConfigSupply+0x2a>
  22054. #else
  22055. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  22056. #endif /* defined (PWR_FLAG_SCUEN) */
  22057. {
  22058. /* Check supply configuration */
  22059. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  22060. 8009a4c: 4b16 ldr r3, [pc, #88] @ (8009aa8 <HAL_PWREx_ConfigSupply+0x70>)
  22061. 8009a4e: 68db ldr r3, [r3, #12]
  22062. 8009a50: f003 0307 and.w r3, r3, #7
  22063. 8009a54: 687a ldr r2, [r7, #4]
  22064. 8009a56: 429a cmp r2, r3
  22065. 8009a58: d001 beq.n 8009a5e <HAL_PWREx_ConfigSupply+0x26>
  22066. {
  22067. /* Supply configuration update locked, can't apply a new supply config */
  22068. return HAL_ERROR;
  22069. 8009a5a: 2301 movs r3, #1
  22070. 8009a5c: e01f b.n 8009a9e <HAL_PWREx_ConfigSupply+0x66>
  22071. else
  22072. {
  22073. /* Supply configuration update locked, but new supply configuration
  22074. matches with old supply configuration : nothing to do
  22075. */
  22076. return HAL_OK;
  22077. 8009a5e: 2300 movs r3, #0
  22078. 8009a60: e01d b.n 8009a9e <HAL_PWREx_ConfigSupply+0x66>
  22079. }
  22080. }
  22081. /* Set the power supply configuration */
  22082. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  22083. 8009a62: 4b11 ldr r3, [pc, #68] @ (8009aa8 <HAL_PWREx_ConfigSupply+0x70>)
  22084. 8009a64: 68db ldr r3, [r3, #12]
  22085. 8009a66: f023 0207 bic.w r2, r3, #7
  22086. 8009a6a: 490f ldr r1, [pc, #60] @ (8009aa8 <HAL_PWREx_ConfigSupply+0x70>)
  22087. 8009a6c: 687b ldr r3, [r7, #4]
  22088. 8009a6e: 4313 orrs r3, r2
  22089. 8009a70: 60cb str r3, [r1, #12]
  22090. /* Get tick */
  22091. tickstart = HAL_GetTick ();
  22092. 8009a72: f7fb fae7 bl 8005044 <HAL_GetTick>
  22093. 8009a76: 60f8 str r0, [r7, #12]
  22094. /* Wait till voltage level flag is set */
  22095. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  22096. 8009a78: e009 b.n 8009a8e <HAL_PWREx_ConfigSupply+0x56>
  22097. {
  22098. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  22099. 8009a7a: f7fb fae3 bl 8005044 <HAL_GetTick>
  22100. 8009a7e: 4602 mov r2, r0
  22101. 8009a80: 68fb ldr r3, [r7, #12]
  22102. 8009a82: 1ad3 subs r3, r2, r3
  22103. 8009a84: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  22104. 8009a88: d901 bls.n 8009a8e <HAL_PWREx_ConfigSupply+0x56>
  22105. {
  22106. return HAL_ERROR;
  22107. 8009a8a: 2301 movs r3, #1
  22108. 8009a8c: e007 b.n 8009a9e <HAL_PWREx_ConfigSupply+0x66>
  22109. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  22110. 8009a8e: 4b06 ldr r3, [pc, #24] @ (8009aa8 <HAL_PWREx_ConfigSupply+0x70>)
  22111. 8009a90: 685b ldr r3, [r3, #4]
  22112. 8009a92: f403 5300 and.w r3, r3, #8192 @ 0x2000
  22113. 8009a96: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  22114. 8009a9a: d1ee bne.n 8009a7a <HAL_PWREx_ConfigSupply+0x42>
  22115. }
  22116. }
  22117. }
  22118. #endif /* defined (SMPS) */
  22119. return HAL_OK;
  22120. 8009a9c: 2300 movs r3, #0
  22121. }
  22122. 8009a9e: 4618 mov r0, r3
  22123. 8009aa0: 3710 adds r7, #16
  22124. 8009aa2: 46bd mov sp, r7
  22125. 8009aa4: bd80 pop {r7, pc}
  22126. 8009aa6: bf00 nop
  22127. 8009aa8: 58024800 .word 0x58024800
  22128. 08009aac <HAL_RCC_OscConfig>:
  22129. * supported by this function. User should request a transition to HSE Off
  22130. * first and then HSE On or HSE Bypass.
  22131. * @retval HAL status
  22132. */
  22133. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  22134. {
  22135. 8009aac: b580 push {r7, lr}
  22136. 8009aae: b08c sub sp, #48 @ 0x30
  22137. 8009ab0: af00 add r7, sp, #0
  22138. 8009ab2: 6078 str r0, [r7, #4]
  22139. uint32_t tickstart;
  22140. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  22141. /* Check Null pointer */
  22142. if (RCC_OscInitStruct == NULL)
  22143. 8009ab4: 687b ldr r3, [r7, #4]
  22144. 8009ab6: 2b00 cmp r3, #0
  22145. 8009ab8: d102 bne.n 8009ac0 <HAL_RCC_OscConfig+0x14>
  22146. {
  22147. return HAL_ERROR;
  22148. 8009aba: 2301 movs r3, #1
  22149. 8009abc: f000 bc48 b.w 800a350 <HAL_RCC_OscConfig+0x8a4>
  22150. }
  22151. /* Check the parameters */
  22152. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  22153. /*------------------------------- HSE Configuration ------------------------*/
  22154. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  22155. 8009ac0: 687b ldr r3, [r7, #4]
  22156. 8009ac2: 681b ldr r3, [r3, #0]
  22157. 8009ac4: f003 0301 and.w r3, r3, #1
  22158. 8009ac8: 2b00 cmp r3, #0
  22159. 8009aca: f000 8088 beq.w 8009bde <HAL_RCC_OscConfig+0x132>
  22160. {
  22161. /* Check the parameters */
  22162. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  22163. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  22164. 8009ace: 4b99 ldr r3, [pc, #612] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22165. 8009ad0: 691b ldr r3, [r3, #16]
  22166. 8009ad2: f003 0338 and.w r3, r3, #56 @ 0x38
  22167. 8009ad6: 62fb str r3, [r7, #44] @ 0x2c
  22168. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  22169. 8009ad8: 4b96 ldr r3, [pc, #600] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22170. 8009ada: 6a9b ldr r3, [r3, #40] @ 0x28
  22171. 8009adc: 62bb str r3, [r7, #40] @ 0x28
  22172. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  22173. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  22174. 8009ade: 6afb ldr r3, [r7, #44] @ 0x2c
  22175. 8009ae0: 2b10 cmp r3, #16
  22176. 8009ae2: d007 beq.n 8009af4 <HAL_RCC_OscConfig+0x48>
  22177. 8009ae4: 6afb ldr r3, [r7, #44] @ 0x2c
  22178. 8009ae6: 2b18 cmp r3, #24
  22179. 8009ae8: d111 bne.n 8009b0e <HAL_RCC_OscConfig+0x62>
  22180. 8009aea: 6abb ldr r3, [r7, #40] @ 0x28
  22181. 8009aec: f003 0303 and.w r3, r3, #3
  22182. 8009af0: 2b02 cmp r3, #2
  22183. 8009af2: d10c bne.n 8009b0e <HAL_RCC_OscConfig+0x62>
  22184. {
  22185. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  22186. 8009af4: 4b8f ldr r3, [pc, #572] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22187. 8009af6: 681b ldr r3, [r3, #0]
  22188. 8009af8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22189. 8009afc: 2b00 cmp r3, #0
  22190. 8009afe: d06d beq.n 8009bdc <HAL_RCC_OscConfig+0x130>
  22191. 8009b00: 687b ldr r3, [r7, #4]
  22192. 8009b02: 685b ldr r3, [r3, #4]
  22193. 8009b04: 2b00 cmp r3, #0
  22194. 8009b06: d169 bne.n 8009bdc <HAL_RCC_OscConfig+0x130>
  22195. {
  22196. return HAL_ERROR;
  22197. 8009b08: 2301 movs r3, #1
  22198. 8009b0a: f000 bc21 b.w 800a350 <HAL_RCC_OscConfig+0x8a4>
  22199. }
  22200. }
  22201. else
  22202. {
  22203. /* Set the new HSE configuration ---------------------------------------*/
  22204. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  22205. 8009b0e: 687b ldr r3, [r7, #4]
  22206. 8009b10: 685b ldr r3, [r3, #4]
  22207. 8009b12: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  22208. 8009b16: d106 bne.n 8009b26 <HAL_RCC_OscConfig+0x7a>
  22209. 8009b18: 4b86 ldr r3, [pc, #536] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22210. 8009b1a: 681b ldr r3, [r3, #0]
  22211. 8009b1c: 4a85 ldr r2, [pc, #532] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22212. 8009b1e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22213. 8009b22: 6013 str r3, [r2, #0]
  22214. 8009b24: e02e b.n 8009b84 <HAL_RCC_OscConfig+0xd8>
  22215. 8009b26: 687b ldr r3, [r7, #4]
  22216. 8009b28: 685b ldr r3, [r3, #4]
  22217. 8009b2a: 2b00 cmp r3, #0
  22218. 8009b2c: d10c bne.n 8009b48 <HAL_RCC_OscConfig+0x9c>
  22219. 8009b2e: 4b81 ldr r3, [pc, #516] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22220. 8009b30: 681b ldr r3, [r3, #0]
  22221. 8009b32: 4a80 ldr r2, [pc, #512] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22222. 8009b34: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22223. 8009b38: 6013 str r3, [r2, #0]
  22224. 8009b3a: 4b7e ldr r3, [pc, #504] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22225. 8009b3c: 681b ldr r3, [r3, #0]
  22226. 8009b3e: 4a7d ldr r2, [pc, #500] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22227. 8009b40: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  22228. 8009b44: 6013 str r3, [r2, #0]
  22229. 8009b46: e01d b.n 8009b84 <HAL_RCC_OscConfig+0xd8>
  22230. 8009b48: 687b ldr r3, [r7, #4]
  22231. 8009b4a: 685b ldr r3, [r3, #4]
  22232. 8009b4c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  22233. 8009b50: d10c bne.n 8009b6c <HAL_RCC_OscConfig+0xc0>
  22234. 8009b52: 4b78 ldr r3, [pc, #480] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22235. 8009b54: 681b ldr r3, [r3, #0]
  22236. 8009b56: 4a77 ldr r2, [pc, #476] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22237. 8009b58: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  22238. 8009b5c: 6013 str r3, [r2, #0]
  22239. 8009b5e: 4b75 ldr r3, [pc, #468] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22240. 8009b60: 681b ldr r3, [r3, #0]
  22241. 8009b62: 4a74 ldr r2, [pc, #464] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22242. 8009b64: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22243. 8009b68: 6013 str r3, [r2, #0]
  22244. 8009b6a: e00b b.n 8009b84 <HAL_RCC_OscConfig+0xd8>
  22245. 8009b6c: 4b71 ldr r3, [pc, #452] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22246. 8009b6e: 681b ldr r3, [r3, #0]
  22247. 8009b70: 4a70 ldr r2, [pc, #448] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22248. 8009b72: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22249. 8009b76: 6013 str r3, [r2, #0]
  22250. 8009b78: 4b6e ldr r3, [pc, #440] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22251. 8009b7a: 681b ldr r3, [r3, #0]
  22252. 8009b7c: 4a6d ldr r2, [pc, #436] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22253. 8009b7e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  22254. 8009b82: 6013 str r3, [r2, #0]
  22255. /* Check the HSE State */
  22256. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  22257. 8009b84: 687b ldr r3, [r7, #4]
  22258. 8009b86: 685b ldr r3, [r3, #4]
  22259. 8009b88: 2b00 cmp r3, #0
  22260. 8009b8a: d013 beq.n 8009bb4 <HAL_RCC_OscConfig+0x108>
  22261. {
  22262. /* Get Start Tick*/
  22263. tickstart = HAL_GetTick();
  22264. 8009b8c: f7fb fa5a bl 8005044 <HAL_GetTick>
  22265. 8009b90: 6278 str r0, [r7, #36] @ 0x24
  22266. /* Wait till HSE is ready */
  22267. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  22268. 8009b92: e008 b.n 8009ba6 <HAL_RCC_OscConfig+0xfa>
  22269. {
  22270. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  22271. 8009b94: f7fb fa56 bl 8005044 <HAL_GetTick>
  22272. 8009b98: 4602 mov r2, r0
  22273. 8009b9a: 6a7b ldr r3, [r7, #36] @ 0x24
  22274. 8009b9c: 1ad3 subs r3, r2, r3
  22275. 8009b9e: 2b64 cmp r3, #100 @ 0x64
  22276. 8009ba0: d901 bls.n 8009ba6 <HAL_RCC_OscConfig+0xfa>
  22277. {
  22278. return HAL_TIMEOUT;
  22279. 8009ba2: 2303 movs r3, #3
  22280. 8009ba4: e3d4 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22281. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  22282. 8009ba6: 4b63 ldr r3, [pc, #396] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22283. 8009ba8: 681b ldr r3, [r3, #0]
  22284. 8009baa: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22285. 8009bae: 2b00 cmp r3, #0
  22286. 8009bb0: d0f0 beq.n 8009b94 <HAL_RCC_OscConfig+0xe8>
  22287. 8009bb2: e014 b.n 8009bde <HAL_RCC_OscConfig+0x132>
  22288. }
  22289. }
  22290. else
  22291. {
  22292. /* Get Start Tick*/
  22293. tickstart = HAL_GetTick();
  22294. 8009bb4: f7fb fa46 bl 8005044 <HAL_GetTick>
  22295. 8009bb8: 6278 str r0, [r7, #36] @ 0x24
  22296. /* Wait till HSE is disabled */
  22297. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  22298. 8009bba: e008 b.n 8009bce <HAL_RCC_OscConfig+0x122>
  22299. {
  22300. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  22301. 8009bbc: f7fb fa42 bl 8005044 <HAL_GetTick>
  22302. 8009bc0: 4602 mov r2, r0
  22303. 8009bc2: 6a7b ldr r3, [r7, #36] @ 0x24
  22304. 8009bc4: 1ad3 subs r3, r2, r3
  22305. 8009bc6: 2b64 cmp r3, #100 @ 0x64
  22306. 8009bc8: d901 bls.n 8009bce <HAL_RCC_OscConfig+0x122>
  22307. {
  22308. return HAL_TIMEOUT;
  22309. 8009bca: 2303 movs r3, #3
  22310. 8009bcc: e3c0 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22311. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  22312. 8009bce: 4b59 ldr r3, [pc, #356] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22313. 8009bd0: 681b ldr r3, [r3, #0]
  22314. 8009bd2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22315. 8009bd6: 2b00 cmp r3, #0
  22316. 8009bd8: d1f0 bne.n 8009bbc <HAL_RCC_OscConfig+0x110>
  22317. 8009bda: e000 b.n 8009bde <HAL_RCC_OscConfig+0x132>
  22318. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  22319. 8009bdc: bf00 nop
  22320. }
  22321. }
  22322. }
  22323. }
  22324. /*----------------------------- HSI Configuration --------------------------*/
  22325. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  22326. 8009bde: 687b ldr r3, [r7, #4]
  22327. 8009be0: 681b ldr r3, [r3, #0]
  22328. 8009be2: f003 0302 and.w r3, r3, #2
  22329. 8009be6: 2b00 cmp r3, #0
  22330. 8009be8: f000 80ca beq.w 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22331. /* Check the parameters */
  22332. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  22333. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  22334. /* When the HSI is used as system clock it will not be disabled */
  22335. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  22336. 8009bec: 4b51 ldr r3, [pc, #324] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22337. 8009bee: 691b ldr r3, [r3, #16]
  22338. 8009bf0: f003 0338 and.w r3, r3, #56 @ 0x38
  22339. 8009bf4: 623b str r3, [r7, #32]
  22340. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  22341. 8009bf6: 4b4f ldr r3, [pc, #316] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22342. 8009bf8: 6a9b ldr r3, [r3, #40] @ 0x28
  22343. 8009bfa: 61fb str r3, [r7, #28]
  22344. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  22345. 8009bfc: 6a3b ldr r3, [r7, #32]
  22346. 8009bfe: 2b00 cmp r3, #0
  22347. 8009c00: d007 beq.n 8009c12 <HAL_RCC_OscConfig+0x166>
  22348. 8009c02: 6a3b ldr r3, [r7, #32]
  22349. 8009c04: 2b18 cmp r3, #24
  22350. 8009c06: d156 bne.n 8009cb6 <HAL_RCC_OscConfig+0x20a>
  22351. 8009c08: 69fb ldr r3, [r7, #28]
  22352. 8009c0a: f003 0303 and.w r3, r3, #3
  22353. 8009c0e: 2b00 cmp r3, #0
  22354. 8009c10: d151 bne.n 8009cb6 <HAL_RCC_OscConfig+0x20a>
  22355. {
  22356. /* When HSI is used as system clock it will not be disabled */
  22357. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22358. 8009c12: 4b48 ldr r3, [pc, #288] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22359. 8009c14: 681b ldr r3, [r3, #0]
  22360. 8009c16: f003 0304 and.w r3, r3, #4
  22361. 8009c1a: 2b00 cmp r3, #0
  22362. 8009c1c: d005 beq.n 8009c2a <HAL_RCC_OscConfig+0x17e>
  22363. 8009c1e: 687b ldr r3, [r7, #4]
  22364. 8009c20: 68db ldr r3, [r3, #12]
  22365. 8009c22: 2b00 cmp r3, #0
  22366. 8009c24: d101 bne.n 8009c2a <HAL_RCC_OscConfig+0x17e>
  22367. {
  22368. return HAL_ERROR;
  22369. 8009c26: 2301 movs r3, #1
  22370. 8009c28: e392 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22371. }
  22372. /* Otherwise, only HSI division and calibration are allowed */
  22373. else
  22374. {
  22375. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  22376. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  22377. 8009c2a: 4b42 ldr r3, [pc, #264] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22378. 8009c2c: 681b ldr r3, [r3, #0]
  22379. 8009c2e: f023 0219 bic.w r2, r3, #25
  22380. 8009c32: 687b ldr r3, [r7, #4]
  22381. 8009c34: 68db ldr r3, [r3, #12]
  22382. 8009c36: 493f ldr r1, [pc, #252] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22383. 8009c38: 4313 orrs r3, r2
  22384. 8009c3a: 600b str r3, [r1, #0]
  22385. /* Get Start Tick*/
  22386. tickstart = HAL_GetTick();
  22387. 8009c3c: f7fb fa02 bl 8005044 <HAL_GetTick>
  22388. 8009c40: 6278 str r0, [r7, #36] @ 0x24
  22389. /* Wait till HSI is ready */
  22390. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22391. 8009c42: e008 b.n 8009c56 <HAL_RCC_OscConfig+0x1aa>
  22392. {
  22393. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  22394. 8009c44: f7fb f9fe bl 8005044 <HAL_GetTick>
  22395. 8009c48: 4602 mov r2, r0
  22396. 8009c4a: 6a7b ldr r3, [r7, #36] @ 0x24
  22397. 8009c4c: 1ad3 subs r3, r2, r3
  22398. 8009c4e: 2b02 cmp r3, #2
  22399. 8009c50: d901 bls.n 8009c56 <HAL_RCC_OscConfig+0x1aa>
  22400. {
  22401. return HAL_TIMEOUT;
  22402. 8009c52: 2303 movs r3, #3
  22403. 8009c54: e37c b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22404. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22405. 8009c56: 4b37 ldr r3, [pc, #220] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22406. 8009c58: 681b ldr r3, [r3, #0]
  22407. 8009c5a: f003 0304 and.w r3, r3, #4
  22408. 8009c5e: 2b00 cmp r3, #0
  22409. 8009c60: d0f0 beq.n 8009c44 <HAL_RCC_OscConfig+0x198>
  22410. }
  22411. }
  22412. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  22413. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22414. 8009c62: f7fb fa1f bl 80050a4 <HAL_GetREVID>
  22415. 8009c66: 4603 mov r3, r0
  22416. 8009c68: f241 0203 movw r2, #4099 @ 0x1003
  22417. 8009c6c: 4293 cmp r3, r2
  22418. 8009c6e: d817 bhi.n 8009ca0 <HAL_RCC_OscConfig+0x1f4>
  22419. 8009c70: 687b ldr r3, [r7, #4]
  22420. 8009c72: 691b ldr r3, [r3, #16]
  22421. 8009c74: 2b40 cmp r3, #64 @ 0x40
  22422. 8009c76: d108 bne.n 8009c8a <HAL_RCC_OscConfig+0x1de>
  22423. 8009c78: 4b2e ldr r3, [pc, #184] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22424. 8009c7a: 685b ldr r3, [r3, #4]
  22425. 8009c7c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  22426. 8009c80: 4a2c ldr r2, [pc, #176] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22427. 8009c82: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  22428. 8009c86: 6053 str r3, [r2, #4]
  22429. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22430. 8009c88: e07a b.n 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22431. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22432. 8009c8a: 4b2a ldr r3, [pc, #168] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22433. 8009c8c: 685b ldr r3, [r3, #4]
  22434. 8009c8e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  22435. 8009c92: 687b ldr r3, [r7, #4]
  22436. 8009c94: 691b ldr r3, [r3, #16]
  22437. 8009c96: 031b lsls r3, r3, #12
  22438. 8009c98: 4926 ldr r1, [pc, #152] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22439. 8009c9a: 4313 orrs r3, r2
  22440. 8009c9c: 604b str r3, [r1, #4]
  22441. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22442. 8009c9e: e06f b.n 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22443. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22444. 8009ca0: 4b24 ldr r3, [pc, #144] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22445. 8009ca2: 685b ldr r3, [r3, #4]
  22446. 8009ca4: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  22447. 8009ca8: 687b ldr r3, [r7, #4]
  22448. 8009caa: 691b ldr r3, [r3, #16]
  22449. 8009cac: 061b lsls r3, r3, #24
  22450. 8009cae: 4921 ldr r1, [pc, #132] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22451. 8009cb0: 4313 orrs r3, r2
  22452. 8009cb2: 604b str r3, [r1, #4]
  22453. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22454. 8009cb4: e064 b.n 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22455. }
  22456. else
  22457. {
  22458. /* Check the HSI State */
  22459. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  22460. 8009cb6: 687b ldr r3, [r7, #4]
  22461. 8009cb8: 68db ldr r3, [r3, #12]
  22462. 8009cba: 2b00 cmp r3, #0
  22463. 8009cbc: d047 beq.n 8009d4e <HAL_RCC_OscConfig+0x2a2>
  22464. {
  22465. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  22466. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  22467. 8009cbe: 4b1d ldr r3, [pc, #116] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22468. 8009cc0: 681b ldr r3, [r3, #0]
  22469. 8009cc2: f023 0219 bic.w r2, r3, #25
  22470. 8009cc6: 687b ldr r3, [r7, #4]
  22471. 8009cc8: 68db ldr r3, [r3, #12]
  22472. 8009cca: 491a ldr r1, [pc, #104] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22473. 8009ccc: 4313 orrs r3, r2
  22474. 8009cce: 600b str r3, [r1, #0]
  22475. /* Get Start Tick*/
  22476. tickstart = HAL_GetTick();
  22477. 8009cd0: f7fb f9b8 bl 8005044 <HAL_GetTick>
  22478. 8009cd4: 6278 str r0, [r7, #36] @ 0x24
  22479. /* Wait till HSI is ready */
  22480. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22481. 8009cd6: e008 b.n 8009cea <HAL_RCC_OscConfig+0x23e>
  22482. {
  22483. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  22484. 8009cd8: f7fb f9b4 bl 8005044 <HAL_GetTick>
  22485. 8009cdc: 4602 mov r2, r0
  22486. 8009cde: 6a7b ldr r3, [r7, #36] @ 0x24
  22487. 8009ce0: 1ad3 subs r3, r2, r3
  22488. 8009ce2: 2b02 cmp r3, #2
  22489. 8009ce4: d901 bls.n 8009cea <HAL_RCC_OscConfig+0x23e>
  22490. {
  22491. return HAL_TIMEOUT;
  22492. 8009ce6: 2303 movs r3, #3
  22493. 8009ce8: e332 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22494. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22495. 8009cea: 4b12 ldr r3, [pc, #72] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22496. 8009cec: 681b ldr r3, [r3, #0]
  22497. 8009cee: f003 0304 and.w r3, r3, #4
  22498. 8009cf2: 2b00 cmp r3, #0
  22499. 8009cf4: d0f0 beq.n 8009cd8 <HAL_RCC_OscConfig+0x22c>
  22500. }
  22501. }
  22502. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  22503. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22504. 8009cf6: f7fb f9d5 bl 80050a4 <HAL_GetREVID>
  22505. 8009cfa: 4603 mov r3, r0
  22506. 8009cfc: f241 0203 movw r2, #4099 @ 0x1003
  22507. 8009d00: 4293 cmp r3, r2
  22508. 8009d02: d819 bhi.n 8009d38 <HAL_RCC_OscConfig+0x28c>
  22509. 8009d04: 687b ldr r3, [r7, #4]
  22510. 8009d06: 691b ldr r3, [r3, #16]
  22511. 8009d08: 2b40 cmp r3, #64 @ 0x40
  22512. 8009d0a: d108 bne.n 8009d1e <HAL_RCC_OscConfig+0x272>
  22513. 8009d0c: 4b09 ldr r3, [pc, #36] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22514. 8009d0e: 685b ldr r3, [r3, #4]
  22515. 8009d10: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  22516. 8009d14: 4a07 ldr r2, [pc, #28] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22517. 8009d16: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  22518. 8009d1a: 6053 str r3, [r2, #4]
  22519. 8009d1c: e030 b.n 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22520. 8009d1e: 4b05 ldr r3, [pc, #20] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22521. 8009d20: 685b ldr r3, [r3, #4]
  22522. 8009d22: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  22523. 8009d26: 687b ldr r3, [r7, #4]
  22524. 8009d28: 691b ldr r3, [r3, #16]
  22525. 8009d2a: 031b lsls r3, r3, #12
  22526. 8009d2c: 4901 ldr r1, [pc, #4] @ (8009d34 <HAL_RCC_OscConfig+0x288>)
  22527. 8009d2e: 4313 orrs r3, r2
  22528. 8009d30: 604b str r3, [r1, #4]
  22529. 8009d32: e025 b.n 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22530. 8009d34: 58024400 .word 0x58024400
  22531. 8009d38: 4b9a ldr r3, [pc, #616] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22532. 8009d3a: 685b ldr r3, [r3, #4]
  22533. 8009d3c: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  22534. 8009d40: 687b ldr r3, [r7, #4]
  22535. 8009d42: 691b ldr r3, [r3, #16]
  22536. 8009d44: 061b lsls r3, r3, #24
  22537. 8009d46: 4997 ldr r1, [pc, #604] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22538. 8009d48: 4313 orrs r3, r2
  22539. 8009d4a: 604b str r3, [r1, #4]
  22540. 8009d4c: e018 b.n 8009d80 <HAL_RCC_OscConfig+0x2d4>
  22541. }
  22542. else
  22543. {
  22544. /* Disable the Internal High Speed oscillator (HSI). */
  22545. __HAL_RCC_HSI_DISABLE();
  22546. 8009d4e: 4b95 ldr r3, [pc, #596] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22547. 8009d50: 681b ldr r3, [r3, #0]
  22548. 8009d52: 4a94 ldr r2, [pc, #592] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22549. 8009d54: f023 0301 bic.w r3, r3, #1
  22550. 8009d58: 6013 str r3, [r2, #0]
  22551. /* Get Start Tick*/
  22552. tickstart = HAL_GetTick();
  22553. 8009d5a: f7fb f973 bl 8005044 <HAL_GetTick>
  22554. 8009d5e: 6278 str r0, [r7, #36] @ 0x24
  22555. /* Wait till HSI is disabled */
  22556. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  22557. 8009d60: e008 b.n 8009d74 <HAL_RCC_OscConfig+0x2c8>
  22558. {
  22559. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  22560. 8009d62: f7fb f96f bl 8005044 <HAL_GetTick>
  22561. 8009d66: 4602 mov r2, r0
  22562. 8009d68: 6a7b ldr r3, [r7, #36] @ 0x24
  22563. 8009d6a: 1ad3 subs r3, r2, r3
  22564. 8009d6c: 2b02 cmp r3, #2
  22565. 8009d6e: d901 bls.n 8009d74 <HAL_RCC_OscConfig+0x2c8>
  22566. {
  22567. return HAL_TIMEOUT;
  22568. 8009d70: 2303 movs r3, #3
  22569. 8009d72: e2ed b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22570. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  22571. 8009d74: 4b8b ldr r3, [pc, #556] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22572. 8009d76: 681b ldr r3, [r3, #0]
  22573. 8009d78: f003 0304 and.w r3, r3, #4
  22574. 8009d7c: 2b00 cmp r3, #0
  22575. 8009d7e: d1f0 bne.n 8009d62 <HAL_RCC_OscConfig+0x2b6>
  22576. }
  22577. }
  22578. }
  22579. }
  22580. /*----------------------------- CSI Configuration --------------------------*/
  22581. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  22582. 8009d80: 687b ldr r3, [r7, #4]
  22583. 8009d82: 681b ldr r3, [r3, #0]
  22584. 8009d84: f003 0310 and.w r3, r3, #16
  22585. 8009d88: 2b00 cmp r3, #0
  22586. 8009d8a: f000 80a9 beq.w 8009ee0 <HAL_RCC_OscConfig+0x434>
  22587. /* Check the parameters */
  22588. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  22589. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  22590. /* When the CSI is used as system clock it will not disabled */
  22591. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  22592. 8009d8e: 4b85 ldr r3, [pc, #532] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22593. 8009d90: 691b ldr r3, [r3, #16]
  22594. 8009d92: f003 0338 and.w r3, r3, #56 @ 0x38
  22595. 8009d96: 61bb str r3, [r7, #24]
  22596. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  22597. 8009d98: 4b82 ldr r3, [pc, #520] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22598. 8009d9a: 6a9b ldr r3, [r3, #40] @ 0x28
  22599. 8009d9c: 617b str r3, [r7, #20]
  22600. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  22601. 8009d9e: 69bb ldr r3, [r7, #24]
  22602. 8009da0: 2b08 cmp r3, #8
  22603. 8009da2: d007 beq.n 8009db4 <HAL_RCC_OscConfig+0x308>
  22604. 8009da4: 69bb ldr r3, [r7, #24]
  22605. 8009da6: 2b18 cmp r3, #24
  22606. 8009da8: d13a bne.n 8009e20 <HAL_RCC_OscConfig+0x374>
  22607. 8009daa: 697b ldr r3, [r7, #20]
  22608. 8009dac: f003 0303 and.w r3, r3, #3
  22609. 8009db0: 2b01 cmp r3, #1
  22610. 8009db2: d135 bne.n 8009e20 <HAL_RCC_OscConfig+0x374>
  22611. {
  22612. /* When CSI is used as system clock it will not disabled */
  22613. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  22614. 8009db4: 4b7b ldr r3, [pc, #492] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22615. 8009db6: 681b ldr r3, [r3, #0]
  22616. 8009db8: f403 7380 and.w r3, r3, #256 @ 0x100
  22617. 8009dbc: 2b00 cmp r3, #0
  22618. 8009dbe: d005 beq.n 8009dcc <HAL_RCC_OscConfig+0x320>
  22619. 8009dc0: 687b ldr r3, [r7, #4]
  22620. 8009dc2: 69db ldr r3, [r3, #28]
  22621. 8009dc4: 2b80 cmp r3, #128 @ 0x80
  22622. 8009dc6: d001 beq.n 8009dcc <HAL_RCC_OscConfig+0x320>
  22623. {
  22624. return HAL_ERROR;
  22625. 8009dc8: 2301 movs r3, #1
  22626. 8009dca: e2c1 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22627. }
  22628. /* Otherwise, just the calibration is allowed */
  22629. else
  22630. {
  22631. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  22632. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  22633. 8009dcc: f7fb f96a bl 80050a4 <HAL_GetREVID>
  22634. 8009dd0: 4603 mov r3, r0
  22635. 8009dd2: f241 0203 movw r2, #4099 @ 0x1003
  22636. 8009dd6: 4293 cmp r3, r2
  22637. 8009dd8: d817 bhi.n 8009e0a <HAL_RCC_OscConfig+0x35e>
  22638. 8009dda: 687b ldr r3, [r7, #4]
  22639. 8009ddc: 6a1b ldr r3, [r3, #32]
  22640. 8009dde: 2b20 cmp r3, #32
  22641. 8009de0: d108 bne.n 8009df4 <HAL_RCC_OscConfig+0x348>
  22642. 8009de2: 4b70 ldr r3, [pc, #448] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22643. 8009de4: 685b ldr r3, [r3, #4]
  22644. 8009de6: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  22645. 8009dea: 4a6e ldr r2, [pc, #440] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22646. 8009dec: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  22647. 8009df0: 6053 str r3, [r2, #4]
  22648. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  22649. 8009df2: e075 b.n 8009ee0 <HAL_RCC_OscConfig+0x434>
  22650. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  22651. 8009df4: 4b6b ldr r3, [pc, #428] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22652. 8009df6: 685b ldr r3, [r3, #4]
  22653. 8009df8: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  22654. 8009dfc: 687b ldr r3, [r7, #4]
  22655. 8009dfe: 6a1b ldr r3, [r3, #32]
  22656. 8009e00: 069b lsls r3, r3, #26
  22657. 8009e02: 4968 ldr r1, [pc, #416] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22658. 8009e04: 4313 orrs r3, r2
  22659. 8009e06: 604b str r3, [r1, #4]
  22660. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  22661. 8009e08: e06a b.n 8009ee0 <HAL_RCC_OscConfig+0x434>
  22662. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  22663. 8009e0a: 4b66 ldr r3, [pc, #408] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22664. 8009e0c: 68db ldr r3, [r3, #12]
  22665. 8009e0e: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  22666. 8009e12: 687b ldr r3, [r7, #4]
  22667. 8009e14: 6a1b ldr r3, [r3, #32]
  22668. 8009e16: 061b lsls r3, r3, #24
  22669. 8009e18: 4962 ldr r1, [pc, #392] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22670. 8009e1a: 4313 orrs r3, r2
  22671. 8009e1c: 60cb str r3, [r1, #12]
  22672. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  22673. 8009e1e: e05f b.n 8009ee0 <HAL_RCC_OscConfig+0x434>
  22674. }
  22675. }
  22676. else
  22677. {
  22678. /* Check the CSI State */
  22679. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  22680. 8009e20: 687b ldr r3, [r7, #4]
  22681. 8009e22: 69db ldr r3, [r3, #28]
  22682. 8009e24: 2b00 cmp r3, #0
  22683. 8009e26: d042 beq.n 8009eae <HAL_RCC_OscConfig+0x402>
  22684. {
  22685. /* Enable the Internal High Speed oscillator (CSI). */
  22686. __HAL_RCC_CSI_ENABLE();
  22687. 8009e28: 4b5e ldr r3, [pc, #376] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22688. 8009e2a: 681b ldr r3, [r3, #0]
  22689. 8009e2c: 4a5d ldr r2, [pc, #372] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22690. 8009e2e: f043 0380 orr.w r3, r3, #128 @ 0x80
  22691. 8009e32: 6013 str r3, [r2, #0]
  22692. /* Get Start Tick*/
  22693. tickstart = HAL_GetTick();
  22694. 8009e34: f7fb f906 bl 8005044 <HAL_GetTick>
  22695. 8009e38: 6278 str r0, [r7, #36] @ 0x24
  22696. /* Wait till CSI is ready */
  22697. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  22698. 8009e3a: e008 b.n 8009e4e <HAL_RCC_OscConfig+0x3a2>
  22699. {
  22700. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  22701. 8009e3c: f7fb f902 bl 8005044 <HAL_GetTick>
  22702. 8009e40: 4602 mov r2, r0
  22703. 8009e42: 6a7b ldr r3, [r7, #36] @ 0x24
  22704. 8009e44: 1ad3 subs r3, r2, r3
  22705. 8009e46: 2b02 cmp r3, #2
  22706. 8009e48: d901 bls.n 8009e4e <HAL_RCC_OscConfig+0x3a2>
  22707. {
  22708. return HAL_TIMEOUT;
  22709. 8009e4a: 2303 movs r3, #3
  22710. 8009e4c: e280 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22711. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  22712. 8009e4e: 4b55 ldr r3, [pc, #340] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22713. 8009e50: 681b ldr r3, [r3, #0]
  22714. 8009e52: f403 7380 and.w r3, r3, #256 @ 0x100
  22715. 8009e56: 2b00 cmp r3, #0
  22716. 8009e58: d0f0 beq.n 8009e3c <HAL_RCC_OscConfig+0x390>
  22717. }
  22718. }
  22719. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  22720. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  22721. 8009e5a: f7fb f923 bl 80050a4 <HAL_GetREVID>
  22722. 8009e5e: 4603 mov r3, r0
  22723. 8009e60: f241 0203 movw r2, #4099 @ 0x1003
  22724. 8009e64: 4293 cmp r3, r2
  22725. 8009e66: d817 bhi.n 8009e98 <HAL_RCC_OscConfig+0x3ec>
  22726. 8009e68: 687b ldr r3, [r7, #4]
  22727. 8009e6a: 6a1b ldr r3, [r3, #32]
  22728. 8009e6c: 2b20 cmp r3, #32
  22729. 8009e6e: d108 bne.n 8009e82 <HAL_RCC_OscConfig+0x3d6>
  22730. 8009e70: 4b4c ldr r3, [pc, #304] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22731. 8009e72: 685b ldr r3, [r3, #4]
  22732. 8009e74: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  22733. 8009e78: 4a4a ldr r2, [pc, #296] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22734. 8009e7a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  22735. 8009e7e: 6053 str r3, [r2, #4]
  22736. 8009e80: e02e b.n 8009ee0 <HAL_RCC_OscConfig+0x434>
  22737. 8009e82: 4b48 ldr r3, [pc, #288] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22738. 8009e84: 685b ldr r3, [r3, #4]
  22739. 8009e86: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  22740. 8009e8a: 687b ldr r3, [r7, #4]
  22741. 8009e8c: 6a1b ldr r3, [r3, #32]
  22742. 8009e8e: 069b lsls r3, r3, #26
  22743. 8009e90: 4944 ldr r1, [pc, #272] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22744. 8009e92: 4313 orrs r3, r2
  22745. 8009e94: 604b str r3, [r1, #4]
  22746. 8009e96: e023 b.n 8009ee0 <HAL_RCC_OscConfig+0x434>
  22747. 8009e98: 4b42 ldr r3, [pc, #264] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22748. 8009e9a: 68db ldr r3, [r3, #12]
  22749. 8009e9c: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  22750. 8009ea0: 687b ldr r3, [r7, #4]
  22751. 8009ea2: 6a1b ldr r3, [r3, #32]
  22752. 8009ea4: 061b lsls r3, r3, #24
  22753. 8009ea6: 493f ldr r1, [pc, #252] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22754. 8009ea8: 4313 orrs r3, r2
  22755. 8009eaa: 60cb str r3, [r1, #12]
  22756. 8009eac: e018 b.n 8009ee0 <HAL_RCC_OscConfig+0x434>
  22757. }
  22758. else
  22759. {
  22760. /* Disable the Internal High Speed oscillator (CSI). */
  22761. __HAL_RCC_CSI_DISABLE();
  22762. 8009eae: 4b3d ldr r3, [pc, #244] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22763. 8009eb0: 681b ldr r3, [r3, #0]
  22764. 8009eb2: 4a3c ldr r2, [pc, #240] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22765. 8009eb4: f023 0380 bic.w r3, r3, #128 @ 0x80
  22766. 8009eb8: 6013 str r3, [r2, #0]
  22767. /* Get Start Tick*/
  22768. tickstart = HAL_GetTick();
  22769. 8009eba: f7fb f8c3 bl 8005044 <HAL_GetTick>
  22770. 8009ebe: 6278 str r0, [r7, #36] @ 0x24
  22771. /* Wait till CSI is disabled */
  22772. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  22773. 8009ec0: e008 b.n 8009ed4 <HAL_RCC_OscConfig+0x428>
  22774. {
  22775. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  22776. 8009ec2: f7fb f8bf bl 8005044 <HAL_GetTick>
  22777. 8009ec6: 4602 mov r2, r0
  22778. 8009ec8: 6a7b ldr r3, [r7, #36] @ 0x24
  22779. 8009eca: 1ad3 subs r3, r2, r3
  22780. 8009ecc: 2b02 cmp r3, #2
  22781. 8009ece: d901 bls.n 8009ed4 <HAL_RCC_OscConfig+0x428>
  22782. {
  22783. return HAL_TIMEOUT;
  22784. 8009ed0: 2303 movs r3, #3
  22785. 8009ed2: e23d b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22786. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  22787. 8009ed4: 4b33 ldr r3, [pc, #204] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22788. 8009ed6: 681b ldr r3, [r3, #0]
  22789. 8009ed8: f403 7380 and.w r3, r3, #256 @ 0x100
  22790. 8009edc: 2b00 cmp r3, #0
  22791. 8009ede: d1f0 bne.n 8009ec2 <HAL_RCC_OscConfig+0x416>
  22792. }
  22793. }
  22794. }
  22795. }
  22796. /*------------------------------ LSI Configuration -------------------------*/
  22797. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  22798. 8009ee0: 687b ldr r3, [r7, #4]
  22799. 8009ee2: 681b ldr r3, [r3, #0]
  22800. 8009ee4: f003 0308 and.w r3, r3, #8
  22801. 8009ee8: 2b00 cmp r3, #0
  22802. 8009eea: d036 beq.n 8009f5a <HAL_RCC_OscConfig+0x4ae>
  22803. {
  22804. /* Check the parameters */
  22805. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  22806. /* Check the LSI State */
  22807. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  22808. 8009eec: 687b ldr r3, [r7, #4]
  22809. 8009eee: 695b ldr r3, [r3, #20]
  22810. 8009ef0: 2b00 cmp r3, #0
  22811. 8009ef2: d019 beq.n 8009f28 <HAL_RCC_OscConfig+0x47c>
  22812. {
  22813. /* Enable the Internal Low Speed oscillator (LSI). */
  22814. __HAL_RCC_LSI_ENABLE();
  22815. 8009ef4: 4b2b ldr r3, [pc, #172] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22816. 8009ef6: 6f5b ldr r3, [r3, #116] @ 0x74
  22817. 8009ef8: 4a2a ldr r2, [pc, #168] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22818. 8009efa: f043 0301 orr.w r3, r3, #1
  22819. 8009efe: 6753 str r3, [r2, #116] @ 0x74
  22820. /* Get Start Tick*/
  22821. tickstart = HAL_GetTick();
  22822. 8009f00: f7fb f8a0 bl 8005044 <HAL_GetTick>
  22823. 8009f04: 6278 str r0, [r7, #36] @ 0x24
  22824. /* Wait till LSI is ready */
  22825. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  22826. 8009f06: e008 b.n 8009f1a <HAL_RCC_OscConfig+0x46e>
  22827. {
  22828. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  22829. 8009f08: f7fb f89c bl 8005044 <HAL_GetTick>
  22830. 8009f0c: 4602 mov r2, r0
  22831. 8009f0e: 6a7b ldr r3, [r7, #36] @ 0x24
  22832. 8009f10: 1ad3 subs r3, r2, r3
  22833. 8009f12: 2b02 cmp r3, #2
  22834. 8009f14: d901 bls.n 8009f1a <HAL_RCC_OscConfig+0x46e>
  22835. {
  22836. return HAL_TIMEOUT;
  22837. 8009f16: 2303 movs r3, #3
  22838. 8009f18: e21a b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22839. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  22840. 8009f1a: 4b22 ldr r3, [pc, #136] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22841. 8009f1c: 6f5b ldr r3, [r3, #116] @ 0x74
  22842. 8009f1e: f003 0302 and.w r3, r3, #2
  22843. 8009f22: 2b00 cmp r3, #0
  22844. 8009f24: d0f0 beq.n 8009f08 <HAL_RCC_OscConfig+0x45c>
  22845. 8009f26: e018 b.n 8009f5a <HAL_RCC_OscConfig+0x4ae>
  22846. }
  22847. }
  22848. else
  22849. {
  22850. /* Disable the Internal Low Speed oscillator (LSI). */
  22851. __HAL_RCC_LSI_DISABLE();
  22852. 8009f28: 4b1e ldr r3, [pc, #120] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22853. 8009f2a: 6f5b ldr r3, [r3, #116] @ 0x74
  22854. 8009f2c: 4a1d ldr r2, [pc, #116] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22855. 8009f2e: f023 0301 bic.w r3, r3, #1
  22856. 8009f32: 6753 str r3, [r2, #116] @ 0x74
  22857. /* Get Start Tick*/
  22858. tickstart = HAL_GetTick();
  22859. 8009f34: f7fb f886 bl 8005044 <HAL_GetTick>
  22860. 8009f38: 6278 str r0, [r7, #36] @ 0x24
  22861. /* Wait till LSI is ready */
  22862. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  22863. 8009f3a: e008 b.n 8009f4e <HAL_RCC_OscConfig+0x4a2>
  22864. {
  22865. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  22866. 8009f3c: f7fb f882 bl 8005044 <HAL_GetTick>
  22867. 8009f40: 4602 mov r2, r0
  22868. 8009f42: 6a7b ldr r3, [r7, #36] @ 0x24
  22869. 8009f44: 1ad3 subs r3, r2, r3
  22870. 8009f46: 2b02 cmp r3, #2
  22871. 8009f48: d901 bls.n 8009f4e <HAL_RCC_OscConfig+0x4a2>
  22872. {
  22873. return HAL_TIMEOUT;
  22874. 8009f4a: 2303 movs r3, #3
  22875. 8009f4c: e200 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22876. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  22877. 8009f4e: 4b15 ldr r3, [pc, #84] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22878. 8009f50: 6f5b ldr r3, [r3, #116] @ 0x74
  22879. 8009f52: f003 0302 and.w r3, r3, #2
  22880. 8009f56: 2b00 cmp r3, #0
  22881. 8009f58: d1f0 bne.n 8009f3c <HAL_RCC_OscConfig+0x490>
  22882. }
  22883. }
  22884. }
  22885. /*------------------------------ HSI48 Configuration -------------------------*/
  22886. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  22887. 8009f5a: 687b ldr r3, [r7, #4]
  22888. 8009f5c: 681b ldr r3, [r3, #0]
  22889. 8009f5e: f003 0320 and.w r3, r3, #32
  22890. 8009f62: 2b00 cmp r3, #0
  22891. 8009f64: d039 beq.n 8009fda <HAL_RCC_OscConfig+0x52e>
  22892. {
  22893. /* Check the parameters */
  22894. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  22895. /* Check the HSI48 State */
  22896. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  22897. 8009f66: 687b ldr r3, [r7, #4]
  22898. 8009f68: 699b ldr r3, [r3, #24]
  22899. 8009f6a: 2b00 cmp r3, #0
  22900. 8009f6c: d01c beq.n 8009fa8 <HAL_RCC_OscConfig+0x4fc>
  22901. {
  22902. /* Enable the Internal Low Speed oscillator (HSI48). */
  22903. __HAL_RCC_HSI48_ENABLE();
  22904. 8009f6e: 4b0d ldr r3, [pc, #52] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22905. 8009f70: 681b ldr r3, [r3, #0]
  22906. 8009f72: 4a0c ldr r2, [pc, #48] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22907. 8009f74: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  22908. 8009f78: 6013 str r3, [r2, #0]
  22909. /* Get time-out */
  22910. tickstart = HAL_GetTick();
  22911. 8009f7a: f7fb f863 bl 8005044 <HAL_GetTick>
  22912. 8009f7e: 6278 str r0, [r7, #36] @ 0x24
  22913. /* Wait till HSI48 is ready */
  22914. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  22915. 8009f80: e008 b.n 8009f94 <HAL_RCC_OscConfig+0x4e8>
  22916. {
  22917. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  22918. 8009f82: f7fb f85f bl 8005044 <HAL_GetTick>
  22919. 8009f86: 4602 mov r2, r0
  22920. 8009f88: 6a7b ldr r3, [r7, #36] @ 0x24
  22921. 8009f8a: 1ad3 subs r3, r2, r3
  22922. 8009f8c: 2b02 cmp r3, #2
  22923. 8009f8e: d901 bls.n 8009f94 <HAL_RCC_OscConfig+0x4e8>
  22924. {
  22925. return HAL_TIMEOUT;
  22926. 8009f90: 2303 movs r3, #3
  22927. 8009f92: e1dd b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22928. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  22929. 8009f94: 4b03 ldr r3, [pc, #12] @ (8009fa4 <HAL_RCC_OscConfig+0x4f8>)
  22930. 8009f96: 681b ldr r3, [r3, #0]
  22931. 8009f98: f403 5300 and.w r3, r3, #8192 @ 0x2000
  22932. 8009f9c: 2b00 cmp r3, #0
  22933. 8009f9e: d0f0 beq.n 8009f82 <HAL_RCC_OscConfig+0x4d6>
  22934. 8009fa0: e01b b.n 8009fda <HAL_RCC_OscConfig+0x52e>
  22935. 8009fa2: bf00 nop
  22936. 8009fa4: 58024400 .word 0x58024400
  22937. }
  22938. }
  22939. else
  22940. {
  22941. /* Disable the Internal Low Speed oscillator (HSI48). */
  22942. __HAL_RCC_HSI48_DISABLE();
  22943. 8009fa8: 4b9b ldr r3, [pc, #620] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  22944. 8009faa: 681b ldr r3, [r3, #0]
  22945. 8009fac: 4a9a ldr r2, [pc, #616] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  22946. 8009fae: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  22947. 8009fb2: 6013 str r3, [r2, #0]
  22948. /* Get time-out */
  22949. tickstart = HAL_GetTick();
  22950. 8009fb4: f7fb f846 bl 8005044 <HAL_GetTick>
  22951. 8009fb8: 6278 str r0, [r7, #36] @ 0x24
  22952. /* Wait till HSI48 is ready */
  22953. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  22954. 8009fba: e008 b.n 8009fce <HAL_RCC_OscConfig+0x522>
  22955. {
  22956. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  22957. 8009fbc: f7fb f842 bl 8005044 <HAL_GetTick>
  22958. 8009fc0: 4602 mov r2, r0
  22959. 8009fc2: 6a7b ldr r3, [r7, #36] @ 0x24
  22960. 8009fc4: 1ad3 subs r3, r2, r3
  22961. 8009fc6: 2b02 cmp r3, #2
  22962. 8009fc8: d901 bls.n 8009fce <HAL_RCC_OscConfig+0x522>
  22963. {
  22964. return HAL_TIMEOUT;
  22965. 8009fca: 2303 movs r3, #3
  22966. 8009fcc: e1c0 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  22967. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  22968. 8009fce: 4b92 ldr r3, [pc, #584] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  22969. 8009fd0: 681b ldr r3, [r3, #0]
  22970. 8009fd2: f403 5300 and.w r3, r3, #8192 @ 0x2000
  22971. 8009fd6: 2b00 cmp r3, #0
  22972. 8009fd8: d1f0 bne.n 8009fbc <HAL_RCC_OscConfig+0x510>
  22973. }
  22974. }
  22975. }
  22976. }
  22977. /*------------------------------ LSE Configuration -------------------------*/
  22978. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  22979. 8009fda: 687b ldr r3, [r7, #4]
  22980. 8009fdc: 681b ldr r3, [r3, #0]
  22981. 8009fde: f003 0304 and.w r3, r3, #4
  22982. 8009fe2: 2b00 cmp r3, #0
  22983. 8009fe4: f000 8081 beq.w 800a0ea <HAL_RCC_OscConfig+0x63e>
  22984. {
  22985. /* Check the parameters */
  22986. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  22987. /* Enable write access to Backup domain */
  22988. PWR->CR1 |= PWR_CR1_DBP;
  22989. 8009fe8: 4b8c ldr r3, [pc, #560] @ (800a21c <HAL_RCC_OscConfig+0x770>)
  22990. 8009fea: 681b ldr r3, [r3, #0]
  22991. 8009fec: 4a8b ldr r2, [pc, #556] @ (800a21c <HAL_RCC_OscConfig+0x770>)
  22992. 8009fee: f443 7380 orr.w r3, r3, #256 @ 0x100
  22993. 8009ff2: 6013 str r3, [r2, #0]
  22994. /* Wait for Backup domain Write protection disable */
  22995. tickstart = HAL_GetTick();
  22996. 8009ff4: f7fb f826 bl 8005044 <HAL_GetTick>
  22997. 8009ff8: 6278 str r0, [r7, #36] @ 0x24
  22998. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  22999. 8009ffa: e008 b.n 800a00e <HAL_RCC_OscConfig+0x562>
  23000. {
  23001. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  23002. 8009ffc: f7fb f822 bl 8005044 <HAL_GetTick>
  23003. 800a000: 4602 mov r2, r0
  23004. 800a002: 6a7b ldr r3, [r7, #36] @ 0x24
  23005. 800a004: 1ad3 subs r3, r2, r3
  23006. 800a006: 2b64 cmp r3, #100 @ 0x64
  23007. 800a008: d901 bls.n 800a00e <HAL_RCC_OscConfig+0x562>
  23008. {
  23009. return HAL_TIMEOUT;
  23010. 800a00a: 2303 movs r3, #3
  23011. 800a00c: e1a0 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23012. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  23013. 800a00e: 4b83 ldr r3, [pc, #524] @ (800a21c <HAL_RCC_OscConfig+0x770>)
  23014. 800a010: 681b ldr r3, [r3, #0]
  23015. 800a012: f403 7380 and.w r3, r3, #256 @ 0x100
  23016. 800a016: 2b00 cmp r3, #0
  23017. 800a018: d0f0 beq.n 8009ffc <HAL_RCC_OscConfig+0x550>
  23018. }
  23019. }
  23020. /* Set the new LSE configuration -----------------------------------------*/
  23021. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  23022. 800a01a: 687b ldr r3, [r7, #4]
  23023. 800a01c: 689b ldr r3, [r3, #8]
  23024. 800a01e: 2b01 cmp r3, #1
  23025. 800a020: d106 bne.n 800a030 <HAL_RCC_OscConfig+0x584>
  23026. 800a022: 4b7d ldr r3, [pc, #500] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23027. 800a024: 6f1b ldr r3, [r3, #112] @ 0x70
  23028. 800a026: 4a7c ldr r2, [pc, #496] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23029. 800a028: f043 0301 orr.w r3, r3, #1
  23030. 800a02c: 6713 str r3, [r2, #112] @ 0x70
  23031. 800a02e: e02d b.n 800a08c <HAL_RCC_OscConfig+0x5e0>
  23032. 800a030: 687b ldr r3, [r7, #4]
  23033. 800a032: 689b ldr r3, [r3, #8]
  23034. 800a034: 2b00 cmp r3, #0
  23035. 800a036: d10c bne.n 800a052 <HAL_RCC_OscConfig+0x5a6>
  23036. 800a038: 4b77 ldr r3, [pc, #476] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23037. 800a03a: 6f1b ldr r3, [r3, #112] @ 0x70
  23038. 800a03c: 4a76 ldr r2, [pc, #472] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23039. 800a03e: f023 0301 bic.w r3, r3, #1
  23040. 800a042: 6713 str r3, [r2, #112] @ 0x70
  23041. 800a044: 4b74 ldr r3, [pc, #464] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23042. 800a046: 6f1b ldr r3, [r3, #112] @ 0x70
  23043. 800a048: 4a73 ldr r2, [pc, #460] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23044. 800a04a: f023 0304 bic.w r3, r3, #4
  23045. 800a04e: 6713 str r3, [r2, #112] @ 0x70
  23046. 800a050: e01c b.n 800a08c <HAL_RCC_OscConfig+0x5e0>
  23047. 800a052: 687b ldr r3, [r7, #4]
  23048. 800a054: 689b ldr r3, [r3, #8]
  23049. 800a056: 2b05 cmp r3, #5
  23050. 800a058: d10c bne.n 800a074 <HAL_RCC_OscConfig+0x5c8>
  23051. 800a05a: 4b6f ldr r3, [pc, #444] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23052. 800a05c: 6f1b ldr r3, [r3, #112] @ 0x70
  23053. 800a05e: 4a6e ldr r2, [pc, #440] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23054. 800a060: f043 0304 orr.w r3, r3, #4
  23055. 800a064: 6713 str r3, [r2, #112] @ 0x70
  23056. 800a066: 4b6c ldr r3, [pc, #432] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23057. 800a068: 6f1b ldr r3, [r3, #112] @ 0x70
  23058. 800a06a: 4a6b ldr r2, [pc, #428] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23059. 800a06c: f043 0301 orr.w r3, r3, #1
  23060. 800a070: 6713 str r3, [r2, #112] @ 0x70
  23061. 800a072: e00b b.n 800a08c <HAL_RCC_OscConfig+0x5e0>
  23062. 800a074: 4b68 ldr r3, [pc, #416] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23063. 800a076: 6f1b ldr r3, [r3, #112] @ 0x70
  23064. 800a078: 4a67 ldr r2, [pc, #412] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23065. 800a07a: f023 0301 bic.w r3, r3, #1
  23066. 800a07e: 6713 str r3, [r2, #112] @ 0x70
  23067. 800a080: 4b65 ldr r3, [pc, #404] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23068. 800a082: 6f1b ldr r3, [r3, #112] @ 0x70
  23069. 800a084: 4a64 ldr r2, [pc, #400] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23070. 800a086: f023 0304 bic.w r3, r3, #4
  23071. 800a08a: 6713 str r3, [r2, #112] @ 0x70
  23072. /* Check the LSE State */
  23073. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  23074. 800a08c: 687b ldr r3, [r7, #4]
  23075. 800a08e: 689b ldr r3, [r3, #8]
  23076. 800a090: 2b00 cmp r3, #0
  23077. 800a092: d015 beq.n 800a0c0 <HAL_RCC_OscConfig+0x614>
  23078. {
  23079. /* Get Start Tick*/
  23080. tickstart = HAL_GetTick();
  23081. 800a094: f7fa ffd6 bl 8005044 <HAL_GetTick>
  23082. 800a098: 6278 str r0, [r7, #36] @ 0x24
  23083. /* Wait till LSE is ready */
  23084. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  23085. 800a09a: e00a b.n 800a0b2 <HAL_RCC_OscConfig+0x606>
  23086. {
  23087. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  23088. 800a09c: f7fa ffd2 bl 8005044 <HAL_GetTick>
  23089. 800a0a0: 4602 mov r2, r0
  23090. 800a0a2: 6a7b ldr r3, [r7, #36] @ 0x24
  23091. 800a0a4: 1ad3 subs r3, r2, r3
  23092. 800a0a6: f241 3288 movw r2, #5000 @ 0x1388
  23093. 800a0aa: 4293 cmp r3, r2
  23094. 800a0ac: d901 bls.n 800a0b2 <HAL_RCC_OscConfig+0x606>
  23095. {
  23096. return HAL_TIMEOUT;
  23097. 800a0ae: 2303 movs r3, #3
  23098. 800a0b0: e14e b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23099. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  23100. 800a0b2: 4b59 ldr r3, [pc, #356] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23101. 800a0b4: 6f1b ldr r3, [r3, #112] @ 0x70
  23102. 800a0b6: f003 0302 and.w r3, r3, #2
  23103. 800a0ba: 2b00 cmp r3, #0
  23104. 800a0bc: d0ee beq.n 800a09c <HAL_RCC_OscConfig+0x5f0>
  23105. 800a0be: e014 b.n 800a0ea <HAL_RCC_OscConfig+0x63e>
  23106. }
  23107. }
  23108. else
  23109. {
  23110. /* Get Start Tick*/
  23111. tickstart = HAL_GetTick();
  23112. 800a0c0: f7fa ffc0 bl 8005044 <HAL_GetTick>
  23113. 800a0c4: 6278 str r0, [r7, #36] @ 0x24
  23114. /* Wait till LSE is disabled */
  23115. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  23116. 800a0c6: e00a b.n 800a0de <HAL_RCC_OscConfig+0x632>
  23117. {
  23118. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  23119. 800a0c8: f7fa ffbc bl 8005044 <HAL_GetTick>
  23120. 800a0cc: 4602 mov r2, r0
  23121. 800a0ce: 6a7b ldr r3, [r7, #36] @ 0x24
  23122. 800a0d0: 1ad3 subs r3, r2, r3
  23123. 800a0d2: f241 3288 movw r2, #5000 @ 0x1388
  23124. 800a0d6: 4293 cmp r3, r2
  23125. 800a0d8: d901 bls.n 800a0de <HAL_RCC_OscConfig+0x632>
  23126. {
  23127. return HAL_TIMEOUT;
  23128. 800a0da: 2303 movs r3, #3
  23129. 800a0dc: e138 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23130. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  23131. 800a0de: 4b4e ldr r3, [pc, #312] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23132. 800a0e0: 6f1b ldr r3, [r3, #112] @ 0x70
  23133. 800a0e2: f003 0302 and.w r3, r3, #2
  23134. 800a0e6: 2b00 cmp r3, #0
  23135. 800a0e8: d1ee bne.n 800a0c8 <HAL_RCC_OscConfig+0x61c>
  23136. }
  23137. }
  23138. /*-------------------------------- PLL Configuration -----------------------*/
  23139. /* Check the parameters */
  23140. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  23141. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  23142. 800a0ea: 687b ldr r3, [r7, #4]
  23143. 800a0ec: 6a5b ldr r3, [r3, #36] @ 0x24
  23144. 800a0ee: 2b00 cmp r3, #0
  23145. 800a0f0: f000 812d beq.w 800a34e <HAL_RCC_OscConfig+0x8a2>
  23146. {
  23147. /* Check if the PLL is used as system clock or not */
  23148. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  23149. 800a0f4: 4b48 ldr r3, [pc, #288] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23150. 800a0f6: 691b ldr r3, [r3, #16]
  23151. 800a0f8: f003 0338 and.w r3, r3, #56 @ 0x38
  23152. 800a0fc: 2b18 cmp r3, #24
  23153. 800a0fe: f000 80bd beq.w 800a27c <HAL_RCC_OscConfig+0x7d0>
  23154. {
  23155. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  23156. 800a102: 687b ldr r3, [r7, #4]
  23157. 800a104: 6a5b ldr r3, [r3, #36] @ 0x24
  23158. 800a106: 2b02 cmp r3, #2
  23159. 800a108: f040 809e bne.w 800a248 <HAL_RCC_OscConfig+0x79c>
  23160. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  23161. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  23162. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  23163. /* Disable the main PLL. */
  23164. __HAL_RCC_PLL_DISABLE();
  23165. 800a10c: 4b42 ldr r3, [pc, #264] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23166. 800a10e: 681b ldr r3, [r3, #0]
  23167. 800a110: 4a41 ldr r2, [pc, #260] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23168. 800a112: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  23169. 800a116: 6013 str r3, [r2, #0]
  23170. /* Get Start Tick*/
  23171. tickstart = HAL_GetTick();
  23172. 800a118: f7fa ff94 bl 8005044 <HAL_GetTick>
  23173. 800a11c: 6278 str r0, [r7, #36] @ 0x24
  23174. /* Wait till PLL is disabled */
  23175. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23176. 800a11e: e008 b.n 800a132 <HAL_RCC_OscConfig+0x686>
  23177. {
  23178. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  23179. 800a120: f7fa ff90 bl 8005044 <HAL_GetTick>
  23180. 800a124: 4602 mov r2, r0
  23181. 800a126: 6a7b ldr r3, [r7, #36] @ 0x24
  23182. 800a128: 1ad3 subs r3, r2, r3
  23183. 800a12a: 2b02 cmp r3, #2
  23184. 800a12c: d901 bls.n 800a132 <HAL_RCC_OscConfig+0x686>
  23185. {
  23186. return HAL_TIMEOUT;
  23187. 800a12e: 2303 movs r3, #3
  23188. 800a130: e10e b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23189. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23190. 800a132: 4b39 ldr r3, [pc, #228] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23191. 800a134: 681b ldr r3, [r3, #0]
  23192. 800a136: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23193. 800a13a: 2b00 cmp r3, #0
  23194. 800a13c: d1f0 bne.n 800a120 <HAL_RCC_OscConfig+0x674>
  23195. }
  23196. }
  23197. /* Configure the main PLL clock source, multiplication and division factors. */
  23198. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  23199. 800a13e: 4b36 ldr r3, [pc, #216] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23200. 800a140: 6a9a ldr r2, [r3, #40] @ 0x28
  23201. 800a142: 4b37 ldr r3, [pc, #220] @ (800a220 <HAL_RCC_OscConfig+0x774>)
  23202. 800a144: 4013 ands r3, r2
  23203. 800a146: 687a ldr r2, [r7, #4]
  23204. 800a148: 6a91 ldr r1, [r2, #40] @ 0x28
  23205. 800a14a: 687a ldr r2, [r7, #4]
  23206. 800a14c: 6ad2 ldr r2, [r2, #44] @ 0x2c
  23207. 800a14e: 0112 lsls r2, r2, #4
  23208. 800a150: 430a orrs r2, r1
  23209. 800a152: 4931 ldr r1, [pc, #196] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23210. 800a154: 4313 orrs r3, r2
  23211. 800a156: 628b str r3, [r1, #40] @ 0x28
  23212. 800a158: 687b ldr r3, [r7, #4]
  23213. 800a15a: 6b1b ldr r3, [r3, #48] @ 0x30
  23214. 800a15c: 3b01 subs r3, #1
  23215. 800a15e: f3c3 0208 ubfx r2, r3, #0, #9
  23216. 800a162: 687b ldr r3, [r7, #4]
  23217. 800a164: 6b5b ldr r3, [r3, #52] @ 0x34
  23218. 800a166: 3b01 subs r3, #1
  23219. 800a168: 025b lsls r3, r3, #9
  23220. 800a16a: b29b uxth r3, r3
  23221. 800a16c: 431a orrs r2, r3
  23222. 800a16e: 687b ldr r3, [r7, #4]
  23223. 800a170: 6b9b ldr r3, [r3, #56] @ 0x38
  23224. 800a172: 3b01 subs r3, #1
  23225. 800a174: 041b lsls r3, r3, #16
  23226. 800a176: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  23227. 800a17a: 431a orrs r2, r3
  23228. 800a17c: 687b ldr r3, [r7, #4]
  23229. 800a17e: 6bdb ldr r3, [r3, #60] @ 0x3c
  23230. 800a180: 3b01 subs r3, #1
  23231. 800a182: 061b lsls r3, r3, #24
  23232. 800a184: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  23233. 800a188: 4923 ldr r1, [pc, #140] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23234. 800a18a: 4313 orrs r3, r2
  23235. 800a18c: 630b str r3, [r1, #48] @ 0x30
  23236. RCC_OscInitStruct->PLL.PLLP,
  23237. RCC_OscInitStruct->PLL.PLLQ,
  23238. RCC_OscInitStruct->PLL.PLLR);
  23239. /* Disable PLLFRACN . */
  23240. __HAL_RCC_PLLFRACN_DISABLE();
  23241. 800a18e: 4b22 ldr r3, [pc, #136] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23242. 800a190: 6adb ldr r3, [r3, #44] @ 0x2c
  23243. 800a192: 4a21 ldr r2, [pc, #132] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23244. 800a194: f023 0301 bic.w r3, r3, #1
  23245. 800a198: 62d3 str r3, [r2, #44] @ 0x2c
  23246. /* Configure PLL PLL1FRACN */
  23247. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  23248. 800a19a: 4b1f ldr r3, [pc, #124] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23249. 800a19c: 6b5a ldr r2, [r3, #52] @ 0x34
  23250. 800a19e: 4b21 ldr r3, [pc, #132] @ (800a224 <HAL_RCC_OscConfig+0x778>)
  23251. 800a1a0: 4013 ands r3, r2
  23252. 800a1a2: 687a ldr r2, [r7, #4]
  23253. 800a1a4: 6c92 ldr r2, [r2, #72] @ 0x48
  23254. 800a1a6: 00d2 lsls r2, r2, #3
  23255. 800a1a8: 491b ldr r1, [pc, #108] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23256. 800a1aa: 4313 orrs r3, r2
  23257. 800a1ac: 634b str r3, [r1, #52] @ 0x34
  23258. /* Select PLL1 input reference frequency range: VCI */
  23259. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  23260. 800a1ae: 4b1a ldr r3, [pc, #104] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23261. 800a1b0: 6adb ldr r3, [r3, #44] @ 0x2c
  23262. 800a1b2: f023 020c bic.w r2, r3, #12
  23263. 800a1b6: 687b ldr r3, [r7, #4]
  23264. 800a1b8: 6c1b ldr r3, [r3, #64] @ 0x40
  23265. 800a1ba: 4917 ldr r1, [pc, #92] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23266. 800a1bc: 4313 orrs r3, r2
  23267. 800a1be: 62cb str r3, [r1, #44] @ 0x2c
  23268. /* Select PLL1 output frequency range : VCO */
  23269. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  23270. 800a1c0: 4b15 ldr r3, [pc, #84] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23271. 800a1c2: 6adb ldr r3, [r3, #44] @ 0x2c
  23272. 800a1c4: f023 0202 bic.w r2, r3, #2
  23273. 800a1c8: 687b ldr r3, [r7, #4]
  23274. 800a1ca: 6c5b ldr r3, [r3, #68] @ 0x44
  23275. 800a1cc: 4912 ldr r1, [pc, #72] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23276. 800a1ce: 4313 orrs r3, r2
  23277. 800a1d0: 62cb str r3, [r1, #44] @ 0x2c
  23278. /* Enable PLL System Clock output. */
  23279. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  23280. 800a1d2: 4b11 ldr r3, [pc, #68] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23281. 800a1d4: 6adb ldr r3, [r3, #44] @ 0x2c
  23282. 800a1d6: 4a10 ldr r2, [pc, #64] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23283. 800a1d8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23284. 800a1dc: 62d3 str r3, [r2, #44] @ 0x2c
  23285. /* Enable PLL1Q Clock output. */
  23286. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  23287. 800a1de: 4b0e ldr r3, [pc, #56] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23288. 800a1e0: 6adb ldr r3, [r3, #44] @ 0x2c
  23289. 800a1e2: 4a0d ldr r2, [pc, #52] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23290. 800a1e4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23291. 800a1e8: 62d3 str r3, [r2, #44] @ 0x2c
  23292. /* Enable PLL1R Clock output. */
  23293. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  23294. 800a1ea: 4b0b ldr r3, [pc, #44] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23295. 800a1ec: 6adb ldr r3, [r3, #44] @ 0x2c
  23296. 800a1ee: 4a0a ldr r2, [pc, #40] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23297. 800a1f0: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  23298. 800a1f4: 62d3 str r3, [r2, #44] @ 0x2c
  23299. /* Enable PLL1FRACN . */
  23300. __HAL_RCC_PLLFRACN_ENABLE();
  23301. 800a1f6: 4b08 ldr r3, [pc, #32] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23302. 800a1f8: 6adb ldr r3, [r3, #44] @ 0x2c
  23303. 800a1fa: 4a07 ldr r2, [pc, #28] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23304. 800a1fc: f043 0301 orr.w r3, r3, #1
  23305. 800a200: 62d3 str r3, [r2, #44] @ 0x2c
  23306. /* Enable the main PLL. */
  23307. __HAL_RCC_PLL_ENABLE();
  23308. 800a202: 4b05 ldr r3, [pc, #20] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23309. 800a204: 681b ldr r3, [r3, #0]
  23310. 800a206: 4a04 ldr r2, [pc, #16] @ (800a218 <HAL_RCC_OscConfig+0x76c>)
  23311. 800a208: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  23312. 800a20c: 6013 str r3, [r2, #0]
  23313. /* Get Start Tick*/
  23314. tickstart = HAL_GetTick();
  23315. 800a20e: f7fa ff19 bl 8005044 <HAL_GetTick>
  23316. 800a212: 6278 str r0, [r7, #36] @ 0x24
  23317. /* Wait till PLL is ready */
  23318. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  23319. 800a214: e011 b.n 800a23a <HAL_RCC_OscConfig+0x78e>
  23320. 800a216: bf00 nop
  23321. 800a218: 58024400 .word 0x58024400
  23322. 800a21c: 58024800 .word 0x58024800
  23323. 800a220: fffffc0c .word 0xfffffc0c
  23324. 800a224: ffff0007 .word 0xffff0007
  23325. {
  23326. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  23327. 800a228: f7fa ff0c bl 8005044 <HAL_GetTick>
  23328. 800a22c: 4602 mov r2, r0
  23329. 800a22e: 6a7b ldr r3, [r7, #36] @ 0x24
  23330. 800a230: 1ad3 subs r3, r2, r3
  23331. 800a232: 2b02 cmp r3, #2
  23332. 800a234: d901 bls.n 800a23a <HAL_RCC_OscConfig+0x78e>
  23333. {
  23334. return HAL_TIMEOUT;
  23335. 800a236: 2303 movs r3, #3
  23336. 800a238: e08a b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23337. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  23338. 800a23a: 4b47 ldr r3, [pc, #284] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23339. 800a23c: 681b ldr r3, [r3, #0]
  23340. 800a23e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23341. 800a242: 2b00 cmp r3, #0
  23342. 800a244: d0f0 beq.n 800a228 <HAL_RCC_OscConfig+0x77c>
  23343. 800a246: e082 b.n 800a34e <HAL_RCC_OscConfig+0x8a2>
  23344. }
  23345. }
  23346. else
  23347. {
  23348. /* Disable the main PLL. */
  23349. __HAL_RCC_PLL_DISABLE();
  23350. 800a248: 4b43 ldr r3, [pc, #268] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23351. 800a24a: 681b ldr r3, [r3, #0]
  23352. 800a24c: 4a42 ldr r2, [pc, #264] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23353. 800a24e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  23354. 800a252: 6013 str r3, [r2, #0]
  23355. /* Get Start Tick*/
  23356. tickstart = HAL_GetTick();
  23357. 800a254: f7fa fef6 bl 8005044 <HAL_GetTick>
  23358. 800a258: 6278 str r0, [r7, #36] @ 0x24
  23359. /* Wait till PLL is disabled */
  23360. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23361. 800a25a: e008 b.n 800a26e <HAL_RCC_OscConfig+0x7c2>
  23362. {
  23363. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  23364. 800a25c: f7fa fef2 bl 8005044 <HAL_GetTick>
  23365. 800a260: 4602 mov r2, r0
  23366. 800a262: 6a7b ldr r3, [r7, #36] @ 0x24
  23367. 800a264: 1ad3 subs r3, r2, r3
  23368. 800a266: 2b02 cmp r3, #2
  23369. 800a268: d901 bls.n 800a26e <HAL_RCC_OscConfig+0x7c2>
  23370. {
  23371. return HAL_TIMEOUT;
  23372. 800a26a: 2303 movs r3, #3
  23373. 800a26c: e070 b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23374. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23375. 800a26e: 4b3a ldr r3, [pc, #232] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23376. 800a270: 681b ldr r3, [r3, #0]
  23377. 800a272: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23378. 800a276: 2b00 cmp r3, #0
  23379. 800a278: d1f0 bne.n 800a25c <HAL_RCC_OscConfig+0x7b0>
  23380. 800a27a: e068 b.n 800a34e <HAL_RCC_OscConfig+0x8a2>
  23381. }
  23382. }
  23383. else
  23384. {
  23385. /* Do not return HAL_ERROR if request repeats the current configuration */
  23386. temp1_pllckcfg = RCC->PLLCKSELR;
  23387. 800a27c: 4b36 ldr r3, [pc, #216] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23388. 800a27e: 6a9b ldr r3, [r3, #40] @ 0x28
  23389. 800a280: 613b str r3, [r7, #16]
  23390. temp2_pllckcfg = RCC->PLL1DIVR;
  23391. 800a282: 4b35 ldr r3, [pc, #212] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23392. 800a284: 6b1b ldr r3, [r3, #48] @ 0x30
  23393. 800a286: 60fb str r3, [r7, #12]
  23394. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  23395. 800a288: 687b ldr r3, [r7, #4]
  23396. 800a28a: 6a5b ldr r3, [r3, #36] @ 0x24
  23397. 800a28c: 2b01 cmp r3, #1
  23398. 800a28e: d031 beq.n 800a2f4 <HAL_RCC_OscConfig+0x848>
  23399. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  23400. 800a290: 693b ldr r3, [r7, #16]
  23401. 800a292: f003 0203 and.w r2, r3, #3
  23402. 800a296: 687b ldr r3, [r7, #4]
  23403. 800a298: 6a9b ldr r3, [r3, #40] @ 0x28
  23404. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  23405. 800a29a: 429a cmp r2, r3
  23406. 800a29c: d12a bne.n 800a2f4 <HAL_RCC_OscConfig+0x848>
  23407. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  23408. 800a29e: 693b ldr r3, [r7, #16]
  23409. 800a2a0: 091b lsrs r3, r3, #4
  23410. 800a2a2: f003 023f and.w r2, r3, #63 @ 0x3f
  23411. 800a2a6: 687b ldr r3, [r7, #4]
  23412. 800a2a8: 6adb ldr r3, [r3, #44] @ 0x2c
  23413. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  23414. 800a2aa: 429a cmp r2, r3
  23415. 800a2ac: d122 bne.n 800a2f4 <HAL_RCC_OscConfig+0x848>
  23416. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  23417. 800a2ae: 68fb ldr r3, [r7, #12]
  23418. 800a2b0: f3c3 0208 ubfx r2, r3, #0, #9
  23419. 800a2b4: 687b ldr r3, [r7, #4]
  23420. 800a2b6: 6b1b ldr r3, [r3, #48] @ 0x30
  23421. 800a2b8: 3b01 subs r3, #1
  23422. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  23423. 800a2ba: 429a cmp r2, r3
  23424. 800a2bc: d11a bne.n 800a2f4 <HAL_RCC_OscConfig+0x848>
  23425. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  23426. 800a2be: 68fb ldr r3, [r7, #12]
  23427. 800a2c0: 0a5b lsrs r3, r3, #9
  23428. 800a2c2: f003 027f and.w r2, r3, #127 @ 0x7f
  23429. 800a2c6: 687b ldr r3, [r7, #4]
  23430. 800a2c8: 6b5b ldr r3, [r3, #52] @ 0x34
  23431. 800a2ca: 3b01 subs r3, #1
  23432. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  23433. 800a2cc: 429a cmp r2, r3
  23434. 800a2ce: d111 bne.n 800a2f4 <HAL_RCC_OscConfig+0x848>
  23435. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  23436. 800a2d0: 68fb ldr r3, [r7, #12]
  23437. 800a2d2: 0c1b lsrs r3, r3, #16
  23438. 800a2d4: f003 027f and.w r2, r3, #127 @ 0x7f
  23439. 800a2d8: 687b ldr r3, [r7, #4]
  23440. 800a2da: 6b9b ldr r3, [r3, #56] @ 0x38
  23441. 800a2dc: 3b01 subs r3, #1
  23442. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  23443. 800a2de: 429a cmp r2, r3
  23444. 800a2e0: d108 bne.n 800a2f4 <HAL_RCC_OscConfig+0x848>
  23445. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  23446. 800a2e2: 68fb ldr r3, [r7, #12]
  23447. 800a2e4: 0e1b lsrs r3, r3, #24
  23448. 800a2e6: f003 027f and.w r2, r3, #127 @ 0x7f
  23449. 800a2ea: 687b ldr r3, [r7, #4]
  23450. 800a2ec: 6bdb ldr r3, [r3, #60] @ 0x3c
  23451. 800a2ee: 3b01 subs r3, #1
  23452. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  23453. 800a2f0: 429a cmp r2, r3
  23454. 800a2f2: d001 beq.n 800a2f8 <HAL_RCC_OscConfig+0x84c>
  23455. {
  23456. return HAL_ERROR;
  23457. 800a2f4: 2301 movs r3, #1
  23458. 800a2f6: e02b b.n 800a350 <HAL_RCC_OscConfig+0x8a4>
  23459. }
  23460. else
  23461. {
  23462. /* Check if only fractional part needs to be updated */
  23463. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  23464. 800a2f8: 4b17 ldr r3, [pc, #92] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23465. 800a2fa: 6b5b ldr r3, [r3, #52] @ 0x34
  23466. 800a2fc: 08db lsrs r3, r3, #3
  23467. 800a2fe: f3c3 030c ubfx r3, r3, #0, #13
  23468. 800a302: 613b str r3, [r7, #16]
  23469. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  23470. 800a304: 687b ldr r3, [r7, #4]
  23471. 800a306: 6c9b ldr r3, [r3, #72] @ 0x48
  23472. 800a308: 693a ldr r2, [r7, #16]
  23473. 800a30a: 429a cmp r2, r3
  23474. 800a30c: d01f beq.n 800a34e <HAL_RCC_OscConfig+0x8a2>
  23475. {
  23476. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  23477. /* Disable PLL1FRACEN */
  23478. __HAL_RCC_PLLFRACN_DISABLE();
  23479. 800a30e: 4b12 ldr r3, [pc, #72] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23480. 800a310: 6adb ldr r3, [r3, #44] @ 0x2c
  23481. 800a312: 4a11 ldr r2, [pc, #68] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23482. 800a314: f023 0301 bic.w r3, r3, #1
  23483. 800a318: 62d3 str r3, [r2, #44] @ 0x2c
  23484. /* Get Start Tick*/
  23485. tickstart = HAL_GetTick();
  23486. 800a31a: f7fa fe93 bl 8005044 <HAL_GetTick>
  23487. 800a31e: 6278 str r0, [r7, #36] @ 0x24
  23488. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  23489. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  23490. 800a320: bf00 nop
  23491. 800a322: f7fa fe8f bl 8005044 <HAL_GetTick>
  23492. 800a326: 4602 mov r2, r0
  23493. 800a328: 6a7b ldr r3, [r7, #36] @ 0x24
  23494. 800a32a: 4293 cmp r3, r2
  23495. 800a32c: d0f9 beq.n 800a322 <HAL_RCC_OscConfig+0x876>
  23496. {
  23497. }
  23498. /* Configure PLL1 PLL1FRACN */
  23499. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  23500. 800a32e: 4b0a ldr r3, [pc, #40] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23501. 800a330: 6b5a ldr r2, [r3, #52] @ 0x34
  23502. 800a332: 4b0a ldr r3, [pc, #40] @ (800a35c <HAL_RCC_OscConfig+0x8b0>)
  23503. 800a334: 4013 ands r3, r2
  23504. 800a336: 687a ldr r2, [r7, #4]
  23505. 800a338: 6c92 ldr r2, [r2, #72] @ 0x48
  23506. 800a33a: 00d2 lsls r2, r2, #3
  23507. 800a33c: 4906 ldr r1, [pc, #24] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23508. 800a33e: 4313 orrs r3, r2
  23509. 800a340: 634b str r3, [r1, #52] @ 0x34
  23510. /* Enable PLL1FRACEN to latch new value. */
  23511. __HAL_RCC_PLLFRACN_ENABLE();
  23512. 800a342: 4b05 ldr r3, [pc, #20] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23513. 800a344: 6adb ldr r3, [r3, #44] @ 0x2c
  23514. 800a346: 4a04 ldr r2, [pc, #16] @ (800a358 <HAL_RCC_OscConfig+0x8ac>)
  23515. 800a348: f043 0301 orr.w r3, r3, #1
  23516. 800a34c: 62d3 str r3, [r2, #44] @ 0x2c
  23517. }
  23518. }
  23519. }
  23520. }
  23521. return HAL_OK;
  23522. 800a34e: 2300 movs r3, #0
  23523. }
  23524. 800a350: 4618 mov r0, r3
  23525. 800a352: 3730 adds r7, #48 @ 0x30
  23526. 800a354: 46bd mov sp, r7
  23527. 800a356: bd80 pop {r7, pc}
  23528. 800a358: 58024400 .word 0x58024400
  23529. 800a35c: ffff0007 .word 0xffff0007
  23530. 0800a360 <HAL_RCC_ClockConfig>:
  23531. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  23532. * (for more details refer to section above "Initialization/de-initialization functions")
  23533. * @retval None
  23534. */
  23535. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  23536. {
  23537. 800a360: b580 push {r7, lr}
  23538. 800a362: b086 sub sp, #24
  23539. 800a364: af00 add r7, sp, #0
  23540. 800a366: 6078 str r0, [r7, #4]
  23541. 800a368: 6039 str r1, [r7, #0]
  23542. HAL_StatusTypeDef halstatus;
  23543. uint32_t tickstart;
  23544. uint32_t common_system_clock;
  23545. /* Check Null pointer */
  23546. if (RCC_ClkInitStruct == NULL)
  23547. 800a36a: 687b ldr r3, [r7, #4]
  23548. 800a36c: 2b00 cmp r3, #0
  23549. 800a36e: d101 bne.n 800a374 <HAL_RCC_ClockConfig+0x14>
  23550. {
  23551. return HAL_ERROR;
  23552. 800a370: 2301 movs r3, #1
  23553. 800a372: e19c b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23554. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  23555. must be correctly programmed according to the frequency of the CPU clock
  23556. (HCLK) and the supply voltage of the device. */
  23557. /* Increasing the CPU frequency */
  23558. if (FLatency > __HAL_FLASH_GET_LATENCY())
  23559. 800a374: 4b8a ldr r3, [pc, #552] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23560. 800a376: 681b ldr r3, [r3, #0]
  23561. 800a378: f003 030f and.w r3, r3, #15
  23562. 800a37c: 683a ldr r2, [r7, #0]
  23563. 800a37e: 429a cmp r2, r3
  23564. 800a380: d910 bls.n 800a3a4 <HAL_RCC_ClockConfig+0x44>
  23565. {
  23566. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  23567. __HAL_FLASH_SET_LATENCY(FLatency);
  23568. 800a382: 4b87 ldr r3, [pc, #540] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23569. 800a384: 681b ldr r3, [r3, #0]
  23570. 800a386: f023 020f bic.w r2, r3, #15
  23571. 800a38a: 4985 ldr r1, [pc, #532] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23572. 800a38c: 683b ldr r3, [r7, #0]
  23573. 800a38e: 4313 orrs r3, r2
  23574. 800a390: 600b str r3, [r1, #0]
  23575. /* Check that the new number of wait states is taken into account to access the Flash
  23576. memory by reading the FLASH_ACR register */
  23577. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  23578. 800a392: 4b83 ldr r3, [pc, #524] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23579. 800a394: 681b ldr r3, [r3, #0]
  23580. 800a396: f003 030f and.w r3, r3, #15
  23581. 800a39a: 683a ldr r2, [r7, #0]
  23582. 800a39c: 429a cmp r2, r3
  23583. 800a39e: d001 beq.n 800a3a4 <HAL_RCC_ClockConfig+0x44>
  23584. {
  23585. return HAL_ERROR;
  23586. 800a3a0: 2301 movs r3, #1
  23587. 800a3a2: e184 b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23588. }
  23589. /* Increasing the BUS frequency divider */
  23590. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  23591. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  23592. 800a3a4: 687b ldr r3, [r7, #4]
  23593. 800a3a6: 681b ldr r3, [r3, #0]
  23594. 800a3a8: f003 0304 and.w r3, r3, #4
  23595. 800a3ac: 2b00 cmp r3, #0
  23596. 800a3ae: d010 beq.n 800a3d2 <HAL_RCC_ClockConfig+0x72>
  23597. {
  23598. #if defined (RCC_D1CFGR_D1PPRE)
  23599. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  23600. 800a3b0: 687b ldr r3, [r7, #4]
  23601. 800a3b2: 691a ldr r2, [r3, #16]
  23602. 800a3b4: 4b7b ldr r3, [pc, #492] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23603. 800a3b6: 699b ldr r3, [r3, #24]
  23604. 800a3b8: f003 0370 and.w r3, r3, #112 @ 0x70
  23605. 800a3bc: 429a cmp r2, r3
  23606. 800a3be: d908 bls.n 800a3d2 <HAL_RCC_ClockConfig+0x72>
  23607. {
  23608. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  23609. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  23610. 800a3c0: 4b78 ldr r3, [pc, #480] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23611. 800a3c2: 699b ldr r3, [r3, #24]
  23612. 800a3c4: f023 0270 bic.w r2, r3, #112 @ 0x70
  23613. 800a3c8: 687b ldr r3, [r7, #4]
  23614. 800a3ca: 691b ldr r3, [r3, #16]
  23615. 800a3cc: 4975 ldr r1, [pc, #468] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23616. 800a3ce: 4313 orrs r3, r2
  23617. 800a3d0: 618b str r3, [r1, #24]
  23618. }
  23619. #endif
  23620. }
  23621. /*-------------------------- PCLK1 Configuration ---------------------------*/
  23622. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  23623. 800a3d2: 687b ldr r3, [r7, #4]
  23624. 800a3d4: 681b ldr r3, [r3, #0]
  23625. 800a3d6: f003 0308 and.w r3, r3, #8
  23626. 800a3da: 2b00 cmp r3, #0
  23627. 800a3dc: d010 beq.n 800a400 <HAL_RCC_ClockConfig+0xa0>
  23628. {
  23629. #if defined (RCC_D2CFGR_D2PPRE1)
  23630. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  23631. 800a3de: 687b ldr r3, [r7, #4]
  23632. 800a3e0: 695a ldr r2, [r3, #20]
  23633. 800a3e2: 4b70 ldr r3, [pc, #448] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23634. 800a3e4: 69db ldr r3, [r3, #28]
  23635. 800a3e6: f003 0370 and.w r3, r3, #112 @ 0x70
  23636. 800a3ea: 429a cmp r2, r3
  23637. 800a3ec: d908 bls.n 800a400 <HAL_RCC_ClockConfig+0xa0>
  23638. {
  23639. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  23640. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  23641. 800a3ee: 4b6d ldr r3, [pc, #436] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23642. 800a3f0: 69db ldr r3, [r3, #28]
  23643. 800a3f2: f023 0270 bic.w r2, r3, #112 @ 0x70
  23644. 800a3f6: 687b ldr r3, [r7, #4]
  23645. 800a3f8: 695b ldr r3, [r3, #20]
  23646. 800a3fa: 496a ldr r1, [pc, #424] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23647. 800a3fc: 4313 orrs r3, r2
  23648. 800a3fe: 61cb str r3, [r1, #28]
  23649. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  23650. }
  23651. #endif
  23652. }
  23653. /*-------------------------- PCLK2 Configuration ---------------------------*/
  23654. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  23655. 800a400: 687b ldr r3, [r7, #4]
  23656. 800a402: 681b ldr r3, [r3, #0]
  23657. 800a404: f003 0310 and.w r3, r3, #16
  23658. 800a408: 2b00 cmp r3, #0
  23659. 800a40a: d010 beq.n 800a42e <HAL_RCC_ClockConfig+0xce>
  23660. {
  23661. #if defined(RCC_D2CFGR_D2PPRE2)
  23662. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  23663. 800a40c: 687b ldr r3, [r7, #4]
  23664. 800a40e: 699a ldr r2, [r3, #24]
  23665. 800a410: 4b64 ldr r3, [pc, #400] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23666. 800a412: 69db ldr r3, [r3, #28]
  23667. 800a414: f403 63e0 and.w r3, r3, #1792 @ 0x700
  23668. 800a418: 429a cmp r2, r3
  23669. 800a41a: d908 bls.n 800a42e <HAL_RCC_ClockConfig+0xce>
  23670. {
  23671. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  23672. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  23673. 800a41c: 4b61 ldr r3, [pc, #388] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23674. 800a41e: 69db ldr r3, [r3, #28]
  23675. 800a420: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  23676. 800a424: 687b ldr r3, [r7, #4]
  23677. 800a426: 699b ldr r3, [r3, #24]
  23678. 800a428: 495e ldr r1, [pc, #376] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23679. 800a42a: 4313 orrs r3, r2
  23680. 800a42c: 61cb str r3, [r1, #28]
  23681. }
  23682. #endif
  23683. }
  23684. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  23685. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  23686. 800a42e: 687b ldr r3, [r7, #4]
  23687. 800a430: 681b ldr r3, [r3, #0]
  23688. 800a432: f003 0320 and.w r3, r3, #32
  23689. 800a436: 2b00 cmp r3, #0
  23690. 800a438: d010 beq.n 800a45c <HAL_RCC_ClockConfig+0xfc>
  23691. {
  23692. #if defined(RCC_D3CFGR_D3PPRE)
  23693. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  23694. 800a43a: 687b ldr r3, [r7, #4]
  23695. 800a43c: 69da ldr r2, [r3, #28]
  23696. 800a43e: 4b59 ldr r3, [pc, #356] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23697. 800a440: 6a1b ldr r3, [r3, #32]
  23698. 800a442: f003 0370 and.w r3, r3, #112 @ 0x70
  23699. 800a446: 429a cmp r2, r3
  23700. 800a448: d908 bls.n 800a45c <HAL_RCC_ClockConfig+0xfc>
  23701. {
  23702. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  23703. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  23704. 800a44a: 4b56 ldr r3, [pc, #344] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23705. 800a44c: 6a1b ldr r3, [r3, #32]
  23706. 800a44e: f023 0270 bic.w r2, r3, #112 @ 0x70
  23707. 800a452: 687b ldr r3, [r7, #4]
  23708. 800a454: 69db ldr r3, [r3, #28]
  23709. 800a456: 4953 ldr r1, [pc, #332] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23710. 800a458: 4313 orrs r3, r2
  23711. 800a45a: 620b str r3, [r1, #32]
  23712. }
  23713. #endif
  23714. }
  23715. /*-------------------------- HCLK Configuration --------------------------*/
  23716. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  23717. 800a45c: 687b ldr r3, [r7, #4]
  23718. 800a45e: 681b ldr r3, [r3, #0]
  23719. 800a460: f003 0302 and.w r3, r3, #2
  23720. 800a464: 2b00 cmp r3, #0
  23721. 800a466: d010 beq.n 800a48a <HAL_RCC_ClockConfig+0x12a>
  23722. {
  23723. #if defined (RCC_D1CFGR_HPRE)
  23724. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  23725. 800a468: 687b ldr r3, [r7, #4]
  23726. 800a46a: 68da ldr r2, [r3, #12]
  23727. 800a46c: 4b4d ldr r3, [pc, #308] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23728. 800a46e: 699b ldr r3, [r3, #24]
  23729. 800a470: f003 030f and.w r3, r3, #15
  23730. 800a474: 429a cmp r2, r3
  23731. 800a476: d908 bls.n 800a48a <HAL_RCC_ClockConfig+0x12a>
  23732. {
  23733. /* Set the new HCLK clock divider */
  23734. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  23735. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  23736. 800a478: 4b4a ldr r3, [pc, #296] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23737. 800a47a: 699b ldr r3, [r3, #24]
  23738. 800a47c: f023 020f bic.w r2, r3, #15
  23739. 800a480: 687b ldr r3, [r7, #4]
  23740. 800a482: 68db ldr r3, [r3, #12]
  23741. 800a484: 4947 ldr r1, [pc, #284] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23742. 800a486: 4313 orrs r3, r2
  23743. 800a488: 618b str r3, [r1, #24]
  23744. }
  23745. #endif
  23746. }
  23747. /*------------------------- SYSCLK Configuration -------------------------*/
  23748. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  23749. 800a48a: 687b ldr r3, [r7, #4]
  23750. 800a48c: 681b ldr r3, [r3, #0]
  23751. 800a48e: f003 0301 and.w r3, r3, #1
  23752. 800a492: 2b00 cmp r3, #0
  23753. 800a494: d055 beq.n 800a542 <HAL_RCC_ClockConfig+0x1e2>
  23754. {
  23755. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  23756. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  23757. #if defined(RCC_D1CFGR_D1CPRE)
  23758. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  23759. 800a496: 4b43 ldr r3, [pc, #268] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23760. 800a498: 699b ldr r3, [r3, #24]
  23761. 800a49a: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  23762. 800a49e: 687b ldr r3, [r7, #4]
  23763. 800a4a0: 689b ldr r3, [r3, #8]
  23764. 800a4a2: 4940 ldr r1, [pc, #256] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23765. 800a4a4: 4313 orrs r3, r2
  23766. 800a4a6: 618b str r3, [r1, #24]
  23767. #else
  23768. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  23769. #endif
  23770. /* HSE is selected as System Clock Source */
  23771. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  23772. 800a4a8: 687b ldr r3, [r7, #4]
  23773. 800a4aa: 685b ldr r3, [r3, #4]
  23774. 800a4ac: 2b02 cmp r3, #2
  23775. 800a4ae: d107 bne.n 800a4c0 <HAL_RCC_ClockConfig+0x160>
  23776. {
  23777. /* Check the HSE ready flag */
  23778. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  23779. 800a4b0: 4b3c ldr r3, [pc, #240] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23780. 800a4b2: 681b ldr r3, [r3, #0]
  23781. 800a4b4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  23782. 800a4b8: 2b00 cmp r3, #0
  23783. 800a4ba: d121 bne.n 800a500 <HAL_RCC_ClockConfig+0x1a0>
  23784. {
  23785. return HAL_ERROR;
  23786. 800a4bc: 2301 movs r3, #1
  23787. 800a4be: e0f6 b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23788. }
  23789. }
  23790. /* PLL is selected as System Clock Source */
  23791. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  23792. 800a4c0: 687b ldr r3, [r7, #4]
  23793. 800a4c2: 685b ldr r3, [r3, #4]
  23794. 800a4c4: 2b03 cmp r3, #3
  23795. 800a4c6: d107 bne.n 800a4d8 <HAL_RCC_ClockConfig+0x178>
  23796. {
  23797. /* Check the PLL ready flag */
  23798. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  23799. 800a4c8: 4b36 ldr r3, [pc, #216] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23800. 800a4ca: 681b ldr r3, [r3, #0]
  23801. 800a4cc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23802. 800a4d0: 2b00 cmp r3, #0
  23803. 800a4d2: d115 bne.n 800a500 <HAL_RCC_ClockConfig+0x1a0>
  23804. {
  23805. return HAL_ERROR;
  23806. 800a4d4: 2301 movs r3, #1
  23807. 800a4d6: e0ea b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23808. }
  23809. }
  23810. /* CSI is selected as System Clock Source */
  23811. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  23812. 800a4d8: 687b ldr r3, [r7, #4]
  23813. 800a4da: 685b ldr r3, [r3, #4]
  23814. 800a4dc: 2b01 cmp r3, #1
  23815. 800a4de: d107 bne.n 800a4f0 <HAL_RCC_ClockConfig+0x190>
  23816. {
  23817. /* Check the PLL ready flag */
  23818. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  23819. 800a4e0: 4b30 ldr r3, [pc, #192] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23820. 800a4e2: 681b ldr r3, [r3, #0]
  23821. 800a4e4: f403 7380 and.w r3, r3, #256 @ 0x100
  23822. 800a4e8: 2b00 cmp r3, #0
  23823. 800a4ea: d109 bne.n 800a500 <HAL_RCC_ClockConfig+0x1a0>
  23824. {
  23825. return HAL_ERROR;
  23826. 800a4ec: 2301 movs r3, #1
  23827. 800a4ee: e0de b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23828. }
  23829. /* HSI is selected as System Clock Source */
  23830. else
  23831. {
  23832. /* Check the HSI ready flag */
  23833. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23834. 800a4f0: 4b2c ldr r3, [pc, #176] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23835. 800a4f2: 681b ldr r3, [r3, #0]
  23836. 800a4f4: f003 0304 and.w r3, r3, #4
  23837. 800a4f8: 2b00 cmp r3, #0
  23838. 800a4fa: d101 bne.n 800a500 <HAL_RCC_ClockConfig+0x1a0>
  23839. {
  23840. return HAL_ERROR;
  23841. 800a4fc: 2301 movs r3, #1
  23842. 800a4fe: e0d6 b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23843. }
  23844. }
  23845. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  23846. 800a500: 4b28 ldr r3, [pc, #160] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23847. 800a502: 691b ldr r3, [r3, #16]
  23848. 800a504: f023 0207 bic.w r2, r3, #7
  23849. 800a508: 687b ldr r3, [r7, #4]
  23850. 800a50a: 685b ldr r3, [r3, #4]
  23851. 800a50c: 4925 ldr r1, [pc, #148] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23852. 800a50e: 4313 orrs r3, r2
  23853. 800a510: 610b str r3, [r1, #16]
  23854. /* Get Start Tick*/
  23855. tickstart = HAL_GetTick();
  23856. 800a512: f7fa fd97 bl 8005044 <HAL_GetTick>
  23857. 800a516: 6178 str r0, [r7, #20]
  23858. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  23859. 800a518: e00a b.n 800a530 <HAL_RCC_ClockConfig+0x1d0>
  23860. {
  23861. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  23862. 800a51a: f7fa fd93 bl 8005044 <HAL_GetTick>
  23863. 800a51e: 4602 mov r2, r0
  23864. 800a520: 697b ldr r3, [r7, #20]
  23865. 800a522: 1ad3 subs r3, r2, r3
  23866. 800a524: f241 3288 movw r2, #5000 @ 0x1388
  23867. 800a528: 4293 cmp r3, r2
  23868. 800a52a: d901 bls.n 800a530 <HAL_RCC_ClockConfig+0x1d0>
  23869. {
  23870. return HAL_TIMEOUT;
  23871. 800a52c: 2303 movs r3, #3
  23872. 800a52e: e0be b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23873. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  23874. 800a530: 4b1c ldr r3, [pc, #112] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23875. 800a532: 691b ldr r3, [r3, #16]
  23876. 800a534: f003 0238 and.w r2, r3, #56 @ 0x38
  23877. 800a538: 687b ldr r3, [r7, #4]
  23878. 800a53a: 685b ldr r3, [r3, #4]
  23879. 800a53c: 00db lsls r3, r3, #3
  23880. 800a53e: 429a cmp r2, r3
  23881. 800a540: d1eb bne.n 800a51a <HAL_RCC_ClockConfig+0x1ba>
  23882. }
  23883. /* Decreasing the BUS frequency divider */
  23884. /*-------------------------- HCLK Configuration --------------------------*/
  23885. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  23886. 800a542: 687b ldr r3, [r7, #4]
  23887. 800a544: 681b ldr r3, [r3, #0]
  23888. 800a546: f003 0302 and.w r3, r3, #2
  23889. 800a54a: 2b00 cmp r3, #0
  23890. 800a54c: d010 beq.n 800a570 <HAL_RCC_ClockConfig+0x210>
  23891. {
  23892. #if defined(RCC_D1CFGR_HPRE)
  23893. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  23894. 800a54e: 687b ldr r3, [r7, #4]
  23895. 800a550: 68da ldr r2, [r3, #12]
  23896. 800a552: 4b14 ldr r3, [pc, #80] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23897. 800a554: 699b ldr r3, [r3, #24]
  23898. 800a556: f003 030f and.w r3, r3, #15
  23899. 800a55a: 429a cmp r2, r3
  23900. 800a55c: d208 bcs.n 800a570 <HAL_RCC_ClockConfig+0x210>
  23901. {
  23902. /* Set the new HCLK clock divider */
  23903. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  23904. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  23905. 800a55e: 4b11 ldr r3, [pc, #68] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23906. 800a560: 699b ldr r3, [r3, #24]
  23907. 800a562: f023 020f bic.w r2, r3, #15
  23908. 800a566: 687b ldr r3, [r7, #4]
  23909. 800a568: 68db ldr r3, [r3, #12]
  23910. 800a56a: 490e ldr r1, [pc, #56] @ (800a5a4 <HAL_RCC_ClockConfig+0x244>)
  23911. 800a56c: 4313 orrs r3, r2
  23912. 800a56e: 618b str r3, [r1, #24]
  23913. }
  23914. #endif
  23915. }
  23916. /* Decreasing the number of wait states because of lower CPU frequency */
  23917. if (FLatency < __HAL_FLASH_GET_LATENCY())
  23918. 800a570: 4b0b ldr r3, [pc, #44] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23919. 800a572: 681b ldr r3, [r3, #0]
  23920. 800a574: f003 030f and.w r3, r3, #15
  23921. 800a578: 683a ldr r2, [r7, #0]
  23922. 800a57a: 429a cmp r2, r3
  23923. 800a57c: d214 bcs.n 800a5a8 <HAL_RCC_ClockConfig+0x248>
  23924. {
  23925. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  23926. __HAL_FLASH_SET_LATENCY(FLatency);
  23927. 800a57e: 4b08 ldr r3, [pc, #32] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23928. 800a580: 681b ldr r3, [r3, #0]
  23929. 800a582: f023 020f bic.w r2, r3, #15
  23930. 800a586: 4906 ldr r1, [pc, #24] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23931. 800a588: 683b ldr r3, [r7, #0]
  23932. 800a58a: 4313 orrs r3, r2
  23933. 800a58c: 600b str r3, [r1, #0]
  23934. /* Check that the new number of wait states is taken into account to access the Flash
  23935. memory by reading the FLASH_ACR register */
  23936. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  23937. 800a58e: 4b04 ldr r3, [pc, #16] @ (800a5a0 <HAL_RCC_ClockConfig+0x240>)
  23938. 800a590: 681b ldr r3, [r3, #0]
  23939. 800a592: f003 030f and.w r3, r3, #15
  23940. 800a596: 683a ldr r2, [r7, #0]
  23941. 800a598: 429a cmp r2, r3
  23942. 800a59a: d005 beq.n 800a5a8 <HAL_RCC_ClockConfig+0x248>
  23943. {
  23944. return HAL_ERROR;
  23945. 800a59c: 2301 movs r3, #1
  23946. 800a59e: e086 b.n 800a6ae <HAL_RCC_ClockConfig+0x34e>
  23947. 800a5a0: 52002000 .word 0x52002000
  23948. 800a5a4: 58024400 .word 0x58024400
  23949. }
  23950. }
  23951. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  23952. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  23953. 800a5a8: 687b ldr r3, [r7, #4]
  23954. 800a5aa: 681b ldr r3, [r3, #0]
  23955. 800a5ac: f003 0304 and.w r3, r3, #4
  23956. 800a5b0: 2b00 cmp r3, #0
  23957. 800a5b2: d010 beq.n 800a5d6 <HAL_RCC_ClockConfig+0x276>
  23958. {
  23959. #if defined(RCC_D1CFGR_D1PPRE)
  23960. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  23961. 800a5b4: 687b ldr r3, [r7, #4]
  23962. 800a5b6: 691a ldr r2, [r3, #16]
  23963. 800a5b8: 4b3f ldr r3, [pc, #252] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  23964. 800a5ba: 699b ldr r3, [r3, #24]
  23965. 800a5bc: f003 0370 and.w r3, r3, #112 @ 0x70
  23966. 800a5c0: 429a cmp r2, r3
  23967. 800a5c2: d208 bcs.n 800a5d6 <HAL_RCC_ClockConfig+0x276>
  23968. {
  23969. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  23970. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  23971. 800a5c4: 4b3c ldr r3, [pc, #240] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  23972. 800a5c6: 699b ldr r3, [r3, #24]
  23973. 800a5c8: f023 0270 bic.w r2, r3, #112 @ 0x70
  23974. 800a5cc: 687b ldr r3, [r7, #4]
  23975. 800a5ce: 691b ldr r3, [r3, #16]
  23976. 800a5d0: 4939 ldr r1, [pc, #228] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  23977. 800a5d2: 4313 orrs r3, r2
  23978. 800a5d4: 618b str r3, [r1, #24]
  23979. }
  23980. #endif
  23981. }
  23982. /*-------------------------- PCLK1 Configuration ---------------------------*/
  23983. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  23984. 800a5d6: 687b ldr r3, [r7, #4]
  23985. 800a5d8: 681b ldr r3, [r3, #0]
  23986. 800a5da: f003 0308 and.w r3, r3, #8
  23987. 800a5de: 2b00 cmp r3, #0
  23988. 800a5e0: d010 beq.n 800a604 <HAL_RCC_ClockConfig+0x2a4>
  23989. {
  23990. #if defined(RCC_D2CFGR_D2PPRE1)
  23991. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  23992. 800a5e2: 687b ldr r3, [r7, #4]
  23993. 800a5e4: 695a ldr r2, [r3, #20]
  23994. 800a5e6: 4b34 ldr r3, [pc, #208] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  23995. 800a5e8: 69db ldr r3, [r3, #28]
  23996. 800a5ea: f003 0370 and.w r3, r3, #112 @ 0x70
  23997. 800a5ee: 429a cmp r2, r3
  23998. 800a5f0: d208 bcs.n 800a604 <HAL_RCC_ClockConfig+0x2a4>
  23999. {
  24000. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  24001. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  24002. 800a5f2: 4b31 ldr r3, [pc, #196] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24003. 800a5f4: 69db ldr r3, [r3, #28]
  24004. 800a5f6: f023 0270 bic.w r2, r3, #112 @ 0x70
  24005. 800a5fa: 687b ldr r3, [r7, #4]
  24006. 800a5fc: 695b ldr r3, [r3, #20]
  24007. 800a5fe: 492e ldr r1, [pc, #184] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24008. 800a600: 4313 orrs r3, r2
  24009. 800a602: 61cb str r3, [r1, #28]
  24010. }
  24011. #endif
  24012. }
  24013. /*-------------------------- PCLK2 Configuration ---------------------------*/
  24014. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  24015. 800a604: 687b ldr r3, [r7, #4]
  24016. 800a606: 681b ldr r3, [r3, #0]
  24017. 800a608: f003 0310 and.w r3, r3, #16
  24018. 800a60c: 2b00 cmp r3, #0
  24019. 800a60e: d010 beq.n 800a632 <HAL_RCC_ClockConfig+0x2d2>
  24020. {
  24021. #if defined (RCC_D2CFGR_D2PPRE2)
  24022. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  24023. 800a610: 687b ldr r3, [r7, #4]
  24024. 800a612: 699a ldr r2, [r3, #24]
  24025. 800a614: 4b28 ldr r3, [pc, #160] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24026. 800a616: 69db ldr r3, [r3, #28]
  24027. 800a618: f403 63e0 and.w r3, r3, #1792 @ 0x700
  24028. 800a61c: 429a cmp r2, r3
  24029. 800a61e: d208 bcs.n 800a632 <HAL_RCC_ClockConfig+0x2d2>
  24030. {
  24031. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  24032. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  24033. 800a620: 4b25 ldr r3, [pc, #148] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24034. 800a622: 69db ldr r3, [r3, #28]
  24035. 800a624: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  24036. 800a628: 687b ldr r3, [r7, #4]
  24037. 800a62a: 699b ldr r3, [r3, #24]
  24038. 800a62c: 4922 ldr r1, [pc, #136] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24039. 800a62e: 4313 orrs r3, r2
  24040. 800a630: 61cb str r3, [r1, #28]
  24041. }
  24042. #endif
  24043. }
  24044. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  24045. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  24046. 800a632: 687b ldr r3, [r7, #4]
  24047. 800a634: 681b ldr r3, [r3, #0]
  24048. 800a636: f003 0320 and.w r3, r3, #32
  24049. 800a63a: 2b00 cmp r3, #0
  24050. 800a63c: d010 beq.n 800a660 <HAL_RCC_ClockConfig+0x300>
  24051. {
  24052. #if defined(RCC_D3CFGR_D3PPRE)
  24053. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  24054. 800a63e: 687b ldr r3, [r7, #4]
  24055. 800a640: 69da ldr r2, [r3, #28]
  24056. 800a642: 4b1d ldr r3, [pc, #116] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24057. 800a644: 6a1b ldr r3, [r3, #32]
  24058. 800a646: f003 0370 and.w r3, r3, #112 @ 0x70
  24059. 800a64a: 429a cmp r2, r3
  24060. 800a64c: d208 bcs.n 800a660 <HAL_RCC_ClockConfig+0x300>
  24061. {
  24062. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  24063. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  24064. 800a64e: 4b1a ldr r3, [pc, #104] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24065. 800a650: 6a1b ldr r3, [r3, #32]
  24066. 800a652: f023 0270 bic.w r2, r3, #112 @ 0x70
  24067. 800a656: 687b ldr r3, [r7, #4]
  24068. 800a658: 69db ldr r3, [r3, #28]
  24069. 800a65a: 4917 ldr r1, [pc, #92] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24070. 800a65c: 4313 orrs r3, r2
  24071. 800a65e: 620b str r3, [r1, #32]
  24072. #endif
  24073. }
  24074. /* Update the SystemCoreClock global variable */
  24075. #if defined(RCC_D1CFGR_D1CPRE)
  24076. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  24077. 800a660: f000 f834 bl 800a6cc <HAL_RCC_GetSysClockFreq>
  24078. 800a664: 4602 mov r2, r0
  24079. 800a666: 4b14 ldr r3, [pc, #80] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24080. 800a668: 699b ldr r3, [r3, #24]
  24081. 800a66a: 0a1b lsrs r3, r3, #8
  24082. 800a66c: f003 030f and.w r3, r3, #15
  24083. 800a670: 4912 ldr r1, [pc, #72] @ (800a6bc <HAL_RCC_ClockConfig+0x35c>)
  24084. 800a672: 5ccb ldrb r3, [r1, r3]
  24085. 800a674: f003 031f and.w r3, r3, #31
  24086. 800a678: fa22 f303 lsr.w r3, r2, r3
  24087. 800a67c: 613b str r3, [r7, #16]
  24088. #else
  24089. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  24090. #endif
  24091. #if defined(RCC_D1CFGR_HPRE)
  24092. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  24093. 800a67e: 4b0e ldr r3, [pc, #56] @ (800a6b8 <HAL_RCC_ClockConfig+0x358>)
  24094. 800a680: 699b ldr r3, [r3, #24]
  24095. 800a682: f003 030f and.w r3, r3, #15
  24096. 800a686: 4a0d ldr r2, [pc, #52] @ (800a6bc <HAL_RCC_ClockConfig+0x35c>)
  24097. 800a688: 5cd3 ldrb r3, [r2, r3]
  24098. 800a68a: f003 031f and.w r3, r3, #31
  24099. 800a68e: 693a ldr r2, [r7, #16]
  24100. 800a690: fa22 f303 lsr.w r3, r2, r3
  24101. 800a694: 4a0a ldr r2, [pc, #40] @ (800a6c0 <HAL_RCC_ClockConfig+0x360>)
  24102. 800a696: 6013 str r3, [r2, #0]
  24103. #endif
  24104. #if defined(DUAL_CORE) && defined(CORE_CM4)
  24105. SystemCoreClock = SystemD2Clock;
  24106. #else
  24107. SystemCoreClock = common_system_clock;
  24108. 800a698: 4a0a ldr r2, [pc, #40] @ (800a6c4 <HAL_RCC_ClockConfig+0x364>)
  24109. 800a69a: 693b ldr r3, [r7, #16]
  24110. 800a69c: 6013 str r3, [r2, #0]
  24111. #endif /* DUAL_CORE && CORE_CM4 */
  24112. /* Configure the source of time base considering new system clocks settings*/
  24113. halstatus = HAL_InitTick(uwTickPrio);
  24114. 800a69e: 4b0a ldr r3, [pc, #40] @ (800a6c8 <HAL_RCC_ClockConfig+0x368>)
  24115. 800a6a0: 681b ldr r3, [r3, #0]
  24116. 800a6a2: 4618 mov r0, r3
  24117. 800a6a4: f7f9 f920 bl 80038e8 <HAL_InitTick>
  24118. 800a6a8: 4603 mov r3, r0
  24119. 800a6aa: 73fb strb r3, [r7, #15]
  24120. return halstatus;
  24121. 800a6ac: 7bfb ldrb r3, [r7, #15]
  24122. }
  24123. 800a6ae: 4618 mov r0, r3
  24124. 800a6b0: 3718 adds r7, #24
  24125. 800a6b2: 46bd mov sp, r7
  24126. 800a6b4: bd80 pop {r7, pc}
  24127. 800a6b6: bf00 nop
  24128. 800a6b8: 58024400 .word 0x58024400
  24129. 800a6bc: 08030a7c .word 0x08030a7c
  24130. 800a6c0: 24000010 .word 0x24000010
  24131. 800a6c4: 2400000c .word 0x2400000c
  24132. 800a6c8: 2400002c .word 0x2400002c
  24133. 0800a6cc <HAL_RCC_GetSysClockFreq>:
  24134. *
  24135. *
  24136. * @retval SYSCLK frequency
  24137. */
  24138. uint32_t HAL_RCC_GetSysClockFreq(void)
  24139. {
  24140. 800a6cc: b480 push {r7}
  24141. 800a6ce: b089 sub sp, #36 @ 0x24
  24142. 800a6d0: af00 add r7, sp, #0
  24143. float_t fracn1, pllvco;
  24144. uint32_t sysclockfreq;
  24145. /* Get SYSCLK source -------------------------------------------------------*/
  24146. switch (RCC->CFGR & RCC_CFGR_SWS)
  24147. 800a6d2: 4bb3 ldr r3, [pc, #716] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24148. 800a6d4: 691b ldr r3, [r3, #16]
  24149. 800a6d6: f003 0338 and.w r3, r3, #56 @ 0x38
  24150. 800a6da: 2b18 cmp r3, #24
  24151. 800a6dc: f200 8155 bhi.w 800a98a <HAL_RCC_GetSysClockFreq+0x2be>
  24152. 800a6e0: a201 add r2, pc, #4 @ (adr r2, 800a6e8 <HAL_RCC_GetSysClockFreq+0x1c>)
  24153. 800a6e2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24154. 800a6e6: bf00 nop
  24155. 800a6e8: 0800a74d .word 0x0800a74d
  24156. 800a6ec: 0800a98b .word 0x0800a98b
  24157. 800a6f0: 0800a98b .word 0x0800a98b
  24158. 800a6f4: 0800a98b .word 0x0800a98b
  24159. 800a6f8: 0800a98b .word 0x0800a98b
  24160. 800a6fc: 0800a98b .word 0x0800a98b
  24161. 800a700: 0800a98b .word 0x0800a98b
  24162. 800a704: 0800a98b .word 0x0800a98b
  24163. 800a708: 0800a773 .word 0x0800a773
  24164. 800a70c: 0800a98b .word 0x0800a98b
  24165. 800a710: 0800a98b .word 0x0800a98b
  24166. 800a714: 0800a98b .word 0x0800a98b
  24167. 800a718: 0800a98b .word 0x0800a98b
  24168. 800a71c: 0800a98b .word 0x0800a98b
  24169. 800a720: 0800a98b .word 0x0800a98b
  24170. 800a724: 0800a98b .word 0x0800a98b
  24171. 800a728: 0800a779 .word 0x0800a779
  24172. 800a72c: 0800a98b .word 0x0800a98b
  24173. 800a730: 0800a98b .word 0x0800a98b
  24174. 800a734: 0800a98b .word 0x0800a98b
  24175. 800a738: 0800a98b .word 0x0800a98b
  24176. 800a73c: 0800a98b .word 0x0800a98b
  24177. 800a740: 0800a98b .word 0x0800a98b
  24178. 800a744: 0800a98b .word 0x0800a98b
  24179. 800a748: 0800a77f .word 0x0800a77f
  24180. {
  24181. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  24182. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  24183. 800a74c: 4b94 ldr r3, [pc, #592] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24184. 800a74e: 681b ldr r3, [r3, #0]
  24185. 800a750: f003 0320 and.w r3, r3, #32
  24186. 800a754: 2b00 cmp r3, #0
  24187. 800a756: d009 beq.n 800a76c <HAL_RCC_GetSysClockFreq+0xa0>
  24188. {
  24189. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  24190. 800a758: 4b91 ldr r3, [pc, #580] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24191. 800a75a: 681b ldr r3, [r3, #0]
  24192. 800a75c: 08db lsrs r3, r3, #3
  24193. 800a75e: f003 0303 and.w r3, r3, #3
  24194. 800a762: 4a90 ldr r2, [pc, #576] @ (800a9a4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  24195. 800a764: fa22 f303 lsr.w r3, r2, r3
  24196. 800a768: 61bb str r3, [r7, #24]
  24197. else
  24198. {
  24199. sysclockfreq = (uint32_t) HSI_VALUE;
  24200. }
  24201. break;
  24202. 800a76a: e111 b.n 800a990 <HAL_RCC_GetSysClockFreq+0x2c4>
  24203. sysclockfreq = (uint32_t) HSI_VALUE;
  24204. 800a76c: 4b8d ldr r3, [pc, #564] @ (800a9a4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  24205. 800a76e: 61bb str r3, [r7, #24]
  24206. break;
  24207. 800a770: e10e b.n 800a990 <HAL_RCC_GetSysClockFreq+0x2c4>
  24208. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  24209. sysclockfreq = CSI_VALUE;
  24210. 800a772: 4b8d ldr r3, [pc, #564] @ (800a9a8 <HAL_RCC_GetSysClockFreq+0x2dc>)
  24211. 800a774: 61bb str r3, [r7, #24]
  24212. break;
  24213. 800a776: e10b b.n 800a990 <HAL_RCC_GetSysClockFreq+0x2c4>
  24214. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  24215. sysclockfreq = HSE_VALUE;
  24216. 800a778: 4b8c ldr r3, [pc, #560] @ (800a9ac <HAL_RCC_GetSysClockFreq+0x2e0>)
  24217. 800a77a: 61bb str r3, [r7, #24]
  24218. break;
  24219. 800a77c: e108 b.n 800a990 <HAL_RCC_GetSysClockFreq+0x2c4>
  24220. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  24221. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  24222. SYSCLK = PLL_VCO / PLLR
  24223. */
  24224. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  24225. 800a77e: 4b88 ldr r3, [pc, #544] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24226. 800a780: 6a9b ldr r3, [r3, #40] @ 0x28
  24227. 800a782: f003 0303 and.w r3, r3, #3
  24228. 800a786: 617b str r3, [r7, #20]
  24229. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  24230. 800a788: 4b85 ldr r3, [pc, #532] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24231. 800a78a: 6a9b ldr r3, [r3, #40] @ 0x28
  24232. 800a78c: 091b lsrs r3, r3, #4
  24233. 800a78e: f003 033f and.w r3, r3, #63 @ 0x3f
  24234. 800a792: 613b str r3, [r7, #16]
  24235. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  24236. 800a794: 4b82 ldr r3, [pc, #520] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24237. 800a796: 6adb ldr r3, [r3, #44] @ 0x2c
  24238. 800a798: f003 0301 and.w r3, r3, #1
  24239. 800a79c: 60fb str r3, [r7, #12]
  24240. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  24241. 800a79e: 4b80 ldr r3, [pc, #512] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24242. 800a7a0: 6b5b ldr r3, [r3, #52] @ 0x34
  24243. 800a7a2: 08db lsrs r3, r3, #3
  24244. 800a7a4: f3c3 030c ubfx r3, r3, #0, #13
  24245. 800a7a8: 68fa ldr r2, [r7, #12]
  24246. 800a7aa: fb02 f303 mul.w r3, r2, r3
  24247. 800a7ae: ee07 3a90 vmov s15, r3
  24248. 800a7b2: eef8 7a67 vcvt.f32.u32 s15, s15
  24249. 800a7b6: edc7 7a02 vstr s15, [r7, #8]
  24250. if (pllm != 0U)
  24251. 800a7ba: 693b ldr r3, [r7, #16]
  24252. 800a7bc: 2b00 cmp r3, #0
  24253. 800a7be: f000 80e1 beq.w 800a984 <HAL_RCC_GetSysClockFreq+0x2b8>
  24254. 800a7c2: 697b ldr r3, [r7, #20]
  24255. 800a7c4: 2b02 cmp r3, #2
  24256. 800a7c6: f000 8083 beq.w 800a8d0 <HAL_RCC_GetSysClockFreq+0x204>
  24257. 800a7ca: 697b ldr r3, [r7, #20]
  24258. 800a7cc: 2b02 cmp r3, #2
  24259. 800a7ce: f200 80a1 bhi.w 800a914 <HAL_RCC_GetSysClockFreq+0x248>
  24260. 800a7d2: 697b ldr r3, [r7, #20]
  24261. 800a7d4: 2b00 cmp r3, #0
  24262. 800a7d6: d003 beq.n 800a7e0 <HAL_RCC_GetSysClockFreq+0x114>
  24263. 800a7d8: 697b ldr r3, [r7, #20]
  24264. 800a7da: 2b01 cmp r3, #1
  24265. 800a7dc: d056 beq.n 800a88c <HAL_RCC_GetSysClockFreq+0x1c0>
  24266. 800a7de: e099 b.n 800a914 <HAL_RCC_GetSysClockFreq+0x248>
  24267. {
  24268. switch (pllsource)
  24269. {
  24270. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  24271. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  24272. 800a7e0: 4b6f ldr r3, [pc, #444] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24273. 800a7e2: 681b ldr r3, [r3, #0]
  24274. 800a7e4: f003 0320 and.w r3, r3, #32
  24275. 800a7e8: 2b00 cmp r3, #0
  24276. 800a7ea: d02d beq.n 800a848 <HAL_RCC_GetSysClockFreq+0x17c>
  24277. {
  24278. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  24279. 800a7ec: 4b6c ldr r3, [pc, #432] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24280. 800a7ee: 681b ldr r3, [r3, #0]
  24281. 800a7f0: 08db lsrs r3, r3, #3
  24282. 800a7f2: f003 0303 and.w r3, r3, #3
  24283. 800a7f6: 4a6b ldr r2, [pc, #428] @ (800a9a4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  24284. 800a7f8: fa22 f303 lsr.w r3, r2, r3
  24285. 800a7fc: 607b str r3, [r7, #4]
  24286. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24287. 800a7fe: 687b ldr r3, [r7, #4]
  24288. 800a800: ee07 3a90 vmov s15, r3
  24289. 800a804: eef8 6a67 vcvt.f32.u32 s13, s15
  24290. 800a808: 693b ldr r3, [r7, #16]
  24291. 800a80a: ee07 3a90 vmov s15, r3
  24292. 800a80e: eef8 7a67 vcvt.f32.u32 s15, s15
  24293. 800a812: ee86 7aa7 vdiv.f32 s14, s13, s15
  24294. 800a816: 4b62 ldr r3, [pc, #392] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24295. 800a818: 6b1b ldr r3, [r3, #48] @ 0x30
  24296. 800a81a: f3c3 0308 ubfx r3, r3, #0, #9
  24297. 800a81e: ee07 3a90 vmov s15, r3
  24298. 800a822: eef8 6a67 vcvt.f32.u32 s13, s15
  24299. 800a826: ed97 6a02 vldr s12, [r7, #8]
  24300. 800a82a: eddf 5a61 vldr s11, [pc, #388] @ 800a9b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  24301. 800a82e: eec6 7a25 vdiv.f32 s15, s12, s11
  24302. 800a832: ee76 7aa7 vadd.f32 s15, s13, s15
  24303. 800a836: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24304. 800a83a: ee77 7aa6 vadd.f32 s15, s15, s13
  24305. 800a83e: ee67 7a27 vmul.f32 s15, s14, s15
  24306. 800a842: edc7 7a07 vstr s15, [r7, #28]
  24307. }
  24308. else
  24309. {
  24310. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24311. }
  24312. break;
  24313. 800a846: e087 b.n 800a958 <HAL_RCC_GetSysClockFreq+0x28c>
  24314. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24315. 800a848: 693b ldr r3, [r7, #16]
  24316. 800a84a: ee07 3a90 vmov s15, r3
  24317. 800a84e: eef8 7a67 vcvt.f32.u32 s15, s15
  24318. 800a852: eddf 6a58 vldr s13, [pc, #352] @ 800a9b4 <HAL_RCC_GetSysClockFreq+0x2e8>
  24319. 800a856: ee86 7aa7 vdiv.f32 s14, s13, s15
  24320. 800a85a: 4b51 ldr r3, [pc, #324] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24321. 800a85c: 6b1b ldr r3, [r3, #48] @ 0x30
  24322. 800a85e: f3c3 0308 ubfx r3, r3, #0, #9
  24323. 800a862: ee07 3a90 vmov s15, r3
  24324. 800a866: eef8 6a67 vcvt.f32.u32 s13, s15
  24325. 800a86a: ed97 6a02 vldr s12, [r7, #8]
  24326. 800a86e: eddf 5a50 vldr s11, [pc, #320] @ 800a9b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  24327. 800a872: eec6 7a25 vdiv.f32 s15, s12, s11
  24328. 800a876: ee76 7aa7 vadd.f32 s15, s13, s15
  24329. 800a87a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24330. 800a87e: ee77 7aa6 vadd.f32 s15, s15, s13
  24331. 800a882: ee67 7a27 vmul.f32 s15, s14, s15
  24332. 800a886: edc7 7a07 vstr s15, [r7, #28]
  24333. break;
  24334. 800a88a: e065 b.n 800a958 <HAL_RCC_GetSysClockFreq+0x28c>
  24335. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  24336. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24337. 800a88c: 693b ldr r3, [r7, #16]
  24338. 800a88e: ee07 3a90 vmov s15, r3
  24339. 800a892: eef8 7a67 vcvt.f32.u32 s15, s15
  24340. 800a896: eddf 6a48 vldr s13, [pc, #288] @ 800a9b8 <HAL_RCC_GetSysClockFreq+0x2ec>
  24341. 800a89a: ee86 7aa7 vdiv.f32 s14, s13, s15
  24342. 800a89e: 4b40 ldr r3, [pc, #256] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24343. 800a8a0: 6b1b ldr r3, [r3, #48] @ 0x30
  24344. 800a8a2: f3c3 0308 ubfx r3, r3, #0, #9
  24345. 800a8a6: ee07 3a90 vmov s15, r3
  24346. 800a8aa: eef8 6a67 vcvt.f32.u32 s13, s15
  24347. 800a8ae: ed97 6a02 vldr s12, [r7, #8]
  24348. 800a8b2: eddf 5a3f vldr s11, [pc, #252] @ 800a9b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  24349. 800a8b6: eec6 7a25 vdiv.f32 s15, s12, s11
  24350. 800a8ba: ee76 7aa7 vadd.f32 s15, s13, s15
  24351. 800a8be: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24352. 800a8c2: ee77 7aa6 vadd.f32 s15, s15, s13
  24353. 800a8c6: ee67 7a27 vmul.f32 s15, s14, s15
  24354. 800a8ca: edc7 7a07 vstr s15, [r7, #28]
  24355. break;
  24356. 800a8ce: e043 b.n 800a958 <HAL_RCC_GetSysClockFreq+0x28c>
  24357. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  24358. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24359. 800a8d0: 693b ldr r3, [r7, #16]
  24360. 800a8d2: ee07 3a90 vmov s15, r3
  24361. 800a8d6: eef8 7a67 vcvt.f32.u32 s15, s15
  24362. 800a8da: eddf 6a38 vldr s13, [pc, #224] @ 800a9bc <HAL_RCC_GetSysClockFreq+0x2f0>
  24363. 800a8de: ee86 7aa7 vdiv.f32 s14, s13, s15
  24364. 800a8e2: 4b2f ldr r3, [pc, #188] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24365. 800a8e4: 6b1b ldr r3, [r3, #48] @ 0x30
  24366. 800a8e6: f3c3 0308 ubfx r3, r3, #0, #9
  24367. 800a8ea: ee07 3a90 vmov s15, r3
  24368. 800a8ee: eef8 6a67 vcvt.f32.u32 s13, s15
  24369. 800a8f2: ed97 6a02 vldr s12, [r7, #8]
  24370. 800a8f6: eddf 5a2e vldr s11, [pc, #184] @ 800a9b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  24371. 800a8fa: eec6 7a25 vdiv.f32 s15, s12, s11
  24372. 800a8fe: ee76 7aa7 vadd.f32 s15, s13, s15
  24373. 800a902: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24374. 800a906: ee77 7aa6 vadd.f32 s15, s15, s13
  24375. 800a90a: ee67 7a27 vmul.f32 s15, s14, s15
  24376. 800a90e: edc7 7a07 vstr s15, [r7, #28]
  24377. break;
  24378. 800a912: e021 b.n 800a958 <HAL_RCC_GetSysClockFreq+0x28c>
  24379. default:
  24380. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24381. 800a914: 693b ldr r3, [r7, #16]
  24382. 800a916: ee07 3a90 vmov s15, r3
  24383. 800a91a: eef8 7a67 vcvt.f32.u32 s15, s15
  24384. 800a91e: eddf 6a26 vldr s13, [pc, #152] @ 800a9b8 <HAL_RCC_GetSysClockFreq+0x2ec>
  24385. 800a922: ee86 7aa7 vdiv.f32 s14, s13, s15
  24386. 800a926: 4b1e ldr r3, [pc, #120] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24387. 800a928: 6b1b ldr r3, [r3, #48] @ 0x30
  24388. 800a92a: f3c3 0308 ubfx r3, r3, #0, #9
  24389. 800a92e: ee07 3a90 vmov s15, r3
  24390. 800a932: eef8 6a67 vcvt.f32.u32 s13, s15
  24391. 800a936: ed97 6a02 vldr s12, [r7, #8]
  24392. 800a93a: eddf 5a1d vldr s11, [pc, #116] @ 800a9b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  24393. 800a93e: eec6 7a25 vdiv.f32 s15, s12, s11
  24394. 800a942: ee76 7aa7 vadd.f32 s15, s13, s15
  24395. 800a946: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24396. 800a94a: ee77 7aa6 vadd.f32 s15, s15, s13
  24397. 800a94e: ee67 7a27 vmul.f32 s15, s14, s15
  24398. 800a952: edc7 7a07 vstr s15, [r7, #28]
  24399. break;
  24400. 800a956: bf00 nop
  24401. }
  24402. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  24403. 800a958: 4b11 ldr r3, [pc, #68] @ (800a9a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  24404. 800a95a: 6b1b ldr r3, [r3, #48] @ 0x30
  24405. 800a95c: 0a5b lsrs r3, r3, #9
  24406. 800a95e: f003 037f and.w r3, r3, #127 @ 0x7f
  24407. 800a962: 3301 adds r3, #1
  24408. 800a964: 603b str r3, [r7, #0]
  24409. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  24410. 800a966: 683b ldr r3, [r7, #0]
  24411. 800a968: ee07 3a90 vmov s15, r3
  24412. 800a96c: eeb8 7a67 vcvt.f32.u32 s14, s15
  24413. 800a970: edd7 6a07 vldr s13, [r7, #28]
  24414. 800a974: eec6 7a87 vdiv.f32 s15, s13, s14
  24415. 800a978: eefc 7ae7 vcvt.u32.f32 s15, s15
  24416. 800a97c: ee17 3a90 vmov r3, s15
  24417. 800a980: 61bb str r3, [r7, #24]
  24418. }
  24419. else
  24420. {
  24421. sysclockfreq = 0U;
  24422. }
  24423. break;
  24424. 800a982: e005 b.n 800a990 <HAL_RCC_GetSysClockFreq+0x2c4>
  24425. sysclockfreq = 0U;
  24426. 800a984: 2300 movs r3, #0
  24427. 800a986: 61bb str r3, [r7, #24]
  24428. break;
  24429. 800a988: e002 b.n 800a990 <HAL_RCC_GetSysClockFreq+0x2c4>
  24430. default:
  24431. sysclockfreq = CSI_VALUE;
  24432. 800a98a: 4b07 ldr r3, [pc, #28] @ (800a9a8 <HAL_RCC_GetSysClockFreq+0x2dc>)
  24433. 800a98c: 61bb str r3, [r7, #24]
  24434. break;
  24435. 800a98e: bf00 nop
  24436. }
  24437. return sysclockfreq;
  24438. 800a990: 69bb ldr r3, [r7, #24]
  24439. }
  24440. 800a992: 4618 mov r0, r3
  24441. 800a994: 3724 adds r7, #36 @ 0x24
  24442. 800a996: 46bd mov sp, r7
  24443. 800a998: f85d 7b04 ldr.w r7, [sp], #4
  24444. 800a99c: 4770 bx lr
  24445. 800a99e: bf00 nop
  24446. 800a9a0: 58024400 .word 0x58024400
  24447. 800a9a4: 03d09000 .word 0x03d09000
  24448. 800a9a8: 003d0900 .word 0x003d0900
  24449. 800a9ac: 017d7840 .word 0x017d7840
  24450. 800a9b0: 46000000 .word 0x46000000
  24451. 800a9b4: 4c742400 .word 0x4c742400
  24452. 800a9b8: 4a742400 .word 0x4a742400
  24453. 800a9bc: 4bbebc20 .word 0x4bbebc20
  24454. 0800a9c0 <HAL_RCC_GetHCLKFreq>:
  24455. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  24456. * and updated within this function
  24457. * @retval HCLK frequency
  24458. */
  24459. uint32_t HAL_RCC_GetHCLKFreq(void)
  24460. {
  24461. 800a9c0: b580 push {r7, lr}
  24462. 800a9c2: b082 sub sp, #8
  24463. 800a9c4: af00 add r7, sp, #0
  24464. uint32_t common_system_clock;
  24465. #if defined(RCC_D1CFGR_D1CPRE)
  24466. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  24467. 800a9c6: f7ff fe81 bl 800a6cc <HAL_RCC_GetSysClockFreq>
  24468. 800a9ca: 4602 mov r2, r0
  24469. 800a9cc: 4b10 ldr r3, [pc, #64] @ (800aa10 <HAL_RCC_GetHCLKFreq+0x50>)
  24470. 800a9ce: 699b ldr r3, [r3, #24]
  24471. 800a9d0: 0a1b lsrs r3, r3, #8
  24472. 800a9d2: f003 030f and.w r3, r3, #15
  24473. 800a9d6: 490f ldr r1, [pc, #60] @ (800aa14 <HAL_RCC_GetHCLKFreq+0x54>)
  24474. 800a9d8: 5ccb ldrb r3, [r1, r3]
  24475. 800a9da: f003 031f and.w r3, r3, #31
  24476. 800a9de: fa22 f303 lsr.w r3, r2, r3
  24477. 800a9e2: 607b str r3, [r7, #4]
  24478. #else
  24479. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  24480. #endif
  24481. #if defined(RCC_D1CFGR_HPRE)
  24482. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  24483. 800a9e4: 4b0a ldr r3, [pc, #40] @ (800aa10 <HAL_RCC_GetHCLKFreq+0x50>)
  24484. 800a9e6: 699b ldr r3, [r3, #24]
  24485. 800a9e8: f003 030f and.w r3, r3, #15
  24486. 800a9ec: 4a09 ldr r2, [pc, #36] @ (800aa14 <HAL_RCC_GetHCLKFreq+0x54>)
  24487. 800a9ee: 5cd3 ldrb r3, [r2, r3]
  24488. 800a9f0: f003 031f and.w r3, r3, #31
  24489. 800a9f4: 687a ldr r2, [r7, #4]
  24490. 800a9f6: fa22 f303 lsr.w r3, r2, r3
  24491. 800a9fa: 4a07 ldr r2, [pc, #28] @ (800aa18 <HAL_RCC_GetHCLKFreq+0x58>)
  24492. 800a9fc: 6013 str r3, [r2, #0]
  24493. #endif
  24494. #if defined(DUAL_CORE) && defined(CORE_CM4)
  24495. SystemCoreClock = SystemD2Clock;
  24496. #else
  24497. SystemCoreClock = common_system_clock;
  24498. 800a9fe: 4a07 ldr r2, [pc, #28] @ (800aa1c <HAL_RCC_GetHCLKFreq+0x5c>)
  24499. 800aa00: 687b ldr r3, [r7, #4]
  24500. 800aa02: 6013 str r3, [r2, #0]
  24501. #endif /* DUAL_CORE && CORE_CM4 */
  24502. return SystemD2Clock;
  24503. 800aa04: 4b04 ldr r3, [pc, #16] @ (800aa18 <HAL_RCC_GetHCLKFreq+0x58>)
  24504. 800aa06: 681b ldr r3, [r3, #0]
  24505. }
  24506. 800aa08: 4618 mov r0, r3
  24507. 800aa0a: 3708 adds r7, #8
  24508. 800aa0c: 46bd mov sp, r7
  24509. 800aa0e: bd80 pop {r7, pc}
  24510. 800aa10: 58024400 .word 0x58024400
  24511. 800aa14: 08030a7c .word 0x08030a7c
  24512. 800aa18: 24000010 .word 0x24000010
  24513. 800aa1c: 2400000c .word 0x2400000c
  24514. 0800aa20 <HAL_RCC_GetPCLK1Freq>:
  24515. * @note Each time PCLK1 changes, this function must be called to update the
  24516. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  24517. * @retval PCLK1 frequency
  24518. */
  24519. uint32_t HAL_RCC_GetPCLK1Freq(void)
  24520. {
  24521. 800aa20: b580 push {r7, lr}
  24522. 800aa22: af00 add r7, sp, #0
  24523. #if defined (RCC_D2CFGR_D2PPRE1)
  24524. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  24525. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  24526. 800aa24: f7ff ffcc bl 800a9c0 <HAL_RCC_GetHCLKFreq>
  24527. 800aa28: 4602 mov r2, r0
  24528. 800aa2a: 4b06 ldr r3, [pc, #24] @ (800aa44 <HAL_RCC_GetPCLK1Freq+0x24>)
  24529. 800aa2c: 69db ldr r3, [r3, #28]
  24530. 800aa2e: 091b lsrs r3, r3, #4
  24531. 800aa30: f003 0307 and.w r3, r3, #7
  24532. 800aa34: 4904 ldr r1, [pc, #16] @ (800aa48 <HAL_RCC_GetPCLK1Freq+0x28>)
  24533. 800aa36: 5ccb ldrb r3, [r1, r3]
  24534. 800aa38: f003 031f and.w r3, r3, #31
  24535. 800aa3c: fa22 f303 lsr.w r3, r2, r3
  24536. #else
  24537. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  24538. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  24539. #endif
  24540. }
  24541. 800aa40: 4618 mov r0, r3
  24542. 800aa42: bd80 pop {r7, pc}
  24543. 800aa44: 58024400 .word 0x58024400
  24544. 800aa48: 08030a7c .word 0x08030a7c
  24545. 0800aa4c <HAL_RCC_GetPCLK2Freq>:
  24546. * @note Each time PCLK2 changes, this function must be called to update the
  24547. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  24548. * @retval PCLK1 frequency
  24549. */
  24550. uint32_t HAL_RCC_GetPCLK2Freq(void)
  24551. {
  24552. 800aa4c: b580 push {r7, lr}
  24553. 800aa4e: af00 add r7, sp, #0
  24554. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  24555. #if defined(RCC_D2CFGR_D2PPRE2)
  24556. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  24557. 800aa50: f7ff ffb6 bl 800a9c0 <HAL_RCC_GetHCLKFreq>
  24558. 800aa54: 4602 mov r2, r0
  24559. 800aa56: 4b06 ldr r3, [pc, #24] @ (800aa70 <HAL_RCC_GetPCLK2Freq+0x24>)
  24560. 800aa58: 69db ldr r3, [r3, #28]
  24561. 800aa5a: 0a1b lsrs r3, r3, #8
  24562. 800aa5c: f003 0307 and.w r3, r3, #7
  24563. 800aa60: 4904 ldr r1, [pc, #16] @ (800aa74 <HAL_RCC_GetPCLK2Freq+0x28>)
  24564. 800aa62: 5ccb ldrb r3, [r1, r3]
  24565. 800aa64: f003 031f and.w r3, r3, #31
  24566. 800aa68: fa22 f303 lsr.w r3, r2, r3
  24567. #else
  24568. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  24569. #endif
  24570. }
  24571. 800aa6c: 4618 mov r0, r3
  24572. 800aa6e: bd80 pop {r7, pc}
  24573. 800aa70: 58024400 .word 0x58024400
  24574. 800aa74: 08030a7c .word 0x08030a7c
  24575. 0800aa78 <HAL_RCC_GetClockConfig>:
  24576. * will be configured.
  24577. * @param pFLatency: Pointer on the Flash Latency.
  24578. * @retval None
  24579. */
  24580. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  24581. {
  24582. 800aa78: b480 push {r7}
  24583. 800aa7a: b083 sub sp, #12
  24584. 800aa7c: af00 add r7, sp, #0
  24585. 800aa7e: 6078 str r0, [r7, #4]
  24586. 800aa80: 6039 str r1, [r7, #0]
  24587. /* Set all possible values for the Clock type parameter --------------------*/
  24588. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  24589. 800aa82: 687b ldr r3, [r7, #4]
  24590. 800aa84: 223f movs r2, #63 @ 0x3f
  24591. 800aa86: 601a str r2, [r3, #0]
  24592. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  24593. /* Get the SYSCLK configuration --------------------------------------------*/
  24594. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  24595. 800aa88: 4b1a ldr r3, [pc, #104] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24596. 800aa8a: 691b ldr r3, [r3, #16]
  24597. 800aa8c: f003 0207 and.w r2, r3, #7
  24598. 800aa90: 687b ldr r3, [r7, #4]
  24599. 800aa92: 605a str r2, [r3, #4]
  24600. #if defined(RCC_D1CFGR_D1CPRE)
  24601. /* Get the SYSCLK configuration ----------------------------------------------*/
  24602. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  24603. 800aa94: 4b17 ldr r3, [pc, #92] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24604. 800aa96: 699b ldr r3, [r3, #24]
  24605. 800aa98: f403 6270 and.w r2, r3, #3840 @ 0xf00
  24606. 800aa9c: 687b ldr r3, [r7, #4]
  24607. 800aa9e: 609a str r2, [r3, #8]
  24608. /* Get the D1HCLK configuration ----------------------------------------------*/
  24609. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  24610. 800aaa0: 4b14 ldr r3, [pc, #80] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24611. 800aaa2: 699b ldr r3, [r3, #24]
  24612. 800aaa4: f003 020f and.w r2, r3, #15
  24613. 800aaa8: 687b ldr r3, [r7, #4]
  24614. 800aaaa: 60da str r2, [r3, #12]
  24615. /* Get the APB3 configuration ----------------------------------------------*/
  24616. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  24617. 800aaac: 4b11 ldr r3, [pc, #68] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24618. 800aaae: 699b ldr r3, [r3, #24]
  24619. 800aab0: f003 0270 and.w r2, r3, #112 @ 0x70
  24620. 800aab4: 687b ldr r3, [r7, #4]
  24621. 800aab6: 611a str r2, [r3, #16]
  24622. /* Get the APB1 configuration ----------------------------------------------*/
  24623. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  24624. 800aab8: 4b0e ldr r3, [pc, #56] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24625. 800aaba: 69db ldr r3, [r3, #28]
  24626. 800aabc: f003 0270 and.w r2, r3, #112 @ 0x70
  24627. 800aac0: 687b ldr r3, [r7, #4]
  24628. 800aac2: 615a str r2, [r3, #20]
  24629. /* Get the APB2 configuration ----------------------------------------------*/
  24630. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  24631. 800aac4: 4b0b ldr r3, [pc, #44] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24632. 800aac6: 69db ldr r3, [r3, #28]
  24633. 800aac8: f403 62e0 and.w r2, r3, #1792 @ 0x700
  24634. 800aacc: 687b ldr r3, [r7, #4]
  24635. 800aace: 619a str r2, [r3, #24]
  24636. /* Get the APB4 configuration ----------------------------------------------*/
  24637. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  24638. 800aad0: 4b08 ldr r3, [pc, #32] @ (800aaf4 <HAL_RCC_GetClockConfig+0x7c>)
  24639. 800aad2: 6a1b ldr r3, [r3, #32]
  24640. 800aad4: f003 0270 and.w r2, r3, #112 @ 0x70
  24641. 800aad8: 687b ldr r3, [r7, #4]
  24642. 800aada: 61da str r2, [r3, #28]
  24643. /* Get the APB4 configuration ----------------------------------------------*/
  24644. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  24645. #endif
  24646. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  24647. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  24648. 800aadc: 4b06 ldr r3, [pc, #24] @ (800aaf8 <HAL_RCC_GetClockConfig+0x80>)
  24649. 800aade: 681b ldr r3, [r3, #0]
  24650. 800aae0: f003 020f and.w r2, r3, #15
  24651. 800aae4: 683b ldr r3, [r7, #0]
  24652. 800aae6: 601a str r2, [r3, #0]
  24653. }
  24654. 800aae8: bf00 nop
  24655. 800aaea: 370c adds r7, #12
  24656. 800aaec: 46bd mov sp, r7
  24657. 800aaee: f85d 7b04 ldr.w r7, [sp], #4
  24658. 800aaf2: 4770 bx lr
  24659. 800aaf4: 58024400 .word 0x58024400
  24660. 800aaf8: 52002000 .word 0x52002000
  24661. 0800aafc <HAL_RCCEx_PeriphCLKConfig>:
  24662. * (*) : Available on some STM32H7 lines only.
  24663. *
  24664. * @retval HAL status
  24665. */
  24666. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  24667. {
  24668. 800aafc: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  24669. 800ab00: b0c8 sub sp, #288 @ 0x120
  24670. 800ab02: af00 add r7, sp, #0
  24671. 800ab04: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  24672. uint32_t tmpreg;
  24673. uint32_t tickstart;
  24674. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  24675. 800ab08: 2300 movs r3, #0
  24676. 800ab0a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24677. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  24678. 800ab0e: 2300 movs r3, #0
  24679. 800ab10: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24680. /*---------------------------- SPDIFRX configuration -------------------------------*/
  24681. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  24682. 800ab14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24683. 800ab18: e9d3 2300 ldrd r2, r3, [r3]
  24684. 800ab1c: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  24685. 800ab20: 2500 movs r5, #0
  24686. 800ab22: ea54 0305 orrs.w r3, r4, r5
  24687. 800ab26: d049 beq.n 800abbc <HAL_RCCEx_PeriphCLKConfig+0xc0>
  24688. {
  24689. switch (PeriphClkInit->SpdifrxClockSelection)
  24690. 800ab28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24691. 800ab2c: 6e9b ldr r3, [r3, #104] @ 0x68
  24692. 800ab2e: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  24693. 800ab32: d02f beq.n 800ab94 <HAL_RCCEx_PeriphCLKConfig+0x98>
  24694. 800ab34: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  24695. 800ab38: d828 bhi.n 800ab8c <HAL_RCCEx_PeriphCLKConfig+0x90>
  24696. 800ab3a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  24697. 800ab3e: d01a beq.n 800ab76 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  24698. 800ab40: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  24699. 800ab44: d822 bhi.n 800ab8c <HAL_RCCEx_PeriphCLKConfig+0x90>
  24700. 800ab46: 2b00 cmp r3, #0
  24701. 800ab48: d003 beq.n 800ab52 <HAL_RCCEx_PeriphCLKConfig+0x56>
  24702. 800ab4a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  24703. 800ab4e: d007 beq.n 800ab60 <HAL_RCCEx_PeriphCLKConfig+0x64>
  24704. 800ab50: e01c b.n 800ab8c <HAL_RCCEx_PeriphCLKConfig+0x90>
  24705. {
  24706. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  24707. /* Enable PLL1Q Clock output generated form System PLL . */
  24708. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24709. 800ab52: 4bb8 ldr r3, [pc, #736] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24710. 800ab54: 6adb ldr r3, [r3, #44] @ 0x2c
  24711. 800ab56: 4ab7 ldr r2, [pc, #732] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24712. 800ab58: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24713. 800ab5c: 62d3 str r3, [r2, #44] @ 0x2c
  24714. /* SPDIFRX clock source configuration done later after clock selection check */
  24715. break;
  24716. 800ab5e: e01a b.n 800ab96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  24717. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  24718. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  24719. 800ab60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24720. 800ab64: 3308 adds r3, #8
  24721. 800ab66: 2102 movs r1, #2
  24722. 800ab68: 4618 mov r0, r3
  24723. 800ab6a: f001 fc73 bl 800c454 <RCCEx_PLL2_Config>
  24724. 800ab6e: 4603 mov r3, r0
  24725. 800ab70: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24726. /* SPDIFRX clock source configuration done later after clock selection check */
  24727. break;
  24728. 800ab74: e00f b.n 800ab96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  24729. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  24730. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  24731. 800ab76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24732. 800ab7a: 3328 adds r3, #40 @ 0x28
  24733. 800ab7c: 2102 movs r1, #2
  24734. 800ab7e: 4618 mov r0, r3
  24735. 800ab80: f001 fd1a bl 800c5b8 <RCCEx_PLL3_Config>
  24736. 800ab84: 4603 mov r3, r0
  24737. 800ab86: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24738. /* SPDIFRX clock source configuration done later after clock selection check */
  24739. break;
  24740. 800ab8a: e004 b.n 800ab96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  24741. /* Internal OSC clock is used as source of SPDIFRX clock*/
  24742. /* SPDIFRX clock source configuration done later after clock selection check */
  24743. break;
  24744. default:
  24745. ret = HAL_ERROR;
  24746. 800ab8c: 2301 movs r3, #1
  24747. 800ab8e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24748. break;
  24749. 800ab92: e000 b.n 800ab96 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  24750. break;
  24751. 800ab94: bf00 nop
  24752. }
  24753. if (ret == HAL_OK)
  24754. 800ab96: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24755. 800ab9a: 2b00 cmp r3, #0
  24756. 800ab9c: d10a bne.n 800abb4 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  24757. {
  24758. /* Set the source of SPDIFRX clock*/
  24759. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  24760. 800ab9e: 4ba5 ldr r3, [pc, #660] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24761. 800aba0: 6d1b ldr r3, [r3, #80] @ 0x50
  24762. 800aba2: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  24763. 800aba6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24764. 800abaa: 6e9b ldr r3, [r3, #104] @ 0x68
  24765. 800abac: 4aa1 ldr r2, [pc, #644] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24766. 800abae: 430b orrs r3, r1
  24767. 800abb0: 6513 str r3, [r2, #80] @ 0x50
  24768. 800abb2: e003 b.n 800abbc <HAL_RCCEx_PeriphCLKConfig+0xc0>
  24769. }
  24770. else
  24771. {
  24772. /* set overall return value */
  24773. status = ret;
  24774. 800abb4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24775. 800abb8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24776. }
  24777. }
  24778. /*---------------------------- SAI1 configuration -------------------------------*/
  24779. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  24780. 800abbc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24781. 800abc0: e9d3 2300 ldrd r2, r3, [r3]
  24782. 800abc4: f402 7880 and.w r8, r2, #256 @ 0x100
  24783. 800abc8: f04f 0900 mov.w r9, #0
  24784. 800abcc: ea58 0309 orrs.w r3, r8, r9
  24785. 800abd0: d047 beq.n 800ac62 <HAL_RCCEx_PeriphCLKConfig+0x166>
  24786. {
  24787. switch (PeriphClkInit->Sai1ClockSelection)
  24788. 800abd2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24789. 800abd6: 6d9b ldr r3, [r3, #88] @ 0x58
  24790. 800abd8: 2b04 cmp r3, #4
  24791. 800abda: d82a bhi.n 800ac32 <HAL_RCCEx_PeriphCLKConfig+0x136>
  24792. 800abdc: a201 add r2, pc, #4 @ (adr r2, 800abe4 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  24793. 800abde: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24794. 800abe2: bf00 nop
  24795. 800abe4: 0800abf9 .word 0x0800abf9
  24796. 800abe8: 0800ac07 .word 0x0800ac07
  24797. 800abec: 0800ac1d .word 0x0800ac1d
  24798. 800abf0: 0800ac3b .word 0x0800ac3b
  24799. 800abf4: 0800ac3b .word 0x0800ac3b
  24800. {
  24801. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  24802. /* Enable SAI Clock output generated form System PLL . */
  24803. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24804. 800abf8: 4b8e ldr r3, [pc, #568] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24805. 800abfa: 6adb ldr r3, [r3, #44] @ 0x2c
  24806. 800abfc: 4a8d ldr r2, [pc, #564] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24807. 800abfe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24808. 800ac02: 62d3 str r3, [r2, #44] @ 0x2c
  24809. /* SAI1 clock source configuration done later after clock selection check */
  24810. break;
  24811. 800ac04: e01a b.n 800ac3c <HAL_RCCEx_PeriphCLKConfig+0x140>
  24812. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  24813. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  24814. 800ac06: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24815. 800ac0a: 3308 adds r3, #8
  24816. 800ac0c: 2100 movs r1, #0
  24817. 800ac0e: 4618 mov r0, r3
  24818. 800ac10: f001 fc20 bl 800c454 <RCCEx_PLL2_Config>
  24819. 800ac14: 4603 mov r3, r0
  24820. 800ac16: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24821. /* SAI1 clock source configuration done later after clock selection check */
  24822. break;
  24823. 800ac1a: e00f b.n 800ac3c <HAL_RCCEx_PeriphCLKConfig+0x140>
  24824. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  24825. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  24826. 800ac1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24827. 800ac20: 3328 adds r3, #40 @ 0x28
  24828. 800ac22: 2100 movs r1, #0
  24829. 800ac24: 4618 mov r0, r3
  24830. 800ac26: f001 fcc7 bl 800c5b8 <RCCEx_PLL3_Config>
  24831. 800ac2a: 4603 mov r3, r0
  24832. 800ac2c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24833. /* SAI1 clock source configuration done later after clock selection check */
  24834. break;
  24835. 800ac30: e004 b.n 800ac3c <HAL_RCCEx_PeriphCLKConfig+0x140>
  24836. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  24837. /* SAI1 clock source configuration done later after clock selection check */
  24838. break;
  24839. default:
  24840. ret = HAL_ERROR;
  24841. 800ac32: 2301 movs r3, #1
  24842. 800ac34: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24843. break;
  24844. 800ac38: e000 b.n 800ac3c <HAL_RCCEx_PeriphCLKConfig+0x140>
  24845. break;
  24846. 800ac3a: bf00 nop
  24847. }
  24848. if (ret == HAL_OK)
  24849. 800ac3c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24850. 800ac40: 2b00 cmp r3, #0
  24851. 800ac42: d10a bne.n 800ac5a <HAL_RCCEx_PeriphCLKConfig+0x15e>
  24852. {
  24853. /* Set the source of SAI1 clock*/
  24854. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  24855. 800ac44: 4b7b ldr r3, [pc, #492] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24856. 800ac46: 6d1b ldr r3, [r3, #80] @ 0x50
  24857. 800ac48: f023 0107 bic.w r1, r3, #7
  24858. 800ac4c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24859. 800ac50: 6d9b ldr r3, [r3, #88] @ 0x58
  24860. 800ac52: 4a78 ldr r2, [pc, #480] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24861. 800ac54: 430b orrs r3, r1
  24862. 800ac56: 6513 str r3, [r2, #80] @ 0x50
  24863. 800ac58: e003 b.n 800ac62 <HAL_RCCEx_PeriphCLKConfig+0x166>
  24864. }
  24865. else
  24866. {
  24867. /* set overall return value */
  24868. status = ret;
  24869. 800ac5a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24870. 800ac5e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24871. }
  24872. }
  24873. #if defined(SAI3)
  24874. /*---------------------------- SAI2/3 configuration -------------------------------*/
  24875. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  24876. 800ac62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24877. 800ac66: e9d3 2300 ldrd r2, r3, [r3]
  24878. 800ac6a: f402 7a00 and.w sl, r2, #512 @ 0x200
  24879. 800ac6e: f04f 0b00 mov.w fp, #0
  24880. 800ac72: ea5a 030b orrs.w r3, sl, fp
  24881. 800ac76: d04c beq.n 800ad12 <HAL_RCCEx_PeriphCLKConfig+0x216>
  24882. {
  24883. switch (PeriphClkInit->Sai23ClockSelection)
  24884. 800ac78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24885. 800ac7c: 6ddb ldr r3, [r3, #92] @ 0x5c
  24886. 800ac7e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  24887. 800ac82: d030 beq.n 800ace6 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  24888. 800ac84: f5b3 7f80 cmp.w r3, #256 @ 0x100
  24889. 800ac88: d829 bhi.n 800acde <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24890. 800ac8a: 2bc0 cmp r3, #192 @ 0xc0
  24891. 800ac8c: d02d beq.n 800acea <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  24892. 800ac8e: 2bc0 cmp r3, #192 @ 0xc0
  24893. 800ac90: d825 bhi.n 800acde <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24894. 800ac92: 2b80 cmp r3, #128 @ 0x80
  24895. 800ac94: d018 beq.n 800acc8 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  24896. 800ac96: 2b80 cmp r3, #128 @ 0x80
  24897. 800ac98: d821 bhi.n 800acde <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24898. 800ac9a: 2b00 cmp r3, #0
  24899. 800ac9c: d002 beq.n 800aca4 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  24900. 800ac9e: 2b40 cmp r3, #64 @ 0x40
  24901. 800aca0: d007 beq.n 800acb2 <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  24902. 800aca2: e01c b.n 800acde <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  24903. {
  24904. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  24905. /* Enable SAI Clock output generated form System PLL . */
  24906. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24907. 800aca4: 4b63 ldr r3, [pc, #396] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24908. 800aca6: 6adb ldr r3, [r3, #44] @ 0x2c
  24909. 800aca8: 4a62 ldr r2, [pc, #392] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24910. 800acaa: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24911. 800acae: 62d3 str r3, [r2, #44] @ 0x2c
  24912. /* SAI2/3 clock source configuration done later after clock selection check */
  24913. break;
  24914. 800acb0: e01c b.n 800acec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24915. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  24916. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  24917. 800acb2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24918. 800acb6: 3308 adds r3, #8
  24919. 800acb8: 2100 movs r1, #0
  24920. 800acba: 4618 mov r0, r3
  24921. 800acbc: f001 fbca bl 800c454 <RCCEx_PLL2_Config>
  24922. 800acc0: 4603 mov r3, r0
  24923. 800acc2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24924. /* SAI2/3 clock source configuration done later after clock selection check */
  24925. break;
  24926. 800acc6: e011 b.n 800acec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24927. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  24928. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  24929. 800acc8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24930. 800accc: 3328 adds r3, #40 @ 0x28
  24931. 800acce: 2100 movs r1, #0
  24932. 800acd0: 4618 mov r0, r3
  24933. 800acd2: f001 fc71 bl 800c5b8 <RCCEx_PLL3_Config>
  24934. 800acd6: 4603 mov r3, r0
  24935. 800acd8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24936. /* SAI2/3 clock source configuration done later after clock selection check */
  24937. break;
  24938. 800acdc: e006 b.n 800acec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24939. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  24940. /* SAI2/3 clock source configuration done later after clock selection check */
  24941. break;
  24942. default:
  24943. ret = HAL_ERROR;
  24944. 800acde: 2301 movs r3, #1
  24945. 800ace0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  24946. break;
  24947. 800ace4: e002 b.n 800acec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24948. break;
  24949. 800ace6: bf00 nop
  24950. 800ace8: e000 b.n 800acec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  24951. break;
  24952. 800acea: bf00 nop
  24953. }
  24954. if (ret == HAL_OK)
  24955. 800acec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24956. 800acf0: 2b00 cmp r3, #0
  24957. 800acf2: d10a bne.n 800ad0a <HAL_RCCEx_PeriphCLKConfig+0x20e>
  24958. {
  24959. /* Set the source of SAI2/3 clock*/
  24960. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  24961. 800acf4: 4b4f ldr r3, [pc, #316] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24962. 800acf6: 6d1b ldr r3, [r3, #80] @ 0x50
  24963. 800acf8: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  24964. 800acfc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24965. 800ad00: 6ddb ldr r3, [r3, #92] @ 0x5c
  24966. 800ad02: 4a4c ldr r2, [pc, #304] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  24967. 800ad04: 430b orrs r3, r1
  24968. 800ad06: 6513 str r3, [r2, #80] @ 0x50
  24969. 800ad08: e003 b.n 800ad12 <HAL_RCCEx_PeriphCLKConfig+0x216>
  24970. }
  24971. else
  24972. {
  24973. /* set overall return value */
  24974. status = ret;
  24975. 800ad0a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  24976. 800ad0e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  24977. }
  24978. #endif /*SAI2B*/
  24979. #if defined(SAI4)
  24980. /*---------------------------- SAI4A configuration -------------------------------*/
  24981. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  24982. 800ad12: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24983. 800ad16: e9d3 2300 ldrd r2, r3, [r3]
  24984. 800ad1a: f402 6380 and.w r3, r2, #1024 @ 0x400
  24985. 800ad1e: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  24986. 800ad22: 2300 movs r3, #0
  24987. 800ad24: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  24988. 800ad28: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  24989. 800ad2c: 460b mov r3, r1
  24990. 800ad2e: 4313 orrs r3, r2
  24991. 800ad30: d053 beq.n 800adda <HAL_RCCEx_PeriphCLKConfig+0x2de>
  24992. {
  24993. switch (PeriphClkInit->Sai4AClockSelection)
  24994. 800ad32: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  24995. 800ad36: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  24996. 800ad3a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  24997. 800ad3e: d035 beq.n 800adac <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  24998. 800ad40: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  24999. 800ad44: d82e bhi.n 800ada4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25000. 800ad46: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  25001. 800ad4a: d031 beq.n 800adb0 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  25002. 800ad4c: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  25003. 800ad50: d828 bhi.n 800ada4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25004. 800ad52: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  25005. 800ad56: d01a beq.n 800ad8e <HAL_RCCEx_PeriphCLKConfig+0x292>
  25006. 800ad58: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  25007. 800ad5c: d822 bhi.n 800ada4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25008. 800ad5e: 2b00 cmp r3, #0
  25009. 800ad60: d003 beq.n 800ad6a <HAL_RCCEx_PeriphCLKConfig+0x26e>
  25010. 800ad62: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25011. 800ad66: d007 beq.n 800ad78 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  25012. 800ad68: e01c b.n 800ada4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25013. {
  25014. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  25015. /* Enable SAI Clock output generated form System PLL . */
  25016. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25017. 800ad6a: 4b32 ldr r3, [pc, #200] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25018. 800ad6c: 6adb ldr r3, [r3, #44] @ 0x2c
  25019. 800ad6e: 4a31 ldr r2, [pc, #196] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25020. 800ad70: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25021. 800ad74: 62d3 str r3, [r2, #44] @ 0x2c
  25022. /* SAI1 clock source configuration done later after clock selection check */
  25023. break;
  25024. 800ad76: e01c b.n 800adb2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25025. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  25026. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25027. 800ad78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25028. 800ad7c: 3308 adds r3, #8
  25029. 800ad7e: 2100 movs r1, #0
  25030. 800ad80: 4618 mov r0, r3
  25031. 800ad82: f001 fb67 bl 800c454 <RCCEx_PLL2_Config>
  25032. 800ad86: 4603 mov r3, r0
  25033. 800ad88: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25034. /* SAI2 clock source configuration done later after clock selection check */
  25035. break;
  25036. 800ad8c: e011 b.n 800adb2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25037. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  25038. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25039. 800ad8e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25040. 800ad92: 3328 adds r3, #40 @ 0x28
  25041. 800ad94: 2100 movs r1, #0
  25042. 800ad96: 4618 mov r0, r3
  25043. 800ad98: f001 fc0e bl 800c5b8 <RCCEx_PLL3_Config>
  25044. 800ad9c: 4603 mov r3, r0
  25045. 800ad9e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25046. /* SAI1 clock source configuration done later after clock selection check */
  25047. break;
  25048. 800ada2: e006 b.n 800adb2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25049. /* SAI4A clock source configuration done later after clock selection check */
  25050. break;
  25051. #endif /* RCC_VER_3_0 */
  25052. default:
  25053. ret = HAL_ERROR;
  25054. 800ada4: 2301 movs r3, #1
  25055. 800ada6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25056. break;
  25057. 800adaa: e002 b.n 800adb2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25058. break;
  25059. 800adac: bf00 nop
  25060. 800adae: e000 b.n 800adb2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25061. break;
  25062. 800adb0: bf00 nop
  25063. }
  25064. if (ret == HAL_OK)
  25065. 800adb2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25066. 800adb6: 2b00 cmp r3, #0
  25067. 800adb8: d10b bne.n 800add2 <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  25068. {
  25069. /* Set the source of SAI4A clock*/
  25070. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  25071. 800adba: 4b1e ldr r3, [pc, #120] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25072. 800adbc: 6d9b ldr r3, [r3, #88] @ 0x58
  25073. 800adbe: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  25074. 800adc2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25075. 800adc6: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  25076. 800adca: 4a1a ldr r2, [pc, #104] @ (800ae34 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25077. 800adcc: 430b orrs r3, r1
  25078. 800adce: 6593 str r3, [r2, #88] @ 0x58
  25079. 800add0: e003 b.n 800adda <HAL_RCCEx_PeriphCLKConfig+0x2de>
  25080. }
  25081. else
  25082. {
  25083. /* set overall return value */
  25084. status = ret;
  25085. 800add2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25086. 800add6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25087. }
  25088. }
  25089. /*---------------------------- SAI4B configuration -------------------------------*/
  25090. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  25091. 800adda: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25092. 800adde: e9d3 2300 ldrd r2, r3, [r3]
  25093. 800ade2: f402 6300 and.w r3, r2, #2048 @ 0x800
  25094. 800ade6: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  25095. 800adea: 2300 movs r3, #0
  25096. 800adec: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  25097. 800adf0: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  25098. 800adf4: 460b mov r3, r1
  25099. 800adf6: 4313 orrs r3, r2
  25100. 800adf8: d056 beq.n 800aea8 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  25101. {
  25102. switch (PeriphClkInit->Sai4BClockSelection)
  25103. 800adfa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25104. 800adfe: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  25105. 800ae02: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  25106. 800ae06: d038 beq.n 800ae7a <HAL_RCCEx_PeriphCLKConfig+0x37e>
  25107. 800ae08: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  25108. 800ae0c: d831 bhi.n 800ae72 <HAL_RCCEx_PeriphCLKConfig+0x376>
  25109. 800ae0e: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  25110. 800ae12: d034 beq.n 800ae7e <HAL_RCCEx_PeriphCLKConfig+0x382>
  25111. 800ae14: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  25112. 800ae18: d82b bhi.n 800ae72 <HAL_RCCEx_PeriphCLKConfig+0x376>
  25113. 800ae1a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  25114. 800ae1e: d01d beq.n 800ae5c <HAL_RCCEx_PeriphCLKConfig+0x360>
  25115. 800ae20: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  25116. 800ae24: d825 bhi.n 800ae72 <HAL_RCCEx_PeriphCLKConfig+0x376>
  25117. 800ae26: 2b00 cmp r3, #0
  25118. 800ae28: d006 beq.n 800ae38 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  25119. 800ae2a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  25120. 800ae2e: d00a beq.n 800ae46 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  25121. 800ae30: e01f b.n 800ae72 <HAL_RCCEx_PeriphCLKConfig+0x376>
  25122. 800ae32: bf00 nop
  25123. 800ae34: 58024400 .word 0x58024400
  25124. {
  25125. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  25126. /* Enable SAI Clock output generated form System PLL . */
  25127. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25128. 800ae38: 4ba2 ldr r3, [pc, #648] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25129. 800ae3a: 6adb ldr r3, [r3, #44] @ 0x2c
  25130. 800ae3c: 4aa1 ldr r2, [pc, #644] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25131. 800ae3e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25132. 800ae42: 62d3 str r3, [r2, #44] @ 0x2c
  25133. /* SAI1 clock source configuration done later after clock selection check */
  25134. break;
  25135. 800ae44: e01c b.n 800ae80 <HAL_RCCEx_PeriphCLKConfig+0x384>
  25136. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  25137. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25138. 800ae46: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25139. 800ae4a: 3308 adds r3, #8
  25140. 800ae4c: 2100 movs r1, #0
  25141. 800ae4e: 4618 mov r0, r3
  25142. 800ae50: f001 fb00 bl 800c454 <RCCEx_PLL2_Config>
  25143. 800ae54: 4603 mov r3, r0
  25144. 800ae56: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25145. /* SAI2 clock source configuration done later after clock selection check */
  25146. break;
  25147. 800ae5a: e011 b.n 800ae80 <HAL_RCCEx_PeriphCLKConfig+0x384>
  25148. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  25149. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25150. 800ae5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25151. 800ae60: 3328 adds r3, #40 @ 0x28
  25152. 800ae62: 2100 movs r1, #0
  25153. 800ae64: 4618 mov r0, r3
  25154. 800ae66: f001 fba7 bl 800c5b8 <RCCEx_PLL3_Config>
  25155. 800ae6a: 4603 mov r3, r0
  25156. 800ae6c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25157. /* SAI1 clock source configuration done later after clock selection check */
  25158. break;
  25159. 800ae70: e006 b.n 800ae80 <HAL_RCCEx_PeriphCLKConfig+0x384>
  25160. /* SAI4B clock source configuration done later after clock selection check */
  25161. break;
  25162. #endif /* RCC_VER_3_0 */
  25163. default:
  25164. ret = HAL_ERROR;
  25165. 800ae72: 2301 movs r3, #1
  25166. 800ae74: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25167. break;
  25168. 800ae78: e002 b.n 800ae80 <HAL_RCCEx_PeriphCLKConfig+0x384>
  25169. break;
  25170. 800ae7a: bf00 nop
  25171. 800ae7c: e000 b.n 800ae80 <HAL_RCCEx_PeriphCLKConfig+0x384>
  25172. break;
  25173. 800ae7e: bf00 nop
  25174. }
  25175. if (ret == HAL_OK)
  25176. 800ae80: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25177. 800ae84: 2b00 cmp r3, #0
  25178. 800ae86: d10b bne.n 800aea0 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  25179. {
  25180. /* Set the source of SAI4B clock*/
  25181. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  25182. 800ae88: 4b8e ldr r3, [pc, #568] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25183. 800ae8a: 6d9b ldr r3, [r3, #88] @ 0x58
  25184. 800ae8c: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  25185. 800ae90: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25186. 800ae94: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  25187. 800ae98: 4a8a ldr r2, [pc, #552] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25188. 800ae9a: 430b orrs r3, r1
  25189. 800ae9c: 6593 str r3, [r2, #88] @ 0x58
  25190. 800ae9e: e003 b.n 800aea8 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  25191. }
  25192. else
  25193. {
  25194. /* set overall return value */
  25195. status = ret;
  25196. 800aea0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25197. 800aea4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25198. }
  25199. #endif /*SAI4*/
  25200. #if defined(QUADSPI)
  25201. /*---------------------------- QSPI configuration -------------------------------*/
  25202. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  25203. 800aea8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25204. 800aeac: e9d3 2300 ldrd r2, r3, [r3]
  25205. 800aeb0: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  25206. 800aeb4: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  25207. 800aeb8: 2300 movs r3, #0
  25208. 800aeba: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  25209. 800aebe: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  25210. 800aec2: 460b mov r3, r1
  25211. 800aec4: 4313 orrs r3, r2
  25212. 800aec6: d03a beq.n 800af3e <HAL_RCCEx_PeriphCLKConfig+0x442>
  25213. {
  25214. switch (PeriphClkInit->QspiClockSelection)
  25215. 800aec8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25216. 800aecc: 6cdb ldr r3, [r3, #76] @ 0x4c
  25217. 800aece: 2b30 cmp r3, #48 @ 0x30
  25218. 800aed0: d01f beq.n 800af12 <HAL_RCCEx_PeriphCLKConfig+0x416>
  25219. 800aed2: 2b30 cmp r3, #48 @ 0x30
  25220. 800aed4: d819 bhi.n 800af0a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  25221. 800aed6: 2b20 cmp r3, #32
  25222. 800aed8: d00c beq.n 800aef4 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  25223. 800aeda: 2b20 cmp r3, #32
  25224. 800aedc: d815 bhi.n 800af0a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  25225. 800aede: 2b00 cmp r3, #0
  25226. 800aee0: d019 beq.n 800af16 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  25227. 800aee2: 2b10 cmp r3, #16
  25228. 800aee4: d111 bne.n 800af0a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  25229. {
  25230. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  25231. /* Enable QSPI Clock output generated form System PLL . */
  25232. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25233. 800aee6: 4b77 ldr r3, [pc, #476] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25234. 800aee8: 6adb ldr r3, [r3, #44] @ 0x2c
  25235. 800aeea: 4a76 ldr r2, [pc, #472] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25236. 800aeec: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25237. 800aef0: 62d3 str r3, [r2, #44] @ 0x2c
  25238. /* QSPI clock source configuration done later after clock selection check */
  25239. break;
  25240. 800aef2: e011 b.n 800af18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25241. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  25242. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  25243. 800aef4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25244. 800aef8: 3308 adds r3, #8
  25245. 800aefa: 2102 movs r1, #2
  25246. 800aefc: 4618 mov r0, r3
  25247. 800aefe: f001 faa9 bl 800c454 <RCCEx_PLL2_Config>
  25248. 800af02: 4603 mov r3, r0
  25249. 800af04: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25250. /* QSPI clock source configuration done later after clock selection check */
  25251. break;
  25252. 800af08: e006 b.n 800af18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25253. case RCC_QSPICLKSOURCE_D1HCLK:
  25254. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  25255. break;
  25256. default:
  25257. ret = HAL_ERROR;
  25258. 800af0a: 2301 movs r3, #1
  25259. 800af0c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25260. break;
  25261. 800af10: e002 b.n 800af18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25262. break;
  25263. 800af12: bf00 nop
  25264. 800af14: e000 b.n 800af18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25265. break;
  25266. 800af16: bf00 nop
  25267. }
  25268. if (ret == HAL_OK)
  25269. 800af18: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25270. 800af1c: 2b00 cmp r3, #0
  25271. 800af1e: d10a bne.n 800af36 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  25272. {
  25273. /* Set the source of QSPI clock*/
  25274. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  25275. 800af20: 4b68 ldr r3, [pc, #416] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25276. 800af22: 6cdb ldr r3, [r3, #76] @ 0x4c
  25277. 800af24: f023 0130 bic.w r1, r3, #48 @ 0x30
  25278. 800af28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25279. 800af2c: 6cdb ldr r3, [r3, #76] @ 0x4c
  25280. 800af2e: 4a65 ldr r2, [pc, #404] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25281. 800af30: 430b orrs r3, r1
  25282. 800af32: 64d3 str r3, [r2, #76] @ 0x4c
  25283. 800af34: e003 b.n 800af3e <HAL_RCCEx_PeriphCLKConfig+0x442>
  25284. }
  25285. else
  25286. {
  25287. /* set overall return value */
  25288. status = ret;
  25289. 800af36: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25290. 800af3a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25291. }
  25292. }
  25293. #endif /*OCTOSPI*/
  25294. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  25295. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  25296. 800af3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25297. 800af42: e9d3 2300 ldrd r2, r3, [r3]
  25298. 800af46: f402 5380 and.w r3, r2, #4096 @ 0x1000
  25299. 800af4a: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  25300. 800af4e: 2300 movs r3, #0
  25301. 800af50: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  25302. 800af54: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  25303. 800af58: 460b mov r3, r1
  25304. 800af5a: 4313 orrs r3, r2
  25305. 800af5c: d051 beq.n 800b002 <HAL_RCCEx_PeriphCLKConfig+0x506>
  25306. {
  25307. switch (PeriphClkInit->Spi123ClockSelection)
  25308. 800af5e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25309. 800af62: 6e1b ldr r3, [r3, #96] @ 0x60
  25310. 800af64: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  25311. 800af68: d035 beq.n 800afd6 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  25312. 800af6a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  25313. 800af6e: d82e bhi.n 800afce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25314. 800af70: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  25315. 800af74: d031 beq.n 800afda <HAL_RCCEx_PeriphCLKConfig+0x4de>
  25316. 800af76: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  25317. 800af7a: d828 bhi.n 800afce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25318. 800af7c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25319. 800af80: d01a beq.n 800afb8 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  25320. 800af82: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25321. 800af86: d822 bhi.n 800afce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25322. 800af88: 2b00 cmp r3, #0
  25323. 800af8a: d003 beq.n 800af94 <HAL_RCCEx_PeriphCLKConfig+0x498>
  25324. 800af8c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  25325. 800af90: d007 beq.n 800afa2 <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  25326. 800af92: e01c b.n 800afce <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25327. {
  25328. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  25329. /* Enable SPI Clock output generated form System PLL . */
  25330. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25331. 800af94: 4b4b ldr r3, [pc, #300] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25332. 800af96: 6adb ldr r3, [r3, #44] @ 0x2c
  25333. 800af98: 4a4a ldr r2, [pc, #296] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25334. 800af9a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25335. 800af9e: 62d3 str r3, [r2, #44] @ 0x2c
  25336. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25337. break;
  25338. 800afa0: e01c b.n 800afdc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25339. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  25340. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25341. 800afa2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25342. 800afa6: 3308 adds r3, #8
  25343. 800afa8: 2100 movs r1, #0
  25344. 800afaa: 4618 mov r0, r3
  25345. 800afac: f001 fa52 bl 800c454 <RCCEx_PLL2_Config>
  25346. 800afb0: 4603 mov r3, r0
  25347. 800afb2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25348. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25349. break;
  25350. 800afb6: e011 b.n 800afdc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25351. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  25352. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25353. 800afb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25354. 800afbc: 3328 adds r3, #40 @ 0x28
  25355. 800afbe: 2100 movs r1, #0
  25356. 800afc0: 4618 mov r0, r3
  25357. 800afc2: f001 faf9 bl 800c5b8 <RCCEx_PLL3_Config>
  25358. 800afc6: 4603 mov r3, r0
  25359. 800afc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25360. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25361. break;
  25362. 800afcc: e006 b.n 800afdc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25363. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  25364. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25365. break;
  25366. default:
  25367. ret = HAL_ERROR;
  25368. 800afce: 2301 movs r3, #1
  25369. 800afd0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25370. break;
  25371. 800afd4: e002 b.n 800afdc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25372. break;
  25373. 800afd6: bf00 nop
  25374. 800afd8: e000 b.n 800afdc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25375. break;
  25376. 800afda: bf00 nop
  25377. }
  25378. if (ret == HAL_OK)
  25379. 800afdc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25380. 800afe0: 2b00 cmp r3, #0
  25381. 800afe2: d10a bne.n 800affa <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  25382. {
  25383. /* Set the source of SPI1/2/3 clock*/
  25384. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  25385. 800afe4: 4b37 ldr r3, [pc, #220] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25386. 800afe6: 6d1b ldr r3, [r3, #80] @ 0x50
  25387. 800afe8: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  25388. 800afec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25389. 800aff0: 6e1b ldr r3, [r3, #96] @ 0x60
  25390. 800aff2: 4a34 ldr r2, [pc, #208] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25391. 800aff4: 430b orrs r3, r1
  25392. 800aff6: 6513 str r3, [r2, #80] @ 0x50
  25393. 800aff8: e003 b.n 800b002 <HAL_RCCEx_PeriphCLKConfig+0x506>
  25394. }
  25395. else
  25396. {
  25397. /* set overall return value */
  25398. status = ret;
  25399. 800affa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25400. 800affe: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25401. }
  25402. }
  25403. /*---------------------------- SPI4/5 configuration -------------------------------*/
  25404. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  25405. 800b002: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25406. 800b006: e9d3 2300 ldrd r2, r3, [r3]
  25407. 800b00a: f402 5300 and.w r3, r2, #8192 @ 0x2000
  25408. 800b00e: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  25409. 800b012: 2300 movs r3, #0
  25410. 800b014: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  25411. 800b018: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  25412. 800b01c: 460b mov r3, r1
  25413. 800b01e: 4313 orrs r3, r2
  25414. 800b020: d056 beq.n 800b0d0 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  25415. {
  25416. switch (PeriphClkInit->Spi45ClockSelection)
  25417. 800b022: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25418. 800b026: 6e5b ldr r3, [r3, #100] @ 0x64
  25419. 800b028: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25420. 800b02c: d033 beq.n 800b096 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  25421. 800b02e: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25422. 800b032: d82c bhi.n 800b08e <HAL_RCCEx_PeriphCLKConfig+0x592>
  25423. 800b034: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  25424. 800b038: d02f beq.n 800b09a <HAL_RCCEx_PeriphCLKConfig+0x59e>
  25425. 800b03a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  25426. 800b03e: d826 bhi.n 800b08e <HAL_RCCEx_PeriphCLKConfig+0x592>
  25427. 800b040: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  25428. 800b044: d02b beq.n 800b09e <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  25429. 800b046: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  25430. 800b04a: d820 bhi.n 800b08e <HAL_RCCEx_PeriphCLKConfig+0x592>
  25431. 800b04c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  25432. 800b050: d012 beq.n 800b078 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  25433. 800b052: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  25434. 800b056: d81a bhi.n 800b08e <HAL_RCCEx_PeriphCLKConfig+0x592>
  25435. 800b058: 2b00 cmp r3, #0
  25436. 800b05a: d022 beq.n 800b0a2 <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  25437. 800b05c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  25438. 800b060: d115 bne.n 800b08e <HAL_RCCEx_PeriphCLKConfig+0x592>
  25439. /* SPI4/5 clock source configuration done later after clock selection check */
  25440. break;
  25441. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  25442. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25443. 800b062: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25444. 800b066: 3308 adds r3, #8
  25445. 800b068: 2101 movs r1, #1
  25446. 800b06a: 4618 mov r0, r3
  25447. 800b06c: f001 f9f2 bl 800c454 <RCCEx_PLL2_Config>
  25448. 800b070: 4603 mov r3, r0
  25449. 800b072: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25450. /* SPI4/5 clock source configuration done later after clock selection check */
  25451. break;
  25452. 800b076: e015 b.n 800b0a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25453. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  25454. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25455. 800b078: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25456. 800b07c: 3328 adds r3, #40 @ 0x28
  25457. 800b07e: 2101 movs r1, #1
  25458. 800b080: 4618 mov r0, r3
  25459. 800b082: f001 fa99 bl 800c5b8 <RCCEx_PLL3_Config>
  25460. 800b086: 4603 mov r3, r0
  25461. 800b088: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25462. /* SPI4/5 clock source configuration done later after clock selection check */
  25463. break;
  25464. 800b08c: e00a b.n 800b0a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25465. /* HSE, oscillator is used as source of SPI4/5 clock */
  25466. /* SPI4/5 clock source configuration done later after clock selection check */
  25467. break;
  25468. default:
  25469. ret = HAL_ERROR;
  25470. 800b08e: 2301 movs r3, #1
  25471. 800b090: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25472. break;
  25473. 800b094: e006 b.n 800b0a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25474. break;
  25475. 800b096: bf00 nop
  25476. 800b098: e004 b.n 800b0a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25477. break;
  25478. 800b09a: bf00 nop
  25479. 800b09c: e002 b.n 800b0a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25480. break;
  25481. 800b09e: bf00 nop
  25482. 800b0a0: e000 b.n 800b0a4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25483. break;
  25484. 800b0a2: bf00 nop
  25485. }
  25486. if (ret == HAL_OK)
  25487. 800b0a4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25488. 800b0a8: 2b00 cmp r3, #0
  25489. 800b0aa: d10d bne.n 800b0c8 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  25490. {
  25491. /* Set the source of SPI4/5 clock*/
  25492. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  25493. 800b0ac: 4b05 ldr r3, [pc, #20] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25494. 800b0ae: 6d1b ldr r3, [r3, #80] @ 0x50
  25495. 800b0b0: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  25496. 800b0b4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25497. 800b0b8: 6e5b ldr r3, [r3, #100] @ 0x64
  25498. 800b0ba: 4a02 ldr r2, [pc, #8] @ (800b0c4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25499. 800b0bc: 430b orrs r3, r1
  25500. 800b0be: 6513 str r3, [r2, #80] @ 0x50
  25501. 800b0c0: e006 b.n 800b0d0 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  25502. 800b0c2: bf00 nop
  25503. 800b0c4: 58024400 .word 0x58024400
  25504. }
  25505. else
  25506. {
  25507. /* set overall return value */
  25508. status = ret;
  25509. 800b0c8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25510. 800b0cc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25511. }
  25512. }
  25513. /*---------------------------- SPI6 configuration -------------------------------*/
  25514. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  25515. 800b0d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25516. 800b0d4: e9d3 2300 ldrd r2, r3, [r3]
  25517. 800b0d8: f402 4380 and.w r3, r2, #16384 @ 0x4000
  25518. 800b0dc: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  25519. 800b0e0: 2300 movs r3, #0
  25520. 800b0e2: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  25521. 800b0e6: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  25522. 800b0ea: 460b mov r3, r1
  25523. 800b0ec: 4313 orrs r3, r2
  25524. 800b0ee: d055 beq.n 800b19c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  25525. {
  25526. switch (PeriphClkInit->Spi6ClockSelection)
  25527. 800b0f0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25528. 800b0f4: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  25529. 800b0f8: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  25530. 800b0fc: d033 beq.n 800b166 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  25531. 800b0fe: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  25532. 800b102: d82c bhi.n 800b15e <HAL_RCCEx_PeriphCLKConfig+0x662>
  25533. 800b104: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  25534. 800b108: d02f beq.n 800b16a <HAL_RCCEx_PeriphCLKConfig+0x66e>
  25535. 800b10a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  25536. 800b10e: d826 bhi.n 800b15e <HAL_RCCEx_PeriphCLKConfig+0x662>
  25537. 800b110: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  25538. 800b114: d02b beq.n 800b16e <HAL_RCCEx_PeriphCLKConfig+0x672>
  25539. 800b116: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  25540. 800b11a: d820 bhi.n 800b15e <HAL_RCCEx_PeriphCLKConfig+0x662>
  25541. 800b11c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  25542. 800b120: d012 beq.n 800b148 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  25543. 800b122: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  25544. 800b126: d81a bhi.n 800b15e <HAL_RCCEx_PeriphCLKConfig+0x662>
  25545. 800b128: 2b00 cmp r3, #0
  25546. 800b12a: d022 beq.n 800b172 <HAL_RCCEx_PeriphCLKConfig+0x676>
  25547. 800b12c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  25548. 800b130: d115 bne.n 800b15e <HAL_RCCEx_PeriphCLKConfig+0x662>
  25549. /* SPI6 clock source configuration done later after clock selection check */
  25550. break;
  25551. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  25552. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25553. 800b132: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25554. 800b136: 3308 adds r3, #8
  25555. 800b138: 2101 movs r1, #1
  25556. 800b13a: 4618 mov r0, r3
  25557. 800b13c: f001 f98a bl 800c454 <RCCEx_PLL2_Config>
  25558. 800b140: 4603 mov r3, r0
  25559. 800b142: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25560. /* SPI6 clock source configuration done later after clock selection check */
  25561. break;
  25562. 800b146: e015 b.n 800b174 <HAL_RCCEx_PeriphCLKConfig+0x678>
  25563. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  25564. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25565. 800b148: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25566. 800b14c: 3328 adds r3, #40 @ 0x28
  25567. 800b14e: 2101 movs r1, #1
  25568. 800b150: 4618 mov r0, r3
  25569. 800b152: f001 fa31 bl 800c5b8 <RCCEx_PLL3_Config>
  25570. 800b156: 4603 mov r3, r0
  25571. 800b158: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25572. /* SPI6 clock source configuration done later after clock selection check */
  25573. break;
  25574. 800b15c: e00a b.n 800b174 <HAL_RCCEx_PeriphCLKConfig+0x678>
  25575. /* SPI6 clock source configuration done later after clock selection check */
  25576. break;
  25577. #endif
  25578. default:
  25579. ret = HAL_ERROR;
  25580. 800b15e: 2301 movs r3, #1
  25581. 800b160: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25582. break;
  25583. 800b164: e006 b.n 800b174 <HAL_RCCEx_PeriphCLKConfig+0x678>
  25584. break;
  25585. 800b166: bf00 nop
  25586. 800b168: e004 b.n 800b174 <HAL_RCCEx_PeriphCLKConfig+0x678>
  25587. break;
  25588. 800b16a: bf00 nop
  25589. 800b16c: e002 b.n 800b174 <HAL_RCCEx_PeriphCLKConfig+0x678>
  25590. break;
  25591. 800b16e: bf00 nop
  25592. 800b170: e000 b.n 800b174 <HAL_RCCEx_PeriphCLKConfig+0x678>
  25593. break;
  25594. 800b172: bf00 nop
  25595. }
  25596. if (ret == HAL_OK)
  25597. 800b174: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25598. 800b178: 2b00 cmp r3, #0
  25599. 800b17a: d10b bne.n 800b194 <HAL_RCCEx_PeriphCLKConfig+0x698>
  25600. {
  25601. /* Set the source of SPI6 clock*/
  25602. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  25603. 800b17c: 4ba3 ldr r3, [pc, #652] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25604. 800b17e: 6d9b ldr r3, [r3, #88] @ 0x58
  25605. 800b180: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  25606. 800b184: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25607. 800b188: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  25608. 800b18c: 4a9f ldr r2, [pc, #636] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25609. 800b18e: 430b orrs r3, r1
  25610. 800b190: 6593 str r3, [r2, #88] @ 0x58
  25611. 800b192: e003 b.n 800b19c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  25612. }
  25613. else
  25614. {
  25615. /* set overall return value */
  25616. status = ret;
  25617. 800b194: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25618. 800b198: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25619. }
  25620. #endif /*DSI*/
  25621. #if defined(FDCAN1) || defined(FDCAN2)
  25622. /*---------------------------- FDCAN configuration -------------------------------*/
  25623. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  25624. 800b19c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25625. 800b1a0: e9d3 2300 ldrd r2, r3, [r3]
  25626. 800b1a4: f402 4300 and.w r3, r2, #32768 @ 0x8000
  25627. 800b1a8: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  25628. 800b1ac: 2300 movs r3, #0
  25629. 800b1ae: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  25630. 800b1b2: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  25631. 800b1b6: 460b mov r3, r1
  25632. 800b1b8: 4313 orrs r3, r2
  25633. 800b1ba: d037 beq.n 800b22c <HAL_RCCEx_PeriphCLKConfig+0x730>
  25634. {
  25635. switch (PeriphClkInit->FdcanClockSelection)
  25636. 800b1bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25637. 800b1c0: 6f1b ldr r3, [r3, #112] @ 0x70
  25638. 800b1c2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  25639. 800b1c6: d00e beq.n 800b1e6 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  25640. 800b1c8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  25641. 800b1cc: d816 bhi.n 800b1fc <HAL_RCCEx_PeriphCLKConfig+0x700>
  25642. 800b1ce: 2b00 cmp r3, #0
  25643. 800b1d0: d018 beq.n 800b204 <HAL_RCCEx_PeriphCLKConfig+0x708>
  25644. 800b1d2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  25645. 800b1d6: d111 bne.n 800b1fc <HAL_RCCEx_PeriphCLKConfig+0x700>
  25646. {
  25647. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  25648. /* Enable FDCAN Clock output generated form System PLL . */
  25649. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25650. 800b1d8: 4b8c ldr r3, [pc, #560] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25651. 800b1da: 6adb ldr r3, [r3, #44] @ 0x2c
  25652. 800b1dc: 4a8b ldr r2, [pc, #556] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25653. 800b1de: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25654. 800b1e2: 62d3 str r3, [r2, #44] @ 0x2c
  25655. /* FDCAN clock source configuration done later after clock selection check */
  25656. break;
  25657. 800b1e4: e00f b.n 800b206 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  25658. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  25659. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25660. 800b1e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25661. 800b1ea: 3308 adds r3, #8
  25662. 800b1ec: 2101 movs r1, #1
  25663. 800b1ee: 4618 mov r0, r3
  25664. 800b1f0: f001 f930 bl 800c454 <RCCEx_PLL2_Config>
  25665. 800b1f4: 4603 mov r3, r0
  25666. 800b1f6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25667. /* FDCAN clock source configuration done later after clock selection check */
  25668. break;
  25669. 800b1fa: e004 b.n 800b206 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  25670. /* HSE is used as clock source for FDCAN*/
  25671. /* FDCAN clock source configuration done later after clock selection check */
  25672. break;
  25673. default:
  25674. ret = HAL_ERROR;
  25675. 800b1fc: 2301 movs r3, #1
  25676. 800b1fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25677. break;
  25678. 800b202: e000 b.n 800b206 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  25679. break;
  25680. 800b204: bf00 nop
  25681. }
  25682. if (ret == HAL_OK)
  25683. 800b206: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25684. 800b20a: 2b00 cmp r3, #0
  25685. 800b20c: d10a bne.n 800b224 <HAL_RCCEx_PeriphCLKConfig+0x728>
  25686. {
  25687. /* Set the source of FDCAN clock*/
  25688. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  25689. 800b20e: 4b7f ldr r3, [pc, #508] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25690. 800b210: 6d1b ldr r3, [r3, #80] @ 0x50
  25691. 800b212: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  25692. 800b216: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25693. 800b21a: 6f1b ldr r3, [r3, #112] @ 0x70
  25694. 800b21c: 4a7b ldr r2, [pc, #492] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25695. 800b21e: 430b orrs r3, r1
  25696. 800b220: 6513 str r3, [r2, #80] @ 0x50
  25697. 800b222: e003 b.n 800b22c <HAL_RCCEx_PeriphCLKConfig+0x730>
  25698. }
  25699. else
  25700. {
  25701. /* set overall return value */
  25702. status = ret;
  25703. 800b224: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25704. 800b228: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25705. }
  25706. }
  25707. #endif /*FDCAN1 || FDCAN2*/
  25708. /*---------------------------- FMC configuration -------------------------------*/
  25709. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  25710. 800b22c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25711. 800b230: e9d3 2300 ldrd r2, r3, [r3]
  25712. 800b234: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  25713. 800b238: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  25714. 800b23c: 2300 movs r3, #0
  25715. 800b23e: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  25716. 800b242: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  25717. 800b246: 460b mov r3, r1
  25718. 800b248: 4313 orrs r3, r2
  25719. 800b24a: d039 beq.n 800b2c0 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  25720. {
  25721. switch (PeriphClkInit->FmcClockSelection)
  25722. 800b24c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25723. 800b250: 6c9b ldr r3, [r3, #72] @ 0x48
  25724. 800b252: 2b03 cmp r3, #3
  25725. 800b254: d81c bhi.n 800b290 <HAL_RCCEx_PeriphCLKConfig+0x794>
  25726. 800b256: a201 add r2, pc, #4 @ (adr r2, 800b25c <HAL_RCCEx_PeriphCLKConfig+0x760>)
  25727. 800b258: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25728. 800b25c: 0800b299 .word 0x0800b299
  25729. 800b260: 0800b26d .word 0x0800b26d
  25730. 800b264: 0800b27b .word 0x0800b27b
  25731. 800b268: 0800b299 .word 0x0800b299
  25732. {
  25733. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  25734. /* Enable FMC Clock output generated form System PLL . */
  25735. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25736. 800b26c: 4b67 ldr r3, [pc, #412] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25737. 800b26e: 6adb ldr r3, [r3, #44] @ 0x2c
  25738. 800b270: 4a66 ldr r2, [pc, #408] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25739. 800b272: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25740. 800b276: 62d3 str r3, [r2, #44] @ 0x2c
  25741. /* FMC clock source configuration done later after clock selection check */
  25742. break;
  25743. 800b278: e00f b.n 800b29a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  25744. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  25745. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  25746. 800b27a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25747. 800b27e: 3308 adds r3, #8
  25748. 800b280: 2102 movs r1, #2
  25749. 800b282: 4618 mov r0, r3
  25750. 800b284: f001 f8e6 bl 800c454 <RCCEx_PLL2_Config>
  25751. 800b288: 4603 mov r3, r0
  25752. 800b28a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25753. /* FMC clock source configuration done later after clock selection check */
  25754. break;
  25755. 800b28e: e004 b.n 800b29a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  25756. case RCC_FMCCLKSOURCE_HCLK:
  25757. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  25758. break;
  25759. default:
  25760. ret = HAL_ERROR;
  25761. 800b290: 2301 movs r3, #1
  25762. 800b292: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25763. break;
  25764. 800b296: e000 b.n 800b29a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  25765. break;
  25766. 800b298: bf00 nop
  25767. }
  25768. if (ret == HAL_OK)
  25769. 800b29a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25770. 800b29e: 2b00 cmp r3, #0
  25771. 800b2a0: d10a bne.n 800b2b8 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  25772. {
  25773. /* Set the source of FMC clock*/
  25774. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  25775. 800b2a2: 4b5a ldr r3, [pc, #360] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25776. 800b2a4: 6cdb ldr r3, [r3, #76] @ 0x4c
  25777. 800b2a6: f023 0103 bic.w r1, r3, #3
  25778. 800b2aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25779. 800b2ae: 6c9b ldr r3, [r3, #72] @ 0x48
  25780. 800b2b0: 4a56 ldr r2, [pc, #344] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25781. 800b2b2: 430b orrs r3, r1
  25782. 800b2b4: 64d3 str r3, [r2, #76] @ 0x4c
  25783. 800b2b6: e003 b.n 800b2c0 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  25784. }
  25785. else
  25786. {
  25787. /* set overall return value */
  25788. status = ret;
  25789. 800b2b8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25790. 800b2bc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25791. }
  25792. }
  25793. /*---------------------------- RTC configuration -------------------------------*/
  25794. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  25795. 800b2c0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25796. 800b2c4: e9d3 2300 ldrd r2, r3, [r3]
  25797. 800b2c8: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  25798. 800b2cc: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  25799. 800b2d0: 2300 movs r3, #0
  25800. 800b2d2: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  25801. 800b2d6: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  25802. 800b2da: 460b mov r3, r1
  25803. 800b2dc: 4313 orrs r3, r2
  25804. 800b2de: f000 809f beq.w 800b420 <HAL_RCCEx_PeriphCLKConfig+0x924>
  25805. {
  25806. /* check for RTC Parameters used to output RTCCLK */
  25807. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  25808. /* Enable write access to Backup domain */
  25809. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  25810. 800b2e2: 4b4b ldr r3, [pc, #300] @ (800b410 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  25811. 800b2e4: 681b ldr r3, [r3, #0]
  25812. 800b2e6: 4a4a ldr r2, [pc, #296] @ (800b410 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  25813. 800b2e8: f443 7380 orr.w r3, r3, #256 @ 0x100
  25814. 800b2ec: 6013 str r3, [r2, #0]
  25815. /* Wait for Backup domain Write protection disable */
  25816. tickstart = HAL_GetTick();
  25817. 800b2ee: f7f9 fea9 bl 8005044 <HAL_GetTick>
  25818. 800b2f2: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  25819. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  25820. 800b2f6: e00b b.n 800b310 <HAL_RCCEx_PeriphCLKConfig+0x814>
  25821. {
  25822. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  25823. 800b2f8: f7f9 fea4 bl 8005044 <HAL_GetTick>
  25824. 800b2fc: 4602 mov r2, r0
  25825. 800b2fe: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  25826. 800b302: 1ad3 subs r3, r2, r3
  25827. 800b304: 2b64 cmp r3, #100 @ 0x64
  25828. 800b306: d903 bls.n 800b310 <HAL_RCCEx_PeriphCLKConfig+0x814>
  25829. {
  25830. ret = HAL_TIMEOUT;
  25831. 800b308: 2303 movs r3, #3
  25832. 800b30a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25833. break;
  25834. 800b30e: e005 b.n 800b31c <HAL_RCCEx_PeriphCLKConfig+0x820>
  25835. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  25836. 800b310: 4b3f ldr r3, [pc, #252] @ (800b410 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  25837. 800b312: 681b ldr r3, [r3, #0]
  25838. 800b314: f403 7380 and.w r3, r3, #256 @ 0x100
  25839. 800b318: 2b00 cmp r3, #0
  25840. 800b31a: d0ed beq.n 800b2f8 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  25841. }
  25842. }
  25843. if (ret == HAL_OK)
  25844. 800b31c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25845. 800b320: 2b00 cmp r3, #0
  25846. 800b322: d179 bne.n 800b418 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  25847. {
  25848. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  25849. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  25850. 800b324: 4b39 ldr r3, [pc, #228] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25851. 800b326: 6f1a ldr r2, [r3, #112] @ 0x70
  25852. 800b328: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25853. 800b32c: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25854. 800b330: 4053 eors r3, r2
  25855. 800b332: f403 7340 and.w r3, r3, #768 @ 0x300
  25856. 800b336: 2b00 cmp r3, #0
  25857. 800b338: d015 beq.n 800b366 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  25858. {
  25859. /* Store the content of BDCR register before the reset of Backup Domain */
  25860. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  25861. 800b33a: 4b34 ldr r3, [pc, #208] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25862. 800b33c: 6f1b ldr r3, [r3, #112] @ 0x70
  25863. 800b33e: f423 7340 bic.w r3, r3, #768 @ 0x300
  25864. 800b342: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  25865. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  25866. __HAL_RCC_BACKUPRESET_FORCE();
  25867. 800b346: 4b31 ldr r3, [pc, #196] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25868. 800b348: 6f1b ldr r3, [r3, #112] @ 0x70
  25869. 800b34a: 4a30 ldr r2, [pc, #192] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25870. 800b34c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25871. 800b350: 6713 str r3, [r2, #112] @ 0x70
  25872. __HAL_RCC_BACKUPRESET_RELEASE();
  25873. 800b352: 4b2e ldr r3, [pc, #184] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25874. 800b354: 6f1b ldr r3, [r3, #112] @ 0x70
  25875. 800b356: 4a2d ldr r2, [pc, #180] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25876. 800b358: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25877. 800b35c: 6713 str r3, [r2, #112] @ 0x70
  25878. /* Restore the Content of BDCR register */
  25879. RCC->BDCR = tmpreg;
  25880. 800b35e: 4a2b ldr r2, [pc, #172] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25881. 800b360: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  25882. 800b364: 6713 str r3, [r2, #112] @ 0x70
  25883. }
  25884. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  25885. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  25886. 800b366: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25887. 800b36a: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25888. 800b36e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  25889. 800b372: d118 bne.n 800b3a6 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  25890. {
  25891. /* Get Start Tick*/
  25892. tickstart = HAL_GetTick();
  25893. 800b374: f7f9 fe66 bl 8005044 <HAL_GetTick>
  25894. 800b378: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  25895. /* Wait till LSE is ready */
  25896. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  25897. 800b37c: e00d b.n 800b39a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  25898. {
  25899. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  25900. 800b37e: f7f9 fe61 bl 8005044 <HAL_GetTick>
  25901. 800b382: 4602 mov r2, r0
  25902. 800b384: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  25903. 800b388: 1ad2 subs r2, r2, r3
  25904. 800b38a: f241 3388 movw r3, #5000 @ 0x1388
  25905. 800b38e: 429a cmp r2, r3
  25906. 800b390: d903 bls.n 800b39a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  25907. {
  25908. ret = HAL_TIMEOUT;
  25909. 800b392: 2303 movs r3, #3
  25910. 800b394: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25911. break;
  25912. 800b398: e005 b.n 800b3a6 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  25913. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  25914. 800b39a: 4b1c ldr r3, [pc, #112] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25915. 800b39c: 6f1b ldr r3, [r3, #112] @ 0x70
  25916. 800b39e: f003 0302 and.w r3, r3, #2
  25917. 800b3a2: 2b00 cmp r3, #0
  25918. 800b3a4: d0eb beq.n 800b37e <HAL_RCCEx_PeriphCLKConfig+0x882>
  25919. }
  25920. }
  25921. }
  25922. if (ret == HAL_OK)
  25923. 800b3a6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25924. 800b3aa: 2b00 cmp r3, #0
  25925. 800b3ac: d129 bne.n 800b402 <HAL_RCCEx_PeriphCLKConfig+0x906>
  25926. {
  25927. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  25928. 800b3ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25929. 800b3b2: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25930. 800b3b6: f403 7340 and.w r3, r3, #768 @ 0x300
  25931. 800b3ba: f5b3 7f40 cmp.w r3, #768 @ 0x300
  25932. 800b3be: d10e bne.n 800b3de <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  25933. 800b3c0: 4b12 ldr r3, [pc, #72] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25934. 800b3c2: 691b ldr r3, [r3, #16]
  25935. 800b3c4: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  25936. 800b3c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25937. 800b3cc: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25938. 800b3d0: 091a lsrs r2, r3, #4
  25939. 800b3d2: 4b10 ldr r3, [pc, #64] @ (800b414 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  25940. 800b3d4: 4013 ands r3, r2
  25941. 800b3d6: 4a0d ldr r2, [pc, #52] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25942. 800b3d8: 430b orrs r3, r1
  25943. 800b3da: 6113 str r3, [r2, #16]
  25944. 800b3dc: e005 b.n 800b3ea <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  25945. 800b3de: 4b0b ldr r3, [pc, #44] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25946. 800b3e0: 691b ldr r3, [r3, #16]
  25947. 800b3e2: 4a0a ldr r2, [pc, #40] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25948. 800b3e4: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  25949. 800b3e8: 6113 str r3, [r2, #16]
  25950. 800b3ea: 4b08 ldr r3, [pc, #32] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25951. 800b3ec: 6f19 ldr r1, [r3, #112] @ 0x70
  25952. 800b3ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25953. 800b3f2: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  25954. 800b3f6: f3c3 030b ubfx r3, r3, #0, #12
  25955. 800b3fa: 4a04 ldr r2, [pc, #16] @ (800b40c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  25956. 800b3fc: 430b orrs r3, r1
  25957. 800b3fe: 6713 str r3, [r2, #112] @ 0x70
  25958. 800b400: e00e b.n 800b420 <HAL_RCCEx_PeriphCLKConfig+0x924>
  25959. }
  25960. else
  25961. {
  25962. /* set overall return value */
  25963. status = ret;
  25964. 800b402: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25965. 800b406: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25966. 800b40a: e009 b.n 800b420 <HAL_RCCEx_PeriphCLKConfig+0x924>
  25967. 800b40c: 58024400 .word 0x58024400
  25968. 800b410: 58024800 .word 0x58024800
  25969. 800b414: 00ffffcf .word 0x00ffffcf
  25970. }
  25971. }
  25972. else
  25973. {
  25974. /* set overall return value */
  25975. status = ret;
  25976. 800b418: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25977. 800b41c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25978. }
  25979. }
  25980. /*-------------------------- USART1/6 configuration --------------------------*/
  25981. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  25982. 800b420: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25983. 800b424: e9d3 2300 ldrd r2, r3, [r3]
  25984. 800b428: f002 0301 and.w r3, r2, #1
  25985. 800b42c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  25986. 800b430: 2300 movs r3, #0
  25987. 800b432: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  25988. 800b436: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  25989. 800b43a: 460b mov r3, r1
  25990. 800b43c: 4313 orrs r3, r2
  25991. 800b43e: f000 8089 beq.w 800b554 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  25992. {
  25993. switch (PeriphClkInit->Usart16ClockSelection)
  25994. 800b442: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25995. 800b446: 6fdb ldr r3, [r3, #124] @ 0x7c
  25996. 800b448: 2b28 cmp r3, #40 @ 0x28
  25997. 800b44a: d86b bhi.n 800b524 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  25998. 800b44c: a201 add r2, pc, #4 @ (adr r2, 800b454 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  25999. 800b44e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26000. 800b452: bf00 nop
  26001. 800b454: 0800b52d .word 0x0800b52d
  26002. 800b458: 0800b525 .word 0x0800b525
  26003. 800b45c: 0800b525 .word 0x0800b525
  26004. 800b460: 0800b525 .word 0x0800b525
  26005. 800b464: 0800b525 .word 0x0800b525
  26006. 800b468: 0800b525 .word 0x0800b525
  26007. 800b46c: 0800b525 .word 0x0800b525
  26008. 800b470: 0800b525 .word 0x0800b525
  26009. 800b474: 0800b4f9 .word 0x0800b4f9
  26010. 800b478: 0800b525 .word 0x0800b525
  26011. 800b47c: 0800b525 .word 0x0800b525
  26012. 800b480: 0800b525 .word 0x0800b525
  26013. 800b484: 0800b525 .word 0x0800b525
  26014. 800b488: 0800b525 .word 0x0800b525
  26015. 800b48c: 0800b525 .word 0x0800b525
  26016. 800b490: 0800b525 .word 0x0800b525
  26017. 800b494: 0800b50f .word 0x0800b50f
  26018. 800b498: 0800b525 .word 0x0800b525
  26019. 800b49c: 0800b525 .word 0x0800b525
  26020. 800b4a0: 0800b525 .word 0x0800b525
  26021. 800b4a4: 0800b525 .word 0x0800b525
  26022. 800b4a8: 0800b525 .word 0x0800b525
  26023. 800b4ac: 0800b525 .word 0x0800b525
  26024. 800b4b0: 0800b525 .word 0x0800b525
  26025. 800b4b4: 0800b52d .word 0x0800b52d
  26026. 800b4b8: 0800b525 .word 0x0800b525
  26027. 800b4bc: 0800b525 .word 0x0800b525
  26028. 800b4c0: 0800b525 .word 0x0800b525
  26029. 800b4c4: 0800b525 .word 0x0800b525
  26030. 800b4c8: 0800b525 .word 0x0800b525
  26031. 800b4cc: 0800b525 .word 0x0800b525
  26032. 800b4d0: 0800b525 .word 0x0800b525
  26033. 800b4d4: 0800b52d .word 0x0800b52d
  26034. 800b4d8: 0800b525 .word 0x0800b525
  26035. 800b4dc: 0800b525 .word 0x0800b525
  26036. 800b4e0: 0800b525 .word 0x0800b525
  26037. 800b4e4: 0800b525 .word 0x0800b525
  26038. 800b4e8: 0800b525 .word 0x0800b525
  26039. 800b4ec: 0800b525 .word 0x0800b525
  26040. 800b4f0: 0800b525 .word 0x0800b525
  26041. 800b4f4: 0800b52d .word 0x0800b52d
  26042. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  26043. /* USART1/6 clock source configuration done later after clock selection check */
  26044. break;
  26045. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  26046. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26047. 800b4f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26048. 800b4fc: 3308 adds r3, #8
  26049. 800b4fe: 2101 movs r1, #1
  26050. 800b500: 4618 mov r0, r3
  26051. 800b502: f000 ffa7 bl 800c454 <RCCEx_PLL2_Config>
  26052. 800b506: 4603 mov r3, r0
  26053. 800b508: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26054. /* USART1/6 clock source configuration done later after clock selection check */
  26055. break;
  26056. 800b50c: e00f b.n 800b52e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  26057. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  26058. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26059. 800b50e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26060. 800b512: 3328 adds r3, #40 @ 0x28
  26061. 800b514: 2101 movs r1, #1
  26062. 800b516: 4618 mov r0, r3
  26063. 800b518: f001 f84e bl 800c5b8 <RCCEx_PLL3_Config>
  26064. 800b51c: 4603 mov r3, r0
  26065. 800b51e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26066. /* USART1/6 clock source configuration done later after clock selection check */
  26067. break;
  26068. 800b522: e004 b.n 800b52e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  26069. /* LSE, oscillator is used as source of USART1/6 clock */
  26070. /* USART1/6 clock source configuration done later after clock selection check */
  26071. break;
  26072. default:
  26073. ret = HAL_ERROR;
  26074. 800b524: 2301 movs r3, #1
  26075. 800b526: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26076. break;
  26077. 800b52a: e000 b.n 800b52e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  26078. break;
  26079. 800b52c: bf00 nop
  26080. }
  26081. if (ret == HAL_OK)
  26082. 800b52e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26083. 800b532: 2b00 cmp r3, #0
  26084. 800b534: d10a bne.n 800b54c <HAL_RCCEx_PeriphCLKConfig+0xa50>
  26085. {
  26086. /* Set the source of USART1/6 clock */
  26087. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  26088. 800b536: 4bbf ldr r3, [pc, #764] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26089. 800b538: 6d5b ldr r3, [r3, #84] @ 0x54
  26090. 800b53a: f023 0138 bic.w r1, r3, #56 @ 0x38
  26091. 800b53e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26092. 800b542: 6fdb ldr r3, [r3, #124] @ 0x7c
  26093. 800b544: 4abb ldr r2, [pc, #748] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26094. 800b546: 430b orrs r3, r1
  26095. 800b548: 6553 str r3, [r2, #84] @ 0x54
  26096. 800b54a: e003 b.n 800b554 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  26097. }
  26098. else
  26099. {
  26100. /* set overall return value */
  26101. status = ret;
  26102. 800b54c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26103. 800b550: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26104. }
  26105. }
  26106. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  26107. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  26108. 800b554: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26109. 800b558: e9d3 2300 ldrd r2, r3, [r3]
  26110. 800b55c: f002 0302 and.w r3, r2, #2
  26111. 800b560: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  26112. 800b564: 2300 movs r3, #0
  26113. 800b566: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  26114. 800b56a: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  26115. 800b56e: 460b mov r3, r1
  26116. 800b570: 4313 orrs r3, r2
  26117. 800b572: d041 beq.n 800b5f8 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  26118. {
  26119. switch (PeriphClkInit->Usart234578ClockSelection)
  26120. 800b574: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26121. 800b578: 6f9b ldr r3, [r3, #120] @ 0x78
  26122. 800b57a: 2b05 cmp r3, #5
  26123. 800b57c: d824 bhi.n 800b5c8 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  26124. 800b57e: a201 add r2, pc, #4 @ (adr r2, 800b584 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  26125. 800b580: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26126. 800b584: 0800b5d1 .word 0x0800b5d1
  26127. 800b588: 0800b59d .word 0x0800b59d
  26128. 800b58c: 0800b5b3 .word 0x0800b5b3
  26129. 800b590: 0800b5d1 .word 0x0800b5d1
  26130. 800b594: 0800b5d1 .word 0x0800b5d1
  26131. 800b598: 0800b5d1 .word 0x0800b5d1
  26132. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  26133. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26134. break;
  26135. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  26136. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26137. 800b59c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26138. 800b5a0: 3308 adds r3, #8
  26139. 800b5a2: 2101 movs r1, #1
  26140. 800b5a4: 4618 mov r0, r3
  26141. 800b5a6: f000 ff55 bl 800c454 <RCCEx_PLL2_Config>
  26142. 800b5aa: 4603 mov r3, r0
  26143. 800b5ac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26144. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26145. break;
  26146. 800b5b0: e00f b.n 800b5d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  26147. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  26148. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26149. 800b5b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26150. 800b5b6: 3328 adds r3, #40 @ 0x28
  26151. 800b5b8: 2101 movs r1, #1
  26152. 800b5ba: 4618 mov r0, r3
  26153. 800b5bc: f000 fffc bl 800c5b8 <RCCEx_PLL3_Config>
  26154. 800b5c0: 4603 mov r3, r0
  26155. 800b5c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26156. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26157. break;
  26158. 800b5c6: e004 b.n 800b5d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  26159. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  26160. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26161. break;
  26162. default:
  26163. ret = HAL_ERROR;
  26164. 800b5c8: 2301 movs r3, #1
  26165. 800b5ca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26166. break;
  26167. 800b5ce: e000 b.n 800b5d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  26168. break;
  26169. 800b5d0: bf00 nop
  26170. }
  26171. if (ret == HAL_OK)
  26172. 800b5d2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26173. 800b5d6: 2b00 cmp r3, #0
  26174. 800b5d8: d10a bne.n 800b5f0 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  26175. {
  26176. /* Set the source of USART2/3/4/5/7/8 clock */
  26177. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  26178. 800b5da: 4b96 ldr r3, [pc, #600] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26179. 800b5dc: 6d5b ldr r3, [r3, #84] @ 0x54
  26180. 800b5de: f023 0107 bic.w r1, r3, #7
  26181. 800b5e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26182. 800b5e6: 6f9b ldr r3, [r3, #120] @ 0x78
  26183. 800b5e8: 4a92 ldr r2, [pc, #584] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26184. 800b5ea: 430b orrs r3, r1
  26185. 800b5ec: 6553 str r3, [r2, #84] @ 0x54
  26186. 800b5ee: e003 b.n 800b5f8 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  26187. }
  26188. else
  26189. {
  26190. /* set overall return value */
  26191. status = ret;
  26192. 800b5f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26193. 800b5f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26194. }
  26195. }
  26196. /*-------------------------- LPUART1 Configuration -------------------------*/
  26197. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  26198. 800b5f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26199. 800b5fc: e9d3 2300 ldrd r2, r3, [r3]
  26200. 800b600: f002 0304 and.w r3, r2, #4
  26201. 800b604: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  26202. 800b608: 2300 movs r3, #0
  26203. 800b60a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  26204. 800b60e: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  26205. 800b612: 460b mov r3, r1
  26206. 800b614: 4313 orrs r3, r2
  26207. 800b616: d044 beq.n 800b6a2 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  26208. {
  26209. switch (PeriphClkInit->Lpuart1ClockSelection)
  26210. 800b618: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26211. 800b61c: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  26212. 800b620: 2b05 cmp r3, #5
  26213. 800b622: d825 bhi.n 800b670 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  26214. 800b624: a201 add r2, pc, #4 @ (adr r2, 800b62c <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  26215. 800b626: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26216. 800b62a: bf00 nop
  26217. 800b62c: 0800b679 .word 0x0800b679
  26218. 800b630: 0800b645 .word 0x0800b645
  26219. 800b634: 0800b65b .word 0x0800b65b
  26220. 800b638: 0800b679 .word 0x0800b679
  26221. 800b63c: 0800b679 .word 0x0800b679
  26222. 800b640: 0800b679 .word 0x0800b679
  26223. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  26224. /* LPUART1 clock source configuration done later after clock selection check */
  26225. break;
  26226. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  26227. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26228. 800b644: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26229. 800b648: 3308 adds r3, #8
  26230. 800b64a: 2101 movs r1, #1
  26231. 800b64c: 4618 mov r0, r3
  26232. 800b64e: f000 ff01 bl 800c454 <RCCEx_PLL2_Config>
  26233. 800b652: 4603 mov r3, r0
  26234. 800b654: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26235. /* LPUART1 clock source configuration done later after clock selection check */
  26236. break;
  26237. 800b658: e00f b.n 800b67a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  26238. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  26239. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26240. 800b65a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26241. 800b65e: 3328 adds r3, #40 @ 0x28
  26242. 800b660: 2101 movs r1, #1
  26243. 800b662: 4618 mov r0, r3
  26244. 800b664: f000 ffa8 bl 800c5b8 <RCCEx_PLL3_Config>
  26245. 800b668: 4603 mov r3, r0
  26246. 800b66a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26247. /* LPUART1 clock source configuration done later after clock selection check */
  26248. break;
  26249. 800b66e: e004 b.n 800b67a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  26250. /* LSE, oscillator is used as source of LPUART1 clock */
  26251. /* LPUART1 clock source configuration done later after clock selection check */
  26252. break;
  26253. default:
  26254. ret = HAL_ERROR;
  26255. 800b670: 2301 movs r3, #1
  26256. 800b672: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26257. break;
  26258. 800b676: e000 b.n 800b67a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  26259. break;
  26260. 800b678: bf00 nop
  26261. }
  26262. if (ret == HAL_OK)
  26263. 800b67a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26264. 800b67e: 2b00 cmp r3, #0
  26265. 800b680: d10b bne.n 800b69a <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  26266. {
  26267. /* Set the source of LPUART1 clock */
  26268. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  26269. 800b682: 4b6c ldr r3, [pc, #432] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26270. 800b684: 6d9b ldr r3, [r3, #88] @ 0x58
  26271. 800b686: f023 0107 bic.w r1, r3, #7
  26272. 800b68a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26273. 800b68e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  26274. 800b692: 4a68 ldr r2, [pc, #416] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26275. 800b694: 430b orrs r3, r1
  26276. 800b696: 6593 str r3, [r2, #88] @ 0x58
  26277. 800b698: e003 b.n 800b6a2 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  26278. }
  26279. else
  26280. {
  26281. /* set overall return value */
  26282. status = ret;
  26283. 800b69a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26284. 800b69e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26285. }
  26286. }
  26287. /*---------------------------- LPTIM1 configuration -------------------------------*/
  26288. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  26289. 800b6a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26290. 800b6a6: e9d3 2300 ldrd r2, r3, [r3]
  26291. 800b6aa: f002 0320 and.w r3, r2, #32
  26292. 800b6ae: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  26293. 800b6b2: 2300 movs r3, #0
  26294. 800b6b4: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  26295. 800b6b8: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  26296. 800b6bc: 460b mov r3, r1
  26297. 800b6be: 4313 orrs r3, r2
  26298. 800b6c0: d055 beq.n 800b76e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  26299. {
  26300. switch (PeriphClkInit->Lptim1ClockSelection)
  26301. 800b6c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26302. 800b6c6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  26303. 800b6ca: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26304. 800b6ce: d033 beq.n 800b738 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  26305. 800b6d0: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26306. 800b6d4: d82c bhi.n 800b730 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26307. 800b6d6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26308. 800b6da: d02f beq.n 800b73c <HAL_RCCEx_PeriphCLKConfig+0xc40>
  26309. 800b6dc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26310. 800b6e0: d826 bhi.n 800b730 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26311. 800b6e2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26312. 800b6e6: d02b beq.n 800b740 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  26313. 800b6e8: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26314. 800b6ec: d820 bhi.n 800b730 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26315. 800b6ee: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26316. 800b6f2: d012 beq.n 800b71a <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  26317. 800b6f4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26318. 800b6f8: d81a bhi.n 800b730 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26319. 800b6fa: 2b00 cmp r3, #0
  26320. 800b6fc: d022 beq.n 800b744 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  26321. 800b6fe: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  26322. 800b702: d115 bne.n 800b730 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26323. /* LPTIM1 clock source configuration done later after clock selection check */
  26324. break;
  26325. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  26326. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26327. 800b704: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26328. 800b708: 3308 adds r3, #8
  26329. 800b70a: 2100 movs r1, #0
  26330. 800b70c: 4618 mov r0, r3
  26331. 800b70e: f000 fea1 bl 800c454 <RCCEx_PLL2_Config>
  26332. 800b712: 4603 mov r3, r0
  26333. 800b714: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26334. /* LPTIM1 clock source configuration done later after clock selection check */
  26335. break;
  26336. 800b718: e015 b.n 800b746 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26337. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  26338. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26339. 800b71a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26340. 800b71e: 3328 adds r3, #40 @ 0x28
  26341. 800b720: 2102 movs r1, #2
  26342. 800b722: 4618 mov r0, r3
  26343. 800b724: f000 ff48 bl 800c5b8 <RCCEx_PLL3_Config>
  26344. 800b728: 4603 mov r3, r0
  26345. 800b72a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26346. /* LPTIM1 clock source configuration done later after clock selection check */
  26347. break;
  26348. 800b72e: e00a b.n 800b746 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26349. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  26350. /* LPTIM1 clock source configuration done later after clock selection check */
  26351. break;
  26352. default:
  26353. ret = HAL_ERROR;
  26354. 800b730: 2301 movs r3, #1
  26355. 800b732: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26356. break;
  26357. 800b736: e006 b.n 800b746 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26358. break;
  26359. 800b738: bf00 nop
  26360. 800b73a: e004 b.n 800b746 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26361. break;
  26362. 800b73c: bf00 nop
  26363. 800b73e: e002 b.n 800b746 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26364. break;
  26365. 800b740: bf00 nop
  26366. 800b742: e000 b.n 800b746 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26367. break;
  26368. 800b744: bf00 nop
  26369. }
  26370. if (ret == HAL_OK)
  26371. 800b746: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26372. 800b74a: 2b00 cmp r3, #0
  26373. 800b74c: d10b bne.n 800b766 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  26374. {
  26375. /* Set the source of LPTIM1 clock*/
  26376. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  26377. 800b74e: 4b39 ldr r3, [pc, #228] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26378. 800b750: 6d5b ldr r3, [r3, #84] @ 0x54
  26379. 800b752: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  26380. 800b756: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26381. 800b75a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  26382. 800b75e: 4a35 ldr r2, [pc, #212] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26383. 800b760: 430b orrs r3, r1
  26384. 800b762: 6553 str r3, [r2, #84] @ 0x54
  26385. 800b764: e003 b.n 800b76e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  26386. }
  26387. else
  26388. {
  26389. /* set overall return value */
  26390. status = ret;
  26391. 800b766: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26392. 800b76a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26393. }
  26394. }
  26395. /*---------------------------- LPTIM2 configuration -------------------------------*/
  26396. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  26397. 800b76e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26398. 800b772: e9d3 2300 ldrd r2, r3, [r3]
  26399. 800b776: f002 0340 and.w r3, r2, #64 @ 0x40
  26400. 800b77a: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  26401. 800b77e: 2300 movs r3, #0
  26402. 800b780: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  26403. 800b784: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  26404. 800b788: 460b mov r3, r1
  26405. 800b78a: 4313 orrs r3, r2
  26406. 800b78c: d058 beq.n 800b840 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  26407. {
  26408. switch (PeriphClkInit->Lptim2ClockSelection)
  26409. 800b78e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26410. 800b792: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  26411. 800b796: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  26412. 800b79a: d033 beq.n 800b804 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  26413. 800b79c: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  26414. 800b7a0: d82c bhi.n 800b7fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26415. 800b7a2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  26416. 800b7a6: d02f beq.n 800b808 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  26417. 800b7a8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  26418. 800b7ac: d826 bhi.n 800b7fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26419. 800b7ae: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  26420. 800b7b2: d02b beq.n 800b80c <HAL_RCCEx_PeriphCLKConfig+0xd10>
  26421. 800b7b4: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  26422. 800b7b8: d820 bhi.n 800b7fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26423. 800b7ba: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  26424. 800b7be: d012 beq.n 800b7e6 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  26425. 800b7c0: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  26426. 800b7c4: d81a bhi.n 800b7fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26427. 800b7c6: 2b00 cmp r3, #0
  26428. 800b7c8: d022 beq.n 800b810 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  26429. 800b7ca: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  26430. 800b7ce: d115 bne.n 800b7fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26431. /* LPTIM2 clock source configuration done later after clock selection check */
  26432. break;
  26433. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  26434. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26435. 800b7d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26436. 800b7d4: 3308 adds r3, #8
  26437. 800b7d6: 2100 movs r1, #0
  26438. 800b7d8: 4618 mov r0, r3
  26439. 800b7da: f000 fe3b bl 800c454 <RCCEx_PLL2_Config>
  26440. 800b7de: 4603 mov r3, r0
  26441. 800b7e0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26442. /* LPTIM2 clock source configuration done later after clock selection check */
  26443. break;
  26444. 800b7e4: e015 b.n 800b812 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26445. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  26446. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26447. 800b7e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26448. 800b7ea: 3328 adds r3, #40 @ 0x28
  26449. 800b7ec: 2102 movs r1, #2
  26450. 800b7ee: 4618 mov r0, r3
  26451. 800b7f0: f000 fee2 bl 800c5b8 <RCCEx_PLL3_Config>
  26452. 800b7f4: 4603 mov r3, r0
  26453. 800b7f6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26454. /* LPTIM2 clock source configuration done later after clock selection check */
  26455. break;
  26456. 800b7fa: e00a b.n 800b812 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26457. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  26458. /* LPTIM2 clock source configuration done later after clock selection check */
  26459. break;
  26460. default:
  26461. ret = HAL_ERROR;
  26462. 800b7fc: 2301 movs r3, #1
  26463. 800b7fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26464. break;
  26465. 800b802: e006 b.n 800b812 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26466. break;
  26467. 800b804: bf00 nop
  26468. 800b806: e004 b.n 800b812 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26469. break;
  26470. 800b808: bf00 nop
  26471. 800b80a: e002 b.n 800b812 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26472. break;
  26473. 800b80c: bf00 nop
  26474. 800b80e: e000 b.n 800b812 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26475. break;
  26476. 800b810: bf00 nop
  26477. }
  26478. if (ret == HAL_OK)
  26479. 800b812: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26480. 800b816: 2b00 cmp r3, #0
  26481. 800b818: d10e bne.n 800b838 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  26482. {
  26483. /* Set the source of LPTIM2 clock*/
  26484. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  26485. 800b81a: 4b06 ldr r3, [pc, #24] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26486. 800b81c: 6d9b ldr r3, [r3, #88] @ 0x58
  26487. 800b81e: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  26488. 800b822: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26489. 800b826: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  26490. 800b82a: 4a02 ldr r2, [pc, #8] @ (800b834 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26491. 800b82c: 430b orrs r3, r1
  26492. 800b82e: 6593 str r3, [r2, #88] @ 0x58
  26493. 800b830: e006 b.n 800b840 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  26494. 800b832: bf00 nop
  26495. 800b834: 58024400 .word 0x58024400
  26496. }
  26497. else
  26498. {
  26499. /* set overall return value */
  26500. status = ret;
  26501. 800b838: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26502. 800b83c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26503. }
  26504. }
  26505. /*---------------------------- LPTIM345 configuration -------------------------------*/
  26506. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  26507. 800b840: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26508. 800b844: e9d3 2300 ldrd r2, r3, [r3]
  26509. 800b848: f002 0380 and.w r3, r2, #128 @ 0x80
  26510. 800b84c: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  26511. 800b850: 2300 movs r3, #0
  26512. 800b852: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  26513. 800b856: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  26514. 800b85a: 460b mov r3, r1
  26515. 800b85c: 4313 orrs r3, r2
  26516. 800b85e: d055 beq.n 800b90c <HAL_RCCEx_PeriphCLKConfig+0xe10>
  26517. {
  26518. switch (PeriphClkInit->Lptim345ClockSelection)
  26519. 800b860: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26520. 800b864: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  26521. 800b868: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  26522. 800b86c: d033 beq.n 800b8d6 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  26523. 800b86e: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  26524. 800b872: d82c bhi.n 800b8ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  26525. 800b874: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  26526. 800b878: d02f beq.n 800b8da <HAL_RCCEx_PeriphCLKConfig+0xdde>
  26527. 800b87a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  26528. 800b87e: d826 bhi.n 800b8ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  26529. 800b880: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  26530. 800b884: d02b beq.n 800b8de <HAL_RCCEx_PeriphCLKConfig+0xde2>
  26531. 800b886: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  26532. 800b88a: d820 bhi.n 800b8ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  26533. 800b88c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  26534. 800b890: d012 beq.n 800b8b8 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  26535. 800b892: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  26536. 800b896: d81a bhi.n 800b8ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  26537. 800b898: 2b00 cmp r3, #0
  26538. 800b89a: d022 beq.n 800b8e2 <HAL_RCCEx_PeriphCLKConfig+0xde6>
  26539. 800b89c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26540. 800b8a0: d115 bne.n 800b8ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  26541. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  26542. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  26543. break;
  26544. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  26545. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26546. 800b8a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26547. 800b8a6: 3308 adds r3, #8
  26548. 800b8a8: 2100 movs r1, #0
  26549. 800b8aa: 4618 mov r0, r3
  26550. 800b8ac: f000 fdd2 bl 800c454 <RCCEx_PLL2_Config>
  26551. 800b8b0: 4603 mov r3, r0
  26552. 800b8b2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26553. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  26554. break;
  26555. 800b8b6: e015 b.n 800b8e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  26556. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  26557. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26558. 800b8b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26559. 800b8bc: 3328 adds r3, #40 @ 0x28
  26560. 800b8be: 2102 movs r1, #2
  26561. 800b8c0: 4618 mov r0, r3
  26562. 800b8c2: f000 fe79 bl 800c5b8 <RCCEx_PLL3_Config>
  26563. 800b8c6: 4603 mov r3, r0
  26564. 800b8c8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26565. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  26566. break;
  26567. 800b8cc: e00a b.n 800b8e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  26568. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  26569. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  26570. break;
  26571. default:
  26572. ret = HAL_ERROR;
  26573. 800b8ce: 2301 movs r3, #1
  26574. 800b8d0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26575. break;
  26576. 800b8d4: e006 b.n 800b8e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  26577. break;
  26578. 800b8d6: bf00 nop
  26579. 800b8d8: e004 b.n 800b8e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  26580. break;
  26581. 800b8da: bf00 nop
  26582. 800b8dc: e002 b.n 800b8e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  26583. break;
  26584. 800b8de: bf00 nop
  26585. 800b8e0: e000 b.n 800b8e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  26586. break;
  26587. 800b8e2: bf00 nop
  26588. }
  26589. if (ret == HAL_OK)
  26590. 800b8e4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26591. 800b8e8: 2b00 cmp r3, #0
  26592. 800b8ea: d10b bne.n 800b904 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  26593. {
  26594. /* Set the source of LPTIM3/4/5 clock */
  26595. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  26596. 800b8ec: 4bbb ldr r3, [pc, #748] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26597. 800b8ee: 6d9b ldr r3, [r3, #88] @ 0x58
  26598. 800b8f0: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  26599. 800b8f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26600. 800b8f8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  26601. 800b8fc: 4ab7 ldr r2, [pc, #732] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26602. 800b8fe: 430b orrs r3, r1
  26603. 800b900: 6593 str r3, [r2, #88] @ 0x58
  26604. 800b902: e003 b.n 800b90c <HAL_RCCEx_PeriphCLKConfig+0xe10>
  26605. }
  26606. else
  26607. {
  26608. /* set overall return value */
  26609. status = ret;
  26610. 800b904: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26611. 800b908: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26612. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  26613. }
  26614. #else
  26615. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  26616. 800b90c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26617. 800b910: e9d3 2300 ldrd r2, r3, [r3]
  26618. 800b914: f002 0308 and.w r3, r2, #8
  26619. 800b918: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  26620. 800b91c: 2300 movs r3, #0
  26621. 800b91e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  26622. 800b922: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  26623. 800b926: 460b mov r3, r1
  26624. 800b928: 4313 orrs r3, r2
  26625. 800b92a: d01e beq.n 800b96a <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  26626. {
  26627. /* Check the parameters */
  26628. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  26629. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  26630. 800b92c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26631. 800b930: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26632. 800b934: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  26633. 800b938: d10c bne.n 800b954 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  26634. {
  26635. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  26636. 800b93a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26637. 800b93e: 3328 adds r3, #40 @ 0x28
  26638. 800b940: 2102 movs r1, #2
  26639. 800b942: 4618 mov r0, r3
  26640. 800b944: f000 fe38 bl 800c5b8 <RCCEx_PLL3_Config>
  26641. 800b948: 4603 mov r3, r0
  26642. 800b94a: 2b00 cmp r3, #0
  26643. 800b94c: d002 beq.n 800b954 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  26644. {
  26645. status = HAL_ERROR;
  26646. 800b94e: 2301 movs r3, #1
  26647. 800b950: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26648. }
  26649. }
  26650. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  26651. 800b954: 4ba1 ldr r3, [pc, #644] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26652. 800b956: 6d5b ldr r3, [r3, #84] @ 0x54
  26653. 800b958: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  26654. 800b95c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26655. 800b960: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26656. 800b964: 4a9d ldr r2, [pc, #628] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26657. 800b966: 430b orrs r3, r1
  26658. 800b968: 6553 str r3, [r2, #84] @ 0x54
  26659. }
  26660. #endif /* I2C5 */
  26661. /*------------------------------ I2C4 Configuration ------------------------*/
  26662. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  26663. 800b96a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26664. 800b96e: e9d3 2300 ldrd r2, r3, [r3]
  26665. 800b972: f002 0310 and.w r3, r2, #16
  26666. 800b976: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  26667. 800b97a: 2300 movs r3, #0
  26668. 800b97c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  26669. 800b980: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  26670. 800b984: 460b mov r3, r1
  26671. 800b986: 4313 orrs r3, r2
  26672. 800b988: d01e beq.n 800b9c8 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  26673. {
  26674. /* Check the parameters */
  26675. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  26676. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  26677. 800b98a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26678. 800b98e: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  26679. 800b992: f5b3 7f80 cmp.w r3, #256 @ 0x100
  26680. 800b996: d10c bne.n 800b9b2 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  26681. {
  26682. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  26683. 800b998: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26684. 800b99c: 3328 adds r3, #40 @ 0x28
  26685. 800b99e: 2102 movs r1, #2
  26686. 800b9a0: 4618 mov r0, r3
  26687. 800b9a2: f000 fe09 bl 800c5b8 <RCCEx_PLL3_Config>
  26688. 800b9a6: 4603 mov r3, r0
  26689. 800b9a8: 2b00 cmp r3, #0
  26690. 800b9aa: d002 beq.n 800b9b2 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  26691. {
  26692. status = HAL_ERROR;
  26693. 800b9ac: 2301 movs r3, #1
  26694. 800b9ae: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26695. }
  26696. }
  26697. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  26698. 800b9b2: 4b8a ldr r3, [pc, #552] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26699. 800b9b4: 6d9b ldr r3, [r3, #88] @ 0x58
  26700. 800b9b6: f423 7140 bic.w r1, r3, #768 @ 0x300
  26701. 800b9ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26702. 800b9be: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  26703. 800b9c2: 4a86 ldr r2, [pc, #536] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26704. 800b9c4: 430b orrs r3, r1
  26705. 800b9c6: 6593 str r3, [r2, #88] @ 0x58
  26706. }
  26707. /*---------------------------- ADC configuration -------------------------------*/
  26708. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  26709. 800b9c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26710. 800b9cc: e9d3 2300 ldrd r2, r3, [r3]
  26711. 800b9d0: f402 2300 and.w r3, r2, #524288 @ 0x80000
  26712. 800b9d4: 67bb str r3, [r7, #120] @ 0x78
  26713. 800b9d6: 2300 movs r3, #0
  26714. 800b9d8: 67fb str r3, [r7, #124] @ 0x7c
  26715. 800b9da: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  26716. 800b9de: 460b mov r3, r1
  26717. 800b9e0: 4313 orrs r3, r2
  26718. 800b9e2: d03e beq.n 800ba62 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  26719. {
  26720. switch (PeriphClkInit->AdcClockSelection)
  26721. 800b9e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26722. 800b9e8: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  26723. 800b9ec: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  26724. 800b9f0: d022 beq.n 800ba38 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  26725. 800b9f2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  26726. 800b9f6: d81b bhi.n 800ba30 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  26727. 800b9f8: 2b00 cmp r3, #0
  26728. 800b9fa: d003 beq.n 800ba04 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  26729. 800b9fc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26730. 800ba00: d00b beq.n 800ba1a <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  26731. 800ba02: e015 b.n 800ba30 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  26732. {
  26733. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  26734. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26735. 800ba04: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26736. 800ba08: 3308 adds r3, #8
  26737. 800ba0a: 2100 movs r1, #0
  26738. 800ba0c: 4618 mov r0, r3
  26739. 800ba0e: f000 fd21 bl 800c454 <RCCEx_PLL2_Config>
  26740. 800ba12: 4603 mov r3, r0
  26741. 800ba14: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26742. /* ADC clock source configuration done later after clock selection check */
  26743. break;
  26744. 800ba18: e00f b.n 800ba3a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  26745. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  26746. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26747. 800ba1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26748. 800ba1e: 3328 adds r3, #40 @ 0x28
  26749. 800ba20: 2102 movs r1, #2
  26750. 800ba22: 4618 mov r0, r3
  26751. 800ba24: f000 fdc8 bl 800c5b8 <RCCEx_PLL3_Config>
  26752. 800ba28: 4603 mov r3, r0
  26753. 800ba2a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26754. /* ADC clock source configuration done later after clock selection check */
  26755. break;
  26756. 800ba2e: e004 b.n 800ba3a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  26757. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  26758. /* ADC clock source configuration done later after clock selection check */
  26759. break;
  26760. default:
  26761. ret = HAL_ERROR;
  26762. 800ba30: 2301 movs r3, #1
  26763. 800ba32: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26764. break;
  26765. 800ba36: e000 b.n 800ba3a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  26766. break;
  26767. 800ba38: bf00 nop
  26768. }
  26769. if (ret == HAL_OK)
  26770. 800ba3a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26771. 800ba3e: 2b00 cmp r3, #0
  26772. 800ba40: d10b bne.n 800ba5a <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  26773. {
  26774. /* Set the source of ADC clock*/
  26775. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  26776. 800ba42: 4b66 ldr r3, [pc, #408] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26777. 800ba44: 6d9b ldr r3, [r3, #88] @ 0x58
  26778. 800ba46: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  26779. 800ba4a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26780. 800ba4e: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  26781. 800ba52: 4a62 ldr r2, [pc, #392] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26782. 800ba54: 430b orrs r3, r1
  26783. 800ba56: 6593 str r3, [r2, #88] @ 0x58
  26784. 800ba58: e003 b.n 800ba62 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  26785. }
  26786. else
  26787. {
  26788. /* set overall return value */
  26789. status = ret;
  26790. 800ba5a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26791. 800ba5e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26792. }
  26793. }
  26794. /*------------------------------ USB Configuration -------------------------*/
  26795. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  26796. 800ba62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26797. 800ba66: e9d3 2300 ldrd r2, r3, [r3]
  26798. 800ba6a: f402 2380 and.w r3, r2, #262144 @ 0x40000
  26799. 800ba6e: 673b str r3, [r7, #112] @ 0x70
  26800. 800ba70: 2300 movs r3, #0
  26801. 800ba72: 677b str r3, [r7, #116] @ 0x74
  26802. 800ba74: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  26803. 800ba78: 460b mov r3, r1
  26804. 800ba7a: 4313 orrs r3, r2
  26805. 800ba7c: d03b beq.n 800baf6 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  26806. {
  26807. switch (PeriphClkInit->UsbClockSelection)
  26808. 800ba7e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26809. 800ba82: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  26810. 800ba86: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  26811. 800ba8a: d01f beq.n 800bacc <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  26812. 800ba8c: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  26813. 800ba90: d818 bhi.n 800bac4 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  26814. 800ba92: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  26815. 800ba96: d003 beq.n 800baa0 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  26816. 800ba98: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  26817. 800ba9c: d007 beq.n 800baae <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  26818. 800ba9e: e011 b.n 800bac4 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  26819. {
  26820. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  26821. /* Enable USB Clock output generated form System USB . */
  26822. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26823. 800baa0: 4b4e ldr r3, [pc, #312] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26824. 800baa2: 6adb ldr r3, [r3, #44] @ 0x2c
  26825. 800baa4: 4a4d ldr r2, [pc, #308] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26826. 800baa6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26827. 800baaa: 62d3 str r3, [r2, #44] @ 0x2c
  26828. /* USB clock source configuration done later after clock selection check */
  26829. break;
  26830. 800baac: e00f b.n 800bace <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  26831. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  26832. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26833. 800baae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26834. 800bab2: 3328 adds r3, #40 @ 0x28
  26835. 800bab4: 2101 movs r1, #1
  26836. 800bab6: 4618 mov r0, r3
  26837. 800bab8: f000 fd7e bl 800c5b8 <RCCEx_PLL3_Config>
  26838. 800babc: 4603 mov r3, r0
  26839. 800babe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26840. /* USB clock source configuration done later after clock selection check */
  26841. break;
  26842. 800bac2: e004 b.n 800bace <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  26843. /* HSI48 oscillator is used as source of USB clock */
  26844. /* USB clock source configuration done later after clock selection check */
  26845. break;
  26846. default:
  26847. ret = HAL_ERROR;
  26848. 800bac4: 2301 movs r3, #1
  26849. 800bac6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26850. break;
  26851. 800baca: e000 b.n 800bace <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  26852. break;
  26853. 800bacc: bf00 nop
  26854. }
  26855. if (ret == HAL_OK)
  26856. 800bace: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26857. 800bad2: 2b00 cmp r3, #0
  26858. 800bad4: d10b bne.n 800baee <HAL_RCCEx_PeriphCLKConfig+0xff2>
  26859. {
  26860. /* Set the source of USB clock*/
  26861. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  26862. 800bad6: 4b41 ldr r3, [pc, #260] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26863. 800bad8: 6d5b ldr r3, [r3, #84] @ 0x54
  26864. 800bada: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  26865. 800bade: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26866. 800bae2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  26867. 800bae6: 4a3d ldr r2, [pc, #244] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26868. 800bae8: 430b orrs r3, r1
  26869. 800baea: 6553 str r3, [r2, #84] @ 0x54
  26870. 800baec: e003 b.n 800baf6 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  26871. }
  26872. else
  26873. {
  26874. /* set overall return value */
  26875. status = ret;
  26876. 800baee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26877. 800baf2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26878. }
  26879. }
  26880. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  26881. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  26882. 800baf6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26883. 800bafa: e9d3 2300 ldrd r2, r3, [r3]
  26884. 800bafe: f402 3380 and.w r3, r2, #65536 @ 0x10000
  26885. 800bb02: 66bb str r3, [r7, #104] @ 0x68
  26886. 800bb04: 2300 movs r3, #0
  26887. 800bb06: 66fb str r3, [r7, #108] @ 0x6c
  26888. 800bb08: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  26889. 800bb0c: 460b mov r3, r1
  26890. 800bb0e: 4313 orrs r3, r2
  26891. 800bb10: d031 beq.n 800bb76 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  26892. {
  26893. /* Check the parameters */
  26894. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  26895. switch (PeriphClkInit->SdmmcClockSelection)
  26896. 800bb12: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26897. 800bb16: 6d1b ldr r3, [r3, #80] @ 0x50
  26898. 800bb18: 2b00 cmp r3, #0
  26899. 800bb1a: d003 beq.n 800bb24 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  26900. 800bb1c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26901. 800bb20: d007 beq.n 800bb32 <HAL_RCCEx_PeriphCLKConfig+0x1036>
  26902. 800bb22: e011 b.n 800bb48 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  26903. {
  26904. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  26905. /* Enable SDMMC Clock output generated form System PLL . */
  26906. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26907. 800bb24: 4b2d ldr r3, [pc, #180] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26908. 800bb26: 6adb ldr r3, [r3, #44] @ 0x2c
  26909. 800bb28: 4a2c ldr r2, [pc, #176] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26910. 800bb2a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26911. 800bb2e: 62d3 str r3, [r2, #44] @ 0x2c
  26912. /* SDMMC clock source configuration done later after clock selection check */
  26913. break;
  26914. 800bb30: e00e b.n 800bb50 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  26915. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  26916. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  26917. 800bb32: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26918. 800bb36: 3308 adds r3, #8
  26919. 800bb38: 2102 movs r1, #2
  26920. 800bb3a: 4618 mov r0, r3
  26921. 800bb3c: f000 fc8a bl 800c454 <RCCEx_PLL2_Config>
  26922. 800bb40: 4603 mov r3, r0
  26923. 800bb42: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26924. /* SDMMC clock source configuration done later after clock selection check */
  26925. break;
  26926. 800bb46: e003 b.n 800bb50 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  26927. default:
  26928. ret = HAL_ERROR;
  26929. 800bb48: 2301 movs r3, #1
  26930. 800bb4a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26931. break;
  26932. 800bb4e: bf00 nop
  26933. }
  26934. if (ret == HAL_OK)
  26935. 800bb50: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26936. 800bb54: 2b00 cmp r3, #0
  26937. 800bb56: d10a bne.n 800bb6e <HAL_RCCEx_PeriphCLKConfig+0x1072>
  26938. {
  26939. /* Set the source of SDMMC clock*/
  26940. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  26941. 800bb58: 4b20 ldr r3, [pc, #128] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26942. 800bb5a: 6cdb ldr r3, [r3, #76] @ 0x4c
  26943. 800bb5c: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  26944. 800bb60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26945. 800bb64: 6d1b ldr r3, [r3, #80] @ 0x50
  26946. 800bb66: 4a1d ldr r2, [pc, #116] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26947. 800bb68: 430b orrs r3, r1
  26948. 800bb6a: 64d3 str r3, [r2, #76] @ 0x4c
  26949. 800bb6c: e003 b.n 800bb76 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  26950. }
  26951. else
  26952. {
  26953. /* set overall return value */
  26954. status = ret;
  26955. 800bb6e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26956. 800bb72: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26957. }
  26958. }
  26959. #endif /* LTDC */
  26960. /*------------------------------ RNG Configuration -------------------------*/
  26961. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  26962. 800bb76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26963. 800bb7a: e9d3 2300 ldrd r2, r3, [r3]
  26964. 800bb7e: f402 3300 and.w r3, r2, #131072 @ 0x20000
  26965. 800bb82: 663b str r3, [r7, #96] @ 0x60
  26966. 800bb84: 2300 movs r3, #0
  26967. 800bb86: 667b str r3, [r7, #100] @ 0x64
  26968. 800bb88: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  26969. 800bb8c: 460b mov r3, r1
  26970. 800bb8e: 4313 orrs r3, r2
  26971. 800bb90: d03b beq.n 800bc0a <HAL_RCCEx_PeriphCLKConfig+0x110e>
  26972. {
  26973. switch (PeriphClkInit->RngClockSelection)
  26974. 800bb92: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26975. 800bb96: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26976. 800bb9a: f5b3 7f40 cmp.w r3, #768 @ 0x300
  26977. 800bb9e: d018 beq.n 800bbd2 <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  26978. 800bba0: f5b3 7f40 cmp.w r3, #768 @ 0x300
  26979. 800bba4: d811 bhi.n 800bbca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  26980. 800bba6: f5b3 7f00 cmp.w r3, #512 @ 0x200
  26981. 800bbaa: d014 beq.n 800bbd6 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  26982. 800bbac: f5b3 7f00 cmp.w r3, #512 @ 0x200
  26983. 800bbb0: d80b bhi.n 800bbca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  26984. 800bbb2: 2b00 cmp r3, #0
  26985. 800bbb4: d014 beq.n 800bbe0 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  26986. 800bbb6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  26987. 800bbba: d106 bne.n 800bbca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  26988. {
  26989. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  26990. /* Enable RNG Clock output generated form System RNG . */
  26991. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26992. 800bbbc: 4b07 ldr r3, [pc, #28] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26993. 800bbbe: 6adb ldr r3, [r3, #44] @ 0x2c
  26994. 800bbc0: 4a06 ldr r2, [pc, #24] @ (800bbdc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  26995. 800bbc2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26996. 800bbc6: 62d3 str r3, [r2, #44] @ 0x2c
  26997. /* RNG clock source configuration done later after clock selection check */
  26998. break;
  26999. 800bbc8: e00b b.n 800bbe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27000. /* HSI48 oscillator is used as source of RNG clock */
  27001. /* RNG clock source configuration done later after clock selection check */
  27002. break;
  27003. default:
  27004. ret = HAL_ERROR;
  27005. 800bbca: 2301 movs r3, #1
  27006. 800bbcc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27007. break;
  27008. 800bbd0: e007 b.n 800bbe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27009. break;
  27010. 800bbd2: bf00 nop
  27011. 800bbd4: e005 b.n 800bbe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27012. break;
  27013. 800bbd6: bf00 nop
  27014. 800bbd8: e003 b.n 800bbe2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27015. 800bbda: bf00 nop
  27016. 800bbdc: 58024400 .word 0x58024400
  27017. break;
  27018. 800bbe0: bf00 nop
  27019. }
  27020. if (ret == HAL_OK)
  27021. 800bbe2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27022. 800bbe6: 2b00 cmp r3, #0
  27023. 800bbe8: d10b bne.n 800bc02 <HAL_RCCEx_PeriphCLKConfig+0x1106>
  27024. {
  27025. /* Set the source of RNG clock*/
  27026. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  27027. 800bbea: 4bba ldr r3, [pc, #744] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27028. 800bbec: 6d5b ldr r3, [r3, #84] @ 0x54
  27029. 800bbee: f423 7140 bic.w r1, r3, #768 @ 0x300
  27030. 800bbf2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27031. 800bbf6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  27032. 800bbfa: 4ab6 ldr r2, [pc, #728] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27033. 800bbfc: 430b orrs r3, r1
  27034. 800bbfe: 6553 str r3, [r2, #84] @ 0x54
  27035. 800bc00: e003 b.n 800bc0a <HAL_RCCEx_PeriphCLKConfig+0x110e>
  27036. }
  27037. else
  27038. {
  27039. /* set overall return value */
  27040. status = ret;
  27041. 800bc02: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27042. 800bc06: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27043. }
  27044. }
  27045. /*------------------------------ SWPMI1 Configuration ------------------------*/
  27046. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  27047. 800bc0a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27048. 800bc0e: e9d3 2300 ldrd r2, r3, [r3]
  27049. 800bc12: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  27050. 800bc16: 65bb str r3, [r7, #88] @ 0x58
  27051. 800bc18: 2300 movs r3, #0
  27052. 800bc1a: 65fb str r3, [r7, #92] @ 0x5c
  27053. 800bc1c: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  27054. 800bc20: 460b mov r3, r1
  27055. 800bc22: 4313 orrs r3, r2
  27056. 800bc24: d009 beq.n 800bc3a <HAL_RCCEx_PeriphCLKConfig+0x113e>
  27057. {
  27058. /* Check the parameters */
  27059. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  27060. /* Configure the SWPMI1 interface clock source */
  27061. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  27062. 800bc26: 4bab ldr r3, [pc, #684] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27063. 800bc28: 6d1b ldr r3, [r3, #80] @ 0x50
  27064. 800bc2a: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  27065. 800bc2e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27066. 800bc32: 6f5b ldr r3, [r3, #116] @ 0x74
  27067. 800bc34: 4aa7 ldr r2, [pc, #668] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27068. 800bc36: 430b orrs r3, r1
  27069. 800bc38: 6513 str r3, [r2, #80] @ 0x50
  27070. }
  27071. #if defined(HRTIM1)
  27072. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  27073. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  27074. 800bc3a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27075. 800bc3e: e9d3 2300 ldrd r2, r3, [r3]
  27076. 800bc42: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  27077. 800bc46: 653b str r3, [r7, #80] @ 0x50
  27078. 800bc48: 2300 movs r3, #0
  27079. 800bc4a: 657b str r3, [r7, #84] @ 0x54
  27080. 800bc4c: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  27081. 800bc50: 460b mov r3, r1
  27082. 800bc52: 4313 orrs r3, r2
  27083. 800bc54: d00a beq.n 800bc6c <HAL_RCCEx_PeriphCLKConfig+0x1170>
  27084. {
  27085. /* Check the parameters */
  27086. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  27087. /* Configure the HRTIM1 clock source */
  27088. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  27089. 800bc56: 4b9f ldr r3, [pc, #636] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27090. 800bc58: 691b ldr r3, [r3, #16]
  27091. 800bc5a: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  27092. 800bc5e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27093. 800bc62: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  27094. 800bc66: 4a9b ldr r2, [pc, #620] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27095. 800bc68: 430b orrs r3, r1
  27096. 800bc6a: 6113 str r3, [r2, #16]
  27097. }
  27098. #endif /*HRTIM1*/
  27099. /*------------------------------ DFSDM1 Configuration ------------------------*/
  27100. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  27101. 800bc6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27102. 800bc70: e9d3 2300 ldrd r2, r3, [r3]
  27103. 800bc74: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  27104. 800bc78: 64bb str r3, [r7, #72] @ 0x48
  27105. 800bc7a: 2300 movs r3, #0
  27106. 800bc7c: 64fb str r3, [r7, #76] @ 0x4c
  27107. 800bc7e: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  27108. 800bc82: 460b mov r3, r1
  27109. 800bc84: 4313 orrs r3, r2
  27110. 800bc86: d009 beq.n 800bc9c <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  27111. {
  27112. /* Check the parameters */
  27113. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  27114. /* Configure the DFSDM1 interface clock source */
  27115. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  27116. 800bc88: 4b92 ldr r3, [pc, #584] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27117. 800bc8a: 6d1b ldr r3, [r3, #80] @ 0x50
  27118. 800bc8c: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  27119. 800bc90: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27120. 800bc94: 6edb ldr r3, [r3, #108] @ 0x6c
  27121. 800bc96: 4a8f ldr r2, [pc, #572] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27122. 800bc98: 430b orrs r3, r1
  27123. 800bc9a: 6513 str r3, [r2, #80] @ 0x50
  27124. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  27125. }
  27126. #endif /* DFSDM2 */
  27127. /*------------------------------------ TIM configuration --------------------------------------*/
  27128. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  27129. 800bc9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27130. 800bca0: e9d3 2300 ldrd r2, r3, [r3]
  27131. 800bca4: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  27132. 800bca8: 643b str r3, [r7, #64] @ 0x40
  27133. 800bcaa: 2300 movs r3, #0
  27134. 800bcac: 647b str r3, [r7, #68] @ 0x44
  27135. 800bcae: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  27136. 800bcb2: 460b mov r3, r1
  27137. 800bcb4: 4313 orrs r3, r2
  27138. 800bcb6: d00e beq.n 800bcd6 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  27139. {
  27140. /* Check the parameters */
  27141. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  27142. /* Configure Timer Prescaler */
  27143. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  27144. 800bcb8: 4b86 ldr r3, [pc, #536] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27145. 800bcba: 691b ldr r3, [r3, #16]
  27146. 800bcbc: 4a85 ldr r2, [pc, #532] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27147. 800bcbe: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  27148. 800bcc2: 6113 str r3, [r2, #16]
  27149. 800bcc4: 4b83 ldr r3, [pc, #524] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27150. 800bcc6: 6919 ldr r1, [r3, #16]
  27151. 800bcc8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27152. 800bccc: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  27153. 800bcd0: 4a80 ldr r2, [pc, #512] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27154. 800bcd2: 430b orrs r3, r1
  27155. 800bcd4: 6113 str r3, [r2, #16]
  27156. }
  27157. /*------------------------------------ CKPER configuration --------------------------------------*/
  27158. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  27159. 800bcd6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27160. 800bcda: e9d3 2300 ldrd r2, r3, [r3]
  27161. 800bcde: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  27162. 800bce2: 63bb str r3, [r7, #56] @ 0x38
  27163. 800bce4: 2300 movs r3, #0
  27164. 800bce6: 63fb str r3, [r7, #60] @ 0x3c
  27165. 800bce8: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  27166. 800bcec: 460b mov r3, r1
  27167. 800bcee: 4313 orrs r3, r2
  27168. 800bcf0: d009 beq.n 800bd06 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  27169. {
  27170. /* Check the parameters */
  27171. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  27172. /* Configure the CKPER clock source */
  27173. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  27174. 800bcf2: 4b78 ldr r3, [pc, #480] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27175. 800bcf4: 6cdb ldr r3, [r3, #76] @ 0x4c
  27176. 800bcf6: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  27177. 800bcfa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27178. 800bcfe: 6d5b ldr r3, [r3, #84] @ 0x54
  27179. 800bd00: 4a74 ldr r2, [pc, #464] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27180. 800bd02: 430b orrs r3, r1
  27181. 800bd04: 64d3 str r3, [r2, #76] @ 0x4c
  27182. }
  27183. /*------------------------------ CEC Configuration ------------------------*/
  27184. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  27185. 800bd06: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27186. 800bd0a: e9d3 2300 ldrd r2, r3, [r3]
  27187. 800bd0e: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  27188. 800bd12: 633b str r3, [r7, #48] @ 0x30
  27189. 800bd14: 2300 movs r3, #0
  27190. 800bd16: 637b str r3, [r7, #52] @ 0x34
  27191. 800bd18: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  27192. 800bd1c: 460b mov r3, r1
  27193. 800bd1e: 4313 orrs r3, r2
  27194. 800bd20: d00a beq.n 800bd38 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  27195. {
  27196. /* Check the parameters */
  27197. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  27198. /* Configure the CEC interface clock source */
  27199. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  27200. 800bd22: 4b6c ldr r3, [pc, #432] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27201. 800bd24: 6d5b ldr r3, [r3, #84] @ 0x54
  27202. 800bd26: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  27203. 800bd2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27204. 800bd2e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  27205. 800bd32: 4a68 ldr r2, [pc, #416] @ (800bed4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27206. 800bd34: 430b orrs r3, r1
  27207. 800bd36: 6553 str r3, [r2, #84] @ 0x54
  27208. }
  27209. /*---------------------------- PLL2 configuration -------------------------------*/
  27210. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  27211. 800bd38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27212. 800bd3c: e9d3 2300 ldrd r2, r3, [r3]
  27213. 800bd40: 2100 movs r1, #0
  27214. 800bd42: 62b9 str r1, [r7, #40] @ 0x28
  27215. 800bd44: f003 0301 and.w r3, r3, #1
  27216. 800bd48: 62fb str r3, [r7, #44] @ 0x2c
  27217. 800bd4a: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  27218. 800bd4e: 460b mov r3, r1
  27219. 800bd50: 4313 orrs r3, r2
  27220. 800bd52: d011 beq.n 800bd78 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  27221. {
  27222. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27223. 800bd54: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27224. 800bd58: 3308 adds r3, #8
  27225. 800bd5a: 2100 movs r1, #0
  27226. 800bd5c: 4618 mov r0, r3
  27227. 800bd5e: f000 fb79 bl 800c454 <RCCEx_PLL2_Config>
  27228. 800bd62: 4603 mov r3, r0
  27229. 800bd64: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27230. if (ret == HAL_OK)
  27231. 800bd68: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27232. 800bd6c: 2b00 cmp r3, #0
  27233. 800bd6e: d003 beq.n 800bd78 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  27234. /*Nothing to do*/
  27235. }
  27236. else
  27237. {
  27238. /* set overall return value */
  27239. status = ret;
  27240. 800bd70: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27241. 800bd74: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27242. }
  27243. }
  27244. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  27245. 800bd78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27246. 800bd7c: e9d3 2300 ldrd r2, r3, [r3]
  27247. 800bd80: 2100 movs r1, #0
  27248. 800bd82: 6239 str r1, [r7, #32]
  27249. 800bd84: f003 0302 and.w r3, r3, #2
  27250. 800bd88: 627b str r3, [r7, #36] @ 0x24
  27251. 800bd8a: e9d7 1208 ldrd r1, r2, [r7, #32]
  27252. 800bd8e: 460b mov r3, r1
  27253. 800bd90: 4313 orrs r3, r2
  27254. 800bd92: d011 beq.n 800bdb8 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  27255. {
  27256. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  27257. 800bd94: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27258. 800bd98: 3308 adds r3, #8
  27259. 800bd9a: 2101 movs r1, #1
  27260. 800bd9c: 4618 mov r0, r3
  27261. 800bd9e: f000 fb59 bl 800c454 <RCCEx_PLL2_Config>
  27262. 800bda2: 4603 mov r3, r0
  27263. 800bda4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27264. if (ret == HAL_OK)
  27265. 800bda8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27266. 800bdac: 2b00 cmp r3, #0
  27267. 800bdae: d003 beq.n 800bdb8 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  27268. /*Nothing to do*/
  27269. }
  27270. else
  27271. {
  27272. /* set overall return value */
  27273. status = ret;
  27274. 800bdb0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27275. 800bdb4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27276. }
  27277. }
  27278. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  27279. 800bdb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27280. 800bdbc: e9d3 2300 ldrd r2, r3, [r3]
  27281. 800bdc0: 2100 movs r1, #0
  27282. 800bdc2: 61b9 str r1, [r7, #24]
  27283. 800bdc4: f003 0304 and.w r3, r3, #4
  27284. 800bdc8: 61fb str r3, [r7, #28]
  27285. 800bdca: e9d7 1206 ldrd r1, r2, [r7, #24]
  27286. 800bdce: 460b mov r3, r1
  27287. 800bdd0: 4313 orrs r3, r2
  27288. 800bdd2: d011 beq.n 800bdf8 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  27289. {
  27290. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  27291. 800bdd4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27292. 800bdd8: 3308 adds r3, #8
  27293. 800bdda: 2102 movs r1, #2
  27294. 800bddc: 4618 mov r0, r3
  27295. 800bdde: f000 fb39 bl 800c454 <RCCEx_PLL2_Config>
  27296. 800bde2: 4603 mov r3, r0
  27297. 800bde4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27298. if (ret == HAL_OK)
  27299. 800bde8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27300. 800bdec: 2b00 cmp r3, #0
  27301. 800bdee: d003 beq.n 800bdf8 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  27302. /*Nothing to do*/
  27303. }
  27304. else
  27305. {
  27306. /* set overall return value */
  27307. status = ret;
  27308. 800bdf0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27309. 800bdf4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27310. }
  27311. }
  27312. /*---------------------------- PLL3 configuration -------------------------------*/
  27313. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  27314. 800bdf8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27315. 800bdfc: e9d3 2300 ldrd r2, r3, [r3]
  27316. 800be00: 2100 movs r1, #0
  27317. 800be02: 6139 str r1, [r7, #16]
  27318. 800be04: f003 0308 and.w r3, r3, #8
  27319. 800be08: 617b str r3, [r7, #20]
  27320. 800be0a: e9d7 1204 ldrd r1, r2, [r7, #16]
  27321. 800be0e: 460b mov r3, r1
  27322. 800be10: 4313 orrs r3, r2
  27323. 800be12: d011 beq.n 800be38 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  27324. {
  27325. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  27326. 800be14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27327. 800be18: 3328 adds r3, #40 @ 0x28
  27328. 800be1a: 2100 movs r1, #0
  27329. 800be1c: 4618 mov r0, r3
  27330. 800be1e: f000 fbcb bl 800c5b8 <RCCEx_PLL3_Config>
  27331. 800be22: 4603 mov r3, r0
  27332. 800be24: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27333. if (ret == HAL_OK)
  27334. 800be28: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27335. 800be2c: 2b00 cmp r3, #0
  27336. 800be2e: d003 beq.n 800be38 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  27337. /*Nothing to do*/
  27338. }
  27339. else
  27340. {
  27341. /* set overall return value */
  27342. status = ret;
  27343. 800be30: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27344. 800be34: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27345. }
  27346. }
  27347. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  27348. 800be38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27349. 800be3c: e9d3 2300 ldrd r2, r3, [r3]
  27350. 800be40: 2100 movs r1, #0
  27351. 800be42: 60b9 str r1, [r7, #8]
  27352. 800be44: f003 0310 and.w r3, r3, #16
  27353. 800be48: 60fb str r3, [r7, #12]
  27354. 800be4a: e9d7 1202 ldrd r1, r2, [r7, #8]
  27355. 800be4e: 460b mov r3, r1
  27356. 800be50: 4313 orrs r3, r2
  27357. 800be52: d011 beq.n 800be78 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  27358. {
  27359. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27360. 800be54: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27361. 800be58: 3328 adds r3, #40 @ 0x28
  27362. 800be5a: 2101 movs r1, #1
  27363. 800be5c: 4618 mov r0, r3
  27364. 800be5e: f000 fbab bl 800c5b8 <RCCEx_PLL3_Config>
  27365. 800be62: 4603 mov r3, r0
  27366. 800be64: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27367. if (ret == HAL_OK)
  27368. 800be68: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27369. 800be6c: 2b00 cmp r3, #0
  27370. 800be6e: d003 beq.n 800be78 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  27371. /*Nothing to do*/
  27372. }
  27373. else
  27374. {
  27375. /* set overall return value */
  27376. status = ret;
  27377. 800be70: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27378. 800be74: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27379. }
  27380. }
  27381. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  27382. 800be78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27383. 800be7c: e9d3 2300 ldrd r2, r3, [r3]
  27384. 800be80: 2100 movs r1, #0
  27385. 800be82: 6039 str r1, [r7, #0]
  27386. 800be84: f003 0320 and.w r3, r3, #32
  27387. 800be88: 607b str r3, [r7, #4]
  27388. 800be8a: e9d7 1200 ldrd r1, r2, [r7]
  27389. 800be8e: 460b mov r3, r1
  27390. 800be90: 4313 orrs r3, r2
  27391. 800be92: d011 beq.n 800beb8 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  27392. {
  27393. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27394. 800be94: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27395. 800be98: 3328 adds r3, #40 @ 0x28
  27396. 800be9a: 2102 movs r1, #2
  27397. 800be9c: 4618 mov r0, r3
  27398. 800be9e: f000 fb8b bl 800c5b8 <RCCEx_PLL3_Config>
  27399. 800bea2: 4603 mov r3, r0
  27400. 800bea4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27401. if (ret == HAL_OK)
  27402. 800bea8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27403. 800beac: 2b00 cmp r3, #0
  27404. 800beae: d003 beq.n 800beb8 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  27405. /*Nothing to do*/
  27406. }
  27407. else
  27408. {
  27409. /* set overall return value */
  27410. status = ret;
  27411. 800beb0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27412. 800beb4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27413. }
  27414. }
  27415. if (status == HAL_OK)
  27416. 800beb8: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  27417. 800bebc: 2b00 cmp r3, #0
  27418. 800bebe: d101 bne.n 800bec4 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  27419. {
  27420. return HAL_OK;
  27421. 800bec0: 2300 movs r3, #0
  27422. 800bec2: e000 b.n 800bec6 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  27423. }
  27424. return HAL_ERROR;
  27425. 800bec4: 2301 movs r3, #1
  27426. }
  27427. 800bec6: 4618 mov r0, r3
  27428. 800bec8: f507 7790 add.w r7, r7, #288 @ 0x120
  27429. 800becc: 46bd mov sp, r7
  27430. 800bece: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  27431. 800bed2: bf00 nop
  27432. 800bed4: 58024400 .word 0x58024400
  27433. 0800bed8 <HAL_RCCEx_GetD3PCLK1Freq>:
  27434. * @note Each time D3PCLK1 changes, this function must be called to update the
  27435. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  27436. * @retval D3PCLK1 frequency
  27437. */
  27438. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  27439. {
  27440. 800bed8: b580 push {r7, lr}
  27441. 800beda: af00 add r7, sp, #0
  27442. #if defined(RCC_D3CFGR_D3PPRE)
  27443. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  27444. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  27445. 800bedc: f7fe fd70 bl 800a9c0 <HAL_RCC_GetHCLKFreq>
  27446. 800bee0: 4602 mov r2, r0
  27447. 800bee2: 4b06 ldr r3, [pc, #24] @ (800befc <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  27448. 800bee4: 6a1b ldr r3, [r3, #32]
  27449. 800bee6: 091b lsrs r3, r3, #4
  27450. 800bee8: f003 0307 and.w r3, r3, #7
  27451. 800beec: 4904 ldr r1, [pc, #16] @ (800bf00 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  27452. 800beee: 5ccb ldrb r3, [r1, r3]
  27453. 800bef0: f003 031f and.w r3, r3, #31
  27454. 800bef4: fa22 f303 lsr.w r3, r2, r3
  27455. #else
  27456. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  27457. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  27458. #endif
  27459. }
  27460. 800bef8: 4618 mov r0, r3
  27461. 800befa: bd80 pop {r7, pc}
  27462. 800befc: 58024400 .word 0x58024400
  27463. 800bf00: 08030a7c .word 0x08030a7c
  27464. 0800bf04 <HAL_RCCEx_GetPLL2ClockFreq>:
  27465. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  27466. * @param PLL2_Clocks structure.
  27467. * @retval None
  27468. */
  27469. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  27470. {
  27471. 800bf04: b480 push {r7}
  27472. 800bf06: b089 sub sp, #36 @ 0x24
  27473. 800bf08: af00 add r7, sp, #0
  27474. 800bf0a: 6078 str r0, [r7, #4]
  27475. float_t fracn2, pll2vco;
  27476. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  27477. PLL2xCLK = PLL2_VCO / PLL2x
  27478. */
  27479. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  27480. 800bf0c: 4ba1 ldr r3, [pc, #644] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27481. 800bf0e: 6a9b ldr r3, [r3, #40] @ 0x28
  27482. 800bf10: f003 0303 and.w r3, r3, #3
  27483. 800bf14: 61bb str r3, [r7, #24]
  27484. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  27485. 800bf16: 4b9f ldr r3, [pc, #636] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27486. 800bf18: 6a9b ldr r3, [r3, #40] @ 0x28
  27487. 800bf1a: 0b1b lsrs r3, r3, #12
  27488. 800bf1c: f003 033f and.w r3, r3, #63 @ 0x3f
  27489. 800bf20: 617b str r3, [r7, #20]
  27490. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  27491. 800bf22: 4b9c ldr r3, [pc, #624] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27492. 800bf24: 6adb ldr r3, [r3, #44] @ 0x2c
  27493. 800bf26: 091b lsrs r3, r3, #4
  27494. 800bf28: f003 0301 and.w r3, r3, #1
  27495. 800bf2c: 613b str r3, [r7, #16]
  27496. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  27497. 800bf2e: 4b99 ldr r3, [pc, #612] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27498. 800bf30: 6bdb ldr r3, [r3, #60] @ 0x3c
  27499. 800bf32: 08db lsrs r3, r3, #3
  27500. 800bf34: f3c3 030c ubfx r3, r3, #0, #13
  27501. 800bf38: 693a ldr r2, [r7, #16]
  27502. 800bf3a: fb02 f303 mul.w r3, r2, r3
  27503. 800bf3e: ee07 3a90 vmov s15, r3
  27504. 800bf42: eef8 7a67 vcvt.f32.u32 s15, s15
  27505. 800bf46: edc7 7a03 vstr s15, [r7, #12]
  27506. if (pll2m != 0U)
  27507. 800bf4a: 697b ldr r3, [r7, #20]
  27508. 800bf4c: 2b00 cmp r3, #0
  27509. 800bf4e: f000 8111 beq.w 800c174 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  27510. {
  27511. switch (pllsource)
  27512. 800bf52: 69bb ldr r3, [r7, #24]
  27513. 800bf54: 2b02 cmp r3, #2
  27514. 800bf56: f000 8083 beq.w 800c060 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  27515. 800bf5a: 69bb ldr r3, [r7, #24]
  27516. 800bf5c: 2b02 cmp r3, #2
  27517. 800bf5e: f200 80a1 bhi.w 800c0a4 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  27518. 800bf62: 69bb ldr r3, [r7, #24]
  27519. 800bf64: 2b00 cmp r3, #0
  27520. 800bf66: d003 beq.n 800bf70 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  27521. 800bf68: 69bb ldr r3, [r7, #24]
  27522. 800bf6a: 2b01 cmp r3, #1
  27523. 800bf6c: d056 beq.n 800c01c <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  27524. 800bf6e: e099 b.n 800c0a4 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  27525. {
  27526. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  27527. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27528. 800bf70: 4b88 ldr r3, [pc, #544] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27529. 800bf72: 681b ldr r3, [r3, #0]
  27530. 800bf74: f003 0320 and.w r3, r3, #32
  27531. 800bf78: 2b00 cmp r3, #0
  27532. 800bf7a: d02d beq.n 800bfd8 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  27533. {
  27534. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27535. 800bf7c: 4b85 ldr r3, [pc, #532] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27536. 800bf7e: 681b ldr r3, [r3, #0]
  27537. 800bf80: 08db lsrs r3, r3, #3
  27538. 800bf82: f003 0303 and.w r3, r3, #3
  27539. 800bf86: 4a84 ldr r2, [pc, #528] @ (800c198 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  27540. 800bf88: fa22 f303 lsr.w r3, r2, r3
  27541. 800bf8c: 60bb str r3, [r7, #8]
  27542. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  27543. 800bf8e: 68bb ldr r3, [r7, #8]
  27544. 800bf90: ee07 3a90 vmov s15, r3
  27545. 800bf94: eef8 6a67 vcvt.f32.u32 s13, s15
  27546. 800bf98: 697b ldr r3, [r7, #20]
  27547. 800bf9a: ee07 3a90 vmov s15, r3
  27548. 800bf9e: eef8 7a67 vcvt.f32.u32 s15, s15
  27549. 800bfa2: ee86 7aa7 vdiv.f32 s14, s13, s15
  27550. 800bfa6: 4b7b ldr r3, [pc, #492] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27551. 800bfa8: 6b9b ldr r3, [r3, #56] @ 0x38
  27552. 800bfaa: f3c3 0308 ubfx r3, r3, #0, #9
  27553. 800bfae: ee07 3a90 vmov s15, r3
  27554. 800bfb2: eef8 6a67 vcvt.f32.u32 s13, s15
  27555. 800bfb6: ed97 6a03 vldr s12, [r7, #12]
  27556. 800bfba: eddf 5a78 vldr s11, [pc, #480] @ 800c19c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  27557. 800bfbe: eec6 7a25 vdiv.f32 s15, s12, s11
  27558. 800bfc2: ee76 7aa7 vadd.f32 s15, s13, s15
  27559. 800bfc6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27560. 800bfca: ee77 7aa6 vadd.f32 s15, s15, s13
  27561. 800bfce: ee67 7a27 vmul.f32 s15, s14, s15
  27562. 800bfd2: edc7 7a07 vstr s15, [r7, #28]
  27563. }
  27564. else
  27565. {
  27566. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  27567. }
  27568. break;
  27569. 800bfd6: e087 b.n 800c0e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  27570. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  27571. 800bfd8: 697b ldr r3, [r7, #20]
  27572. 800bfda: ee07 3a90 vmov s15, r3
  27573. 800bfde: eef8 7a67 vcvt.f32.u32 s15, s15
  27574. 800bfe2: eddf 6a6f vldr s13, [pc, #444] @ 800c1a0 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  27575. 800bfe6: ee86 7aa7 vdiv.f32 s14, s13, s15
  27576. 800bfea: 4b6a ldr r3, [pc, #424] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27577. 800bfec: 6b9b ldr r3, [r3, #56] @ 0x38
  27578. 800bfee: f3c3 0308 ubfx r3, r3, #0, #9
  27579. 800bff2: ee07 3a90 vmov s15, r3
  27580. 800bff6: eef8 6a67 vcvt.f32.u32 s13, s15
  27581. 800bffa: ed97 6a03 vldr s12, [r7, #12]
  27582. 800bffe: eddf 5a67 vldr s11, [pc, #412] @ 800c19c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  27583. 800c002: eec6 7a25 vdiv.f32 s15, s12, s11
  27584. 800c006: ee76 7aa7 vadd.f32 s15, s13, s15
  27585. 800c00a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27586. 800c00e: ee77 7aa6 vadd.f32 s15, s15, s13
  27587. 800c012: ee67 7a27 vmul.f32 s15, s14, s15
  27588. 800c016: edc7 7a07 vstr s15, [r7, #28]
  27589. break;
  27590. 800c01a: e065 b.n 800c0e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  27591. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  27592. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  27593. 800c01c: 697b ldr r3, [r7, #20]
  27594. 800c01e: ee07 3a90 vmov s15, r3
  27595. 800c022: eef8 7a67 vcvt.f32.u32 s15, s15
  27596. 800c026: eddf 6a5f vldr s13, [pc, #380] @ 800c1a4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  27597. 800c02a: ee86 7aa7 vdiv.f32 s14, s13, s15
  27598. 800c02e: 4b59 ldr r3, [pc, #356] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27599. 800c030: 6b9b ldr r3, [r3, #56] @ 0x38
  27600. 800c032: f3c3 0308 ubfx r3, r3, #0, #9
  27601. 800c036: ee07 3a90 vmov s15, r3
  27602. 800c03a: eef8 6a67 vcvt.f32.u32 s13, s15
  27603. 800c03e: ed97 6a03 vldr s12, [r7, #12]
  27604. 800c042: eddf 5a56 vldr s11, [pc, #344] @ 800c19c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  27605. 800c046: eec6 7a25 vdiv.f32 s15, s12, s11
  27606. 800c04a: ee76 7aa7 vadd.f32 s15, s13, s15
  27607. 800c04e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27608. 800c052: ee77 7aa6 vadd.f32 s15, s15, s13
  27609. 800c056: ee67 7a27 vmul.f32 s15, s14, s15
  27610. 800c05a: edc7 7a07 vstr s15, [r7, #28]
  27611. break;
  27612. 800c05e: e043 b.n 800c0e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  27613. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  27614. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  27615. 800c060: 697b ldr r3, [r7, #20]
  27616. 800c062: ee07 3a90 vmov s15, r3
  27617. 800c066: eef8 7a67 vcvt.f32.u32 s15, s15
  27618. 800c06a: eddf 6a4f vldr s13, [pc, #316] @ 800c1a8 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  27619. 800c06e: ee86 7aa7 vdiv.f32 s14, s13, s15
  27620. 800c072: 4b48 ldr r3, [pc, #288] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27621. 800c074: 6b9b ldr r3, [r3, #56] @ 0x38
  27622. 800c076: f3c3 0308 ubfx r3, r3, #0, #9
  27623. 800c07a: ee07 3a90 vmov s15, r3
  27624. 800c07e: eef8 6a67 vcvt.f32.u32 s13, s15
  27625. 800c082: ed97 6a03 vldr s12, [r7, #12]
  27626. 800c086: eddf 5a45 vldr s11, [pc, #276] @ 800c19c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  27627. 800c08a: eec6 7a25 vdiv.f32 s15, s12, s11
  27628. 800c08e: ee76 7aa7 vadd.f32 s15, s13, s15
  27629. 800c092: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27630. 800c096: ee77 7aa6 vadd.f32 s15, s15, s13
  27631. 800c09a: ee67 7a27 vmul.f32 s15, s14, s15
  27632. 800c09e: edc7 7a07 vstr s15, [r7, #28]
  27633. break;
  27634. 800c0a2: e021 b.n 800c0e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  27635. default:
  27636. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  27637. 800c0a4: 697b ldr r3, [r7, #20]
  27638. 800c0a6: ee07 3a90 vmov s15, r3
  27639. 800c0aa: eef8 7a67 vcvt.f32.u32 s15, s15
  27640. 800c0ae: eddf 6a3d vldr s13, [pc, #244] @ 800c1a4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  27641. 800c0b2: ee86 7aa7 vdiv.f32 s14, s13, s15
  27642. 800c0b6: 4b37 ldr r3, [pc, #220] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27643. 800c0b8: 6b9b ldr r3, [r3, #56] @ 0x38
  27644. 800c0ba: f3c3 0308 ubfx r3, r3, #0, #9
  27645. 800c0be: ee07 3a90 vmov s15, r3
  27646. 800c0c2: eef8 6a67 vcvt.f32.u32 s13, s15
  27647. 800c0c6: ed97 6a03 vldr s12, [r7, #12]
  27648. 800c0ca: eddf 5a34 vldr s11, [pc, #208] @ 800c19c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  27649. 800c0ce: eec6 7a25 vdiv.f32 s15, s12, s11
  27650. 800c0d2: ee76 7aa7 vadd.f32 s15, s13, s15
  27651. 800c0d6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27652. 800c0da: ee77 7aa6 vadd.f32 s15, s15, s13
  27653. 800c0de: ee67 7a27 vmul.f32 s15, s14, s15
  27654. 800c0e2: edc7 7a07 vstr s15, [r7, #28]
  27655. break;
  27656. 800c0e6: bf00 nop
  27657. }
  27658. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  27659. 800c0e8: 4b2a ldr r3, [pc, #168] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27660. 800c0ea: 6b9b ldr r3, [r3, #56] @ 0x38
  27661. 800c0ec: 0a5b lsrs r3, r3, #9
  27662. 800c0ee: f003 037f and.w r3, r3, #127 @ 0x7f
  27663. 800c0f2: ee07 3a90 vmov s15, r3
  27664. 800c0f6: eef8 7a67 vcvt.f32.u32 s15, s15
  27665. 800c0fa: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27666. 800c0fe: ee37 7a87 vadd.f32 s14, s15, s14
  27667. 800c102: edd7 6a07 vldr s13, [r7, #28]
  27668. 800c106: eec6 7a87 vdiv.f32 s15, s13, s14
  27669. 800c10a: eefc 7ae7 vcvt.u32.f32 s15, s15
  27670. 800c10e: ee17 2a90 vmov r2, s15
  27671. 800c112: 687b ldr r3, [r7, #4]
  27672. 800c114: 601a str r2, [r3, #0]
  27673. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  27674. 800c116: 4b1f ldr r3, [pc, #124] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27675. 800c118: 6b9b ldr r3, [r3, #56] @ 0x38
  27676. 800c11a: 0c1b lsrs r3, r3, #16
  27677. 800c11c: f003 037f and.w r3, r3, #127 @ 0x7f
  27678. 800c120: ee07 3a90 vmov s15, r3
  27679. 800c124: eef8 7a67 vcvt.f32.u32 s15, s15
  27680. 800c128: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27681. 800c12c: ee37 7a87 vadd.f32 s14, s15, s14
  27682. 800c130: edd7 6a07 vldr s13, [r7, #28]
  27683. 800c134: eec6 7a87 vdiv.f32 s15, s13, s14
  27684. 800c138: eefc 7ae7 vcvt.u32.f32 s15, s15
  27685. 800c13c: ee17 2a90 vmov r2, s15
  27686. 800c140: 687b ldr r3, [r7, #4]
  27687. 800c142: 605a str r2, [r3, #4]
  27688. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  27689. 800c144: 4b13 ldr r3, [pc, #76] @ (800c194 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  27690. 800c146: 6b9b ldr r3, [r3, #56] @ 0x38
  27691. 800c148: 0e1b lsrs r3, r3, #24
  27692. 800c14a: f003 037f and.w r3, r3, #127 @ 0x7f
  27693. 800c14e: ee07 3a90 vmov s15, r3
  27694. 800c152: eef8 7a67 vcvt.f32.u32 s15, s15
  27695. 800c156: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27696. 800c15a: ee37 7a87 vadd.f32 s14, s15, s14
  27697. 800c15e: edd7 6a07 vldr s13, [r7, #28]
  27698. 800c162: eec6 7a87 vdiv.f32 s15, s13, s14
  27699. 800c166: eefc 7ae7 vcvt.u32.f32 s15, s15
  27700. 800c16a: ee17 2a90 vmov r2, s15
  27701. 800c16e: 687b ldr r3, [r7, #4]
  27702. 800c170: 609a str r2, [r3, #8]
  27703. {
  27704. PLL2_Clocks->PLL2_P_Frequency = 0U;
  27705. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  27706. PLL2_Clocks->PLL2_R_Frequency = 0U;
  27707. }
  27708. }
  27709. 800c172: e008 b.n 800c186 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  27710. PLL2_Clocks->PLL2_P_Frequency = 0U;
  27711. 800c174: 687b ldr r3, [r7, #4]
  27712. 800c176: 2200 movs r2, #0
  27713. 800c178: 601a str r2, [r3, #0]
  27714. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  27715. 800c17a: 687b ldr r3, [r7, #4]
  27716. 800c17c: 2200 movs r2, #0
  27717. 800c17e: 605a str r2, [r3, #4]
  27718. PLL2_Clocks->PLL2_R_Frequency = 0U;
  27719. 800c180: 687b ldr r3, [r7, #4]
  27720. 800c182: 2200 movs r2, #0
  27721. 800c184: 609a str r2, [r3, #8]
  27722. }
  27723. 800c186: bf00 nop
  27724. 800c188: 3724 adds r7, #36 @ 0x24
  27725. 800c18a: 46bd mov sp, r7
  27726. 800c18c: f85d 7b04 ldr.w r7, [sp], #4
  27727. 800c190: 4770 bx lr
  27728. 800c192: bf00 nop
  27729. 800c194: 58024400 .word 0x58024400
  27730. 800c198: 03d09000 .word 0x03d09000
  27731. 800c19c: 46000000 .word 0x46000000
  27732. 800c1a0: 4c742400 .word 0x4c742400
  27733. 800c1a4: 4a742400 .word 0x4a742400
  27734. 800c1a8: 4bbebc20 .word 0x4bbebc20
  27735. 0800c1ac <HAL_RCCEx_GetPLL3ClockFreq>:
  27736. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  27737. * @param PLL3_Clocks structure.
  27738. * @retval None
  27739. */
  27740. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  27741. {
  27742. 800c1ac: b480 push {r7}
  27743. 800c1ae: b089 sub sp, #36 @ 0x24
  27744. 800c1b0: af00 add r7, sp, #0
  27745. 800c1b2: 6078 str r0, [r7, #4]
  27746. float_t fracn3, pll3vco;
  27747. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  27748. PLL3xCLK = PLL3_VCO / PLLxR
  27749. */
  27750. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  27751. 800c1b4: 4ba1 ldr r3, [pc, #644] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27752. 800c1b6: 6a9b ldr r3, [r3, #40] @ 0x28
  27753. 800c1b8: f003 0303 and.w r3, r3, #3
  27754. 800c1bc: 61bb str r3, [r7, #24]
  27755. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  27756. 800c1be: 4b9f ldr r3, [pc, #636] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27757. 800c1c0: 6a9b ldr r3, [r3, #40] @ 0x28
  27758. 800c1c2: 0d1b lsrs r3, r3, #20
  27759. 800c1c4: f003 033f and.w r3, r3, #63 @ 0x3f
  27760. 800c1c8: 617b str r3, [r7, #20]
  27761. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  27762. 800c1ca: 4b9c ldr r3, [pc, #624] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27763. 800c1cc: 6adb ldr r3, [r3, #44] @ 0x2c
  27764. 800c1ce: 0a1b lsrs r3, r3, #8
  27765. 800c1d0: f003 0301 and.w r3, r3, #1
  27766. 800c1d4: 613b str r3, [r7, #16]
  27767. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  27768. 800c1d6: 4b99 ldr r3, [pc, #612] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27769. 800c1d8: 6c5b ldr r3, [r3, #68] @ 0x44
  27770. 800c1da: 08db lsrs r3, r3, #3
  27771. 800c1dc: f3c3 030c ubfx r3, r3, #0, #13
  27772. 800c1e0: 693a ldr r2, [r7, #16]
  27773. 800c1e2: fb02 f303 mul.w r3, r2, r3
  27774. 800c1e6: ee07 3a90 vmov s15, r3
  27775. 800c1ea: eef8 7a67 vcvt.f32.u32 s15, s15
  27776. 800c1ee: edc7 7a03 vstr s15, [r7, #12]
  27777. if (pll3m != 0U)
  27778. 800c1f2: 697b ldr r3, [r7, #20]
  27779. 800c1f4: 2b00 cmp r3, #0
  27780. 800c1f6: f000 8111 beq.w 800c41c <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  27781. {
  27782. switch (pllsource)
  27783. 800c1fa: 69bb ldr r3, [r7, #24]
  27784. 800c1fc: 2b02 cmp r3, #2
  27785. 800c1fe: f000 8083 beq.w 800c308 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  27786. 800c202: 69bb ldr r3, [r7, #24]
  27787. 800c204: 2b02 cmp r3, #2
  27788. 800c206: f200 80a1 bhi.w 800c34c <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  27789. 800c20a: 69bb ldr r3, [r7, #24]
  27790. 800c20c: 2b00 cmp r3, #0
  27791. 800c20e: d003 beq.n 800c218 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  27792. 800c210: 69bb ldr r3, [r7, #24]
  27793. 800c212: 2b01 cmp r3, #1
  27794. 800c214: d056 beq.n 800c2c4 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  27795. 800c216: e099 b.n 800c34c <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  27796. {
  27797. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  27798. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27799. 800c218: 4b88 ldr r3, [pc, #544] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27800. 800c21a: 681b ldr r3, [r3, #0]
  27801. 800c21c: f003 0320 and.w r3, r3, #32
  27802. 800c220: 2b00 cmp r3, #0
  27803. 800c222: d02d beq.n 800c280 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  27804. {
  27805. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27806. 800c224: 4b85 ldr r3, [pc, #532] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27807. 800c226: 681b ldr r3, [r3, #0]
  27808. 800c228: 08db lsrs r3, r3, #3
  27809. 800c22a: f003 0303 and.w r3, r3, #3
  27810. 800c22e: 4a84 ldr r2, [pc, #528] @ (800c440 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  27811. 800c230: fa22 f303 lsr.w r3, r2, r3
  27812. 800c234: 60bb str r3, [r7, #8]
  27813. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27814. 800c236: 68bb ldr r3, [r7, #8]
  27815. 800c238: ee07 3a90 vmov s15, r3
  27816. 800c23c: eef8 6a67 vcvt.f32.u32 s13, s15
  27817. 800c240: 697b ldr r3, [r7, #20]
  27818. 800c242: ee07 3a90 vmov s15, r3
  27819. 800c246: eef8 7a67 vcvt.f32.u32 s15, s15
  27820. 800c24a: ee86 7aa7 vdiv.f32 s14, s13, s15
  27821. 800c24e: 4b7b ldr r3, [pc, #492] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27822. 800c250: 6c1b ldr r3, [r3, #64] @ 0x40
  27823. 800c252: f3c3 0308 ubfx r3, r3, #0, #9
  27824. 800c256: ee07 3a90 vmov s15, r3
  27825. 800c25a: eef8 6a67 vcvt.f32.u32 s13, s15
  27826. 800c25e: ed97 6a03 vldr s12, [r7, #12]
  27827. 800c262: eddf 5a78 vldr s11, [pc, #480] @ 800c444 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27828. 800c266: eec6 7a25 vdiv.f32 s15, s12, s11
  27829. 800c26a: ee76 7aa7 vadd.f32 s15, s13, s15
  27830. 800c26e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27831. 800c272: ee77 7aa6 vadd.f32 s15, s15, s13
  27832. 800c276: ee67 7a27 vmul.f32 s15, s14, s15
  27833. 800c27a: edc7 7a07 vstr s15, [r7, #28]
  27834. }
  27835. else
  27836. {
  27837. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27838. }
  27839. break;
  27840. 800c27e: e087 b.n 800c390 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27841. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27842. 800c280: 697b ldr r3, [r7, #20]
  27843. 800c282: ee07 3a90 vmov s15, r3
  27844. 800c286: eef8 7a67 vcvt.f32.u32 s15, s15
  27845. 800c28a: eddf 6a6f vldr s13, [pc, #444] @ 800c448 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  27846. 800c28e: ee86 7aa7 vdiv.f32 s14, s13, s15
  27847. 800c292: 4b6a ldr r3, [pc, #424] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27848. 800c294: 6c1b ldr r3, [r3, #64] @ 0x40
  27849. 800c296: f3c3 0308 ubfx r3, r3, #0, #9
  27850. 800c29a: ee07 3a90 vmov s15, r3
  27851. 800c29e: eef8 6a67 vcvt.f32.u32 s13, s15
  27852. 800c2a2: ed97 6a03 vldr s12, [r7, #12]
  27853. 800c2a6: eddf 5a67 vldr s11, [pc, #412] @ 800c444 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27854. 800c2aa: eec6 7a25 vdiv.f32 s15, s12, s11
  27855. 800c2ae: ee76 7aa7 vadd.f32 s15, s13, s15
  27856. 800c2b2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27857. 800c2b6: ee77 7aa6 vadd.f32 s15, s15, s13
  27858. 800c2ba: ee67 7a27 vmul.f32 s15, s14, s15
  27859. 800c2be: edc7 7a07 vstr s15, [r7, #28]
  27860. break;
  27861. 800c2c2: e065 b.n 800c390 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27862. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  27863. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27864. 800c2c4: 697b ldr r3, [r7, #20]
  27865. 800c2c6: ee07 3a90 vmov s15, r3
  27866. 800c2ca: eef8 7a67 vcvt.f32.u32 s15, s15
  27867. 800c2ce: eddf 6a5f vldr s13, [pc, #380] @ 800c44c <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  27868. 800c2d2: ee86 7aa7 vdiv.f32 s14, s13, s15
  27869. 800c2d6: 4b59 ldr r3, [pc, #356] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27870. 800c2d8: 6c1b ldr r3, [r3, #64] @ 0x40
  27871. 800c2da: f3c3 0308 ubfx r3, r3, #0, #9
  27872. 800c2de: ee07 3a90 vmov s15, r3
  27873. 800c2e2: eef8 6a67 vcvt.f32.u32 s13, s15
  27874. 800c2e6: ed97 6a03 vldr s12, [r7, #12]
  27875. 800c2ea: eddf 5a56 vldr s11, [pc, #344] @ 800c444 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27876. 800c2ee: eec6 7a25 vdiv.f32 s15, s12, s11
  27877. 800c2f2: ee76 7aa7 vadd.f32 s15, s13, s15
  27878. 800c2f6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27879. 800c2fa: ee77 7aa6 vadd.f32 s15, s15, s13
  27880. 800c2fe: ee67 7a27 vmul.f32 s15, s14, s15
  27881. 800c302: edc7 7a07 vstr s15, [r7, #28]
  27882. break;
  27883. 800c306: e043 b.n 800c390 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27884. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  27885. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27886. 800c308: 697b ldr r3, [r7, #20]
  27887. 800c30a: ee07 3a90 vmov s15, r3
  27888. 800c30e: eef8 7a67 vcvt.f32.u32 s15, s15
  27889. 800c312: eddf 6a4f vldr s13, [pc, #316] @ 800c450 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  27890. 800c316: ee86 7aa7 vdiv.f32 s14, s13, s15
  27891. 800c31a: 4b48 ldr r3, [pc, #288] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27892. 800c31c: 6c1b ldr r3, [r3, #64] @ 0x40
  27893. 800c31e: f3c3 0308 ubfx r3, r3, #0, #9
  27894. 800c322: ee07 3a90 vmov s15, r3
  27895. 800c326: eef8 6a67 vcvt.f32.u32 s13, s15
  27896. 800c32a: ed97 6a03 vldr s12, [r7, #12]
  27897. 800c32e: eddf 5a45 vldr s11, [pc, #276] @ 800c444 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27898. 800c332: eec6 7a25 vdiv.f32 s15, s12, s11
  27899. 800c336: ee76 7aa7 vadd.f32 s15, s13, s15
  27900. 800c33a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27901. 800c33e: ee77 7aa6 vadd.f32 s15, s15, s13
  27902. 800c342: ee67 7a27 vmul.f32 s15, s14, s15
  27903. 800c346: edc7 7a07 vstr s15, [r7, #28]
  27904. break;
  27905. 800c34a: e021 b.n 800c390 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  27906. default:
  27907. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  27908. 800c34c: 697b ldr r3, [r7, #20]
  27909. 800c34e: ee07 3a90 vmov s15, r3
  27910. 800c352: eef8 7a67 vcvt.f32.u32 s15, s15
  27911. 800c356: eddf 6a3d vldr s13, [pc, #244] @ 800c44c <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  27912. 800c35a: ee86 7aa7 vdiv.f32 s14, s13, s15
  27913. 800c35e: 4b37 ldr r3, [pc, #220] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27914. 800c360: 6c1b ldr r3, [r3, #64] @ 0x40
  27915. 800c362: f3c3 0308 ubfx r3, r3, #0, #9
  27916. 800c366: ee07 3a90 vmov s15, r3
  27917. 800c36a: eef8 6a67 vcvt.f32.u32 s13, s15
  27918. 800c36e: ed97 6a03 vldr s12, [r7, #12]
  27919. 800c372: eddf 5a34 vldr s11, [pc, #208] @ 800c444 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  27920. 800c376: eec6 7a25 vdiv.f32 s15, s12, s11
  27921. 800c37a: ee76 7aa7 vadd.f32 s15, s13, s15
  27922. 800c37e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27923. 800c382: ee77 7aa6 vadd.f32 s15, s15, s13
  27924. 800c386: ee67 7a27 vmul.f32 s15, s14, s15
  27925. 800c38a: edc7 7a07 vstr s15, [r7, #28]
  27926. break;
  27927. 800c38e: bf00 nop
  27928. }
  27929. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  27930. 800c390: 4b2a ldr r3, [pc, #168] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27931. 800c392: 6c1b ldr r3, [r3, #64] @ 0x40
  27932. 800c394: 0a5b lsrs r3, r3, #9
  27933. 800c396: f003 037f and.w r3, r3, #127 @ 0x7f
  27934. 800c39a: ee07 3a90 vmov s15, r3
  27935. 800c39e: eef8 7a67 vcvt.f32.u32 s15, s15
  27936. 800c3a2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27937. 800c3a6: ee37 7a87 vadd.f32 s14, s15, s14
  27938. 800c3aa: edd7 6a07 vldr s13, [r7, #28]
  27939. 800c3ae: eec6 7a87 vdiv.f32 s15, s13, s14
  27940. 800c3b2: eefc 7ae7 vcvt.u32.f32 s15, s15
  27941. 800c3b6: ee17 2a90 vmov r2, s15
  27942. 800c3ba: 687b ldr r3, [r7, #4]
  27943. 800c3bc: 601a str r2, [r3, #0]
  27944. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  27945. 800c3be: 4b1f ldr r3, [pc, #124] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27946. 800c3c0: 6c1b ldr r3, [r3, #64] @ 0x40
  27947. 800c3c2: 0c1b lsrs r3, r3, #16
  27948. 800c3c4: f003 037f and.w r3, r3, #127 @ 0x7f
  27949. 800c3c8: ee07 3a90 vmov s15, r3
  27950. 800c3cc: eef8 7a67 vcvt.f32.u32 s15, s15
  27951. 800c3d0: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27952. 800c3d4: ee37 7a87 vadd.f32 s14, s15, s14
  27953. 800c3d8: edd7 6a07 vldr s13, [r7, #28]
  27954. 800c3dc: eec6 7a87 vdiv.f32 s15, s13, s14
  27955. 800c3e0: eefc 7ae7 vcvt.u32.f32 s15, s15
  27956. 800c3e4: ee17 2a90 vmov r2, s15
  27957. 800c3e8: 687b ldr r3, [r7, #4]
  27958. 800c3ea: 605a str r2, [r3, #4]
  27959. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  27960. 800c3ec: 4b13 ldr r3, [pc, #76] @ (800c43c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  27961. 800c3ee: 6c1b ldr r3, [r3, #64] @ 0x40
  27962. 800c3f0: 0e1b lsrs r3, r3, #24
  27963. 800c3f2: f003 037f and.w r3, r3, #127 @ 0x7f
  27964. 800c3f6: ee07 3a90 vmov s15, r3
  27965. 800c3fa: eef8 7a67 vcvt.f32.u32 s15, s15
  27966. 800c3fe: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  27967. 800c402: ee37 7a87 vadd.f32 s14, s15, s14
  27968. 800c406: edd7 6a07 vldr s13, [r7, #28]
  27969. 800c40a: eec6 7a87 vdiv.f32 s15, s13, s14
  27970. 800c40e: eefc 7ae7 vcvt.u32.f32 s15, s15
  27971. 800c412: ee17 2a90 vmov r2, s15
  27972. 800c416: 687b ldr r3, [r7, #4]
  27973. 800c418: 609a str r2, [r3, #8]
  27974. PLL3_Clocks->PLL3_P_Frequency = 0U;
  27975. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  27976. PLL3_Clocks->PLL3_R_Frequency = 0U;
  27977. }
  27978. }
  27979. 800c41a: e008 b.n 800c42e <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  27980. PLL3_Clocks->PLL3_P_Frequency = 0U;
  27981. 800c41c: 687b ldr r3, [r7, #4]
  27982. 800c41e: 2200 movs r2, #0
  27983. 800c420: 601a str r2, [r3, #0]
  27984. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  27985. 800c422: 687b ldr r3, [r7, #4]
  27986. 800c424: 2200 movs r2, #0
  27987. 800c426: 605a str r2, [r3, #4]
  27988. PLL3_Clocks->PLL3_R_Frequency = 0U;
  27989. 800c428: 687b ldr r3, [r7, #4]
  27990. 800c42a: 2200 movs r2, #0
  27991. 800c42c: 609a str r2, [r3, #8]
  27992. }
  27993. 800c42e: bf00 nop
  27994. 800c430: 3724 adds r7, #36 @ 0x24
  27995. 800c432: 46bd mov sp, r7
  27996. 800c434: f85d 7b04 ldr.w r7, [sp], #4
  27997. 800c438: 4770 bx lr
  27998. 800c43a: bf00 nop
  27999. 800c43c: 58024400 .word 0x58024400
  28000. 800c440: 03d09000 .word 0x03d09000
  28001. 800c444: 46000000 .word 0x46000000
  28002. 800c448: 4c742400 .word 0x4c742400
  28003. 800c44c: 4a742400 .word 0x4a742400
  28004. 800c450: 4bbebc20 .word 0x4bbebc20
  28005. 0800c454 <RCCEx_PLL2_Config>:
  28006. * @note PLL2 is temporary disabled to apply new parameters
  28007. *
  28008. * @retval HAL status
  28009. */
  28010. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  28011. {
  28012. 800c454: b580 push {r7, lr}
  28013. 800c456: b084 sub sp, #16
  28014. 800c458: af00 add r7, sp, #0
  28015. 800c45a: 6078 str r0, [r7, #4]
  28016. 800c45c: 6039 str r1, [r7, #0]
  28017. uint32_t tickstart;
  28018. HAL_StatusTypeDef status = HAL_OK;
  28019. 800c45e: 2300 movs r3, #0
  28020. 800c460: 73fb strb r3, [r7, #15]
  28021. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  28022. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  28023. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  28024. /* Check that PLL2 OSC clock source is already set */
  28025. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  28026. 800c462: 4b53 ldr r3, [pc, #332] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28027. 800c464: 6a9b ldr r3, [r3, #40] @ 0x28
  28028. 800c466: f003 0303 and.w r3, r3, #3
  28029. 800c46a: 2b03 cmp r3, #3
  28030. 800c46c: d101 bne.n 800c472 <RCCEx_PLL2_Config+0x1e>
  28031. {
  28032. return HAL_ERROR;
  28033. 800c46e: 2301 movs r3, #1
  28034. 800c470: e099 b.n 800c5a6 <RCCEx_PLL2_Config+0x152>
  28035. else
  28036. {
  28037. /* Disable PLL2. */
  28038. __HAL_RCC_PLL2_DISABLE();
  28039. 800c472: 4b4f ldr r3, [pc, #316] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28040. 800c474: 681b ldr r3, [r3, #0]
  28041. 800c476: 4a4e ldr r2, [pc, #312] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28042. 800c478: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  28043. 800c47c: 6013 str r3, [r2, #0]
  28044. /* Get Start Tick*/
  28045. tickstart = HAL_GetTick();
  28046. 800c47e: f7f8 fde1 bl 8005044 <HAL_GetTick>
  28047. 800c482: 60b8 str r0, [r7, #8]
  28048. /* Wait till PLL is disabled */
  28049. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  28050. 800c484: e008 b.n 800c498 <RCCEx_PLL2_Config+0x44>
  28051. {
  28052. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  28053. 800c486: f7f8 fddd bl 8005044 <HAL_GetTick>
  28054. 800c48a: 4602 mov r2, r0
  28055. 800c48c: 68bb ldr r3, [r7, #8]
  28056. 800c48e: 1ad3 subs r3, r2, r3
  28057. 800c490: 2b02 cmp r3, #2
  28058. 800c492: d901 bls.n 800c498 <RCCEx_PLL2_Config+0x44>
  28059. {
  28060. return HAL_TIMEOUT;
  28061. 800c494: 2303 movs r3, #3
  28062. 800c496: e086 b.n 800c5a6 <RCCEx_PLL2_Config+0x152>
  28063. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  28064. 800c498: 4b45 ldr r3, [pc, #276] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28065. 800c49a: 681b ldr r3, [r3, #0]
  28066. 800c49c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  28067. 800c4a0: 2b00 cmp r3, #0
  28068. 800c4a2: d1f0 bne.n 800c486 <RCCEx_PLL2_Config+0x32>
  28069. }
  28070. }
  28071. /* Configure PLL2 multiplication and division factors. */
  28072. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  28073. 800c4a4: 4b42 ldr r3, [pc, #264] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28074. 800c4a6: 6a9b ldr r3, [r3, #40] @ 0x28
  28075. 800c4a8: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  28076. 800c4ac: 687b ldr r3, [r7, #4]
  28077. 800c4ae: 681b ldr r3, [r3, #0]
  28078. 800c4b0: 031b lsls r3, r3, #12
  28079. 800c4b2: 493f ldr r1, [pc, #252] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28080. 800c4b4: 4313 orrs r3, r2
  28081. 800c4b6: 628b str r3, [r1, #40] @ 0x28
  28082. 800c4b8: 687b ldr r3, [r7, #4]
  28083. 800c4ba: 685b ldr r3, [r3, #4]
  28084. 800c4bc: 3b01 subs r3, #1
  28085. 800c4be: f3c3 0208 ubfx r2, r3, #0, #9
  28086. 800c4c2: 687b ldr r3, [r7, #4]
  28087. 800c4c4: 689b ldr r3, [r3, #8]
  28088. 800c4c6: 3b01 subs r3, #1
  28089. 800c4c8: 025b lsls r3, r3, #9
  28090. 800c4ca: b29b uxth r3, r3
  28091. 800c4cc: 431a orrs r2, r3
  28092. 800c4ce: 687b ldr r3, [r7, #4]
  28093. 800c4d0: 68db ldr r3, [r3, #12]
  28094. 800c4d2: 3b01 subs r3, #1
  28095. 800c4d4: 041b lsls r3, r3, #16
  28096. 800c4d6: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  28097. 800c4da: 431a orrs r2, r3
  28098. 800c4dc: 687b ldr r3, [r7, #4]
  28099. 800c4de: 691b ldr r3, [r3, #16]
  28100. 800c4e0: 3b01 subs r3, #1
  28101. 800c4e2: 061b lsls r3, r3, #24
  28102. 800c4e4: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  28103. 800c4e8: 4931 ldr r1, [pc, #196] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28104. 800c4ea: 4313 orrs r3, r2
  28105. 800c4ec: 638b str r3, [r1, #56] @ 0x38
  28106. pll2->PLL2P,
  28107. pll2->PLL2Q,
  28108. pll2->PLL2R);
  28109. /* Select PLL2 input reference frequency range: VCI */
  28110. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  28111. 800c4ee: 4b30 ldr r3, [pc, #192] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28112. 800c4f0: 6adb ldr r3, [r3, #44] @ 0x2c
  28113. 800c4f2: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  28114. 800c4f6: 687b ldr r3, [r7, #4]
  28115. 800c4f8: 695b ldr r3, [r3, #20]
  28116. 800c4fa: 492d ldr r1, [pc, #180] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28117. 800c4fc: 4313 orrs r3, r2
  28118. 800c4fe: 62cb str r3, [r1, #44] @ 0x2c
  28119. /* Select PLL2 output frequency range : VCO */
  28120. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  28121. 800c500: 4b2b ldr r3, [pc, #172] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28122. 800c502: 6adb ldr r3, [r3, #44] @ 0x2c
  28123. 800c504: f023 0220 bic.w r2, r3, #32
  28124. 800c508: 687b ldr r3, [r7, #4]
  28125. 800c50a: 699b ldr r3, [r3, #24]
  28126. 800c50c: 4928 ldr r1, [pc, #160] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28127. 800c50e: 4313 orrs r3, r2
  28128. 800c510: 62cb str r3, [r1, #44] @ 0x2c
  28129. /* Disable PLL2FRACN . */
  28130. __HAL_RCC_PLL2FRACN_DISABLE();
  28131. 800c512: 4b27 ldr r3, [pc, #156] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28132. 800c514: 6adb ldr r3, [r3, #44] @ 0x2c
  28133. 800c516: 4a26 ldr r2, [pc, #152] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28134. 800c518: f023 0310 bic.w r3, r3, #16
  28135. 800c51c: 62d3 str r3, [r2, #44] @ 0x2c
  28136. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  28137. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  28138. 800c51e: 4b24 ldr r3, [pc, #144] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28139. 800c520: 6bda ldr r2, [r3, #60] @ 0x3c
  28140. 800c522: 4b24 ldr r3, [pc, #144] @ (800c5b4 <RCCEx_PLL2_Config+0x160>)
  28141. 800c524: 4013 ands r3, r2
  28142. 800c526: 687a ldr r2, [r7, #4]
  28143. 800c528: 69d2 ldr r2, [r2, #28]
  28144. 800c52a: 00d2 lsls r2, r2, #3
  28145. 800c52c: 4920 ldr r1, [pc, #128] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28146. 800c52e: 4313 orrs r3, r2
  28147. 800c530: 63cb str r3, [r1, #60] @ 0x3c
  28148. /* Enable PLL2FRACN . */
  28149. __HAL_RCC_PLL2FRACN_ENABLE();
  28150. 800c532: 4b1f ldr r3, [pc, #124] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28151. 800c534: 6adb ldr r3, [r3, #44] @ 0x2c
  28152. 800c536: 4a1e ldr r2, [pc, #120] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28153. 800c538: f043 0310 orr.w r3, r3, #16
  28154. 800c53c: 62d3 str r3, [r2, #44] @ 0x2c
  28155. /* Enable the PLL2 clock output */
  28156. if (Divider == DIVIDER_P_UPDATE)
  28157. 800c53e: 683b ldr r3, [r7, #0]
  28158. 800c540: 2b00 cmp r3, #0
  28159. 800c542: d106 bne.n 800c552 <RCCEx_PLL2_Config+0xfe>
  28160. {
  28161. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  28162. 800c544: 4b1a ldr r3, [pc, #104] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28163. 800c546: 6adb ldr r3, [r3, #44] @ 0x2c
  28164. 800c548: 4a19 ldr r2, [pc, #100] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28165. 800c54a: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  28166. 800c54e: 62d3 str r3, [r2, #44] @ 0x2c
  28167. 800c550: e00f b.n 800c572 <RCCEx_PLL2_Config+0x11e>
  28168. }
  28169. else if (Divider == DIVIDER_Q_UPDATE)
  28170. 800c552: 683b ldr r3, [r7, #0]
  28171. 800c554: 2b01 cmp r3, #1
  28172. 800c556: d106 bne.n 800c566 <RCCEx_PLL2_Config+0x112>
  28173. {
  28174. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  28175. 800c558: 4b15 ldr r3, [pc, #84] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28176. 800c55a: 6adb ldr r3, [r3, #44] @ 0x2c
  28177. 800c55c: 4a14 ldr r2, [pc, #80] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28178. 800c55e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  28179. 800c562: 62d3 str r3, [r2, #44] @ 0x2c
  28180. 800c564: e005 b.n 800c572 <RCCEx_PLL2_Config+0x11e>
  28181. }
  28182. else
  28183. {
  28184. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  28185. 800c566: 4b12 ldr r3, [pc, #72] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28186. 800c568: 6adb ldr r3, [r3, #44] @ 0x2c
  28187. 800c56a: 4a11 ldr r2, [pc, #68] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28188. 800c56c: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  28189. 800c570: 62d3 str r3, [r2, #44] @ 0x2c
  28190. }
  28191. /* Enable PLL2. */
  28192. __HAL_RCC_PLL2_ENABLE();
  28193. 800c572: 4b0f ldr r3, [pc, #60] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28194. 800c574: 681b ldr r3, [r3, #0]
  28195. 800c576: 4a0e ldr r2, [pc, #56] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28196. 800c578: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  28197. 800c57c: 6013 str r3, [r2, #0]
  28198. /* Get Start Tick*/
  28199. tickstart = HAL_GetTick();
  28200. 800c57e: f7f8 fd61 bl 8005044 <HAL_GetTick>
  28201. 800c582: 60b8 str r0, [r7, #8]
  28202. /* Wait till PLL2 is ready */
  28203. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  28204. 800c584: e008 b.n 800c598 <RCCEx_PLL2_Config+0x144>
  28205. {
  28206. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  28207. 800c586: f7f8 fd5d bl 8005044 <HAL_GetTick>
  28208. 800c58a: 4602 mov r2, r0
  28209. 800c58c: 68bb ldr r3, [r7, #8]
  28210. 800c58e: 1ad3 subs r3, r2, r3
  28211. 800c590: 2b02 cmp r3, #2
  28212. 800c592: d901 bls.n 800c598 <RCCEx_PLL2_Config+0x144>
  28213. {
  28214. return HAL_TIMEOUT;
  28215. 800c594: 2303 movs r3, #3
  28216. 800c596: e006 b.n 800c5a6 <RCCEx_PLL2_Config+0x152>
  28217. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  28218. 800c598: 4b05 ldr r3, [pc, #20] @ (800c5b0 <RCCEx_PLL2_Config+0x15c>)
  28219. 800c59a: 681b ldr r3, [r3, #0]
  28220. 800c59c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  28221. 800c5a0: 2b00 cmp r3, #0
  28222. 800c5a2: d0f0 beq.n 800c586 <RCCEx_PLL2_Config+0x132>
  28223. }
  28224. }
  28225. return status;
  28226. 800c5a4: 7bfb ldrb r3, [r7, #15]
  28227. }
  28228. 800c5a6: 4618 mov r0, r3
  28229. 800c5a8: 3710 adds r7, #16
  28230. 800c5aa: 46bd mov sp, r7
  28231. 800c5ac: bd80 pop {r7, pc}
  28232. 800c5ae: bf00 nop
  28233. 800c5b0: 58024400 .word 0x58024400
  28234. 800c5b4: ffff0007 .word 0xffff0007
  28235. 0800c5b8 <RCCEx_PLL3_Config>:
  28236. * @note PLL3 is temporary disabled to apply new parameters
  28237. *
  28238. * @retval HAL status
  28239. */
  28240. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  28241. {
  28242. 800c5b8: b580 push {r7, lr}
  28243. 800c5ba: b084 sub sp, #16
  28244. 800c5bc: af00 add r7, sp, #0
  28245. 800c5be: 6078 str r0, [r7, #4]
  28246. 800c5c0: 6039 str r1, [r7, #0]
  28247. uint32_t tickstart;
  28248. HAL_StatusTypeDef status = HAL_OK;
  28249. 800c5c2: 2300 movs r3, #0
  28250. 800c5c4: 73fb strb r3, [r7, #15]
  28251. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  28252. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  28253. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  28254. /* Check that PLL3 OSC clock source is already set */
  28255. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  28256. 800c5c6: 4b53 ldr r3, [pc, #332] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28257. 800c5c8: 6a9b ldr r3, [r3, #40] @ 0x28
  28258. 800c5ca: f003 0303 and.w r3, r3, #3
  28259. 800c5ce: 2b03 cmp r3, #3
  28260. 800c5d0: d101 bne.n 800c5d6 <RCCEx_PLL3_Config+0x1e>
  28261. {
  28262. return HAL_ERROR;
  28263. 800c5d2: 2301 movs r3, #1
  28264. 800c5d4: e099 b.n 800c70a <RCCEx_PLL3_Config+0x152>
  28265. else
  28266. {
  28267. /* Disable PLL3. */
  28268. __HAL_RCC_PLL3_DISABLE();
  28269. 800c5d6: 4b4f ldr r3, [pc, #316] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28270. 800c5d8: 681b ldr r3, [r3, #0]
  28271. 800c5da: 4a4e ldr r2, [pc, #312] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28272. 800c5dc: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  28273. 800c5e0: 6013 str r3, [r2, #0]
  28274. /* Get Start Tick*/
  28275. tickstart = HAL_GetTick();
  28276. 800c5e2: f7f8 fd2f bl 8005044 <HAL_GetTick>
  28277. 800c5e6: 60b8 str r0, [r7, #8]
  28278. /* Wait till PLL3 is ready */
  28279. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  28280. 800c5e8: e008 b.n 800c5fc <RCCEx_PLL3_Config+0x44>
  28281. {
  28282. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  28283. 800c5ea: f7f8 fd2b bl 8005044 <HAL_GetTick>
  28284. 800c5ee: 4602 mov r2, r0
  28285. 800c5f0: 68bb ldr r3, [r7, #8]
  28286. 800c5f2: 1ad3 subs r3, r2, r3
  28287. 800c5f4: 2b02 cmp r3, #2
  28288. 800c5f6: d901 bls.n 800c5fc <RCCEx_PLL3_Config+0x44>
  28289. {
  28290. return HAL_TIMEOUT;
  28291. 800c5f8: 2303 movs r3, #3
  28292. 800c5fa: e086 b.n 800c70a <RCCEx_PLL3_Config+0x152>
  28293. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  28294. 800c5fc: 4b45 ldr r3, [pc, #276] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28295. 800c5fe: 681b ldr r3, [r3, #0]
  28296. 800c600: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  28297. 800c604: 2b00 cmp r3, #0
  28298. 800c606: d1f0 bne.n 800c5ea <RCCEx_PLL3_Config+0x32>
  28299. }
  28300. }
  28301. /* Configure the PLL3 multiplication and division factors. */
  28302. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  28303. 800c608: 4b42 ldr r3, [pc, #264] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28304. 800c60a: 6a9b ldr r3, [r3, #40] @ 0x28
  28305. 800c60c: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  28306. 800c610: 687b ldr r3, [r7, #4]
  28307. 800c612: 681b ldr r3, [r3, #0]
  28308. 800c614: 051b lsls r3, r3, #20
  28309. 800c616: 493f ldr r1, [pc, #252] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28310. 800c618: 4313 orrs r3, r2
  28311. 800c61a: 628b str r3, [r1, #40] @ 0x28
  28312. 800c61c: 687b ldr r3, [r7, #4]
  28313. 800c61e: 685b ldr r3, [r3, #4]
  28314. 800c620: 3b01 subs r3, #1
  28315. 800c622: f3c3 0208 ubfx r2, r3, #0, #9
  28316. 800c626: 687b ldr r3, [r7, #4]
  28317. 800c628: 689b ldr r3, [r3, #8]
  28318. 800c62a: 3b01 subs r3, #1
  28319. 800c62c: 025b lsls r3, r3, #9
  28320. 800c62e: b29b uxth r3, r3
  28321. 800c630: 431a orrs r2, r3
  28322. 800c632: 687b ldr r3, [r7, #4]
  28323. 800c634: 68db ldr r3, [r3, #12]
  28324. 800c636: 3b01 subs r3, #1
  28325. 800c638: 041b lsls r3, r3, #16
  28326. 800c63a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  28327. 800c63e: 431a orrs r2, r3
  28328. 800c640: 687b ldr r3, [r7, #4]
  28329. 800c642: 691b ldr r3, [r3, #16]
  28330. 800c644: 3b01 subs r3, #1
  28331. 800c646: 061b lsls r3, r3, #24
  28332. 800c648: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  28333. 800c64c: 4931 ldr r1, [pc, #196] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28334. 800c64e: 4313 orrs r3, r2
  28335. 800c650: 640b str r3, [r1, #64] @ 0x40
  28336. pll3->PLL3P,
  28337. pll3->PLL3Q,
  28338. pll3->PLL3R);
  28339. /* Select PLL3 input reference frequency range: VCI */
  28340. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  28341. 800c652: 4b30 ldr r3, [pc, #192] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28342. 800c654: 6adb ldr r3, [r3, #44] @ 0x2c
  28343. 800c656: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  28344. 800c65a: 687b ldr r3, [r7, #4]
  28345. 800c65c: 695b ldr r3, [r3, #20]
  28346. 800c65e: 492d ldr r1, [pc, #180] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28347. 800c660: 4313 orrs r3, r2
  28348. 800c662: 62cb str r3, [r1, #44] @ 0x2c
  28349. /* Select PLL3 output frequency range : VCO */
  28350. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  28351. 800c664: 4b2b ldr r3, [pc, #172] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28352. 800c666: 6adb ldr r3, [r3, #44] @ 0x2c
  28353. 800c668: f423 7200 bic.w r2, r3, #512 @ 0x200
  28354. 800c66c: 687b ldr r3, [r7, #4]
  28355. 800c66e: 699b ldr r3, [r3, #24]
  28356. 800c670: 4928 ldr r1, [pc, #160] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28357. 800c672: 4313 orrs r3, r2
  28358. 800c674: 62cb str r3, [r1, #44] @ 0x2c
  28359. /* Disable PLL3FRACN . */
  28360. __HAL_RCC_PLL3FRACN_DISABLE();
  28361. 800c676: 4b27 ldr r3, [pc, #156] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28362. 800c678: 6adb ldr r3, [r3, #44] @ 0x2c
  28363. 800c67a: 4a26 ldr r2, [pc, #152] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28364. 800c67c: f423 7380 bic.w r3, r3, #256 @ 0x100
  28365. 800c680: 62d3 str r3, [r2, #44] @ 0x2c
  28366. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  28367. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  28368. 800c682: 4b24 ldr r3, [pc, #144] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28369. 800c684: 6c5a ldr r2, [r3, #68] @ 0x44
  28370. 800c686: 4b24 ldr r3, [pc, #144] @ (800c718 <RCCEx_PLL3_Config+0x160>)
  28371. 800c688: 4013 ands r3, r2
  28372. 800c68a: 687a ldr r2, [r7, #4]
  28373. 800c68c: 69d2 ldr r2, [r2, #28]
  28374. 800c68e: 00d2 lsls r2, r2, #3
  28375. 800c690: 4920 ldr r1, [pc, #128] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28376. 800c692: 4313 orrs r3, r2
  28377. 800c694: 644b str r3, [r1, #68] @ 0x44
  28378. /* Enable PLL3FRACN . */
  28379. __HAL_RCC_PLL3FRACN_ENABLE();
  28380. 800c696: 4b1f ldr r3, [pc, #124] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28381. 800c698: 6adb ldr r3, [r3, #44] @ 0x2c
  28382. 800c69a: 4a1e ldr r2, [pc, #120] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28383. 800c69c: f443 7380 orr.w r3, r3, #256 @ 0x100
  28384. 800c6a0: 62d3 str r3, [r2, #44] @ 0x2c
  28385. /* Enable the PLL3 clock output */
  28386. if (Divider == DIVIDER_P_UPDATE)
  28387. 800c6a2: 683b ldr r3, [r7, #0]
  28388. 800c6a4: 2b00 cmp r3, #0
  28389. 800c6a6: d106 bne.n 800c6b6 <RCCEx_PLL3_Config+0xfe>
  28390. {
  28391. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  28392. 800c6a8: 4b1a ldr r3, [pc, #104] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28393. 800c6aa: 6adb ldr r3, [r3, #44] @ 0x2c
  28394. 800c6ac: 4a19 ldr r2, [pc, #100] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28395. 800c6ae: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  28396. 800c6b2: 62d3 str r3, [r2, #44] @ 0x2c
  28397. 800c6b4: e00f b.n 800c6d6 <RCCEx_PLL3_Config+0x11e>
  28398. }
  28399. else if (Divider == DIVIDER_Q_UPDATE)
  28400. 800c6b6: 683b ldr r3, [r7, #0]
  28401. 800c6b8: 2b01 cmp r3, #1
  28402. 800c6ba: d106 bne.n 800c6ca <RCCEx_PLL3_Config+0x112>
  28403. {
  28404. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  28405. 800c6bc: 4b15 ldr r3, [pc, #84] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28406. 800c6be: 6adb ldr r3, [r3, #44] @ 0x2c
  28407. 800c6c0: 4a14 ldr r2, [pc, #80] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28408. 800c6c2: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  28409. 800c6c6: 62d3 str r3, [r2, #44] @ 0x2c
  28410. 800c6c8: e005 b.n 800c6d6 <RCCEx_PLL3_Config+0x11e>
  28411. }
  28412. else
  28413. {
  28414. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  28415. 800c6ca: 4b12 ldr r3, [pc, #72] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28416. 800c6cc: 6adb ldr r3, [r3, #44] @ 0x2c
  28417. 800c6ce: 4a11 ldr r2, [pc, #68] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28418. 800c6d0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  28419. 800c6d4: 62d3 str r3, [r2, #44] @ 0x2c
  28420. }
  28421. /* Enable PLL3. */
  28422. __HAL_RCC_PLL3_ENABLE();
  28423. 800c6d6: 4b0f ldr r3, [pc, #60] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28424. 800c6d8: 681b ldr r3, [r3, #0]
  28425. 800c6da: 4a0e ldr r2, [pc, #56] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28426. 800c6dc: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  28427. 800c6e0: 6013 str r3, [r2, #0]
  28428. /* Get Start Tick*/
  28429. tickstart = HAL_GetTick();
  28430. 800c6e2: f7f8 fcaf bl 8005044 <HAL_GetTick>
  28431. 800c6e6: 60b8 str r0, [r7, #8]
  28432. /* Wait till PLL3 is ready */
  28433. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  28434. 800c6e8: e008 b.n 800c6fc <RCCEx_PLL3_Config+0x144>
  28435. {
  28436. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  28437. 800c6ea: f7f8 fcab bl 8005044 <HAL_GetTick>
  28438. 800c6ee: 4602 mov r2, r0
  28439. 800c6f0: 68bb ldr r3, [r7, #8]
  28440. 800c6f2: 1ad3 subs r3, r2, r3
  28441. 800c6f4: 2b02 cmp r3, #2
  28442. 800c6f6: d901 bls.n 800c6fc <RCCEx_PLL3_Config+0x144>
  28443. {
  28444. return HAL_TIMEOUT;
  28445. 800c6f8: 2303 movs r3, #3
  28446. 800c6fa: e006 b.n 800c70a <RCCEx_PLL3_Config+0x152>
  28447. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  28448. 800c6fc: 4b05 ldr r3, [pc, #20] @ (800c714 <RCCEx_PLL3_Config+0x15c>)
  28449. 800c6fe: 681b ldr r3, [r3, #0]
  28450. 800c700: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  28451. 800c704: 2b00 cmp r3, #0
  28452. 800c706: d0f0 beq.n 800c6ea <RCCEx_PLL3_Config+0x132>
  28453. }
  28454. }
  28455. return status;
  28456. 800c708: 7bfb ldrb r3, [r7, #15]
  28457. }
  28458. 800c70a: 4618 mov r0, r3
  28459. 800c70c: 3710 adds r7, #16
  28460. 800c70e: 46bd mov sp, r7
  28461. 800c710: bd80 pop {r7, pc}
  28462. 800c712: bf00 nop
  28463. 800c714: 58024400 .word 0x58024400
  28464. 800c718: ffff0007 .word 0xffff0007
  28465. 0800c71c <HAL_RNG_Init>:
  28466. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  28467. * the configuration information for RNG.
  28468. * @retval HAL status
  28469. */
  28470. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  28471. {
  28472. 800c71c: b580 push {r7, lr}
  28473. 800c71e: b084 sub sp, #16
  28474. 800c720: af00 add r7, sp, #0
  28475. 800c722: 6078 str r0, [r7, #4]
  28476. uint32_t tickstart;
  28477. /* Check the RNG handle allocation */
  28478. if (hrng == NULL)
  28479. 800c724: 687b ldr r3, [r7, #4]
  28480. 800c726: 2b00 cmp r3, #0
  28481. 800c728: d101 bne.n 800c72e <HAL_RNG_Init+0x12>
  28482. {
  28483. return HAL_ERROR;
  28484. 800c72a: 2301 movs r3, #1
  28485. 800c72c: e054 b.n 800c7d8 <HAL_RNG_Init+0xbc>
  28486. /* Init the low level hardware */
  28487. hrng->MspInitCallback(hrng);
  28488. }
  28489. #else
  28490. if (hrng->State == HAL_RNG_STATE_RESET)
  28491. 800c72e: 687b ldr r3, [r7, #4]
  28492. 800c730: 7a5b ldrb r3, [r3, #9]
  28493. 800c732: b2db uxtb r3, r3
  28494. 800c734: 2b00 cmp r3, #0
  28495. 800c736: d105 bne.n 800c744 <HAL_RNG_Init+0x28>
  28496. {
  28497. /* Allocate lock resource and initialize it */
  28498. hrng->Lock = HAL_UNLOCKED;
  28499. 800c738: 687b ldr r3, [r7, #4]
  28500. 800c73a: 2200 movs r2, #0
  28501. 800c73c: 721a strb r2, [r3, #8]
  28502. /* Init the low level hardware */
  28503. HAL_RNG_MspInit(hrng);
  28504. 800c73e: 6878 ldr r0, [r7, #4]
  28505. 800c740: f7f6 fe2c bl 800339c <HAL_RNG_MspInit>
  28506. }
  28507. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  28508. /* Change RNG peripheral state */
  28509. hrng->State = HAL_RNG_STATE_BUSY;
  28510. 800c744: 687b ldr r3, [r7, #4]
  28511. 800c746: 2202 movs r2, #2
  28512. 800c748: 725a strb r2, [r3, #9]
  28513. }
  28514. }
  28515. }
  28516. #else
  28517. /* Clock Error Detection Configuration */
  28518. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  28519. 800c74a: 687b ldr r3, [r7, #4]
  28520. 800c74c: 681b ldr r3, [r3, #0]
  28521. 800c74e: 681b ldr r3, [r3, #0]
  28522. 800c750: f023 0120 bic.w r1, r3, #32
  28523. 800c754: 687b ldr r3, [r7, #4]
  28524. 800c756: 685a ldr r2, [r3, #4]
  28525. 800c758: 687b ldr r3, [r7, #4]
  28526. 800c75a: 681b ldr r3, [r3, #0]
  28527. 800c75c: 430a orrs r2, r1
  28528. 800c75e: 601a str r2, [r3, #0]
  28529. #endif /* RNG_CR_CONDRST */
  28530. /* Enable the RNG Peripheral */
  28531. __HAL_RNG_ENABLE(hrng);
  28532. 800c760: 687b ldr r3, [r7, #4]
  28533. 800c762: 681b ldr r3, [r3, #0]
  28534. 800c764: 681a ldr r2, [r3, #0]
  28535. 800c766: 687b ldr r3, [r7, #4]
  28536. 800c768: 681b ldr r3, [r3, #0]
  28537. 800c76a: f042 0204 orr.w r2, r2, #4
  28538. 800c76e: 601a str r2, [r3, #0]
  28539. /* verify that no seed error */
  28540. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  28541. 800c770: 687b ldr r3, [r7, #4]
  28542. 800c772: 681b ldr r3, [r3, #0]
  28543. 800c774: 685b ldr r3, [r3, #4]
  28544. 800c776: f003 0340 and.w r3, r3, #64 @ 0x40
  28545. 800c77a: 2b40 cmp r3, #64 @ 0x40
  28546. 800c77c: d104 bne.n 800c788 <HAL_RNG_Init+0x6c>
  28547. {
  28548. hrng->State = HAL_RNG_STATE_ERROR;
  28549. 800c77e: 687b ldr r3, [r7, #4]
  28550. 800c780: 2204 movs r2, #4
  28551. 800c782: 725a strb r2, [r3, #9]
  28552. return HAL_ERROR;
  28553. 800c784: 2301 movs r3, #1
  28554. 800c786: e027 b.n 800c7d8 <HAL_RNG_Init+0xbc>
  28555. }
  28556. /* Get tick */
  28557. tickstart = HAL_GetTick();
  28558. 800c788: f7f8 fc5c bl 8005044 <HAL_GetTick>
  28559. 800c78c: 60f8 str r0, [r7, #12]
  28560. /* Check if data register contains valid random data */
  28561. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  28562. 800c78e: e015 b.n 800c7bc <HAL_RNG_Init+0xa0>
  28563. {
  28564. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  28565. 800c790: f7f8 fc58 bl 8005044 <HAL_GetTick>
  28566. 800c794: 4602 mov r2, r0
  28567. 800c796: 68fb ldr r3, [r7, #12]
  28568. 800c798: 1ad3 subs r3, r2, r3
  28569. 800c79a: 2b02 cmp r3, #2
  28570. 800c79c: d90e bls.n 800c7bc <HAL_RNG_Init+0xa0>
  28571. {
  28572. /* New check to avoid false timeout detection in case of preemption */
  28573. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  28574. 800c79e: 687b ldr r3, [r7, #4]
  28575. 800c7a0: 681b ldr r3, [r3, #0]
  28576. 800c7a2: 685b ldr r3, [r3, #4]
  28577. 800c7a4: f003 0304 and.w r3, r3, #4
  28578. 800c7a8: 2b04 cmp r3, #4
  28579. 800c7aa: d107 bne.n 800c7bc <HAL_RNG_Init+0xa0>
  28580. {
  28581. hrng->State = HAL_RNG_STATE_ERROR;
  28582. 800c7ac: 687b ldr r3, [r7, #4]
  28583. 800c7ae: 2204 movs r2, #4
  28584. 800c7b0: 725a strb r2, [r3, #9]
  28585. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  28586. 800c7b2: 687b ldr r3, [r7, #4]
  28587. 800c7b4: 2202 movs r2, #2
  28588. 800c7b6: 60da str r2, [r3, #12]
  28589. return HAL_ERROR;
  28590. 800c7b8: 2301 movs r3, #1
  28591. 800c7ba: e00d b.n 800c7d8 <HAL_RNG_Init+0xbc>
  28592. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  28593. 800c7bc: 687b ldr r3, [r7, #4]
  28594. 800c7be: 681b ldr r3, [r3, #0]
  28595. 800c7c0: 685b ldr r3, [r3, #4]
  28596. 800c7c2: f003 0304 and.w r3, r3, #4
  28597. 800c7c6: 2b04 cmp r3, #4
  28598. 800c7c8: d0e2 beq.n 800c790 <HAL_RNG_Init+0x74>
  28599. }
  28600. }
  28601. }
  28602. /* Initialize the RNG state */
  28603. hrng->State = HAL_RNG_STATE_READY;
  28604. 800c7ca: 687b ldr r3, [r7, #4]
  28605. 800c7cc: 2201 movs r2, #1
  28606. 800c7ce: 725a strb r2, [r3, #9]
  28607. /* Initialise the error code */
  28608. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  28609. 800c7d0: 687b ldr r3, [r7, #4]
  28610. 800c7d2: 2200 movs r2, #0
  28611. 800c7d4: 60da str r2, [r3, #12]
  28612. /* Return function status */
  28613. return HAL_OK;
  28614. 800c7d6: 2300 movs r3, #0
  28615. }
  28616. 800c7d8: 4618 mov r0, r3
  28617. 800c7da: 3710 adds r7, #16
  28618. 800c7dc: 46bd mov sp, r7
  28619. 800c7de: bd80 pop {r7, pc}
  28620. 0800c7e0 <HAL_RNG_GenerateRandomNumber>:
  28621. * @param random32bit pointer to generated random number variable if successful.
  28622. * @retval HAL status
  28623. */
  28624. HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit)
  28625. {
  28626. 800c7e0: b580 push {r7, lr}
  28627. 800c7e2: b084 sub sp, #16
  28628. 800c7e4: af00 add r7, sp, #0
  28629. 800c7e6: 6078 str r0, [r7, #4]
  28630. 800c7e8: 6039 str r1, [r7, #0]
  28631. uint32_t tickstart;
  28632. HAL_StatusTypeDef status = HAL_OK;
  28633. 800c7ea: 2300 movs r3, #0
  28634. 800c7ec: 73fb strb r3, [r7, #15]
  28635. /* Process Locked */
  28636. __HAL_LOCK(hrng);
  28637. 800c7ee: 687b ldr r3, [r7, #4]
  28638. 800c7f0: 7a1b ldrb r3, [r3, #8]
  28639. 800c7f2: 2b01 cmp r3, #1
  28640. 800c7f4: d101 bne.n 800c7fa <HAL_RNG_GenerateRandomNumber+0x1a>
  28641. 800c7f6: 2302 movs r3, #2
  28642. 800c7f8: e044 b.n 800c884 <HAL_RNG_GenerateRandomNumber+0xa4>
  28643. 800c7fa: 687b ldr r3, [r7, #4]
  28644. 800c7fc: 2201 movs r2, #1
  28645. 800c7fe: 721a strb r2, [r3, #8]
  28646. /* Check RNG peripheral state */
  28647. if (hrng->State == HAL_RNG_STATE_READY)
  28648. 800c800: 687b ldr r3, [r7, #4]
  28649. 800c802: 7a5b ldrb r3, [r3, #9]
  28650. 800c804: b2db uxtb r3, r3
  28651. 800c806: 2b01 cmp r3, #1
  28652. 800c808: d133 bne.n 800c872 <HAL_RNG_GenerateRandomNumber+0x92>
  28653. {
  28654. /* Change RNG peripheral state */
  28655. hrng->State = HAL_RNG_STATE_BUSY;
  28656. 800c80a: 687b ldr r3, [r7, #4]
  28657. 800c80c: 2202 movs r2, #2
  28658. 800c80e: 725a strb r2, [r3, #9]
  28659. }
  28660. }
  28661. #endif /* RNG_CR_CONDRST */
  28662. /* Get tick */
  28663. tickstart = HAL_GetTick();
  28664. 800c810: f7f8 fc18 bl 8005044 <HAL_GetTick>
  28665. 800c814: 60b8 str r0, [r7, #8]
  28666. /* Check if data register contains valid random data */
  28667. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  28668. 800c816: e018 b.n 800c84a <HAL_RNG_GenerateRandomNumber+0x6a>
  28669. {
  28670. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  28671. 800c818: f7f8 fc14 bl 8005044 <HAL_GetTick>
  28672. 800c81c: 4602 mov r2, r0
  28673. 800c81e: 68bb ldr r3, [r7, #8]
  28674. 800c820: 1ad3 subs r3, r2, r3
  28675. 800c822: 2b02 cmp r3, #2
  28676. 800c824: d911 bls.n 800c84a <HAL_RNG_GenerateRandomNumber+0x6a>
  28677. {
  28678. /* New check to avoid false timeout detection in case of preemption */
  28679. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  28680. 800c826: 687b ldr r3, [r7, #4]
  28681. 800c828: 681b ldr r3, [r3, #0]
  28682. 800c82a: 685b ldr r3, [r3, #4]
  28683. 800c82c: f003 0301 and.w r3, r3, #1
  28684. 800c830: 2b01 cmp r3, #1
  28685. 800c832: d00a beq.n 800c84a <HAL_RNG_GenerateRandomNumber+0x6a>
  28686. {
  28687. hrng->State = HAL_RNG_STATE_READY;
  28688. 800c834: 687b ldr r3, [r7, #4]
  28689. 800c836: 2201 movs r2, #1
  28690. 800c838: 725a strb r2, [r3, #9]
  28691. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  28692. 800c83a: 687b ldr r3, [r7, #4]
  28693. 800c83c: 2202 movs r2, #2
  28694. 800c83e: 60da str r2, [r3, #12]
  28695. /* Process Unlocked */
  28696. __HAL_UNLOCK(hrng);
  28697. 800c840: 687b ldr r3, [r7, #4]
  28698. 800c842: 2200 movs r2, #0
  28699. 800c844: 721a strb r2, [r3, #8]
  28700. return HAL_ERROR;
  28701. 800c846: 2301 movs r3, #1
  28702. 800c848: e01c b.n 800c884 <HAL_RNG_GenerateRandomNumber+0xa4>
  28703. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  28704. 800c84a: 687b ldr r3, [r7, #4]
  28705. 800c84c: 681b ldr r3, [r3, #0]
  28706. 800c84e: 685b ldr r3, [r3, #4]
  28707. 800c850: f003 0301 and.w r3, r3, #1
  28708. 800c854: 2b01 cmp r3, #1
  28709. 800c856: d1df bne.n 800c818 <HAL_RNG_GenerateRandomNumber+0x38>
  28710. }
  28711. }
  28712. }
  28713. /* Get a 32bit Random number */
  28714. hrng->RandomNumber = hrng->Instance->DR;
  28715. 800c858: 687b ldr r3, [r7, #4]
  28716. 800c85a: 681b ldr r3, [r3, #0]
  28717. 800c85c: 689a ldr r2, [r3, #8]
  28718. 800c85e: 687b ldr r3, [r7, #4]
  28719. 800c860: 611a str r2, [r3, #16]
  28720. else /* No seed error */
  28721. {
  28722. *random32bit = hrng->RandomNumber;
  28723. }
  28724. #else
  28725. *random32bit = hrng->RandomNumber;
  28726. 800c862: 687b ldr r3, [r7, #4]
  28727. 800c864: 691a ldr r2, [r3, #16]
  28728. 800c866: 683b ldr r3, [r7, #0]
  28729. 800c868: 601a str r2, [r3, #0]
  28730. #endif /* RNG_CR_CONDRST */
  28731. hrng->State = HAL_RNG_STATE_READY;
  28732. 800c86a: 687b ldr r3, [r7, #4]
  28733. 800c86c: 2201 movs r2, #1
  28734. 800c86e: 725a strb r2, [r3, #9]
  28735. 800c870: e004 b.n 800c87c <HAL_RNG_GenerateRandomNumber+0x9c>
  28736. }
  28737. else
  28738. {
  28739. hrng->ErrorCode = HAL_RNG_ERROR_BUSY;
  28740. 800c872: 687b ldr r3, [r7, #4]
  28741. 800c874: 2204 movs r2, #4
  28742. 800c876: 60da str r2, [r3, #12]
  28743. status = HAL_ERROR;
  28744. 800c878: 2301 movs r3, #1
  28745. 800c87a: 73fb strb r3, [r7, #15]
  28746. }
  28747. /* Process Unlocked */
  28748. __HAL_UNLOCK(hrng);
  28749. 800c87c: 687b ldr r3, [r7, #4]
  28750. 800c87e: 2200 movs r2, #0
  28751. 800c880: 721a strb r2, [r3, #8]
  28752. return status;
  28753. 800c882: 7bfb ldrb r3, [r7, #15]
  28754. }
  28755. 800c884: 4618 mov r0, r3
  28756. 800c886: 3710 adds r7, #16
  28757. 800c888: 46bd mov sp, r7
  28758. 800c88a: bd80 pop {r7, pc}
  28759. 0800c88c <HAL_TIM_Base_Init>:
  28760. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  28761. * @param htim TIM Base handle
  28762. * @retval HAL status
  28763. */
  28764. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  28765. {
  28766. 800c88c: b580 push {r7, lr}
  28767. 800c88e: b082 sub sp, #8
  28768. 800c890: af00 add r7, sp, #0
  28769. 800c892: 6078 str r0, [r7, #4]
  28770. /* Check the TIM handle allocation */
  28771. if (htim == NULL)
  28772. 800c894: 687b ldr r3, [r7, #4]
  28773. 800c896: 2b00 cmp r3, #0
  28774. 800c898: d101 bne.n 800c89e <HAL_TIM_Base_Init+0x12>
  28775. {
  28776. return HAL_ERROR;
  28777. 800c89a: 2301 movs r3, #1
  28778. 800c89c: e049 b.n 800c932 <HAL_TIM_Base_Init+0xa6>
  28779. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  28780. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  28781. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  28782. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  28783. if (htim->State == HAL_TIM_STATE_RESET)
  28784. 800c89e: 687b ldr r3, [r7, #4]
  28785. 800c8a0: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  28786. 800c8a4: b2db uxtb r3, r3
  28787. 800c8a6: 2b00 cmp r3, #0
  28788. 800c8a8: d106 bne.n 800c8b8 <HAL_TIM_Base_Init+0x2c>
  28789. {
  28790. /* Allocate lock resource and initialize it */
  28791. htim->Lock = HAL_UNLOCKED;
  28792. 800c8aa: 687b ldr r3, [r7, #4]
  28793. 800c8ac: 2200 movs r2, #0
  28794. 800c8ae: f883 203c strb.w r2, [r3, #60] @ 0x3c
  28795. }
  28796. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  28797. htim->Base_MspInitCallback(htim);
  28798. #else
  28799. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  28800. HAL_TIM_Base_MspInit(htim);
  28801. 800c8b2: 6878 ldr r0, [r7, #4]
  28802. 800c8b4: f000 f841 bl 800c93a <HAL_TIM_Base_MspInit>
  28803. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  28804. }
  28805. /* Set the TIM state */
  28806. htim->State = HAL_TIM_STATE_BUSY;
  28807. 800c8b8: 687b ldr r3, [r7, #4]
  28808. 800c8ba: 2202 movs r2, #2
  28809. 800c8bc: f883 203d strb.w r2, [r3, #61] @ 0x3d
  28810. /* Set the Time Base configuration */
  28811. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  28812. 800c8c0: 687b ldr r3, [r7, #4]
  28813. 800c8c2: 681a ldr r2, [r3, #0]
  28814. 800c8c4: 687b ldr r3, [r7, #4]
  28815. 800c8c6: 3304 adds r3, #4
  28816. 800c8c8: 4619 mov r1, r3
  28817. 800c8ca: 4610 mov r0, r2
  28818. 800c8cc: f000 f9e8 bl 800cca0 <TIM_Base_SetConfig>
  28819. /* Initialize the DMA burst operation state */
  28820. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  28821. 800c8d0: 687b ldr r3, [r7, #4]
  28822. 800c8d2: 2201 movs r2, #1
  28823. 800c8d4: f883 2048 strb.w r2, [r3, #72] @ 0x48
  28824. /* Initialize the TIM channels state */
  28825. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  28826. 800c8d8: 687b ldr r3, [r7, #4]
  28827. 800c8da: 2201 movs r2, #1
  28828. 800c8dc: f883 203e strb.w r2, [r3, #62] @ 0x3e
  28829. 800c8e0: 687b ldr r3, [r7, #4]
  28830. 800c8e2: 2201 movs r2, #1
  28831. 800c8e4: f883 203f strb.w r2, [r3, #63] @ 0x3f
  28832. 800c8e8: 687b ldr r3, [r7, #4]
  28833. 800c8ea: 2201 movs r2, #1
  28834. 800c8ec: f883 2040 strb.w r2, [r3, #64] @ 0x40
  28835. 800c8f0: 687b ldr r3, [r7, #4]
  28836. 800c8f2: 2201 movs r2, #1
  28837. 800c8f4: f883 2041 strb.w r2, [r3, #65] @ 0x41
  28838. 800c8f8: 687b ldr r3, [r7, #4]
  28839. 800c8fa: 2201 movs r2, #1
  28840. 800c8fc: f883 2042 strb.w r2, [r3, #66] @ 0x42
  28841. 800c900: 687b ldr r3, [r7, #4]
  28842. 800c902: 2201 movs r2, #1
  28843. 800c904: f883 2043 strb.w r2, [r3, #67] @ 0x43
  28844. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  28845. 800c908: 687b ldr r3, [r7, #4]
  28846. 800c90a: 2201 movs r2, #1
  28847. 800c90c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  28848. 800c910: 687b ldr r3, [r7, #4]
  28849. 800c912: 2201 movs r2, #1
  28850. 800c914: f883 2045 strb.w r2, [r3, #69] @ 0x45
  28851. 800c918: 687b ldr r3, [r7, #4]
  28852. 800c91a: 2201 movs r2, #1
  28853. 800c91c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  28854. 800c920: 687b ldr r3, [r7, #4]
  28855. 800c922: 2201 movs r2, #1
  28856. 800c924: f883 2047 strb.w r2, [r3, #71] @ 0x47
  28857. /* Initialize the TIM state*/
  28858. htim->State = HAL_TIM_STATE_READY;
  28859. 800c928: 687b ldr r3, [r7, #4]
  28860. 800c92a: 2201 movs r2, #1
  28861. 800c92c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  28862. return HAL_OK;
  28863. 800c930: 2300 movs r3, #0
  28864. }
  28865. 800c932: 4618 mov r0, r3
  28866. 800c934: 3708 adds r7, #8
  28867. 800c936: 46bd mov sp, r7
  28868. 800c938: bd80 pop {r7, pc}
  28869. 0800c93a <HAL_TIM_Base_MspInit>:
  28870. * @brief Initializes the TIM Base MSP.
  28871. * @param htim TIM Base handle
  28872. * @retval None
  28873. */
  28874. __weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
  28875. {
  28876. 800c93a: b480 push {r7}
  28877. 800c93c: b083 sub sp, #12
  28878. 800c93e: af00 add r7, sp, #0
  28879. 800c940: 6078 str r0, [r7, #4]
  28880. UNUSED(htim);
  28881. /* NOTE : This function should not be modified, when the callback is needed,
  28882. the HAL_TIM_Base_MspInit could be implemented in the user file
  28883. */
  28884. }
  28885. 800c942: bf00 nop
  28886. 800c944: 370c adds r7, #12
  28887. 800c946: 46bd mov sp, r7
  28888. 800c948: f85d 7b04 ldr.w r7, [sp], #4
  28889. 800c94c: 4770 bx lr
  28890. ...
  28891. 0800c950 <HAL_TIM_Base_Start_IT>:
  28892. * @brief Starts the TIM Base generation in interrupt mode.
  28893. * @param htim TIM Base handle
  28894. * @retval HAL status
  28895. */
  28896. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  28897. {
  28898. 800c950: b480 push {r7}
  28899. 800c952: b085 sub sp, #20
  28900. 800c954: af00 add r7, sp, #0
  28901. 800c956: 6078 str r0, [r7, #4]
  28902. /* Check the parameters */
  28903. assert_param(IS_TIM_INSTANCE(htim->Instance));
  28904. /* Check the TIM state */
  28905. if (htim->State != HAL_TIM_STATE_READY)
  28906. 800c958: 687b ldr r3, [r7, #4]
  28907. 800c95a: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  28908. 800c95e: b2db uxtb r3, r3
  28909. 800c960: 2b01 cmp r3, #1
  28910. 800c962: d001 beq.n 800c968 <HAL_TIM_Base_Start_IT+0x18>
  28911. {
  28912. return HAL_ERROR;
  28913. 800c964: 2301 movs r3, #1
  28914. 800c966: e054 b.n 800ca12 <HAL_TIM_Base_Start_IT+0xc2>
  28915. }
  28916. /* Set the TIM state */
  28917. htim->State = HAL_TIM_STATE_BUSY;
  28918. 800c968: 687b ldr r3, [r7, #4]
  28919. 800c96a: 2202 movs r2, #2
  28920. 800c96c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  28921. /* Enable the TIM Update interrupt */
  28922. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  28923. 800c970: 687b ldr r3, [r7, #4]
  28924. 800c972: 681b ldr r3, [r3, #0]
  28925. 800c974: 68da ldr r2, [r3, #12]
  28926. 800c976: 687b ldr r3, [r7, #4]
  28927. 800c978: 681b ldr r3, [r3, #0]
  28928. 800c97a: f042 0201 orr.w r2, r2, #1
  28929. 800c97e: 60da str r2, [r3, #12]
  28930. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  28931. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  28932. 800c980: 687b ldr r3, [r7, #4]
  28933. 800c982: 681b ldr r3, [r3, #0]
  28934. 800c984: 4a26 ldr r2, [pc, #152] @ (800ca20 <HAL_TIM_Base_Start_IT+0xd0>)
  28935. 800c986: 4293 cmp r3, r2
  28936. 800c988: d022 beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28937. 800c98a: 687b ldr r3, [r7, #4]
  28938. 800c98c: 681b ldr r3, [r3, #0]
  28939. 800c98e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28940. 800c992: d01d beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28941. 800c994: 687b ldr r3, [r7, #4]
  28942. 800c996: 681b ldr r3, [r3, #0]
  28943. 800c998: 4a22 ldr r2, [pc, #136] @ (800ca24 <HAL_TIM_Base_Start_IT+0xd4>)
  28944. 800c99a: 4293 cmp r3, r2
  28945. 800c99c: d018 beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28946. 800c99e: 687b ldr r3, [r7, #4]
  28947. 800c9a0: 681b ldr r3, [r3, #0]
  28948. 800c9a2: 4a21 ldr r2, [pc, #132] @ (800ca28 <HAL_TIM_Base_Start_IT+0xd8>)
  28949. 800c9a4: 4293 cmp r3, r2
  28950. 800c9a6: d013 beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28951. 800c9a8: 687b ldr r3, [r7, #4]
  28952. 800c9aa: 681b ldr r3, [r3, #0]
  28953. 800c9ac: 4a1f ldr r2, [pc, #124] @ (800ca2c <HAL_TIM_Base_Start_IT+0xdc>)
  28954. 800c9ae: 4293 cmp r3, r2
  28955. 800c9b0: d00e beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28956. 800c9b2: 687b ldr r3, [r7, #4]
  28957. 800c9b4: 681b ldr r3, [r3, #0]
  28958. 800c9b6: 4a1e ldr r2, [pc, #120] @ (800ca30 <HAL_TIM_Base_Start_IT+0xe0>)
  28959. 800c9b8: 4293 cmp r3, r2
  28960. 800c9ba: d009 beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28961. 800c9bc: 687b ldr r3, [r7, #4]
  28962. 800c9be: 681b ldr r3, [r3, #0]
  28963. 800c9c0: 4a1c ldr r2, [pc, #112] @ (800ca34 <HAL_TIM_Base_Start_IT+0xe4>)
  28964. 800c9c2: 4293 cmp r3, r2
  28965. 800c9c4: d004 beq.n 800c9d0 <HAL_TIM_Base_Start_IT+0x80>
  28966. 800c9c6: 687b ldr r3, [r7, #4]
  28967. 800c9c8: 681b ldr r3, [r3, #0]
  28968. 800c9ca: 4a1b ldr r2, [pc, #108] @ (800ca38 <HAL_TIM_Base_Start_IT+0xe8>)
  28969. 800c9cc: 4293 cmp r3, r2
  28970. 800c9ce: d115 bne.n 800c9fc <HAL_TIM_Base_Start_IT+0xac>
  28971. {
  28972. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  28973. 800c9d0: 687b ldr r3, [r7, #4]
  28974. 800c9d2: 681b ldr r3, [r3, #0]
  28975. 800c9d4: 689a ldr r2, [r3, #8]
  28976. 800c9d6: 4b19 ldr r3, [pc, #100] @ (800ca3c <HAL_TIM_Base_Start_IT+0xec>)
  28977. 800c9d8: 4013 ands r3, r2
  28978. 800c9da: 60fb str r3, [r7, #12]
  28979. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  28980. 800c9dc: 68fb ldr r3, [r7, #12]
  28981. 800c9de: 2b06 cmp r3, #6
  28982. 800c9e0: d015 beq.n 800ca0e <HAL_TIM_Base_Start_IT+0xbe>
  28983. 800c9e2: 68fb ldr r3, [r7, #12]
  28984. 800c9e4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  28985. 800c9e8: d011 beq.n 800ca0e <HAL_TIM_Base_Start_IT+0xbe>
  28986. {
  28987. __HAL_TIM_ENABLE(htim);
  28988. 800c9ea: 687b ldr r3, [r7, #4]
  28989. 800c9ec: 681b ldr r3, [r3, #0]
  28990. 800c9ee: 681a ldr r2, [r3, #0]
  28991. 800c9f0: 687b ldr r3, [r7, #4]
  28992. 800c9f2: 681b ldr r3, [r3, #0]
  28993. 800c9f4: f042 0201 orr.w r2, r2, #1
  28994. 800c9f8: 601a str r2, [r3, #0]
  28995. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  28996. 800c9fa: e008 b.n 800ca0e <HAL_TIM_Base_Start_IT+0xbe>
  28997. }
  28998. }
  28999. else
  29000. {
  29001. __HAL_TIM_ENABLE(htim);
  29002. 800c9fc: 687b ldr r3, [r7, #4]
  29003. 800c9fe: 681b ldr r3, [r3, #0]
  29004. 800ca00: 681a ldr r2, [r3, #0]
  29005. 800ca02: 687b ldr r3, [r7, #4]
  29006. 800ca04: 681b ldr r3, [r3, #0]
  29007. 800ca06: f042 0201 orr.w r2, r2, #1
  29008. 800ca0a: 601a str r2, [r3, #0]
  29009. 800ca0c: e000 b.n 800ca10 <HAL_TIM_Base_Start_IT+0xc0>
  29010. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  29011. 800ca0e: bf00 nop
  29012. }
  29013. /* Return function status */
  29014. return HAL_OK;
  29015. 800ca10: 2300 movs r3, #0
  29016. }
  29017. 800ca12: 4618 mov r0, r3
  29018. 800ca14: 3714 adds r7, #20
  29019. 800ca16: 46bd mov sp, r7
  29020. 800ca18: f85d 7b04 ldr.w r7, [sp], #4
  29021. 800ca1c: 4770 bx lr
  29022. 800ca1e: bf00 nop
  29023. 800ca20: 40010000 .word 0x40010000
  29024. 800ca24: 40000400 .word 0x40000400
  29025. 800ca28: 40000800 .word 0x40000800
  29026. 800ca2c: 40000c00 .word 0x40000c00
  29027. 800ca30: 40010400 .word 0x40010400
  29028. 800ca34: 40001800 .word 0x40001800
  29029. 800ca38: 40014000 .word 0x40014000
  29030. 800ca3c: 00010007 .word 0x00010007
  29031. 0800ca40 <HAL_TIM_IRQHandler>:
  29032. * @brief This function handles TIM interrupts requests.
  29033. * @param htim TIM handle
  29034. * @retval None
  29035. */
  29036. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  29037. {
  29038. 800ca40: b580 push {r7, lr}
  29039. 800ca42: b084 sub sp, #16
  29040. 800ca44: af00 add r7, sp, #0
  29041. 800ca46: 6078 str r0, [r7, #4]
  29042. uint32_t itsource = htim->Instance->DIER;
  29043. 800ca48: 687b ldr r3, [r7, #4]
  29044. 800ca4a: 681b ldr r3, [r3, #0]
  29045. 800ca4c: 68db ldr r3, [r3, #12]
  29046. 800ca4e: 60fb str r3, [r7, #12]
  29047. uint32_t itflag = htim->Instance->SR;
  29048. 800ca50: 687b ldr r3, [r7, #4]
  29049. 800ca52: 681b ldr r3, [r3, #0]
  29050. 800ca54: 691b ldr r3, [r3, #16]
  29051. 800ca56: 60bb str r3, [r7, #8]
  29052. /* Capture compare 1 event */
  29053. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  29054. 800ca58: 68bb ldr r3, [r7, #8]
  29055. 800ca5a: f003 0302 and.w r3, r3, #2
  29056. 800ca5e: 2b00 cmp r3, #0
  29057. 800ca60: d020 beq.n 800caa4 <HAL_TIM_IRQHandler+0x64>
  29058. {
  29059. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  29060. 800ca62: 68fb ldr r3, [r7, #12]
  29061. 800ca64: f003 0302 and.w r3, r3, #2
  29062. 800ca68: 2b00 cmp r3, #0
  29063. 800ca6a: d01b beq.n 800caa4 <HAL_TIM_IRQHandler+0x64>
  29064. {
  29065. {
  29066. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  29067. 800ca6c: 687b ldr r3, [r7, #4]
  29068. 800ca6e: 681b ldr r3, [r3, #0]
  29069. 800ca70: f06f 0202 mvn.w r2, #2
  29070. 800ca74: 611a str r2, [r3, #16]
  29071. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  29072. 800ca76: 687b ldr r3, [r7, #4]
  29073. 800ca78: 2201 movs r2, #1
  29074. 800ca7a: 771a strb r2, [r3, #28]
  29075. /* Input capture event */
  29076. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  29077. 800ca7c: 687b ldr r3, [r7, #4]
  29078. 800ca7e: 681b ldr r3, [r3, #0]
  29079. 800ca80: 699b ldr r3, [r3, #24]
  29080. 800ca82: f003 0303 and.w r3, r3, #3
  29081. 800ca86: 2b00 cmp r3, #0
  29082. 800ca88: d003 beq.n 800ca92 <HAL_TIM_IRQHandler+0x52>
  29083. {
  29084. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29085. htim->IC_CaptureCallback(htim);
  29086. #else
  29087. HAL_TIM_IC_CaptureCallback(htim);
  29088. 800ca8a: 6878 ldr r0, [r7, #4]
  29089. 800ca8c: f000 f8e9 bl 800cc62 <HAL_TIM_IC_CaptureCallback>
  29090. 800ca90: e005 b.n 800ca9e <HAL_TIM_IRQHandler+0x5e>
  29091. {
  29092. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29093. htim->OC_DelayElapsedCallback(htim);
  29094. htim->PWM_PulseFinishedCallback(htim);
  29095. #else
  29096. HAL_TIM_OC_DelayElapsedCallback(htim);
  29097. 800ca92: 6878 ldr r0, [r7, #4]
  29098. 800ca94: f000 f8db bl 800cc4e <HAL_TIM_OC_DelayElapsedCallback>
  29099. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29100. 800ca98: 6878 ldr r0, [r7, #4]
  29101. 800ca9a: f000 f8ec bl 800cc76 <HAL_TIM_PWM_PulseFinishedCallback>
  29102. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29103. }
  29104. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29105. 800ca9e: 687b ldr r3, [r7, #4]
  29106. 800caa0: 2200 movs r2, #0
  29107. 800caa2: 771a strb r2, [r3, #28]
  29108. }
  29109. }
  29110. }
  29111. /* Capture compare 2 event */
  29112. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  29113. 800caa4: 68bb ldr r3, [r7, #8]
  29114. 800caa6: f003 0304 and.w r3, r3, #4
  29115. 800caaa: 2b00 cmp r3, #0
  29116. 800caac: d020 beq.n 800caf0 <HAL_TIM_IRQHandler+0xb0>
  29117. {
  29118. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  29119. 800caae: 68fb ldr r3, [r7, #12]
  29120. 800cab0: f003 0304 and.w r3, r3, #4
  29121. 800cab4: 2b00 cmp r3, #0
  29122. 800cab6: d01b beq.n 800caf0 <HAL_TIM_IRQHandler+0xb0>
  29123. {
  29124. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  29125. 800cab8: 687b ldr r3, [r7, #4]
  29126. 800caba: 681b ldr r3, [r3, #0]
  29127. 800cabc: f06f 0204 mvn.w r2, #4
  29128. 800cac0: 611a str r2, [r3, #16]
  29129. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  29130. 800cac2: 687b ldr r3, [r7, #4]
  29131. 800cac4: 2202 movs r2, #2
  29132. 800cac6: 771a strb r2, [r3, #28]
  29133. /* Input capture event */
  29134. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  29135. 800cac8: 687b ldr r3, [r7, #4]
  29136. 800caca: 681b ldr r3, [r3, #0]
  29137. 800cacc: 699b ldr r3, [r3, #24]
  29138. 800cace: f403 7340 and.w r3, r3, #768 @ 0x300
  29139. 800cad2: 2b00 cmp r3, #0
  29140. 800cad4: d003 beq.n 800cade <HAL_TIM_IRQHandler+0x9e>
  29141. {
  29142. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29143. htim->IC_CaptureCallback(htim);
  29144. #else
  29145. HAL_TIM_IC_CaptureCallback(htim);
  29146. 800cad6: 6878 ldr r0, [r7, #4]
  29147. 800cad8: f000 f8c3 bl 800cc62 <HAL_TIM_IC_CaptureCallback>
  29148. 800cadc: e005 b.n 800caea <HAL_TIM_IRQHandler+0xaa>
  29149. {
  29150. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29151. htim->OC_DelayElapsedCallback(htim);
  29152. htim->PWM_PulseFinishedCallback(htim);
  29153. #else
  29154. HAL_TIM_OC_DelayElapsedCallback(htim);
  29155. 800cade: 6878 ldr r0, [r7, #4]
  29156. 800cae0: f000 f8b5 bl 800cc4e <HAL_TIM_OC_DelayElapsedCallback>
  29157. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29158. 800cae4: 6878 ldr r0, [r7, #4]
  29159. 800cae6: f000 f8c6 bl 800cc76 <HAL_TIM_PWM_PulseFinishedCallback>
  29160. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29161. }
  29162. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29163. 800caea: 687b ldr r3, [r7, #4]
  29164. 800caec: 2200 movs r2, #0
  29165. 800caee: 771a strb r2, [r3, #28]
  29166. }
  29167. }
  29168. /* Capture compare 3 event */
  29169. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  29170. 800caf0: 68bb ldr r3, [r7, #8]
  29171. 800caf2: f003 0308 and.w r3, r3, #8
  29172. 800caf6: 2b00 cmp r3, #0
  29173. 800caf8: d020 beq.n 800cb3c <HAL_TIM_IRQHandler+0xfc>
  29174. {
  29175. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  29176. 800cafa: 68fb ldr r3, [r7, #12]
  29177. 800cafc: f003 0308 and.w r3, r3, #8
  29178. 800cb00: 2b00 cmp r3, #0
  29179. 800cb02: d01b beq.n 800cb3c <HAL_TIM_IRQHandler+0xfc>
  29180. {
  29181. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  29182. 800cb04: 687b ldr r3, [r7, #4]
  29183. 800cb06: 681b ldr r3, [r3, #0]
  29184. 800cb08: f06f 0208 mvn.w r2, #8
  29185. 800cb0c: 611a str r2, [r3, #16]
  29186. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  29187. 800cb0e: 687b ldr r3, [r7, #4]
  29188. 800cb10: 2204 movs r2, #4
  29189. 800cb12: 771a strb r2, [r3, #28]
  29190. /* Input capture event */
  29191. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  29192. 800cb14: 687b ldr r3, [r7, #4]
  29193. 800cb16: 681b ldr r3, [r3, #0]
  29194. 800cb18: 69db ldr r3, [r3, #28]
  29195. 800cb1a: f003 0303 and.w r3, r3, #3
  29196. 800cb1e: 2b00 cmp r3, #0
  29197. 800cb20: d003 beq.n 800cb2a <HAL_TIM_IRQHandler+0xea>
  29198. {
  29199. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29200. htim->IC_CaptureCallback(htim);
  29201. #else
  29202. HAL_TIM_IC_CaptureCallback(htim);
  29203. 800cb22: 6878 ldr r0, [r7, #4]
  29204. 800cb24: f000 f89d bl 800cc62 <HAL_TIM_IC_CaptureCallback>
  29205. 800cb28: e005 b.n 800cb36 <HAL_TIM_IRQHandler+0xf6>
  29206. {
  29207. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29208. htim->OC_DelayElapsedCallback(htim);
  29209. htim->PWM_PulseFinishedCallback(htim);
  29210. #else
  29211. HAL_TIM_OC_DelayElapsedCallback(htim);
  29212. 800cb2a: 6878 ldr r0, [r7, #4]
  29213. 800cb2c: f000 f88f bl 800cc4e <HAL_TIM_OC_DelayElapsedCallback>
  29214. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29215. 800cb30: 6878 ldr r0, [r7, #4]
  29216. 800cb32: f000 f8a0 bl 800cc76 <HAL_TIM_PWM_PulseFinishedCallback>
  29217. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29218. }
  29219. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29220. 800cb36: 687b ldr r3, [r7, #4]
  29221. 800cb38: 2200 movs r2, #0
  29222. 800cb3a: 771a strb r2, [r3, #28]
  29223. }
  29224. }
  29225. /* Capture compare 4 event */
  29226. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  29227. 800cb3c: 68bb ldr r3, [r7, #8]
  29228. 800cb3e: f003 0310 and.w r3, r3, #16
  29229. 800cb42: 2b00 cmp r3, #0
  29230. 800cb44: d020 beq.n 800cb88 <HAL_TIM_IRQHandler+0x148>
  29231. {
  29232. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  29233. 800cb46: 68fb ldr r3, [r7, #12]
  29234. 800cb48: f003 0310 and.w r3, r3, #16
  29235. 800cb4c: 2b00 cmp r3, #0
  29236. 800cb4e: d01b beq.n 800cb88 <HAL_TIM_IRQHandler+0x148>
  29237. {
  29238. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  29239. 800cb50: 687b ldr r3, [r7, #4]
  29240. 800cb52: 681b ldr r3, [r3, #0]
  29241. 800cb54: f06f 0210 mvn.w r2, #16
  29242. 800cb58: 611a str r2, [r3, #16]
  29243. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  29244. 800cb5a: 687b ldr r3, [r7, #4]
  29245. 800cb5c: 2208 movs r2, #8
  29246. 800cb5e: 771a strb r2, [r3, #28]
  29247. /* Input capture event */
  29248. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  29249. 800cb60: 687b ldr r3, [r7, #4]
  29250. 800cb62: 681b ldr r3, [r3, #0]
  29251. 800cb64: 69db ldr r3, [r3, #28]
  29252. 800cb66: f403 7340 and.w r3, r3, #768 @ 0x300
  29253. 800cb6a: 2b00 cmp r3, #0
  29254. 800cb6c: d003 beq.n 800cb76 <HAL_TIM_IRQHandler+0x136>
  29255. {
  29256. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29257. htim->IC_CaptureCallback(htim);
  29258. #else
  29259. HAL_TIM_IC_CaptureCallback(htim);
  29260. 800cb6e: 6878 ldr r0, [r7, #4]
  29261. 800cb70: f000 f877 bl 800cc62 <HAL_TIM_IC_CaptureCallback>
  29262. 800cb74: e005 b.n 800cb82 <HAL_TIM_IRQHandler+0x142>
  29263. {
  29264. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29265. htim->OC_DelayElapsedCallback(htim);
  29266. htim->PWM_PulseFinishedCallback(htim);
  29267. #else
  29268. HAL_TIM_OC_DelayElapsedCallback(htim);
  29269. 800cb76: 6878 ldr r0, [r7, #4]
  29270. 800cb78: f000 f869 bl 800cc4e <HAL_TIM_OC_DelayElapsedCallback>
  29271. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29272. 800cb7c: 6878 ldr r0, [r7, #4]
  29273. 800cb7e: f000 f87a bl 800cc76 <HAL_TIM_PWM_PulseFinishedCallback>
  29274. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29275. }
  29276. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29277. 800cb82: 687b ldr r3, [r7, #4]
  29278. 800cb84: 2200 movs r2, #0
  29279. 800cb86: 771a strb r2, [r3, #28]
  29280. }
  29281. }
  29282. /* TIM Update event */
  29283. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  29284. 800cb88: 68bb ldr r3, [r7, #8]
  29285. 800cb8a: f003 0301 and.w r3, r3, #1
  29286. 800cb8e: 2b00 cmp r3, #0
  29287. 800cb90: d00c beq.n 800cbac <HAL_TIM_IRQHandler+0x16c>
  29288. {
  29289. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  29290. 800cb92: 68fb ldr r3, [r7, #12]
  29291. 800cb94: f003 0301 and.w r3, r3, #1
  29292. 800cb98: 2b00 cmp r3, #0
  29293. 800cb9a: d007 beq.n 800cbac <HAL_TIM_IRQHandler+0x16c>
  29294. {
  29295. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  29296. 800cb9c: 687b ldr r3, [r7, #4]
  29297. 800cb9e: 681b ldr r3, [r3, #0]
  29298. 800cba0: f06f 0201 mvn.w r2, #1
  29299. 800cba4: 611a str r2, [r3, #16]
  29300. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29301. htim->PeriodElapsedCallback(htim);
  29302. #else
  29303. HAL_TIM_PeriodElapsedCallback(htim);
  29304. 800cba6: 6878 ldr r0, [r7, #4]
  29305. 800cba8: f7f5 fc90 bl 80024cc <HAL_TIM_PeriodElapsedCallback>
  29306. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29307. }
  29308. }
  29309. /* TIM Break input event */
  29310. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  29311. 800cbac: 68bb ldr r3, [r7, #8]
  29312. 800cbae: f003 0380 and.w r3, r3, #128 @ 0x80
  29313. 800cbb2: 2b00 cmp r3, #0
  29314. 800cbb4: d104 bne.n 800cbc0 <HAL_TIM_IRQHandler+0x180>
  29315. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  29316. 800cbb6: 68bb ldr r3, [r7, #8]
  29317. 800cbb8: f403 5300 and.w r3, r3, #8192 @ 0x2000
  29318. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  29319. 800cbbc: 2b00 cmp r3, #0
  29320. 800cbbe: d00c beq.n 800cbda <HAL_TIM_IRQHandler+0x19a>
  29321. {
  29322. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  29323. 800cbc0: 68fb ldr r3, [r7, #12]
  29324. 800cbc2: f003 0380 and.w r3, r3, #128 @ 0x80
  29325. 800cbc6: 2b00 cmp r3, #0
  29326. 800cbc8: d007 beq.n 800cbda <HAL_TIM_IRQHandler+0x19a>
  29327. {
  29328. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  29329. 800cbca: 687b ldr r3, [r7, #4]
  29330. 800cbcc: 681b ldr r3, [r3, #0]
  29331. 800cbce: f46f 5202 mvn.w r2, #8320 @ 0x2080
  29332. 800cbd2: 611a str r2, [r3, #16]
  29333. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29334. htim->BreakCallback(htim);
  29335. #else
  29336. HAL_TIMEx_BreakCallback(htim);
  29337. 800cbd4: 6878 ldr r0, [r7, #4]
  29338. 800cbd6: f000 f913 bl 800ce00 <HAL_TIMEx_BreakCallback>
  29339. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29340. }
  29341. }
  29342. /* TIM Break2 input event */
  29343. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  29344. 800cbda: 68bb ldr r3, [r7, #8]
  29345. 800cbdc: f403 7380 and.w r3, r3, #256 @ 0x100
  29346. 800cbe0: 2b00 cmp r3, #0
  29347. 800cbe2: d00c beq.n 800cbfe <HAL_TIM_IRQHandler+0x1be>
  29348. {
  29349. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  29350. 800cbe4: 68fb ldr r3, [r7, #12]
  29351. 800cbe6: f003 0380 and.w r3, r3, #128 @ 0x80
  29352. 800cbea: 2b00 cmp r3, #0
  29353. 800cbec: d007 beq.n 800cbfe <HAL_TIM_IRQHandler+0x1be>
  29354. {
  29355. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  29356. 800cbee: 687b ldr r3, [r7, #4]
  29357. 800cbf0: 681b ldr r3, [r3, #0]
  29358. 800cbf2: f46f 7280 mvn.w r2, #256 @ 0x100
  29359. 800cbf6: 611a str r2, [r3, #16]
  29360. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29361. htim->Break2Callback(htim);
  29362. #else
  29363. HAL_TIMEx_Break2Callback(htim);
  29364. 800cbf8: 6878 ldr r0, [r7, #4]
  29365. 800cbfa: f000 f90b bl 800ce14 <HAL_TIMEx_Break2Callback>
  29366. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29367. }
  29368. }
  29369. /* TIM Trigger detection event */
  29370. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  29371. 800cbfe: 68bb ldr r3, [r7, #8]
  29372. 800cc00: f003 0340 and.w r3, r3, #64 @ 0x40
  29373. 800cc04: 2b00 cmp r3, #0
  29374. 800cc06: d00c beq.n 800cc22 <HAL_TIM_IRQHandler+0x1e2>
  29375. {
  29376. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  29377. 800cc08: 68fb ldr r3, [r7, #12]
  29378. 800cc0a: f003 0340 and.w r3, r3, #64 @ 0x40
  29379. 800cc0e: 2b00 cmp r3, #0
  29380. 800cc10: d007 beq.n 800cc22 <HAL_TIM_IRQHandler+0x1e2>
  29381. {
  29382. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  29383. 800cc12: 687b ldr r3, [r7, #4]
  29384. 800cc14: 681b ldr r3, [r3, #0]
  29385. 800cc16: f06f 0240 mvn.w r2, #64 @ 0x40
  29386. 800cc1a: 611a str r2, [r3, #16]
  29387. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29388. htim->TriggerCallback(htim);
  29389. #else
  29390. HAL_TIM_TriggerCallback(htim);
  29391. 800cc1c: 6878 ldr r0, [r7, #4]
  29392. 800cc1e: f000 f834 bl 800cc8a <HAL_TIM_TriggerCallback>
  29393. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29394. }
  29395. }
  29396. /* TIM commutation event */
  29397. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  29398. 800cc22: 68bb ldr r3, [r7, #8]
  29399. 800cc24: f003 0320 and.w r3, r3, #32
  29400. 800cc28: 2b00 cmp r3, #0
  29401. 800cc2a: d00c beq.n 800cc46 <HAL_TIM_IRQHandler+0x206>
  29402. {
  29403. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  29404. 800cc2c: 68fb ldr r3, [r7, #12]
  29405. 800cc2e: f003 0320 and.w r3, r3, #32
  29406. 800cc32: 2b00 cmp r3, #0
  29407. 800cc34: d007 beq.n 800cc46 <HAL_TIM_IRQHandler+0x206>
  29408. {
  29409. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  29410. 800cc36: 687b ldr r3, [r7, #4]
  29411. 800cc38: 681b ldr r3, [r3, #0]
  29412. 800cc3a: f06f 0220 mvn.w r2, #32
  29413. 800cc3e: 611a str r2, [r3, #16]
  29414. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29415. htim->CommutationCallback(htim);
  29416. #else
  29417. HAL_TIMEx_CommutCallback(htim);
  29418. 800cc40: 6878 ldr r0, [r7, #4]
  29419. 800cc42: f000 f8d3 bl 800cdec <HAL_TIMEx_CommutCallback>
  29420. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29421. }
  29422. }
  29423. }
  29424. 800cc46: bf00 nop
  29425. 800cc48: 3710 adds r7, #16
  29426. 800cc4a: 46bd mov sp, r7
  29427. 800cc4c: bd80 pop {r7, pc}
  29428. 0800cc4e <HAL_TIM_OC_DelayElapsedCallback>:
  29429. * @brief Output Compare callback in non-blocking mode
  29430. * @param htim TIM OC handle
  29431. * @retval None
  29432. */
  29433. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  29434. {
  29435. 800cc4e: b480 push {r7}
  29436. 800cc50: b083 sub sp, #12
  29437. 800cc52: af00 add r7, sp, #0
  29438. 800cc54: 6078 str r0, [r7, #4]
  29439. UNUSED(htim);
  29440. /* NOTE : This function should not be modified, when the callback is needed,
  29441. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  29442. */
  29443. }
  29444. 800cc56: bf00 nop
  29445. 800cc58: 370c adds r7, #12
  29446. 800cc5a: 46bd mov sp, r7
  29447. 800cc5c: f85d 7b04 ldr.w r7, [sp], #4
  29448. 800cc60: 4770 bx lr
  29449. 0800cc62 <HAL_TIM_IC_CaptureCallback>:
  29450. * @brief Input Capture callback in non-blocking mode
  29451. * @param htim TIM IC handle
  29452. * @retval None
  29453. */
  29454. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  29455. {
  29456. 800cc62: b480 push {r7}
  29457. 800cc64: b083 sub sp, #12
  29458. 800cc66: af00 add r7, sp, #0
  29459. 800cc68: 6078 str r0, [r7, #4]
  29460. UNUSED(htim);
  29461. /* NOTE : This function should not be modified, when the callback is needed,
  29462. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  29463. */
  29464. }
  29465. 800cc6a: bf00 nop
  29466. 800cc6c: 370c adds r7, #12
  29467. 800cc6e: 46bd mov sp, r7
  29468. 800cc70: f85d 7b04 ldr.w r7, [sp], #4
  29469. 800cc74: 4770 bx lr
  29470. 0800cc76 <HAL_TIM_PWM_PulseFinishedCallback>:
  29471. * @brief PWM Pulse finished callback in non-blocking mode
  29472. * @param htim TIM handle
  29473. * @retval None
  29474. */
  29475. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  29476. {
  29477. 800cc76: b480 push {r7}
  29478. 800cc78: b083 sub sp, #12
  29479. 800cc7a: af00 add r7, sp, #0
  29480. 800cc7c: 6078 str r0, [r7, #4]
  29481. UNUSED(htim);
  29482. /* NOTE : This function should not be modified, when the callback is needed,
  29483. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  29484. */
  29485. }
  29486. 800cc7e: bf00 nop
  29487. 800cc80: 370c adds r7, #12
  29488. 800cc82: 46bd mov sp, r7
  29489. 800cc84: f85d 7b04 ldr.w r7, [sp], #4
  29490. 800cc88: 4770 bx lr
  29491. 0800cc8a <HAL_TIM_TriggerCallback>:
  29492. * @brief Hall Trigger detection callback in non-blocking mode
  29493. * @param htim TIM handle
  29494. * @retval None
  29495. */
  29496. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  29497. {
  29498. 800cc8a: b480 push {r7}
  29499. 800cc8c: b083 sub sp, #12
  29500. 800cc8e: af00 add r7, sp, #0
  29501. 800cc90: 6078 str r0, [r7, #4]
  29502. UNUSED(htim);
  29503. /* NOTE : This function should not be modified, when the callback is needed,
  29504. the HAL_TIM_TriggerCallback could be implemented in the user file
  29505. */
  29506. }
  29507. 800cc92: bf00 nop
  29508. 800cc94: 370c adds r7, #12
  29509. 800cc96: 46bd mov sp, r7
  29510. 800cc98: f85d 7b04 ldr.w r7, [sp], #4
  29511. 800cc9c: 4770 bx lr
  29512. ...
  29513. 0800cca0 <TIM_Base_SetConfig>:
  29514. * @param TIMx TIM peripheral
  29515. * @param Structure TIM Base configuration structure
  29516. * @retval None
  29517. */
  29518. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  29519. {
  29520. 800cca0: b480 push {r7}
  29521. 800cca2: b085 sub sp, #20
  29522. 800cca4: af00 add r7, sp, #0
  29523. 800cca6: 6078 str r0, [r7, #4]
  29524. 800cca8: 6039 str r1, [r7, #0]
  29525. uint32_t tmpcr1;
  29526. tmpcr1 = TIMx->CR1;
  29527. 800ccaa: 687b ldr r3, [r7, #4]
  29528. 800ccac: 681b ldr r3, [r3, #0]
  29529. 800ccae: 60fb str r3, [r7, #12]
  29530. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  29531. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  29532. 800ccb0: 687b ldr r3, [r7, #4]
  29533. 800ccb2: 4a46 ldr r2, [pc, #280] @ (800cdcc <TIM_Base_SetConfig+0x12c>)
  29534. 800ccb4: 4293 cmp r3, r2
  29535. 800ccb6: d013 beq.n 800cce0 <TIM_Base_SetConfig+0x40>
  29536. 800ccb8: 687b ldr r3, [r7, #4]
  29537. 800ccba: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29538. 800ccbe: d00f beq.n 800cce0 <TIM_Base_SetConfig+0x40>
  29539. 800ccc0: 687b ldr r3, [r7, #4]
  29540. 800ccc2: 4a43 ldr r2, [pc, #268] @ (800cdd0 <TIM_Base_SetConfig+0x130>)
  29541. 800ccc4: 4293 cmp r3, r2
  29542. 800ccc6: d00b beq.n 800cce0 <TIM_Base_SetConfig+0x40>
  29543. 800ccc8: 687b ldr r3, [r7, #4]
  29544. 800ccca: 4a42 ldr r2, [pc, #264] @ (800cdd4 <TIM_Base_SetConfig+0x134>)
  29545. 800cccc: 4293 cmp r3, r2
  29546. 800ccce: d007 beq.n 800cce0 <TIM_Base_SetConfig+0x40>
  29547. 800ccd0: 687b ldr r3, [r7, #4]
  29548. 800ccd2: 4a41 ldr r2, [pc, #260] @ (800cdd8 <TIM_Base_SetConfig+0x138>)
  29549. 800ccd4: 4293 cmp r3, r2
  29550. 800ccd6: d003 beq.n 800cce0 <TIM_Base_SetConfig+0x40>
  29551. 800ccd8: 687b ldr r3, [r7, #4]
  29552. 800ccda: 4a40 ldr r2, [pc, #256] @ (800cddc <TIM_Base_SetConfig+0x13c>)
  29553. 800ccdc: 4293 cmp r3, r2
  29554. 800ccde: d108 bne.n 800ccf2 <TIM_Base_SetConfig+0x52>
  29555. {
  29556. /* Select the Counter Mode */
  29557. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  29558. 800cce0: 68fb ldr r3, [r7, #12]
  29559. 800cce2: f023 0370 bic.w r3, r3, #112 @ 0x70
  29560. 800cce6: 60fb str r3, [r7, #12]
  29561. tmpcr1 |= Structure->CounterMode;
  29562. 800cce8: 683b ldr r3, [r7, #0]
  29563. 800ccea: 685b ldr r3, [r3, #4]
  29564. 800ccec: 68fa ldr r2, [r7, #12]
  29565. 800ccee: 4313 orrs r3, r2
  29566. 800ccf0: 60fb str r3, [r7, #12]
  29567. }
  29568. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  29569. 800ccf2: 687b ldr r3, [r7, #4]
  29570. 800ccf4: 4a35 ldr r2, [pc, #212] @ (800cdcc <TIM_Base_SetConfig+0x12c>)
  29571. 800ccf6: 4293 cmp r3, r2
  29572. 800ccf8: d01f beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29573. 800ccfa: 687b ldr r3, [r7, #4]
  29574. 800ccfc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29575. 800cd00: d01b beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29576. 800cd02: 687b ldr r3, [r7, #4]
  29577. 800cd04: 4a32 ldr r2, [pc, #200] @ (800cdd0 <TIM_Base_SetConfig+0x130>)
  29578. 800cd06: 4293 cmp r3, r2
  29579. 800cd08: d017 beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29580. 800cd0a: 687b ldr r3, [r7, #4]
  29581. 800cd0c: 4a31 ldr r2, [pc, #196] @ (800cdd4 <TIM_Base_SetConfig+0x134>)
  29582. 800cd0e: 4293 cmp r3, r2
  29583. 800cd10: d013 beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29584. 800cd12: 687b ldr r3, [r7, #4]
  29585. 800cd14: 4a30 ldr r2, [pc, #192] @ (800cdd8 <TIM_Base_SetConfig+0x138>)
  29586. 800cd16: 4293 cmp r3, r2
  29587. 800cd18: d00f beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29588. 800cd1a: 687b ldr r3, [r7, #4]
  29589. 800cd1c: 4a2f ldr r2, [pc, #188] @ (800cddc <TIM_Base_SetConfig+0x13c>)
  29590. 800cd1e: 4293 cmp r3, r2
  29591. 800cd20: d00b beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29592. 800cd22: 687b ldr r3, [r7, #4]
  29593. 800cd24: 4a2e ldr r2, [pc, #184] @ (800cde0 <TIM_Base_SetConfig+0x140>)
  29594. 800cd26: 4293 cmp r3, r2
  29595. 800cd28: d007 beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29596. 800cd2a: 687b ldr r3, [r7, #4]
  29597. 800cd2c: 4a2d ldr r2, [pc, #180] @ (800cde4 <TIM_Base_SetConfig+0x144>)
  29598. 800cd2e: 4293 cmp r3, r2
  29599. 800cd30: d003 beq.n 800cd3a <TIM_Base_SetConfig+0x9a>
  29600. 800cd32: 687b ldr r3, [r7, #4]
  29601. 800cd34: 4a2c ldr r2, [pc, #176] @ (800cde8 <TIM_Base_SetConfig+0x148>)
  29602. 800cd36: 4293 cmp r3, r2
  29603. 800cd38: d108 bne.n 800cd4c <TIM_Base_SetConfig+0xac>
  29604. {
  29605. /* Set the clock division */
  29606. tmpcr1 &= ~TIM_CR1_CKD;
  29607. 800cd3a: 68fb ldr r3, [r7, #12]
  29608. 800cd3c: f423 7340 bic.w r3, r3, #768 @ 0x300
  29609. 800cd40: 60fb str r3, [r7, #12]
  29610. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  29611. 800cd42: 683b ldr r3, [r7, #0]
  29612. 800cd44: 68db ldr r3, [r3, #12]
  29613. 800cd46: 68fa ldr r2, [r7, #12]
  29614. 800cd48: 4313 orrs r3, r2
  29615. 800cd4a: 60fb str r3, [r7, #12]
  29616. }
  29617. /* Set the auto-reload preload */
  29618. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  29619. 800cd4c: 68fb ldr r3, [r7, #12]
  29620. 800cd4e: f023 0280 bic.w r2, r3, #128 @ 0x80
  29621. 800cd52: 683b ldr r3, [r7, #0]
  29622. 800cd54: 695b ldr r3, [r3, #20]
  29623. 800cd56: 4313 orrs r3, r2
  29624. 800cd58: 60fb str r3, [r7, #12]
  29625. TIMx->CR1 = tmpcr1;
  29626. 800cd5a: 687b ldr r3, [r7, #4]
  29627. 800cd5c: 68fa ldr r2, [r7, #12]
  29628. 800cd5e: 601a str r2, [r3, #0]
  29629. /* Set the Autoreload value */
  29630. TIMx->ARR = (uint32_t)Structure->Period ;
  29631. 800cd60: 683b ldr r3, [r7, #0]
  29632. 800cd62: 689a ldr r2, [r3, #8]
  29633. 800cd64: 687b ldr r3, [r7, #4]
  29634. 800cd66: 62da str r2, [r3, #44] @ 0x2c
  29635. /* Set the Prescaler value */
  29636. TIMx->PSC = Structure->Prescaler;
  29637. 800cd68: 683b ldr r3, [r7, #0]
  29638. 800cd6a: 681a ldr r2, [r3, #0]
  29639. 800cd6c: 687b ldr r3, [r7, #4]
  29640. 800cd6e: 629a str r2, [r3, #40] @ 0x28
  29641. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  29642. 800cd70: 687b ldr r3, [r7, #4]
  29643. 800cd72: 4a16 ldr r2, [pc, #88] @ (800cdcc <TIM_Base_SetConfig+0x12c>)
  29644. 800cd74: 4293 cmp r3, r2
  29645. 800cd76: d00f beq.n 800cd98 <TIM_Base_SetConfig+0xf8>
  29646. 800cd78: 687b ldr r3, [r7, #4]
  29647. 800cd7a: 4a18 ldr r2, [pc, #96] @ (800cddc <TIM_Base_SetConfig+0x13c>)
  29648. 800cd7c: 4293 cmp r3, r2
  29649. 800cd7e: d00b beq.n 800cd98 <TIM_Base_SetConfig+0xf8>
  29650. 800cd80: 687b ldr r3, [r7, #4]
  29651. 800cd82: 4a17 ldr r2, [pc, #92] @ (800cde0 <TIM_Base_SetConfig+0x140>)
  29652. 800cd84: 4293 cmp r3, r2
  29653. 800cd86: d007 beq.n 800cd98 <TIM_Base_SetConfig+0xf8>
  29654. 800cd88: 687b ldr r3, [r7, #4]
  29655. 800cd8a: 4a16 ldr r2, [pc, #88] @ (800cde4 <TIM_Base_SetConfig+0x144>)
  29656. 800cd8c: 4293 cmp r3, r2
  29657. 800cd8e: d003 beq.n 800cd98 <TIM_Base_SetConfig+0xf8>
  29658. 800cd90: 687b ldr r3, [r7, #4]
  29659. 800cd92: 4a15 ldr r2, [pc, #84] @ (800cde8 <TIM_Base_SetConfig+0x148>)
  29660. 800cd94: 4293 cmp r3, r2
  29661. 800cd96: d103 bne.n 800cda0 <TIM_Base_SetConfig+0x100>
  29662. {
  29663. /* Set the Repetition Counter value */
  29664. TIMx->RCR = Structure->RepetitionCounter;
  29665. 800cd98: 683b ldr r3, [r7, #0]
  29666. 800cd9a: 691a ldr r2, [r3, #16]
  29667. 800cd9c: 687b ldr r3, [r7, #4]
  29668. 800cd9e: 631a str r2, [r3, #48] @ 0x30
  29669. }
  29670. /* Generate an update event to reload the Prescaler
  29671. and the repetition counter (only for advanced timer) value immediately */
  29672. TIMx->EGR = TIM_EGR_UG;
  29673. 800cda0: 687b ldr r3, [r7, #4]
  29674. 800cda2: 2201 movs r2, #1
  29675. 800cda4: 615a str r2, [r3, #20]
  29676. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  29677. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  29678. 800cda6: 687b ldr r3, [r7, #4]
  29679. 800cda8: 691b ldr r3, [r3, #16]
  29680. 800cdaa: f003 0301 and.w r3, r3, #1
  29681. 800cdae: 2b01 cmp r3, #1
  29682. 800cdb0: d105 bne.n 800cdbe <TIM_Base_SetConfig+0x11e>
  29683. {
  29684. /* Clear the update flag */
  29685. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  29686. 800cdb2: 687b ldr r3, [r7, #4]
  29687. 800cdb4: 691b ldr r3, [r3, #16]
  29688. 800cdb6: f023 0201 bic.w r2, r3, #1
  29689. 800cdba: 687b ldr r3, [r7, #4]
  29690. 800cdbc: 611a str r2, [r3, #16]
  29691. }
  29692. }
  29693. 800cdbe: bf00 nop
  29694. 800cdc0: 3714 adds r7, #20
  29695. 800cdc2: 46bd mov sp, r7
  29696. 800cdc4: f85d 7b04 ldr.w r7, [sp], #4
  29697. 800cdc8: 4770 bx lr
  29698. 800cdca: bf00 nop
  29699. 800cdcc: 40010000 .word 0x40010000
  29700. 800cdd0: 40000400 .word 0x40000400
  29701. 800cdd4: 40000800 .word 0x40000800
  29702. 800cdd8: 40000c00 .word 0x40000c00
  29703. 800cddc: 40010400 .word 0x40010400
  29704. 800cde0: 40014000 .word 0x40014000
  29705. 800cde4: 40014400 .word 0x40014400
  29706. 800cde8: 40014800 .word 0x40014800
  29707. 0800cdec <HAL_TIMEx_CommutCallback>:
  29708. * @brief Commutation callback in non-blocking mode
  29709. * @param htim TIM handle
  29710. * @retval None
  29711. */
  29712. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  29713. {
  29714. 800cdec: b480 push {r7}
  29715. 800cdee: b083 sub sp, #12
  29716. 800cdf0: af00 add r7, sp, #0
  29717. 800cdf2: 6078 str r0, [r7, #4]
  29718. UNUSED(htim);
  29719. /* NOTE : This function should not be modified, when the callback is needed,
  29720. the HAL_TIMEx_CommutCallback could be implemented in the user file
  29721. */
  29722. }
  29723. 800cdf4: bf00 nop
  29724. 800cdf6: 370c adds r7, #12
  29725. 800cdf8: 46bd mov sp, r7
  29726. 800cdfa: f85d 7b04 ldr.w r7, [sp], #4
  29727. 800cdfe: 4770 bx lr
  29728. 0800ce00 <HAL_TIMEx_BreakCallback>:
  29729. * @brief Break detection callback in non-blocking mode
  29730. * @param htim TIM handle
  29731. * @retval None
  29732. */
  29733. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  29734. {
  29735. 800ce00: b480 push {r7}
  29736. 800ce02: b083 sub sp, #12
  29737. 800ce04: af00 add r7, sp, #0
  29738. 800ce06: 6078 str r0, [r7, #4]
  29739. UNUSED(htim);
  29740. /* NOTE : This function should not be modified, when the callback is needed,
  29741. the HAL_TIMEx_BreakCallback could be implemented in the user file
  29742. */
  29743. }
  29744. 800ce08: bf00 nop
  29745. 800ce0a: 370c adds r7, #12
  29746. 800ce0c: 46bd mov sp, r7
  29747. 800ce0e: f85d 7b04 ldr.w r7, [sp], #4
  29748. 800ce12: 4770 bx lr
  29749. 0800ce14 <HAL_TIMEx_Break2Callback>:
  29750. * @brief Break2 detection callback in non blocking mode
  29751. * @param htim: TIM handle
  29752. * @retval None
  29753. */
  29754. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  29755. {
  29756. 800ce14: b480 push {r7}
  29757. 800ce16: b083 sub sp, #12
  29758. 800ce18: af00 add r7, sp, #0
  29759. 800ce1a: 6078 str r0, [r7, #4]
  29760. UNUSED(htim);
  29761. /* NOTE : This function Should not be modified, when the callback is needed,
  29762. the HAL_TIMEx_Break2Callback could be implemented in the user file
  29763. */
  29764. }
  29765. 800ce1c: bf00 nop
  29766. 800ce1e: 370c adds r7, #12
  29767. 800ce20: 46bd mov sp, r7
  29768. 800ce22: f85d 7b04 ldr.w r7, [sp], #4
  29769. 800ce26: 4770 bx lr
  29770. 0800ce28 <HAL_UART_Init>:
  29771. * parameters in the UART_InitTypeDef and initialize the associated handle.
  29772. * @param huart UART handle.
  29773. * @retval HAL status
  29774. */
  29775. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  29776. {
  29777. 800ce28: b580 push {r7, lr}
  29778. 800ce2a: b082 sub sp, #8
  29779. 800ce2c: af00 add r7, sp, #0
  29780. 800ce2e: 6078 str r0, [r7, #4]
  29781. /* Check the UART handle allocation */
  29782. if (huart == NULL)
  29783. 800ce30: 687b ldr r3, [r7, #4]
  29784. 800ce32: 2b00 cmp r3, #0
  29785. 800ce34: d101 bne.n 800ce3a <HAL_UART_Init+0x12>
  29786. {
  29787. return HAL_ERROR;
  29788. 800ce36: 2301 movs r3, #1
  29789. 800ce38: e042 b.n 800cec0 <HAL_UART_Init+0x98>
  29790. {
  29791. /* Check the parameters */
  29792. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  29793. }
  29794. if (huart->gState == HAL_UART_STATE_RESET)
  29795. 800ce3a: 687b ldr r3, [r7, #4]
  29796. 800ce3c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  29797. 800ce40: 2b00 cmp r3, #0
  29798. 800ce42: d106 bne.n 800ce52 <HAL_UART_Init+0x2a>
  29799. {
  29800. /* Allocate lock resource and initialize it */
  29801. huart->Lock = HAL_UNLOCKED;
  29802. 800ce44: 687b ldr r3, [r7, #4]
  29803. 800ce46: 2200 movs r2, #0
  29804. 800ce48: f883 2084 strb.w r2, [r3, #132] @ 0x84
  29805. /* Init the low level hardware */
  29806. huart->MspInitCallback(huart);
  29807. #else
  29808. /* Init the low level hardware : GPIO, CLOCK */
  29809. HAL_UART_MspInit(huart);
  29810. 800ce4c: 6878 ldr r0, [r7, #4]
  29811. 800ce4e: f7f6 fadf bl 8003410 <HAL_UART_MspInit>
  29812. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  29813. }
  29814. huart->gState = HAL_UART_STATE_BUSY;
  29815. 800ce52: 687b ldr r3, [r7, #4]
  29816. 800ce54: 2224 movs r2, #36 @ 0x24
  29817. 800ce56: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  29818. __HAL_UART_DISABLE(huart);
  29819. 800ce5a: 687b ldr r3, [r7, #4]
  29820. 800ce5c: 681b ldr r3, [r3, #0]
  29821. 800ce5e: 681a ldr r2, [r3, #0]
  29822. 800ce60: 687b ldr r3, [r7, #4]
  29823. 800ce62: 681b ldr r3, [r3, #0]
  29824. 800ce64: f022 0201 bic.w r2, r2, #1
  29825. 800ce68: 601a str r2, [r3, #0]
  29826. /* Perform advanced settings configuration */
  29827. /* For some items, configuration requires to be done prior TE and RE bits are set */
  29828. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  29829. 800ce6a: 687b ldr r3, [r7, #4]
  29830. 800ce6c: 6a9b ldr r3, [r3, #40] @ 0x28
  29831. 800ce6e: 2b00 cmp r3, #0
  29832. 800ce70: d002 beq.n 800ce78 <HAL_UART_Init+0x50>
  29833. {
  29834. UART_AdvFeatureConfig(huart);
  29835. 800ce72: 6878 ldr r0, [r7, #4]
  29836. 800ce74: f001 f9e8 bl 800e248 <UART_AdvFeatureConfig>
  29837. }
  29838. /* Set the UART Communication parameters */
  29839. if (UART_SetConfig(huart) == HAL_ERROR)
  29840. 800ce78: 6878 ldr r0, [r7, #4]
  29841. 800ce7a: f000 fc7d bl 800d778 <UART_SetConfig>
  29842. 800ce7e: 4603 mov r3, r0
  29843. 800ce80: 2b01 cmp r3, #1
  29844. 800ce82: d101 bne.n 800ce88 <HAL_UART_Init+0x60>
  29845. {
  29846. return HAL_ERROR;
  29847. 800ce84: 2301 movs r3, #1
  29848. 800ce86: e01b b.n 800cec0 <HAL_UART_Init+0x98>
  29849. }
  29850. /* In asynchronous mode, the following bits must be kept cleared:
  29851. - LINEN and CLKEN bits in the USART_CR2 register,
  29852. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  29853. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  29854. 800ce88: 687b ldr r3, [r7, #4]
  29855. 800ce8a: 681b ldr r3, [r3, #0]
  29856. 800ce8c: 685a ldr r2, [r3, #4]
  29857. 800ce8e: 687b ldr r3, [r7, #4]
  29858. 800ce90: 681b ldr r3, [r3, #0]
  29859. 800ce92: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  29860. 800ce96: 605a str r2, [r3, #4]
  29861. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  29862. 800ce98: 687b ldr r3, [r7, #4]
  29863. 800ce9a: 681b ldr r3, [r3, #0]
  29864. 800ce9c: 689a ldr r2, [r3, #8]
  29865. 800ce9e: 687b ldr r3, [r7, #4]
  29866. 800cea0: 681b ldr r3, [r3, #0]
  29867. 800cea2: f022 022a bic.w r2, r2, #42 @ 0x2a
  29868. 800cea6: 609a str r2, [r3, #8]
  29869. __HAL_UART_ENABLE(huart);
  29870. 800cea8: 687b ldr r3, [r7, #4]
  29871. 800ceaa: 681b ldr r3, [r3, #0]
  29872. 800ceac: 681a ldr r2, [r3, #0]
  29873. 800ceae: 687b ldr r3, [r7, #4]
  29874. 800ceb0: 681b ldr r3, [r3, #0]
  29875. 800ceb2: f042 0201 orr.w r2, r2, #1
  29876. 800ceb6: 601a str r2, [r3, #0]
  29877. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  29878. return (UART_CheckIdleState(huart));
  29879. 800ceb8: 6878 ldr r0, [r7, #4]
  29880. 800ceba: f001 fa67 bl 800e38c <UART_CheckIdleState>
  29881. 800cebe: 4603 mov r3, r0
  29882. }
  29883. 800cec0: 4618 mov r0, r3
  29884. 800cec2: 3708 adds r7, #8
  29885. 800cec4: 46bd mov sp, r7
  29886. 800cec6: bd80 pop {r7, pc}
  29887. 0800cec8 <HAL_UART_Transmit_IT>:
  29888. * @param pData Pointer to data buffer (u8 or u16 data elements).
  29889. * @param Size Amount of data elements (u8 or u16) to be sent.
  29890. * @retval HAL status
  29891. */
  29892. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  29893. {
  29894. 800cec8: b480 push {r7}
  29895. 800ceca: b091 sub sp, #68 @ 0x44
  29896. 800cecc: af00 add r7, sp, #0
  29897. 800cece: 60f8 str r0, [r7, #12]
  29898. 800ced0: 60b9 str r1, [r7, #8]
  29899. 800ced2: 4613 mov r3, r2
  29900. 800ced4: 80fb strh r3, [r7, #6]
  29901. /* Check that a Tx process is not already ongoing */
  29902. if (huart->gState == HAL_UART_STATE_READY)
  29903. 800ced6: 68fb ldr r3, [r7, #12]
  29904. 800ced8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  29905. 800cedc: 2b20 cmp r3, #32
  29906. 800cede: d178 bne.n 800cfd2 <HAL_UART_Transmit_IT+0x10a>
  29907. {
  29908. if ((pData == NULL) || (Size == 0U))
  29909. 800cee0: 68bb ldr r3, [r7, #8]
  29910. 800cee2: 2b00 cmp r3, #0
  29911. 800cee4: d002 beq.n 800ceec <HAL_UART_Transmit_IT+0x24>
  29912. 800cee6: 88fb ldrh r3, [r7, #6]
  29913. 800cee8: 2b00 cmp r3, #0
  29914. 800ceea: d101 bne.n 800cef0 <HAL_UART_Transmit_IT+0x28>
  29915. {
  29916. return HAL_ERROR;
  29917. 800ceec: 2301 movs r3, #1
  29918. 800ceee: e071 b.n 800cfd4 <HAL_UART_Transmit_IT+0x10c>
  29919. }
  29920. huart->pTxBuffPtr = pData;
  29921. 800cef0: 68fb ldr r3, [r7, #12]
  29922. 800cef2: 68ba ldr r2, [r7, #8]
  29923. 800cef4: 651a str r2, [r3, #80] @ 0x50
  29924. huart->TxXferSize = Size;
  29925. 800cef6: 68fb ldr r3, [r7, #12]
  29926. 800cef8: 88fa ldrh r2, [r7, #6]
  29927. 800cefa: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  29928. huart->TxXferCount = Size;
  29929. 800cefe: 68fb ldr r3, [r7, #12]
  29930. 800cf00: 88fa ldrh r2, [r7, #6]
  29931. 800cf02: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  29932. huart->TxISR = NULL;
  29933. 800cf06: 68fb ldr r3, [r7, #12]
  29934. 800cf08: 2200 movs r2, #0
  29935. 800cf0a: 679a str r2, [r3, #120] @ 0x78
  29936. huart->ErrorCode = HAL_UART_ERROR_NONE;
  29937. 800cf0c: 68fb ldr r3, [r7, #12]
  29938. 800cf0e: 2200 movs r2, #0
  29939. 800cf10: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  29940. huart->gState = HAL_UART_STATE_BUSY_TX;
  29941. 800cf14: 68fb ldr r3, [r7, #12]
  29942. 800cf16: 2221 movs r2, #33 @ 0x21
  29943. 800cf18: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  29944. /* Configure Tx interrupt processing */
  29945. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  29946. 800cf1c: 68fb ldr r3, [r7, #12]
  29947. 800cf1e: 6e5b ldr r3, [r3, #100] @ 0x64
  29948. 800cf20: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29949. 800cf24: d12a bne.n 800cf7c <HAL_UART_Transmit_IT+0xb4>
  29950. {
  29951. /* Set the Tx ISR function pointer according to the data word length */
  29952. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  29953. 800cf26: 68fb ldr r3, [r7, #12]
  29954. 800cf28: 689b ldr r3, [r3, #8]
  29955. 800cf2a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29956. 800cf2e: d107 bne.n 800cf40 <HAL_UART_Transmit_IT+0x78>
  29957. 800cf30: 68fb ldr r3, [r7, #12]
  29958. 800cf32: 691b ldr r3, [r3, #16]
  29959. 800cf34: 2b00 cmp r3, #0
  29960. 800cf36: d103 bne.n 800cf40 <HAL_UART_Transmit_IT+0x78>
  29961. {
  29962. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  29963. 800cf38: 68fb ldr r3, [r7, #12]
  29964. 800cf3a: 4a29 ldr r2, [pc, #164] @ (800cfe0 <HAL_UART_Transmit_IT+0x118>)
  29965. 800cf3c: 679a str r2, [r3, #120] @ 0x78
  29966. 800cf3e: e002 b.n 800cf46 <HAL_UART_Transmit_IT+0x7e>
  29967. }
  29968. else
  29969. {
  29970. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  29971. 800cf40: 68fb ldr r3, [r7, #12]
  29972. 800cf42: 4a28 ldr r2, [pc, #160] @ (800cfe4 <HAL_UART_Transmit_IT+0x11c>)
  29973. 800cf44: 679a str r2, [r3, #120] @ 0x78
  29974. }
  29975. /* Enable the TX FIFO threshold interrupt */
  29976. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  29977. 800cf46: 68fb ldr r3, [r7, #12]
  29978. 800cf48: 681b ldr r3, [r3, #0]
  29979. 800cf4a: 3308 adds r3, #8
  29980. 800cf4c: 62bb str r3, [r7, #40] @ 0x28
  29981. */
  29982. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  29983. {
  29984. uint32_t result;
  29985. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  29986. 800cf4e: 6abb ldr r3, [r7, #40] @ 0x28
  29987. 800cf50: e853 3f00 ldrex r3, [r3]
  29988. 800cf54: 627b str r3, [r7, #36] @ 0x24
  29989. return(result);
  29990. 800cf56: 6a7b ldr r3, [r7, #36] @ 0x24
  29991. 800cf58: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  29992. 800cf5c: 63bb str r3, [r7, #56] @ 0x38
  29993. 800cf5e: 68fb ldr r3, [r7, #12]
  29994. 800cf60: 681b ldr r3, [r3, #0]
  29995. 800cf62: 3308 adds r3, #8
  29996. 800cf64: 6bba ldr r2, [r7, #56] @ 0x38
  29997. 800cf66: 637a str r2, [r7, #52] @ 0x34
  29998. 800cf68: 633b str r3, [r7, #48] @ 0x30
  29999. */
  30000. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  30001. {
  30002. uint32_t result;
  30003. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30004. 800cf6a: 6b39 ldr r1, [r7, #48] @ 0x30
  30005. 800cf6c: 6b7a ldr r2, [r7, #52] @ 0x34
  30006. 800cf6e: e841 2300 strex r3, r2, [r1]
  30007. 800cf72: 62fb str r3, [r7, #44] @ 0x2c
  30008. return(result);
  30009. 800cf74: 6afb ldr r3, [r7, #44] @ 0x2c
  30010. 800cf76: 2b00 cmp r3, #0
  30011. 800cf78: d1e5 bne.n 800cf46 <HAL_UART_Transmit_IT+0x7e>
  30012. 800cf7a: e028 b.n 800cfce <HAL_UART_Transmit_IT+0x106>
  30013. }
  30014. else
  30015. {
  30016. /* Set the Tx ISR function pointer according to the data word length */
  30017. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  30018. 800cf7c: 68fb ldr r3, [r7, #12]
  30019. 800cf7e: 689b ldr r3, [r3, #8]
  30020. 800cf80: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30021. 800cf84: d107 bne.n 800cf96 <HAL_UART_Transmit_IT+0xce>
  30022. 800cf86: 68fb ldr r3, [r7, #12]
  30023. 800cf88: 691b ldr r3, [r3, #16]
  30024. 800cf8a: 2b00 cmp r3, #0
  30025. 800cf8c: d103 bne.n 800cf96 <HAL_UART_Transmit_IT+0xce>
  30026. {
  30027. huart->TxISR = UART_TxISR_16BIT;
  30028. 800cf8e: 68fb ldr r3, [r7, #12]
  30029. 800cf90: 4a15 ldr r2, [pc, #84] @ (800cfe8 <HAL_UART_Transmit_IT+0x120>)
  30030. 800cf92: 679a str r2, [r3, #120] @ 0x78
  30031. 800cf94: e002 b.n 800cf9c <HAL_UART_Transmit_IT+0xd4>
  30032. }
  30033. else
  30034. {
  30035. huart->TxISR = UART_TxISR_8BIT;
  30036. 800cf96: 68fb ldr r3, [r7, #12]
  30037. 800cf98: 4a14 ldr r2, [pc, #80] @ (800cfec <HAL_UART_Transmit_IT+0x124>)
  30038. 800cf9a: 679a str r2, [r3, #120] @ 0x78
  30039. }
  30040. /* Enable the Transmit Data Register Empty interrupt */
  30041. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  30042. 800cf9c: 68fb ldr r3, [r7, #12]
  30043. 800cf9e: 681b ldr r3, [r3, #0]
  30044. 800cfa0: 617b str r3, [r7, #20]
  30045. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30046. 800cfa2: 697b ldr r3, [r7, #20]
  30047. 800cfa4: e853 3f00 ldrex r3, [r3]
  30048. 800cfa8: 613b str r3, [r7, #16]
  30049. return(result);
  30050. 800cfaa: 693b ldr r3, [r7, #16]
  30051. 800cfac: f043 0380 orr.w r3, r3, #128 @ 0x80
  30052. 800cfb0: 63fb str r3, [r7, #60] @ 0x3c
  30053. 800cfb2: 68fb ldr r3, [r7, #12]
  30054. 800cfb4: 681b ldr r3, [r3, #0]
  30055. 800cfb6: 461a mov r2, r3
  30056. 800cfb8: 6bfb ldr r3, [r7, #60] @ 0x3c
  30057. 800cfba: 623b str r3, [r7, #32]
  30058. 800cfbc: 61fa str r2, [r7, #28]
  30059. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30060. 800cfbe: 69f9 ldr r1, [r7, #28]
  30061. 800cfc0: 6a3a ldr r2, [r7, #32]
  30062. 800cfc2: e841 2300 strex r3, r2, [r1]
  30063. 800cfc6: 61bb str r3, [r7, #24]
  30064. return(result);
  30065. 800cfc8: 69bb ldr r3, [r7, #24]
  30066. 800cfca: 2b00 cmp r3, #0
  30067. 800cfcc: d1e6 bne.n 800cf9c <HAL_UART_Transmit_IT+0xd4>
  30068. }
  30069. return HAL_OK;
  30070. 800cfce: 2300 movs r3, #0
  30071. 800cfd0: e000 b.n 800cfd4 <HAL_UART_Transmit_IT+0x10c>
  30072. }
  30073. else
  30074. {
  30075. return HAL_BUSY;
  30076. 800cfd2: 2302 movs r3, #2
  30077. }
  30078. }
  30079. 800cfd4: 4618 mov r0, r3
  30080. 800cfd6: 3744 adds r7, #68 @ 0x44
  30081. 800cfd8: 46bd mov sp, r7
  30082. 800cfda: f85d 7b04 ldr.w r7, [sp], #4
  30083. 800cfde: 4770 bx lr
  30084. 800cfe0: 0800eb53 .word 0x0800eb53
  30085. 800cfe4: 0800ea73 .word 0x0800ea73
  30086. 800cfe8: 0800e9b1 .word 0x0800e9b1
  30087. 800cfec: 0800e8f9 .word 0x0800e8f9
  30088. 0800cff0 <HAL_UART_IRQHandler>:
  30089. * @brief Handle UART interrupt request.
  30090. * @param huart UART handle.
  30091. * @retval None
  30092. */
  30093. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  30094. {
  30095. 800cff0: b580 push {r7, lr}
  30096. 800cff2: b0ba sub sp, #232 @ 0xe8
  30097. 800cff4: af00 add r7, sp, #0
  30098. 800cff6: 6078 str r0, [r7, #4]
  30099. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  30100. 800cff8: 687b ldr r3, [r7, #4]
  30101. 800cffa: 681b ldr r3, [r3, #0]
  30102. 800cffc: 69db ldr r3, [r3, #28]
  30103. 800cffe: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  30104. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  30105. 800d002: 687b ldr r3, [r7, #4]
  30106. 800d004: 681b ldr r3, [r3, #0]
  30107. 800d006: 681b ldr r3, [r3, #0]
  30108. 800d008: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  30109. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  30110. 800d00c: 687b ldr r3, [r7, #4]
  30111. 800d00e: 681b ldr r3, [r3, #0]
  30112. 800d010: 689b ldr r3, [r3, #8]
  30113. 800d012: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  30114. uint32_t errorflags;
  30115. uint32_t errorcode;
  30116. /* If no error occurs */
  30117. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  30118. 800d016: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  30119. 800d01a: f640 030f movw r3, #2063 @ 0x80f
  30120. 800d01e: 4013 ands r3, r2
  30121. 800d020: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  30122. if (errorflags == 0U)
  30123. 800d024: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  30124. 800d028: 2b00 cmp r3, #0
  30125. 800d02a: d11b bne.n 800d064 <HAL_UART_IRQHandler+0x74>
  30126. {
  30127. /* UART in mode Receiver ---------------------------------------------------*/
  30128. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  30129. 800d02c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30130. 800d030: f003 0320 and.w r3, r3, #32
  30131. 800d034: 2b00 cmp r3, #0
  30132. 800d036: d015 beq.n 800d064 <HAL_UART_IRQHandler+0x74>
  30133. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  30134. 800d038: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30135. 800d03c: f003 0320 and.w r3, r3, #32
  30136. 800d040: 2b00 cmp r3, #0
  30137. 800d042: d105 bne.n 800d050 <HAL_UART_IRQHandler+0x60>
  30138. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  30139. 800d044: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30140. 800d048: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  30141. 800d04c: 2b00 cmp r3, #0
  30142. 800d04e: d009 beq.n 800d064 <HAL_UART_IRQHandler+0x74>
  30143. {
  30144. if (huart->RxISR != NULL)
  30145. 800d050: 687b ldr r3, [r7, #4]
  30146. 800d052: 6f5b ldr r3, [r3, #116] @ 0x74
  30147. 800d054: 2b00 cmp r3, #0
  30148. 800d056: f000 8377 beq.w 800d748 <HAL_UART_IRQHandler+0x758>
  30149. {
  30150. huart->RxISR(huart);
  30151. 800d05a: 687b ldr r3, [r7, #4]
  30152. 800d05c: 6f5b ldr r3, [r3, #116] @ 0x74
  30153. 800d05e: 6878 ldr r0, [r7, #4]
  30154. 800d060: 4798 blx r3
  30155. }
  30156. return;
  30157. 800d062: e371 b.n 800d748 <HAL_UART_IRQHandler+0x758>
  30158. }
  30159. }
  30160. /* If some errors occur */
  30161. if ((errorflags != 0U)
  30162. 800d064: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  30163. 800d068: 2b00 cmp r3, #0
  30164. 800d06a: f000 8123 beq.w 800d2b4 <HAL_UART_IRQHandler+0x2c4>
  30165. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  30166. 800d06e: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  30167. 800d072: 4b8d ldr r3, [pc, #564] @ (800d2a8 <HAL_UART_IRQHandler+0x2b8>)
  30168. 800d074: 4013 ands r3, r2
  30169. 800d076: 2b00 cmp r3, #0
  30170. 800d078: d106 bne.n 800d088 <HAL_UART_IRQHandler+0x98>
  30171. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  30172. 800d07a: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  30173. 800d07e: 4b8b ldr r3, [pc, #556] @ (800d2ac <HAL_UART_IRQHandler+0x2bc>)
  30174. 800d080: 4013 ands r3, r2
  30175. 800d082: 2b00 cmp r3, #0
  30176. 800d084: f000 8116 beq.w 800d2b4 <HAL_UART_IRQHandler+0x2c4>
  30177. {
  30178. /* UART parity error interrupt occurred -------------------------------------*/
  30179. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  30180. 800d088: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30181. 800d08c: f003 0301 and.w r3, r3, #1
  30182. 800d090: 2b00 cmp r3, #0
  30183. 800d092: d011 beq.n 800d0b8 <HAL_UART_IRQHandler+0xc8>
  30184. 800d094: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30185. 800d098: f403 7380 and.w r3, r3, #256 @ 0x100
  30186. 800d09c: 2b00 cmp r3, #0
  30187. 800d09e: d00b beq.n 800d0b8 <HAL_UART_IRQHandler+0xc8>
  30188. {
  30189. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  30190. 800d0a0: 687b ldr r3, [r7, #4]
  30191. 800d0a2: 681b ldr r3, [r3, #0]
  30192. 800d0a4: 2201 movs r2, #1
  30193. 800d0a6: 621a str r2, [r3, #32]
  30194. huart->ErrorCode |= HAL_UART_ERROR_PE;
  30195. 800d0a8: 687b ldr r3, [r7, #4]
  30196. 800d0aa: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30197. 800d0ae: f043 0201 orr.w r2, r3, #1
  30198. 800d0b2: 687b ldr r3, [r7, #4]
  30199. 800d0b4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30200. }
  30201. /* UART frame error interrupt occurred --------------------------------------*/
  30202. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  30203. 800d0b8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30204. 800d0bc: f003 0302 and.w r3, r3, #2
  30205. 800d0c0: 2b00 cmp r3, #0
  30206. 800d0c2: d011 beq.n 800d0e8 <HAL_UART_IRQHandler+0xf8>
  30207. 800d0c4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30208. 800d0c8: f003 0301 and.w r3, r3, #1
  30209. 800d0cc: 2b00 cmp r3, #0
  30210. 800d0ce: d00b beq.n 800d0e8 <HAL_UART_IRQHandler+0xf8>
  30211. {
  30212. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  30213. 800d0d0: 687b ldr r3, [r7, #4]
  30214. 800d0d2: 681b ldr r3, [r3, #0]
  30215. 800d0d4: 2202 movs r2, #2
  30216. 800d0d6: 621a str r2, [r3, #32]
  30217. huart->ErrorCode |= HAL_UART_ERROR_FE;
  30218. 800d0d8: 687b ldr r3, [r7, #4]
  30219. 800d0da: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30220. 800d0de: f043 0204 orr.w r2, r3, #4
  30221. 800d0e2: 687b ldr r3, [r7, #4]
  30222. 800d0e4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30223. }
  30224. /* UART noise error interrupt occurred --------------------------------------*/
  30225. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  30226. 800d0e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30227. 800d0ec: f003 0304 and.w r3, r3, #4
  30228. 800d0f0: 2b00 cmp r3, #0
  30229. 800d0f2: d011 beq.n 800d118 <HAL_UART_IRQHandler+0x128>
  30230. 800d0f4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30231. 800d0f8: f003 0301 and.w r3, r3, #1
  30232. 800d0fc: 2b00 cmp r3, #0
  30233. 800d0fe: d00b beq.n 800d118 <HAL_UART_IRQHandler+0x128>
  30234. {
  30235. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  30236. 800d100: 687b ldr r3, [r7, #4]
  30237. 800d102: 681b ldr r3, [r3, #0]
  30238. 800d104: 2204 movs r2, #4
  30239. 800d106: 621a str r2, [r3, #32]
  30240. huart->ErrorCode |= HAL_UART_ERROR_NE;
  30241. 800d108: 687b ldr r3, [r7, #4]
  30242. 800d10a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30243. 800d10e: f043 0202 orr.w r2, r3, #2
  30244. 800d112: 687b ldr r3, [r7, #4]
  30245. 800d114: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30246. }
  30247. /* UART Over-Run interrupt occurred -----------------------------------------*/
  30248. if (((isrflags & USART_ISR_ORE) != 0U)
  30249. 800d118: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30250. 800d11c: f003 0308 and.w r3, r3, #8
  30251. 800d120: 2b00 cmp r3, #0
  30252. 800d122: d017 beq.n 800d154 <HAL_UART_IRQHandler+0x164>
  30253. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  30254. 800d124: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30255. 800d128: f003 0320 and.w r3, r3, #32
  30256. 800d12c: 2b00 cmp r3, #0
  30257. 800d12e: d105 bne.n 800d13c <HAL_UART_IRQHandler+0x14c>
  30258. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  30259. 800d130: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  30260. 800d134: 4b5c ldr r3, [pc, #368] @ (800d2a8 <HAL_UART_IRQHandler+0x2b8>)
  30261. 800d136: 4013 ands r3, r2
  30262. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  30263. 800d138: 2b00 cmp r3, #0
  30264. 800d13a: d00b beq.n 800d154 <HAL_UART_IRQHandler+0x164>
  30265. {
  30266. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  30267. 800d13c: 687b ldr r3, [r7, #4]
  30268. 800d13e: 681b ldr r3, [r3, #0]
  30269. 800d140: 2208 movs r2, #8
  30270. 800d142: 621a str r2, [r3, #32]
  30271. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  30272. 800d144: 687b ldr r3, [r7, #4]
  30273. 800d146: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30274. 800d14a: f043 0208 orr.w r2, r3, #8
  30275. 800d14e: 687b ldr r3, [r7, #4]
  30276. 800d150: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30277. }
  30278. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  30279. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  30280. 800d154: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30281. 800d158: f403 6300 and.w r3, r3, #2048 @ 0x800
  30282. 800d15c: 2b00 cmp r3, #0
  30283. 800d15e: d012 beq.n 800d186 <HAL_UART_IRQHandler+0x196>
  30284. 800d160: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30285. 800d164: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  30286. 800d168: 2b00 cmp r3, #0
  30287. 800d16a: d00c beq.n 800d186 <HAL_UART_IRQHandler+0x196>
  30288. {
  30289. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  30290. 800d16c: 687b ldr r3, [r7, #4]
  30291. 800d16e: 681b ldr r3, [r3, #0]
  30292. 800d170: f44f 6200 mov.w r2, #2048 @ 0x800
  30293. 800d174: 621a str r2, [r3, #32]
  30294. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  30295. 800d176: 687b ldr r3, [r7, #4]
  30296. 800d178: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30297. 800d17c: f043 0220 orr.w r2, r3, #32
  30298. 800d180: 687b ldr r3, [r7, #4]
  30299. 800d182: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30300. }
  30301. /* Call UART Error Call back function if need be ----------------------------*/
  30302. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  30303. 800d186: 687b ldr r3, [r7, #4]
  30304. 800d188: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30305. 800d18c: 2b00 cmp r3, #0
  30306. 800d18e: f000 82dd beq.w 800d74c <HAL_UART_IRQHandler+0x75c>
  30307. {
  30308. /* UART in mode Receiver --------------------------------------------------*/
  30309. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  30310. 800d192: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30311. 800d196: f003 0320 and.w r3, r3, #32
  30312. 800d19a: 2b00 cmp r3, #0
  30313. 800d19c: d013 beq.n 800d1c6 <HAL_UART_IRQHandler+0x1d6>
  30314. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  30315. 800d19e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30316. 800d1a2: f003 0320 and.w r3, r3, #32
  30317. 800d1a6: 2b00 cmp r3, #0
  30318. 800d1a8: d105 bne.n 800d1b6 <HAL_UART_IRQHandler+0x1c6>
  30319. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  30320. 800d1aa: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30321. 800d1ae: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  30322. 800d1b2: 2b00 cmp r3, #0
  30323. 800d1b4: d007 beq.n 800d1c6 <HAL_UART_IRQHandler+0x1d6>
  30324. {
  30325. if (huart->RxISR != NULL)
  30326. 800d1b6: 687b ldr r3, [r7, #4]
  30327. 800d1b8: 6f5b ldr r3, [r3, #116] @ 0x74
  30328. 800d1ba: 2b00 cmp r3, #0
  30329. 800d1bc: d003 beq.n 800d1c6 <HAL_UART_IRQHandler+0x1d6>
  30330. {
  30331. huart->RxISR(huart);
  30332. 800d1be: 687b ldr r3, [r7, #4]
  30333. 800d1c0: 6f5b ldr r3, [r3, #116] @ 0x74
  30334. 800d1c2: 6878 ldr r0, [r7, #4]
  30335. 800d1c4: 4798 blx r3
  30336. /* If Error is to be considered as blocking :
  30337. - Receiver Timeout error in Reception
  30338. - Overrun error in Reception
  30339. - any error occurs in DMA mode reception
  30340. */
  30341. errorcode = huart->ErrorCode;
  30342. 800d1c6: 687b ldr r3, [r7, #4]
  30343. 800d1c8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30344. 800d1cc: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  30345. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  30346. 800d1d0: 687b ldr r3, [r7, #4]
  30347. 800d1d2: 681b ldr r3, [r3, #0]
  30348. 800d1d4: 689b ldr r3, [r3, #8]
  30349. 800d1d6: f003 0340 and.w r3, r3, #64 @ 0x40
  30350. 800d1da: 2b40 cmp r3, #64 @ 0x40
  30351. 800d1dc: d005 beq.n 800d1ea <HAL_UART_IRQHandler+0x1fa>
  30352. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  30353. 800d1de: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  30354. 800d1e2: f003 0328 and.w r3, r3, #40 @ 0x28
  30355. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  30356. 800d1e6: 2b00 cmp r3, #0
  30357. 800d1e8: d054 beq.n 800d294 <HAL_UART_IRQHandler+0x2a4>
  30358. {
  30359. /* Blocking error : transfer is aborted
  30360. Set the UART state ready to be able to start again the process,
  30361. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  30362. UART_EndRxTransfer(huart);
  30363. 800d1ea: 6878 ldr r0, [r7, #4]
  30364. 800d1ec: f001 fb08 bl 800e800 <UART_EndRxTransfer>
  30365. /* Abort the UART DMA Rx channel if enabled */
  30366. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  30367. 800d1f0: 687b ldr r3, [r7, #4]
  30368. 800d1f2: 681b ldr r3, [r3, #0]
  30369. 800d1f4: 689b ldr r3, [r3, #8]
  30370. 800d1f6: f003 0340 and.w r3, r3, #64 @ 0x40
  30371. 800d1fa: 2b40 cmp r3, #64 @ 0x40
  30372. 800d1fc: d146 bne.n 800d28c <HAL_UART_IRQHandler+0x29c>
  30373. {
  30374. /* Disable the UART DMA Rx request if enabled */
  30375. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  30376. 800d1fe: 687b ldr r3, [r7, #4]
  30377. 800d200: 681b ldr r3, [r3, #0]
  30378. 800d202: 3308 adds r3, #8
  30379. 800d204: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  30380. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30381. 800d208: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  30382. 800d20c: e853 3f00 ldrex r3, [r3]
  30383. 800d210: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  30384. return(result);
  30385. 800d214: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  30386. 800d218: f023 0340 bic.w r3, r3, #64 @ 0x40
  30387. 800d21c: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  30388. 800d220: 687b ldr r3, [r7, #4]
  30389. 800d222: 681b ldr r3, [r3, #0]
  30390. 800d224: 3308 adds r3, #8
  30391. 800d226: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  30392. 800d22a: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  30393. 800d22e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  30394. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30395. 800d232: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  30396. 800d236: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  30397. 800d23a: e841 2300 strex r3, r2, [r1]
  30398. 800d23e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  30399. return(result);
  30400. 800d242: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  30401. 800d246: 2b00 cmp r3, #0
  30402. 800d248: d1d9 bne.n 800d1fe <HAL_UART_IRQHandler+0x20e>
  30403. /* Abort the UART DMA Rx channel */
  30404. if (huart->hdmarx != NULL)
  30405. 800d24a: 687b ldr r3, [r7, #4]
  30406. 800d24c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30407. 800d250: 2b00 cmp r3, #0
  30408. 800d252: d017 beq.n 800d284 <HAL_UART_IRQHandler+0x294>
  30409. {
  30410. /* Set the UART DMA Abort callback :
  30411. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  30412. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  30413. 800d254: 687b ldr r3, [r7, #4]
  30414. 800d256: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30415. 800d25a: 4a15 ldr r2, [pc, #84] @ (800d2b0 <HAL_UART_IRQHandler+0x2c0>)
  30416. 800d25c: 651a str r2, [r3, #80] @ 0x50
  30417. /* Abort DMA RX */
  30418. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  30419. 800d25e: 687b ldr r3, [r7, #4]
  30420. 800d260: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30421. 800d264: 4618 mov r0, r3
  30422. 800d266: f7f9 f915 bl 8006494 <HAL_DMA_Abort_IT>
  30423. 800d26a: 4603 mov r3, r0
  30424. 800d26c: 2b00 cmp r3, #0
  30425. 800d26e: d019 beq.n 800d2a4 <HAL_UART_IRQHandler+0x2b4>
  30426. {
  30427. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  30428. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  30429. 800d270: 687b ldr r3, [r7, #4]
  30430. 800d272: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30431. 800d276: 6d1b ldr r3, [r3, #80] @ 0x50
  30432. 800d278: 687a ldr r2, [r7, #4]
  30433. 800d27a: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  30434. 800d27e: 4610 mov r0, r2
  30435. 800d280: 4798 blx r3
  30436. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  30437. 800d282: e00f b.n 800d2a4 <HAL_UART_IRQHandler+0x2b4>
  30438. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30439. /*Call registered error callback*/
  30440. huart->ErrorCallback(huart);
  30441. #else
  30442. /*Call legacy weak error callback*/
  30443. HAL_UART_ErrorCallback(huart);
  30444. 800d284: 6878 ldr r0, [r7, #4]
  30445. 800d286: f000 fa6d bl 800d764 <HAL_UART_ErrorCallback>
  30446. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  30447. 800d28a: e00b b.n 800d2a4 <HAL_UART_IRQHandler+0x2b4>
  30448. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30449. /*Call registered error callback*/
  30450. huart->ErrorCallback(huart);
  30451. #else
  30452. /*Call legacy weak error callback*/
  30453. HAL_UART_ErrorCallback(huart);
  30454. 800d28c: 6878 ldr r0, [r7, #4]
  30455. 800d28e: f000 fa69 bl 800d764 <HAL_UART_ErrorCallback>
  30456. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  30457. 800d292: e007 b.n 800d2a4 <HAL_UART_IRQHandler+0x2b4>
  30458. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30459. /*Call registered error callback*/
  30460. huart->ErrorCallback(huart);
  30461. #else
  30462. /*Call legacy weak error callback*/
  30463. HAL_UART_ErrorCallback(huart);
  30464. 800d294: 6878 ldr r0, [r7, #4]
  30465. 800d296: f000 fa65 bl 800d764 <HAL_UART_ErrorCallback>
  30466. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  30467. huart->ErrorCode = HAL_UART_ERROR_NONE;
  30468. 800d29a: 687b ldr r3, [r7, #4]
  30469. 800d29c: 2200 movs r2, #0
  30470. 800d29e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30471. }
  30472. }
  30473. return;
  30474. 800d2a2: e253 b.n 800d74c <HAL_UART_IRQHandler+0x75c>
  30475. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  30476. 800d2a4: bf00 nop
  30477. return;
  30478. 800d2a6: e251 b.n 800d74c <HAL_UART_IRQHandler+0x75c>
  30479. 800d2a8: 10000001 .word 0x10000001
  30480. 800d2ac: 04000120 .word 0x04000120
  30481. 800d2b0: 0800e8cd .word 0x0800e8cd
  30482. } /* End if some error occurs */
  30483. /* Check current reception Mode :
  30484. If Reception till IDLE event has been selected : */
  30485. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  30486. 800d2b4: 687b ldr r3, [r7, #4]
  30487. 800d2b6: 6edb ldr r3, [r3, #108] @ 0x6c
  30488. 800d2b8: 2b01 cmp r3, #1
  30489. 800d2ba: f040 81e7 bne.w 800d68c <HAL_UART_IRQHandler+0x69c>
  30490. && ((isrflags & USART_ISR_IDLE) != 0U)
  30491. 800d2be: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30492. 800d2c2: f003 0310 and.w r3, r3, #16
  30493. 800d2c6: 2b00 cmp r3, #0
  30494. 800d2c8: f000 81e0 beq.w 800d68c <HAL_UART_IRQHandler+0x69c>
  30495. && ((cr1its & USART_ISR_IDLE) != 0U))
  30496. 800d2cc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30497. 800d2d0: f003 0310 and.w r3, r3, #16
  30498. 800d2d4: 2b00 cmp r3, #0
  30499. 800d2d6: f000 81d9 beq.w 800d68c <HAL_UART_IRQHandler+0x69c>
  30500. {
  30501. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  30502. 800d2da: 687b ldr r3, [r7, #4]
  30503. 800d2dc: 681b ldr r3, [r3, #0]
  30504. 800d2de: 2210 movs r2, #16
  30505. 800d2e0: 621a str r2, [r3, #32]
  30506. /* Check if DMA mode is enabled in UART */
  30507. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  30508. 800d2e2: 687b ldr r3, [r7, #4]
  30509. 800d2e4: 681b ldr r3, [r3, #0]
  30510. 800d2e6: 689b ldr r3, [r3, #8]
  30511. 800d2e8: f003 0340 and.w r3, r3, #64 @ 0x40
  30512. 800d2ec: 2b40 cmp r3, #64 @ 0x40
  30513. 800d2ee: f040 8151 bne.w 800d594 <HAL_UART_IRQHandler+0x5a4>
  30514. {
  30515. /* DMA mode enabled */
  30516. /* Check received length : If all expected data are received, do nothing,
  30517. (DMA cplt callback will be called).
  30518. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  30519. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  30520. 800d2f2: 687b ldr r3, [r7, #4]
  30521. 800d2f4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30522. 800d2f8: 681b ldr r3, [r3, #0]
  30523. 800d2fa: 4a96 ldr r2, [pc, #600] @ (800d554 <HAL_UART_IRQHandler+0x564>)
  30524. 800d2fc: 4293 cmp r3, r2
  30525. 800d2fe: d068 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30526. 800d300: 687b ldr r3, [r7, #4]
  30527. 800d302: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30528. 800d306: 681b ldr r3, [r3, #0]
  30529. 800d308: 4a93 ldr r2, [pc, #588] @ (800d558 <HAL_UART_IRQHandler+0x568>)
  30530. 800d30a: 4293 cmp r3, r2
  30531. 800d30c: d061 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30532. 800d30e: 687b ldr r3, [r7, #4]
  30533. 800d310: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30534. 800d314: 681b ldr r3, [r3, #0]
  30535. 800d316: 4a91 ldr r2, [pc, #580] @ (800d55c <HAL_UART_IRQHandler+0x56c>)
  30536. 800d318: 4293 cmp r3, r2
  30537. 800d31a: d05a beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30538. 800d31c: 687b ldr r3, [r7, #4]
  30539. 800d31e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30540. 800d322: 681b ldr r3, [r3, #0]
  30541. 800d324: 4a8e ldr r2, [pc, #568] @ (800d560 <HAL_UART_IRQHandler+0x570>)
  30542. 800d326: 4293 cmp r3, r2
  30543. 800d328: d053 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30544. 800d32a: 687b ldr r3, [r7, #4]
  30545. 800d32c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30546. 800d330: 681b ldr r3, [r3, #0]
  30547. 800d332: 4a8c ldr r2, [pc, #560] @ (800d564 <HAL_UART_IRQHandler+0x574>)
  30548. 800d334: 4293 cmp r3, r2
  30549. 800d336: d04c beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30550. 800d338: 687b ldr r3, [r7, #4]
  30551. 800d33a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30552. 800d33e: 681b ldr r3, [r3, #0]
  30553. 800d340: 4a89 ldr r2, [pc, #548] @ (800d568 <HAL_UART_IRQHandler+0x578>)
  30554. 800d342: 4293 cmp r3, r2
  30555. 800d344: d045 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30556. 800d346: 687b ldr r3, [r7, #4]
  30557. 800d348: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30558. 800d34c: 681b ldr r3, [r3, #0]
  30559. 800d34e: 4a87 ldr r2, [pc, #540] @ (800d56c <HAL_UART_IRQHandler+0x57c>)
  30560. 800d350: 4293 cmp r3, r2
  30561. 800d352: d03e beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30562. 800d354: 687b ldr r3, [r7, #4]
  30563. 800d356: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30564. 800d35a: 681b ldr r3, [r3, #0]
  30565. 800d35c: 4a84 ldr r2, [pc, #528] @ (800d570 <HAL_UART_IRQHandler+0x580>)
  30566. 800d35e: 4293 cmp r3, r2
  30567. 800d360: d037 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30568. 800d362: 687b ldr r3, [r7, #4]
  30569. 800d364: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30570. 800d368: 681b ldr r3, [r3, #0]
  30571. 800d36a: 4a82 ldr r2, [pc, #520] @ (800d574 <HAL_UART_IRQHandler+0x584>)
  30572. 800d36c: 4293 cmp r3, r2
  30573. 800d36e: d030 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30574. 800d370: 687b ldr r3, [r7, #4]
  30575. 800d372: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30576. 800d376: 681b ldr r3, [r3, #0]
  30577. 800d378: 4a7f ldr r2, [pc, #508] @ (800d578 <HAL_UART_IRQHandler+0x588>)
  30578. 800d37a: 4293 cmp r3, r2
  30579. 800d37c: d029 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30580. 800d37e: 687b ldr r3, [r7, #4]
  30581. 800d380: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30582. 800d384: 681b ldr r3, [r3, #0]
  30583. 800d386: 4a7d ldr r2, [pc, #500] @ (800d57c <HAL_UART_IRQHandler+0x58c>)
  30584. 800d388: 4293 cmp r3, r2
  30585. 800d38a: d022 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30586. 800d38c: 687b ldr r3, [r7, #4]
  30587. 800d38e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30588. 800d392: 681b ldr r3, [r3, #0]
  30589. 800d394: 4a7a ldr r2, [pc, #488] @ (800d580 <HAL_UART_IRQHandler+0x590>)
  30590. 800d396: 4293 cmp r3, r2
  30591. 800d398: d01b beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30592. 800d39a: 687b ldr r3, [r7, #4]
  30593. 800d39c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30594. 800d3a0: 681b ldr r3, [r3, #0]
  30595. 800d3a2: 4a78 ldr r2, [pc, #480] @ (800d584 <HAL_UART_IRQHandler+0x594>)
  30596. 800d3a4: 4293 cmp r3, r2
  30597. 800d3a6: d014 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30598. 800d3a8: 687b ldr r3, [r7, #4]
  30599. 800d3aa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30600. 800d3ae: 681b ldr r3, [r3, #0]
  30601. 800d3b0: 4a75 ldr r2, [pc, #468] @ (800d588 <HAL_UART_IRQHandler+0x598>)
  30602. 800d3b2: 4293 cmp r3, r2
  30603. 800d3b4: d00d beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30604. 800d3b6: 687b ldr r3, [r7, #4]
  30605. 800d3b8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30606. 800d3bc: 681b ldr r3, [r3, #0]
  30607. 800d3be: 4a73 ldr r2, [pc, #460] @ (800d58c <HAL_UART_IRQHandler+0x59c>)
  30608. 800d3c0: 4293 cmp r3, r2
  30609. 800d3c2: d006 beq.n 800d3d2 <HAL_UART_IRQHandler+0x3e2>
  30610. 800d3c4: 687b ldr r3, [r7, #4]
  30611. 800d3c6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30612. 800d3ca: 681b ldr r3, [r3, #0]
  30613. 800d3cc: 4a70 ldr r2, [pc, #448] @ (800d590 <HAL_UART_IRQHandler+0x5a0>)
  30614. 800d3ce: 4293 cmp r3, r2
  30615. 800d3d0: d106 bne.n 800d3e0 <HAL_UART_IRQHandler+0x3f0>
  30616. 800d3d2: 687b ldr r3, [r7, #4]
  30617. 800d3d4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30618. 800d3d8: 681b ldr r3, [r3, #0]
  30619. 800d3da: 685b ldr r3, [r3, #4]
  30620. 800d3dc: b29b uxth r3, r3
  30621. 800d3de: e005 b.n 800d3ec <HAL_UART_IRQHandler+0x3fc>
  30622. 800d3e0: 687b ldr r3, [r7, #4]
  30623. 800d3e2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30624. 800d3e6: 681b ldr r3, [r3, #0]
  30625. 800d3e8: 685b ldr r3, [r3, #4]
  30626. 800d3ea: b29b uxth r3, r3
  30627. 800d3ec: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  30628. if ((nb_remaining_rx_data > 0U)
  30629. 800d3f0: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  30630. 800d3f4: 2b00 cmp r3, #0
  30631. 800d3f6: f000 81ab beq.w 800d750 <HAL_UART_IRQHandler+0x760>
  30632. && (nb_remaining_rx_data < huart->RxXferSize))
  30633. 800d3fa: 687b ldr r3, [r7, #4]
  30634. 800d3fc: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  30635. 800d400: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  30636. 800d404: 429a cmp r2, r3
  30637. 800d406: f080 81a3 bcs.w 800d750 <HAL_UART_IRQHandler+0x760>
  30638. {
  30639. /* Reception is not complete */
  30640. huart->RxXferCount = nb_remaining_rx_data;
  30641. 800d40a: 687b ldr r3, [r7, #4]
  30642. 800d40c: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  30643. 800d410: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  30644. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  30645. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  30646. 800d414: 687b ldr r3, [r7, #4]
  30647. 800d416: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30648. 800d41a: 69db ldr r3, [r3, #28]
  30649. 800d41c: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30650. 800d420: f000 8087 beq.w 800d532 <HAL_UART_IRQHandler+0x542>
  30651. {
  30652. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  30653. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  30654. 800d424: 687b ldr r3, [r7, #4]
  30655. 800d426: 681b ldr r3, [r3, #0]
  30656. 800d428: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  30657. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30658. 800d42c: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  30659. 800d430: e853 3f00 ldrex r3, [r3]
  30660. 800d434: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  30661. return(result);
  30662. 800d438: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  30663. 800d43c: f423 7380 bic.w r3, r3, #256 @ 0x100
  30664. 800d440: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  30665. 800d444: 687b ldr r3, [r7, #4]
  30666. 800d446: 681b ldr r3, [r3, #0]
  30667. 800d448: 461a mov r2, r3
  30668. 800d44a: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  30669. 800d44e: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  30670. 800d452: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  30671. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30672. 800d456: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  30673. 800d45a: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  30674. 800d45e: e841 2300 strex r3, r2, [r1]
  30675. 800d462: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  30676. return(result);
  30677. 800d466: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  30678. 800d46a: 2b00 cmp r3, #0
  30679. 800d46c: d1da bne.n 800d424 <HAL_UART_IRQHandler+0x434>
  30680. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  30681. 800d46e: 687b ldr r3, [r7, #4]
  30682. 800d470: 681b ldr r3, [r3, #0]
  30683. 800d472: 3308 adds r3, #8
  30684. 800d474: 677b str r3, [r7, #116] @ 0x74
  30685. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30686. 800d476: 6f7b ldr r3, [r7, #116] @ 0x74
  30687. 800d478: e853 3f00 ldrex r3, [r3]
  30688. 800d47c: 673b str r3, [r7, #112] @ 0x70
  30689. return(result);
  30690. 800d47e: 6f3b ldr r3, [r7, #112] @ 0x70
  30691. 800d480: f023 0301 bic.w r3, r3, #1
  30692. 800d484: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  30693. 800d488: 687b ldr r3, [r7, #4]
  30694. 800d48a: 681b ldr r3, [r3, #0]
  30695. 800d48c: 3308 adds r3, #8
  30696. 800d48e: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  30697. 800d492: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  30698. 800d496: 67fb str r3, [r7, #124] @ 0x7c
  30699. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30700. 800d498: 6ff9 ldr r1, [r7, #124] @ 0x7c
  30701. 800d49a: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  30702. 800d49e: e841 2300 strex r3, r2, [r1]
  30703. 800d4a2: 67bb str r3, [r7, #120] @ 0x78
  30704. return(result);
  30705. 800d4a4: 6fbb ldr r3, [r7, #120] @ 0x78
  30706. 800d4a6: 2b00 cmp r3, #0
  30707. 800d4a8: d1e1 bne.n 800d46e <HAL_UART_IRQHandler+0x47e>
  30708. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  30709. in the UART CR3 register */
  30710. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  30711. 800d4aa: 687b ldr r3, [r7, #4]
  30712. 800d4ac: 681b ldr r3, [r3, #0]
  30713. 800d4ae: 3308 adds r3, #8
  30714. 800d4b0: 663b str r3, [r7, #96] @ 0x60
  30715. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30716. 800d4b2: 6e3b ldr r3, [r7, #96] @ 0x60
  30717. 800d4b4: e853 3f00 ldrex r3, [r3]
  30718. 800d4b8: 65fb str r3, [r7, #92] @ 0x5c
  30719. return(result);
  30720. 800d4ba: 6dfb ldr r3, [r7, #92] @ 0x5c
  30721. 800d4bc: f023 0340 bic.w r3, r3, #64 @ 0x40
  30722. 800d4c0: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  30723. 800d4c4: 687b ldr r3, [r7, #4]
  30724. 800d4c6: 681b ldr r3, [r3, #0]
  30725. 800d4c8: 3308 adds r3, #8
  30726. 800d4ca: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  30727. 800d4ce: 66fa str r2, [r7, #108] @ 0x6c
  30728. 800d4d0: 66bb str r3, [r7, #104] @ 0x68
  30729. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30730. 800d4d2: 6eb9 ldr r1, [r7, #104] @ 0x68
  30731. 800d4d4: 6efa ldr r2, [r7, #108] @ 0x6c
  30732. 800d4d6: e841 2300 strex r3, r2, [r1]
  30733. 800d4da: 667b str r3, [r7, #100] @ 0x64
  30734. return(result);
  30735. 800d4dc: 6e7b ldr r3, [r7, #100] @ 0x64
  30736. 800d4de: 2b00 cmp r3, #0
  30737. 800d4e0: d1e3 bne.n 800d4aa <HAL_UART_IRQHandler+0x4ba>
  30738. /* At end of Rx process, restore huart->RxState to Ready */
  30739. huart->RxState = HAL_UART_STATE_READY;
  30740. 800d4e2: 687b ldr r3, [r7, #4]
  30741. 800d4e4: 2220 movs r2, #32
  30742. 800d4e6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  30743. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  30744. 800d4ea: 687b ldr r3, [r7, #4]
  30745. 800d4ec: 2200 movs r2, #0
  30746. 800d4ee: 66da str r2, [r3, #108] @ 0x6c
  30747. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  30748. 800d4f0: 687b ldr r3, [r7, #4]
  30749. 800d4f2: 681b ldr r3, [r3, #0]
  30750. 800d4f4: 64fb str r3, [r7, #76] @ 0x4c
  30751. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30752. 800d4f6: 6cfb ldr r3, [r7, #76] @ 0x4c
  30753. 800d4f8: e853 3f00 ldrex r3, [r3]
  30754. 800d4fc: 64bb str r3, [r7, #72] @ 0x48
  30755. return(result);
  30756. 800d4fe: 6cbb ldr r3, [r7, #72] @ 0x48
  30757. 800d500: f023 0310 bic.w r3, r3, #16
  30758. 800d504: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  30759. 800d508: 687b ldr r3, [r7, #4]
  30760. 800d50a: 681b ldr r3, [r3, #0]
  30761. 800d50c: 461a mov r2, r3
  30762. 800d50e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  30763. 800d512: 65bb str r3, [r7, #88] @ 0x58
  30764. 800d514: 657a str r2, [r7, #84] @ 0x54
  30765. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30766. 800d516: 6d79 ldr r1, [r7, #84] @ 0x54
  30767. 800d518: 6dba ldr r2, [r7, #88] @ 0x58
  30768. 800d51a: e841 2300 strex r3, r2, [r1]
  30769. 800d51e: 653b str r3, [r7, #80] @ 0x50
  30770. return(result);
  30771. 800d520: 6d3b ldr r3, [r7, #80] @ 0x50
  30772. 800d522: 2b00 cmp r3, #0
  30773. 800d524: d1e4 bne.n 800d4f0 <HAL_UART_IRQHandler+0x500>
  30774. /* Last bytes received, so no need as the abort is immediate */
  30775. (void)HAL_DMA_Abort(huart->hdmarx);
  30776. 800d526: 687b ldr r3, [r7, #4]
  30777. 800d528: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30778. 800d52c: 4618 mov r0, r3
  30779. 800d52e: f7f8 fc93 bl 8005e58 <HAL_DMA_Abort>
  30780. }
  30781. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  30782. In this case, Rx Event type is Idle Event */
  30783. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  30784. 800d532: 687b ldr r3, [r7, #4]
  30785. 800d534: 2202 movs r2, #2
  30786. 800d536: 671a str r2, [r3, #112] @ 0x70
  30787. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30788. /*Call registered Rx Event callback*/
  30789. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  30790. #else
  30791. /*Call legacy weak Rx Event callback*/
  30792. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  30793. 800d538: 687b ldr r3, [r7, #4]
  30794. 800d53a: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  30795. 800d53e: 687b ldr r3, [r7, #4]
  30796. 800d540: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  30797. 800d544: b29b uxth r3, r3
  30798. 800d546: 1ad3 subs r3, r2, r3
  30799. 800d548: b29b uxth r3, r3
  30800. 800d54a: 4619 mov r1, r3
  30801. 800d54c: 6878 ldr r0, [r7, #4]
  30802. 800d54e: f7f6 fd61 bl 8004014 <HAL_UARTEx_RxEventCallback>
  30803. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  30804. }
  30805. return;
  30806. 800d552: e0fd b.n 800d750 <HAL_UART_IRQHandler+0x760>
  30807. 800d554: 40020010 .word 0x40020010
  30808. 800d558: 40020028 .word 0x40020028
  30809. 800d55c: 40020040 .word 0x40020040
  30810. 800d560: 40020058 .word 0x40020058
  30811. 800d564: 40020070 .word 0x40020070
  30812. 800d568: 40020088 .word 0x40020088
  30813. 800d56c: 400200a0 .word 0x400200a0
  30814. 800d570: 400200b8 .word 0x400200b8
  30815. 800d574: 40020410 .word 0x40020410
  30816. 800d578: 40020428 .word 0x40020428
  30817. 800d57c: 40020440 .word 0x40020440
  30818. 800d580: 40020458 .word 0x40020458
  30819. 800d584: 40020470 .word 0x40020470
  30820. 800d588: 40020488 .word 0x40020488
  30821. 800d58c: 400204a0 .word 0x400204a0
  30822. 800d590: 400204b8 .word 0x400204b8
  30823. else
  30824. {
  30825. /* DMA mode not enabled */
  30826. /* Check received length : If all expected data are received, do nothing.
  30827. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  30828. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  30829. 800d594: 687b ldr r3, [r7, #4]
  30830. 800d596: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  30831. 800d59a: 687b ldr r3, [r7, #4]
  30832. 800d59c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  30833. 800d5a0: b29b uxth r3, r3
  30834. 800d5a2: 1ad3 subs r3, r2, r3
  30835. 800d5a4: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  30836. if ((huart->RxXferCount > 0U)
  30837. 800d5a8: 687b ldr r3, [r7, #4]
  30838. 800d5aa: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  30839. 800d5ae: b29b uxth r3, r3
  30840. 800d5b0: 2b00 cmp r3, #0
  30841. 800d5b2: f000 80cf beq.w 800d754 <HAL_UART_IRQHandler+0x764>
  30842. && (nb_rx_data > 0U))
  30843. 800d5b6: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  30844. 800d5ba: 2b00 cmp r3, #0
  30845. 800d5bc: f000 80ca beq.w 800d754 <HAL_UART_IRQHandler+0x764>
  30846. {
  30847. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  30848. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  30849. 800d5c0: 687b ldr r3, [r7, #4]
  30850. 800d5c2: 681b ldr r3, [r3, #0]
  30851. 800d5c4: 63bb str r3, [r7, #56] @ 0x38
  30852. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30853. 800d5c6: 6bbb ldr r3, [r7, #56] @ 0x38
  30854. 800d5c8: e853 3f00 ldrex r3, [r3]
  30855. 800d5cc: 637b str r3, [r7, #52] @ 0x34
  30856. return(result);
  30857. 800d5ce: 6b7b ldr r3, [r7, #52] @ 0x34
  30858. 800d5d0: f423 7390 bic.w r3, r3, #288 @ 0x120
  30859. 800d5d4: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  30860. 800d5d8: 687b ldr r3, [r7, #4]
  30861. 800d5da: 681b ldr r3, [r3, #0]
  30862. 800d5dc: 461a mov r2, r3
  30863. 800d5de: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  30864. 800d5e2: 647b str r3, [r7, #68] @ 0x44
  30865. 800d5e4: 643a str r2, [r7, #64] @ 0x40
  30866. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30867. 800d5e6: 6c39 ldr r1, [r7, #64] @ 0x40
  30868. 800d5e8: 6c7a ldr r2, [r7, #68] @ 0x44
  30869. 800d5ea: e841 2300 strex r3, r2, [r1]
  30870. 800d5ee: 63fb str r3, [r7, #60] @ 0x3c
  30871. return(result);
  30872. 800d5f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  30873. 800d5f2: 2b00 cmp r3, #0
  30874. 800d5f4: d1e4 bne.n 800d5c0 <HAL_UART_IRQHandler+0x5d0>
  30875. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  30876. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  30877. 800d5f6: 687b ldr r3, [r7, #4]
  30878. 800d5f8: 681b ldr r3, [r3, #0]
  30879. 800d5fa: 3308 adds r3, #8
  30880. 800d5fc: 627b str r3, [r7, #36] @ 0x24
  30881. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30882. 800d5fe: 6a7b ldr r3, [r7, #36] @ 0x24
  30883. 800d600: e853 3f00 ldrex r3, [r3]
  30884. 800d604: 623b str r3, [r7, #32]
  30885. return(result);
  30886. 800d606: 6a3a ldr r2, [r7, #32]
  30887. 800d608: 4b55 ldr r3, [pc, #340] @ (800d760 <HAL_UART_IRQHandler+0x770>)
  30888. 800d60a: 4013 ands r3, r2
  30889. 800d60c: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  30890. 800d610: 687b ldr r3, [r7, #4]
  30891. 800d612: 681b ldr r3, [r3, #0]
  30892. 800d614: 3308 adds r3, #8
  30893. 800d616: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  30894. 800d61a: 633a str r2, [r7, #48] @ 0x30
  30895. 800d61c: 62fb str r3, [r7, #44] @ 0x2c
  30896. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30897. 800d61e: 6af9 ldr r1, [r7, #44] @ 0x2c
  30898. 800d620: 6b3a ldr r2, [r7, #48] @ 0x30
  30899. 800d622: e841 2300 strex r3, r2, [r1]
  30900. 800d626: 62bb str r3, [r7, #40] @ 0x28
  30901. return(result);
  30902. 800d628: 6abb ldr r3, [r7, #40] @ 0x28
  30903. 800d62a: 2b00 cmp r3, #0
  30904. 800d62c: d1e3 bne.n 800d5f6 <HAL_UART_IRQHandler+0x606>
  30905. /* Rx process is completed, restore huart->RxState to Ready */
  30906. huart->RxState = HAL_UART_STATE_READY;
  30907. 800d62e: 687b ldr r3, [r7, #4]
  30908. 800d630: 2220 movs r2, #32
  30909. 800d632: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  30910. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  30911. 800d636: 687b ldr r3, [r7, #4]
  30912. 800d638: 2200 movs r2, #0
  30913. 800d63a: 66da str r2, [r3, #108] @ 0x6c
  30914. /* Clear RxISR function pointer */
  30915. huart->RxISR = NULL;
  30916. 800d63c: 687b ldr r3, [r7, #4]
  30917. 800d63e: 2200 movs r2, #0
  30918. 800d640: 675a str r2, [r3, #116] @ 0x74
  30919. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  30920. 800d642: 687b ldr r3, [r7, #4]
  30921. 800d644: 681b ldr r3, [r3, #0]
  30922. 800d646: 613b str r3, [r7, #16]
  30923. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30924. 800d648: 693b ldr r3, [r7, #16]
  30925. 800d64a: e853 3f00 ldrex r3, [r3]
  30926. 800d64e: 60fb str r3, [r7, #12]
  30927. return(result);
  30928. 800d650: 68fb ldr r3, [r7, #12]
  30929. 800d652: f023 0310 bic.w r3, r3, #16
  30930. 800d656: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  30931. 800d65a: 687b ldr r3, [r7, #4]
  30932. 800d65c: 681b ldr r3, [r3, #0]
  30933. 800d65e: 461a mov r2, r3
  30934. 800d660: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  30935. 800d664: 61fb str r3, [r7, #28]
  30936. 800d666: 61ba str r2, [r7, #24]
  30937. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30938. 800d668: 69b9 ldr r1, [r7, #24]
  30939. 800d66a: 69fa ldr r2, [r7, #28]
  30940. 800d66c: e841 2300 strex r3, r2, [r1]
  30941. 800d670: 617b str r3, [r7, #20]
  30942. return(result);
  30943. 800d672: 697b ldr r3, [r7, #20]
  30944. 800d674: 2b00 cmp r3, #0
  30945. 800d676: d1e4 bne.n 800d642 <HAL_UART_IRQHandler+0x652>
  30946. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  30947. In this case, Rx Event type is Idle Event */
  30948. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  30949. 800d678: 687b ldr r3, [r7, #4]
  30950. 800d67a: 2202 movs r2, #2
  30951. 800d67c: 671a str r2, [r3, #112] @ 0x70
  30952. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30953. /*Call registered Rx complete callback*/
  30954. huart->RxEventCallback(huart, nb_rx_data);
  30955. #else
  30956. /*Call legacy weak Rx Event callback*/
  30957. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  30958. 800d67e: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  30959. 800d682: 4619 mov r1, r3
  30960. 800d684: 6878 ldr r0, [r7, #4]
  30961. 800d686: f7f6 fcc5 bl 8004014 <HAL_UARTEx_RxEventCallback>
  30962. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  30963. }
  30964. return;
  30965. 800d68a: e063 b.n 800d754 <HAL_UART_IRQHandler+0x764>
  30966. }
  30967. }
  30968. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  30969. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  30970. 800d68c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30971. 800d690: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  30972. 800d694: 2b00 cmp r3, #0
  30973. 800d696: d00e beq.n 800d6b6 <HAL_UART_IRQHandler+0x6c6>
  30974. 800d698: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30975. 800d69c: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  30976. 800d6a0: 2b00 cmp r3, #0
  30977. 800d6a2: d008 beq.n 800d6b6 <HAL_UART_IRQHandler+0x6c6>
  30978. {
  30979. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  30980. 800d6a4: 687b ldr r3, [r7, #4]
  30981. 800d6a6: 681b ldr r3, [r3, #0]
  30982. 800d6a8: f44f 1280 mov.w r2, #1048576 @ 0x100000
  30983. 800d6ac: 621a str r2, [r3, #32]
  30984. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  30985. /* Call registered Wakeup Callback */
  30986. huart->WakeupCallback(huart);
  30987. #else
  30988. /* Call legacy weak Wakeup Callback */
  30989. HAL_UARTEx_WakeupCallback(huart);
  30990. 800d6ae: 6878 ldr r0, [r7, #4]
  30991. 800d6b0: f002 f80c bl 800f6cc <HAL_UARTEx_WakeupCallback>
  30992. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  30993. return;
  30994. 800d6b4: e051 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  30995. }
  30996. /* UART in mode Transmitter ------------------------------------------------*/
  30997. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  30998. 800d6b6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30999. 800d6ba: f003 0380 and.w r3, r3, #128 @ 0x80
  31000. 800d6be: 2b00 cmp r3, #0
  31001. 800d6c0: d014 beq.n 800d6ec <HAL_UART_IRQHandler+0x6fc>
  31002. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  31003. 800d6c2: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31004. 800d6c6: f003 0380 and.w r3, r3, #128 @ 0x80
  31005. 800d6ca: 2b00 cmp r3, #0
  31006. 800d6cc: d105 bne.n 800d6da <HAL_UART_IRQHandler+0x6ea>
  31007. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  31008. 800d6ce: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31009. 800d6d2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  31010. 800d6d6: 2b00 cmp r3, #0
  31011. 800d6d8: d008 beq.n 800d6ec <HAL_UART_IRQHandler+0x6fc>
  31012. {
  31013. if (huart->TxISR != NULL)
  31014. 800d6da: 687b ldr r3, [r7, #4]
  31015. 800d6dc: 6f9b ldr r3, [r3, #120] @ 0x78
  31016. 800d6de: 2b00 cmp r3, #0
  31017. 800d6e0: d03a beq.n 800d758 <HAL_UART_IRQHandler+0x768>
  31018. {
  31019. huart->TxISR(huart);
  31020. 800d6e2: 687b ldr r3, [r7, #4]
  31021. 800d6e4: 6f9b ldr r3, [r3, #120] @ 0x78
  31022. 800d6e6: 6878 ldr r0, [r7, #4]
  31023. 800d6e8: 4798 blx r3
  31024. }
  31025. return;
  31026. 800d6ea: e035 b.n 800d758 <HAL_UART_IRQHandler+0x768>
  31027. }
  31028. /* UART in mode Transmitter (transmission end) -----------------------------*/
  31029. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  31030. 800d6ec: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31031. 800d6f0: f003 0340 and.w r3, r3, #64 @ 0x40
  31032. 800d6f4: 2b00 cmp r3, #0
  31033. 800d6f6: d009 beq.n 800d70c <HAL_UART_IRQHandler+0x71c>
  31034. 800d6f8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31035. 800d6fc: f003 0340 and.w r3, r3, #64 @ 0x40
  31036. 800d700: 2b00 cmp r3, #0
  31037. 800d702: d003 beq.n 800d70c <HAL_UART_IRQHandler+0x71c>
  31038. {
  31039. UART_EndTransmit_IT(huart);
  31040. 800d704: 6878 ldr r0, [r7, #4]
  31041. 800d706: f001 fa99 bl 800ec3c <UART_EndTransmit_IT>
  31042. return;
  31043. 800d70a: e026 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31044. }
  31045. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  31046. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  31047. 800d70c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31048. 800d710: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  31049. 800d714: 2b00 cmp r3, #0
  31050. 800d716: d009 beq.n 800d72c <HAL_UART_IRQHandler+0x73c>
  31051. 800d718: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31052. 800d71c: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  31053. 800d720: 2b00 cmp r3, #0
  31054. 800d722: d003 beq.n 800d72c <HAL_UART_IRQHandler+0x73c>
  31055. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31056. /* Call registered Tx Fifo Empty Callback */
  31057. huart->TxFifoEmptyCallback(huart);
  31058. #else
  31059. /* Call legacy weak Tx Fifo Empty Callback */
  31060. HAL_UARTEx_TxFifoEmptyCallback(huart);
  31061. 800d724: 6878 ldr r0, [r7, #4]
  31062. 800d726: f001 ffe5 bl 800f6f4 <HAL_UARTEx_TxFifoEmptyCallback>
  31063. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31064. return;
  31065. 800d72a: e016 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31066. }
  31067. /* UART RX Fifo Full occurred ----------------------------------------------*/
  31068. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  31069. 800d72c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31070. 800d730: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  31071. 800d734: 2b00 cmp r3, #0
  31072. 800d736: d010 beq.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31073. 800d738: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31074. 800d73c: 2b00 cmp r3, #0
  31075. 800d73e: da0c bge.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31076. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31077. /* Call registered Rx Fifo Full Callback */
  31078. huart->RxFifoFullCallback(huart);
  31079. #else
  31080. /* Call legacy weak Rx Fifo Full Callback */
  31081. HAL_UARTEx_RxFifoFullCallback(huart);
  31082. 800d740: 6878 ldr r0, [r7, #4]
  31083. 800d742: f001 ffcd bl 800f6e0 <HAL_UARTEx_RxFifoFullCallback>
  31084. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31085. return;
  31086. 800d746: e008 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31087. return;
  31088. 800d748: bf00 nop
  31089. 800d74a: e006 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31090. return;
  31091. 800d74c: bf00 nop
  31092. 800d74e: e004 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31093. return;
  31094. 800d750: bf00 nop
  31095. 800d752: e002 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31096. return;
  31097. 800d754: bf00 nop
  31098. 800d756: e000 b.n 800d75a <HAL_UART_IRQHandler+0x76a>
  31099. return;
  31100. 800d758: bf00 nop
  31101. }
  31102. }
  31103. 800d75a: 37e8 adds r7, #232 @ 0xe8
  31104. 800d75c: 46bd mov sp, r7
  31105. 800d75e: bd80 pop {r7, pc}
  31106. 800d760: effffffe .word 0xeffffffe
  31107. 0800d764 <HAL_UART_ErrorCallback>:
  31108. * @brief UART error callback.
  31109. * @param huart UART handle.
  31110. * @retval None
  31111. */
  31112. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  31113. {
  31114. 800d764: b480 push {r7}
  31115. 800d766: b083 sub sp, #12
  31116. 800d768: af00 add r7, sp, #0
  31117. 800d76a: 6078 str r0, [r7, #4]
  31118. UNUSED(huart);
  31119. /* NOTE : This function should not be modified, when the callback is needed,
  31120. the HAL_UART_ErrorCallback can be implemented in the user file.
  31121. */
  31122. }
  31123. 800d76c: bf00 nop
  31124. 800d76e: 370c adds r7, #12
  31125. 800d770: 46bd mov sp, r7
  31126. 800d772: f85d 7b04 ldr.w r7, [sp], #4
  31127. 800d776: 4770 bx lr
  31128. 0800d778 <UART_SetConfig>:
  31129. * @brief Configure the UART peripheral.
  31130. * @param huart UART handle.
  31131. * @retval HAL status
  31132. */
  31133. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  31134. {
  31135. 800d778: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  31136. 800d77c: b092 sub sp, #72 @ 0x48
  31137. 800d77e: af00 add r7, sp, #0
  31138. 800d780: 6178 str r0, [r7, #20]
  31139. uint32_t tmpreg;
  31140. uint16_t brrtemp;
  31141. UART_ClockSourceTypeDef clocksource;
  31142. uint32_t usartdiv;
  31143. HAL_StatusTypeDef ret = HAL_OK;
  31144. 800d782: 2300 movs r3, #0
  31145. 800d784: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31146. * the UART Word Length, Parity, Mode and oversampling:
  31147. * set the M bits according to huart->Init.WordLength value
  31148. * set PCE and PS bits according to huart->Init.Parity value
  31149. * set TE and RE bits according to huart->Init.Mode value
  31150. * set OVER8 bit according to huart->Init.OverSampling value */
  31151. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  31152. 800d788: 697b ldr r3, [r7, #20]
  31153. 800d78a: 689a ldr r2, [r3, #8]
  31154. 800d78c: 697b ldr r3, [r7, #20]
  31155. 800d78e: 691b ldr r3, [r3, #16]
  31156. 800d790: 431a orrs r2, r3
  31157. 800d792: 697b ldr r3, [r7, #20]
  31158. 800d794: 695b ldr r3, [r3, #20]
  31159. 800d796: 431a orrs r2, r3
  31160. 800d798: 697b ldr r3, [r7, #20]
  31161. 800d79a: 69db ldr r3, [r3, #28]
  31162. 800d79c: 4313 orrs r3, r2
  31163. 800d79e: 647b str r3, [r7, #68] @ 0x44
  31164. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  31165. 800d7a0: 697b ldr r3, [r7, #20]
  31166. 800d7a2: 681b ldr r3, [r3, #0]
  31167. 800d7a4: 681a ldr r2, [r3, #0]
  31168. 800d7a6: 4bbe ldr r3, [pc, #760] @ (800daa0 <UART_SetConfig+0x328>)
  31169. 800d7a8: 4013 ands r3, r2
  31170. 800d7aa: 697a ldr r2, [r7, #20]
  31171. 800d7ac: 6812 ldr r2, [r2, #0]
  31172. 800d7ae: 6c79 ldr r1, [r7, #68] @ 0x44
  31173. 800d7b0: 430b orrs r3, r1
  31174. 800d7b2: 6013 str r3, [r2, #0]
  31175. /*-------------------------- USART CR2 Configuration -----------------------*/
  31176. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  31177. * to huart->Init.StopBits value */
  31178. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  31179. 800d7b4: 697b ldr r3, [r7, #20]
  31180. 800d7b6: 681b ldr r3, [r3, #0]
  31181. 800d7b8: 685b ldr r3, [r3, #4]
  31182. 800d7ba: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  31183. 800d7be: 697b ldr r3, [r7, #20]
  31184. 800d7c0: 68da ldr r2, [r3, #12]
  31185. 800d7c2: 697b ldr r3, [r7, #20]
  31186. 800d7c4: 681b ldr r3, [r3, #0]
  31187. 800d7c6: 430a orrs r2, r1
  31188. 800d7c8: 605a str r2, [r3, #4]
  31189. /* Configure
  31190. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  31191. * to huart->Init.HwFlowCtl value
  31192. * - one-bit sampling method versus three samples' majority rule according
  31193. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  31194. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  31195. 800d7ca: 697b ldr r3, [r7, #20]
  31196. 800d7cc: 699b ldr r3, [r3, #24]
  31197. 800d7ce: 647b str r3, [r7, #68] @ 0x44
  31198. if (!(UART_INSTANCE_LOWPOWER(huart)))
  31199. 800d7d0: 697b ldr r3, [r7, #20]
  31200. 800d7d2: 681b ldr r3, [r3, #0]
  31201. 800d7d4: 4ab3 ldr r2, [pc, #716] @ (800daa4 <UART_SetConfig+0x32c>)
  31202. 800d7d6: 4293 cmp r3, r2
  31203. 800d7d8: d004 beq.n 800d7e4 <UART_SetConfig+0x6c>
  31204. {
  31205. tmpreg |= huart->Init.OneBitSampling;
  31206. 800d7da: 697b ldr r3, [r7, #20]
  31207. 800d7dc: 6a1b ldr r3, [r3, #32]
  31208. 800d7de: 6c7a ldr r2, [r7, #68] @ 0x44
  31209. 800d7e0: 4313 orrs r3, r2
  31210. 800d7e2: 647b str r3, [r7, #68] @ 0x44
  31211. }
  31212. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  31213. 800d7e4: 697b ldr r3, [r7, #20]
  31214. 800d7e6: 681b ldr r3, [r3, #0]
  31215. 800d7e8: 689a ldr r2, [r3, #8]
  31216. 800d7ea: 4baf ldr r3, [pc, #700] @ (800daa8 <UART_SetConfig+0x330>)
  31217. 800d7ec: 4013 ands r3, r2
  31218. 800d7ee: 697a ldr r2, [r7, #20]
  31219. 800d7f0: 6812 ldr r2, [r2, #0]
  31220. 800d7f2: 6c79 ldr r1, [r7, #68] @ 0x44
  31221. 800d7f4: 430b orrs r3, r1
  31222. 800d7f6: 6093 str r3, [r2, #8]
  31223. /*-------------------------- USART PRESC Configuration -----------------------*/
  31224. /* Configure
  31225. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  31226. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  31227. 800d7f8: 697b ldr r3, [r7, #20]
  31228. 800d7fa: 681b ldr r3, [r3, #0]
  31229. 800d7fc: 6adb ldr r3, [r3, #44] @ 0x2c
  31230. 800d7fe: f023 010f bic.w r1, r3, #15
  31231. 800d802: 697b ldr r3, [r7, #20]
  31232. 800d804: 6a5a ldr r2, [r3, #36] @ 0x24
  31233. 800d806: 697b ldr r3, [r7, #20]
  31234. 800d808: 681b ldr r3, [r3, #0]
  31235. 800d80a: 430a orrs r2, r1
  31236. 800d80c: 62da str r2, [r3, #44] @ 0x2c
  31237. /*-------------------------- USART BRR Configuration -----------------------*/
  31238. UART_GETCLOCKSOURCE(huart, clocksource);
  31239. 800d80e: 697b ldr r3, [r7, #20]
  31240. 800d810: 681b ldr r3, [r3, #0]
  31241. 800d812: 4aa6 ldr r2, [pc, #664] @ (800daac <UART_SetConfig+0x334>)
  31242. 800d814: 4293 cmp r3, r2
  31243. 800d816: d177 bne.n 800d908 <UART_SetConfig+0x190>
  31244. 800d818: 4ba5 ldr r3, [pc, #660] @ (800dab0 <UART_SetConfig+0x338>)
  31245. 800d81a: 6d5b ldr r3, [r3, #84] @ 0x54
  31246. 800d81c: f003 0338 and.w r3, r3, #56 @ 0x38
  31247. 800d820: 2b28 cmp r3, #40 @ 0x28
  31248. 800d822: d86d bhi.n 800d900 <UART_SetConfig+0x188>
  31249. 800d824: a201 add r2, pc, #4 @ (adr r2, 800d82c <UART_SetConfig+0xb4>)
  31250. 800d826: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31251. 800d82a: bf00 nop
  31252. 800d82c: 0800d8d1 .word 0x0800d8d1
  31253. 800d830: 0800d901 .word 0x0800d901
  31254. 800d834: 0800d901 .word 0x0800d901
  31255. 800d838: 0800d901 .word 0x0800d901
  31256. 800d83c: 0800d901 .word 0x0800d901
  31257. 800d840: 0800d901 .word 0x0800d901
  31258. 800d844: 0800d901 .word 0x0800d901
  31259. 800d848: 0800d901 .word 0x0800d901
  31260. 800d84c: 0800d8d9 .word 0x0800d8d9
  31261. 800d850: 0800d901 .word 0x0800d901
  31262. 800d854: 0800d901 .word 0x0800d901
  31263. 800d858: 0800d901 .word 0x0800d901
  31264. 800d85c: 0800d901 .word 0x0800d901
  31265. 800d860: 0800d901 .word 0x0800d901
  31266. 800d864: 0800d901 .word 0x0800d901
  31267. 800d868: 0800d901 .word 0x0800d901
  31268. 800d86c: 0800d8e1 .word 0x0800d8e1
  31269. 800d870: 0800d901 .word 0x0800d901
  31270. 800d874: 0800d901 .word 0x0800d901
  31271. 800d878: 0800d901 .word 0x0800d901
  31272. 800d87c: 0800d901 .word 0x0800d901
  31273. 800d880: 0800d901 .word 0x0800d901
  31274. 800d884: 0800d901 .word 0x0800d901
  31275. 800d888: 0800d901 .word 0x0800d901
  31276. 800d88c: 0800d8e9 .word 0x0800d8e9
  31277. 800d890: 0800d901 .word 0x0800d901
  31278. 800d894: 0800d901 .word 0x0800d901
  31279. 800d898: 0800d901 .word 0x0800d901
  31280. 800d89c: 0800d901 .word 0x0800d901
  31281. 800d8a0: 0800d901 .word 0x0800d901
  31282. 800d8a4: 0800d901 .word 0x0800d901
  31283. 800d8a8: 0800d901 .word 0x0800d901
  31284. 800d8ac: 0800d8f1 .word 0x0800d8f1
  31285. 800d8b0: 0800d901 .word 0x0800d901
  31286. 800d8b4: 0800d901 .word 0x0800d901
  31287. 800d8b8: 0800d901 .word 0x0800d901
  31288. 800d8bc: 0800d901 .word 0x0800d901
  31289. 800d8c0: 0800d901 .word 0x0800d901
  31290. 800d8c4: 0800d901 .word 0x0800d901
  31291. 800d8c8: 0800d901 .word 0x0800d901
  31292. 800d8cc: 0800d8f9 .word 0x0800d8f9
  31293. 800d8d0: 2301 movs r3, #1
  31294. 800d8d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31295. 800d8d6: e222 b.n 800dd1e <UART_SetConfig+0x5a6>
  31296. 800d8d8: 2304 movs r3, #4
  31297. 800d8da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31298. 800d8de: e21e b.n 800dd1e <UART_SetConfig+0x5a6>
  31299. 800d8e0: 2308 movs r3, #8
  31300. 800d8e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31301. 800d8e6: e21a b.n 800dd1e <UART_SetConfig+0x5a6>
  31302. 800d8e8: 2310 movs r3, #16
  31303. 800d8ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31304. 800d8ee: e216 b.n 800dd1e <UART_SetConfig+0x5a6>
  31305. 800d8f0: 2320 movs r3, #32
  31306. 800d8f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31307. 800d8f6: e212 b.n 800dd1e <UART_SetConfig+0x5a6>
  31308. 800d8f8: 2340 movs r3, #64 @ 0x40
  31309. 800d8fa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31310. 800d8fe: e20e b.n 800dd1e <UART_SetConfig+0x5a6>
  31311. 800d900: 2380 movs r3, #128 @ 0x80
  31312. 800d902: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31313. 800d906: e20a b.n 800dd1e <UART_SetConfig+0x5a6>
  31314. 800d908: 697b ldr r3, [r7, #20]
  31315. 800d90a: 681b ldr r3, [r3, #0]
  31316. 800d90c: 4a69 ldr r2, [pc, #420] @ (800dab4 <UART_SetConfig+0x33c>)
  31317. 800d90e: 4293 cmp r3, r2
  31318. 800d910: d130 bne.n 800d974 <UART_SetConfig+0x1fc>
  31319. 800d912: 4b67 ldr r3, [pc, #412] @ (800dab0 <UART_SetConfig+0x338>)
  31320. 800d914: 6d5b ldr r3, [r3, #84] @ 0x54
  31321. 800d916: f003 0307 and.w r3, r3, #7
  31322. 800d91a: 2b05 cmp r3, #5
  31323. 800d91c: d826 bhi.n 800d96c <UART_SetConfig+0x1f4>
  31324. 800d91e: a201 add r2, pc, #4 @ (adr r2, 800d924 <UART_SetConfig+0x1ac>)
  31325. 800d920: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31326. 800d924: 0800d93d .word 0x0800d93d
  31327. 800d928: 0800d945 .word 0x0800d945
  31328. 800d92c: 0800d94d .word 0x0800d94d
  31329. 800d930: 0800d955 .word 0x0800d955
  31330. 800d934: 0800d95d .word 0x0800d95d
  31331. 800d938: 0800d965 .word 0x0800d965
  31332. 800d93c: 2300 movs r3, #0
  31333. 800d93e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31334. 800d942: e1ec b.n 800dd1e <UART_SetConfig+0x5a6>
  31335. 800d944: 2304 movs r3, #4
  31336. 800d946: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31337. 800d94a: e1e8 b.n 800dd1e <UART_SetConfig+0x5a6>
  31338. 800d94c: 2308 movs r3, #8
  31339. 800d94e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31340. 800d952: e1e4 b.n 800dd1e <UART_SetConfig+0x5a6>
  31341. 800d954: 2310 movs r3, #16
  31342. 800d956: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31343. 800d95a: e1e0 b.n 800dd1e <UART_SetConfig+0x5a6>
  31344. 800d95c: 2320 movs r3, #32
  31345. 800d95e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31346. 800d962: e1dc b.n 800dd1e <UART_SetConfig+0x5a6>
  31347. 800d964: 2340 movs r3, #64 @ 0x40
  31348. 800d966: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31349. 800d96a: e1d8 b.n 800dd1e <UART_SetConfig+0x5a6>
  31350. 800d96c: 2380 movs r3, #128 @ 0x80
  31351. 800d96e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31352. 800d972: e1d4 b.n 800dd1e <UART_SetConfig+0x5a6>
  31353. 800d974: 697b ldr r3, [r7, #20]
  31354. 800d976: 681b ldr r3, [r3, #0]
  31355. 800d978: 4a4f ldr r2, [pc, #316] @ (800dab8 <UART_SetConfig+0x340>)
  31356. 800d97a: 4293 cmp r3, r2
  31357. 800d97c: d130 bne.n 800d9e0 <UART_SetConfig+0x268>
  31358. 800d97e: 4b4c ldr r3, [pc, #304] @ (800dab0 <UART_SetConfig+0x338>)
  31359. 800d980: 6d5b ldr r3, [r3, #84] @ 0x54
  31360. 800d982: f003 0307 and.w r3, r3, #7
  31361. 800d986: 2b05 cmp r3, #5
  31362. 800d988: d826 bhi.n 800d9d8 <UART_SetConfig+0x260>
  31363. 800d98a: a201 add r2, pc, #4 @ (adr r2, 800d990 <UART_SetConfig+0x218>)
  31364. 800d98c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31365. 800d990: 0800d9a9 .word 0x0800d9a9
  31366. 800d994: 0800d9b1 .word 0x0800d9b1
  31367. 800d998: 0800d9b9 .word 0x0800d9b9
  31368. 800d99c: 0800d9c1 .word 0x0800d9c1
  31369. 800d9a0: 0800d9c9 .word 0x0800d9c9
  31370. 800d9a4: 0800d9d1 .word 0x0800d9d1
  31371. 800d9a8: 2300 movs r3, #0
  31372. 800d9aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31373. 800d9ae: e1b6 b.n 800dd1e <UART_SetConfig+0x5a6>
  31374. 800d9b0: 2304 movs r3, #4
  31375. 800d9b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31376. 800d9b6: e1b2 b.n 800dd1e <UART_SetConfig+0x5a6>
  31377. 800d9b8: 2308 movs r3, #8
  31378. 800d9ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31379. 800d9be: e1ae b.n 800dd1e <UART_SetConfig+0x5a6>
  31380. 800d9c0: 2310 movs r3, #16
  31381. 800d9c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31382. 800d9c6: e1aa b.n 800dd1e <UART_SetConfig+0x5a6>
  31383. 800d9c8: 2320 movs r3, #32
  31384. 800d9ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31385. 800d9ce: e1a6 b.n 800dd1e <UART_SetConfig+0x5a6>
  31386. 800d9d0: 2340 movs r3, #64 @ 0x40
  31387. 800d9d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31388. 800d9d6: e1a2 b.n 800dd1e <UART_SetConfig+0x5a6>
  31389. 800d9d8: 2380 movs r3, #128 @ 0x80
  31390. 800d9da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31391. 800d9de: e19e b.n 800dd1e <UART_SetConfig+0x5a6>
  31392. 800d9e0: 697b ldr r3, [r7, #20]
  31393. 800d9e2: 681b ldr r3, [r3, #0]
  31394. 800d9e4: 4a35 ldr r2, [pc, #212] @ (800dabc <UART_SetConfig+0x344>)
  31395. 800d9e6: 4293 cmp r3, r2
  31396. 800d9e8: d130 bne.n 800da4c <UART_SetConfig+0x2d4>
  31397. 800d9ea: 4b31 ldr r3, [pc, #196] @ (800dab0 <UART_SetConfig+0x338>)
  31398. 800d9ec: 6d5b ldr r3, [r3, #84] @ 0x54
  31399. 800d9ee: f003 0307 and.w r3, r3, #7
  31400. 800d9f2: 2b05 cmp r3, #5
  31401. 800d9f4: d826 bhi.n 800da44 <UART_SetConfig+0x2cc>
  31402. 800d9f6: a201 add r2, pc, #4 @ (adr r2, 800d9fc <UART_SetConfig+0x284>)
  31403. 800d9f8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31404. 800d9fc: 0800da15 .word 0x0800da15
  31405. 800da00: 0800da1d .word 0x0800da1d
  31406. 800da04: 0800da25 .word 0x0800da25
  31407. 800da08: 0800da2d .word 0x0800da2d
  31408. 800da0c: 0800da35 .word 0x0800da35
  31409. 800da10: 0800da3d .word 0x0800da3d
  31410. 800da14: 2300 movs r3, #0
  31411. 800da16: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31412. 800da1a: e180 b.n 800dd1e <UART_SetConfig+0x5a6>
  31413. 800da1c: 2304 movs r3, #4
  31414. 800da1e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31415. 800da22: e17c b.n 800dd1e <UART_SetConfig+0x5a6>
  31416. 800da24: 2308 movs r3, #8
  31417. 800da26: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31418. 800da2a: e178 b.n 800dd1e <UART_SetConfig+0x5a6>
  31419. 800da2c: 2310 movs r3, #16
  31420. 800da2e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31421. 800da32: e174 b.n 800dd1e <UART_SetConfig+0x5a6>
  31422. 800da34: 2320 movs r3, #32
  31423. 800da36: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31424. 800da3a: e170 b.n 800dd1e <UART_SetConfig+0x5a6>
  31425. 800da3c: 2340 movs r3, #64 @ 0x40
  31426. 800da3e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31427. 800da42: e16c b.n 800dd1e <UART_SetConfig+0x5a6>
  31428. 800da44: 2380 movs r3, #128 @ 0x80
  31429. 800da46: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31430. 800da4a: e168 b.n 800dd1e <UART_SetConfig+0x5a6>
  31431. 800da4c: 697b ldr r3, [r7, #20]
  31432. 800da4e: 681b ldr r3, [r3, #0]
  31433. 800da50: 4a1b ldr r2, [pc, #108] @ (800dac0 <UART_SetConfig+0x348>)
  31434. 800da52: 4293 cmp r3, r2
  31435. 800da54: d142 bne.n 800dadc <UART_SetConfig+0x364>
  31436. 800da56: 4b16 ldr r3, [pc, #88] @ (800dab0 <UART_SetConfig+0x338>)
  31437. 800da58: 6d5b ldr r3, [r3, #84] @ 0x54
  31438. 800da5a: f003 0307 and.w r3, r3, #7
  31439. 800da5e: 2b05 cmp r3, #5
  31440. 800da60: d838 bhi.n 800dad4 <UART_SetConfig+0x35c>
  31441. 800da62: a201 add r2, pc, #4 @ (adr r2, 800da68 <UART_SetConfig+0x2f0>)
  31442. 800da64: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31443. 800da68: 0800da81 .word 0x0800da81
  31444. 800da6c: 0800da89 .word 0x0800da89
  31445. 800da70: 0800da91 .word 0x0800da91
  31446. 800da74: 0800da99 .word 0x0800da99
  31447. 800da78: 0800dac5 .word 0x0800dac5
  31448. 800da7c: 0800dacd .word 0x0800dacd
  31449. 800da80: 2300 movs r3, #0
  31450. 800da82: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31451. 800da86: e14a b.n 800dd1e <UART_SetConfig+0x5a6>
  31452. 800da88: 2304 movs r3, #4
  31453. 800da8a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31454. 800da8e: e146 b.n 800dd1e <UART_SetConfig+0x5a6>
  31455. 800da90: 2308 movs r3, #8
  31456. 800da92: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31457. 800da96: e142 b.n 800dd1e <UART_SetConfig+0x5a6>
  31458. 800da98: 2310 movs r3, #16
  31459. 800da9a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31460. 800da9e: e13e b.n 800dd1e <UART_SetConfig+0x5a6>
  31461. 800daa0: cfff69f3 .word 0xcfff69f3
  31462. 800daa4: 58000c00 .word 0x58000c00
  31463. 800daa8: 11fff4ff .word 0x11fff4ff
  31464. 800daac: 40011000 .word 0x40011000
  31465. 800dab0: 58024400 .word 0x58024400
  31466. 800dab4: 40004400 .word 0x40004400
  31467. 800dab8: 40004800 .word 0x40004800
  31468. 800dabc: 40004c00 .word 0x40004c00
  31469. 800dac0: 40005000 .word 0x40005000
  31470. 800dac4: 2320 movs r3, #32
  31471. 800dac6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31472. 800daca: e128 b.n 800dd1e <UART_SetConfig+0x5a6>
  31473. 800dacc: 2340 movs r3, #64 @ 0x40
  31474. 800dace: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31475. 800dad2: e124 b.n 800dd1e <UART_SetConfig+0x5a6>
  31476. 800dad4: 2380 movs r3, #128 @ 0x80
  31477. 800dad6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31478. 800dada: e120 b.n 800dd1e <UART_SetConfig+0x5a6>
  31479. 800dadc: 697b ldr r3, [r7, #20]
  31480. 800dade: 681b ldr r3, [r3, #0]
  31481. 800dae0: 4acb ldr r2, [pc, #812] @ (800de10 <UART_SetConfig+0x698>)
  31482. 800dae2: 4293 cmp r3, r2
  31483. 800dae4: d176 bne.n 800dbd4 <UART_SetConfig+0x45c>
  31484. 800dae6: 4bcb ldr r3, [pc, #812] @ (800de14 <UART_SetConfig+0x69c>)
  31485. 800dae8: 6d5b ldr r3, [r3, #84] @ 0x54
  31486. 800daea: f003 0338 and.w r3, r3, #56 @ 0x38
  31487. 800daee: 2b28 cmp r3, #40 @ 0x28
  31488. 800daf0: d86c bhi.n 800dbcc <UART_SetConfig+0x454>
  31489. 800daf2: a201 add r2, pc, #4 @ (adr r2, 800daf8 <UART_SetConfig+0x380>)
  31490. 800daf4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31491. 800daf8: 0800db9d .word 0x0800db9d
  31492. 800dafc: 0800dbcd .word 0x0800dbcd
  31493. 800db00: 0800dbcd .word 0x0800dbcd
  31494. 800db04: 0800dbcd .word 0x0800dbcd
  31495. 800db08: 0800dbcd .word 0x0800dbcd
  31496. 800db0c: 0800dbcd .word 0x0800dbcd
  31497. 800db10: 0800dbcd .word 0x0800dbcd
  31498. 800db14: 0800dbcd .word 0x0800dbcd
  31499. 800db18: 0800dba5 .word 0x0800dba5
  31500. 800db1c: 0800dbcd .word 0x0800dbcd
  31501. 800db20: 0800dbcd .word 0x0800dbcd
  31502. 800db24: 0800dbcd .word 0x0800dbcd
  31503. 800db28: 0800dbcd .word 0x0800dbcd
  31504. 800db2c: 0800dbcd .word 0x0800dbcd
  31505. 800db30: 0800dbcd .word 0x0800dbcd
  31506. 800db34: 0800dbcd .word 0x0800dbcd
  31507. 800db38: 0800dbad .word 0x0800dbad
  31508. 800db3c: 0800dbcd .word 0x0800dbcd
  31509. 800db40: 0800dbcd .word 0x0800dbcd
  31510. 800db44: 0800dbcd .word 0x0800dbcd
  31511. 800db48: 0800dbcd .word 0x0800dbcd
  31512. 800db4c: 0800dbcd .word 0x0800dbcd
  31513. 800db50: 0800dbcd .word 0x0800dbcd
  31514. 800db54: 0800dbcd .word 0x0800dbcd
  31515. 800db58: 0800dbb5 .word 0x0800dbb5
  31516. 800db5c: 0800dbcd .word 0x0800dbcd
  31517. 800db60: 0800dbcd .word 0x0800dbcd
  31518. 800db64: 0800dbcd .word 0x0800dbcd
  31519. 800db68: 0800dbcd .word 0x0800dbcd
  31520. 800db6c: 0800dbcd .word 0x0800dbcd
  31521. 800db70: 0800dbcd .word 0x0800dbcd
  31522. 800db74: 0800dbcd .word 0x0800dbcd
  31523. 800db78: 0800dbbd .word 0x0800dbbd
  31524. 800db7c: 0800dbcd .word 0x0800dbcd
  31525. 800db80: 0800dbcd .word 0x0800dbcd
  31526. 800db84: 0800dbcd .word 0x0800dbcd
  31527. 800db88: 0800dbcd .word 0x0800dbcd
  31528. 800db8c: 0800dbcd .word 0x0800dbcd
  31529. 800db90: 0800dbcd .word 0x0800dbcd
  31530. 800db94: 0800dbcd .word 0x0800dbcd
  31531. 800db98: 0800dbc5 .word 0x0800dbc5
  31532. 800db9c: 2301 movs r3, #1
  31533. 800db9e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31534. 800dba2: e0bc b.n 800dd1e <UART_SetConfig+0x5a6>
  31535. 800dba4: 2304 movs r3, #4
  31536. 800dba6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31537. 800dbaa: e0b8 b.n 800dd1e <UART_SetConfig+0x5a6>
  31538. 800dbac: 2308 movs r3, #8
  31539. 800dbae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31540. 800dbb2: e0b4 b.n 800dd1e <UART_SetConfig+0x5a6>
  31541. 800dbb4: 2310 movs r3, #16
  31542. 800dbb6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31543. 800dbba: e0b0 b.n 800dd1e <UART_SetConfig+0x5a6>
  31544. 800dbbc: 2320 movs r3, #32
  31545. 800dbbe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31546. 800dbc2: e0ac b.n 800dd1e <UART_SetConfig+0x5a6>
  31547. 800dbc4: 2340 movs r3, #64 @ 0x40
  31548. 800dbc6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31549. 800dbca: e0a8 b.n 800dd1e <UART_SetConfig+0x5a6>
  31550. 800dbcc: 2380 movs r3, #128 @ 0x80
  31551. 800dbce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31552. 800dbd2: e0a4 b.n 800dd1e <UART_SetConfig+0x5a6>
  31553. 800dbd4: 697b ldr r3, [r7, #20]
  31554. 800dbd6: 681b ldr r3, [r3, #0]
  31555. 800dbd8: 4a8f ldr r2, [pc, #572] @ (800de18 <UART_SetConfig+0x6a0>)
  31556. 800dbda: 4293 cmp r3, r2
  31557. 800dbdc: d130 bne.n 800dc40 <UART_SetConfig+0x4c8>
  31558. 800dbde: 4b8d ldr r3, [pc, #564] @ (800de14 <UART_SetConfig+0x69c>)
  31559. 800dbe0: 6d5b ldr r3, [r3, #84] @ 0x54
  31560. 800dbe2: f003 0307 and.w r3, r3, #7
  31561. 800dbe6: 2b05 cmp r3, #5
  31562. 800dbe8: d826 bhi.n 800dc38 <UART_SetConfig+0x4c0>
  31563. 800dbea: a201 add r2, pc, #4 @ (adr r2, 800dbf0 <UART_SetConfig+0x478>)
  31564. 800dbec: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31565. 800dbf0: 0800dc09 .word 0x0800dc09
  31566. 800dbf4: 0800dc11 .word 0x0800dc11
  31567. 800dbf8: 0800dc19 .word 0x0800dc19
  31568. 800dbfc: 0800dc21 .word 0x0800dc21
  31569. 800dc00: 0800dc29 .word 0x0800dc29
  31570. 800dc04: 0800dc31 .word 0x0800dc31
  31571. 800dc08: 2300 movs r3, #0
  31572. 800dc0a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31573. 800dc0e: e086 b.n 800dd1e <UART_SetConfig+0x5a6>
  31574. 800dc10: 2304 movs r3, #4
  31575. 800dc12: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31576. 800dc16: e082 b.n 800dd1e <UART_SetConfig+0x5a6>
  31577. 800dc18: 2308 movs r3, #8
  31578. 800dc1a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31579. 800dc1e: e07e b.n 800dd1e <UART_SetConfig+0x5a6>
  31580. 800dc20: 2310 movs r3, #16
  31581. 800dc22: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31582. 800dc26: e07a b.n 800dd1e <UART_SetConfig+0x5a6>
  31583. 800dc28: 2320 movs r3, #32
  31584. 800dc2a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31585. 800dc2e: e076 b.n 800dd1e <UART_SetConfig+0x5a6>
  31586. 800dc30: 2340 movs r3, #64 @ 0x40
  31587. 800dc32: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31588. 800dc36: e072 b.n 800dd1e <UART_SetConfig+0x5a6>
  31589. 800dc38: 2380 movs r3, #128 @ 0x80
  31590. 800dc3a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31591. 800dc3e: e06e b.n 800dd1e <UART_SetConfig+0x5a6>
  31592. 800dc40: 697b ldr r3, [r7, #20]
  31593. 800dc42: 681b ldr r3, [r3, #0]
  31594. 800dc44: 4a75 ldr r2, [pc, #468] @ (800de1c <UART_SetConfig+0x6a4>)
  31595. 800dc46: 4293 cmp r3, r2
  31596. 800dc48: d130 bne.n 800dcac <UART_SetConfig+0x534>
  31597. 800dc4a: 4b72 ldr r3, [pc, #456] @ (800de14 <UART_SetConfig+0x69c>)
  31598. 800dc4c: 6d5b ldr r3, [r3, #84] @ 0x54
  31599. 800dc4e: f003 0307 and.w r3, r3, #7
  31600. 800dc52: 2b05 cmp r3, #5
  31601. 800dc54: d826 bhi.n 800dca4 <UART_SetConfig+0x52c>
  31602. 800dc56: a201 add r2, pc, #4 @ (adr r2, 800dc5c <UART_SetConfig+0x4e4>)
  31603. 800dc58: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31604. 800dc5c: 0800dc75 .word 0x0800dc75
  31605. 800dc60: 0800dc7d .word 0x0800dc7d
  31606. 800dc64: 0800dc85 .word 0x0800dc85
  31607. 800dc68: 0800dc8d .word 0x0800dc8d
  31608. 800dc6c: 0800dc95 .word 0x0800dc95
  31609. 800dc70: 0800dc9d .word 0x0800dc9d
  31610. 800dc74: 2300 movs r3, #0
  31611. 800dc76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31612. 800dc7a: e050 b.n 800dd1e <UART_SetConfig+0x5a6>
  31613. 800dc7c: 2304 movs r3, #4
  31614. 800dc7e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31615. 800dc82: e04c b.n 800dd1e <UART_SetConfig+0x5a6>
  31616. 800dc84: 2308 movs r3, #8
  31617. 800dc86: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31618. 800dc8a: e048 b.n 800dd1e <UART_SetConfig+0x5a6>
  31619. 800dc8c: 2310 movs r3, #16
  31620. 800dc8e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31621. 800dc92: e044 b.n 800dd1e <UART_SetConfig+0x5a6>
  31622. 800dc94: 2320 movs r3, #32
  31623. 800dc96: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31624. 800dc9a: e040 b.n 800dd1e <UART_SetConfig+0x5a6>
  31625. 800dc9c: 2340 movs r3, #64 @ 0x40
  31626. 800dc9e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31627. 800dca2: e03c b.n 800dd1e <UART_SetConfig+0x5a6>
  31628. 800dca4: 2380 movs r3, #128 @ 0x80
  31629. 800dca6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31630. 800dcaa: e038 b.n 800dd1e <UART_SetConfig+0x5a6>
  31631. 800dcac: 697b ldr r3, [r7, #20]
  31632. 800dcae: 681b ldr r3, [r3, #0]
  31633. 800dcb0: 4a5b ldr r2, [pc, #364] @ (800de20 <UART_SetConfig+0x6a8>)
  31634. 800dcb2: 4293 cmp r3, r2
  31635. 800dcb4: d130 bne.n 800dd18 <UART_SetConfig+0x5a0>
  31636. 800dcb6: 4b57 ldr r3, [pc, #348] @ (800de14 <UART_SetConfig+0x69c>)
  31637. 800dcb8: 6d9b ldr r3, [r3, #88] @ 0x58
  31638. 800dcba: f003 0307 and.w r3, r3, #7
  31639. 800dcbe: 2b05 cmp r3, #5
  31640. 800dcc0: d826 bhi.n 800dd10 <UART_SetConfig+0x598>
  31641. 800dcc2: a201 add r2, pc, #4 @ (adr r2, 800dcc8 <UART_SetConfig+0x550>)
  31642. 800dcc4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31643. 800dcc8: 0800dce1 .word 0x0800dce1
  31644. 800dccc: 0800dce9 .word 0x0800dce9
  31645. 800dcd0: 0800dcf1 .word 0x0800dcf1
  31646. 800dcd4: 0800dcf9 .word 0x0800dcf9
  31647. 800dcd8: 0800dd01 .word 0x0800dd01
  31648. 800dcdc: 0800dd09 .word 0x0800dd09
  31649. 800dce0: 2302 movs r3, #2
  31650. 800dce2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31651. 800dce6: e01a b.n 800dd1e <UART_SetConfig+0x5a6>
  31652. 800dce8: 2304 movs r3, #4
  31653. 800dcea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31654. 800dcee: e016 b.n 800dd1e <UART_SetConfig+0x5a6>
  31655. 800dcf0: 2308 movs r3, #8
  31656. 800dcf2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31657. 800dcf6: e012 b.n 800dd1e <UART_SetConfig+0x5a6>
  31658. 800dcf8: 2310 movs r3, #16
  31659. 800dcfa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31660. 800dcfe: e00e b.n 800dd1e <UART_SetConfig+0x5a6>
  31661. 800dd00: 2320 movs r3, #32
  31662. 800dd02: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31663. 800dd06: e00a b.n 800dd1e <UART_SetConfig+0x5a6>
  31664. 800dd08: 2340 movs r3, #64 @ 0x40
  31665. 800dd0a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31666. 800dd0e: e006 b.n 800dd1e <UART_SetConfig+0x5a6>
  31667. 800dd10: 2380 movs r3, #128 @ 0x80
  31668. 800dd12: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31669. 800dd16: e002 b.n 800dd1e <UART_SetConfig+0x5a6>
  31670. 800dd18: 2380 movs r3, #128 @ 0x80
  31671. 800dd1a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  31672. /* Check LPUART instance */
  31673. if (UART_INSTANCE_LOWPOWER(huart))
  31674. 800dd1e: 697b ldr r3, [r7, #20]
  31675. 800dd20: 681b ldr r3, [r3, #0]
  31676. 800dd22: 4a3f ldr r2, [pc, #252] @ (800de20 <UART_SetConfig+0x6a8>)
  31677. 800dd24: 4293 cmp r3, r2
  31678. 800dd26: f040 80f8 bne.w 800df1a <UART_SetConfig+0x7a2>
  31679. {
  31680. /* Retrieve frequency clock */
  31681. switch (clocksource)
  31682. 800dd2a: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  31683. 800dd2e: 2b20 cmp r3, #32
  31684. 800dd30: dc46 bgt.n 800ddc0 <UART_SetConfig+0x648>
  31685. 800dd32: 2b02 cmp r3, #2
  31686. 800dd34: f2c0 8082 blt.w 800de3c <UART_SetConfig+0x6c4>
  31687. 800dd38: 3b02 subs r3, #2
  31688. 800dd3a: 2b1e cmp r3, #30
  31689. 800dd3c: d87e bhi.n 800de3c <UART_SetConfig+0x6c4>
  31690. 800dd3e: a201 add r2, pc, #4 @ (adr r2, 800dd44 <UART_SetConfig+0x5cc>)
  31691. 800dd40: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31692. 800dd44: 0800ddc7 .word 0x0800ddc7
  31693. 800dd48: 0800de3d .word 0x0800de3d
  31694. 800dd4c: 0800ddcf .word 0x0800ddcf
  31695. 800dd50: 0800de3d .word 0x0800de3d
  31696. 800dd54: 0800de3d .word 0x0800de3d
  31697. 800dd58: 0800de3d .word 0x0800de3d
  31698. 800dd5c: 0800dddf .word 0x0800dddf
  31699. 800dd60: 0800de3d .word 0x0800de3d
  31700. 800dd64: 0800de3d .word 0x0800de3d
  31701. 800dd68: 0800de3d .word 0x0800de3d
  31702. 800dd6c: 0800de3d .word 0x0800de3d
  31703. 800dd70: 0800de3d .word 0x0800de3d
  31704. 800dd74: 0800de3d .word 0x0800de3d
  31705. 800dd78: 0800de3d .word 0x0800de3d
  31706. 800dd7c: 0800ddef .word 0x0800ddef
  31707. 800dd80: 0800de3d .word 0x0800de3d
  31708. 800dd84: 0800de3d .word 0x0800de3d
  31709. 800dd88: 0800de3d .word 0x0800de3d
  31710. 800dd8c: 0800de3d .word 0x0800de3d
  31711. 800dd90: 0800de3d .word 0x0800de3d
  31712. 800dd94: 0800de3d .word 0x0800de3d
  31713. 800dd98: 0800de3d .word 0x0800de3d
  31714. 800dd9c: 0800de3d .word 0x0800de3d
  31715. 800dda0: 0800de3d .word 0x0800de3d
  31716. 800dda4: 0800de3d .word 0x0800de3d
  31717. 800dda8: 0800de3d .word 0x0800de3d
  31718. 800ddac: 0800de3d .word 0x0800de3d
  31719. 800ddb0: 0800de3d .word 0x0800de3d
  31720. 800ddb4: 0800de3d .word 0x0800de3d
  31721. 800ddb8: 0800de3d .word 0x0800de3d
  31722. 800ddbc: 0800de2f .word 0x0800de2f
  31723. 800ddc0: 2b40 cmp r3, #64 @ 0x40
  31724. 800ddc2: d037 beq.n 800de34 <UART_SetConfig+0x6bc>
  31725. 800ddc4: e03a b.n 800de3c <UART_SetConfig+0x6c4>
  31726. {
  31727. case UART_CLOCKSOURCE_D3PCLK1:
  31728. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  31729. 800ddc6: f7fe f887 bl 800bed8 <HAL_RCCEx_GetD3PCLK1Freq>
  31730. 800ddca: 63f8 str r0, [r7, #60] @ 0x3c
  31731. break;
  31732. 800ddcc: e03c b.n 800de48 <UART_SetConfig+0x6d0>
  31733. case UART_CLOCKSOURCE_PLL2:
  31734. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31735. 800ddce: f107 0324 add.w r3, r7, #36 @ 0x24
  31736. 800ddd2: 4618 mov r0, r3
  31737. 800ddd4: f7fe f896 bl 800bf04 <HAL_RCCEx_GetPLL2ClockFreq>
  31738. pclk = pll2_clocks.PLL2_Q_Frequency;
  31739. 800ddd8: 6abb ldr r3, [r7, #40] @ 0x28
  31740. 800ddda: 63fb str r3, [r7, #60] @ 0x3c
  31741. break;
  31742. 800dddc: e034 b.n 800de48 <UART_SetConfig+0x6d0>
  31743. case UART_CLOCKSOURCE_PLL3:
  31744. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31745. 800ddde: f107 0318 add.w r3, r7, #24
  31746. 800dde2: 4618 mov r0, r3
  31747. 800dde4: f7fe f9e2 bl 800c1ac <HAL_RCCEx_GetPLL3ClockFreq>
  31748. pclk = pll3_clocks.PLL3_Q_Frequency;
  31749. 800dde8: 69fb ldr r3, [r7, #28]
  31750. 800ddea: 63fb str r3, [r7, #60] @ 0x3c
  31751. break;
  31752. 800ddec: e02c b.n 800de48 <UART_SetConfig+0x6d0>
  31753. case UART_CLOCKSOURCE_HSI:
  31754. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  31755. 800ddee: 4b09 ldr r3, [pc, #36] @ (800de14 <UART_SetConfig+0x69c>)
  31756. 800ddf0: 681b ldr r3, [r3, #0]
  31757. 800ddf2: f003 0320 and.w r3, r3, #32
  31758. 800ddf6: 2b00 cmp r3, #0
  31759. 800ddf8: d016 beq.n 800de28 <UART_SetConfig+0x6b0>
  31760. {
  31761. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  31762. 800ddfa: 4b06 ldr r3, [pc, #24] @ (800de14 <UART_SetConfig+0x69c>)
  31763. 800ddfc: 681b ldr r3, [r3, #0]
  31764. 800ddfe: 08db lsrs r3, r3, #3
  31765. 800de00: f003 0303 and.w r3, r3, #3
  31766. 800de04: 4a07 ldr r2, [pc, #28] @ (800de24 <UART_SetConfig+0x6ac>)
  31767. 800de06: fa22 f303 lsr.w r3, r2, r3
  31768. 800de0a: 63fb str r3, [r7, #60] @ 0x3c
  31769. }
  31770. else
  31771. {
  31772. pclk = (uint32_t) HSI_VALUE;
  31773. }
  31774. break;
  31775. 800de0c: e01c b.n 800de48 <UART_SetConfig+0x6d0>
  31776. 800de0e: bf00 nop
  31777. 800de10: 40011400 .word 0x40011400
  31778. 800de14: 58024400 .word 0x58024400
  31779. 800de18: 40007800 .word 0x40007800
  31780. 800de1c: 40007c00 .word 0x40007c00
  31781. 800de20: 58000c00 .word 0x58000c00
  31782. 800de24: 03d09000 .word 0x03d09000
  31783. pclk = (uint32_t) HSI_VALUE;
  31784. 800de28: 4b9d ldr r3, [pc, #628] @ (800e0a0 <UART_SetConfig+0x928>)
  31785. 800de2a: 63fb str r3, [r7, #60] @ 0x3c
  31786. break;
  31787. 800de2c: e00c b.n 800de48 <UART_SetConfig+0x6d0>
  31788. case UART_CLOCKSOURCE_CSI:
  31789. pclk = (uint32_t) CSI_VALUE;
  31790. 800de2e: 4b9d ldr r3, [pc, #628] @ (800e0a4 <UART_SetConfig+0x92c>)
  31791. 800de30: 63fb str r3, [r7, #60] @ 0x3c
  31792. break;
  31793. 800de32: e009 b.n 800de48 <UART_SetConfig+0x6d0>
  31794. case UART_CLOCKSOURCE_LSE:
  31795. pclk = (uint32_t) LSE_VALUE;
  31796. 800de34: f44f 4300 mov.w r3, #32768 @ 0x8000
  31797. 800de38: 63fb str r3, [r7, #60] @ 0x3c
  31798. break;
  31799. 800de3a: e005 b.n 800de48 <UART_SetConfig+0x6d0>
  31800. default:
  31801. pclk = 0U;
  31802. 800de3c: 2300 movs r3, #0
  31803. 800de3e: 63fb str r3, [r7, #60] @ 0x3c
  31804. ret = HAL_ERROR;
  31805. 800de40: 2301 movs r3, #1
  31806. 800de42: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31807. break;
  31808. 800de46: bf00 nop
  31809. }
  31810. /* If proper clock source reported */
  31811. if (pclk != 0U)
  31812. 800de48: 6bfb ldr r3, [r7, #60] @ 0x3c
  31813. 800de4a: 2b00 cmp r3, #0
  31814. 800de4c: f000 81de beq.w 800e20c <UART_SetConfig+0xa94>
  31815. {
  31816. /* Compute clock after Prescaler */
  31817. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  31818. 800de50: 697b ldr r3, [r7, #20]
  31819. 800de52: 6a5b ldr r3, [r3, #36] @ 0x24
  31820. 800de54: 4a94 ldr r2, [pc, #592] @ (800e0a8 <UART_SetConfig+0x930>)
  31821. 800de56: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  31822. 800de5a: 461a mov r2, r3
  31823. 800de5c: 6bfb ldr r3, [r7, #60] @ 0x3c
  31824. 800de5e: fbb3 f3f2 udiv r3, r3, r2
  31825. 800de62: 633b str r3, [r7, #48] @ 0x30
  31826. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  31827. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  31828. 800de64: 697b ldr r3, [r7, #20]
  31829. 800de66: 685a ldr r2, [r3, #4]
  31830. 800de68: 4613 mov r3, r2
  31831. 800de6a: 005b lsls r3, r3, #1
  31832. 800de6c: 4413 add r3, r2
  31833. 800de6e: 6b3a ldr r2, [r7, #48] @ 0x30
  31834. 800de70: 429a cmp r2, r3
  31835. 800de72: d305 bcc.n 800de80 <UART_SetConfig+0x708>
  31836. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  31837. 800de74: 697b ldr r3, [r7, #20]
  31838. 800de76: 685b ldr r3, [r3, #4]
  31839. 800de78: 031b lsls r3, r3, #12
  31840. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  31841. 800de7a: 6b3a ldr r2, [r7, #48] @ 0x30
  31842. 800de7c: 429a cmp r2, r3
  31843. 800de7e: d903 bls.n 800de88 <UART_SetConfig+0x710>
  31844. {
  31845. ret = HAL_ERROR;
  31846. 800de80: 2301 movs r3, #1
  31847. 800de82: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31848. 800de86: e1c1 b.n 800e20c <UART_SetConfig+0xa94>
  31849. }
  31850. else
  31851. {
  31852. /* Check computed UsartDiv value is in allocated range
  31853. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  31854. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  31855. 800de88: 6bfb ldr r3, [r7, #60] @ 0x3c
  31856. 800de8a: 2200 movs r2, #0
  31857. 800de8c: 60bb str r3, [r7, #8]
  31858. 800de8e: 60fa str r2, [r7, #12]
  31859. 800de90: 697b ldr r3, [r7, #20]
  31860. 800de92: 6a5b ldr r3, [r3, #36] @ 0x24
  31861. 800de94: 4a84 ldr r2, [pc, #528] @ (800e0a8 <UART_SetConfig+0x930>)
  31862. 800de96: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  31863. 800de9a: b29b uxth r3, r3
  31864. 800de9c: 2200 movs r2, #0
  31865. 800de9e: 603b str r3, [r7, #0]
  31866. 800dea0: 607a str r2, [r7, #4]
  31867. 800dea2: e9d7 2300 ldrd r2, r3, [r7]
  31868. 800dea6: e9d7 0102 ldrd r0, r1, [r7, #8]
  31869. 800deaa: f7f2 fc3d bl 8000728 <__aeabi_uldivmod>
  31870. 800deae: 4602 mov r2, r0
  31871. 800deb0: 460b mov r3, r1
  31872. 800deb2: 4610 mov r0, r2
  31873. 800deb4: 4619 mov r1, r3
  31874. 800deb6: f04f 0200 mov.w r2, #0
  31875. 800deba: f04f 0300 mov.w r3, #0
  31876. 800debe: 020b lsls r3, r1, #8
  31877. 800dec0: ea43 6310 orr.w r3, r3, r0, lsr #24
  31878. 800dec4: 0202 lsls r2, r0, #8
  31879. 800dec6: 6979 ldr r1, [r7, #20]
  31880. 800dec8: 6849 ldr r1, [r1, #4]
  31881. 800deca: 0849 lsrs r1, r1, #1
  31882. 800decc: 2000 movs r0, #0
  31883. 800dece: 460c mov r4, r1
  31884. 800ded0: 4605 mov r5, r0
  31885. 800ded2: eb12 0804 adds.w r8, r2, r4
  31886. 800ded6: eb43 0905 adc.w r9, r3, r5
  31887. 800deda: 697b ldr r3, [r7, #20]
  31888. 800dedc: 685b ldr r3, [r3, #4]
  31889. 800dede: 2200 movs r2, #0
  31890. 800dee0: 469a mov sl, r3
  31891. 800dee2: 4693 mov fp, r2
  31892. 800dee4: 4652 mov r2, sl
  31893. 800dee6: 465b mov r3, fp
  31894. 800dee8: 4640 mov r0, r8
  31895. 800deea: 4649 mov r1, r9
  31896. 800deec: f7f2 fc1c bl 8000728 <__aeabi_uldivmod>
  31897. 800def0: 4602 mov r2, r0
  31898. 800def2: 460b mov r3, r1
  31899. 800def4: 4613 mov r3, r2
  31900. 800def6: 63bb str r3, [r7, #56] @ 0x38
  31901. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  31902. 800def8: 6bbb ldr r3, [r7, #56] @ 0x38
  31903. 800defa: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31904. 800defe: d308 bcc.n 800df12 <UART_SetConfig+0x79a>
  31905. 800df00: 6bbb ldr r3, [r7, #56] @ 0x38
  31906. 800df02: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31907. 800df06: d204 bcs.n 800df12 <UART_SetConfig+0x79a>
  31908. {
  31909. huart->Instance->BRR = usartdiv;
  31910. 800df08: 697b ldr r3, [r7, #20]
  31911. 800df0a: 681b ldr r3, [r3, #0]
  31912. 800df0c: 6bba ldr r2, [r7, #56] @ 0x38
  31913. 800df0e: 60da str r2, [r3, #12]
  31914. 800df10: e17c b.n 800e20c <UART_SetConfig+0xa94>
  31915. }
  31916. else
  31917. {
  31918. ret = HAL_ERROR;
  31919. 800df12: 2301 movs r3, #1
  31920. 800df14: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31921. 800df18: e178 b.n 800e20c <UART_SetConfig+0xa94>
  31922. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  31923. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  31924. } /* if (pclk != 0) */
  31925. }
  31926. /* Check UART Over Sampling to set Baud Rate Register */
  31927. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  31928. 800df1a: 697b ldr r3, [r7, #20]
  31929. 800df1c: 69db ldr r3, [r3, #28]
  31930. 800df1e: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  31931. 800df22: f040 80c5 bne.w 800e0b0 <UART_SetConfig+0x938>
  31932. {
  31933. switch (clocksource)
  31934. 800df26: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  31935. 800df2a: 2b20 cmp r3, #32
  31936. 800df2c: dc48 bgt.n 800dfc0 <UART_SetConfig+0x848>
  31937. 800df2e: 2b00 cmp r3, #0
  31938. 800df30: db7b blt.n 800e02a <UART_SetConfig+0x8b2>
  31939. 800df32: 2b20 cmp r3, #32
  31940. 800df34: d879 bhi.n 800e02a <UART_SetConfig+0x8b2>
  31941. 800df36: a201 add r2, pc, #4 @ (adr r2, 800df3c <UART_SetConfig+0x7c4>)
  31942. 800df38: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31943. 800df3c: 0800dfc7 .word 0x0800dfc7
  31944. 800df40: 0800dfcf .word 0x0800dfcf
  31945. 800df44: 0800e02b .word 0x0800e02b
  31946. 800df48: 0800e02b .word 0x0800e02b
  31947. 800df4c: 0800dfd7 .word 0x0800dfd7
  31948. 800df50: 0800e02b .word 0x0800e02b
  31949. 800df54: 0800e02b .word 0x0800e02b
  31950. 800df58: 0800e02b .word 0x0800e02b
  31951. 800df5c: 0800dfe7 .word 0x0800dfe7
  31952. 800df60: 0800e02b .word 0x0800e02b
  31953. 800df64: 0800e02b .word 0x0800e02b
  31954. 800df68: 0800e02b .word 0x0800e02b
  31955. 800df6c: 0800e02b .word 0x0800e02b
  31956. 800df70: 0800e02b .word 0x0800e02b
  31957. 800df74: 0800e02b .word 0x0800e02b
  31958. 800df78: 0800e02b .word 0x0800e02b
  31959. 800df7c: 0800dff7 .word 0x0800dff7
  31960. 800df80: 0800e02b .word 0x0800e02b
  31961. 800df84: 0800e02b .word 0x0800e02b
  31962. 800df88: 0800e02b .word 0x0800e02b
  31963. 800df8c: 0800e02b .word 0x0800e02b
  31964. 800df90: 0800e02b .word 0x0800e02b
  31965. 800df94: 0800e02b .word 0x0800e02b
  31966. 800df98: 0800e02b .word 0x0800e02b
  31967. 800df9c: 0800e02b .word 0x0800e02b
  31968. 800dfa0: 0800e02b .word 0x0800e02b
  31969. 800dfa4: 0800e02b .word 0x0800e02b
  31970. 800dfa8: 0800e02b .word 0x0800e02b
  31971. 800dfac: 0800e02b .word 0x0800e02b
  31972. 800dfb0: 0800e02b .word 0x0800e02b
  31973. 800dfb4: 0800e02b .word 0x0800e02b
  31974. 800dfb8: 0800e02b .word 0x0800e02b
  31975. 800dfbc: 0800e01d .word 0x0800e01d
  31976. 800dfc0: 2b40 cmp r3, #64 @ 0x40
  31977. 800dfc2: d02e beq.n 800e022 <UART_SetConfig+0x8aa>
  31978. 800dfc4: e031 b.n 800e02a <UART_SetConfig+0x8b2>
  31979. {
  31980. case UART_CLOCKSOURCE_D2PCLK1:
  31981. pclk = HAL_RCC_GetPCLK1Freq();
  31982. 800dfc6: f7fc fd2b bl 800aa20 <HAL_RCC_GetPCLK1Freq>
  31983. 800dfca: 63f8 str r0, [r7, #60] @ 0x3c
  31984. break;
  31985. 800dfcc: e033 b.n 800e036 <UART_SetConfig+0x8be>
  31986. case UART_CLOCKSOURCE_D2PCLK2:
  31987. pclk = HAL_RCC_GetPCLK2Freq();
  31988. 800dfce: f7fc fd3d bl 800aa4c <HAL_RCC_GetPCLK2Freq>
  31989. 800dfd2: 63f8 str r0, [r7, #60] @ 0x3c
  31990. break;
  31991. 800dfd4: e02f b.n 800e036 <UART_SetConfig+0x8be>
  31992. case UART_CLOCKSOURCE_PLL2:
  31993. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31994. 800dfd6: f107 0324 add.w r3, r7, #36 @ 0x24
  31995. 800dfda: 4618 mov r0, r3
  31996. 800dfdc: f7fd ff92 bl 800bf04 <HAL_RCCEx_GetPLL2ClockFreq>
  31997. pclk = pll2_clocks.PLL2_Q_Frequency;
  31998. 800dfe0: 6abb ldr r3, [r7, #40] @ 0x28
  31999. 800dfe2: 63fb str r3, [r7, #60] @ 0x3c
  32000. break;
  32001. 800dfe4: e027 b.n 800e036 <UART_SetConfig+0x8be>
  32002. case UART_CLOCKSOURCE_PLL3:
  32003. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32004. 800dfe6: f107 0318 add.w r3, r7, #24
  32005. 800dfea: 4618 mov r0, r3
  32006. 800dfec: f7fe f8de bl 800c1ac <HAL_RCCEx_GetPLL3ClockFreq>
  32007. pclk = pll3_clocks.PLL3_Q_Frequency;
  32008. 800dff0: 69fb ldr r3, [r7, #28]
  32009. 800dff2: 63fb str r3, [r7, #60] @ 0x3c
  32010. break;
  32011. 800dff4: e01f b.n 800e036 <UART_SetConfig+0x8be>
  32012. case UART_CLOCKSOURCE_HSI:
  32013. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32014. 800dff6: 4b2d ldr r3, [pc, #180] @ (800e0ac <UART_SetConfig+0x934>)
  32015. 800dff8: 681b ldr r3, [r3, #0]
  32016. 800dffa: f003 0320 and.w r3, r3, #32
  32017. 800dffe: 2b00 cmp r3, #0
  32018. 800e000: d009 beq.n 800e016 <UART_SetConfig+0x89e>
  32019. {
  32020. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  32021. 800e002: 4b2a ldr r3, [pc, #168] @ (800e0ac <UART_SetConfig+0x934>)
  32022. 800e004: 681b ldr r3, [r3, #0]
  32023. 800e006: 08db lsrs r3, r3, #3
  32024. 800e008: f003 0303 and.w r3, r3, #3
  32025. 800e00c: 4a24 ldr r2, [pc, #144] @ (800e0a0 <UART_SetConfig+0x928>)
  32026. 800e00e: fa22 f303 lsr.w r3, r2, r3
  32027. 800e012: 63fb str r3, [r7, #60] @ 0x3c
  32028. }
  32029. else
  32030. {
  32031. pclk = (uint32_t) HSI_VALUE;
  32032. }
  32033. break;
  32034. 800e014: e00f b.n 800e036 <UART_SetConfig+0x8be>
  32035. pclk = (uint32_t) HSI_VALUE;
  32036. 800e016: 4b22 ldr r3, [pc, #136] @ (800e0a0 <UART_SetConfig+0x928>)
  32037. 800e018: 63fb str r3, [r7, #60] @ 0x3c
  32038. break;
  32039. 800e01a: e00c b.n 800e036 <UART_SetConfig+0x8be>
  32040. case UART_CLOCKSOURCE_CSI:
  32041. pclk = (uint32_t) CSI_VALUE;
  32042. 800e01c: 4b21 ldr r3, [pc, #132] @ (800e0a4 <UART_SetConfig+0x92c>)
  32043. 800e01e: 63fb str r3, [r7, #60] @ 0x3c
  32044. break;
  32045. 800e020: e009 b.n 800e036 <UART_SetConfig+0x8be>
  32046. case UART_CLOCKSOURCE_LSE:
  32047. pclk = (uint32_t) LSE_VALUE;
  32048. 800e022: f44f 4300 mov.w r3, #32768 @ 0x8000
  32049. 800e026: 63fb str r3, [r7, #60] @ 0x3c
  32050. break;
  32051. 800e028: e005 b.n 800e036 <UART_SetConfig+0x8be>
  32052. default:
  32053. pclk = 0U;
  32054. 800e02a: 2300 movs r3, #0
  32055. 800e02c: 63fb str r3, [r7, #60] @ 0x3c
  32056. ret = HAL_ERROR;
  32057. 800e02e: 2301 movs r3, #1
  32058. 800e030: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32059. break;
  32060. 800e034: bf00 nop
  32061. }
  32062. /* USARTDIV must be greater than or equal to 0d16 */
  32063. if (pclk != 0U)
  32064. 800e036: 6bfb ldr r3, [r7, #60] @ 0x3c
  32065. 800e038: 2b00 cmp r3, #0
  32066. 800e03a: f000 80e7 beq.w 800e20c <UART_SetConfig+0xa94>
  32067. {
  32068. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  32069. 800e03e: 697b ldr r3, [r7, #20]
  32070. 800e040: 6a5b ldr r3, [r3, #36] @ 0x24
  32071. 800e042: 4a19 ldr r2, [pc, #100] @ (800e0a8 <UART_SetConfig+0x930>)
  32072. 800e044: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  32073. 800e048: 461a mov r2, r3
  32074. 800e04a: 6bfb ldr r3, [r7, #60] @ 0x3c
  32075. 800e04c: fbb3 f3f2 udiv r3, r3, r2
  32076. 800e050: 005a lsls r2, r3, #1
  32077. 800e052: 697b ldr r3, [r7, #20]
  32078. 800e054: 685b ldr r3, [r3, #4]
  32079. 800e056: 085b lsrs r3, r3, #1
  32080. 800e058: 441a add r2, r3
  32081. 800e05a: 697b ldr r3, [r7, #20]
  32082. 800e05c: 685b ldr r3, [r3, #4]
  32083. 800e05e: fbb2 f3f3 udiv r3, r2, r3
  32084. 800e062: 63bb str r3, [r7, #56] @ 0x38
  32085. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  32086. 800e064: 6bbb ldr r3, [r7, #56] @ 0x38
  32087. 800e066: 2b0f cmp r3, #15
  32088. 800e068: d916 bls.n 800e098 <UART_SetConfig+0x920>
  32089. 800e06a: 6bbb ldr r3, [r7, #56] @ 0x38
  32090. 800e06c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32091. 800e070: d212 bcs.n 800e098 <UART_SetConfig+0x920>
  32092. {
  32093. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  32094. 800e072: 6bbb ldr r3, [r7, #56] @ 0x38
  32095. 800e074: b29b uxth r3, r3
  32096. 800e076: f023 030f bic.w r3, r3, #15
  32097. 800e07a: 86fb strh r3, [r7, #54] @ 0x36
  32098. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  32099. 800e07c: 6bbb ldr r3, [r7, #56] @ 0x38
  32100. 800e07e: 085b lsrs r3, r3, #1
  32101. 800e080: b29b uxth r3, r3
  32102. 800e082: f003 0307 and.w r3, r3, #7
  32103. 800e086: b29a uxth r2, r3
  32104. 800e088: 8efb ldrh r3, [r7, #54] @ 0x36
  32105. 800e08a: 4313 orrs r3, r2
  32106. 800e08c: 86fb strh r3, [r7, #54] @ 0x36
  32107. huart->Instance->BRR = brrtemp;
  32108. 800e08e: 697b ldr r3, [r7, #20]
  32109. 800e090: 681b ldr r3, [r3, #0]
  32110. 800e092: 8efa ldrh r2, [r7, #54] @ 0x36
  32111. 800e094: 60da str r2, [r3, #12]
  32112. 800e096: e0b9 b.n 800e20c <UART_SetConfig+0xa94>
  32113. }
  32114. else
  32115. {
  32116. ret = HAL_ERROR;
  32117. 800e098: 2301 movs r3, #1
  32118. 800e09a: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32119. 800e09e: e0b5 b.n 800e20c <UART_SetConfig+0xa94>
  32120. 800e0a0: 03d09000 .word 0x03d09000
  32121. 800e0a4: 003d0900 .word 0x003d0900
  32122. 800e0a8: 08030a94 .word 0x08030a94
  32123. 800e0ac: 58024400 .word 0x58024400
  32124. }
  32125. }
  32126. }
  32127. else
  32128. {
  32129. switch (clocksource)
  32130. 800e0b0: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  32131. 800e0b4: 2b20 cmp r3, #32
  32132. 800e0b6: dc49 bgt.n 800e14c <UART_SetConfig+0x9d4>
  32133. 800e0b8: 2b00 cmp r3, #0
  32134. 800e0ba: db7c blt.n 800e1b6 <UART_SetConfig+0xa3e>
  32135. 800e0bc: 2b20 cmp r3, #32
  32136. 800e0be: d87a bhi.n 800e1b6 <UART_SetConfig+0xa3e>
  32137. 800e0c0: a201 add r2, pc, #4 @ (adr r2, 800e0c8 <UART_SetConfig+0x950>)
  32138. 800e0c2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32139. 800e0c6: bf00 nop
  32140. 800e0c8: 0800e153 .word 0x0800e153
  32141. 800e0cc: 0800e15b .word 0x0800e15b
  32142. 800e0d0: 0800e1b7 .word 0x0800e1b7
  32143. 800e0d4: 0800e1b7 .word 0x0800e1b7
  32144. 800e0d8: 0800e163 .word 0x0800e163
  32145. 800e0dc: 0800e1b7 .word 0x0800e1b7
  32146. 800e0e0: 0800e1b7 .word 0x0800e1b7
  32147. 800e0e4: 0800e1b7 .word 0x0800e1b7
  32148. 800e0e8: 0800e173 .word 0x0800e173
  32149. 800e0ec: 0800e1b7 .word 0x0800e1b7
  32150. 800e0f0: 0800e1b7 .word 0x0800e1b7
  32151. 800e0f4: 0800e1b7 .word 0x0800e1b7
  32152. 800e0f8: 0800e1b7 .word 0x0800e1b7
  32153. 800e0fc: 0800e1b7 .word 0x0800e1b7
  32154. 800e100: 0800e1b7 .word 0x0800e1b7
  32155. 800e104: 0800e1b7 .word 0x0800e1b7
  32156. 800e108: 0800e183 .word 0x0800e183
  32157. 800e10c: 0800e1b7 .word 0x0800e1b7
  32158. 800e110: 0800e1b7 .word 0x0800e1b7
  32159. 800e114: 0800e1b7 .word 0x0800e1b7
  32160. 800e118: 0800e1b7 .word 0x0800e1b7
  32161. 800e11c: 0800e1b7 .word 0x0800e1b7
  32162. 800e120: 0800e1b7 .word 0x0800e1b7
  32163. 800e124: 0800e1b7 .word 0x0800e1b7
  32164. 800e128: 0800e1b7 .word 0x0800e1b7
  32165. 800e12c: 0800e1b7 .word 0x0800e1b7
  32166. 800e130: 0800e1b7 .word 0x0800e1b7
  32167. 800e134: 0800e1b7 .word 0x0800e1b7
  32168. 800e138: 0800e1b7 .word 0x0800e1b7
  32169. 800e13c: 0800e1b7 .word 0x0800e1b7
  32170. 800e140: 0800e1b7 .word 0x0800e1b7
  32171. 800e144: 0800e1b7 .word 0x0800e1b7
  32172. 800e148: 0800e1a9 .word 0x0800e1a9
  32173. 800e14c: 2b40 cmp r3, #64 @ 0x40
  32174. 800e14e: d02e beq.n 800e1ae <UART_SetConfig+0xa36>
  32175. 800e150: e031 b.n 800e1b6 <UART_SetConfig+0xa3e>
  32176. {
  32177. case UART_CLOCKSOURCE_D2PCLK1:
  32178. pclk = HAL_RCC_GetPCLK1Freq();
  32179. 800e152: f7fc fc65 bl 800aa20 <HAL_RCC_GetPCLK1Freq>
  32180. 800e156: 63f8 str r0, [r7, #60] @ 0x3c
  32181. break;
  32182. 800e158: e033 b.n 800e1c2 <UART_SetConfig+0xa4a>
  32183. case UART_CLOCKSOURCE_D2PCLK2:
  32184. pclk = HAL_RCC_GetPCLK2Freq();
  32185. 800e15a: f7fc fc77 bl 800aa4c <HAL_RCC_GetPCLK2Freq>
  32186. 800e15e: 63f8 str r0, [r7, #60] @ 0x3c
  32187. break;
  32188. 800e160: e02f b.n 800e1c2 <UART_SetConfig+0xa4a>
  32189. case UART_CLOCKSOURCE_PLL2:
  32190. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32191. 800e162: f107 0324 add.w r3, r7, #36 @ 0x24
  32192. 800e166: 4618 mov r0, r3
  32193. 800e168: f7fd fecc bl 800bf04 <HAL_RCCEx_GetPLL2ClockFreq>
  32194. pclk = pll2_clocks.PLL2_Q_Frequency;
  32195. 800e16c: 6abb ldr r3, [r7, #40] @ 0x28
  32196. 800e16e: 63fb str r3, [r7, #60] @ 0x3c
  32197. break;
  32198. 800e170: e027 b.n 800e1c2 <UART_SetConfig+0xa4a>
  32199. case UART_CLOCKSOURCE_PLL3:
  32200. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32201. 800e172: f107 0318 add.w r3, r7, #24
  32202. 800e176: 4618 mov r0, r3
  32203. 800e178: f7fe f818 bl 800c1ac <HAL_RCCEx_GetPLL3ClockFreq>
  32204. pclk = pll3_clocks.PLL3_Q_Frequency;
  32205. 800e17c: 69fb ldr r3, [r7, #28]
  32206. 800e17e: 63fb str r3, [r7, #60] @ 0x3c
  32207. break;
  32208. 800e180: e01f b.n 800e1c2 <UART_SetConfig+0xa4a>
  32209. case UART_CLOCKSOURCE_HSI:
  32210. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32211. 800e182: 4b2d ldr r3, [pc, #180] @ (800e238 <UART_SetConfig+0xac0>)
  32212. 800e184: 681b ldr r3, [r3, #0]
  32213. 800e186: f003 0320 and.w r3, r3, #32
  32214. 800e18a: 2b00 cmp r3, #0
  32215. 800e18c: d009 beq.n 800e1a2 <UART_SetConfig+0xa2a>
  32216. {
  32217. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  32218. 800e18e: 4b2a ldr r3, [pc, #168] @ (800e238 <UART_SetConfig+0xac0>)
  32219. 800e190: 681b ldr r3, [r3, #0]
  32220. 800e192: 08db lsrs r3, r3, #3
  32221. 800e194: f003 0303 and.w r3, r3, #3
  32222. 800e198: 4a28 ldr r2, [pc, #160] @ (800e23c <UART_SetConfig+0xac4>)
  32223. 800e19a: fa22 f303 lsr.w r3, r2, r3
  32224. 800e19e: 63fb str r3, [r7, #60] @ 0x3c
  32225. }
  32226. else
  32227. {
  32228. pclk = (uint32_t) HSI_VALUE;
  32229. }
  32230. break;
  32231. 800e1a0: e00f b.n 800e1c2 <UART_SetConfig+0xa4a>
  32232. pclk = (uint32_t) HSI_VALUE;
  32233. 800e1a2: 4b26 ldr r3, [pc, #152] @ (800e23c <UART_SetConfig+0xac4>)
  32234. 800e1a4: 63fb str r3, [r7, #60] @ 0x3c
  32235. break;
  32236. 800e1a6: e00c b.n 800e1c2 <UART_SetConfig+0xa4a>
  32237. case UART_CLOCKSOURCE_CSI:
  32238. pclk = (uint32_t) CSI_VALUE;
  32239. 800e1a8: 4b25 ldr r3, [pc, #148] @ (800e240 <UART_SetConfig+0xac8>)
  32240. 800e1aa: 63fb str r3, [r7, #60] @ 0x3c
  32241. break;
  32242. 800e1ac: e009 b.n 800e1c2 <UART_SetConfig+0xa4a>
  32243. case UART_CLOCKSOURCE_LSE:
  32244. pclk = (uint32_t) LSE_VALUE;
  32245. 800e1ae: f44f 4300 mov.w r3, #32768 @ 0x8000
  32246. 800e1b2: 63fb str r3, [r7, #60] @ 0x3c
  32247. break;
  32248. 800e1b4: e005 b.n 800e1c2 <UART_SetConfig+0xa4a>
  32249. default:
  32250. pclk = 0U;
  32251. 800e1b6: 2300 movs r3, #0
  32252. 800e1b8: 63fb str r3, [r7, #60] @ 0x3c
  32253. ret = HAL_ERROR;
  32254. 800e1ba: 2301 movs r3, #1
  32255. 800e1bc: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32256. break;
  32257. 800e1c0: bf00 nop
  32258. }
  32259. if (pclk != 0U)
  32260. 800e1c2: 6bfb ldr r3, [r7, #60] @ 0x3c
  32261. 800e1c4: 2b00 cmp r3, #0
  32262. 800e1c6: d021 beq.n 800e20c <UART_SetConfig+0xa94>
  32263. {
  32264. /* USARTDIV must be greater than or equal to 0d16 */
  32265. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  32266. 800e1c8: 697b ldr r3, [r7, #20]
  32267. 800e1ca: 6a5b ldr r3, [r3, #36] @ 0x24
  32268. 800e1cc: 4a1d ldr r2, [pc, #116] @ (800e244 <UART_SetConfig+0xacc>)
  32269. 800e1ce: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  32270. 800e1d2: 461a mov r2, r3
  32271. 800e1d4: 6bfb ldr r3, [r7, #60] @ 0x3c
  32272. 800e1d6: fbb3 f2f2 udiv r2, r3, r2
  32273. 800e1da: 697b ldr r3, [r7, #20]
  32274. 800e1dc: 685b ldr r3, [r3, #4]
  32275. 800e1de: 085b lsrs r3, r3, #1
  32276. 800e1e0: 441a add r2, r3
  32277. 800e1e2: 697b ldr r3, [r7, #20]
  32278. 800e1e4: 685b ldr r3, [r3, #4]
  32279. 800e1e6: fbb2 f3f3 udiv r3, r2, r3
  32280. 800e1ea: 63bb str r3, [r7, #56] @ 0x38
  32281. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  32282. 800e1ec: 6bbb ldr r3, [r7, #56] @ 0x38
  32283. 800e1ee: 2b0f cmp r3, #15
  32284. 800e1f0: d909 bls.n 800e206 <UART_SetConfig+0xa8e>
  32285. 800e1f2: 6bbb ldr r3, [r7, #56] @ 0x38
  32286. 800e1f4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32287. 800e1f8: d205 bcs.n 800e206 <UART_SetConfig+0xa8e>
  32288. {
  32289. huart->Instance->BRR = (uint16_t)usartdiv;
  32290. 800e1fa: 6bbb ldr r3, [r7, #56] @ 0x38
  32291. 800e1fc: b29a uxth r2, r3
  32292. 800e1fe: 697b ldr r3, [r7, #20]
  32293. 800e200: 681b ldr r3, [r3, #0]
  32294. 800e202: 60da str r2, [r3, #12]
  32295. 800e204: e002 b.n 800e20c <UART_SetConfig+0xa94>
  32296. }
  32297. else
  32298. {
  32299. ret = HAL_ERROR;
  32300. 800e206: 2301 movs r3, #1
  32301. 800e208: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32302. }
  32303. }
  32304. }
  32305. /* Initialize the number of data to process during RX/TX ISR execution */
  32306. huart->NbTxDataToProcess = 1;
  32307. 800e20c: 697b ldr r3, [r7, #20]
  32308. 800e20e: 2201 movs r2, #1
  32309. 800e210: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  32310. huart->NbRxDataToProcess = 1;
  32311. 800e214: 697b ldr r3, [r7, #20]
  32312. 800e216: 2201 movs r2, #1
  32313. 800e218: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  32314. /* Clear ISR function pointers */
  32315. huart->RxISR = NULL;
  32316. 800e21c: 697b ldr r3, [r7, #20]
  32317. 800e21e: 2200 movs r2, #0
  32318. 800e220: 675a str r2, [r3, #116] @ 0x74
  32319. huart->TxISR = NULL;
  32320. 800e222: 697b ldr r3, [r7, #20]
  32321. 800e224: 2200 movs r2, #0
  32322. 800e226: 679a str r2, [r3, #120] @ 0x78
  32323. return ret;
  32324. 800e228: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  32325. }
  32326. 800e22c: 4618 mov r0, r3
  32327. 800e22e: 3748 adds r7, #72 @ 0x48
  32328. 800e230: 46bd mov sp, r7
  32329. 800e232: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  32330. 800e236: bf00 nop
  32331. 800e238: 58024400 .word 0x58024400
  32332. 800e23c: 03d09000 .word 0x03d09000
  32333. 800e240: 003d0900 .word 0x003d0900
  32334. 800e244: 08030a94 .word 0x08030a94
  32335. 0800e248 <UART_AdvFeatureConfig>:
  32336. * @brief Configure the UART peripheral advanced features.
  32337. * @param huart UART handle.
  32338. * @retval None
  32339. */
  32340. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  32341. {
  32342. 800e248: b480 push {r7}
  32343. 800e24a: b083 sub sp, #12
  32344. 800e24c: af00 add r7, sp, #0
  32345. 800e24e: 6078 str r0, [r7, #4]
  32346. /* Check whether the set of advanced features to configure is properly set */
  32347. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  32348. /* if required, configure RX/TX pins swap */
  32349. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  32350. 800e250: 687b ldr r3, [r7, #4]
  32351. 800e252: 6a9b ldr r3, [r3, #40] @ 0x28
  32352. 800e254: f003 0308 and.w r3, r3, #8
  32353. 800e258: 2b00 cmp r3, #0
  32354. 800e25a: d00a beq.n 800e272 <UART_AdvFeatureConfig+0x2a>
  32355. {
  32356. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  32357. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  32358. 800e25c: 687b ldr r3, [r7, #4]
  32359. 800e25e: 681b ldr r3, [r3, #0]
  32360. 800e260: 685b ldr r3, [r3, #4]
  32361. 800e262: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  32362. 800e266: 687b ldr r3, [r7, #4]
  32363. 800e268: 6b9a ldr r2, [r3, #56] @ 0x38
  32364. 800e26a: 687b ldr r3, [r7, #4]
  32365. 800e26c: 681b ldr r3, [r3, #0]
  32366. 800e26e: 430a orrs r2, r1
  32367. 800e270: 605a str r2, [r3, #4]
  32368. }
  32369. /* if required, configure TX pin active level inversion */
  32370. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  32371. 800e272: 687b ldr r3, [r7, #4]
  32372. 800e274: 6a9b ldr r3, [r3, #40] @ 0x28
  32373. 800e276: f003 0301 and.w r3, r3, #1
  32374. 800e27a: 2b00 cmp r3, #0
  32375. 800e27c: d00a beq.n 800e294 <UART_AdvFeatureConfig+0x4c>
  32376. {
  32377. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  32378. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  32379. 800e27e: 687b ldr r3, [r7, #4]
  32380. 800e280: 681b ldr r3, [r3, #0]
  32381. 800e282: 685b ldr r3, [r3, #4]
  32382. 800e284: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  32383. 800e288: 687b ldr r3, [r7, #4]
  32384. 800e28a: 6ada ldr r2, [r3, #44] @ 0x2c
  32385. 800e28c: 687b ldr r3, [r7, #4]
  32386. 800e28e: 681b ldr r3, [r3, #0]
  32387. 800e290: 430a orrs r2, r1
  32388. 800e292: 605a str r2, [r3, #4]
  32389. }
  32390. /* if required, configure RX pin active level inversion */
  32391. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  32392. 800e294: 687b ldr r3, [r7, #4]
  32393. 800e296: 6a9b ldr r3, [r3, #40] @ 0x28
  32394. 800e298: f003 0302 and.w r3, r3, #2
  32395. 800e29c: 2b00 cmp r3, #0
  32396. 800e29e: d00a beq.n 800e2b6 <UART_AdvFeatureConfig+0x6e>
  32397. {
  32398. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  32399. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  32400. 800e2a0: 687b ldr r3, [r7, #4]
  32401. 800e2a2: 681b ldr r3, [r3, #0]
  32402. 800e2a4: 685b ldr r3, [r3, #4]
  32403. 800e2a6: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  32404. 800e2aa: 687b ldr r3, [r7, #4]
  32405. 800e2ac: 6b1a ldr r2, [r3, #48] @ 0x30
  32406. 800e2ae: 687b ldr r3, [r7, #4]
  32407. 800e2b0: 681b ldr r3, [r3, #0]
  32408. 800e2b2: 430a orrs r2, r1
  32409. 800e2b4: 605a str r2, [r3, #4]
  32410. }
  32411. /* if required, configure data inversion */
  32412. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  32413. 800e2b6: 687b ldr r3, [r7, #4]
  32414. 800e2b8: 6a9b ldr r3, [r3, #40] @ 0x28
  32415. 800e2ba: f003 0304 and.w r3, r3, #4
  32416. 800e2be: 2b00 cmp r3, #0
  32417. 800e2c0: d00a beq.n 800e2d8 <UART_AdvFeatureConfig+0x90>
  32418. {
  32419. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  32420. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  32421. 800e2c2: 687b ldr r3, [r7, #4]
  32422. 800e2c4: 681b ldr r3, [r3, #0]
  32423. 800e2c6: 685b ldr r3, [r3, #4]
  32424. 800e2c8: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  32425. 800e2cc: 687b ldr r3, [r7, #4]
  32426. 800e2ce: 6b5a ldr r2, [r3, #52] @ 0x34
  32427. 800e2d0: 687b ldr r3, [r7, #4]
  32428. 800e2d2: 681b ldr r3, [r3, #0]
  32429. 800e2d4: 430a orrs r2, r1
  32430. 800e2d6: 605a str r2, [r3, #4]
  32431. }
  32432. /* if required, configure RX overrun detection disabling */
  32433. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  32434. 800e2d8: 687b ldr r3, [r7, #4]
  32435. 800e2da: 6a9b ldr r3, [r3, #40] @ 0x28
  32436. 800e2dc: f003 0310 and.w r3, r3, #16
  32437. 800e2e0: 2b00 cmp r3, #0
  32438. 800e2e2: d00a beq.n 800e2fa <UART_AdvFeatureConfig+0xb2>
  32439. {
  32440. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  32441. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  32442. 800e2e4: 687b ldr r3, [r7, #4]
  32443. 800e2e6: 681b ldr r3, [r3, #0]
  32444. 800e2e8: 689b ldr r3, [r3, #8]
  32445. 800e2ea: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  32446. 800e2ee: 687b ldr r3, [r7, #4]
  32447. 800e2f0: 6bda ldr r2, [r3, #60] @ 0x3c
  32448. 800e2f2: 687b ldr r3, [r7, #4]
  32449. 800e2f4: 681b ldr r3, [r3, #0]
  32450. 800e2f6: 430a orrs r2, r1
  32451. 800e2f8: 609a str r2, [r3, #8]
  32452. }
  32453. /* if required, configure DMA disabling on reception error */
  32454. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  32455. 800e2fa: 687b ldr r3, [r7, #4]
  32456. 800e2fc: 6a9b ldr r3, [r3, #40] @ 0x28
  32457. 800e2fe: f003 0320 and.w r3, r3, #32
  32458. 800e302: 2b00 cmp r3, #0
  32459. 800e304: d00a beq.n 800e31c <UART_AdvFeatureConfig+0xd4>
  32460. {
  32461. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  32462. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  32463. 800e306: 687b ldr r3, [r7, #4]
  32464. 800e308: 681b ldr r3, [r3, #0]
  32465. 800e30a: 689b ldr r3, [r3, #8]
  32466. 800e30c: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  32467. 800e310: 687b ldr r3, [r7, #4]
  32468. 800e312: 6c1a ldr r2, [r3, #64] @ 0x40
  32469. 800e314: 687b ldr r3, [r7, #4]
  32470. 800e316: 681b ldr r3, [r3, #0]
  32471. 800e318: 430a orrs r2, r1
  32472. 800e31a: 609a str r2, [r3, #8]
  32473. }
  32474. /* if required, configure auto Baud rate detection scheme */
  32475. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  32476. 800e31c: 687b ldr r3, [r7, #4]
  32477. 800e31e: 6a9b ldr r3, [r3, #40] @ 0x28
  32478. 800e320: f003 0340 and.w r3, r3, #64 @ 0x40
  32479. 800e324: 2b00 cmp r3, #0
  32480. 800e326: d01a beq.n 800e35e <UART_AdvFeatureConfig+0x116>
  32481. {
  32482. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  32483. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  32484. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  32485. 800e328: 687b ldr r3, [r7, #4]
  32486. 800e32a: 681b ldr r3, [r3, #0]
  32487. 800e32c: 685b ldr r3, [r3, #4]
  32488. 800e32e: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  32489. 800e332: 687b ldr r3, [r7, #4]
  32490. 800e334: 6c5a ldr r2, [r3, #68] @ 0x44
  32491. 800e336: 687b ldr r3, [r7, #4]
  32492. 800e338: 681b ldr r3, [r3, #0]
  32493. 800e33a: 430a orrs r2, r1
  32494. 800e33c: 605a str r2, [r3, #4]
  32495. /* set auto Baudrate detection parameters if detection is enabled */
  32496. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  32497. 800e33e: 687b ldr r3, [r7, #4]
  32498. 800e340: 6c5b ldr r3, [r3, #68] @ 0x44
  32499. 800e342: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  32500. 800e346: d10a bne.n 800e35e <UART_AdvFeatureConfig+0x116>
  32501. {
  32502. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  32503. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  32504. 800e348: 687b ldr r3, [r7, #4]
  32505. 800e34a: 681b ldr r3, [r3, #0]
  32506. 800e34c: 685b ldr r3, [r3, #4]
  32507. 800e34e: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  32508. 800e352: 687b ldr r3, [r7, #4]
  32509. 800e354: 6c9a ldr r2, [r3, #72] @ 0x48
  32510. 800e356: 687b ldr r3, [r7, #4]
  32511. 800e358: 681b ldr r3, [r3, #0]
  32512. 800e35a: 430a orrs r2, r1
  32513. 800e35c: 605a str r2, [r3, #4]
  32514. }
  32515. }
  32516. /* if required, configure MSB first on communication line */
  32517. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  32518. 800e35e: 687b ldr r3, [r7, #4]
  32519. 800e360: 6a9b ldr r3, [r3, #40] @ 0x28
  32520. 800e362: f003 0380 and.w r3, r3, #128 @ 0x80
  32521. 800e366: 2b00 cmp r3, #0
  32522. 800e368: d00a beq.n 800e380 <UART_AdvFeatureConfig+0x138>
  32523. {
  32524. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  32525. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  32526. 800e36a: 687b ldr r3, [r7, #4]
  32527. 800e36c: 681b ldr r3, [r3, #0]
  32528. 800e36e: 685b ldr r3, [r3, #4]
  32529. 800e370: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  32530. 800e374: 687b ldr r3, [r7, #4]
  32531. 800e376: 6cda ldr r2, [r3, #76] @ 0x4c
  32532. 800e378: 687b ldr r3, [r7, #4]
  32533. 800e37a: 681b ldr r3, [r3, #0]
  32534. 800e37c: 430a orrs r2, r1
  32535. 800e37e: 605a str r2, [r3, #4]
  32536. }
  32537. }
  32538. 800e380: bf00 nop
  32539. 800e382: 370c adds r7, #12
  32540. 800e384: 46bd mov sp, r7
  32541. 800e386: f85d 7b04 ldr.w r7, [sp], #4
  32542. 800e38a: 4770 bx lr
  32543. 0800e38c <UART_CheckIdleState>:
  32544. * @brief Check the UART Idle State.
  32545. * @param huart UART handle.
  32546. * @retval HAL status
  32547. */
  32548. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  32549. {
  32550. 800e38c: b580 push {r7, lr}
  32551. 800e38e: b098 sub sp, #96 @ 0x60
  32552. 800e390: af02 add r7, sp, #8
  32553. 800e392: 6078 str r0, [r7, #4]
  32554. uint32_t tickstart;
  32555. /* Initialize the UART ErrorCode */
  32556. huart->ErrorCode = HAL_UART_ERROR_NONE;
  32557. 800e394: 687b ldr r3, [r7, #4]
  32558. 800e396: 2200 movs r2, #0
  32559. 800e398: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  32560. /* Init tickstart for timeout management */
  32561. tickstart = HAL_GetTick();
  32562. 800e39c: f7f6 fe52 bl 8005044 <HAL_GetTick>
  32563. 800e3a0: 6578 str r0, [r7, #84] @ 0x54
  32564. /* Check if the Transmitter is enabled */
  32565. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  32566. 800e3a2: 687b ldr r3, [r7, #4]
  32567. 800e3a4: 681b ldr r3, [r3, #0]
  32568. 800e3a6: 681b ldr r3, [r3, #0]
  32569. 800e3a8: f003 0308 and.w r3, r3, #8
  32570. 800e3ac: 2b08 cmp r3, #8
  32571. 800e3ae: d12f bne.n 800e410 <UART_CheckIdleState+0x84>
  32572. {
  32573. /* Wait until TEACK flag is set */
  32574. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  32575. 800e3b0: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  32576. 800e3b4: 9300 str r3, [sp, #0]
  32577. 800e3b6: 6d7b ldr r3, [r7, #84] @ 0x54
  32578. 800e3b8: 2200 movs r2, #0
  32579. 800e3ba: f44f 1100 mov.w r1, #2097152 @ 0x200000
  32580. 800e3be: 6878 ldr r0, [r7, #4]
  32581. 800e3c0: f000 f88e bl 800e4e0 <UART_WaitOnFlagUntilTimeout>
  32582. 800e3c4: 4603 mov r3, r0
  32583. 800e3c6: 2b00 cmp r3, #0
  32584. 800e3c8: d022 beq.n 800e410 <UART_CheckIdleState+0x84>
  32585. {
  32586. /* Disable TXE interrupt for the interrupt process */
  32587. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  32588. 800e3ca: 687b ldr r3, [r7, #4]
  32589. 800e3cc: 681b ldr r3, [r3, #0]
  32590. 800e3ce: 63bb str r3, [r7, #56] @ 0x38
  32591. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32592. 800e3d0: 6bbb ldr r3, [r7, #56] @ 0x38
  32593. 800e3d2: e853 3f00 ldrex r3, [r3]
  32594. 800e3d6: 637b str r3, [r7, #52] @ 0x34
  32595. return(result);
  32596. 800e3d8: 6b7b ldr r3, [r7, #52] @ 0x34
  32597. 800e3da: f023 0380 bic.w r3, r3, #128 @ 0x80
  32598. 800e3de: 653b str r3, [r7, #80] @ 0x50
  32599. 800e3e0: 687b ldr r3, [r7, #4]
  32600. 800e3e2: 681b ldr r3, [r3, #0]
  32601. 800e3e4: 461a mov r2, r3
  32602. 800e3e6: 6d3b ldr r3, [r7, #80] @ 0x50
  32603. 800e3e8: 647b str r3, [r7, #68] @ 0x44
  32604. 800e3ea: 643a str r2, [r7, #64] @ 0x40
  32605. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32606. 800e3ec: 6c39 ldr r1, [r7, #64] @ 0x40
  32607. 800e3ee: 6c7a ldr r2, [r7, #68] @ 0x44
  32608. 800e3f0: e841 2300 strex r3, r2, [r1]
  32609. 800e3f4: 63fb str r3, [r7, #60] @ 0x3c
  32610. return(result);
  32611. 800e3f6: 6bfb ldr r3, [r7, #60] @ 0x3c
  32612. 800e3f8: 2b00 cmp r3, #0
  32613. 800e3fa: d1e6 bne.n 800e3ca <UART_CheckIdleState+0x3e>
  32614. huart->gState = HAL_UART_STATE_READY;
  32615. 800e3fc: 687b ldr r3, [r7, #4]
  32616. 800e3fe: 2220 movs r2, #32
  32617. 800e400: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  32618. __HAL_UNLOCK(huart);
  32619. 800e404: 687b ldr r3, [r7, #4]
  32620. 800e406: 2200 movs r2, #0
  32621. 800e408: f883 2084 strb.w r2, [r3, #132] @ 0x84
  32622. /* Timeout occurred */
  32623. return HAL_TIMEOUT;
  32624. 800e40c: 2303 movs r3, #3
  32625. 800e40e: e063 b.n 800e4d8 <UART_CheckIdleState+0x14c>
  32626. }
  32627. }
  32628. /* Check if the Receiver is enabled */
  32629. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  32630. 800e410: 687b ldr r3, [r7, #4]
  32631. 800e412: 681b ldr r3, [r3, #0]
  32632. 800e414: 681b ldr r3, [r3, #0]
  32633. 800e416: f003 0304 and.w r3, r3, #4
  32634. 800e41a: 2b04 cmp r3, #4
  32635. 800e41c: d149 bne.n 800e4b2 <UART_CheckIdleState+0x126>
  32636. {
  32637. /* Wait until REACK flag is set */
  32638. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  32639. 800e41e: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  32640. 800e422: 9300 str r3, [sp, #0]
  32641. 800e424: 6d7b ldr r3, [r7, #84] @ 0x54
  32642. 800e426: 2200 movs r2, #0
  32643. 800e428: f44f 0180 mov.w r1, #4194304 @ 0x400000
  32644. 800e42c: 6878 ldr r0, [r7, #4]
  32645. 800e42e: f000 f857 bl 800e4e0 <UART_WaitOnFlagUntilTimeout>
  32646. 800e432: 4603 mov r3, r0
  32647. 800e434: 2b00 cmp r3, #0
  32648. 800e436: d03c beq.n 800e4b2 <UART_CheckIdleState+0x126>
  32649. {
  32650. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  32651. interrupts for the interrupt process */
  32652. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  32653. 800e438: 687b ldr r3, [r7, #4]
  32654. 800e43a: 681b ldr r3, [r3, #0]
  32655. 800e43c: 627b str r3, [r7, #36] @ 0x24
  32656. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32657. 800e43e: 6a7b ldr r3, [r7, #36] @ 0x24
  32658. 800e440: e853 3f00 ldrex r3, [r3]
  32659. 800e444: 623b str r3, [r7, #32]
  32660. return(result);
  32661. 800e446: 6a3b ldr r3, [r7, #32]
  32662. 800e448: f423 7390 bic.w r3, r3, #288 @ 0x120
  32663. 800e44c: 64fb str r3, [r7, #76] @ 0x4c
  32664. 800e44e: 687b ldr r3, [r7, #4]
  32665. 800e450: 681b ldr r3, [r3, #0]
  32666. 800e452: 461a mov r2, r3
  32667. 800e454: 6cfb ldr r3, [r7, #76] @ 0x4c
  32668. 800e456: 633b str r3, [r7, #48] @ 0x30
  32669. 800e458: 62fa str r2, [r7, #44] @ 0x2c
  32670. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32671. 800e45a: 6af9 ldr r1, [r7, #44] @ 0x2c
  32672. 800e45c: 6b3a ldr r2, [r7, #48] @ 0x30
  32673. 800e45e: e841 2300 strex r3, r2, [r1]
  32674. 800e462: 62bb str r3, [r7, #40] @ 0x28
  32675. return(result);
  32676. 800e464: 6abb ldr r3, [r7, #40] @ 0x28
  32677. 800e466: 2b00 cmp r3, #0
  32678. 800e468: d1e6 bne.n 800e438 <UART_CheckIdleState+0xac>
  32679. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  32680. 800e46a: 687b ldr r3, [r7, #4]
  32681. 800e46c: 681b ldr r3, [r3, #0]
  32682. 800e46e: 3308 adds r3, #8
  32683. 800e470: 613b str r3, [r7, #16]
  32684. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32685. 800e472: 693b ldr r3, [r7, #16]
  32686. 800e474: e853 3f00 ldrex r3, [r3]
  32687. 800e478: 60fb str r3, [r7, #12]
  32688. return(result);
  32689. 800e47a: 68fb ldr r3, [r7, #12]
  32690. 800e47c: f023 0301 bic.w r3, r3, #1
  32691. 800e480: 64bb str r3, [r7, #72] @ 0x48
  32692. 800e482: 687b ldr r3, [r7, #4]
  32693. 800e484: 681b ldr r3, [r3, #0]
  32694. 800e486: 3308 adds r3, #8
  32695. 800e488: 6cba ldr r2, [r7, #72] @ 0x48
  32696. 800e48a: 61fa str r2, [r7, #28]
  32697. 800e48c: 61bb str r3, [r7, #24]
  32698. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32699. 800e48e: 69b9 ldr r1, [r7, #24]
  32700. 800e490: 69fa ldr r2, [r7, #28]
  32701. 800e492: e841 2300 strex r3, r2, [r1]
  32702. 800e496: 617b str r3, [r7, #20]
  32703. return(result);
  32704. 800e498: 697b ldr r3, [r7, #20]
  32705. 800e49a: 2b00 cmp r3, #0
  32706. 800e49c: d1e5 bne.n 800e46a <UART_CheckIdleState+0xde>
  32707. huart->RxState = HAL_UART_STATE_READY;
  32708. 800e49e: 687b ldr r3, [r7, #4]
  32709. 800e4a0: 2220 movs r2, #32
  32710. 800e4a2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32711. __HAL_UNLOCK(huart);
  32712. 800e4a6: 687b ldr r3, [r7, #4]
  32713. 800e4a8: 2200 movs r2, #0
  32714. 800e4aa: f883 2084 strb.w r2, [r3, #132] @ 0x84
  32715. /* Timeout occurred */
  32716. return HAL_TIMEOUT;
  32717. 800e4ae: 2303 movs r3, #3
  32718. 800e4b0: e012 b.n 800e4d8 <UART_CheckIdleState+0x14c>
  32719. }
  32720. }
  32721. /* Initialize the UART State */
  32722. huart->gState = HAL_UART_STATE_READY;
  32723. 800e4b2: 687b ldr r3, [r7, #4]
  32724. 800e4b4: 2220 movs r2, #32
  32725. 800e4b6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  32726. huart->RxState = HAL_UART_STATE_READY;
  32727. 800e4ba: 687b ldr r3, [r7, #4]
  32728. 800e4bc: 2220 movs r2, #32
  32729. 800e4be: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32730. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  32731. 800e4c2: 687b ldr r3, [r7, #4]
  32732. 800e4c4: 2200 movs r2, #0
  32733. 800e4c6: 66da str r2, [r3, #108] @ 0x6c
  32734. huart->RxEventType = HAL_UART_RXEVENT_TC;
  32735. 800e4c8: 687b ldr r3, [r7, #4]
  32736. 800e4ca: 2200 movs r2, #0
  32737. 800e4cc: 671a str r2, [r3, #112] @ 0x70
  32738. __HAL_UNLOCK(huart);
  32739. 800e4ce: 687b ldr r3, [r7, #4]
  32740. 800e4d0: 2200 movs r2, #0
  32741. 800e4d2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  32742. return HAL_OK;
  32743. 800e4d6: 2300 movs r3, #0
  32744. }
  32745. 800e4d8: 4618 mov r0, r3
  32746. 800e4da: 3758 adds r7, #88 @ 0x58
  32747. 800e4dc: 46bd mov sp, r7
  32748. 800e4de: bd80 pop {r7, pc}
  32749. 0800e4e0 <UART_WaitOnFlagUntilTimeout>:
  32750. * @param Timeout Timeout duration
  32751. * @retval HAL status
  32752. */
  32753. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  32754. uint32_t Tickstart, uint32_t Timeout)
  32755. {
  32756. 800e4e0: b580 push {r7, lr}
  32757. 800e4e2: b084 sub sp, #16
  32758. 800e4e4: af00 add r7, sp, #0
  32759. 800e4e6: 60f8 str r0, [r7, #12]
  32760. 800e4e8: 60b9 str r1, [r7, #8]
  32761. 800e4ea: 603b str r3, [r7, #0]
  32762. 800e4ec: 4613 mov r3, r2
  32763. 800e4ee: 71fb strb r3, [r7, #7]
  32764. /* Wait until flag is set */
  32765. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  32766. 800e4f0: e04f b.n 800e592 <UART_WaitOnFlagUntilTimeout+0xb2>
  32767. {
  32768. /* Check for the Timeout */
  32769. if (Timeout != HAL_MAX_DELAY)
  32770. 800e4f2: 69bb ldr r3, [r7, #24]
  32771. 800e4f4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  32772. 800e4f8: d04b beq.n 800e592 <UART_WaitOnFlagUntilTimeout+0xb2>
  32773. {
  32774. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  32775. 800e4fa: f7f6 fda3 bl 8005044 <HAL_GetTick>
  32776. 800e4fe: 4602 mov r2, r0
  32777. 800e500: 683b ldr r3, [r7, #0]
  32778. 800e502: 1ad3 subs r3, r2, r3
  32779. 800e504: 69ba ldr r2, [r7, #24]
  32780. 800e506: 429a cmp r2, r3
  32781. 800e508: d302 bcc.n 800e510 <UART_WaitOnFlagUntilTimeout+0x30>
  32782. 800e50a: 69bb ldr r3, [r7, #24]
  32783. 800e50c: 2b00 cmp r3, #0
  32784. 800e50e: d101 bne.n 800e514 <UART_WaitOnFlagUntilTimeout+0x34>
  32785. {
  32786. return HAL_TIMEOUT;
  32787. 800e510: 2303 movs r3, #3
  32788. 800e512: e04e b.n 800e5b2 <UART_WaitOnFlagUntilTimeout+0xd2>
  32789. }
  32790. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  32791. 800e514: 68fb ldr r3, [r7, #12]
  32792. 800e516: 681b ldr r3, [r3, #0]
  32793. 800e518: 681b ldr r3, [r3, #0]
  32794. 800e51a: f003 0304 and.w r3, r3, #4
  32795. 800e51e: 2b00 cmp r3, #0
  32796. 800e520: d037 beq.n 800e592 <UART_WaitOnFlagUntilTimeout+0xb2>
  32797. 800e522: 68bb ldr r3, [r7, #8]
  32798. 800e524: 2b80 cmp r3, #128 @ 0x80
  32799. 800e526: d034 beq.n 800e592 <UART_WaitOnFlagUntilTimeout+0xb2>
  32800. 800e528: 68bb ldr r3, [r7, #8]
  32801. 800e52a: 2b40 cmp r3, #64 @ 0x40
  32802. 800e52c: d031 beq.n 800e592 <UART_WaitOnFlagUntilTimeout+0xb2>
  32803. {
  32804. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  32805. 800e52e: 68fb ldr r3, [r7, #12]
  32806. 800e530: 681b ldr r3, [r3, #0]
  32807. 800e532: 69db ldr r3, [r3, #28]
  32808. 800e534: f003 0308 and.w r3, r3, #8
  32809. 800e538: 2b08 cmp r3, #8
  32810. 800e53a: d110 bne.n 800e55e <UART_WaitOnFlagUntilTimeout+0x7e>
  32811. {
  32812. /* Clear Overrun Error flag*/
  32813. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  32814. 800e53c: 68fb ldr r3, [r7, #12]
  32815. 800e53e: 681b ldr r3, [r3, #0]
  32816. 800e540: 2208 movs r2, #8
  32817. 800e542: 621a str r2, [r3, #32]
  32818. /* Blocking error : transfer is aborted
  32819. Set the UART state ready to be able to start again the process,
  32820. Disable Rx Interrupts if ongoing */
  32821. UART_EndRxTransfer(huart);
  32822. 800e544: 68f8 ldr r0, [r7, #12]
  32823. 800e546: f000 f95b bl 800e800 <UART_EndRxTransfer>
  32824. huart->ErrorCode = HAL_UART_ERROR_ORE;
  32825. 800e54a: 68fb ldr r3, [r7, #12]
  32826. 800e54c: 2208 movs r2, #8
  32827. 800e54e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  32828. /* Process Unlocked */
  32829. __HAL_UNLOCK(huart);
  32830. 800e552: 68fb ldr r3, [r7, #12]
  32831. 800e554: 2200 movs r2, #0
  32832. 800e556: f883 2084 strb.w r2, [r3, #132] @ 0x84
  32833. return HAL_ERROR;
  32834. 800e55a: 2301 movs r3, #1
  32835. 800e55c: e029 b.n 800e5b2 <UART_WaitOnFlagUntilTimeout+0xd2>
  32836. }
  32837. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  32838. 800e55e: 68fb ldr r3, [r7, #12]
  32839. 800e560: 681b ldr r3, [r3, #0]
  32840. 800e562: 69db ldr r3, [r3, #28]
  32841. 800e564: f403 6300 and.w r3, r3, #2048 @ 0x800
  32842. 800e568: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  32843. 800e56c: d111 bne.n 800e592 <UART_WaitOnFlagUntilTimeout+0xb2>
  32844. {
  32845. /* Clear Receiver Timeout flag*/
  32846. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  32847. 800e56e: 68fb ldr r3, [r7, #12]
  32848. 800e570: 681b ldr r3, [r3, #0]
  32849. 800e572: f44f 6200 mov.w r2, #2048 @ 0x800
  32850. 800e576: 621a str r2, [r3, #32]
  32851. /* Blocking error : transfer is aborted
  32852. Set the UART state ready to be able to start again the process,
  32853. Disable Rx Interrupts if ongoing */
  32854. UART_EndRxTransfer(huart);
  32855. 800e578: 68f8 ldr r0, [r7, #12]
  32856. 800e57a: f000 f941 bl 800e800 <UART_EndRxTransfer>
  32857. huart->ErrorCode = HAL_UART_ERROR_RTO;
  32858. 800e57e: 68fb ldr r3, [r7, #12]
  32859. 800e580: 2220 movs r2, #32
  32860. 800e582: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  32861. /* Process Unlocked */
  32862. __HAL_UNLOCK(huart);
  32863. 800e586: 68fb ldr r3, [r7, #12]
  32864. 800e588: 2200 movs r2, #0
  32865. 800e58a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  32866. return HAL_TIMEOUT;
  32867. 800e58e: 2303 movs r3, #3
  32868. 800e590: e00f b.n 800e5b2 <UART_WaitOnFlagUntilTimeout+0xd2>
  32869. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  32870. 800e592: 68fb ldr r3, [r7, #12]
  32871. 800e594: 681b ldr r3, [r3, #0]
  32872. 800e596: 69da ldr r2, [r3, #28]
  32873. 800e598: 68bb ldr r3, [r7, #8]
  32874. 800e59a: 4013 ands r3, r2
  32875. 800e59c: 68ba ldr r2, [r7, #8]
  32876. 800e59e: 429a cmp r2, r3
  32877. 800e5a0: bf0c ite eq
  32878. 800e5a2: 2301 moveq r3, #1
  32879. 800e5a4: 2300 movne r3, #0
  32880. 800e5a6: b2db uxtb r3, r3
  32881. 800e5a8: 461a mov r2, r3
  32882. 800e5aa: 79fb ldrb r3, [r7, #7]
  32883. 800e5ac: 429a cmp r2, r3
  32884. 800e5ae: d0a0 beq.n 800e4f2 <UART_WaitOnFlagUntilTimeout+0x12>
  32885. }
  32886. }
  32887. }
  32888. }
  32889. return HAL_OK;
  32890. 800e5b0: 2300 movs r3, #0
  32891. }
  32892. 800e5b2: 4618 mov r0, r3
  32893. 800e5b4: 3710 adds r7, #16
  32894. 800e5b6: 46bd mov sp, r7
  32895. 800e5b8: bd80 pop {r7, pc}
  32896. ...
  32897. 0800e5bc <UART_Start_Receive_IT>:
  32898. * @param pData Pointer to data buffer (u8 or u16 data elements).
  32899. * @param Size Amount of data elements (u8 or u16) to be received.
  32900. * @retval HAL status
  32901. */
  32902. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  32903. {
  32904. 800e5bc: b480 push {r7}
  32905. 800e5be: b0a3 sub sp, #140 @ 0x8c
  32906. 800e5c0: af00 add r7, sp, #0
  32907. 800e5c2: 60f8 str r0, [r7, #12]
  32908. 800e5c4: 60b9 str r1, [r7, #8]
  32909. 800e5c6: 4613 mov r3, r2
  32910. 800e5c8: 80fb strh r3, [r7, #6]
  32911. huart->pRxBuffPtr = pData;
  32912. 800e5ca: 68fb ldr r3, [r7, #12]
  32913. 800e5cc: 68ba ldr r2, [r7, #8]
  32914. 800e5ce: 659a str r2, [r3, #88] @ 0x58
  32915. huart->RxXferSize = Size;
  32916. 800e5d0: 68fb ldr r3, [r7, #12]
  32917. 800e5d2: 88fa ldrh r2, [r7, #6]
  32918. 800e5d4: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  32919. huart->RxXferCount = Size;
  32920. 800e5d8: 68fb ldr r3, [r7, #12]
  32921. 800e5da: 88fa ldrh r2, [r7, #6]
  32922. 800e5dc: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  32923. huart->RxISR = NULL;
  32924. 800e5e0: 68fb ldr r3, [r7, #12]
  32925. 800e5e2: 2200 movs r2, #0
  32926. 800e5e4: 675a str r2, [r3, #116] @ 0x74
  32927. /* Computation of UART mask to apply to RDR register */
  32928. UART_MASK_COMPUTATION(huart);
  32929. 800e5e6: 68fb ldr r3, [r7, #12]
  32930. 800e5e8: 689b ldr r3, [r3, #8]
  32931. 800e5ea: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32932. 800e5ee: d10e bne.n 800e60e <UART_Start_Receive_IT+0x52>
  32933. 800e5f0: 68fb ldr r3, [r7, #12]
  32934. 800e5f2: 691b ldr r3, [r3, #16]
  32935. 800e5f4: 2b00 cmp r3, #0
  32936. 800e5f6: d105 bne.n 800e604 <UART_Start_Receive_IT+0x48>
  32937. 800e5f8: 68fb ldr r3, [r7, #12]
  32938. 800e5fa: f240 12ff movw r2, #511 @ 0x1ff
  32939. 800e5fe: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32940. 800e602: e02d b.n 800e660 <UART_Start_Receive_IT+0xa4>
  32941. 800e604: 68fb ldr r3, [r7, #12]
  32942. 800e606: 22ff movs r2, #255 @ 0xff
  32943. 800e608: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32944. 800e60c: e028 b.n 800e660 <UART_Start_Receive_IT+0xa4>
  32945. 800e60e: 68fb ldr r3, [r7, #12]
  32946. 800e610: 689b ldr r3, [r3, #8]
  32947. 800e612: 2b00 cmp r3, #0
  32948. 800e614: d10d bne.n 800e632 <UART_Start_Receive_IT+0x76>
  32949. 800e616: 68fb ldr r3, [r7, #12]
  32950. 800e618: 691b ldr r3, [r3, #16]
  32951. 800e61a: 2b00 cmp r3, #0
  32952. 800e61c: d104 bne.n 800e628 <UART_Start_Receive_IT+0x6c>
  32953. 800e61e: 68fb ldr r3, [r7, #12]
  32954. 800e620: 22ff movs r2, #255 @ 0xff
  32955. 800e622: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32956. 800e626: e01b b.n 800e660 <UART_Start_Receive_IT+0xa4>
  32957. 800e628: 68fb ldr r3, [r7, #12]
  32958. 800e62a: 227f movs r2, #127 @ 0x7f
  32959. 800e62c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32960. 800e630: e016 b.n 800e660 <UART_Start_Receive_IT+0xa4>
  32961. 800e632: 68fb ldr r3, [r7, #12]
  32962. 800e634: 689b ldr r3, [r3, #8]
  32963. 800e636: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32964. 800e63a: d10d bne.n 800e658 <UART_Start_Receive_IT+0x9c>
  32965. 800e63c: 68fb ldr r3, [r7, #12]
  32966. 800e63e: 691b ldr r3, [r3, #16]
  32967. 800e640: 2b00 cmp r3, #0
  32968. 800e642: d104 bne.n 800e64e <UART_Start_Receive_IT+0x92>
  32969. 800e644: 68fb ldr r3, [r7, #12]
  32970. 800e646: 227f movs r2, #127 @ 0x7f
  32971. 800e648: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32972. 800e64c: e008 b.n 800e660 <UART_Start_Receive_IT+0xa4>
  32973. 800e64e: 68fb ldr r3, [r7, #12]
  32974. 800e650: 223f movs r2, #63 @ 0x3f
  32975. 800e652: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32976. 800e656: e003 b.n 800e660 <UART_Start_Receive_IT+0xa4>
  32977. 800e658: 68fb ldr r3, [r7, #12]
  32978. 800e65a: 2200 movs r2, #0
  32979. 800e65c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  32980. huart->ErrorCode = HAL_UART_ERROR_NONE;
  32981. 800e660: 68fb ldr r3, [r7, #12]
  32982. 800e662: 2200 movs r2, #0
  32983. 800e664: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  32984. huart->RxState = HAL_UART_STATE_BUSY_RX;
  32985. 800e668: 68fb ldr r3, [r7, #12]
  32986. 800e66a: 2222 movs r2, #34 @ 0x22
  32987. 800e66c: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32988. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  32989. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  32990. 800e670: 68fb ldr r3, [r7, #12]
  32991. 800e672: 681b ldr r3, [r3, #0]
  32992. 800e674: 3308 adds r3, #8
  32993. 800e676: 667b str r3, [r7, #100] @ 0x64
  32994. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32995. 800e678: 6e7b ldr r3, [r7, #100] @ 0x64
  32996. 800e67a: e853 3f00 ldrex r3, [r3]
  32997. 800e67e: 663b str r3, [r7, #96] @ 0x60
  32998. return(result);
  32999. 800e680: 6e3b ldr r3, [r7, #96] @ 0x60
  33000. 800e682: f043 0301 orr.w r3, r3, #1
  33001. 800e686: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  33002. 800e68a: 68fb ldr r3, [r7, #12]
  33003. 800e68c: 681b ldr r3, [r3, #0]
  33004. 800e68e: 3308 adds r3, #8
  33005. 800e690: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  33006. 800e694: 673a str r2, [r7, #112] @ 0x70
  33007. 800e696: 66fb str r3, [r7, #108] @ 0x6c
  33008. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33009. 800e698: 6ef9 ldr r1, [r7, #108] @ 0x6c
  33010. 800e69a: 6f3a ldr r2, [r7, #112] @ 0x70
  33011. 800e69c: e841 2300 strex r3, r2, [r1]
  33012. 800e6a0: 66bb str r3, [r7, #104] @ 0x68
  33013. return(result);
  33014. 800e6a2: 6ebb ldr r3, [r7, #104] @ 0x68
  33015. 800e6a4: 2b00 cmp r3, #0
  33016. 800e6a6: d1e3 bne.n 800e670 <UART_Start_Receive_IT+0xb4>
  33017. /* Configure Rx interrupt processing */
  33018. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  33019. 800e6a8: 68fb ldr r3, [r7, #12]
  33020. 800e6aa: 6e5b ldr r3, [r3, #100] @ 0x64
  33021. 800e6ac: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33022. 800e6b0: d14f bne.n 800e752 <UART_Start_Receive_IT+0x196>
  33023. 800e6b2: 68fb ldr r3, [r7, #12]
  33024. 800e6b4: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  33025. 800e6b8: 88fa ldrh r2, [r7, #6]
  33026. 800e6ba: 429a cmp r2, r3
  33027. 800e6bc: d349 bcc.n 800e752 <UART_Start_Receive_IT+0x196>
  33028. {
  33029. /* Set the Rx ISR function pointer according to the data word length */
  33030. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  33031. 800e6be: 68fb ldr r3, [r7, #12]
  33032. 800e6c0: 689b ldr r3, [r3, #8]
  33033. 800e6c2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  33034. 800e6c6: d107 bne.n 800e6d8 <UART_Start_Receive_IT+0x11c>
  33035. 800e6c8: 68fb ldr r3, [r7, #12]
  33036. 800e6ca: 691b ldr r3, [r3, #16]
  33037. 800e6cc: 2b00 cmp r3, #0
  33038. 800e6ce: d103 bne.n 800e6d8 <UART_Start_Receive_IT+0x11c>
  33039. {
  33040. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  33041. 800e6d0: 68fb ldr r3, [r7, #12]
  33042. 800e6d2: 4a47 ldr r2, [pc, #284] @ (800e7f0 <UART_Start_Receive_IT+0x234>)
  33043. 800e6d4: 675a str r2, [r3, #116] @ 0x74
  33044. 800e6d6: e002 b.n 800e6de <UART_Start_Receive_IT+0x122>
  33045. }
  33046. else
  33047. {
  33048. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  33049. 800e6d8: 68fb ldr r3, [r7, #12]
  33050. 800e6da: 4a46 ldr r2, [pc, #280] @ (800e7f4 <UART_Start_Receive_IT+0x238>)
  33051. 800e6dc: 675a str r2, [r3, #116] @ 0x74
  33052. }
  33053. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  33054. if (huart->Init.Parity != UART_PARITY_NONE)
  33055. 800e6de: 68fb ldr r3, [r7, #12]
  33056. 800e6e0: 691b ldr r3, [r3, #16]
  33057. 800e6e2: 2b00 cmp r3, #0
  33058. 800e6e4: d01a beq.n 800e71c <UART_Start_Receive_IT+0x160>
  33059. {
  33060. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  33061. 800e6e6: 68fb ldr r3, [r7, #12]
  33062. 800e6e8: 681b ldr r3, [r3, #0]
  33063. 800e6ea: 653b str r3, [r7, #80] @ 0x50
  33064. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33065. 800e6ec: 6d3b ldr r3, [r7, #80] @ 0x50
  33066. 800e6ee: e853 3f00 ldrex r3, [r3]
  33067. 800e6f2: 64fb str r3, [r7, #76] @ 0x4c
  33068. return(result);
  33069. 800e6f4: 6cfb ldr r3, [r7, #76] @ 0x4c
  33070. 800e6f6: f443 7380 orr.w r3, r3, #256 @ 0x100
  33071. 800e6fa: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  33072. 800e6fe: 68fb ldr r3, [r7, #12]
  33073. 800e700: 681b ldr r3, [r3, #0]
  33074. 800e702: 461a mov r2, r3
  33075. 800e704: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  33076. 800e708: 65fb str r3, [r7, #92] @ 0x5c
  33077. 800e70a: 65ba str r2, [r7, #88] @ 0x58
  33078. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33079. 800e70c: 6db9 ldr r1, [r7, #88] @ 0x58
  33080. 800e70e: 6dfa ldr r2, [r7, #92] @ 0x5c
  33081. 800e710: e841 2300 strex r3, r2, [r1]
  33082. 800e714: 657b str r3, [r7, #84] @ 0x54
  33083. return(result);
  33084. 800e716: 6d7b ldr r3, [r7, #84] @ 0x54
  33085. 800e718: 2b00 cmp r3, #0
  33086. 800e71a: d1e4 bne.n 800e6e6 <UART_Start_Receive_IT+0x12a>
  33087. }
  33088. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  33089. 800e71c: 68fb ldr r3, [r7, #12]
  33090. 800e71e: 681b ldr r3, [r3, #0]
  33091. 800e720: 3308 adds r3, #8
  33092. 800e722: 63fb str r3, [r7, #60] @ 0x3c
  33093. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33094. 800e724: 6bfb ldr r3, [r7, #60] @ 0x3c
  33095. 800e726: e853 3f00 ldrex r3, [r3]
  33096. 800e72a: 63bb str r3, [r7, #56] @ 0x38
  33097. return(result);
  33098. 800e72c: 6bbb ldr r3, [r7, #56] @ 0x38
  33099. 800e72e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  33100. 800e732: 67fb str r3, [r7, #124] @ 0x7c
  33101. 800e734: 68fb ldr r3, [r7, #12]
  33102. 800e736: 681b ldr r3, [r3, #0]
  33103. 800e738: 3308 adds r3, #8
  33104. 800e73a: 6ffa ldr r2, [r7, #124] @ 0x7c
  33105. 800e73c: 64ba str r2, [r7, #72] @ 0x48
  33106. 800e73e: 647b str r3, [r7, #68] @ 0x44
  33107. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33108. 800e740: 6c79 ldr r1, [r7, #68] @ 0x44
  33109. 800e742: 6cba ldr r2, [r7, #72] @ 0x48
  33110. 800e744: e841 2300 strex r3, r2, [r1]
  33111. 800e748: 643b str r3, [r7, #64] @ 0x40
  33112. return(result);
  33113. 800e74a: 6c3b ldr r3, [r7, #64] @ 0x40
  33114. 800e74c: 2b00 cmp r3, #0
  33115. 800e74e: d1e5 bne.n 800e71c <UART_Start_Receive_IT+0x160>
  33116. 800e750: e046 b.n 800e7e0 <UART_Start_Receive_IT+0x224>
  33117. }
  33118. else
  33119. {
  33120. /* Set the Rx ISR function pointer according to the data word length */
  33121. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  33122. 800e752: 68fb ldr r3, [r7, #12]
  33123. 800e754: 689b ldr r3, [r3, #8]
  33124. 800e756: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  33125. 800e75a: d107 bne.n 800e76c <UART_Start_Receive_IT+0x1b0>
  33126. 800e75c: 68fb ldr r3, [r7, #12]
  33127. 800e75e: 691b ldr r3, [r3, #16]
  33128. 800e760: 2b00 cmp r3, #0
  33129. 800e762: d103 bne.n 800e76c <UART_Start_Receive_IT+0x1b0>
  33130. {
  33131. huart->RxISR = UART_RxISR_16BIT;
  33132. 800e764: 68fb ldr r3, [r7, #12]
  33133. 800e766: 4a24 ldr r2, [pc, #144] @ (800e7f8 <UART_Start_Receive_IT+0x23c>)
  33134. 800e768: 675a str r2, [r3, #116] @ 0x74
  33135. 800e76a: e002 b.n 800e772 <UART_Start_Receive_IT+0x1b6>
  33136. }
  33137. else
  33138. {
  33139. huart->RxISR = UART_RxISR_8BIT;
  33140. 800e76c: 68fb ldr r3, [r7, #12]
  33141. 800e76e: 4a23 ldr r2, [pc, #140] @ (800e7fc <UART_Start_Receive_IT+0x240>)
  33142. 800e770: 675a str r2, [r3, #116] @ 0x74
  33143. }
  33144. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  33145. if (huart->Init.Parity != UART_PARITY_NONE)
  33146. 800e772: 68fb ldr r3, [r7, #12]
  33147. 800e774: 691b ldr r3, [r3, #16]
  33148. 800e776: 2b00 cmp r3, #0
  33149. 800e778: d019 beq.n 800e7ae <UART_Start_Receive_IT+0x1f2>
  33150. {
  33151. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  33152. 800e77a: 68fb ldr r3, [r7, #12]
  33153. 800e77c: 681b ldr r3, [r3, #0]
  33154. 800e77e: 62bb str r3, [r7, #40] @ 0x28
  33155. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33156. 800e780: 6abb ldr r3, [r7, #40] @ 0x28
  33157. 800e782: e853 3f00 ldrex r3, [r3]
  33158. 800e786: 627b str r3, [r7, #36] @ 0x24
  33159. return(result);
  33160. 800e788: 6a7b ldr r3, [r7, #36] @ 0x24
  33161. 800e78a: f443 7390 orr.w r3, r3, #288 @ 0x120
  33162. 800e78e: 677b str r3, [r7, #116] @ 0x74
  33163. 800e790: 68fb ldr r3, [r7, #12]
  33164. 800e792: 681b ldr r3, [r3, #0]
  33165. 800e794: 461a mov r2, r3
  33166. 800e796: 6f7b ldr r3, [r7, #116] @ 0x74
  33167. 800e798: 637b str r3, [r7, #52] @ 0x34
  33168. 800e79a: 633a str r2, [r7, #48] @ 0x30
  33169. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33170. 800e79c: 6b39 ldr r1, [r7, #48] @ 0x30
  33171. 800e79e: 6b7a ldr r2, [r7, #52] @ 0x34
  33172. 800e7a0: e841 2300 strex r3, r2, [r1]
  33173. 800e7a4: 62fb str r3, [r7, #44] @ 0x2c
  33174. return(result);
  33175. 800e7a6: 6afb ldr r3, [r7, #44] @ 0x2c
  33176. 800e7a8: 2b00 cmp r3, #0
  33177. 800e7aa: d1e6 bne.n 800e77a <UART_Start_Receive_IT+0x1be>
  33178. 800e7ac: e018 b.n 800e7e0 <UART_Start_Receive_IT+0x224>
  33179. }
  33180. else
  33181. {
  33182. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  33183. 800e7ae: 68fb ldr r3, [r7, #12]
  33184. 800e7b0: 681b ldr r3, [r3, #0]
  33185. 800e7b2: 617b str r3, [r7, #20]
  33186. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33187. 800e7b4: 697b ldr r3, [r7, #20]
  33188. 800e7b6: e853 3f00 ldrex r3, [r3]
  33189. 800e7ba: 613b str r3, [r7, #16]
  33190. return(result);
  33191. 800e7bc: 693b ldr r3, [r7, #16]
  33192. 800e7be: f043 0320 orr.w r3, r3, #32
  33193. 800e7c2: 67bb str r3, [r7, #120] @ 0x78
  33194. 800e7c4: 68fb ldr r3, [r7, #12]
  33195. 800e7c6: 681b ldr r3, [r3, #0]
  33196. 800e7c8: 461a mov r2, r3
  33197. 800e7ca: 6fbb ldr r3, [r7, #120] @ 0x78
  33198. 800e7cc: 623b str r3, [r7, #32]
  33199. 800e7ce: 61fa str r2, [r7, #28]
  33200. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33201. 800e7d0: 69f9 ldr r1, [r7, #28]
  33202. 800e7d2: 6a3a ldr r2, [r7, #32]
  33203. 800e7d4: e841 2300 strex r3, r2, [r1]
  33204. 800e7d8: 61bb str r3, [r7, #24]
  33205. return(result);
  33206. 800e7da: 69bb ldr r3, [r7, #24]
  33207. 800e7dc: 2b00 cmp r3, #0
  33208. 800e7de: d1e6 bne.n 800e7ae <UART_Start_Receive_IT+0x1f2>
  33209. }
  33210. }
  33211. return HAL_OK;
  33212. 800e7e0: 2300 movs r3, #0
  33213. }
  33214. 800e7e2: 4618 mov r0, r3
  33215. 800e7e4: 378c adds r7, #140 @ 0x8c
  33216. 800e7e6: 46bd mov sp, r7
  33217. 800e7e8: f85d 7b04 ldr.w r7, [sp], #4
  33218. 800e7ec: 4770 bx lr
  33219. 800e7ee: bf00 nop
  33220. 800e7f0: 0800f365 .word 0x0800f365
  33221. 800e7f4: 0800f005 .word 0x0800f005
  33222. 800e7f8: 0800ee4d .word 0x0800ee4d
  33223. 800e7fc: 0800ec95 .word 0x0800ec95
  33224. 0800e800 <UART_EndRxTransfer>:
  33225. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  33226. * @param huart UART handle.
  33227. * @retval None
  33228. */
  33229. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  33230. {
  33231. 800e800: b480 push {r7}
  33232. 800e802: b095 sub sp, #84 @ 0x54
  33233. 800e804: af00 add r7, sp, #0
  33234. 800e806: 6078 str r0, [r7, #4]
  33235. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  33236. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  33237. 800e808: 687b ldr r3, [r7, #4]
  33238. 800e80a: 681b ldr r3, [r3, #0]
  33239. 800e80c: 637b str r3, [r7, #52] @ 0x34
  33240. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33241. 800e80e: 6b7b ldr r3, [r7, #52] @ 0x34
  33242. 800e810: e853 3f00 ldrex r3, [r3]
  33243. 800e814: 633b str r3, [r7, #48] @ 0x30
  33244. return(result);
  33245. 800e816: 6b3b ldr r3, [r7, #48] @ 0x30
  33246. 800e818: f423 7390 bic.w r3, r3, #288 @ 0x120
  33247. 800e81c: 64fb str r3, [r7, #76] @ 0x4c
  33248. 800e81e: 687b ldr r3, [r7, #4]
  33249. 800e820: 681b ldr r3, [r3, #0]
  33250. 800e822: 461a mov r2, r3
  33251. 800e824: 6cfb ldr r3, [r7, #76] @ 0x4c
  33252. 800e826: 643b str r3, [r7, #64] @ 0x40
  33253. 800e828: 63fa str r2, [r7, #60] @ 0x3c
  33254. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33255. 800e82a: 6bf9 ldr r1, [r7, #60] @ 0x3c
  33256. 800e82c: 6c3a ldr r2, [r7, #64] @ 0x40
  33257. 800e82e: e841 2300 strex r3, r2, [r1]
  33258. 800e832: 63bb str r3, [r7, #56] @ 0x38
  33259. return(result);
  33260. 800e834: 6bbb ldr r3, [r7, #56] @ 0x38
  33261. 800e836: 2b00 cmp r3, #0
  33262. 800e838: d1e6 bne.n 800e808 <UART_EndRxTransfer+0x8>
  33263. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  33264. 800e83a: 687b ldr r3, [r7, #4]
  33265. 800e83c: 681b ldr r3, [r3, #0]
  33266. 800e83e: 3308 adds r3, #8
  33267. 800e840: 623b str r3, [r7, #32]
  33268. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33269. 800e842: 6a3b ldr r3, [r7, #32]
  33270. 800e844: e853 3f00 ldrex r3, [r3]
  33271. 800e848: 61fb str r3, [r7, #28]
  33272. return(result);
  33273. 800e84a: 69fa ldr r2, [r7, #28]
  33274. 800e84c: 4b1e ldr r3, [pc, #120] @ (800e8c8 <UART_EndRxTransfer+0xc8>)
  33275. 800e84e: 4013 ands r3, r2
  33276. 800e850: 64bb str r3, [r7, #72] @ 0x48
  33277. 800e852: 687b ldr r3, [r7, #4]
  33278. 800e854: 681b ldr r3, [r3, #0]
  33279. 800e856: 3308 adds r3, #8
  33280. 800e858: 6cba ldr r2, [r7, #72] @ 0x48
  33281. 800e85a: 62fa str r2, [r7, #44] @ 0x2c
  33282. 800e85c: 62bb str r3, [r7, #40] @ 0x28
  33283. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33284. 800e85e: 6ab9 ldr r1, [r7, #40] @ 0x28
  33285. 800e860: 6afa ldr r2, [r7, #44] @ 0x2c
  33286. 800e862: e841 2300 strex r3, r2, [r1]
  33287. 800e866: 627b str r3, [r7, #36] @ 0x24
  33288. return(result);
  33289. 800e868: 6a7b ldr r3, [r7, #36] @ 0x24
  33290. 800e86a: 2b00 cmp r3, #0
  33291. 800e86c: d1e5 bne.n 800e83a <UART_EndRxTransfer+0x3a>
  33292. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  33293. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  33294. 800e86e: 687b ldr r3, [r7, #4]
  33295. 800e870: 6edb ldr r3, [r3, #108] @ 0x6c
  33296. 800e872: 2b01 cmp r3, #1
  33297. 800e874: d118 bne.n 800e8a8 <UART_EndRxTransfer+0xa8>
  33298. {
  33299. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  33300. 800e876: 687b ldr r3, [r7, #4]
  33301. 800e878: 681b ldr r3, [r3, #0]
  33302. 800e87a: 60fb str r3, [r7, #12]
  33303. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33304. 800e87c: 68fb ldr r3, [r7, #12]
  33305. 800e87e: e853 3f00 ldrex r3, [r3]
  33306. 800e882: 60bb str r3, [r7, #8]
  33307. return(result);
  33308. 800e884: 68bb ldr r3, [r7, #8]
  33309. 800e886: f023 0310 bic.w r3, r3, #16
  33310. 800e88a: 647b str r3, [r7, #68] @ 0x44
  33311. 800e88c: 687b ldr r3, [r7, #4]
  33312. 800e88e: 681b ldr r3, [r3, #0]
  33313. 800e890: 461a mov r2, r3
  33314. 800e892: 6c7b ldr r3, [r7, #68] @ 0x44
  33315. 800e894: 61bb str r3, [r7, #24]
  33316. 800e896: 617a str r2, [r7, #20]
  33317. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33318. 800e898: 6979 ldr r1, [r7, #20]
  33319. 800e89a: 69ba ldr r2, [r7, #24]
  33320. 800e89c: e841 2300 strex r3, r2, [r1]
  33321. 800e8a0: 613b str r3, [r7, #16]
  33322. return(result);
  33323. 800e8a2: 693b ldr r3, [r7, #16]
  33324. 800e8a4: 2b00 cmp r3, #0
  33325. 800e8a6: d1e6 bne.n 800e876 <UART_EndRxTransfer+0x76>
  33326. }
  33327. /* At end of Rx process, restore huart->RxState to Ready */
  33328. huart->RxState = HAL_UART_STATE_READY;
  33329. 800e8a8: 687b ldr r3, [r7, #4]
  33330. 800e8aa: 2220 movs r2, #32
  33331. 800e8ac: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33332. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  33333. 800e8b0: 687b ldr r3, [r7, #4]
  33334. 800e8b2: 2200 movs r2, #0
  33335. 800e8b4: 66da str r2, [r3, #108] @ 0x6c
  33336. /* Reset RxIsr function pointer */
  33337. huart->RxISR = NULL;
  33338. 800e8b6: 687b ldr r3, [r7, #4]
  33339. 800e8b8: 2200 movs r2, #0
  33340. 800e8ba: 675a str r2, [r3, #116] @ 0x74
  33341. }
  33342. 800e8bc: bf00 nop
  33343. 800e8be: 3754 adds r7, #84 @ 0x54
  33344. 800e8c0: 46bd mov sp, r7
  33345. 800e8c2: f85d 7b04 ldr.w r7, [sp], #4
  33346. 800e8c6: 4770 bx lr
  33347. 800e8c8: effffffe .word 0xeffffffe
  33348. 0800e8cc <UART_DMAAbortOnError>:
  33349. * (To be called at end of DMA Abort procedure following error occurrence).
  33350. * @param hdma DMA handle.
  33351. * @retval None
  33352. */
  33353. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  33354. {
  33355. 800e8cc: b580 push {r7, lr}
  33356. 800e8ce: b084 sub sp, #16
  33357. 800e8d0: af00 add r7, sp, #0
  33358. 800e8d2: 6078 str r0, [r7, #4]
  33359. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  33360. 800e8d4: 687b ldr r3, [r7, #4]
  33361. 800e8d6: 6b9b ldr r3, [r3, #56] @ 0x38
  33362. 800e8d8: 60fb str r3, [r7, #12]
  33363. huart->RxXferCount = 0U;
  33364. 800e8da: 68fb ldr r3, [r7, #12]
  33365. 800e8dc: 2200 movs r2, #0
  33366. 800e8de: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  33367. huart->TxXferCount = 0U;
  33368. 800e8e2: 68fb ldr r3, [r7, #12]
  33369. 800e8e4: 2200 movs r2, #0
  33370. 800e8e6: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  33371. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  33372. /*Call registered error callback*/
  33373. huart->ErrorCallback(huart);
  33374. #else
  33375. /*Call legacy weak error callback*/
  33376. HAL_UART_ErrorCallback(huart);
  33377. 800e8ea: 68f8 ldr r0, [r7, #12]
  33378. 800e8ec: f7fe ff3a bl 800d764 <HAL_UART_ErrorCallback>
  33379. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  33380. }
  33381. 800e8f0: bf00 nop
  33382. 800e8f2: 3710 adds r7, #16
  33383. 800e8f4: 46bd mov sp, r7
  33384. 800e8f6: bd80 pop {r7, pc}
  33385. 0800e8f8 <UART_TxISR_8BIT>:
  33386. * interruptions have been enabled by HAL_UART_Transmit_IT().
  33387. * @param huart UART handle.
  33388. * @retval None
  33389. */
  33390. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  33391. {
  33392. 800e8f8: b480 push {r7}
  33393. 800e8fa: b08f sub sp, #60 @ 0x3c
  33394. 800e8fc: af00 add r7, sp, #0
  33395. 800e8fe: 6078 str r0, [r7, #4]
  33396. /* Check that a Tx process is ongoing */
  33397. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  33398. 800e900: 687b ldr r3, [r7, #4]
  33399. 800e902: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  33400. 800e906: 2b21 cmp r3, #33 @ 0x21
  33401. 800e908: d14c bne.n 800e9a4 <UART_TxISR_8BIT+0xac>
  33402. {
  33403. if (huart->TxXferCount == 0U)
  33404. 800e90a: 687b ldr r3, [r7, #4]
  33405. 800e90c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33406. 800e910: b29b uxth r3, r3
  33407. 800e912: 2b00 cmp r3, #0
  33408. 800e914: d132 bne.n 800e97c <UART_TxISR_8BIT+0x84>
  33409. {
  33410. /* Disable the UART Transmit Data Register Empty Interrupt */
  33411. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  33412. 800e916: 687b ldr r3, [r7, #4]
  33413. 800e918: 681b ldr r3, [r3, #0]
  33414. 800e91a: 623b str r3, [r7, #32]
  33415. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33416. 800e91c: 6a3b ldr r3, [r7, #32]
  33417. 800e91e: e853 3f00 ldrex r3, [r3]
  33418. 800e922: 61fb str r3, [r7, #28]
  33419. return(result);
  33420. 800e924: 69fb ldr r3, [r7, #28]
  33421. 800e926: f023 0380 bic.w r3, r3, #128 @ 0x80
  33422. 800e92a: 637b str r3, [r7, #52] @ 0x34
  33423. 800e92c: 687b ldr r3, [r7, #4]
  33424. 800e92e: 681b ldr r3, [r3, #0]
  33425. 800e930: 461a mov r2, r3
  33426. 800e932: 6b7b ldr r3, [r7, #52] @ 0x34
  33427. 800e934: 62fb str r3, [r7, #44] @ 0x2c
  33428. 800e936: 62ba str r2, [r7, #40] @ 0x28
  33429. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33430. 800e938: 6ab9 ldr r1, [r7, #40] @ 0x28
  33431. 800e93a: 6afa ldr r2, [r7, #44] @ 0x2c
  33432. 800e93c: e841 2300 strex r3, r2, [r1]
  33433. 800e940: 627b str r3, [r7, #36] @ 0x24
  33434. return(result);
  33435. 800e942: 6a7b ldr r3, [r7, #36] @ 0x24
  33436. 800e944: 2b00 cmp r3, #0
  33437. 800e946: d1e6 bne.n 800e916 <UART_TxISR_8BIT+0x1e>
  33438. /* Enable the UART Transmit Complete Interrupt */
  33439. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  33440. 800e948: 687b ldr r3, [r7, #4]
  33441. 800e94a: 681b ldr r3, [r3, #0]
  33442. 800e94c: 60fb str r3, [r7, #12]
  33443. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33444. 800e94e: 68fb ldr r3, [r7, #12]
  33445. 800e950: e853 3f00 ldrex r3, [r3]
  33446. 800e954: 60bb str r3, [r7, #8]
  33447. return(result);
  33448. 800e956: 68bb ldr r3, [r7, #8]
  33449. 800e958: f043 0340 orr.w r3, r3, #64 @ 0x40
  33450. 800e95c: 633b str r3, [r7, #48] @ 0x30
  33451. 800e95e: 687b ldr r3, [r7, #4]
  33452. 800e960: 681b ldr r3, [r3, #0]
  33453. 800e962: 461a mov r2, r3
  33454. 800e964: 6b3b ldr r3, [r7, #48] @ 0x30
  33455. 800e966: 61bb str r3, [r7, #24]
  33456. 800e968: 617a str r2, [r7, #20]
  33457. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33458. 800e96a: 6979 ldr r1, [r7, #20]
  33459. 800e96c: 69ba ldr r2, [r7, #24]
  33460. 800e96e: e841 2300 strex r3, r2, [r1]
  33461. 800e972: 613b str r3, [r7, #16]
  33462. return(result);
  33463. 800e974: 693b ldr r3, [r7, #16]
  33464. 800e976: 2b00 cmp r3, #0
  33465. 800e978: d1e6 bne.n 800e948 <UART_TxISR_8BIT+0x50>
  33466. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  33467. huart->pTxBuffPtr++;
  33468. huart->TxXferCount--;
  33469. }
  33470. }
  33471. }
  33472. 800e97a: e013 b.n 800e9a4 <UART_TxISR_8BIT+0xac>
  33473. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  33474. 800e97c: 687b ldr r3, [r7, #4]
  33475. 800e97e: 6d1b ldr r3, [r3, #80] @ 0x50
  33476. 800e980: 781a ldrb r2, [r3, #0]
  33477. 800e982: 687b ldr r3, [r7, #4]
  33478. 800e984: 681b ldr r3, [r3, #0]
  33479. 800e986: 629a str r2, [r3, #40] @ 0x28
  33480. huart->pTxBuffPtr++;
  33481. 800e988: 687b ldr r3, [r7, #4]
  33482. 800e98a: 6d1b ldr r3, [r3, #80] @ 0x50
  33483. 800e98c: 1c5a adds r2, r3, #1
  33484. 800e98e: 687b ldr r3, [r7, #4]
  33485. 800e990: 651a str r2, [r3, #80] @ 0x50
  33486. huart->TxXferCount--;
  33487. 800e992: 687b ldr r3, [r7, #4]
  33488. 800e994: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33489. 800e998: b29b uxth r3, r3
  33490. 800e99a: 3b01 subs r3, #1
  33491. 800e99c: b29a uxth r2, r3
  33492. 800e99e: 687b ldr r3, [r7, #4]
  33493. 800e9a0: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  33494. }
  33495. 800e9a4: bf00 nop
  33496. 800e9a6: 373c adds r7, #60 @ 0x3c
  33497. 800e9a8: 46bd mov sp, r7
  33498. 800e9aa: f85d 7b04 ldr.w r7, [sp], #4
  33499. 800e9ae: 4770 bx lr
  33500. 0800e9b0 <UART_TxISR_16BIT>:
  33501. * interruptions have been enabled by HAL_UART_Transmit_IT().
  33502. * @param huart UART handle.
  33503. * @retval None
  33504. */
  33505. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  33506. {
  33507. 800e9b0: b480 push {r7}
  33508. 800e9b2: b091 sub sp, #68 @ 0x44
  33509. 800e9b4: af00 add r7, sp, #0
  33510. 800e9b6: 6078 str r0, [r7, #4]
  33511. const uint16_t *tmp;
  33512. /* Check that a Tx process is ongoing */
  33513. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  33514. 800e9b8: 687b ldr r3, [r7, #4]
  33515. 800e9ba: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  33516. 800e9be: 2b21 cmp r3, #33 @ 0x21
  33517. 800e9c0: d151 bne.n 800ea66 <UART_TxISR_16BIT+0xb6>
  33518. {
  33519. if (huart->TxXferCount == 0U)
  33520. 800e9c2: 687b ldr r3, [r7, #4]
  33521. 800e9c4: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33522. 800e9c8: b29b uxth r3, r3
  33523. 800e9ca: 2b00 cmp r3, #0
  33524. 800e9cc: d132 bne.n 800ea34 <UART_TxISR_16BIT+0x84>
  33525. {
  33526. /* Disable the UART Transmit Data Register Empty Interrupt */
  33527. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  33528. 800e9ce: 687b ldr r3, [r7, #4]
  33529. 800e9d0: 681b ldr r3, [r3, #0]
  33530. 800e9d2: 627b str r3, [r7, #36] @ 0x24
  33531. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33532. 800e9d4: 6a7b ldr r3, [r7, #36] @ 0x24
  33533. 800e9d6: e853 3f00 ldrex r3, [r3]
  33534. 800e9da: 623b str r3, [r7, #32]
  33535. return(result);
  33536. 800e9dc: 6a3b ldr r3, [r7, #32]
  33537. 800e9de: f023 0380 bic.w r3, r3, #128 @ 0x80
  33538. 800e9e2: 63bb str r3, [r7, #56] @ 0x38
  33539. 800e9e4: 687b ldr r3, [r7, #4]
  33540. 800e9e6: 681b ldr r3, [r3, #0]
  33541. 800e9e8: 461a mov r2, r3
  33542. 800e9ea: 6bbb ldr r3, [r7, #56] @ 0x38
  33543. 800e9ec: 633b str r3, [r7, #48] @ 0x30
  33544. 800e9ee: 62fa str r2, [r7, #44] @ 0x2c
  33545. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33546. 800e9f0: 6af9 ldr r1, [r7, #44] @ 0x2c
  33547. 800e9f2: 6b3a ldr r2, [r7, #48] @ 0x30
  33548. 800e9f4: e841 2300 strex r3, r2, [r1]
  33549. 800e9f8: 62bb str r3, [r7, #40] @ 0x28
  33550. return(result);
  33551. 800e9fa: 6abb ldr r3, [r7, #40] @ 0x28
  33552. 800e9fc: 2b00 cmp r3, #0
  33553. 800e9fe: d1e6 bne.n 800e9ce <UART_TxISR_16BIT+0x1e>
  33554. /* Enable the UART Transmit Complete Interrupt */
  33555. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  33556. 800ea00: 687b ldr r3, [r7, #4]
  33557. 800ea02: 681b ldr r3, [r3, #0]
  33558. 800ea04: 613b str r3, [r7, #16]
  33559. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33560. 800ea06: 693b ldr r3, [r7, #16]
  33561. 800ea08: e853 3f00 ldrex r3, [r3]
  33562. 800ea0c: 60fb str r3, [r7, #12]
  33563. return(result);
  33564. 800ea0e: 68fb ldr r3, [r7, #12]
  33565. 800ea10: f043 0340 orr.w r3, r3, #64 @ 0x40
  33566. 800ea14: 637b str r3, [r7, #52] @ 0x34
  33567. 800ea16: 687b ldr r3, [r7, #4]
  33568. 800ea18: 681b ldr r3, [r3, #0]
  33569. 800ea1a: 461a mov r2, r3
  33570. 800ea1c: 6b7b ldr r3, [r7, #52] @ 0x34
  33571. 800ea1e: 61fb str r3, [r7, #28]
  33572. 800ea20: 61ba str r2, [r7, #24]
  33573. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33574. 800ea22: 69b9 ldr r1, [r7, #24]
  33575. 800ea24: 69fa ldr r2, [r7, #28]
  33576. 800ea26: e841 2300 strex r3, r2, [r1]
  33577. 800ea2a: 617b str r3, [r7, #20]
  33578. return(result);
  33579. 800ea2c: 697b ldr r3, [r7, #20]
  33580. 800ea2e: 2b00 cmp r3, #0
  33581. 800ea30: d1e6 bne.n 800ea00 <UART_TxISR_16BIT+0x50>
  33582. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  33583. huart->pTxBuffPtr += 2U;
  33584. huart->TxXferCount--;
  33585. }
  33586. }
  33587. }
  33588. 800ea32: e018 b.n 800ea66 <UART_TxISR_16BIT+0xb6>
  33589. tmp = (const uint16_t *) huart->pTxBuffPtr;
  33590. 800ea34: 687b ldr r3, [r7, #4]
  33591. 800ea36: 6d1b ldr r3, [r3, #80] @ 0x50
  33592. 800ea38: 63fb str r3, [r7, #60] @ 0x3c
  33593. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  33594. 800ea3a: 6bfb ldr r3, [r7, #60] @ 0x3c
  33595. 800ea3c: 881b ldrh r3, [r3, #0]
  33596. 800ea3e: 461a mov r2, r3
  33597. 800ea40: 687b ldr r3, [r7, #4]
  33598. 800ea42: 681b ldr r3, [r3, #0]
  33599. 800ea44: f3c2 0208 ubfx r2, r2, #0, #9
  33600. 800ea48: 629a str r2, [r3, #40] @ 0x28
  33601. huart->pTxBuffPtr += 2U;
  33602. 800ea4a: 687b ldr r3, [r7, #4]
  33603. 800ea4c: 6d1b ldr r3, [r3, #80] @ 0x50
  33604. 800ea4e: 1c9a adds r2, r3, #2
  33605. 800ea50: 687b ldr r3, [r7, #4]
  33606. 800ea52: 651a str r2, [r3, #80] @ 0x50
  33607. huart->TxXferCount--;
  33608. 800ea54: 687b ldr r3, [r7, #4]
  33609. 800ea56: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33610. 800ea5a: b29b uxth r3, r3
  33611. 800ea5c: 3b01 subs r3, #1
  33612. 800ea5e: b29a uxth r2, r3
  33613. 800ea60: 687b ldr r3, [r7, #4]
  33614. 800ea62: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  33615. }
  33616. 800ea66: bf00 nop
  33617. 800ea68: 3744 adds r7, #68 @ 0x44
  33618. 800ea6a: 46bd mov sp, r7
  33619. 800ea6c: f85d 7b04 ldr.w r7, [sp], #4
  33620. 800ea70: 4770 bx lr
  33621. 0800ea72 <UART_TxISR_8BIT_FIFOEN>:
  33622. * interruptions have been enabled by HAL_UART_Transmit_IT().
  33623. * @param huart UART handle.
  33624. * @retval None
  33625. */
  33626. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  33627. {
  33628. 800ea72: b480 push {r7}
  33629. 800ea74: b091 sub sp, #68 @ 0x44
  33630. 800ea76: af00 add r7, sp, #0
  33631. 800ea78: 6078 str r0, [r7, #4]
  33632. uint16_t nb_tx_data;
  33633. /* Check that a Tx process is ongoing */
  33634. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  33635. 800ea7a: 687b ldr r3, [r7, #4]
  33636. 800ea7c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  33637. 800ea80: 2b21 cmp r3, #33 @ 0x21
  33638. 800ea82: d160 bne.n 800eb46 <UART_TxISR_8BIT_FIFOEN+0xd4>
  33639. {
  33640. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  33641. 800ea84: 687b ldr r3, [r7, #4]
  33642. 800ea86: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  33643. 800ea8a: 87fb strh r3, [r7, #62] @ 0x3e
  33644. 800ea8c: e057 b.n 800eb3e <UART_TxISR_8BIT_FIFOEN+0xcc>
  33645. {
  33646. if (huart->TxXferCount == 0U)
  33647. 800ea8e: 687b ldr r3, [r7, #4]
  33648. 800ea90: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33649. 800ea94: b29b uxth r3, r3
  33650. 800ea96: 2b00 cmp r3, #0
  33651. 800ea98: d133 bne.n 800eb02 <UART_TxISR_8BIT_FIFOEN+0x90>
  33652. {
  33653. /* Disable the TX FIFO threshold interrupt */
  33654. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  33655. 800ea9a: 687b ldr r3, [r7, #4]
  33656. 800ea9c: 681b ldr r3, [r3, #0]
  33657. 800ea9e: 3308 adds r3, #8
  33658. 800eaa0: 627b str r3, [r7, #36] @ 0x24
  33659. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33660. 800eaa2: 6a7b ldr r3, [r7, #36] @ 0x24
  33661. 800eaa4: e853 3f00 ldrex r3, [r3]
  33662. 800eaa8: 623b str r3, [r7, #32]
  33663. return(result);
  33664. 800eaaa: 6a3b ldr r3, [r7, #32]
  33665. 800eaac: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  33666. 800eab0: 63bb str r3, [r7, #56] @ 0x38
  33667. 800eab2: 687b ldr r3, [r7, #4]
  33668. 800eab4: 681b ldr r3, [r3, #0]
  33669. 800eab6: 3308 adds r3, #8
  33670. 800eab8: 6bba ldr r2, [r7, #56] @ 0x38
  33671. 800eaba: 633a str r2, [r7, #48] @ 0x30
  33672. 800eabc: 62fb str r3, [r7, #44] @ 0x2c
  33673. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33674. 800eabe: 6af9 ldr r1, [r7, #44] @ 0x2c
  33675. 800eac0: 6b3a ldr r2, [r7, #48] @ 0x30
  33676. 800eac2: e841 2300 strex r3, r2, [r1]
  33677. 800eac6: 62bb str r3, [r7, #40] @ 0x28
  33678. return(result);
  33679. 800eac8: 6abb ldr r3, [r7, #40] @ 0x28
  33680. 800eaca: 2b00 cmp r3, #0
  33681. 800eacc: d1e5 bne.n 800ea9a <UART_TxISR_8BIT_FIFOEN+0x28>
  33682. /* Enable the UART Transmit Complete Interrupt */
  33683. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  33684. 800eace: 687b ldr r3, [r7, #4]
  33685. 800ead0: 681b ldr r3, [r3, #0]
  33686. 800ead2: 613b str r3, [r7, #16]
  33687. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33688. 800ead4: 693b ldr r3, [r7, #16]
  33689. 800ead6: e853 3f00 ldrex r3, [r3]
  33690. 800eada: 60fb str r3, [r7, #12]
  33691. return(result);
  33692. 800eadc: 68fb ldr r3, [r7, #12]
  33693. 800eade: f043 0340 orr.w r3, r3, #64 @ 0x40
  33694. 800eae2: 637b str r3, [r7, #52] @ 0x34
  33695. 800eae4: 687b ldr r3, [r7, #4]
  33696. 800eae6: 681b ldr r3, [r3, #0]
  33697. 800eae8: 461a mov r2, r3
  33698. 800eaea: 6b7b ldr r3, [r7, #52] @ 0x34
  33699. 800eaec: 61fb str r3, [r7, #28]
  33700. 800eaee: 61ba str r2, [r7, #24]
  33701. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33702. 800eaf0: 69b9 ldr r1, [r7, #24]
  33703. 800eaf2: 69fa ldr r2, [r7, #28]
  33704. 800eaf4: e841 2300 strex r3, r2, [r1]
  33705. 800eaf8: 617b str r3, [r7, #20]
  33706. return(result);
  33707. 800eafa: 697b ldr r3, [r7, #20]
  33708. 800eafc: 2b00 cmp r3, #0
  33709. 800eafe: d1e6 bne.n 800eace <UART_TxISR_8BIT_FIFOEN+0x5c>
  33710. break; /* force exit loop */
  33711. 800eb00: e021 b.n 800eb46 <UART_TxISR_8BIT_FIFOEN+0xd4>
  33712. }
  33713. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  33714. 800eb02: 687b ldr r3, [r7, #4]
  33715. 800eb04: 681b ldr r3, [r3, #0]
  33716. 800eb06: 69db ldr r3, [r3, #28]
  33717. 800eb08: f003 0380 and.w r3, r3, #128 @ 0x80
  33718. 800eb0c: 2b00 cmp r3, #0
  33719. 800eb0e: d013 beq.n 800eb38 <UART_TxISR_8BIT_FIFOEN+0xc6>
  33720. {
  33721. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  33722. 800eb10: 687b ldr r3, [r7, #4]
  33723. 800eb12: 6d1b ldr r3, [r3, #80] @ 0x50
  33724. 800eb14: 781a ldrb r2, [r3, #0]
  33725. 800eb16: 687b ldr r3, [r7, #4]
  33726. 800eb18: 681b ldr r3, [r3, #0]
  33727. 800eb1a: 629a str r2, [r3, #40] @ 0x28
  33728. huart->pTxBuffPtr++;
  33729. 800eb1c: 687b ldr r3, [r7, #4]
  33730. 800eb1e: 6d1b ldr r3, [r3, #80] @ 0x50
  33731. 800eb20: 1c5a adds r2, r3, #1
  33732. 800eb22: 687b ldr r3, [r7, #4]
  33733. 800eb24: 651a str r2, [r3, #80] @ 0x50
  33734. huart->TxXferCount--;
  33735. 800eb26: 687b ldr r3, [r7, #4]
  33736. 800eb28: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33737. 800eb2c: b29b uxth r3, r3
  33738. 800eb2e: 3b01 subs r3, #1
  33739. 800eb30: b29a uxth r2, r3
  33740. 800eb32: 687b ldr r3, [r7, #4]
  33741. 800eb34: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  33742. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  33743. 800eb38: 8ffb ldrh r3, [r7, #62] @ 0x3e
  33744. 800eb3a: 3b01 subs r3, #1
  33745. 800eb3c: 87fb strh r3, [r7, #62] @ 0x3e
  33746. 800eb3e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  33747. 800eb40: 2b00 cmp r3, #0
  33748. 800eb42: d1a4 bne.n 800ea8e <UART_TxISR_8BIT_FIFOEN+0x1c>
  33749. {
  33750. /* Nothing to do */
  33751. }
  33752. }
  33753. }
  33754. }
  33755. 800eb44: e7ff b.n 800eb46 <UART_TxISR_8BIT_FIFOEN+0xd4>
  33756. 800eb46: bf00 nop
  33757. 800eb48: 3744 adds r7, #68 @ 0x44
  33758. 800eb4a: 46bd mov sp, r7
  33759. 800eb4c: f85d 7b04 ldr.w r7, [sp], #4
  33760. 800eb50: 4770 bx lr
  33761. 0800eb52 <UART_TxISR_16BIT_FIFOEN>:
  33762. * interruptions have been enabled by HAL_UART_Transmit_IT().
  33763. * @param huart UART handle.
  33764. * @retval None
  33765. */
  33766. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  33767. {
  33768. 800eb52: b480 push {r7}
  33769. 800eb54: b091 sub sp, #68 @ 0x44
  33770. 800eb56: af00 add r7, sp, #0
  33771. 800eb58: 6078 str r0, [r7, #4]
  33772. const uint16_t *tmp;
  33773. uint16_t nb_tx_data;
  33774. /* Check that a Tx process is ongoing */
  33775. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  33776. 800eb5a: 687b ldr r3, [r7, #4]
  33777. 800eb5c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  33778. 800eb60: 2b21 cmp r3, #33 @ 0x21
  33779. 800eb62: d165 bne.n 800ec30 <UART_TxISR_16BIT_FIFOEN+0xde>
  33780. {
  33781. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  33782. 800eb64: 687b ldr r3, [r7, #4]
  33783. 800eb66: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  33784. 800eb6a: 87fb strh r3, [r7, #62] @ 0x3e
  33785. 800eb6c: e05c b.n 800ec28 <UART_TxISR_16BIT_FIFOEN+0xd6>
  33786. {
  33787. if (huart->TxXferCount == 0U)
  33788. 800eb6e: 687b ldr r3, [r7, #4]
  33789. 800eb70: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33790. 800eb74: b29b uxth r3, r3
  33791. 800eb76: 2b00 cmp r3, #0
  33792. 800eb78: d133 bne.n 800ebe2 <UART_TxISR_16BIT_FIFOEN+0x90>
  33793. {
  33794. /* Disable the TX FIFO threshold interrupt */
  33795. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  33796. 800eb7a: 687b ldr r3, [r7, #4]
  33797. 800eb7c: 681b ldr r3, [r3, #0]
  33798. 800eb7e: 3308 adds r3, #8
  33799. 800eb80: 623b str r3, [r7, #32]
  33800. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33801. 800eb82: 6a3b ldr r3, [r7, #32]
  33802. 800eb84: e853 3f00 ldrex r3, [r3]
  33803. 800eb88: 61fb str r3, [r7, #28]
  33804. return(result);
  33805. 800eb8a: 69fb ldr r3, [r7, #28]
  33806. 800eb8c: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  33807. 800eb90: 637b str r3, [r7, #52] @ 0x34
  33808. 800eb92: 687b ldr r3, [r7, #4]
  33809. 800eb94: 681b ldr r3, [r3, #0]
  33810. 800eb96: 3308 adds r3, #8
  33811. 800eb98: 6b7a ldr r2, [r7, #52] @ 0x34
  33812. 800eb9a: 62fa str r2, [r7, #44] @ 0x2c
  33813. 800eb9c: 62bb str r3, [r7, #40] @ 0x28
  33814. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33815. 800eb9e: 6ab9 ldr r1, [r7, #40] @ 0x28
  33816. 800eba0: 6afa ldr r2, [r7, #44] @ 0x2c
  33817. 800eba2: e841 2300 strex r3, r2, [r1]
  33818. 800eba6: 627b str r3, [r7, #36] @ 0x24
  33819. return(result);
  33820. 800eba8: 6a7b ldr r3, [r7, #36] @ 0x24
  33821. 800ebaa: 2b00 cmp r3, #0
  33822. 800ebac: d1e5 bne.n 800eb7a <UART_TxISR_16BIT_FIFOEN+0x28>
  33823. /* Enable the UART Transmit Complete Interrupt */
  33824. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  33825. 800ebae: 687b ldr r3, [r7, #4]
  33826. 800ebb0: 681b ldr r3, [r3, #0]
  33827. 800ebb2: 60fb str r3, [r7, #12]
  33828. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33829. 800ebb4: 68fb ldr r3, [r7, #12]
  33830. 800ebb6: e853 3f00 ldrex r3, [r3]
  33831. 800ebba: 60bb str r3, [r7, #8]
  33832. return(result);
  33833. 800ebbc: 68bb ldr r3, [r7, #8]
  33834. 800ebbe: f043 0340 orr.w r3, r3, #64 @ 0x40
  33835. 800ebc2: 633b str r3, [r7, #48] @ 0x30
  33836. 800ebc4: 687b ldr r3, [r7, #4]
  33837. 800ebc6: 681b ldr r3, [r3, #0]
  33838. 800ebc8: 461a mov r2, r3
  33839. 800ebca: 6b3b ldr r3, [r7, #48] @ 0x30
  33840. 800ebcc: 61bb str r3, [r7, #24]
  33841. 800ebce: 617a str r2, [r7, #20]
  33842. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33843. 800ebd0: 6979 ldr r1, [r7, #20]
  33844. 800ebd2: 69ba ldr r2, [r7, #24]
  33845. 800ebd4: e841 2300 strex r3, r2, [r1]
  33846. 800ebd8: 613b str r3, [r7, #16]
  33847. return(result);
  33848. 800ebda: 693b ldr r3, [r7, #16]
  33849. 800ebdc: 2b00 cmp r3, #0
  33850. 800ebde: d1e6 bne.n 800ebae <UART_TxISR_16BIT_FIFOEN+0x5c>
  33851. break; /* force exit loop */
  33852. 800ebe0: e026 b.n 800ec30 <UART_TxISR_16BIT_FIFOEN+0xde>
  33853. }
  33854. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  33855. 800ebe2: 687b ldr r3, [r7, #4]
  33856. 800ebe4: 681b ldr r3, [r3, #0]
  33857. 800ebe6: 69db ldr r3, [r3, #28]
  33858. 800ebe8: f003 0380 and.w r3, r3, #128 @ 0x80
  33859. 800ebec: 2b00 cmp r3, #0
  33860. 800ebee: d018 beq.n 800ec22 <UART_TxISR_16BIT_FIFOEN+0xd0>
  33861. {
  33862. tmp = (const uint16_t *) huart->pTxBuffPtr;
  33863. 800ebf0: 687b ldr r3, [r7, #4]
  33864. 800ebf2: 6d1b ldr r3, [r3, #80] @ 0x50
  33865. 800ebf4: 63bb str r3, [r7, #56] @ 0x38
  33866. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  33867. 800ebf6: 6bbb ldr r3, [r7, #56] @ 0x38
  33868. 800ebf8: 881b ldrh r3, [r3, #0]
  33869. 800ebfa: 461a mov r2, r3
  33870. 800ebfc: 687b ldr r3, [r7, #4]
  33871. 800ebfe: 681b ldr r3, [r3, #0]
  33872. 800ec00: f3c2 0208 ubfx r2, r2, #0, #9
  33873. 800ec04: 629a str r2, [r3, #40] @ 0x28
  33874. huart->pTxBuffPtr += 2U;
  33875. 800ec06: 687b ldr r3, [r7, #4]
  33876. 800ec08: 6d1b ldr r3, [r3, #80] @ 0x50
  33877. 800ec0a: 1c9a adds r2, r3, #2
  33878. 800ec0c: 687b ldr r3, [r7, #4]
  33879. 800ec0e: 651a str r2, [r3, #80] @ 0x50
  33880. huart->TxXferCount--;
  33881. 800ec10: 687b ldr r3, [r7, #4]
  33882. 800ec12: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  33883. 800ec16: b29b uxth r3, r3
  33884. 800ec18: 3b01 subs r3, #1
  33885. 800ec1a: b29a uxth r2, r3
  33886. 800ec1c: 687b ldr r3, [r7, #4]
  33887. 800ec1e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  33888. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  33889. 800ec22: 8ffb ldrh r3, [r7, #62] @ 0x3e
  33890. 800ec24: 3b01 subs r3, #1
  33891. 800ec26: 87fb strh r3, [r7, #62] @ 0x3e
  33892. 800ec28: 8ffb ldrh r3, [r7, #62] @ 0x3e
  33893. 800ec2a: 2b00 cmp r3, #0
  33894. 800ec2c: d19f bne.n 800eb6e <UART_TxISR_16BIT_FIFOEN+0x1c>
  33895. {
  33896. /* Nothing to do */
  33897. }
  33898. }
  33899. }
  33900. }
  33901. 800ec2e: e7ff b.n 800ec30 <UART_TxISR_16BIT_FIFOEN+0xde>
  33902. 800ec30: bf00 nop
  33903. 800ec32: 3744 adds r7, #68 @ 0x44
  33904. 800ec34: 46bd mov sp, r7
  33905. 800ec36: f85d 7b04 ldr.w r7, [sp], #4
  33906. 800ec3a: 4770 bx lr
  33907. 0800ec3c <UART_EndTransmit_IT>:
  33908. * @param huart pointer to a UART_HandleTypeDef structure that contains
  33909. * the configuration information for the specified UART module.
  33910. * @retval None
  33911. */
  33912. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  33913. {
  33914. 800ec3c: b580 push {r7, lr}
  33915. 800ec3e: b088 sub sp, #32
  33916. 800ec40: af00 add r7, sp, #0
  33917. 800ec42: 6078 str r0, [r7, #4]
  33918. /* Disable the UART Transmit Complete Interrupt */
  33919. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  33920. 800ec44: 687b ldr r3, [r7, #4]
  33921. 800ec46: 681b ldr r3, [r3, #0]
  33922. 800ec48: 60fb str r3, [r7, #12]
  33923. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33924. 800ec4a: 68fb ldr r3, [r7, #12]
  33925. 800ec4c: e853 3f00 ldrex r3, [r3]
  33926. 800ec50: 60bb str r3, [r7, #8]
  33927. return(result);
  33928. 800ec52: 68bb ldr r3, [r7, #8]
  33929. 800ec54: f023 0340 bic.w r3, r3, #64 @ 0x40
  33930. 800ec58: 61fb str r3, [r7, #28]
  33931. 800ec5a: 687b ldr r3, [r7, #4]
  33932. 800ec5c: 681b ldr r3, [r3, #0]
  33933. 800ec5e: 461a mov r2, r3
  33934. 800ec60: 69fb ldr r3, [r7, #28]
  33935. 800ec62: 61bb str r3, [r7, #24]
  33936. 800ec64: 617a str r2, [r7, #20]
  33937. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33938. 800ec66: 6979 ldr r1, [r7, #20]
  33939. 800ec68: 69ba ldr r2, [r7, #24]
  33940. 800ec6a: e841 2300 strex r3, r2, [r1]
  33941. 800ec6e: 613b str r3, [r7, #16]
  33942. return(result);
  33943. 800ec70: 693b ldr r3, [r7, #16]
  33944. 800ec72: 2b00 cmp r3, #0
  33945. 800ec74: d1e6 bne.n 800ec44 <UART_EndTransmit_IT+0x8>
  33946. /* Tx process is ended, restore huart->gState to Ready */
  33947. huart->gState = HAL_UART_STATE_READY;
  33948. 800ec76: 687b ldr r3, [r7, #4]
  33949. 800ec78: 2220 movs r2, #32
  33950. 800ec7a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  33951. /* Cleat TxISR function pointer */
  33952. huart->TxISR = NULL;
  33953. 800ec7e: 687b ldr r3, [r7, #4]
  33954. 800ec80: 2200 movs r2, #0
  33955. 800ec82: 679a str r2, [r3, #120] @ 0x78
  33956. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  33957. /*Call registered Tx complete callback*/
  33958. huart->TxCpltCallback(huart);
  33959. #else
  33960. /*Call legacy weak Tx complete callback*/
  33961. HAL_UART_TxCpltCallback(huart);
  33962. 800ec84: 6878 ldr r0, [r7, #4]
  33963. 800ec86: f7f5 fa1f bl 80040c8 <HAL_UART_TxCpltCallback>
  33964. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  33965. }
  33966. 800ec8a: bf00 nop
  33967. 800ec8c: 3720 adds r7, #32
  33968. 800ec8e: 46bd mov sp, r7
  33969. 800ec90: bd80 pop {r7, pc}
  33970. ...
  33971. 0800ec94 <UART_RxISR_8BIT>:
  33972. * @brief RX interrupt handler for 7 or 8 bits data word length .
  33973. * @param huart UART handle.
  33974. * @retval None
  33975. */
  33976. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  33977. {
  33978. 800ec94: b580 push {r7, lr}
  33979. 800ec96: b09c sub sp, #112 @ 0x70
  33980. 800ec98: af00 add r7, sp, #0
  33981. 800ec9a: 6078 str r0, [r7, #4]
  33982. uint16_t uhMask = huart->Mask;
  33983. 800ec9c: 687b ldr r3, [r7, #4]
  33984. 800ec9e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  33985. 800eca2: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  33986. uint16_t uhdata;
  33987. /* Check that a Rx process is ongoing */
  33988. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  33989. 800eca6: 687b ldr r3, [r7, #4]
  33990. 800eca8: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  33991. 800ecac: 2b22 cmp r3, #34 @ 0x22
  33992. 800ecae: f040 80be bne.w 800ee2e <UART_RxISR_8BIT+0x19a>
  33993. {
  33994. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  33995. 800ecb2: 687b ldr r3, [r7, #4]
  33996. 800ecb4: 681b ldr r3, [r3, #0]
  33997. 800ecb6: 6a5b ldr r3, [r3, #36] @ 0x24
  33998. 800ecb8: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  33999. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  34000. 800ecbc: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  34001. 800ecc0: b2d9 uxtb r1, r3
  34002. 800ecc2: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  34003. 800ecc6: b2da uxtb r2, r3
  34004. 800ecc8: 687b ldr r3, [r7, #4]
  34005. 800ecca: 6d9b ldr r3, [r3, #88] @ 0x58
  34006. 800eccc: 400a ands r2, r1
  34007. 800ecce: b2d2 uxtb r2, r2
  34008. 800ecd0: 701a strb r2, [r3, #0]
  34009. huart->pRxBuffPtr++;
  34010. 800ecd2: 687b ldr r3, [r7, #4]
  34011. 800ecd4: 6d9b ldr r3, [r3, #88] @ 0x58
  34012. 800ecd6: 1c5a adds r2, r3, #1
  34013. 800ecd8: 687b ldr r3, [r7, #4]
  34014. 800ecda: 659a str r2, [r3, #88] @ 0x58
  34015. huart->RxXferCount--;
  34016. 800ecdc: 687b ldr r3, [r7, #4]
  34017. 800ecde: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34018. 800ece2: b29b uxth r3, r3
  34019. 800ece4: 3b01 subs r3, #1
  34020. 800ece6: b29a uxth r2, r3
  34021. 800ece8: 687b ldr r3, [r7, #4]
  34022. 800ecea: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34023. if (huart->RxXferCount == 0U)
  34024. 800ecee: 687b ldr r3, [r7, #4]
  34025. 800ecf0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34026. 800ecf4: b29b uxth r3, r3
  34027. 800ecf6: 2b00 cmp r3, #0
  34028. 800ecf8: f040 80a1 bne.w 800ee3e <UART_RxISR_8BIT+0x1aa>
  34029. {
  34030. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  34031. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  34032. 800ecfc: 687b ldr r3, [r7, #4]
  34033. 800ecfe: 681b ldr r3, [r3, #0]
  34034. 800ed00: 64fb str r3, [r7, #76] @ 0x4c
  34035. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34036. 800ed02: 6cfb ldr r3, [r7, #76] @ 0x4c
  34037. 800ed04: e853 3f00 ldrex r3, [r3]
  34038. 800ed08: 64bb str r3, [r7, #72] @ 0x48
  34039. return(result);
  34040. 800ed0a: 6cbb ldr r3, [r7, #72] @ 0x48
  34041. 800ed0c: f423 7390 bic.w r3, r3, #288 @ 0x120
  34042. 800ed10: 66bb str r3, [r7, #104] @ 0x68
  34043. 800ed12: 687b ldr r3, [r7, #4]
  34044. 800ed14: 681b ldr r3, [r3, #0]
  34045. 800ed16: 461a mov r2, r3
  34046. 800ed18: 6ebb ldr r3, [r7, #104] @ 0x68
  34047. 800ed1a: 65bb str r3, [r7, #88] @ 0x58
  34048. 800ed1c: 657a str r2, [r7, #84] @ 0x54
  34049. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34050. 800ed1e: 6d79 ldr r1, [r7, #84] @ 0x54
  34051. 800ed20: 6dba ldr r2, [r7, #88] @ 0x58
  34052. 800ed22: e841 2300 strex r3, r2, [r1]
  34053. 800ed26: 653b str r3, [r7, #80] @ 0x50
  34054. return(result);
  34055. 800ed28: 6d3b ldr r3, [r7, #80] @ 0x50
  34056. 800ed2a: 2b00 cmp r3, #0
  34057. 800ed2c: d1e6 bne.n 800ecfc <UART_RxISR_8BIT+0x68>
  34058. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  34059. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  34060. 800ed2e: 687b ldr r3, [r7, #4]
  34061. 800ed30: 681b ldr r3, [r3, #0]
  34062. 800ed32: 3308 adds r3, #8
  34063. 800ed34: 63bb str r3, [r7, #56] @ 0x38
  34064. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34065. 800ed36: 6bbb ldr r3, [r7, #56] @ 0x38
  34066. 800ed38: e853 3f00 ldrex r3, [r3]
  34067. 800ed3c: 637b str r3, [r7, #52] @ 0x34
  34068. return(result);
  34069. 800ed3e: 6b7b ldr r3, [r7, #52] @ 0x34
  34070. 800ed40: f023 0301 bic.w r3, r3, #1
  34071. 800ed44: 667b str r3, [r7, #100] @ 0x64
  34072. 800ed46: 687b ldr r3, [r7, #4]
  34073. 800ed48: 681b ldr r3, [r3, #0]
  34074. 800ed4a: 3308 adds r3, #8
  34075. 800ed4c: 6e7a ldr r2, [r7, #100] @ 0x64
  34076. 800ed4e: 647a str r2, [r7, #68] @ 0x44
  34077. 800ed50: 643b str r3, [r7, #64] @ 0x40
  34078. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34079. 800ed52: 6c39 ldr r1, [r7, #64] @ 0x40
  34080. 800ed54: 6c7a ldr r2, [r7, #68] @ 0x44
  34081. 800ed56: e841 2300 strex r3, r2, [r1]
  34082. 800ed5a: 63fb str r3, [r7, #60] @ 0x3c
  34083. return(result);
  34084. 800ed5c: 6bfb ldr r3, [r7, #60] @ 0x3c
  34085. 800ed5e: 2b00 cmp r3, #0
  34086. 800ed60: d1e5 bne.n 800ed2e <UART_RxISR_8BIT+0x9a>
  34087. /* Rx process is completed, restore huart->RxState to Ready */
  34088. huart->RxState = HAL_UART_STATE_READY;
  34089. 800ed62: 687b ldr r3, [r7, #4]
  34090. 800ed64: 2220 movs r2, #32
  34091. 800ed66: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34092. /* Clear RxISR function pointer */
  34093. huart->RxISR = NULL;
  34094. 800ed6a: 687b ldr r3, [r7, #4]
  34095. 800ed6c: 2200 movs r2, #0
  34096. 800ed6e: 675a str r2, [r3, #116] @ 0x74
  34097. /* Initialize type of RxEvent to Transfer Complete */
  34098. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34099. 800ed70: 687b ldr r3, [r7, #4]
  34100. 800ed72: 2200 movs r2, #0
  34101. 800ed74: 671a str r2, [r3, #112] @ 0x70
  34102. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  34103. 800ed76: 687b ldr r3, [r7, #4]
  34104. 800ed78: 681b ldr r3, [r3, #0]
  34105. 800ed7a: 4a33 ldr r2, [pc, #204] @ (800ee48 <UART_RxISR_8BIT+0x1b4>)
  34106. 800ed7c: 4293 cmp r3, r2
  34107. 800ed7e: d01f beq.n 800edc0 <UART_RxISR_8BIT+0x12c>
  34108. {
  34109. /* Check that USART RTOEN bit is set */
  34110. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  34111. 800ed80: 687b ldr r3, [r7, #4]
  34112. 800ed82: 681b ldr r3, [r3, #0]
  34113. 800ed84: 685b ldr r3, [r3, #4]
  34114. 800ed86: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  34115. 800ed8a: 2b00 cmp r3, #0
  34116. 800ed8c: d018 beq.n 800edc0 <UART_RxISR_8BIT+0x12c>
  34117. {
  34118. /* Enable the UART Receiver Timeout Interrupt */
  34119. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  34120. 800ed8e: 687b ldr r3, [r7, #4]
  34121. 800ed90: 681b ldr r3, [r3, #0]
  34122. 800ed92: 627b str r3, [r7, #36] @ 0x24
  34123. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34124. 800ed94: 6a7b ldr r3, [r7, #36] @ 0x24
  34125. 800ed96: e853 3f00 ldrex r3, [r3]
  34126. 800ed9a: 623b str r3, [r7, #32]
  34127. return(result);
  34128. 800ed9c: 6a3b ldr r3, [r7, #32]
  34129. 800ed9e: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34130. 800eda2: 663b str r3, [r7, #96] @ 0x60
  34131. 800eda4: 687b ldr r3, [r7, #4]
  34132. 800eda6: 681b ldr r3, [r3, #0]
  34133. 800eda8: 461a mov r2, r3
  34134. 800edaa: 6e3b ldr r3, [r7, #96] @ 0x60
  34135. 800edac: 633b str r3, [r7, #48] @ 0x30
  34136. 800edae: 62fa str r2, [r7, #44] @ 0x2c
  34137. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34138. 800edb0: 6af9 ldr r1, [r7, #44] @ 0x2c
  34139. 800edb2: 6b3a ldr r2, [r7, #48] @ 0x30
  34140. 800edb4: e841 2300 strex r3, r2, [r1]
  34141. 800edb8: 62bb str r3, [r7, #40] @ 0x28
  34142. return(result);
  34143. 800edba: 6abb ldr r3, [r7, #40] @ 0x28
  34144. 800edbc: 2b00 cmp r3, #0
  34145. 800edbe: d1e6 bne.n 800ed8e <UART_RxISR_8BIT+0xfa>
  34146. }
  34147. }
  34148. /* Check current reception Mode :
  34149. If Reception till IDLE event has been selected : */
  34150. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34151. 800edc0: 687b ldr r3, [r7, #4]
  34152. 800edc2: 6edb ldr r3, [r3, #108] @ 0x6c
  34153. 800edc4: 2b01 cmp r3, #1
  34154. 800edc6: d12e bne.n 800ee26 <UART_RxISR_8BIT+0x192>
  34155. {
  34156. /* Set reception type to Standard */
  34157. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34158. 800edc8: 687b ldr r3, [r7, #4]
  34159. 800edca: 2200 movs r2, #0
  34160. 800edcc: 66da str r2, [r3, #108] @ 0x6c
  34161. /* Disable IDLE interrupt */
  34162. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34163. 800edce: 687b ldr r3, [r7, #4]
  34164. 800edd0: 681b ldr r3, [r3, #0]
  34165. 800edd2: 613b str r3, [r7, #16]
  34166. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34167. 800edd4: 693b ldr r3, [r7, #16]
  34168. 800edd6: e853 3f00 ldrex r3, [r3]
  34169. 800edda: 60fb str r3, [r7, #12]
  34170. return(result);
  34171. 800eddc: 68fb ldr r3, [r7, #12]
  34172. 800edde: f023 0310 bic.w r3, r3, #16
  34173. 800ede2: 65fb str r3, [r7, #92] @ 0x5c
  34174. 800ede4: 687b ldr r3, [r7, #4]
  34175. 800ede6: 681b ldr r3, [r3, #0]
  34176. 800ede8: 461a mov r2, r3
  34177. 800edea: 6dfb ldr r3, [r7, #92] @ 0x5c
  34178. 800edec: 61fb str r3, [r7, #28]
  34179. 800edee: 61ba str r2, [r7, #24]
  34180. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34181. 800edf0: 69b9 ldr r1, [r7, #24]
  34182. 800edf2: 69fa ldr r2, [r7, #28]
  34183. 800edf4: e841 2300 strex r3, r2, [r1]
  34184. 800edf8: 617b str r3, [r7, #20]
  34185. return(result);
  34186. 800edfa: 697b ldr r3, [r7, #20]
  34187. 800edfc: 2b00 cmp r3, #0
  34188. 800edfe: d1e6 bne.n 800edce <UART_RxISR_8BIT+0x13a>
  34189. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  34190. 800ee00: 687b ldr r3, [r7, #4]
  34191. 800ee02: 681b ldr r3, [r3, #0]
  34192. 800ee04: 69db ldr r3, [r3, #28]
  34193. 800ee06: f003 0310 and.w r3, r3, #16
  34194. 800ee0a: 2b10 cmp r3, #16
  34195. 800ee0c: d103 bne.n 800ee16 <UART_RxISR_8BIT+0x182>
  34196. {
  34197. /* Clear IDLE Flag */
  34198. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34199. 800ee0e: 687b ldr r3, [r7, #4]
  34200. 800ee10: 681b ldr r3, [r3, #0]
  34201. 800ee12: 2210 movs r2, #16
  34202. 800ee14: 621a str r2, [r3, #32]
  34203. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34204. /*Call registered Rx Event callback*/
  34205. huart->RxEventCallback(huart, huart->RxXferSize);
  34206. #else
  34207. /*Call legacy weak Rx Event callback*/
  34208. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  34209. 800ee16: 687b ldr r3, [r7, #4]
  34210. 800ee18: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  34211. 800ee1c: 4619 mov r1, r3
  34212. 800ee1e: 6878 ldr r0, [r7, #4]
  34213. 800ee20: f7f5 f8f8 bl 8004014 <HAL_UARTEx_RxEventCallback>
  34214. else
  34215. {
  34216. /* Clear RXNE interrupt flag */
  34217. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34218. }
  34219. }
  34220. 800ee24: e00b b.n 800ee3e <UART_RxISR_8BIT+0x1aa>
  34221. HAL_UART_RxCpltCallback(huart);
  34222. 800ee26: 6878 ldr r0, [r7, #4]
  34223. 800ee28: f7f5 f8ea bl 8004000 <HAL_UART_RxCpltCallback>
  34224. }
  34225. 800ee2c: e007 b.n 800ee3e <UART_RxISR_8BIT+0x1aa>
  34226. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34227. 800ee2e: 687b ldr r3, [r7, #4]
  34228. 800ee30: 681b ldr r3, [r3, #0]
  34229. 800ee32: 699a ldr r2, [r3, #24]
  34230. 800ee34: 687b ldr r3, [r7, #4]
  34231. 800ee36: 681b ldr r3, [r3, #0]
  34232. 800ee38: f042 0208 orr.w r2, r2, #8
  34233. 800ee3c: 619a str r2, [r3, #24]
  34234. }
  34235. 800ee3e: bf00 nop
  34236. 800ee40: 3770 adds r7, #112 @ 0x70
  34237. 800ee42: 46bd mov sp, r7
  34238. 800ee44: bd80 pop {r7, pc}
  34239. 800ee46: bf00 nop
  34240. 800ee48: 58000c00 .word 0x58000c00
  34241. 0800ee4c <UART_RxISR_16BIT>:
  34242. * interruptions have been enabled by HAL_UART_Receive_IT()
  34243. * @param huart UART handle.
  34244. * @retval None
  34245. */
  34246. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  34247. {
  34248. 800ee4c: b580 push {r7, lr}
  34249. 800ee4e: b09c sub sp, #112 @ 0x70
  34250. 800ee50: af00 add r7, sp, #0
  34251. 800ee52: 6078 str r0, [r7, #4]
  34252. uint16_t *tmp;
  34253. uint16_t uhMask = huart->Mask;
  34254. 800ee54: 687b ldr r3, [r7, #4]
  34255. 800ee56: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  34256. 800ee5a: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  34257. uint16_t uhdata;
  34258. /* Check that a Rx process is ongoing */
  34259. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  34260. 800ee5e: 687b ldr r3, [r7, #4]
  34261. 800ee60: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  34262. 800ee64: 2b22 cmp r3, #34 @ 0x22
  34263. 800ee66: f040 80be bne.w 800efe6 <UART_RxISR_16BIT+0x19a>
  34264. {
  34265. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  34266. 800ee6a: 687b ldr r3, [r7, #4]
  34267. 800ee6c: 681b ldr r3, [r3, #0]
  34268. 800ee6e: 6a5b ldr r3, [r3, #36] @ 0x24
  34269. 800ee70: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  34270. tmp = (uint16_t *) huart->pRxBuffPtr ;
  34271. 800ee74: 687b ldr r3, [r7, #4]
  34272. 800ee76: 6d9b ldr r3, [r3, #88] @ 0x58
  34273. 800ee78: 66bb str r3, [r7, #104] @ 0x68
  34274. *tmp = (uint16_t)(uhdata & uhMask);
  34275. 800ee7a: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  34276. 800ee7e: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  34277. 800ee82: 4013 ands r3, r2
  34278. 800ee84: b29a uxth r2, r3
  34279. 800ee86: 6ebb ldr r3, [r7, #104] @ 0x68
  34280. 800ee88: 801a strh r2, [r3, #0]
  34281. huart->pRxBuffPtr += 2U;
  34282. 800ee8a: 687b ldr r3, [r7, #4]
  34283. 800ee8c: 6d9b ldr r3, [r3, #88] @ 0x58
  34284. 800ee8e: 1c9a adds r2, r3, #2
  34285. 800ee90: 687b ldr r3, [r7, #4]
  34286. 800ee92: 659a str r2, [r3, #88] @ 0x58
  34287. huart->RxXferCount--;
  34288. 800ee94: 687b ldr r3, [r7, #4]
  34289. 800ee96: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34290. 800ee9a: b29b uxth r3, r3
  34291. 800ee9c: 3b01 subs r3, #1
  34292. 800ee9e: b29a uxth r2, r3
  34293. 800eea0: 687b ldr r3, [r7, #4]
  34294. 800eea2: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34295. if (huart->RxXferCount == 0U)
  34296. 800eea6: 687b ldr r3, [r7, #4]
  34297. 800eea8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34298. 800eeac: b29b uxth r3, r3
  34299. 800eeae: 2b00 cmp r3, #0
  34300. 800eeb0: f040 80a1 bne.w 800eff6 <UART_RxISR_16BIT+0x1aa>
  34301. {
  34302. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  34303. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  34304. 800eeb4: 687b ldr r3, [r7, #4]
  34305. 800eeb6: 681b ldr r3, [r3, #0]
  34306. 800eeb8: 64bb str r3, [r7, #72] @ 0x48
  34307. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34308. 800eeba: 6cbb ldr r3, [r7, #72] @ 0x48
  34309. 800eebc: e853 3f00 ldrex r3, [r3]
  34310. 800eec0: 647b str r3, [r7, #68] @ 0x44
  34311. return(result);
  34312. 800eec2: 6c7b ldr r3, [r7, #68] @ 0x44
  34313. 800eec4: f423 7390 bic.w r3, r3, #288 @ 0x120
  34314. 800eec8: 667b str r3, [r7, #100] @ 0x64
  34315. 800eeca: 687b ldr r3, [r7, #4]
  34316. 800eecc: 681b ldr r3, [r3, #0]
  34317. 800eece: 461a mov r2, r3
  34318. 800eed0: 6e7b ldr r3, [r7, #100] @ 0x64
  34319. 800eed2: 657b str r3, [r7, #84] @ 0x54
  34320. 800eed4: 653a str r2, [r7, #80] @ 0x50
  34321. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34322. 800eed6: 6d39 ldr r1, [r7, #80] @ 0x50
  34323. 800eed8: 6d7a ldr r2, [r7, #84] @ 0x54
  34324. 800eeda: e841 2300 strex r3, r2, [r1]
  34325. 800eede: 64fb str r3, [r7, #76] @ 0x4c
  34326. return(result);
  34327. 800eee0: 6cfb ldr r3, [r7, #76] @ 0x4c
  34328. 800eee2: 2b00 cmp r3, #0
  34329. 800eee4: d1e6 bne.n 800eeb4 <UART_RxISR_16BIT+0x68>
  34330. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  34331. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  34332. 800eee6: 687b ldr r3, [r7, #4]
  34333. 800eee8: 681b ldr r3, [r3, #0]
  34334. 800eeea: 3308 adds r3, #8
  34335. 800eeec: 637b str r3, [r7, #52] @ 0x34
  34336. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34337. 800eeee: 6b7b ldr r3, [r7, #52] @ 0x34
  34338. 800eef0: e853 3f00 ldrex r3, [r3]
  34339. 800eef4: 633b str r3, [r7, #48] @ 0x30
  34340. return(result);
  34341. 800eef6: 6b3b ldr r3, [r7, #48] @ 0x30
  34342. 800eef8: f023 0301 bic.w r3, r3, #1
  34343. 800eefc: 663b str r3, [r7, #96] @ 0x60
  34344. 800eefe: 687b ldr r3, [r7, #4]
  34345. 800ef00: 681b ldr r3, [r3, #0]
  34346. 800ef02: 3308 adds r3, #8
  34347. 800ef04: 6e3a ldr r2, [r7, #96] @ 0x60
  34348. 800ef06: 643a str r2, [r7, #64] @ 0x40
  34349. 800ef08: 63fb str r3, [r7, #60] @ 0x3c
  34350. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34351. 800ef0a: 6bf9 ldr r1, [r7, #60] @ 0x3c
  34352. 800ef0c: 6c3a ldr r2, [r7, #64] @ 0x40
  34353. 800ef0e: e841 2300 strex r3, r2, [r1]
  34354. 800ef12: 63bb str r3, [r7, #56] @ 0x38
  34355. return(result);
  34356. 800ef14: 6bbb ldr r3, [r7, #56] @ 0x38
  34357. 800ef16: 2b00 cmp r3, #0
  34358. 800ef18: d1e5 bne.n 800eee6 <UART_RxISR_16BIT+0x9a>
  34359. /* Rx process is completed, restore huart->RxState to Ready */
  34360. huart->RxState = HAL_UART_STATE_READY;
  34361. 800ef1a: 687b ldr r3, [r7, #4]
  34362. 800ef1c: 2220 movs r2, #32
  34363. 800ef1e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34364. /* Clear RxISR function pointer */
  34365. huart->RxISR = NULL;
  34366. 800ef22: 687b ldr r3, [r7, #4]
  34367. 800ef24: 2200 movs r2, #0
  34368. 800ef26: 675a str r2, [r3, #116] @ 0x74
  34369. /* Initialize type of RxEvent to Transfer Complete */
  34370. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34371. 800ef28: 687b ldr r3, [r7, #4]
  34372. 800ef2a: 2200 movs r2, #0
  34373. 800ef2c: 671a str r2, [r3, #112] @ 0x70
  34374. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  34375. 800ef2e: 687b ldr r3, [r7, #4]
  34376. 800ef30: 681b ldr r3, [r3, #0]
  34377. 800ef32: 4a33 ldr r2, [pc, #204] @ (800f000 <UART_RxISR_16BIT+0x1b4>)
  34378. 800ef34: 4293 cmp r3, r2
  34379. 800ef36: d01f beq.n 800ef78 <UART_RxISR_16BIT+0x12c>
  34380. {
  34381. /* Check that USART RTOEN bit is set */
  34382. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  34383. 800ef38: 687b ldr r3, [r7, #4]
  34384. 800ef3a: 681b ldr r3, [r3, #0]
  34385. 800ef3c: 685b ldr r3, [r3, #4]
  34386. 800ef3e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  34387. 800ef42: 2b00 cmp r3, #0
  34388. 800ef44: d018 beq.n 800ef78 <UART_RxISR_16BIT+0x12c>
  34389. {
  34390. /* Enable the UART Receiver Timeout Interrupt */
  34391. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  34392. 800ef46: 687b ldr r3, [r7, #4]
  34393. 800ef48: 681b ldr r3, [r3, #0]
  34394. 800ef4a: 623b str r3, [r7, #32]
  34395. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34396. 800ef4c: 6a3b ldr r3, [r7, #32]
  34397. 800ef4e: e853 3f00 ldrex r3, [r3]
  34398. 800ef52: 61fb str r3, [r7, #28]
  34399. return(result);
  34400. 800ef54: 69fb ldr r3, [r7, #28]
  34401. 800ef56: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34402. 800ef5a: 65fb str r3, [r7, #92] @ 0x5c
  34403. 800ef5c: 687b ldr r3, [r7, #4]
  34404. 800ef5e: 681b ldr r3, [r3, #0]
  34405. 800ef60: 461a mov r2, r3
  34406. 800ef62: 6dfb ldr r3, [r7, #92] @ 0x5c
  34407. 800ef64: 62fb str r3, [r7, #44] @ 0x2c
  34408. 800ef66: 62ba str r2, [r7, #40] @ 0x28
  34409. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34410. 800ef68: 6ab9 ldr r1, [r7, #40] @ 0x28
  34411. 800ef6a: 6afa ldr r2, [r7, #44] @ 0x2c
  34412. 800ef6c: e841 2300 strex r3, r2, [r1]
  34413. 800ef70: 627b str r3, [r7, #36] @ 0x24
  34414. return(result);
  34415. 800ef72: 6a7b ldr r3, [r7, #36] @ 0x24
  34416. 800ef74: 2b00 cmp r3, #0
  34417. 800ef76: d1e6 bne.n 800ef46 <UART_RxISR_16BIT+0xfa>
  34418. }
  34419. }
  34420. /* Check current reception Mode :
  34421. If Reception till IDLE event has been selected : */
  34422. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34423. 800ef78: 687b ldr r3, [r7, #4]
  34424. 800ef7a: 6edb ldr r3, [r3, #108] @ 0x6c
  34425. 800ef7c: 2b01 cmp r3, #1
  34426. 800ef7e: d12e bne.n 800efde <UART_RxISR_16BIT+0x192>
  34427. {
  34428. /* Set reception type to Standard */
  34429. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34430. 800ef80: 687b ldr r3, [r7, #4]
  34431. 800ef82: 2200 movs r2, #0
  34432. 800ef84: 66da str r2, [r3, #108] @ 0x6c
  34433. /* Disable IDLE interrupt */
  34434. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34435. 800ef86: 687b ldr r3, [r7, #4]
  34436. 800ef88: 681b ldr r3, [r3, #0]
  34437. 800ef8a: 60fb str r3, [r7, #12]
  34438. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34439. 800ef8c: 68fb ldr r3, [r7, #12]
  34440. 800ef8e: e853 3f00 ldrex r3, [r3]
  34441. 800ef92: 60bb str r3, [r7, #8]
  34442. return(result);
  34443. 800ef94: 68bb ldr r3, [r7, #8]
  34444. 800ef96: f023 0310 bic.w r3, r3, #16
  34445. 800ef9a: 65bb str r3, [r7, #88] @ 0x58
  34446. 800ef9c: 687b ldr r3, [r7, #4]
  34447. 800ef9e: 681b ldr r3, [r3, #0]
  34448. 800efa0: 461a mov r2, r3
  34449. 800efa2: 6dbb ldr r3, [r7, #88] @ 0x58
  34450. 800efa4: 61bb str r3, [r7, #24]
  34451. 800efa6: 617a str r2, [r7, #20]
  34452. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34453. 800efa8: 6979 ldr r1, [r7, #20]
  34454. 800efaa: 69ba ldr r2, [r7, #24]
  34455. 800efac: e841 2300 strex r3, r2, [r1]
  34456. 800efb0: 613b str r3, [r7, #16]
  34457. return(result);
  34458. 800efb2: 693b ldr r3, [r7, #16]
  34459. 800efb4: 2b00 cmp r3, #0
  34460. 800efb6: d1e6 bne.n 800ef86 <UART_RxISR_16BIT+0x13a>
  34461. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  34462. 800efb8: 687b ldr r3, [r7, #4]
  34463. 800efba: 681b ldr r3, [r3, #0]
  34464. 800efbc: 69db ldr r3, [r3, #28]
  34465. 800efbe: f003 0310 and.w r3, r3, #16
  34466. 800efc2: 2b10 cmp r3, #16
  34467. 800efc4: d103 bne.n 800efce <UART_RxISR_16BIT+0x182>
  34468. {
  34469. /* Clear IDLE Flag */
  34470. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34471. 800efc6: 687b ldr r3, [r7, #4]
  34472. 800efc8: 681b ldr r3, [r3, #0]
  34473. 800efca: 2210 movs r2, #16
  34474. 800efcc: 621a str r2, [r3, #32]
  34475. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34476. /*Call registered Rx Event callback*/
  34477. huart->RxEventCallback(huart, huart->RxXferSize);
  34478. #else
  34479. /*Call legacy weak Rx Event callback*/
  34480. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  34481. 800efce: 687b ldr r3, [r7, #4]
  34482. 800efd0: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  34483. 800efd4: 4619 mov r1, r3
  34484. 800efd6: 6878 ldr r0, [r7, #4]
  34485. 800efd8: f7f5 f81c bl 8004014 <HAL_UARTEx_RxEventCallback>
  34486. else
  34487. {
  34488. /* Clear RXNE interrupt flag */
  34489. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34490. }
  34491. }
  34492. 800efdc: e00b b.n 800eff6 <UART_RxISR_16BIT+0x1aa>
  34493. HAL_UART_RxCpltCallback(huart);
  34494. 800efde: 6878 ldr r0, [r7, #4]
  34495. 800efe0: f7f5 f80e bl 8004000 <HAL_UART_RxCpltCallback>
  34496. }
  34497. 800efe4: e007 b.n 800eff6 <UART_RxISR_16BIT+0x1aa>
  34498. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34499. 800efe6: 687b ldr r3, [r7, #4]
  34500. 800efe8: 681b ldr r3, [r3, #0]
  34501. 800efea: 699a ldr r2, [r3, #24]
  34502. 800efec: 687b ldr r3, [r7, #4]
  34503. 800efee: 681b ldr r3, [r3, #0]
  34504. 800eff0: f042 0208 orr.w r2, r2, #8
  34505. 800eff4: 619a str r2, [r3, #24]
  34506. }
  34507. 800eff6: bf00 nop
  34508. 800eff8: 3770 adds r7, #112 @ 0x70
  34509. 800effa: 46bd mov sp, r7
  34510. 800effc: bd80 pop {r7, pc}
  34511. 800effe: bf00 nop
  34512. 800f000: 58000c00 .word 0x58000c00
  34513. 0800f004 <UART_RxISR_8BIT_FIFOEN>:
  34514. * interruptions have been enabled by HAL_UART_Receive_IT()
  34515. * @param huart UART handle.
  34516. * @retval None
  34517. */
  34518. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  34519. {
  34520. 800f004: b580 push {r7, lr}
  34521. 800f006: b0ac sub sp, #176 @ 0xb0
  34522. 800f008: af00 add r7, sp, #0
  34523. 800f00a: 6078 str r0, [r7, #4]
  34524. uint16_t uhMask = huart->Mask;
  34525. 800f00c: 687b ldr r3, [r7, #4]
  34526. 800f00e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  34527. 800f012: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  34528. uint16_t uhdata;
  34529. uint16_t nb_rx_data;
  34530. uint16_t rxdatacount;
  34531. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  34532. 800f016: 687b ldr r3, [r7, #4]
  34533. 800f018: 681b ldr r3, [r3, #0]
  34534. 800f01a: 69db ldr r3, [r3, #28]
  34535. 800f01c: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  34536. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  34537. 800f020: 687b ldr r3, [r7, #4]
  34538. 800f022: 681b ldr r3, [r3, #0]
  34539. 800f024: 681b ldr r3, [r3, #0]
  34540. 800f026: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  34541. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  34542. 800f02a: 687b ldr r3, [r7, #4]
  34543. 800f02c: 681b ldr r3, [r3, #0]
  34544. 800f02e: 689b ldr r3, [r3, #8]
  34545. 800f030: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  34546. /* Check that a Rx process is ongoing */
  34547. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  34548. 800f034: 687b ldr r3, [r7, #4]
  34549. 800f036: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  34550. 800f03a: 2b22 cmp r3, #34 @ 0x22
  34551. 800f03c: f040 8180 bne.w 800f340 <UART_RxISR_8BIT_FIFOEN+0x33c>
  34552. {
  34553. nb_rx_data = huart->NbRxDataToProcess;
  34554. 800f040: 687b ldr r3, [r7, #4]
  34555. 800f042: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  34556. 800f046: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  34557. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  34558. 800f04a: e123 b.n 800f294 <UART_RxISR_8BIT_FIFOEN+0x290>
  34559. {
  34560. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  34561. 800f04c: 687b ldr r3, [r7, #4]
  34562. 800f04e: 681b ldr r3, [r3, #0]
  34563. 800f050: 6a5b ldr r3, [r3, #36] @ 0x24
  34564. 800f052: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  34565. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  34566. 800f056: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  34567. 800f05a: b2d9 uxtb r1, r3
  34568. 800f05c: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  34569. 800f060: b2da uxtb r2, r3
  34570. 800f062: 687b ldr r3, [r7, #4]
  34571. 800f064: 6d9b ldr r3, [r3, #88] @ 0x58
  34572. 800f066: 400a ands r2, r1
  34573. 800f068: b2d2 uxtb r2, r2
  34574. 800f06a: 701a strb r2, [r3, #0]
  34575. huart->pRxBuffPtr++;
  34576. 800f06c: 687b ldr r3, [r7, #4]
  34577. 800f06e: 6d9b ldr r3, [r3, #88] @ 0x58
  34578. 800f070: 1c5a adds r2, r3, #1
  34579. 800f072: 687b ldr r3, [r7, #4]
  34580. 800f074: 659a str r2, [r3, #88] @ 0x58
  34581. huart->RxXferCount--;
  34582. 800f076: 687b ldr r3, [r7, #4]
  34583. 800f078: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34584. 800f07c: b29b uxth r3, r3
  34585. 800f07e: 3b01 subs r3, #1
  34586. 800f080: b29a uxth r2, r3
  34587. 800f082: 687b ldr r3, [r7, #4]
  34588. 800f084: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34589. isrflags = READ_REG(huart->Instance->ISR);
  34590. 800f088: 687b ldr r3, [r7, #4]
  34591. 800f08a: 681b ldr r3, [r3, #0]
  34592. 800f08c: 69db ldr r3, [r3, #28]
  34593. 800f08e: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  34594. /* If some non blocking errors occurred */
  34595. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  34596. 800f092: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34597. 800f096: f003 0307 and.w r3, r3, #7
  34598. 800f09a: 2b00 cmp r3, #0
  34599. 800f09c: d053 beq.n 800f146 <UART_RxISR_8BIT_FIFOEN+0x142>
  34600. {
  34601. /* UART parity error interrupt occurred -------------------------------------*/
  34602. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  34603. 800f09e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34604. 800f0a2: f003 0301 and.w r3, r3, #1
  34605. 800f0a6: 2b00 cmp r3, #0
  34606. 800f0a8: d011 beq.n 800f0ce <UART_RxISR_8BIT_FIFOEN+0xca>
  34607. 800f0aa: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  34608. 800f0ae: f403 7380 and.w r3, r3, #256 @ 0x100
  34609. 800f0b2: 2b00 cmp r3, #0
  34610. 800f0b4: d00b beq.n 800f0ce <UART_RxISR_8BIT_FIFOEN+0xca>
  34611. {
  34612. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  34613. 800f0b6: 687b ldr r3, [r7, #4]
  34614. 800f0b8: 681b ldr r3, [r3, #0]
  34615. 800f0ba: 2201 movs r2, #1
  34616. 800f0bc: 621a str r2, [r3, #32]
  34617. huart->ErrorCode |= HAL_UART_ERROR_PE;
  34618. 800f0be: 687b ldr r3, [r7, #4]
  34619. 800f0c0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34620. 800f0c4: f043 0201 orr.w r2, r3, #1
  34621. 800f0c8: 687b ldr r3, [r7, #4]
  34622. 800f0ca: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34623. }
  34624. /* UART frame error interrupt occurred --------------------------------------*/
  34625. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  34626. 800f0ce: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34627. 800f0d2: f003 0302 and.w r3, r3, #2
  34628. 800f0d6: 2b00 cmp r3, #0
  34629. 800f0d8: d011 beq.n 800f0fe <UART_RxISR_8BIT_FIFOEN+0xfa>
  34630. 800f0da: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  34631. 800f0de: f003 0301 and.w r3, r3, #1
  34632. 800f0e2: 2b00 cmp r3, #0
  34633. 800f0e4: d00b beq.n 800f0fe <UART_RxISR_8BIT_FIFOEN+0xfa>
  34634. {
  34635. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  34636. 800f0e6: 687b ldr r3, [r7, #4]
  34637. 800f0e8: 681b ldr r3, [r3, #0]
  34638. 800f0ea: 2202 movs r2, #2
  34639. 800f0ec: 621a str r2, [r3, #32]
  34640. huart->ErrorCode |= HAL_UART_ERROR_FE;
  34641. 800f0ee: 687b ldr r3, [r7, #4]
  34642. 800f0f0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34643. 800f0f4: f043 0204 orr.w r2, r3, #4
  34644. 800f0f8: 687b ldr r3, [r7, #4]
  34645. 800f0fa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34646. }
  34647. /* UART noise error interrupt occurred --------------------------------------*/
  34648. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  34649. 800f0fe: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34650. 800f102: f003 0304 and.w r3, r3, #4
  34651. 800f106: 2b00 cmp r3, #0
  34652. 800f108: d011 beq.n 800f12e <UART_RxISR_8BIT_FIFOEN+0x12a>
  34653. 800f10a: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  34654. 800f10e: f003 0301 and.w r3, r3, #1
  34655. 800f112: 2b00 cmp r3, #0
  34656. 800f114: d00b beq.n 800f12e <UART_RxISR_8BIT_FIFOEN+0x12a>
  34657. {
  34658. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  34659. 800f116: 687b ldr r3, [r7, #4]
  34660. 800f118: 681b ldr r3, [r3, #0]
  34661. 800f11a: 2204 movs r2, #4
  34662. 800f11c: 621a str r2, [r3, #32]
  34663. huart->ErrorCode |= HAL_UART_ERROR_NE;
  34664. 800f11e: 687b ldr r3, [r7, #4]
  34665. 800f120: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34666. 800f124: f043 0202 orr.w r2, r3, #2
  34667. 800f128: 687b ldr r3, [r7, #4]
  34668. 800f12a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34669. }
  34670. /* Call UART Error Call back function if need be ----------------------------*/
  34671. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  34672. 800f12e: 687b ldr r3, [r7, #4]
  34673. 800f130: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  34674. 800f134: 2b00 cmp r3, #0
  34675. 800f136: d006 beq.n 800f146 <UART_RxISR_8BIT_FIFOEN+0x142>
  34676. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34677. /*Call registered error callback*/
  34678. huart->ErrorCallback(huart);
  34679. #else
  34680. /*Call legacy weak error callback*/
  34681. HAL_UART_ErrorCallback(huart);
  34682. 800f138: 6878 ldr r0, [r7, #4]
  34683. 800f13a: f7fe fb13 bl 800d764 <HAL_UART_ErrorCallback>
  34684. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  34685. huart->ErrorCode = HAL_UART_ERROR_NONE;
  34686. 800f13e: 687b ldr r3, [r7, #4]
  34687. 800f140: 2200 movs r2, #0
  34688. 800f142: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34689. }
  34690. }
  34691. if (huart->RxXferCount == 0U)
  34692. 800f146: 687b ldr r3, [r7, #4]
  34693. 800f148: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34694. 800f14c: b29b uxth r3, r3
  34695. 800f14e: 2b00 cmp r3, #0
  34696. 800f150: f040 80a0 bne.w 800f294 <UART_RxISR_8BIT_FIFOEN+0x290>
  34697. {
  34698. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  34699. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  34700. 800f154: 687b ldr r3, [r7, #4]
  34701. 800f156: 681b ldr r3, [r3, #0]
  34702. 800f158: 673b str r3, [r7, #112] @ 0x70
  34703. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34704. 800f15a: 6f3b ldr r3, [r7, #112] @ 0x70
  34705. 800f15c: e853 3f00 ldrex r3, [r3]
  34706. 800f160: 66fb str r3, [r7, #108] @ 0x6c
  34707. return(result);
  34708. 800f162: 6efb ldr r3, [r7, #108] @ 0x6c
  34709. 800f164: f423 7380 bic.w r3, r3, #256 @ 0x100
  34710. 800f168: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  34711. 800f16c: 687b ldr r3, [r7, #4]
  34712. 800f16e: 681b ldr r3, [r3, #0]
  34713. 800f170: 461a mov r2, r3
  34714. 800f172: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  34715. 800f176: 67fb str r3, [r7, #124] @ 0x7c
  34716. 800f178: 67ba str r2, [r7, #120] @ 0x78
  34717. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34718. 800f17a: 6fb9 ldr r1, [r7, #120] @ 0x78
  34719. 800f17c: 6ffa ldr r2, [r7, #124] @ 0x7c
  34720. 800f17e: e841 2300 strex r3, r2, [r1]
  34721. 800f182: 677b str r3, [r7, #116] @ 0x74
  34722. return(result);
  34723. 800f184: 6f7b ldr r3, [r7, #116] @ 0x74
  34724. 800f186: 2b00 cmp r3, #0
  34725. 800f188: d1e4 bne.n 800f154 <UART_RxISR_8BIT_FIFOEN+0x150>
  34726. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  34727. and RX FIFO Threshold interrupt */
  34728. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  34729. 800f18a: 687b ldr r3, [r7, #4]
  34730. 800f18c: 681b ldr r3, [r3, #0]
  34731. 800f18e: 3308 adds r3, #8
  34732. 800f190: 65fb str r3, [r7, #92] @ 0x5c
  34733. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34734. 800f192: 6dfb ldr r3, [r7, #92] @ 0x5c
  34735. 800f194: e853 3f00 ldrex r3, [r3]
  34736. 800f198: 65bb str r3, [r7, #88] @ 0x58
  34737. return(result);
  34738. 800f19a: 6dba ldr r2, [r7, #88] @ 0x58
  34739. 800f19c: 4b6e ldr r3, [pc, #440] @ (800f358 <UART_RxISR_8BIT_FIFOEN+0x354>)
  34740. 800f19e: 4013 ands r3, r2
  34741. 800f1a0: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  34742. 800f1a4: 687b ldr r3, [r7, #4]
  34743. 800f1a6: 681b ldr r3, [r3, #0]
  34744. 800f1a8: 3308 adds r3, #8
  34745. 800f1aa: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  34746. 800f1ae: 66ba str r2, [r7, #104] @ 0x68
  34747. 800f1b0: 667b str r3, [r7, #100] @ 0x64
  34748. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34749. 800f1b2: 6e79 ldr r1, [r7, #100] @ 0x64
  34750. 800f1b4: 6eba ldr r2, [r7, #104] @ 0x68
  34751. 800f1b6: e841 2300 strex r3, r2, [r1]
  34752. 800f1ba: 663b str r3, [r7, #96] @ 0x60
  34753. return(result);
  34754. 800f1bc: 6e3b ldr r3, [r7, #96] @ 0x60
  34755. 800f1be: 2b00 cmp r3, #0
  34756. 800f1c0: d1e3 bne.n 800f18a <UART_RxISR_8BIT_FIFOEN+0x186>
  34757. /* Rx process is completed, restore huart->RxState to Ready */
  34758. huart->RxState = HAL_UART_STATE_READY;
  34759. 800f1c2: 687b ldr r3, [r7, #4]
  34760. 800f1c4: 2220 movs r2, #32
  34761. 800f1c6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34762. /* Clear RxISR function pointer */
  34763. huart->RxISR = NULL;
  34764. 800f1ca: 687b ldr r3, [r7, #4]
  34765. 800f1cc: 2200 movs r2, #0
  34766. 800f1ce: 675a str r2, [r3, #116] @ 0x74
  34767. /* Initialize type of RxEvent to Transfer Complete */
  34768. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34769. 800f1d0: 687b ldr r3, [r7, #4]
  34770. 800f1d2: 2200 movs r2, #0
  34771. 800f1d4: 671a str r2, [r3, #112] @ 0x70
  34772. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  34773. 800f1d6: 687b ldr r3, [r7, #4]
  34774. 800f1d8: 681b ldr r3, [r3, #0]
  34775. 800f1da: 4a60 ldr r2, [pc, #384] @ (800f35c <UART_RxISR_8BIT_FIFOEN+0x358>)
  34776. 800f1dc: 4293 cmp r3, r2
  34777. 800f1de: d021 beq.n 800f224 <UART_RxISR_8BIT_FIFOEN+0x220>
  34778. {
  34779. /* Check that USART RTOEN bit is set */
  34780. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  34781. 800f1e0: 687b ldr r3, [r7, #4]
  34782. 800f1e2: 681b ldr r3, [r3, #0]
  34783. 800f1e4: 685b ldr r3, [r3, #4]
  34784. 800f1e6: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  34785. 800f1ea: 2b00 cmp r3, #0
  34786. 800f1ec: d01a beq.n 800f224 <UART_RxISR_8BIT_FIFOEN+0x220>
  34787. {
  34788. /* Enable the UART Receiver Timeout Interrupt */
  34789. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  34790. 800f1ee: 687b ldr r3, [r7, #4]
  34791. 800f1f0: 681b ldr r3, [r3, #0]
  34792. 800f1f2: 64bb str r3, [r7, #72] @ 0x48
  34793. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34794. 800f1f4: 6cbb ldr r3, [r7, #72] @ 0x48
  34795. 800f1f6: e853 3f00 ldrex r3, [r3]
  34796. 800f1fa: 647b str r3, [r7, #68] @ 0x44
  34797. return(result);
  34798. 800f1fc: 6c7b ldr r3, [r7, #68] @ 0x44
  34799. 800f1fe: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34800. 800f202: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  34801. 800f206: 687b ldr r3, [r7, #4]
  34802. 800f208: 681b ldr r3, [r3, #0]
  34803. 800f20a: 461a mov r2, r3
  34804. 800f20c: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  34805. 800f210: 657b str r3, [r7, #84] @ 0x54
  34806. 800f212: 653a str r2, [r7, #80] @ 0x50
  34807. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34808. 800f214: 6d39 ldr r1, [r7, #80] @ 0x50
  34809. 800f216: 6d7a ldr r2, [r7, #84] @ 0x54
  34810. 800f218: e841 2300 strex r3, r2, [r1]
  34811. 800f21c: 64fb str r3, [r7, #76] @ 0x4c
  34812. return(result);
  34813. 800f21e: 6cfb ldr r3, [r7, #76] @ 0x4c
  34814. 800f220: 2b00 cmp r3, #0
  34815. 800f222: d1e4 bne.n 800f1ee <UART_RxISR_8BIT_FIFOEN+0x1ea>
  34816. }
  34817. }
  34818. /* Check current reception Mode :
  34819. If Reception till IDLE event has been selected : */
  34820. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34821. 800f224: 687b ldr r3, [r7, #4]
  34822. 800f226: 6edb ldr r3, [r3, #108] @ 0x6c
  34823. 800f228: 2b01 cmp r3, #1
  34824. 800f22a: d130 bne.n 800f28e <UART_RxISR_8BIT_FIFOEN+0x28a>
  34825. {
  34826. /* Set reception type to Standard */
  34827. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34828. 800f22c: 687b ldr r3, [r7, #4]
  34829. 800f22e: 2200 movs r2, #0
  34830. 800f230: 66da str r2, [r3, #108] @ 0x6c
  34831. /* Disable IDLE interrupt */
  34832. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34833. 800f232: 687b ldr r3, [r7, #4]
  34834. 800f234: 681b ldr r3, [r3, #0]
  34835. 800f236: 637b str r3, [r7, #52] @ 0x34
  34836. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34837. 800f238: 6b7b ldr r3, [r7, #52] @ 0x34
  34838. 800f23a: e853 3f00 ldrex r3, [r3]
  34839. 800f23e: 633b str r3, [r7, #48] @ 0x30
  34840. return(result);
  34841. 800f240: 6b3b ldr r3, [r7, #48] @ 0x30
  34842. 800f242: f023 0310 bic.w r3, r3, #16
  34843. 800f246: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  34844. 800f24a: 687b ldr r3, [r7, #4]
  34845. 800f24c: 681b ldr r3, [r3, #0]
  34846. 800f24e: 461a mov r2, r3
  34847. 800f250: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  34848. 800f254: 643b str r3, [r7, #64] @ 0x40
  34849. 800f256: 63fa str r2, [r7, #60] @ 0x3c
  34850. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34851. 800f258: 6bf9 ldr r1, [r7, #60] @ 0x3c
  34852. 800f25a: 6c3a ldr r2, [r7, #64] @ 0x40
  34853. 800f25c: e841 2300 strex r3, r2, [r1]
  34854. 800f260: 63bb str r3, [r7, #56] @ 0x38
  34855. return(result);
  34856. 800f262: 6bbb ldr r3, [r7, #56] @ 0x38
  34857. 800f264: 2b00 cmp r3, #0
  34858. 800f266: d1e4 bne.n 800f232 <UART_RxISR_8BIT_FIFOEN+0x22e>
  34859. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  34860. 800f268: 687b ldr r3, [r7, #4]
  34861. 800f26a: 681b ldr r3, [r3, #0]
  34862. 800f26c: 69db ldr r3, [r3, #28]
  34863. 800f26e: f003 0310 and.w r3, r3, #16
  34864. 800f272: 2b10 cmp r3, #16
  34865. 800f274: d103 bne.n 800f27e <UART_RxISR_8BIT_FIFOEN+0x27a>
  34866. {
  34867. /* Clear IDLE Flag */
  34868. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34869. 800f276: 687b ldr r3, [r7, #4]
  34870. 800f278: 681b ldr r3, [r3, #0]
  34871. 800f27a: 2210 movs r2, #16
  34872. 800f27c: 621a str r2, [r3, #32]
  34873. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34874. /*Call registered Rx Event callback*/
  34875. huart->RxEventCallback(huart, huart->RxXferSize);
  34876. #else
  34877. /*Call legacy weak Rx Event callback*/
  34878. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  34879. 800f27e: 687b ldr r3, [r7, #4]
  34880. 800f280: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  34881. 800f284: 4619 mov r1, r3
  34882. 800f286: 6878 ldr r0, [r7, #4]
  34883. 800f288: f7f4 fec4 bl 8004014 <HAL_UARTEx_RxEventCallback>
  34884. 800f28c: e002 b.n 800f294 <UART_RxISR_8BIT_FIFOEN+0x290>
  34885. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34886. /*Call registered Rx complete callback*/
  34887. huart->RxCpltCallback(huart);
  34888. #else
  34889. /*Call legacy weak Rx complete callback*/
  34890. HAL_UART_RxCpltCallback(huart);
  34891. 800f28e: 6878 ldr r0, [r7, #4]
  34892. 800f290: f7f4 feb6 bl 8004000 <HAL_UART_RxCpltCallback>
  34893. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  34894. 800f294: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  34895. 800f298: 2b00 cmp r3, #0
  34896. 800f29a: d006 beq.n 800f2aa <UART_RxISR_8BIT_FIFOEN+0x2a6>
  34897. 800f29c: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  34898. 800f2a0: f003 0320 and.w r3, r3, #32
  34899. 800f2a4: 2b00 cmp r3, #0
  34900. 800f2a6: f47f aed1 bne.w 800f04c <UART_RxISR_8BIT_FIFOEN+0x48>
  34901. /* When remaining number of bytes to receive is less than the RX FIFO
  34902. threshold, next incoming frames are processed as if FIFO mode was
  34903. disabled (i.e. one interrupt per received frame).
  34904. */
  34905. rxdatacount = huart->RxXferCount;
  34906. 800f2aa: 687b ldr r3, [r7, #4]
  34907. 800f2ac: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34908. 800f2b0: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  34909. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  34910. 800f2b4: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  34911. 800f2b8: 2b00 cmp r3, #0
  34912. 800f2ba: d049 beq.n 800f350 <UART_RxISR_8BIT_FIFOEN+0x34c>
  34913. 800f2bc: 687b ldr r3, [r7, #4]
  34914. 800f2be: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  34915. 800f2c2: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  34916. 800f2c6: 429a cmp r2, r3
  34917. 800f2c8: d242 bcs.n 800f350 <UART_RxISR_8BIT_FIFOEN+0x34c>
  34918. {
  34919. /* Disable the UART RXFT interrupt*/
  34920. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  34921. 800f2ca: 687b ldr r3, [r7, #4]
  34922. 800f2cc: 681b ldr r3, [r3, #0]
  34923. 800f2ce: 3308 adds r3, #8
  34924. 800f2d0: 623b str r3, [r7, #32]
  34925. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34926. 800f2d2: 6a3b ldr r3, [r7, #32]
  34927. 800f2d4: e853 3f00 ldrex r3, [r3]
  34928. 800f2d8: 61fb str r3, [r7, #28]
  34929. return(result);
  34930. 800f2da: 69fb ldr r3, [r7, #28]
  34931. 800f2dc: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34932. 800f2e0: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  34933. 800f2e4: 687b ldr r3, [r7, #4]
  34934. 800f2e6: 681b ldr r3, [r3, #0]
  34935. 800f2e8: 3308 adds r3, #8
  34936. 800f2ea: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  34937. 800f2ee: 62fa str r2, [r7, #44] @ 0x2c
  34938. 800f2f0: 62bb str r3, [r7, #40] @ 0x28
  34939. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34940. 800f2f2: 6ab9 ldr r1, [r7, #40] @ 0x28
  34941. 800f2f4: 6afa ldr r2, [r7, #44] @ 0x2c
  34942. 800f2f6: e841 2300 strex r3, r2, [r1]
  34943. 800f2fa: 627b str r3, [r7, #36] @ 0x24
  34944. return(result);
  34945. 800f2fc: 6a7b ldr r3, [r7, #36] @ 0x24
  34946. 800f2fe: 2b00 cmp r3, #0
  34947. 800f300: d1e3 bne.n 800f2ca <UART_RxISR_8BIT_FIFOEN+0x2c6>
  34948. /* Update the RxISR function pointer */
  34949. huart->RxISR = UART_RxISR_8BIT;
  34950. 800f302: 687b ldr r3, [r7, #4]
  34951. 800f304: 4a16 ldr r2, [pc, #88] @ (800f360 <UART_RxISR_8BIT_FIFOEN+0x35c>)
  34952. 800f306: 675a str r2, [r3, #116] @ 0x74
  34953. /* Enable the UART Data Register Not Empty interrupt */
  34954. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  34955. 800f308: 687b ldr r3, [r7, #4]
  34956. 800f30a: 681b ldr r3, [r3, #0]
  34957. 800f30c: 60fb str r3, [r7, #12]
  34958. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34959. 800f30e: 68fb ldr r3, [r7, #12]
  34960. 800f310: e853 3f00 ldrex r3, [r3]
  34961. 800f314: 60bb str r3, [r7, #8]
  34962. return(result);
  34963. 800f316: 68bb ldr r3, [r7, #8]
  34964. 800f318: f043 0320 orr.w r3, r3, #32
  34965. 800f31c: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  34966. 800f320: 687b ldr r3, [r7, #4]
  34967. 800f322: 681b ldr r3, [r3, #0]
  34968. 800f324: 461a mov r2, r3
  34969. 800f326: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  34970. 800f32a: 61bb str r3, [r7, #24]
  34971. 800f32c: 617a str r2, [r7, #20]
  34972. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34973. 800f32e: 6979 ldr r1, [r7, #20]
  34974. 800f330: 69ba ldr r2, [r7, #24]
  34975. 800f332: e841 2300 strex r3, r2, [r1]
  34976. 800f336: 613b str r3, [r7, #16]
  34977. return(result);
  34978. 800f338: 693b ldr r3, [r7, #16]
  34979. 800f33a: 2b00 cmp r3, #0
  34980. 800f33c: d1e4 bne.n 800f308 <UART_RxISR_8BIT_FIFOEN+0x304>
  34981. else
  34982. {
  34983. /* Clear RXNE interrupt flag */
  34984. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34985. }
  34986. }
  34987. 800f33e: e007 b.n 800f350 <UART_RxISR_8BIT_FIFOEN+0x34c>
  34988. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34989. 800f340: 687b ldr r3, [r7, #4]
  34990. 800f342: 681b ldr r3, [r3, #0]
  34991. 800f344: 699a ldr r2, [r3, #24]
  34992. 800f346: 687b ldr r3, [r7, #4]
  34993. 800f348: 681b ldr r3, [r3, #0]
  34994. 800f34a: f042 0208 orr.w r2, r2, #8
  34995. 800f34e: 619a str r2, [r3, #24]
  34996. }
  34997. 800f350: bf00 nop
  34998. 800f352: 37b0 adds r7, #176 @ 0xb0
  34999. 800f354: 46bd mov sp, r7
  35000. 800f356: bd80 pop {r7, pc}
  35001. 800f358: effffffe .word 0xeffffffe
  35002. 800f35c: 58000c00 .word 0x58000c00
  35003. 800f360: 0800ec95 .word 0x0800ec95
  35004. 0800f364 <UART_RxISR_16BIT_FIFOEN>:
  35005. * interruptions have been enabled by HAL_UART_Receive_IT()
  35006. * @param huart UART handle.
  35007. * @retval None
  35008. */
  35009. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  35010. {
  35011. 800f364: b580 push {r7, lr}
  35012. 800f366: b0ae sub sp, #184 @ 0xb8
  35013. 800f368: af00 add r7, sp, #0
  35014. 800f36a: 6078 str r0, [r7, #4]
  35015. uint16_t *tmp;
  35016. uint16_t uhMask = huart->Mask;
  35017. 800f36c: 687b ldr r3, [r7, #4]
  35018. 800f36e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  35019. 800f372: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  35020. uint16_t uhdata;
  35021. uint16_t nb_rx_data;
  35022. uint16_t rxdatacount;
  35023. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  35024. 800f376: 687b ldr r3, [r7, #4]
  35025. 800f378: 681b ldr r3, [r3, #0]
  35026. 800f37a: 69db ldr r3, [r3, #28]
  35027. 800f37c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  35028. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  35029. 800f380: 687b ldr r3, [r7, #4]
  35030. 800f382: 681b ldr r3, [r3, #0]
  35031. 800f384: 681b ldr r3, [r3, #0]
  35032. 800f386: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  35033. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  35034. 800f38a: 687b ldr r3, [r7, #4]
  35035. 800f38c: 681b ldr r3, [r3, #0]
  35036. 800f38e: 689b ldr r3, [r3, #8]
  35037. 800f390: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  35038. /* Check that a Rx process is ongoing */
  35039. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  35040. 800f394: 687b ldr r3, [r7, #4]
  35041. 800f396: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35042. 800f39a: 2b22 cmp r3, #34 @ 0x22
  35043. 800f39c: f040 8184 bne.w 800f6a8 <UART_RxISR_16BIT_FIFOEN+0x344>
  35044. {
  35045. nb_rx_data = huart->NbRxDataToProcess;
  35046. 800f3a0: 687b ldr r3, [r7, #4]
  35047. 800f3a2: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  35048. 800f3a6: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  35049. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  35050. 800f3aa: e127 b.n 800f5fc <UART_RxISR_16BIT_FIFOEN+0x298>
  35051. {
  35052. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35053. 800f3ac: 687b ldr r3, [r7, #4]
  35054. 800f3ae: 681b ldr r3, [r3, #0]
  35055. 800f3b0: 6a5b ldr r3, [r3, #36] @ 0x24
  35056. 800f3b2: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  35057. tmp = (uint16_t *) huart->pRxBuffPtr ;
  35058. 800f3b6: 687b ldr r3, [r7, #4]
  35059. 800f3b8: 6d9b ldr r3, [r3, #88] @ 0x58
  35060. 800f3ba: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35061. *tmp = (uint16_t)(uhdata & uhMask);
  35062. 800f3be: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  35063. 800f3c2: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  35064. 800f3c6: 4013 ands r3, r2
  35065. 800f3c8: b29a uxth r2, r3
  35066. 800f3ca: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35067. 800f3ce: 801a strh r2, [r3, #0]
  35068. huart->pRxBuffPtr += 2U;
  35069. 800f3d0: 687b ldr r3, [r7, #4]
  35070. 800f3d2: 6d9b ldr r3, [r3, #88] @ 0x58
  35071. 800f3d4: 1c9a adds r2, r3, #2
  35072. 800f3d6: 687b ldr r3, [r7, #4]
  35073. 800f3d8: 659a str r2, [r3, #88] @ 0x58
  35074. huart->RxXferCount--;
  35075. 800f3da: 687b ldr r3, [r7, #4]
  35076. 800f3dc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35077. 800f3e0: b29b uxth r3, r3
  35078. 800f3e2: 3b01 subs r3, #1
  35079. 800f3e4: b29a uxth r2, r3
  35080. 800f3e6: 687b ldr r3, [r7, #4]
  35081. 800f3e8: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35082. isrflags = READ_REG(huart->Instance->ISR);
  35083. 800f3ec: 687b ldr r3, [r7, #4]
  35084. 800f3ee: 681b ldr r3, [r3, #0]
  35085. 800f3f0: 69db ldr r3, [r3, #28]
  35086. 800f3f2: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  35087. /* If some non blocking errors occurred */
  35088. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  35089. 800f3f6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35090. 800f3fa: f003 0307 and.w r3, r3, #7
  35091. 800f3fe: 2b00 cmp r3, #0
  35092. 800f400: d053 beq.n 800f4aa <UART_RxISR_16BIT_FIFOEN+0x146>
  35093. {
  35094. /* UART parity error interrupt occurred -------------------------------------*/
  35095. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  35096. 800f402: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35097. 800f406: f003 0301 and.w r3, r3, #1
  35098. 800f40a: 2b00 cmp r3, #0
  35099. 800f40c: d011 beq.n 800f432 <UART_RxISR_16BIT_FIFOEN+0xce>
  35100. 800f40e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35101. 800f412: f403 7380 and.w r3, r3, #256 @ 0x100
  35102. 800f416: 2b00 cmp r3, #0
  35103. 800f418: d00b beq.n 800f432 <UART_RxISR_16BIT_FIFOEN+0xce>
  35104. {
  35105. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  35106. 800f41a: 687b ldr r3, [r7, #4]
  35107. 800f41c: 681b ldr r3, [r3, #0]
  35108. 800f41e: 2201 movs r2, #1
  35109. 800f420: 621a str r2, [r3, #32]
  35110. huart->ErrorCode |= HAL_UART_ERROR_PE;
  35111. 800f422: 687b ldr r3, [r7, #4]
  35112. 800f424: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35113. 800f428: f043 0201 orr.w r2, r3, #1
  35114. 800f42c: 687b ldr r3, [r7, #4]
  35115. 800f42e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35116. }
  35117. /* UART frame error interrupt occurred --------------------------------------*/
  35118. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35119. 800f432: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35120. 800f436: f003 0302 and.w r3, r3, #2
  35121. 800f43a: 2b00 cmp r3, #0
  35122. 800f43c: d011 beq.n 800f462 <UART_RxISR_16BIT_FIFOEN+0xfe>
  35123. 800f43e: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  35124. 800f442: f003 0301 and.w r3, r3, #1
  35125. 800f446: 2b00 cmp r3, #0
  35126. 800f448: d00b beq.n 800f462 <UART_RxISR_16BIT_FIFOEN+0xfe>
  35127. {
  35128. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  35129. 800f44a: 687b ldr r3, [r7, #4]
  35130. 800f44c: 681b ldr r3, [r3, #0]
  35131. 800f44e: 2202 movs r2, #2
  35132. 800f450: 621a str r2, [r3, #32]
  35133. huart->ErrorCode |= HAL_UART_ERROR_FE;
  35134. 800f452: 687b ldr r3, [r7, #4]
  35135. 800f454: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35136. 800f458: f043 0204 orr.w r2, r3, #4
  35137. 800f45c: 687b ldr r3, [r7, #4]
  35138. 800f45e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35139. }
  35140. /* UART noise error interrupt occurred --------------------------------------*/
  35141. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35142. 800f462: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35143. 800f466: f003 0304 and.w r3, r3, #4
  35144. 800f46a: 2b00 cmp r3, #0
  35145. 800f46c: d011 beq.n 800f492 <UART_RxISR_16BIT_FIFOEN+0x12e>
  35146. 800f46e: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  35147. 800f472: f003 0301 and.w r3, r3, #1
  35148. 800f476: 2b00 cmp r3, #0
  35149. 800f478: d00b beq.n 800f492 <UART_RxISR_16BIT_FIFOEN+0x12e>
  35150. {
  35151. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  35152. 800f47a: 687b ldr r3, [r7, #4]
  35153. 800f47c: 681b ldr r3, [r3, #0]
  35154. 800f47e: 2204 movs r2, #4
  35155. 800f480: 621a str r2, [r3, #32]
  35156. huart->ErrorCode |= HAL_UART_ERROR_NE;
  35157. 800f482: 687b ldr r3, [r7, #4]
  35158. 800f484: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35159. 800f488: f043 0202 orr.w r2, r3, #2
  35160. 800f48c: 687b ldr r3, [r7, #4]
  35161. 800f48e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35162. }
  35163. /* Call UART Error Call back function if need be ----------------------------*/
  35164. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  35165. 800f492: 687b ldr r3, [r7, #4]
  35166. 800f494: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35167. 800f498: 2b00 cmp r3, #0
  35168. 800f49a: d006 beq.n 800f4aa <UART_RxISR_16BIT_FIFOEN+0x146>
  35169. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35170. /*Call registered error callback*/
  35171. huart->ErrorCallback(huart);
  35172. #else
  35173. /*Call legacy weak error callback*/
  35174. HAL_UART_ErrorCallback(huart);
  35175. 800f49c: 6878 ldr r0, [r7, #4]
  35176. 800f49e: f7fe f961 bl 800d764 <HAL_UART_ErrorCallback>
  35177. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  35178. huart->ErrorCode = HAL_UART_ERROR_NONE;
  35179. 800f4a2: 687b ldr r3, [r7, #4]
  35180. 800f4a4: 2200 movs r2, #0
  35181. 800f4a6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35182. }
  35183. }
  35184. if (huart->RxXferCount == 0U)
  35185. 800f4aa: 687b ldr r3, [r7, #4]
  35186. 800f4ac: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35187. 800f4b0: b29b uxth r3, r3
  35188. 800f4b2: 2b00 cmp r3, #0
  35189. 800f4b4: f040 80a2 bne.w 800f5fc <UART_RxISR_16BIT_FIFOEN+0x298>
  35190. {
  35191. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  35192. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  35193. 800f4b8: 687b ldr r3, [r7, #4]
  35194. 800f4ba: 681b ldr r3, [r3, #0]
  35195. 800f4bc: 677b str r3, [r7, #116] @ 0x74
  35196. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35197. 800f4be: 6f7b ldr r3, [r7, #116] @ 0x74
  35198. 800f4c0: e853 3f00 ldrex r3, [r3]
  35199. 800f4c4: 673b str r3, [r7, #112] @ 0x70
  35200. return(result);
  35201. 800f4c6: 6f3b ldr r3, [r7, #112] @ 0x70
  35202. 800f4c8: f423 7380 bic.w r3, r3, #256 @ 0x100
  35203. 800f4cc: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  35204. 800f4d0: 687b ldr r3, [r7, #4]
  35205. 800f4d2: 681b ldr r3, [r3, #0]
  35206. 800f4d4: 461a mov r2, r3
  35207. 800f4d6: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  35208. 800f4da: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  35209. 800f4de: 67fa str r2, [r7, #124] @ 0x7c
  35210. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35211. 800f4e0: 6ff9 ldr r1, [r7, #124] @ 0x7c
  35212. 800f4e2: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  35213. 800f4e6: e841 2300 strex r3, r2, [r1]
  35214. 800f4ea: 67bb str r3, [r7, #120] @ 0x78
  35215. return(result);
  35216. 800f4ec: 6fbb ldr r3, [r7, #120] @ 0x78
  35217. 800f4ee: 2b00 cmp r3, #0
  35218. 800f4f0: d1e2 bne.n 800f4b8 <UART_RxISR_16BIT_FIFOEN+0x154>
  35219. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  35220. and RX FIFO Threshold interrupt */
  35221. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  35222. 800f4f2: 687b ldr r3, [r7, #4]
  35223. 800f4f4: 681b ldr r3, [r3, #0]
  35224. 800f4f6: 3308 adds r3, #8
  35225. 800f4f8: 663b str r3, [r7, #96] @ 0x60
  35226. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35227. 800f4fa: 6e3b ldr r3, [r7, #96] @ 0x60
  35228. 800f4fc: e853 3f00 ldrex r3, [r3]
  35229. 800f500: 65fb str r3, [r7, #92] @ 0x5c
  35230. return(result);
  35231. 800f502: 6dfa ldr r2, [r7, #92] @ 0x5c
  35232. 800f504: 4b6e ldr r3, [pc, #440] @ (800f6c0 <UART_RxISR_16BIT_FIFOEN+0x35c>)
  35233. 800f506: 4013 ands r3, r2
  35234. 800f508: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  35235. 800f50c: 687b ldr r3, [r7, #4]
  35236. 800f50e: 681b ldr r3, [r3, #0]
  35237. 800f510: 3308 adds r3, #8
  35238. 800f512: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  35239. 800f516: 66fa str r2, [r7, #108] @ 0x6c
  35240. 800f518: 66bb str r3, [r7, #104] @ 0x68
  35241. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35242. 800f51a: 6eb9 ldr r1, [r7, #104] @ 0x68
  35243. 800f51c: 6efa ldr r2, [r7, #108] @ 0x6c
  35244. 800f51e: e841 2300 strex r3, r2, [r1]
  35245. 800f522: 667b str r3, [r7, #100] @ 0x64
  35246. return(result);
  35247. 800f524: 6e7b ldr r3, [r7, #100] @ 0x64
  35248. 800f526: 2b00 cmp r3, #0
  35249. 800f528: d1e3 bne.n 800f4f2 <UART_RxISR_16BIT_FIFOEN+0x18e>
  35250. /* Rx process is completed, restore huart->RxState to Ready */
  35251. huart->RxState = HAL_UART_STATE_READY;
  35252. 800f52a: 687b ldr r3, [r7, #4]
  35253. 800f52c: 2220 movs r2, #32
  35254. 800f52e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  35255. /* Clear RxISR function pointer */
  35256. huart->RxISR = NULL;
  35257. 800f532: 687b ldr r3, [r7, #4]
  35258. 800f534: 2200 movs r2, #0
  35259. 800f536: 675a str r2, [r3, #116] @ 0x74
  35260. /* Initialize type of RxEvent to Transfer Complete */
  35261. huart->RxEventType = HAL_UART_RXEVENT_TC;
  35262. 800f538: 687b ldr r3, [r7, #4]
  35263. 800f53a: 2200 movs r2, #0
  35264. 800f53c: 671a str r2, [r3, #112] @ 0x70
  35265. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  35266. 800f53e: 687b ldr r3, [r7, #4]
  35267. 800f540: 681b ldr r3, [r3, #0]
  35268. 800f542: 4a60 ldr r2, [pc, #384] @ (800f6c4 <UART_RxISR_16BIT_FIFOEN+0x360>)
  35269. 800f544: 4293 cmp r3, r2
  35270. 800f546: d021 beq.n 800f58c <UART_RxISR_16BIT_FIFOEN+0x228>
  35271. {
  35272. /* Check that USART RTOEN bit is set */
  35273. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  35274. 800f548: 687b ldr r3, [r7, #4]
  35275. 800f54a: 681b ldr r3, [r3, #0]
  35276. 800f54c: 685b ldr r3, [r3, #4]
  35277. 800f54e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  35278. 800f552: 2b00 cmp r3, #0
  35279. 800f554: d01a beq.n 800f58c <UART_RxISR_16BIT_FIFOEN+0x228>
  35280. {
  35281. /* Enable the UART Receiver Timeout Interrupt */
  35282. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  35283. 800f556: 687b ldr r3, [r7, #4]
  35284. 800f558: 681b ldr r3, [r3, #0]
  35285. 800f55a: 64fb str r3, [r7, #76] @ 0x4c
  35286. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35287. 800f55c: 6cfb ldr r3, [r7, #76] @ 0x4c
  35288. 800f55e: e853 3f00 ldrex r3, [r3]
  35289. 800f562: 64bb str r3, [r7, #72] @ 0x48
  35290. return(result);
  35291. 800f564: 6cbb ldr r3, [r7, #72] @ 0x48
  35292. 800f566: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  35293. 800f56a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  35294. 800f56e: 687b ldr r3, [r7, #4]
  35295. 800f570: 681b ldr r3, [r3, #0]
  35296. 800f572: 461a mov r2, r3
  35297. 800f574: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  35298. 800f578: 65bb str r3, [r7, #88] @ 0x58
  35299. 800f57a: 657a str r2, [r7, #84] @ 0x54
  35300. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35301. 800f57c: 6d79 ldr r1, [r7, #84] @ 0x54
  35302. 800f57e: 6dba ldr r2, [r7, #88] @ 0x58
  35303. 800f580: e841 2300 strex r3, r2, [r1]
  35304. 800f584: 653b str r3, [r7, #80] @ 0x50
  35305. return(result);
  35306. 800f586: 6d3b ldr r3, [r7, #80] @ 0x50
  35307. 800f588: 2b00 cmp r3, #0
  35308. 800f58a: d1e4 bne.n 800f556 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  35309. }
  35310. }
  35311. /* Check current reception Mode :
  35312. If Reception till IDLE event has been selected : */
  35313. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  35314. 800f58c: 687b ldr r3, [r7, #4]
  35315. 800f58e: 6edb ldr r3, [r3, #108] @ 0x6c
  35316. 800f590: 2b01 cmp r3, #1
  35317. 800f592: d130 bne.n 800f5f6 <UART_RxISR_16BIT_FIFOEN+0x292>
  35318. {
  35319. /* Set reception type to Standard */
  35320. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  35321. 800f594: 687b ldr r3, [r7, #4]
  35322. 800f596: 2200 movs r2, #0
  35323. 800f598: 66da str r2, [r3, #108] @ 0x6c
  35324. /* Disable IDLE interrupt */
  35325. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35326. 800f59a: 687b ldr r3, [r7, #4]
  35327. 800f59c: 681b ldr r3, [r3, #0]
  35328. 800f59e: 63bb str r3, [r7, #56] @ 0x38
  35329. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35330. 800f5a0: 6bbb ldr r3, [r7, #56] @ 0x38
  35331. 800f5a2: e853 3f00 ldrex r3, [r3]
  35332. 800f5a6: 637b str r3, [r7, #52] @ 0x34
  35333. return(result);
  35334. 800f5a8: 6b7b ldr r3, [r7, #52] @ 0x34
  35335. 800f5aa: f023 0310 bic.w r3, r3, #16
  35336. 800f5ae: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  35337. 800f5b2: 687b ldr r3, [r7, #4]
  35338. 800f5b4: 681b ldr r3, [r3, #0]
  35339. 800f5b6: 461a mov r2, r3
  35340. 800f5b8: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  35341. 800f5bc: 647b str r3, [r7, #68] @ 0x44
  35342. 800f5be: 643a str r2, [r7, #64] @ 0x40
  35343. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35344. 800f5c0: 6c39 ldr r1, [r7, #64] @ 0x40
  35345. 800f5c2: 6c7a ldr r2, [r7, #68] @ 0x44
  35346. 800f5c4: e841 2300 strex r3, r2, [r1]
  35347. 800f5c8: 63fb str r3, [r7, #60] @ 0x3c
  35348. return(result);
  35349. 800f5ca: 6bfb ldr r3, [r7, #60] @ 0x3c
  35350. 800f5cc: 2b00 cmp r3, #0
  35351. 800f5ce: d1e4 bne.n 800f59a <UART_RxISR_16BIT_FIFOEN+0x236>
  35352. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  35353. 800f5d0: 687b ldr r3, [r7, #4]
  35354. 800f5d2: 681b ldr r3, [r3, #0]
  35355. 800f5d4: 69db ldr r3, [r3, #28]
  35356. 800f5d6: f003 0310 and.w r3, r3, #16
  35357. 800f5da: 2b10 cmp r3, #16
  35358. 800f5dc: d103 bne.n 800f5e6 <UART_RxISR_16BIT_FIFOEN+0x282>
  35359. {
  35360. /* Clear IDLE Flag */
  35361. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  35362. 800f5de: 687b ldr r3, [r7, #4]
  35363. 800f5e0: 681b ldr r3, [r3, #0]
  35364. 800f5e2: 2210 movs r2, #16
  35365. 800f5e4: 621a str r2, [r3, #32]
  35366. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35367. /*Call registered Rx Event callback*/
  35368. huart->RxEventCallback(huart, huart->RxXferSize);
  35369. #else
  35370. /*Call legacy weak Rx Event callback*/
  35371. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  35372. 800f5e6: 687b ldr r3, [r7, #4]
  35373. 800f5e8: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  35374. 800f5ec: 4619 mov r1, r3
  35375. 800f5ee: 6878 ldr r0, [r7, #4]
  35376. 800f5f0: f7f4 fd10 bl 8004014 <HAL_UARTEx_RxEventCallback>
  35377. 800f5f4: e002 b.n 800f5fc <UART_RxISR_16BIT_FIFOEN+0x298>
  35378. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35379. /*Call registered Rx complete callback*/
  35380. huart->RxCpltCallback(huart);
  35381. #else
  35382. /*Call legacy weak Rx complete callback*/
  35383. HAL_UART_RxCpltCallback(huart);
  35384. 800f5f6: 6878 ldr r0, [r7, #4]
  35385. 800f5f8: f7f4 fd02 bl 8004000 <HAL_UART_RxCpltCallback>
  35386. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  35387. 800f5fc: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  35388. 800f600: 2b00 cmp r3, #0
  35389. 800f602: d006 beq.n 800f612 <UART_RxISR_16BIT_FIFOEN+0x2ae>
  35390. 800f604: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35391. 800f608: f003 0320 and.w r3, r3, #32
  35392. 800f60c: 2b00 cmp r3, #0
  35393. 800f60e: f47f aecd bne.w 800f3ac <UART_RxISR_16BIT_FIFOEN+0x48>
  35394. /* When remaining number of bytes to receive is less than the RX FIFO
  35395. threshold, next incoming frames are processed as if FIFO mode was
  35396. disabled (i.e. one interrupt per received frame).
  35397. */
  35398. rxdatacount = huart->RxXferCount;
  35399. 800f612: 687b ldr r3, [r7, #4]
  35400. 800f614: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35401. 800f618: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  35402. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  35403. 800f61c: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  35404. 800f620: 2b00 cmp r3, #0
  35405. 800f622: d049 beq.n 800f6b8 <UART_RxISR_16BIT_FIFOEN+0x354>
  35406. 800f624: 687b ldr r3, [r7, #4]
  35407. 800f626: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  35408. 800f62a: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  35409. 800f62e: 429a cmp r2, r3
  35410. 800f630: d242 bcs.n 800f6b8 <UART_RxISR_16BIT_FIFOEN+0x354>
  35411. {
  35412. /* Disable the UART RXFT interrupt*/
  35413. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  35414. 800f632: 687b ldr r3, [r7, #4]
  35415. 800f634: 681b ldr r3, [r3, #0]
  35416. 800f636: 3308 adds r3, #8
  35417. 800f638: 627b str r3, [r7, #36] @ 0x24
  35418. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35419. 800f63a: 6a7b ldr r3, [r7, #36] @ 0x24
  35420. 800f63c: e853 3f00 ldrex r3, [r3]
  35421. 800f640: 623b str r3, [r7, #32]
  35422. return(result);
  35423. 800f642: 6a3b ldr r3, [r7, #32]
  35424. 800f644: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  35425. 800f648: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  35426. 800f64c: 687b ldr r3, [r7, #4]
  35427. 800f64e: 681b ldr r3, [r3, #0]
  35428. 800f650: 3308 adds r3, #8
  35429. 800f652: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  35430. 800f656: 633a str r2, [r7, #48] @ 0x30
  35431. 800f658: 62fb str r3, [r7, #44] @ 0x2c
  35432. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35433. 800f65a: 6af9 ldr r1, [r7, #44] @ 0x2c
  35434. 800f65c: 6b3a ldr r2, [r7, #48] @ 0x30
  35435. 800f65e: e841 2300 strex r3, r2, [r1]
  35436. 800f662: 62bb str r3, [r7, #40] @ 0x28
  35437. return(result);
  35438. 800f664: 6abb ldr r3, [r7, #40] @ 0x28
  35439. 800f666: 2b00 cmp r3, #0
  35440. 800f668: d1e3 bne.n 800f632 <UART_RxISR_16BIT_FIFOEN+0x2ce>
  35441. /* Update the RxISR function pointer */
  35442. huart->RxISR = UART_RxISR_16BIT;
  35443. 800f66a: 687b ldr r3, [r7, #4]
  35444. 800f66c: 4a16 ldr r2, [pc, #88] @ (800f6c8 <UART_RxISR_16BIT_FIFOEN+0x364>)
  35445. 800f66e: 675a str r2, [r3, #116] @ 0x74
  35446. /* Enable the UART Data Register Not Empty interrupt */
  35447. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  35448. 800f670: 687b ldr r3, [r7, #4]
  35449. 800f672: 681b ldr r3, [r3, #0]
  35450. 800f674: 613b str r3, [r7, #16]
  35451. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35452. 800f676: 693b ldr r3, [r7, #16]
  35453. 800f678: e853 3f00 ldrex r3, [r3]
  35454. 800f67c: 60fb str r3, [r7, #12]
  35455. return(result);
  35456. 800f67e: 68fb ldr r3, [r7, #12]
  35457. 800f680: f043 0320 orr.w r3, r3, #32
  35458. 800f684: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  35459. 800f688: 687b ldr r3, [r7, #4]
  35460. 800f68a: 681b ldr r3, [r3, #0]
  35461. 800f68c: 461a mov r2, r3
  35462. 800f68e: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  35463. 800f692: 61fb str r3, [r7, #28]
  35464. 800f694: 61ba str r2, [r7, #24]
  35465. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35466. 800f696: 69b9 ldr r1, [r7, #24]
  35467. 800f698: 69fa ldr r2, [r7, #28]
  35468. 800f69a: e841 2300 strex r3, r2, [r1]
  35469. 800f69e: 617b str r3, [r7, #20]
  35470. return(result);
  35471. 800f6a0: 697b ldr r3, [r7, #20]
  35472. 800f6a2: 2b00 cmp r3, #0
  35473. 800f6a4: d1e4 bne.n 800f670 <UART_RxISR_16BIT_FIFOEN+0x30c>
  35474. else
  35475. {
  35476. /* Clear RXNE interrupt flag */
  35477. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35478. }
  35479. }
  35480. 800f6a6: e007 b.n 800f6b8 <UART_RxISR_16BIT_FIFOEN+0x354>
  35481. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35482. 800f6a8: 687b ldr r3, [r7, #4]
  35483. 800f6aa: 681b ldr r3, [r3, #0]
  35484. 800f6ac: 699a ldr r2, [r3, #24]
  35485. 800f6ae: 687b ldr r3, [r7, #4]
  35486. 800f6b0: 681b ldr r3, [r3, #0]
  35487. 800f6b2: f042 0208 orr.w r2, r2, #8
  35488. 800f6b6: 619a str r2, [r3, #24]
  35489. }
  35490. 800f6b8: bf00 nop
  35491. 800f6ba: 37b8 adds r7, #184 @ 0xb8
  35492. 800f6bc: 46bd mov sp, r7
  35493. 800f6be: bd80 pop {r7, pc}
  35494. 800f6c0: effffffe .word 0xeffffffe
  35495. 800f6c4: 58000c00 .word 0x58000c00
  35496. 800f6c8: 0800ee4d .word 0x0800ee4d
  35497. 0800f6cc <HAL_UARTEx_WakeupCallback>:
  35498. * @brief UART wakeup from Stop mode callback.
  35499. * @param huart UART handle.
  35500. * @retval None
  35501. */
  35502. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  35503. {
  35504. 800f6cc: b480 push {r7}
  35505. 800f6ce: b083 sub sp, #12
  35506. 800f6d0: af00 add r7, sp, #0
  35507. 800f6d2: 6078 str r0, [r7, #4]
  35508. UNUSED(huart);
  35509. /* NOTE : This function should not be modified, when the callback is needed,
  35510. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  35511. */
  35512. }
  35513. 800f6d4: bf00 nop
  35514. 800f6d6: 370c adds r7, #12
  35515. 800f6d8: 46bd mov sp, r7
  35516. 800f6da: f85d 7b04 ldr.w r7, [sp], #4
  35517. 800f6de: 4770 bx lr
  35518. 0800f6e0 <HAL_UARTEx_RxFifoFullCallback>:
  35519. * @brief UART RX Fifo full callback.
  35520. * @param huart UART handle.
  35521. * @retval None
  35522. */
  35523. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  35524. {
  35525. 800f6e0: b480 push {r7}
  35526. 800f6e2: b083 sub sp, #12
  35527. 800f6e4: af00 add r7, sp, #0
  35528. 800f6e6: 6078 str r0, [r7, #4]
  35529. UNUSED(huart);
  35530. /* NOTE : This function should not be modified, when the callback is needed,
  35531. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  35532. */
  35533. }
  35534. 800f6e8: bf00 nop
  35535. 800f6ea: 370c adds r7, #12
  35536. 800f6ec: 46bd mov sp, r7
  35537. 800f6ee: f85d 7b04 ldr.w r7, [sp], #4
  35538. 800f6f2: 4770 bx lr
  35539. 0800f6f4 <HAL_UARTEx_TxFifoEmptyCallback>:
  35540. * @brief UART TX Fifo empty callback.
  35541. * @param huart UART handle.
  35542. * @retval None
  35543. */
  35544. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  35545. {
  35546. 800f6f4: b480 push {r7}
  35547. 800f6f6: b083 sub sp, #12
  35548. 800f6f8: af00 add r7, sp, #0
  35549. 800f6fa: 6078 str r0, [r7, #4]
  35550. UNUSED(huart);
  35551. /* NOTE : This function should not be modified, when the callback is needed,
  35552. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  35553. */
  35554. }
  35555. 800f6fc: bf00 nop
  35556. 800f6fe: 370c adds r7, #12
  35557. 800f700: 46bd mov sp, r7
  35558. 800f702: f85d 7b04 ldr.w r7, [sp], #4
  35559. 800f706: 4770 bx lr
  35560. 0800f708 <HAL_UARTEx_DisableFifoMode>:
  35561. * @brief Disable the FIFO mode.
  35562. * @param huart UART handle.
  35563. * @retval HAL status
  35564. */
  35565. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  35566. {
  35567. 800f708: b480 push {r7}
  35568. 800f70a: b085 sub sp, #20
  35569. 800f70c: af00 add r7, sp, #0
  35570. 800f70e: 6078 str r0, [r7, #4]
  35571. /* Check parameters */
  35572. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  35573. /* Process Locked */
  35574. __HAL_LOCK(huart);
  35575. 800f710: 687b ldr r3, [r7, #4]
  35576. 800f712: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  35577. 800f716: 2b01 cmp r3, #1
  35578. 800f718: d101 bne.n 800f71e <HAL_UARTEx_DisableFifoMode+0x16>
  35579. 800f71a: 2302 movs r3, #2
  35580. 800f71c: e027 b.n 800f76e <HAL_UARTEx_DisableFifoMode+0x66>
  35581. 800f71e: 687b ldr r3, [r7, #4]
  35582. 800f720: 2201 movs r2, #1
  35583. 800f722: f883 2084 strb.w r2, [r3, #132] @ 0x84
  35584. huart->gState = HAL_UART_STATE_BUSY;
  35585. 800f726: 687b ldr r3, [r7, #4]
  35586. 800f728: 2224 movs r2, #36 @ 0x24
  35587. 800f72a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35588. /* Save actual UART configuration */
  35589. tmpcr1 = READ_REG(huart->Instance->CR1);
  35590. 800f72e: 687b ldr r3, [r7, #4]
  35591. 800f730: 681b ldr r3, [r3, #0]
  35592. 800f732: 681b ldr r3, [r3, #0]
  35593. 800f734: 60fb str r3, [r7, #12]
  35594. /* Disable UART */
  35595. __HAL_UART_DISABLE(huart);
  35596. 800f736: 687b ldr r3, [r7, #4]
  35597. 800f738: 681b ldr r3, [r3, #0]
  35598. 800f73a: 681a ldr r2, [r3, #0]
  35599. 800f73c: 687b ldr r3, [r7, #4]
  35600. 800f73e: 681b ldr r3, [r3, #0]
  35601. 800f740: f022 0201 bic.w r2, r2, #1
  35602. 800f744: 601a str r2, [r3, #0]
  35603. /* Enable FIFO mode */
  35604. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  35605. 800f746: 68fb ldr r3, [r7, #12]
  35606. 800f748: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  35607. 800f74c: 60fb str r3, [r7, #12]
  35608. huart->FifoMode = UART_FIFOMODE_DISABLE;
  35609. 800f74e: 687b ldr r3, [r7, #4]
  35610. 800f750: 2200 movs r2, #0
  35611. 800f752: 665a str r2, [r3, #100] @ 0x64
  35612. /* Restore UART configuration */
  35613. WRITE_REG(huart->Instance->CR1, tmpcr1);
  35614. 800f754: 687b ldr r3, [r7, #4]
  35615. 800f756: 681b ldr r3, [r3, #0]
  35616. 800f758: 68fa ldr r2, [r7, #12]
  35617. 800f75a: 601a str r2, [r3, #0]
  35618. huart->gState = HAL_UART_STATE_READY;
  35619. 800f75c: 687b ldr r3, [r7, #4]
  35620. 800f75e: 2220 movs r2, #32
  35621. 800f760: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35622. /* Process Unlocked */
  35623. __HAL_UNLOCK(huart);
  35624. 800f764: 687b ldr r3, [r7, #4]
  35625. 800f766: 2200 movs r2, #0
  35626. 800f768: f883 2084 strb.w r2, [r3, #132] @ 0x84
  35627. return HAL_OK;
  35628. 800f76c: 2300 movs r3, #0
  35629. }
  35630. 800f76e: 4618 mov r0, r3
  35631. 800f770: 3714 adds r7, #20
  35632. 800f772: 46bd mov sp, r7
  35633. 800f774: f85d 7b04 ldr.w r7, [sp], #4
  35634. 800f778: 4770 bx lr
  35635. 0800f77a <HAL_UARTEx_SetTxFifoThreshold>:
  35636. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  35637. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  35638. * @retval HAL status
  35639. */
  35640. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  35641. {
  35642. 800f77a: b580 push {r7, lr}
  35643. 800f77c: b084 sub sp, #16
  35644. 800f77e: af00 add r7, sp, #0
  35645. 800f780: 6078 str r0, [r7, #4]
  35646. 800f782: 6039 str r1, [r7, #0]
  35647. /* Check parameters */
  35648. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  35649. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  35650. /* Process Locked */
  35651. __HAL_LOCK(huart);
  35652. 800f784: 687b ldr r3, [r7, #4]
  35653. 800f786: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  35654. 800f78a: 2b01 cmp r3, #1
  35655. 800f78c: d101 bne.n 800f792 <HAL_UARTEx_SetTxFifoThreshold+0x18>
  35656. 800f78e: 2302 movs r3, #2
  35657. 800f790: e02d b.n 800f7ee <HAL_UARTEx_SetTxFifoThreshold+0x74>
  35658. 800f792: 687b ldr r3, [r7, #4]
  35659. 800f794: 2201 movs r2, #1
  35660. 800f796: f883 2084 strb.w r2, [r3, #132] @ 0x84
  35661. huart->gState = HAL_UART_STATE_BUSY;
  35662. 800f79a: 687b ldr r3, [r7, #4]
  35663. 800f79c: 2224 movs r2, #36 @ 0x24
  35664. 800f79e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35665. /* Save actual UART configuration */
  35666. tmpcr1 = READ_REG(huart->Instance->CR1);
  35667. 800f7a2: 687b ldr r3, [r7, #4]
  35668. 800f7a4: 681b ldr r3, [r3, #0]
  35669. 800f7a6: 681b ldr r3, [r3, #0]
  35670. 800f7a8: 60fb str r3, [r7, #12]
  35671. /* Disable UART */
  35672. __HAL_UART_DISABLE(huart);
  35673. 800f7aa: 687b ldr r3, [r7, #4]
  35674. 800f7ac: 681b ldr r3, [r3, #0]
  35675. 800f7ae: 681a ldr r2, [r3, #0]
  35676. 800f7b0: 687b ldr r3, [r7, #4]
  35677. 800f7b2: 681b ldr r3, [r3, #0]
  35678. 800f7b4: f022 0201 bic.w r2, r2, #1
  35679. 800f7b8: 601a str r2, [r3, #0]
  35680. /* Update TX threshold configuration */
  35681. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  35682. 800f7ba: 687b ldr r3, [r7, #4]
  35683. 800f7bc: 681b ldr r3, [r3, #0]
  35684. 800f7be: 689b ldr r3, [r3, #8]
  35685. 800f7c0: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  35686. 800f7c4: 687b ldr r3, [r7, #4]
  35687. 800f7c6: 681b ldr r3, [r3, #0]
  35688. 800f7c8: 683a ldr r2, [r7, #0]
  35689. 800f7ca: 430a orrs r2, r1
  35690. 800f7cc: 609a str r2, [r3, #8]
  35691. /* Determine the number of data to process during RX/TX ISR execution */
  35692. UARTEx_SetNbDataToProcess(huart);
  35693. 800f7ce: 6878 ldr r0, [r7, #4]
  35694. 800f7d0: f000 f8a0 bl 800f914 <UARTEx_SetNbDataToProcess>
  35695. /* Restore UART configuration */
  35696. WRITE_REG(huart->Instance->CR1, tmpcr1);
  35697. 800f7d4: 687b ldr r3, [r7, #4]
  35698. 800f7d6: 681b ldr r3, [r3, #0]
  35699. 800f7d8: 68fa ldr r2, [r7, #12]
  35700. 800f7da: 601a str r2, [r3, #0]
  35701. huart->gState = HAL_UART_STATE_READY;
  35702. 800f7dc: 687b ldr r3, [r7, #4]
  35703. 800f7de: 2220 movs r2, #32
  35704. 800f7e0: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35705. /* Process Unlocked */
  35706. __HAL_UNLOCK(huart);
  35707. 800f7e4: 687b ldr r3, [r7, #4]
  35708. 800f7e6: 2200 movs r2, #0
  35709. 800f7e8: f883 2084 strb.w r2, [r3, #132] @ 0x84
  35710. return HAL_OK;
  35711. 800f7ec: 2300 movs r3, #0
  35712. }
  35713. 800f7ee: 4618 mov r0, r3
  35714. 800f7f0: 3710 adds r7, #16
  35715. 800f7f2: 46bd mov sp, r7
  35716. 800f7f4: bd80 pop {r7, pc}
  35717. 0800f7f6 <HAL_UARTEx_SetRxFifoThreshold>:
  35718. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  35719. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  35720. * @retval HAL status
  35721. */
  35722. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  35723. {
  35724. 800f7f6: b580 push {r7, lr}
  35725. 800f7f8: b084 sub sp, #16
  35726. 800f7fa: af00 add r7, sp, #0
  35727. 800f7fc: 6078 str r0, [r7, #4]
  35728. 800f7fe: 6039 str r1, [r7, #0]
  35729. /* Check the parameters */
  35730. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  35731. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  35732. /* Process Locked */
  35733. __HAL_LOCK(huart);
  35734. 800f800: 687b ldr r3, [r7, #4]
  35735. 800f802: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  35736. 800f806: 2b01 cmp r3, #1
  35737. 800f808: d101 bne.n 800f80e <HAL_UARTEx_SetRxFifoThreshold+0x18>
  35738. 800f80a: 2302 movs r3, #2
  35739. 800f80c: e02d b.n 800f86a <HAL_UARTEx_SetRxFifoThreshold+0x74>
  35740. 800f80e: 687b ldr r3, [r7, #4]
  35741. 800f810: 2201 movs r2, #1
  35742. 800f812: f883 2084 strb.w r2, [r3, #132] @ 0x84
  35743. huart->gState = HAL_UART_STATE_BUSY;
  35744. 800f816: 687b ldr r3, [r7, #4]
  35745. 800f818: 2224 movs r2, #36 @ 0x24
  35746. 800f81a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35747. /* Save actual UART configuration */
  35748. tmpcr1 = READ_REG(huart->Instance->CR1);
  35749. 800f81e: 687b ldr r3, [r7, #4]
  35750. 800f820: 681b ldr r3, [r3, #0]
  35751. 800f822: 681b ldr r3, [r3, #0]
  35752. 800f824: 60fb str r3, [r7, #12]
  35753. /* Disable UART */
  35754. __HAL_UART_DISABLE(huart);
  35755. 800f826: 687b ldr r3, [r7, #4]
  35756. 800f828: 681b ldr r3, [r3, #0]
  35757. 800f82a: 681a ldr r2, [r3, #0]
  35758. 800f82c: 687b ldr r3, [r7, #4]
  35759. 800f82e: 681b ldr r3, [r3, #0]
  35760. 800f830: f022 0201 bic.w r2, r2, #1
  35761. 800f834: 601a str r2, [r3, #0]
  35762. /* Update RX threshold configuration */
  35763. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  35764. 800f836: 687b ldr r3, [r7, #4]
  35765. 800f838: 681b ldr r3, [r3, #0]
  35766. 800f83a: 689b ldr r3, [r3, #8]
  35767. 800f83c: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  35768. 800f840: 687b ldr r3, [r7, #4]
  35769. 800f842: 681b ldr r3, [r3, #0]
  35770. 800f844: 683a ldr r2, [r7, #0]
  35771. 800f846: 430a orrs r2, r1
  35772. 800f848: 609a str r2, [r3, #8]
  35773. /* Determine the number of data to process during RX/TX ISR execution */
  35774. UARTEx_SetNbDataToProcess(huart);
  35775. 800f84a: 6878 ldr r0, [r7, #4]
  35776. 800f84c: f000 f862 bl 800f914 <UARTEx_SetNbDataToProcess>
  35777. /* Restore UART configuration */
  35778. WRITE_REG(huart->Instance->CR1, tmpcr1);
  35779. 800f850: 687b ldr r3, [r7, #4]
  35780. 800f852: 681b ldr r3, [r3, #0]
  35781. 800f854: 68fa ldr r2, [r7, #12]
  35782. 800f856: 601a str r2, [r3, #0]
  35783. huart->gState = HAL_UART_STATE_READY;
  35784. 800f858: 687b ldr r3, [r7, #4]
  35785. 800f85a: 2220 movs r2, #32
  35786. 800f85c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35787. /* Process Unlocked */
  35788. __HAL_UNLOCK(huart);
  35789. 800f860: 687b ldr r3, [r7, #4]
  35790. 800f862: 2200 movs r2, #0
  35791. 800f864: f883 2084 strb.w r2, [r3, #132] @ 0x84
  35792. return HAL_OK;
  35793. 800f868: 2300 movs r3, #0
  35794. }
  35795. 800f86a: 4618 mov r0, r3
  35796. 800f86c: 3710 adds r7, #16
  35797. 800f86e: 46bd mov sp, r7
  35798. 800f870: bd80 pop {r7, pc}
  35799. 0800f872 <HAL_UARTEx_ReceiveToIdle_IT>:
  35800. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  35801. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  35802. * @retval HAL status
  35803. */
  35804. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  35805. {
  35806. 800f872: b580 push {r7, lr}
  35807. 800f874: b08c sub sp, #48 @ 0x30
  35808. 800f876: af00 add r7, sp, #0
  35809. 800f878: 60f8 str r0, [r7, #12]
  35810. 800f87a: 60b9 str r1, [r7, #8]
  35811. 800f87c: 4613 mov r3, r2
  35812. 800f87e: 80fb strh r3, [r7, #6]
  35813. HAL_StatusTypeDef status = HAL_OK;
  35814. 800f880: 2300 movs r3, #0
  35815. 800f882: f887 302f strb.w r3, [r7, #47] @ 0x2f
  35816. /* Check that a Rx process is not already ongoing */
  35817. if (huart->RxState == HAL_UART_STATE_READY)
  35818. 800f886: 68fb ldr r3, [r7, #12]
  35819. 800f888: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35820. 800f88c: 2b20 cmp r3, #32
  35821. 800f88e: d13b bne.n 800f908 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  35822. {
  35823. if ((pData == NULL) || (Size == 0U))
  35824. 800f890: 68bb ldr r3, [r7, #8]
  35825. 800f892: 2b00 cmp r3, #0
  35826. 800f894: d002 beq.n 800f89c <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  35827. 800f896: 88fb ldrh r3, [r7, #6]
  35828. 800f898: 2b00 cmp r3, #0
  35829. 800f89a: d101 bne.n 800f8a0 <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  35830. {
  35831. return HAL_ERROR;
  35832. 800f89c: 2301 movs r3, #1
  35833. 800f89e: e034 b.n 800f90a <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  35834. }
  35835. /* Set Reception type to reception till IDLE Event*/
  35836. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  35837. 800f8a0: 68fb ldr r3, [r7, #12]
  35838. 800f8a2: 2201 movs r2, #1
  35839. 800f8a4: 66da str r2, [r3, #108] @ 0x6c
  35840. huart->RxEventType = HAL_UART_RXEVENT_TC;
  35841. 800f8a6: 68fb ldr r3, [r7, #12]
  35842. 800f8a8: 2200 movs r2, #0
  35843. 800f8aa: 671a str r2, [r3, #112] @ 0x70
  35844. (void)UART_Start_Receive_IT(huart, pData, Size);
  35845. 800f8ac: 88fb ldrh r3, [r7, #6]
  35846. 800f8ae: 461a mov r2, r3
  35847. 800f8b0: 68b9 ldr r1, [r7, #8]
  35848. 800f8b2: 68f8 ldr r0, [r7, #12]
  35849. 800f8b4: f7fe fe82 bl 800e5bc <UART_Start_Receive_IT>
  35850. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  35851. 800f8b8: 68fb ldr r3, [r7, #12]
  35852. 800f8ba: 6edb ldr r3, [r3, #108] @ 0x6c
  35853. 800f8bc: 2b01 cmp r3, #1
  35854. 800f8be: d11d bne.n 800f8fc <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  35855. {
  35856. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  35857. 800f8c0: 68fb ldr r3, [r7, #12]
  35858. 800f8c2: 681b ldr r3, [r3, #0]
  35859. 800f8c4: 2210 movs r2, #16
  35860. 800f8c6: 621a str r2, [r3, #32]
  35861. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35862. 800f8c8: 68fb ldr r3, [r7, #12]
  35863. 800f8ca: 681b ldr r3, [r3, #0]
  35864. 800f8cc: 61bb str r3, [r7, #24]
  35865. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35866. 800f8ce: 69bb ldr r3, [r7, #24]
  35867. 800f8d0: e853 3f00 ldrex r3, [r3]
  35868. 800f8d4: 617b str r3, [r7, #20]
  35869. return(result);
  35870. 800f8d6: 697b ldr r3, [r7, #20]
  35871. 800f8d8: f043 0310 orr.w r3, r3, #16
  35872. 800f8dc: 62bb str r3, [r7, #40] @ 0x28
  35873. 800f8de: 68fb ldr r3, [r7, #12]
  35874. 800f8e0: 681b ldr r3, [r3, #0]
  35875. 800f8e2: 461a mov r2, r3
  35876. 800f8e4: 6abb ldr r3, [r7, #40] @ 0x28
  35877. 800f8e6: 627b str r3, [r7, #36] @ 0x24
  35878. 800f8e8: 623a str r2, [r7, #32]
  35879. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35880. 800f8ea: 6a39 ldr r1, [r7, #32]
  35881. 800f8ec: 6a7a ldr r2, [r7, #36] @ 0x24
  35882. 800f8ee: e841 2300 strex r3, r2, [r1]
  35883. 800f8f2: 61fb str r3, [r7, #28]
  35884. return(result);
  35885. 800f8f4: 69fb ldr r3, [r7, #28]
  35886. 800f8f6: 2b00 cmp r3, #0
  35887. 800f8f8: d1e6 bne.n 800f8c8 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  35888. 800f8fa: e002 b.n 800f902 <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  35889. {
  35890. /* In case of errors already pending when reception is started,
  35891. Interrupts may have already been raised and lead to reception abortion.
  35892. (Overrun error for instance).
  35893. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  35894. status = HAL_ERROR;
  35895. 800f8fc: 2301 movs r3, #1
  35896. 800f8fe: f887 302f strb.w r3, [r7, #47] @ 0x2f
  35897. }
  35898. return status;
  35899. 800f902: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  35900. 800f906: e000 b.n 800f90a <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  35901. }
  35902. else
  35903. {
  35904. return HAL_BUSY;
  35905. 800f908: 2302 movs r3, #2
  35906. }
  35907. }
  35908. 800f90a: 4618 mov r0, r3
  35909. 800f90c: 3730 adds r7, #48 @ 0x30
  35910. 800f90e: 46bd mov sp, r7
  35911. 800f910: bd80 pop {r7, pc}
  35912. ...
  35913. 0800f914 <UARTEx_SetNbDataToProcess>:
  35914. * the UART configuration registers.
  35915. * @param huart UART handle.
  35916. * @retval None
  35917. */
  35918. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  35919. {
  35920. 800f914: b480 push {r7}
  35921. 800f916: b085 sub sp, #20
  35922. 800f918: af00 add r7, sp, #0
  35923. 800f91a: 6078 str r0, [r7, #4]
  35924. uint8_t rx_fifo_threshold;
  35925. uint8_t tx_fifo_threshold;
  35926. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  35927. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  35928. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  35929. 800f91c: 687b ldr r3, [r7, #4]
  35930. 800f91e: 6e5b ldr r3, [r3, #100] @ 0x64
  35931. 800f920: 2b00 cmp r3, #0
  35932. 800f922: d108 bne.n 800f936 <UARTEx_SetNbDataToProcess+0x22>
  35933. {
  35934. huart->NbTxDataToProcess = 1U;
  35935. 800f924: 687b ldr r3, [r7, #4]
  35936. 800f926: 2201 movs r2, #1
  35937. 800f928: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  35938. huart->NbRxDataToProcess = 1U;
  35939. 800f92c: 687b ldr r3, [r7, #4]
  35940. 800f92e: 2201 movs r2, #1
  35941. 800f930: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  35942. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  35943. (uint16_t)denominator[tx_fifo_threshold];
  35944. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  35945. (uint16_t)denominator[rx_fifo_threshold];
  35946. }
  35947. }
  35948. 800f934: e031 b.n 800f99a <UARTEx_SetNbDataToProcess+0x86>
  35949. rx_fifo_depth = RX_FIFO_DEPTH;
  35950. 800f936: 2310 movs r3, #16
  35951. 800f938: 73fb strb r3, [r7, #15]
  35952. tx_fifo_depth = TX_FIFO_DEPTH;
  35953. 800f93a: 2310 movs r3, #16
  35954. 800f93c: 73bb strb r3, [r7, #14]
  35955. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  35956. 800f93e: 687b ldr r3, [r7, #4]
  35957. 800f940: 681b ldr r3, [r3, #0]
  35958. 800f942: 689b ldr r3, [r3, #8]
  35959. 800f944: 0e5b lsrs r3, r3, #25
  35960. 800f946: b2db uxtb r3, r3
  35961. 800f948: f003 0307 and.w r3, r3, #7
  35962. 800f94c: 737b strb r3, [r7, #13]
  35963. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  35964. 800f94e: 687b ldr r3, [r7, #4]
  35965. 800f950: 681b ldr r3, [r3, #0]
  35966. 800f952: 689b ldr r3, [r3, #8]
  35967. 800f954: 0f5b lsrs r3, r3, #29
  35968. 800f956: b2db uxtb r3, r3
  35969. 800f958: f003 0307 and.w r3, r3, #7
  35970. 800f95c: 733b strb r3, [r7, #12]
  35971. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  35972. 800f95e: 7bbb ldrb r3, [r7, #14]
  35973. 800f960: 7b3a ldrb r2, [r7, #12]
  35974. 800f962: 4911 ldr r1, [pc, #68] @ (800f9a8 <UARTEx_SetNbDataToProcess+0x94>)
  35975. 800f964: 5c8a ldrb r2, [r1, r2]
  35976. 800f966: fb02 f303 mul.w r3, r2, r3
  35977. (uint16_t)denominator[tx_fifo_threshold];
  35978. 800f96a: 7b3a ldrb r2, [r7, #12]
  35979. 800f96c: 490f ldr r1, [pc, #60] @ (800f9ac <UARTEx_SetNbDataToProcess+0x98>)
  35980. 800f96e: 5c8a ldrb r2, [r1, r2]
  35981. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  35982. 800f970: fb93 f3f2 sdiv r3, r3, r2
  35983. 800f974: b29a uxth r2, r3
  35984. 800f976: 687b ldr r3, [r7, #4]
  35985. 800f978: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  35986. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  35987. 800f97c: 7bfb ldrb r3, [r7, #15]
  35988. 800f97e: 7b7a ldrb r2, [r7, #13]
  35989. 800f980: 4909 ldr r1, [pc, #36] @ (800f9a8 <UARTEx_SetNbDataToProcess+0x94>)
  35990. 800f982: 5c8a ldrb r2, [r1, r2]
  35991. 800f984: fb02 f303 mul.w r3, r2, r3
  35992. (uint16_t)denominator[rx_fifo_threshold];
  35993. 800f988: 7b7a ldrb r2, [r7, #13]
  35994. 800f98a: 4908 ldr r1, [pc, #32] @ (800f9ac <UARTEx_SetNbDataToProcess+0x98>)
  35995. 800f98c: 5c8a ldrb r2, [r1, r2]
  35996. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  35997. 800f98e: fb93 f3f2 sdiv r3, r3, r2
  35998. 800f992: b29a uxth r2, r3
  35999. 800f994: 687b ldr r3, [r7, #4]
  36000. 800f996: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  36001. }
  36002. 800f99a: bf00 nop
  36003. 800f99c: 3714 adds r7, #20
  36004. 800f99e: 46bd mov sp, r7
  36005. 800f9a0: f85d 7b04 ldr.w r7, [sp], #4
  36006. 800f9a4: 4770 bx lr
  36007. 800f9a6: bf00 nop
  36008. 800f9a8: 08030aac .word 0x08030aac
  36009. 800f9ac: 08030ab4 .word 0x08030ab4
  36010. 0800f9b0 <tcpip_init_wrap>:
  36011. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  36012. /* USER CODE BEGIN 2 */
  36013. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE after tcpip_init in MX_LWIP_Init
  36014. * This is to keep the code after MX code re-generation */
  36015. static inline void tcpip_init_wrap(tcpip_init_done_fn tcpip_init_done, void *arg){
  36016. 800f9b0: b580 push {r7, lr}
  36017. 800f9b2: b082 sub sp, #8
  36018. 800f9b4: af00 add r7, sp, #0
  36019. 800f9b6: 6078 str r0, [r7, #4]
  36020. 800f9b8: 6039 str r1, [r7, #0]
  36021. tcpip_init(tcpip_init_done, arg);
  36022. 800f9ba: 6839 ldr r1, [r7, #0]
  36023. 800f9bc: 6878 ldr r0, [r7, #4]
  36024. 800f9be: f009 f869 bl 8018a94 <tcpip_init>
  36025. LOCK_TCPIP_CORE();
  36026. 800f9c2: f000 fda1 bl 8010508 <sys_lock_tcpip_core>
  36027. }
  36028. 800f9c6: bf00 nop
  36029. 800f9c8: 3708 adds r7, #8
  36030. 800f9ca: 46bd mov sp, r7
  36031. 800f9cc: bd80 pop {r7, pc}
  36032. ...
  36033. 0800f9d0 <is_link_up>:
  36034. #define tcpip_init tcpip_init_wrap
  36035. uint8_t is_link_up(void)
  36036. {
  36037. 800f9d0: b480 push {r7}
  36038. 800f9d2: af00 add r7, sp, #0
  36039. return netif_is_up(&gnetif);
  36040. 800f9d4: 4b05 ldr r3, [pc, #20] @ (800f9ec <is_link_up+0x1c>)
  36041. 800f9d6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36042. 800f9da: f003 0301 and.w r3, r3, #1
  36043. 800f9de: b2db uxtb r3, r3
  36044. }
  36045. 800f9e0: 4618 mov r0, r3
  36046. 800f9e2: 46bd mov sp, r7
  36047. 800f9e4: f85d 7b04 ldr.w r7, [sp], #4
  36048. 800f9e8: 4770 bx lr
  36049. 800f9ea: bf00 nop
  36050. 800f9ec: 24002174 .word 0x24002174
  36051. 0800f9f0 <MX_LWIP_Init>:
  36052. /**
  36053. * LwIP initialization function
  36054. */
  36055. void MX_LWIP_Init(void)
  36056. {
  36057. 800f9f0: b580 push {r7, lr}
  36058. 800f9f2: b084 sub sp, #16
  36059. 800f9f4: af04 add r7, sp, #16
  36060. /* IP addresses initialization without DHCP (IPv4) */
  36061. ipaddr_aton(STATIC_IP, &ipaddr);
  36062. ipaddr_aton(STATIC_MASK, &netmask);
  36063. ipaddr_aton(STATIC_GW, &gw);
  36064. #else
  36065. ip_addr_set_zero_ip4(&ipaddr);
  36066. 800f9f6: 4b27 ldr r3, [pc, #156] @ (800fa94 <MX_LWIP_Init+0xa4>)
  36067. 800f9f8: 2200 movs r2, #0
  36068. 800f9fa: 601a str r2, [r3, #0]
  36069. ip_addr_set_zero_ip4(&netmask);
  36070. 800f9fc: 4b26 ldr r3, [pc, #152] @ (800fa98 <MX_LWIP_Init+0xa8>)
  36071. 800f9fe: 2200 movs r2, #0
  36072. 800fa00: 601a str r2, [r3, #0]
  36073. ip_addr_set_zero_ip4(&gw);
  36074. 800fa02: 4b26 ldr r3, [pc, #152] @ (800fa9c <MX_LWIP_Init+0xac>)
  36075. 800fa04: 2200 movs r2, #0
  36076. 800fa06: 601a str r2, [r3, #0]
  36077. #endif
  36078. /* USER CODE END IP_ADDRESSES */
  36079. /* Initilialize the LwIP stack with RTOS */
  36080. tcpip_init( NULL, NULL );
  36081. 800fa08: 2100 movs r1, #0
  36082. 800fa0a: 2000 movs r0, #0
  36083. 800fa0c: f7ff ffd0 bl 800f9b0 <tcpip_init_wrap>
  36084. // IP4_ADDR(&ipaddr, IP_ADDRESS[0], IP_ADDRESS[1], IP_ADDRESS[2], IP_ADDRESS[3]);
  36085. // IP4_ADDR(&netmask, NETMASK_ADDRESS[0], NETMASK_ADDRESS[1] , NETMASK_ADDRESS[2], NETMASK_ADDRESS[3]);
  36086. // IP4_ADDR(&gw, GATEWAY_ADDRESS[0], GATEWAY_ADDRESS[1], GATEWAY_ADDRESS[2], GATEWAY_ADDRESS[3]);
  36087. /* add the network interface (IPv4/IPv6) with RTOS */
  36088. netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, &ethernetif_init, &tcpip_input);
  36089. 800fa10: 4b23 ldr r3, [pc, #140] @ (800faa0 <MX_LWIP_Init+0xb0>)
  36090. 800fa12: 9302 str r3, [sp, #8]
  36091. 800fa14: 4b23 ldr r3, [pc, #140] @ (800faa4 <MX_LWIP_Init+0xb4>)
  36092. 800fa16: 9301 str r3, [sp, #4]
  36093. 800fa18: 2300 movs r3, #0
  36094. 800fa1a: 9300 str r3, [sp, #0]
  36095. 800fa1c: 4b1f ldr r3, [pc, #124] @ (800fa9c <MX_LWIP_Init+0xac>)
  36096. 800fa1e: 4a1e ldr r2, [pc, #120] @ (800fa98 <MX_LWIP_Init+0xa8>)
  36097. 800fa20: 491c ldr r1, [pc, #112] @ (800fa94 <MX_LWIP_Init+0xa4>)
  36098. 800fa22: 4821 ldr r0, [pc, #132] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36099. 800fa24: f009 fea6 bl 8019774 <netif_add>
  36100. /* Registers the default network interface */
  36101. netif_set_default(&gnetif);
  36102. 800fa28: 481f ldr r0, [pc, #124] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36103. 800fa2a: f00a f861 bl 8019af0 <netif_set_default>
  36104. if (netif_is_link_up(&gnetif))
  36105. 800fa2e: 4b1e ldr r3, [pc, #120] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36106. 800fa30: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36107. 800fa34: 089b lsrs r3, r3, #2
  36108. 800fa36: f003 0301 and.w r3, r3, #1
  36109. 800fa3a: b2db uxtb r3, r3
  36110. 800fa3c: 2b00 cmp r3, #0
  36111. 800fa3e: d003 beq.n 800fa48 <MX_LWIP_Init+0x58>
  36112. {
  36113. /* When the netif is fully configured this function must be called */
  36114. netif_set_up(&gnetif);
  36115. 800fa40: 4819 ldr r0, [pc, #100] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36116. 800fa42: f00a f865 bl 8019b10 <netif_set_up>
  36117. 800fa46: e002 b.n 800fa4e <MX_LWIP_Init+0x5e>
  36118. }
  36119. else
  36120. {
  36121. /* When the netif link is down this function must be called */
  36122. netif_set_down(&gnetif);
  36123. 800fa48: 4817 ldr r0, [pc, #92] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36124. 800fa4a: f00a f8cf bl 8019bec <netif_set_down>
  36125. }
  36126. /* Set the link callback function, this function is called on change of link status*/
  36127. netif_set_link_callback(&gnetif, ethernet_link_status_updated);
  36128. 800fa4e: 4917 ldr r1, [pc, #92] @ (800faac <MX_LWIP_Init+0xbc>)
  36129. 800fa50: 4815 ldr r0, [pc, #84] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36130. 800fa52: f00a f96b bl 8019d2c <netif_set_link_callback>
  36131. /* Create the Ethernet link handler thread */
  36132. /* USER CODE BEGIN H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  36133. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  36134. 800fa56: 2224 movs r2, #36 @ 0x24
  36135. 800fa58: 2100 movs r1, #0
  36136. 800fa5a: 4815 ldr r0, [pc, #84] @ (800fab0 <MX_LWIP_Init+0xc0>)
  36137. 800fa5c: f01a f950 bl 8029d00 <memset>
  36138. attributes.name = "EthLink";
  36139. 800fa60: 4b13 ldr r3, [pc, #76] @ (800fab0 <MX_LWIP_Init+0xc0>)
  36140. 800fa62: 4a14 ldr r2, [pc, #80] @ (800fab4 <MX_LWIP_Init+0xc4>)
  36141. 800fa64: 601a str r2, [r3, #0]
  36142. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE * 2;
  36143. 800fa66: 4b12 ldr r3, [pc, #72] @ (800fab0 <MX_LWIP_Init+0xc0>)
  36144. 800fa68: f44f 6200 mov.w r2, #2048 @ 0x800
  36145. 800fa6c: 615a str r2, [r3, #20]
  36146. attributes.priority = osPriorityBelowNormal;
  36147. 800fa6e: 4b10 ldr r3, [pc, #64] @ (800fab0 <MX_LWIP_Init+0xc0>)
  36148. 800fa70: 2210 movs r2, #16
  36149. 800fa72: 619a str r2, [r3, #24]
  36150. osThreadNew(ethernet_link_thread, &gnetif, &attributes);
  36151. 800fa74: 4a0e ldr r2, [pc, #56] @ (800fab0 <MX_LWIP_Init+0xc0>)
  36152. 800fa76: 490c ldr r1, [pc, #48] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36153. 800fa78: 480f ldr r0, [pc, #60] @ (800fab8 <MX_LWIP_Init+0xc8>)
  36154. 800fa7a: f000 feee bl 801085a <osThreadNew>
  36155. /* USER CODE END H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  36156. /* USER CODE BEGIN 3 */
  36157. /* Start DHCP negotiation for a network interface (IPv4) */
  36158. #if USE_DHCP
  36159. netif_set_up(&gnetif);
  36160. 800fa7e: 480a ldr r0, [pc, #40] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36161. 800fa80: f00a f846 bl 8019b10 <netif_set_up>
  36162. dhcp_start(&gnetif);
  36163. 800fa84: 4808 ldr r0, [pc, #32] @ (800faa8 <MX_LWIP_Init+0xb8>)
  36164. 800fa86: f012 fb33 bl 80220f0 <dhcp_start>
  36165. #else
  36166. netif_set_addr(&gnetif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  36167. #endif
  36168. /* ETH_CODE: call UNLOCK_TCPIP_CORE after we are done */
  36169. UNLOCK_TCPIP_CORE();
  36170. 800fa8a: f000 fd4d bl 8010528 <sys_unlock_tcpip_core>
  36171. /* USER CODE END 3 */
  36172. }
  36173. 800fa8e: bf00 nop
  36174. 800fa90: 46bd mov sp, r7
  36175. 800fa92: bd80 pop {r7, pc}
  36176. 800fa94: 240021ac .word 0x240021ac
  36177. 800fa98: 240021b0 .word 0x240021b0
  36178. 800fa9c: 240021b4 .word 0x240021b4
  36179. 800faa0: 080189ad .word 0x080189ad
  36180. 800faa4: 0800ff71 .word 0x0800ff71
  36181. 800faa8: 24002174 .word 0x24002174
  36182. 800faac: 0800fabd .word 0x0800fabd
  36183. 800fab0: 240021b8 .word 0x240021b8
  36184. 800fab4: 0802ca20 .word 0x0802ca20
  36185. 800fab8: 08010241 .word 0x08010241
  36186. 0800fabc <ethernet_link_status_updated>:
  36187. * @brief Notify the User about the network interface config status
  36188. * @param netif: the network interface
  36189. * @retval None
  36190. */
  36191. static void ethernet_link_status_updated(struct netif *netif)
  36192. {
  36193. 800fabc: b480 push {r7}
  36194. 800fabe: b083 sub sp, #12
  36195. 800fac0: af00 add r7, sp, #0
  36196. 800fac2: 6078 str r0, [r7, #4]
  36197. else /* netif is down */
  36198. {
  36199. /* USER CODE BEGIN 6 */
  36200. /* USER CODE END 6 */
  36201. }
  36202. }
  36203. 800fac4: bf00 nop
  36204. 800fac6: 370c adds r7, #12
  36205. 800fac8: 46bd mov sp, r7
  36206. 800faca: f85d 7b04 ldr.w r7, [sp], #4
  36207. 800face: 4770 bx lr
  36208. 0800fad0 <HAL_ETH_RxCpltCallback>:
  36209. * @brief Ethernet Rx Transfer completed callback
  36210. * @param handlerEth: ETH handler
  36211. * @retval None
  36212. */
  36213. void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *handlerEth)
  36214. {
  36215. 800fad0: b580 push {r7, lr}
  36216. 800fad2: b082 sub sp, #8
  36217. 800fad4: af00 add r7, sp, #0
  36218. 800fad6: 6078 str r0, [r7, #4]
  36219. osSemaphoreRelease(RxPktSemaphore);
  36220. 800fad8: 4b04 ldr r3, [pc, #16] @ (800faec <HAL_ETH_RxCpltCallback+0x1c>)
  36221. 800fada: 681b ldr r3, [r3, #0]
  36222. 800fadc: 4618 mov r0, r3
  36223. 800fade: f001 f95f bl 8010da0 <osSemaphoreRelease>
  36224. }
  36225. 800fae2: bf00 nop
  36226. 800fae4: 3708 adds r7, #8
  36227. 800fae6: 46bd mov sp, r7
  36228. 800fae8: bd80 pop {r7, pc}
  36229. 800faea: bf00 nop
  36230. 800faec: 240021e4 .word 0x240021e4
  36231. 0800faf0 <HAL_ETH_TxCpltCallback>:
  36232. * @brief Ethernet Tx Transfer completed callback
  36233. * @param handlerEth: ETH handler
  36234. * @retval None
  36235. */
  36236. void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *handlerEth)
  36237. {
  36238. 800faf0: b580 push {r7, lr}
  36239. 800faf2: b082 sub sp, #8
  36240. 800faf4: af00 add r7, sp, #0
  36241. 800faf6: 6078 str r0, [r7, #4]
  36242. osSemaphoreRelease(TxPktSemaphore);
  36243. 800faf8: 4b04 ldr r3, [pc, #16] @ (800fb0c <HAL_ETH_TxCpltCallback+0x1c>)
  36244. 800fafa: 681b ldr r3, [r3, #0]
  36245. 800fafc: 4618 mov r0, r3
  36246. 800fafe: f001 f94f bl 8010da0 <osSemaphoreRelease>
  36247. }
  36248. 800fb02: bf00 nop
  36249. 800fb04: 3708 adds r7, #8
  36250. 800fb06: 46bd mov sp, r7
  36251. 800fb08: bd80 pop {r7, pc}
  36252. 800fb0a: bf00 nop
  36253. 800fb0c: 240021e8 .word 0x240021e8
  36254. 0800fb10 <HAL_ETH_ErrorCallback>:
  36255. * @brief Ethernet DMA transfer error callback
  36256. * @param handlerEth: ETH handler
  36257. * @retval None
  36258. */
  36259. void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *handlerEth)
  36260. {
  36261. 800fb10: b580 push {r7, lr}
  36262. 800fb12: b082 sub sp, #8
  36263. 800fb14: af00 add r7, sp, #0
  36264. 800fb16: 6078 str r0, [r7, #4]
  36265. if((HAL_ETH_GetDMAError(handlerEth) & ETH_DMACSR_RBU) == ETH_DMACSR_RBU)
  36266. 800fb18: 6878 ldr r0, [r7, #4]
  36267. 800fb1a: f7f9 f833 bl 8008b84 <HAL_ETH_GetDMAError>
  36268. 800fb1e: 4603 mov r3, r0
  36269. 800fb20: f003 0380 and.w r3, r3, #128 @ 0x80
  36270. 800fb24: 2b80 cmp r3, #128 @ 0x80
  36271. 800fb26: d104 bne.n 800fb32 <HAL_ETH_ErrorCallback+0x22>
  36272. {
  36273. osSemaphoreRelease(RxPktSemaphore);
  36274. 800fb28: 4b04 ldr r3, [pc, #16] @ (800fb3c <HAL_ETH_ErrorCallback+0x2c>)
  36275. 800fb2a: 681b ldr r3, [r3, #0]
  36276. 800fb2c: 4618 mov r0, r3
  36277. 800fb2e: f001 f937 bl 8010da0 <osSemaphoreRelease>
  36278. }
  36279. }
  36280. 800fb32: bf00 nop
  36281. 800fb34: 3708 adds r7, #8
  36282. 800fb36: 46bd mov sp, r7
  36283. 800fb38: bd80 pop {r7, pc}
  36284. 800fb3a: bf00 nop
  36285. 800fb3c: 240021e4 .word 0x240021e4
  36286. 0800fb40 <low_level_init>:
  36287. *
  36288. * @param netif the already initialized lwip network interface structure
  36289. * for this ethernetif
  36290. */
  36291. static void low_level_init(struct netif *netif)
  36292. {
  36293. 800fb40: b580 push {r7, lr}
  36294. 800fb42: b0aa sub sp, #168 @ 0xa8
  36295. 800fb44: af00 add r7, sp, #0
  36296. 800fb46: 6078 str r0, [r7, #4]
  36297. HAL_StatusTypeDef hal_eth_init_status = HAL_OK;
  36298. 800fb48: 2300 movs r3, #0
  36299. 800fb4a: f887 309f strb.w r3, [r7, #159] @ 0x9f
  36300. /* USER CODE BEGIN OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  36301. osThreadAttr_t attributes;
  36302. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  36303. uint32_t duplex, speed = 0;
  36304. 800fb4e: 2300 movs r3, #0
  36305. 800fb50: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36306. int32_t PHYLinkState = 0;
  36307. 800fb54: 2300 movs r3, #0
  36308. 800fb56: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  36309. ETH_MACConfigTypeDef MACConf = {0};
  36310. 800fb5a: f107 0310 add.w r3, r7, #16
  36311. 800fb5e: 2264 movs r2, #100 @ 0x64
  36312. 800fb60: 2100 movs r1, #0
  36313. 800fb62: 4618 mov r0, r3
  36314. 800fb64: f01a f8cc bl 8029d00 <memset>
  36315. /* Start ETH HAL Init */
  36316. uint8_t MACAddr[6] ;
  36317. heth.Instance = ETH;
  36318. 800fb68: 4b86 ldr r3, [pc, #536] @ (800fd84 <low_level_init+0x244>)
  36319. 800fb6a: 4a87 ldr r2, [pc, #540] @ (800fd88 <low_level_init+0x248>)
  36320. 800fb6c: 601a str r2, [r3, #0]
  36321. // MACAddr[1] = 0x80;
  36322. // MACAddr[2] = 0xE1;
  36323. // MACAddr[3] = 0x00;
  36324. // MACAddr[4] = 0x00;
  36325. // MACAddr[5] = 0x00;
  36326. MACAddr[0] = 0x7C;
  36327. 800fb6e: 237c movs r3, #124 @ 0x7c
  36328. 800fb70: 723b strb r3, [r7, #8]
  36329. MACAddr[1] = 0xF6;
  36330. 800fb72: 23f6 movs r3, #246 @ 0xf6
  36331. 800fb74: 727b strb r3, [r7, #9]
  36332. MACAddr[2] = 0x66;
  36333. 800fb76: 2366 movs r3, #102 @ 0x66
  36334. 800fb78: 72bb strb r3, [r7, #10]
  36335. MACAddr[3] = 0xE4;
  36336. 800fb7a: 23e4 movs r3, #228 @ 0xe4
  36337. 800fb7c: 72fb strb r3, [r7, #11]
  36338. MACAddr[4] = 0xB5;
  36339. 800fb7e: 23b5 movs r3, #181 @ 0xb5
  36340. 800fb80: 733b strb r3, [r7, #12]
  36341. MACAddr[5] = 0x41;
  36342. 800fb82: 2341 movs r3, #65 @ 0x41
  36343. 800fb84: 737b strb r3, [r7, #13]
  36344. heth.Init.MACAddr = &MACAddr[0];
  36345. 800fb86: 4a7f ldr r2, [pc, #508] @ (800fd84 <low_level_init+0x244>)
  36346. 800fb88: f107 0308 add.w r3, r7, #8
  36347. 800fb8c: 6053 str r3, [r2, #4]
  36348. heth.Init.MediaInterface = HAL_ETH_MII_MODE;
  36349. 800fb8e: 4b7d ldr r3, [pc, #500] @ (800fd84 <low_level_init+0x244>)
  36350. 800fb90: 2200 movs r2, #0
  36351. 800fb92: 721a strb r2, [r3, #8]
  36352. heth.Init.TxDesc = DMATxDscrTab;
  36353. 800fb94: 4b7b ldr r3, [pc, #492] @ (800fd84 <low_level_init+0x244>)
  36354. 800fb96: 4a7d ldr r2, [pc, #500] @ (800fd8c <low_level_init+0x24c>)
  36355. 800fb98: 60da str r2, [r3, #12]
  36356. heth.Init.RxDesc = DMARxDscrTab;
  36357. 800fb9a: 4b7a ldr r3, [pc, #488] @ (800fd84 <low_level_init+0x244>)
  36358. 800fb9c: 4a7c ldr r2, [pc, #496] @ (800fd90 <low_level_init+0x250>)
  36359. 800fb9e: 611a str r2, [r3, #16]
  36360. heth.Init.RxBuffLen = 1536;
  36361. 800fba0: 4b78 ldr r3, [pc, #480] @ (800fd84 <low_level_init+0x244>)
  36362. 800fba2: f44f 62c0 mov.w r2, #1536 @ 0x600
  36363. 800fba6: 615a str r2, [r3, #20]
  36364. /* USER CODE BEGIN MACADDRESS */
  36365. /* USER CODE END MACADDRESS */
  36366. hal_eth_init_status = HAL_ETH_Init(&heth);
  36367. 800fba8: 4876 ldr r0, [pc, #472] @ (800fd84 <low_level_init+0x244>)
  36368. 800fbaa: f7f8 f81f bl 8007bec <HAL_ETH_Init>
  36369. 800fbae: 4603 mov r3, r0
  36370. 800fbb0: f887 309f strb.w r3, [r7, #159] @ 0x9f
  36371. memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig));
  36372. 800fbb4: 2238 movs r2, #56 @ 0x38
  36373. 800fbb6: 2100 movs r1, #0
  36374. 800fbb8: 4876 ldr r0, [pc, #472] @ (800fd94 <low_level_init+0x254>)
  36375. 800fbba: f01a f8a1 bl 8029d00 <memset>
  36376. TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD;
  36377. 800fbbe: 4b75 ldr r3, [pc, #468] @ (800fd94 <low_level_init+0x254>)
  36378. 800fbc0: 2221 movs r2, #33 @ 0x21
  36379. 800fbc2: 601a str r2, [r3, #0]
  36380. TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC;
  36381. 800fbc4: 4b73 ldr r3, [pc, #460] @ (800fd94 <low_level_init+0x254>)
  36382. 800fbc6: f44f 3240 mov.w r2, #196608 @ 0x30000
  36383. 800fbca: 615a str r2, [r3, #20]
  36384. TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT;
  36385. 800fbcc: 4b71 ldr r3, [pc, #452] @ (800fd94 <low_level_init+0x254>)
  36386. 800fbce: 2200 movs r2, #0
  36387. 800fbd0: 611a str r2, [r3, #16]
  36388. /* End ETH HAL Init */
  36389. /* Initialize the RX POOL */
  36390. LWIP_MEMPOOL_INIT(RX_POOL);
  36391. 800fbd2: 4871 ldr r0, [pc, #452] @ (800fd98 <low_level_init+0x258>)
  36392. 800fbd4: f009 fc88 bl 80194e8 <memp_init_pool>
  36393. #if LWIP_ARP || LWIP_ETHERNET
  36394. /* set MAC hardware address length */
  36395. netif->hwaddr_len = ETH_HWADDR_LEN;
  36396. 800fbd8: 687b ldr r3, [r7, #4]
  36397. 800fbda: 2206 movs r2, #6
  36398. 800fbdc: f883 2030 strb.w r2, [r3, #48] @ 0x30
  36399. /* set MAC hardware address */
  36400. netif->hwaddr[0] = heth.Init.MACAddr[0];
  36401. 800fbe0: 4b68 ldr r3, [pc, #416] @ (800fd84 <low_level_init+0x244>)
  36402. 800fbe2: 685b ldr r3, [r3, #4]
  36403. 800fbe4: 781a ldrb r2, [r3, #0]
  36404. 800fbe6: 687b ldr r3, [r7, #4]
  36405. 800fbe8: f883 202a strb.w r2, [r3, #42] @ 0x2a
  36406. netif->hwaddr[1] = heth.Init.MACAddr[1];
  36407. 800fbec: 4b65 ldr r3, [pc, #404] @ (800fd84 <low_level_init+0x244>)
  36408. 800fbee: 685b ldr r3, [r3, #4]
  36409. 800fbf0: 785a ldrb r2, [r3, #1]
  36410. 800fbf2: 687b ldr r3, [r7, #4]
  36411. 800fbf4: f883 202b strb.w r2, [r3, #43] @ 0x2b
  36412. netif->hwaddr[2] = heth.Init.MACAddr[2];
  36413. 800fbf8: 4b62 ldr r3, [pc, #392] @ (800fd84 <low_level_init+0x244>)
  36414. 800fbfa: 685b ldr r3, [r3, #4]
  36415. 800fbfc: 789a ldrb r2, [r3, #2]
  36416. 800fbfe: 687b ldr r3, [r7, #4]
  36417. 800fc00: f883 202c strb.w r2, [r3, #44] @ 0x2c
  36418. netif->hwaddr[3] = heth.Init.MACAddr[3];
  36419. 800fc04: 4b5f ldr r3, [pc, #380] @ (800fd84 <low_level_init+0x244>)
  36420. 800fc06: 685b ldr r3, [r3, #4]
  36421. 800fc08: 78da ldrb r2, [r3, #3]
  36422. 800fc0a: 687b ldr r3, [r7, #4]
  36423. 800fc0c: f883 202d strb.w r2, [r3, #45] @ 0x2d
  36424. netif->hwaddr[4] = heth.Init.MACAddr[4];
  36425. 800fc10: 4b5c ldr r3, [pc, #368] @ (800fd84 <low_level_init+0x244>)
  36426. 800fc12: 685b ldr r3, [r3, #4]
  36427. 800fc14: 791a ldrb r2, [r3, #4]
  36428. 800fc16: 687b ldr r3, [r7, #4]
  36429. 800fc18: f883 202e strb.w r2, [r3, #46] @ 0x2e
  36430. netif->hwaddr[5] = heth.Init.MACAddr[5];
  36431. 800fc1c: 4b59 ldr r3, [pc, #356] @ (800fd84 <low_level_init+0x244>)
  36432. 800fc1e: 685b ldr r3, [r3, #4]
  36433. 800fc20: 795a ldrb r2, [r3, #5]
  36434. 800fc22: 687b ldr r3, [r7, #4]
  36435. 800fc24: f883 202f strb.w r2, [r3, #47] @ 0x2f
  36436. /* maximum transfer unit */
  36437. netif->mtu = ETH_MAX_PAYLOAD;
  36438. 800fc28: 687b ldr r3, [r7, #4]
  36439. 800fc2a: f240 52dc movw r2, #1500 @ 0x5dc
  36440. 800fc2e: 851a strh r2, [r3, #40] @ 0x28
  36441. /* Accept broadcast address and ARP traffic */
  36442. /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
  36443. #if LWIP_ARP
  36444. netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
  36445. 800fc30: 687b ldr r3, [r7, #4]
  36446. 800fc32: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36447. 800fc36: f043 030a orr.w r3, r3, #10
  36448. 800fc3a: b2da uxtb r2, r3
  36449. 800fc3c: 687b ldr r3, [r7, #4]
  36450. 800fc3e: f883 2031 strb.w r2, [r3, #49] @ 0x31
  36451. #else
  36452. netif->flags |= NETIF_FLAG_BROADCAST;
  36453. #endif /* LWIP_ARP */
  36454. /* create a binary semaphore used for informing ethernetif of frame reception */
  36455. RxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  36456. 800fc42: 2200 movs r2, #0
  36457. 800fc44: 2101 movs r1, #1
  36458. 800fc46: 2001 movs r0, #1
  36459. 800fc48: f000 ffce bl 8010be8 <osSemaphoreNew>
  36460. 800fc4c: 4603 mov r3, r0
  36461. 800fc4e: 4a53 ldr r2, [pc, #332] @ (800fd9c <low_level_init+0x25c>)
  36462. 800fc50: 6013 str r3, [r2, #0]
  36463. /* create a binary semaphore used for informing ethernetif of frame transmission */
  36464. TxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  36465. 800fc52: 2200 movs r2, #0
  36466. 800fc54: 2101 movs r1, #1
  36467. 800fc56: 2001 movs r0, #1
  36468. 800fc58: f000 ffc6 bl 8010be8 <osSemaphoreNew>
  36469. 800fc5c: 4603 mov r3, r0
  36470. 800fc5e: 4a50 ldr r2, [pc, #320] @ (800fda0 <low_level_init+0x260>)
  36471. 800fc60: 6013 str r3, [r2, #0]
  36472. /* create the task that handles the ETH_MAC */
  36473. /* USER CODE BEGIN OS_THREAD_NEW_CMSIS_RTOS_V2 */
  36474. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  36475. 800fc62: f107 0374 add.w r3, r7, #116 @ 0x74
  36476. 800fc66: 2224 movs r2, #36 @ 0x24
  36477. 800fc68: 2100 movs r1, #0
  36478. 800fc6a: 4618 mov r0, r3
  36479. 800fc6c: f01a f848 bl 8029d00 <memset>
  36480. attributes.name = "EthIf";
  36481. 800fc70: 4b4c ldr r3, [pc, #304] @ (800fda4 <low_level_init+0x264>)
  36482. 800fc72: 677b str r3, [r7, #116] @ 0x74
  36483. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE;
  36484. 800fc74: f44f 6380 mov.w r3, #1024 @ 0x400
  36485. 800fc78: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  36486. attributes.priority = osPriorityRealtime;
  36487. 800fc7c: 2330 movs r3, #48 @ 0x30
  36488. 800fc7e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  36489. osThreadNew(ethernetif_input, netif, &attributes);
  36490. 800fc82: f107 0374 add.w r3, r7, #116 @ 0x74
  36491. 800fc86: 461a mov r2, r3
  36492. 800fc88: 6879 ldr r1, [r7, #4]
  36493. 800fc8a: 4847 ldr r0, [pc, #284] @ (800fda8 <low_level_init+0x268>)
  36494. 800fc8c: f000 fde5 bl 801085a <osThreadNew>
  36495. /* USER CODE BEGIN PHY_PRE_CONFIG */
  36496. /* USER CODE END PHY_PRE_CONFIG */
  36497. /* Set PHY IO functions */
  36498. DP83848_RegisterBusIO(&DP83848, &DP83848_IOCtx);
  36499. 800fc90: 4946 ldr r1, [pc, #280] @ (800fdac <low_level_init+0x26c>)
  36500. 800fc92: 4847 ldr r0, [pc, #284] @ (800fdb0 <low_level_init+0x270>)
  36501. 800fc94: f7f5 f87f bl 8004d96 <DP83848_RegisterBusIO>
  36502. /* Initialize the DP83848 ETH PHY */
  36503. DP83848_Init(&DP83848);
  36504. 800fc98: 4845 ldr r0, [pc, #276] @ (800fdb0 <low_level_init+0x270>)
  36505. 800fc9a: f7f5 f8ae bl 8004dfa <DP83848_Init>
  36506. if (hal_eth_init_status == HAL_OK)
  36507. 800fc9e: f897 309f ldrb.w r3, [r7, #159] @ 0x9f
  36508. 800fca2: 2b00 cmp r3, #0
  36509. 800fca4: d168 bne.n 800fd78 <low_level_init+0x238>
  36510. {
  36511. PHYLinkState = DP83848_GetLinkState(&DP83848);
  36512. 800fca6: 4842 ldr r0, [pc, #264] @ (800fdb0 <low_level_init+0x270>)
  36513. 800fca8: f7f5 f8f4 bl 8004e94 <DP83848_GetLinkState>
  36514. 800fcac: f8c7 0098 str.w r0, [r7, #152] @ 0x98
  36515. /* Get link state */
  36516. if(PHYLinkState <= DP83848_STATUS_LINK_DOWN)
  36517. 800fcb0: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  36518. 800fcb4: 2b01 cmp r3, #1
  36519. 800fcb6: dc06 bgt.n 800fcc6 <low_level_init+0x186>
  36520. {
  36521. netif_set_link_down(netif);
  36522. 800fcb8: 6878 ldr r0, [r7, #4]
  36523. 800fcba: f00a f805 bl 8019cc8 <netif_set_link_down>
  36524. netif_set_down(netif);
  36525. 800fcbe: 6878 ldr r0, [r7, #4]
  36526. 800fcc0: f009 ff94 bl 8019bec <netif_set_down>
  36527. #endif /* LWIP_ARP || LWIP_ETHERNET */
  36528. /* USER CODE BEGIN LOW_LEVEL_INIT */
  36529. /* USER CODE END LOW_LEVEL_INIT */
  36530. }
  36531. 800fcc4: e05a b.n 800fd7c <low_level_init+0x23c>
  36532. switch (PHYLinkState)
  36533. 800fcc6: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  36534. 800fcca: 3b02 subs r3, #2
  36535. 800fccc: 2b03 cmp r3, #3
  36536. 800fcce: d82b bhi.n 800fd28 <low_level_init+0x1e8>
  36537. 800fcd0: a201 add r2, pc, #4 @ (adr r2, 800fcd8 <low_level_init+0x198>)
  36538. 800fcd2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36539. 800fcd6: bf00 nop
  36540. 800fcd8: 0800fce9 .word 0x0800fce9
  36541. 800fcdc: 0800fcfb .word 0x0800fcfb
  36542. 800fce0: 0800fd0b .word 0x0800fd0b
  36543. 800fce4: 0800fd1b .word 0x0800fd1b
  36544. duplex = ETH_FULLDUPLEX_MODE;
  36545. 800fce8: f44f 5300 mov.w r3, #8192 @ 0x2000
  36546. 800fcec: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  36547. speed = ETH_SPEED_100M;
  36548. 800fcf0: f44f 4380 mov.w r3, #16384 @ 0x4000
  36549. 800fcf4: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36550. break;
  36551. 800fcf8: e01f b.n 800fd3a <low_level_init+0x1fa>
  36552. duplex = ETH_HALFDUPLEX_MODE;
  36553. 800fcfa: 2300 movs r3, #0
  36554. 800fcfc: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  36555. speed = ETH_SPEED_100M;
  36556. 800fd00: f44f 4380 mov.w r3, #16384 @ 0x4000
  36557. 800fd04: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36558. break;
  36559. 800fd08: e017 b.n 800fd3a <low_level_init+0x1fa>
  36560. duplex = ETH_FULLDUPLEX_MODE;
  36561. 800fd0a: f44f 5300 mov.w r3, #8192 @ 0x2000
  36562. 800fd0e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  36563. speed = ETH_SPEED_10M;
  36564. 800fd12: 2300 movs r3, #0
  36565. 800fd14: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36566. break;
  36567. 800fd18: e00f b.n 800fd3a <low_level_init+0x1fa>
  36568. duplex = ETH_HALFDUPLEX_MODE;
  36569. 800fd1a: 2300 movs r3, #0
  36570. 800fd1c: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  36571. speed = ETH_SPEED_10M;
  36572. 800fd20: 2300 movs r3, #0
  36573. 800fd22: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36574. break;
  36575. 800fd26: e008 b.n 800fd3a <low_level_init+0x1fa>
  36576. duplex = ETH_FULLDUPLEX_MODE;
  36577. 800fd28: f44f 5300 mov.w r3, #8192 @ 0x2000
  36578. 800fd2c: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  36579. speed = ETH_SPEED_100M;
  36580. 800fd30: f44f 4380 mov.w r3, #16384 @ 0x4000
  36581. 800fd34: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36582. break;
  36583. 800fd38: bf00 nop
  36584. HAL_ETH_GetMACConfig(&heth, &MACConf);
  36585. 800fd3a: f107 0310 add.w r3, r7, #16
  36586. 800fd3e: 4619 mov r1, r3
  36587. 800fd40: 4810 ldr r0, [pc, #64] @ (800fd84 <low_level_init+0x244>)
  36588. 800fd42: f7f8 fce1 bl 8008708 <HAL_ETH_GetMACConfig>
  36589. MACConf.DuplexMode = duplex;
  36590. 800fd46: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  36591. 800fd4a: 62bb str r3, [r7, #40] @ 0x28
  36592. MACConf.Speed = speed;
  36593. 800fd4c: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  36594. 800fd50: 627b str r3, [r7, #36] @ 0x24
  36595. HAL_ETH_SetMACConfig(&heth, &MACConf);
  36596. 800fd52: f107 0310 add.w r3, r7, #16
  36597. 800fd56: 4619 mov r1, r3
  36598. 800fd58: 480a ldr r0, [pc, #40] @ (800fd84 <low_level_init+0x244>)
  36599. 800fd5a: f7f8 fea9 bl 8008ab0 <HAL_ETH_SetMACConfig>
  36600. HAL_ETH_Start_IT(&heth);
  36601. 800fd5e: 4809 ldr r0, [pc, #36] @ (800fd84 <low_level_init+0x244>)
  36602. 800fd60: f7f8 f842 bl 8007de8 <HAL_ETH_Start_IT>
  36603. netif_set_up(netif);
  36604. 800fd64: 6878 ldr r0, [r7, #4]
  36605. 800fd66: f009 fed3 bl 8019b10 <netif_set_up>
  36606. netif_set_link_up(netif);
  36607. 800fd6a: 6878 ldr r0, [r7, #4]
  36608. 800fd6c: f009 ff72 bl 8019c54 <netif_set_link_up>
  36609. ethernetif_notify_conn_changed(netif);
  36610. 800fd70: 6878 ldr r0, [r7, #4]
  36611. 800fd72: f000 fb1b bl 80103ac <ethernetif_notify_conn_changed>
  36612. }
  36613. 800fd76: e001 b.n 800fd7c <low_level_init+0x23c>
  36614. Error_Handler();
  36615. 800fd78: f7f2 fbc6 bl 8002508 <Error_Handler>
  36616. }
  36617. 800fd7c: bf00 nop
  36618. 800fd7e: 37a8 adds r7, #168 @ 0xa8
  36619. 800fd80: 46bd mov sp, r7
  36620. 800fd82: bd80 pop {r7, pc}
  36621. 800fd84: 240021ec .word 0x240021ec
  36622. 800fd88: 40028000 .word 0x40028000
  36623. 800fd8c: 24040100 .word 0x24040100
  36624. 800fd90: 24040000 .word 0x24040000
  36625. 800fd94: 2400229c .word 0x2400229c
  36626. 800fd98: 08030abc .word 0x08030abc
  36627. 800fd9c: 240021e4 .word 0x240021e4
  36628. 800fda0: 240021e8 .word 0x240021e8
  36629. 800fda4: 0802ca40 .word 0x0802ca40
  36630. 800fda8: 0800ff1d .word 0x0800ff1d
  36631. 800fdac: 24000034 .word 0x24000034
  36632. 800fdb0: 240022d4 .word 0x240022d4
  36633. 0800fdb4 <low_level_output>:
  36634. * to become available since the stack doesn't retry to send a packet
  36635. * dropped because of memory failure (except for the TCP timers).
  36636. */
  36637. static err_t low_level_output(struct netif *netif, struct pbuf *p)
  36638. {
  36639. 800fdb4: b580 push {r7, lr}
  36640. 800fdb6: b092 sub sp, #72 @ 0x48
  36641. 800fdb8: af00 add r7, sp, #0
  36642. 800fdba: 6078 str r0, [r7, #4]
  36643. 800fdbc: 6039 str r1, [r7, #0]
  36644. uint32_t i = 0U;
  36645. 800fdbe: 2300 movs r3, #0
  36646. 800fdc0: 647b str r3, [r7, #68] @ 0x44
  36647. struct pbuf *q = NULL;
  36648. 800fdc2: 2300 movs r3, #0
  36649. 800fdc4: 643b str r3, [r7, #64] @ 0x40
  36650. err_t errval = ERR_OK;
  36651. 800fdc6: 2300 movs r3, #0
  36652. 800fdc8: f887 303f strb.w r3, [r7, #63] @ 0x3f
  36653. ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0};
  36654. 800fdcc: f107 030c add.w r3, r7, #12
  36655. 800fdd0: 2230 movs r2, #48 @ 0x30
  36656. 800fdd2: 2100 movs r1, #0
  36657. 800fdd4: 4618 mov r0, r3
  36658. 800fdd6: f019 ff93 bl 8029d00 <memset>
  36659. memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef));
  36660. 800fdda: f107 030c add.w r3, r7, #12
  36661. 800fdde: 2230 movs r2, #48 @ 0x30
  36662. 800fde0: 2100 movs r1, #0
  36663. 800fde2: 4618 mov r0, r3
  36664. 800fde4: f019 ff8c bl 8029d00 <memset>
  36665. for(q = p; q != NULL; q = q->next)
  36666. 800fde8: 683b ldr r3, [r7, #0]
  36667. 800fdea: 643b str r3, [r7, #64] @ 0x40
  36668. 800fdec: e045 b.n 800fe7a <low_level_output+0xc6>
  36669. {
  36670. if(i >= ETH_TX_DESC_CNT)
  36671. 800fdee: 6c7b ldr r3, [r7, #68] @ 0x44
  36672. 800fdf0: 2b03 cmp r3, #3
  36673. 800fdf2: d902 bls.n 800fdfa <low_level_output+0x46>
  36674. return ERR_IF;
  36675. 800fdf4: f06f 030b mvn.w r3, #11
  36676. 800fdf8: e06c b.n 800fed4 <low_level_output+0x120>
  36677. Txbuffer[i].buffer = q->payload;
  36678. 800fdfa: 6c3b ldr r3, [r7, #64] @ 0x40
  36679. 800fdfc: 6859 ldr r1, [r3, #4]
  36680. 800fdfe: 6c7a ldr r2, [r7, #68] @ 0x44
  36681. 800fe00: 4613 mov r3, r2
  36682. 800fe02: 005b lsls r3, r3, #1
  36683. 800fe04: 4413 add r3, r2
  36684. 800fe06: 009b lsls r3, r3, #2
  36685. 800fe08: 3348 adds r3, #72 @ 0x48
  36686. 800fe0a: 443b add r3, r7
  36687. 800fe0c: 3b3c subs r3, #60 @ 0x3c
  36688. 800fe0e: 6019 str r1, [r3, #0]
  36689. Txbuffer[i].len = q->len;
  36690. 800fe10: 6c3b ldr r3, [r7, #64] @ 0x40
  36691. 800fe12: 895b ldrh r3, [r3, #10]
  36692. 800fe14: 4619 mov r1, r3
  36693. 800fe16: 6c7a ldr r2, [r7, #68] @ 0x44
  36694. 800fe18: 4613 mov r3, r2
  36695. 800fe1a: 005b lsls r3, r3, #1
  36696. 800fe1c: 4413 add r3, r2
  36697. 800fe1e: 009b lsls r3, r3, #2
  36698. 800fe20: 3348 adds r3, #72 @ 0x48
  36699. 800fe22: 443b add r3, r7
  36700. 800fe24: 3b38 subs r3, #56 @ 0x38
  36701. 800fe26: 6019 str r1, [r3, #0]
  36702. if(i>0)
  36703. 800fe28: 6c7b ldr r3, [r7, #68] @ 0x44
  36704. 800fe2a: 2b00 cmp r3, #0
  36705. 800fe2c: d011 beq.n 800fe52 <low_level_output+0x9e>
  36706. {
  36707. Txbuffer[i-1].next = &Txbuffer[i];
  36708. 800fe2e: 6c7b ldr r3, [r7, #68] @ 0x44
  36709. 800fe30: 1e5a subs r2, r3, #1
  36710. 800fe32: f107 000c add.w r0, r7, #12
  36711. 800fe36: 6c79 ldr r1, [r7, #68] @ 0x44
  36712. 800fe38: 460b mov r3, r1
  36713. 800fe3a: 005b lsls r3, r3, #1
  36714. 800fe3c: 440b add r3, r1
  36715. 800fe3e: 009b lsls r3, r3, #2
  36716. 800fe40: 18c1 adds r1, r0, r3
  36717. 800fe42: 4613 mov r3, r2
  36718. 800fe44: 005b lsls r3, r3, #1
  36719. 800fe46: 4413 add r3, r2
  36720. 800fe48: 009b lsls r3, r3, #2
  36721. 800fe4a: 3348 adds r3, #72 @ 0x48
  36722. 800fe4c: 443b add r3, r7
  36723. 800fe4e: 3b34 subs r3, #52 @ 0x34
  36724. 800fe50: 6019 str r1, [r3, #0]
  36725. }
  36726. if(q->next == NULL)
  36727. 800fe52: 6c3b ldr r3, [r7, #64] @ 0x40
  36728. 800fe54: 681b ldr r3, [r3, #0]
  36729. 800fe56: 2b00 cmp r3, #0
  36730. 800fe58: d109 bne.n 800fe6e <low_level_output+0xba>
  36731. {
  36732. Txbuffer[i].next = NULL;
  36733. 800fe5a: 6c7a ldr r2, [r7, #68] @ 0x44
  36734. 800fe5c: 4613 mov r3, r2
  36735. 800fe5e: 005b lsls r3, r3, #1
  36736. 800fe60: 4413 add r3, r2
  36737. 800fe62: 009b lsls r3, r3, #2
  36738. 800fe64: 3348 adds r3, #72 @ 0x48
  36739. 800fe66: 443b add r3, r7
  36740. 800fe68: 3b34 subs r3, #52 @ 0x34
  36741. 800fe6a: 2200 movs r2, #0
  36742. 800fe6c: 601a str r2, [r3, #0]
  36743. }
  36744. i++;
  36745. 800fe6e: 6c7b ldr r3, [r7, #68] @ 0x44
  36746. 800fe70: 3301 adds r3, #1
  36747. 800fe72: 647b str r3, [r7, #68] @ 0x44
  36748. for(q = p; q != NULL; q = q->next)
  36749. 800fe74: 6c3b ldr r3, [r7, #64] @ 0x40
  36750. 800fe76: 681b ldr r3, [r3, #0]
  36751. 800fe78: 643b str r3, [r7, #64] @ 0x40
  36752. 800fe7a: 6c3b ldr r3, [r7, #64] @ 0x40
  36753. 800fe7c: 2b00 cmp r3, #0
  36754. 800fe7e: d1b6 bne.n 800fdee <low_level_output+0x3a>
  36755. }
  36756. TxConfig.Length = p->tot_len;
  36757. 800fe80: 683b ldr r3, [r7, #0]
  36758. 800fe82: 891b ldrh r3, [r3, #8]
  36759. 800fe84: 461a mov r2, r3
  36760. 800fe86: 4b15 ldr r3, [pc, #84] @ (800fedc <low_level_output+0x128>)
  36761. 800fe88: 605a str r2, [r3, #4]
  36762. TxConfig.TxBuffer = Txbuffer;
  36763. 800fe8a: 4a14 ldr r2, [pc, #80] @ (800fedc <low_level_output+0x128>)
  36764. 800fe8c: f107 030c add.w r3, r7, #12
  36765. 800fe90: 6093 str r3, [r2, #8]
  36766. TxConfig.pData = p;
  36767. 800fe92: 4a12 ldr r2, [pc, #72] @ (800fedc <low_level_output+0x128>)
  36768. 800fe94: 683b ldr r3, [r7, #0]
  36769. 800fe96: 6353 str r3, [r2, #52] @ 0x34
  36770. pbuf_ref(p);
  36771. 800fe98: 6838 ldr r0, [r7, #0]
  36772. 800fe9a: f00a fbcd bl 801a638 <pbuf_ref>
  36773. #if 1
  36774. if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) {
  36775. 800fe9e: 490f ldr r1, [pc, #60] @ (800fedc <low_level_output+0x128>)
  36776. 800fea0: 480f ldr r0, [pc, #60] @ (800fee0 <low_level_output+0x12c>)
  36777. 800fea2: f7f8 f88d bl 8007fc0 <HAL_ETH_Transmit_IT>
  36778. 800fea6: 4603 mov r3, r0
  36779. 800fea8: 2b00 cmp r3, #0
  36780. 800feaa: d10e bne.n 800feca <low_level_output+0x116>
  36781. while(osSemaphoreAcquire(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK)
  36782. 800feac: bf00 nop
  36783. 800feae: 4b0d ldr r3, [pc, #52] @ (800fee4 <low_level_output+0x130>)
  36784. 800feb0: 681b ldr r3, [r3, #0]
  36785. 800feb2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  36786. 800feb6: 4618 mov r0, r3
  36787. 800feb8: f000 ff20 bl 8010cfc <osSemaphoreAcquire>
  36788. 800febc: 4603 mov r3, r0
  36789. 800febe: 2b00 cmp r3, #0
  36790. 800fec0: d1f5 bne.n 800feae <low_level_output+0xfa>
  36791. {
  36792. }
  36793. // osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(1000));
  36794. HAL_ETH_ReleaseTxPacket(&heth);
  36795. 800fec2: 4807 ldr r0, [pc, #28] @ (800fee0 <low_level_output+0x12c>)
  36796. 800fec4: f7f8 fa03 bl 80082ce <HAL_ETH_ReleaseTxPacket>
  36797. 800fec8: e002 b.n 800fed0 <low_level_output+0x11c>
  36798. } else {
  36799. pbuf_free(p);
  36800. 800feca: 6838 ldr r0, [r7, #0]
  36801. 800fecc: f00a fb0e bl 801a4ec <pbuf_free>
  36802. HAL_ETH_Transmit_IT(&heth, &TxConfig);
  36803. osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(100));
  36804. HAL_ETH_ReleaseTxPacket(&heth);
  36805. #endif
  36806. return errval;
  36807. 800fed0: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  36808. }
  36809. 800fed4: 4618 mov r0, r3
  36810. 800fed6: 3748 adds r7, #72 @ 0x48
  36811. 800fed8: 46bd mov sp, r7
  36812. 800feda: bd80 pop {r7, pc}
  36813. 800fedc: 2400229c .word 0x2400229c
  36814. 800fee0: 240021ec .word 0x240021ec
  36815. 800fee4: 240021e8 .word 0x240021e8
  36816. 0800fee8 <low_level_input>:
  36817. * @param netif the lwip network interface structure for this ethernetif
  36818. * @return a pbuf filled with the received packet (including MAC header)
  36819. * NULL on memory error
  36820. */
  36821. static struct pbuf * low_level_input(struct netif *netif)
  36822. {
  36823. 800fee8: b580 push {r7, lr}
  36824. 800feea: b084 sub sp, #16
  36825. 800feec: af00 add r7, sp, #0
  36826. 800feee: 6078 str r0, [r7, #4]
  36827. struct pbuf *p = NULL;
  36828. 800fef0: 2300 movs r3, #0
  36829. 800fef2: 60fb str r3, [r7, #12]
  36830. if(RxAllocStatus == RX_ALLOC_OK)
  36831. 800fef4: 4b07 ldr r3, [pc, #28] @ (800ff14 <low_level_input+0x2c>)
  36832. 800fef6: 781b ldrb r3, [r3, #0]
  36833. 800fef8: 2b00 cmp r3, #0
  36834. 800fefa: d105 bne.n 800ff08 <low_level_input+0x20>
  36835. {
  36836. HAL_ETH_ReadData(&heth, (void **)&p);
  36837. 800fefc: f107 030c add.w r3, r7, #12
  36838. 800ff00: 4619 mov r1, r3
  36839. 800ff02: 4805 ldr r0, [pc, #20] @ (800ff18 <low_level_input+0x30>)
  36840. 800ff04: f7f8 f8ad bl 8008062 <HAL_ETH_ReadData>
  36841. }
  36842. return p;
  36843. 800ff08: 68fb ldr r3, [r7, #12]
  36844. }
  36845. 800ff0a: 4618 mov r0, r3
  36846. 800ff0c: 3710 adds r7, #16
  36847. 800ff0e: 46bd mov sp, r7
  36848. 800ff10: bd80 pop {r7, pc}
  36849. 800ff12: bf00 nop
  36850. 800ff14: 240021e0 .word 0x240021e0
  36851. 800ff18: 240021ec .word 0x240021ec
  36852. 0800ff1c <ethernetif_input>:
  36853. * the appropriate input function is called.
  36854. *
  36855. * @param netif the lwip network interface structure for this ethernetif
  36856. */
  36857. void ethernetif_input(void* argument)
  36858. {
  36859. 800ff1c: b580 push {r7, lr}
  36860. 800ff1e: b084 sub sp, #16
  36861. 800ff20: af00 add r7, sp, #0
  36862. 800ff22: 6078 str r0, [r7, #4]
  36863. struct pbuf *p = NULL;
  36864. 800ff24: 2300 movs r3, #0
  36865. 800ff26: 60fb str r3, [r7, #12]
  36866. struct netif *netif = (struct netif *) argument;
  36867. 800ff28: 687b ldr r3, [r7, #4]
  36868. 800ff2a: 60bb str r3, [r7, #8]
  36869. for( ;; )
  36870. {
  36871. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  36872. 800ff2c: 4b0f ldr r3, [pc, #60] @ (800ff6c <ethernetif_input+0x50>)
  36873. 800ff2e: 681b ldr r3, [r3, #0]
  36874. 800ff30: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  36875. 800ff34: 4618 mov r0, r3
  36876. 800ff36: f000 fee1 bl 8010cfc <osSemaphoreAcquire>
  36877. 800ff3a: 4603 mov r3, r0
  36878. 800ff3c: 2b00 cmp r3, #0
  36879. 800ff3e: d1f5 bne.n 800ff2c <ethernetif_input+0x10>
  36880. {
  36881. do
  36882. {
  36883. p = low_level_input( netif );
  36884. 800ff40: 68b8 ldr r0, [r7, #8]
  36885. 800ff42: f7ff ffd1 bl 800fee8 <low_level_input>
  36886. 800ff46: 60f8 str r0, [r7, #12]
  36887. if (p != NULL)
  36888. 800ff48: 68fb ldr r3, [r7, #12]
  36889. 800ff4a: 2b00 cmp r3, #0
  36890. 800ff4c: d00a beq.n 800ff64 <ethernetif_input+0x48>
  36891. {
  36892. if (netif->input( p, netif) != ERR_OK )
  36893. 800ff4e: 68bb ldr r3, [r7, #8]
  36894. 800ff50: 691b ldr r3, [r3, #16]
  36895. 800ff52: 68b9 ldr r1, [r7, #8]
  36896. 800ff54: 68f8 ldr r0, [r7, #12]
  36897. 800ff56: 4798 blx r3
  36898. 800ff58: 4603 mov r3, r0
  36899. 800ff5a: 2b00 cmp r3, #0
  36900. 800ff5c: d002 beq.n 800ff64 <ethernetif_input+0x48>
  36901. {
  36902. pbuf_free(p);
  36903. 800ff5e: 68f8 ldr r0, [r7, #12]
  36904. 800ff60: f00a fac4 bl 801a4ec <pbuf_free>
  36905. }
  36906. }
  36907. } while(p!=NULL);
  36908. 800ff64: 68fb ldr r3, [r7, #12]
  36909. 800ff66: 2b00 cmp r3, #0
  36910. 800ff68: d1ea bne.n 800ff40 <ethernetif_input+0x24>
  36911. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  36912. 800ff6a: e7df b.n 800ff2c <ethernetif_input+0x10>
  36913. 800ff6c: 240021e4 .word 0x240021e4
  36914. 0800ff70 <ethernetif_init>:
  36915. * @return ERR_OK if the loopif is initialized
  36916. * ERR_MEM if private data couldn't be allocated
  36917. * any other err_t on error
  36918. */
  36919. err_t ethernetif_init(struct netif *netif)
  36920. {
  36921. 800ff70: b580 push {r7, lr}
  36922. 800ff72: b082 sub sp, #8
  36923. 800ff74: af00 add r7, sp, #0
  36924. 800ff76: 6078 str r0, [r7, #4]
  36925. LWIP_ASSERT("netif != NULL", (netif != NULL));
  36926. 800ff78: 687b ldr r3, [r7, #4]
  36927. 800ff7a: 2b00 cmp r3, #0
  36928. 800ff7c: d106 bne.n 800ff8c <ethernetif_init+0x1c>
  36929. 800ff7e: 4b0e ldr r3, [pc, #56] @ (800ffb8 <ethernetif_init+0x48>)
  36930. 800ff80: f240 2235 movw r2, #565 @ 0x235
  36931. 800ff84: 490d ldr r1, [pc, #52] @ (800ffbc <ethernetif_init+0x4c>)
  36932. 800ff86: 480e ldr r0, [pc, #56] @ (800ffc0 <ethernetif_init+0x50>)
  36933. 800ff88: f019 fd28 bl 80299dc <iprintf>
  36934. * The last argument should be replaced with your link speed, in units
  36935. * of bits per second.
  36936. */
  36937. // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
  36938. netif->name[0] = IFNAME0;
  36939. 800ff8c: 687b ldr r3, [r7, #4]
  36940. 800ff8e: 2273 movs r2, #115 @ 0x73
  36941. 800ff90: f883 2032 strb.w r2, [r3, #50] @ 0x32
  36942. netif->name[1] = IFNAME1;
  36943. 800ff94: 687b ldr r3, [r7, #4]
  36944. 800ff96: 2274 movs r2, #116 @ 0x74
  36945. 800ff98: f883 2033 strb.w r2, [r3, #51] @ 0x33
  36946. * is available...) */
  36947. #if LWIP_IPV4
  36948. #if LWIP_ARP || LWIP_ETHERNET
  36949. #if LWIP_ARP
  36950. netif->output = etharp_output;
  36951. 800ff9c: 687b ldr r3, [r7, #4]
  36952. 800ff9e: 4a09 ldr r2, [pc, #36] @ (800ffc4 <ethernetif_init+0x54>)
  36953. 800ffa0: 615a str r2, [r3, #20]
  36954. #if LWIP_IPV6
  36955. netif->output_ip6 = ethip6_output;
  36956. #endif /* LWIP_IPV6 */
  36957. netif->linkoutput = low_level_output;
  36958. 800ffa2: 687b ldr r3, [r7, #4]
  36959. 800ffa4: 4a08 ldr r2, [pc, #32] @ (800ffc8 <ethernetif_init+0x58>)
  36960. 800ffa6: 619a str r2, [r3, #24]
  36961. /* initialize the hardware */
  36962. low_level_init(netif);
  36963. 800ffa8: 6878 ldr r0, [r7, #4]
  36964. 800ffaa: f7ff fdc9 bl 800fb40 <low_level_init>
  36965. return ERR_OK;
  36966. 800ffae: 2300 movs r3, #0
  36967. }
  36968. 800ffb0: 4618 mov r0, r3
  36969. 800ffb2: 3708 adds r7, #8
  36970. 800ffb4: 46bd mov sp, r7
  36971. 800ffb6: bd80 pop {r7, pc}
  36972. 800ffb8: 0802ca48 .word 0x0802ca48
  36973. 800ffbc: 0802ca64 .word 0x0802ca64
  36974. 800ffc0: 0802ca74 .word 0x0802ca74
  36975. 800ffc4: 0802404d .word 0x0802404d
  36976. 800ffc8: 0800fdb5 .word 0x0800fdb5
  36977. 0800ffcc <pbuf_free_custom>:
  36978. * @brief Custom Rx pbuf free callback
  36979. * @param pbuf: pbuf to be freed
  36980. * @retval None
  36981. */
  36982. void pbuf_free_custom(struct pbuf *p)
  36983. {
  36984. 800ffcc: b580 push {r7, lr}
  36985. 800ffce: b084 sub sp, #16
  36986. 800ffd0: af00 add r7, sp, #0
  36987. 800ffd2: 6078 str r0, [r7, #4]
  36988. struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p;
  36989. 800ffd4: 687b ldr r3, [r7, #4]
  36990. 800ffd6: 60fb str r3, [r7, #12]
  36991. LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf);
  36992. 800ffd8: 68f9 ldr r1, [r7, #12]
  36993. 800ffda: 4809 ldr r0, [pc, #36] @ (8010000 <pbuf_free_custom+0x34>)
  36994. 800ffdc: f009 fb74 bl 80196c8 <memp_free_pool>
  36995. /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to
  36996. * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */
  36997. if (RxAllocStatus == RX_ALLOC_ERROR)
  36998. 800ffe0: 4b08 ldr r3, [pc, #32] @ (8010004 <pbuf_free_custom+0x38>)
  36999. 800ffe2: 781b ldrb r3, [r3, #0]
  37000. 800ffe4: 2b01 cmp r3, #1
  37001. 800ffe6: d107 bne.n 800fff8 <pbuf_free_custom+0x2c>
  37002. {
  37003. RxAllocStatus = RX_ALLOC_OK;
  37004. 800ffe8: 4b06 ldr r3, [pc, #24] @ (8010004 <pbuf_free_custom+0x38>)
  37005. 800ffea: 2200 movs r2, #0
  37006. 800ffec: 701a strb r2, [r3, #0]
  37007. osSemaphoreRelease(RxPktSemaphore);
  37008. 800ffee: 4b06 ldr r3, [pc, #24] @ (8010008 <pbuf_free_custom+0x3c>)
  37009. 800fff0: 681b ldr r3, [r3, #0]
  37010. 800fff2: 4618 mov r0, r3
  37011. 800fff4: f000 fed4 bl 8010da0 <osSemaphoreRelease>
  37012. }
  37013. }
  37014. 800fff8: bf00 nop
  37015. 800fffa: 3710 adds r7, #16
  37016. 800fffc: 46bd mov sp, r7
  37017. 800fffe: bd80 pop {r7, pc}
  37018. 8010000: 08030abc .word 0x08030abc
  37019. 8010004: 240021e0 .word 0x240021e0
  37020. 8010008: 240021e4 .word 0x240021e4
  37021. 0801000c <sys_now>:
  37022. * when LWIP_TIMERS == 1 and NO_SYS == 1
  37023. * @param None
  37024. * @retval Current Time value
  37025. */
  37026. u32_t sys_now(void)
  37027. {
  37028. 801000c: b580 push {r7, lr}
  37029. 801000e: af00 add r7, sp, #0
  37030. return HAL_GetTick();
  37031. 8010010: f7f5 f818 bl 8005044 <HAL_GetTick>
  37032. 8010014: 4603 mov r3, r0
  37033. }
  37034. 8010016: 4618 mov r0, r3
  37035. 8010018: bd80 pop {r7, pc}
  37036. ...
  37037. 0801001c <HAL_ETH_MspInit>:
  37038. * @param ethHandle: ETH handle
  37039. * @retval None
  37040. */
  37041. void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle)
  37042. {
  37043. 801001c: b580 push {r7, lr}
  37044. 801001e: b08e sub sp, #56 @ 0x38
  37045. 8010020: af00 add r7, sp, #0
  37046. 8010022: 6078 str r0, [r7, #4]
  37047. GPIO_InitTypeDef GPIO_InitStruct = {0};
  37048. 8010024: f107 0324 add.w r3, r7, #36 @ 0x24
  37049. 8010028: 2200 movs r2, #0
  37050. 801002a: 601a str r2, [r3, #0]
  37051. 801002c: 605a str r2, [r3, #4]
  37052. 801002e: 609a str r2, [r3, #8]
  37053. 8010030: 60da str r2, [r3, #12]
  37054. 8010032: 611a str r2, [r3, #16]
  37055. if(ethHandle->Instance==ETH)
  37056. 8010034: 687b ldr r3, [r7, #4]
  37057. 8010036: 681b ldr r3, [r3, #0]
  37058. 8010038: 4a55 ldr r2, [pc, #340] @ (8010190 <HAL_ETH_MspInit+0x174>)
  37059. 801003a: 4293 cmp r3, r2
  37060. 801003c: f040 80a4 bne.w 8010188 <HAL_ETH_MspInit+0x16c>
  37061. {
  37062. /* USER CODE BEGIN ETH_MspInit 0 */
  37063. /* USER CODE END ETH_MspInit 0 */
  37064. /* Enable Peripheral clock */
  37065. __HAL_RCC_ETH1MAC_CLK_ENABLE();
  37066. 8010040: 4b54 ldr r3, [pc, #336] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37067. 8010042: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37068. 8010046: 4a53 ldr r2, [pc, #332] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37069. 8010048: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  37070. 801004c: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  37071. 8010050: 4b50 ldr r3, [pc, #320] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37072. 8010052: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37073. 8010056: f403 4300 and.w r3, r3, #32768 @ 0x8000
  37074. 801005a: 623b str r3, [r7, #32]
  37075. 801005c: 6a3b ldr r3, [r7, #32]
  37076. __HAL_RCC_ETH1TX_CLK_ENABLE();
  37077. 801005e: 4b4d ldr r3, [pc, #308] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37078. 8010060: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37079. 8010064: 4a4b ldr r2, [pc, #300] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37080. 8010066: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  37081. 801006a: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  37082. 801006e: 4b49 ldr r3, [pc, #292] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37083. 8010070: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37084. 8010074: f403 3380 and.w r3, r3, #65536 @ 0x10000
  37085. 8010078: 61fb str r3, [r7, #28]
  37086. 801007a: 69fb ldr r3, [r7, #28]
  37087. __HAL_RCC_ETH1RX_CLK_ENABLE();
  37088. 801007c: 4b45 ldr r3, [pc, #276] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37089. 801007e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37090. 8010082: 4a44 ldr r2, [pc, #272] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37091. 8010084: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  37092. 8010088: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  37093. 801008c: 4b41 ldr r3, [pc, #260] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37094. 801008e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37095. 8010092: f403 3300 and.w r3, r3, #131072 @ 0x20000
  37096. 8010096: 61bb str r3, [r7, #24]
  37097. 8010098: 69bb ldr r3, [r7, #24]
  37098. __HAL_RCC_GPIOC_CLK_ENABLE();
  37099. 801009a: 4b3e ldr r3, [pc, #248] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37100. 801009c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37101. 80100a0: 4a3c ldr r2, [pc, #240] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37102. 80100a2: f043 0304 orr.w r3, r3, #4
  37103. 80100a6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  37104. 80100aa: 4b3a ldr r3, [pc, #232] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37105. 80100ac: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37106. 80100b0: f003 0304 and.w r3, r3, #4
  37107. 80100b4: 617b str r3, [r7, #20]
  37108. 80100b6: 697b ldr r3, [r7, #20]
  37109. __HAL_RCC_GPIOA_CLK_ENABLE();
  37110. 80100b8: 4b36 ldr r3, [pc, #216] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37111. 80100ba: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37112. 80100be: 4a35 ldr r2, [pc, #212] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37113. 80100c0: f043 0301 orr.w r3, r3, #1
  37114. 80100c4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  37115. 80100c8: 4b32 ldr r3, [pc, #200] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37116. 80100ca: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37117. 80100ce: f003 0301 and.w r3, r3, #1
  37118. 80100d2: 613b str r3, [r7, #16]
  37119. 80100d4: 693b ldr r3, [r7, #16]
  37120. __HAL_RCC_GPIOB_CLK_ENABLE();
  37121. 80100d6: 4b2f ldr r3, [pc, #188] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37122. 80100d8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37123. 80100dc: 4a2d ldr r2, [pc, #180] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37124. 80100de: f043 0302 orr.w r3, r3, #2
  37125. 80100e2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  37126. 80100e6: 4b2b ldr r3, [pc, #172] @ (8010194 <HAL_ETH_MspInit+0x178>)
  37127. 80100e8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37128. 80100ec: f003 0302 and.w r3, r3, #2
  37129. 80100f0: 60fb str r3, [r7, #12]
  37130. 80100f2: 68fb ldr r3, [r7, #12]
  37131. PB11 ------> ETH_TX_EN
  37132. PB12 ------> ETH_TXD0
  37133. PB13 ------> ETH_TXD1
  37134. PB8 ------> ETH_TXD3
  37135. */
  37136. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
  37137. 80100f4: 233e movs r3, #62 @ 0x3e
  37138. 80100f6: 627b str r3, [r7, #36] @ 0x24
  37139. |GPIO_PIN_5;
  37140. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37141. 80100f8: 2302 movs r3, #2
  37142. 80100fa: 62bb str r3, [r7, #40] @ 0x28
  37143. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37144. 80100fc: 2300 movs r3, #0
  37145. 80100fe: 62fb str r3, [r7, #44] @ 0x2c
  37146. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37147. 8010100: 2303 movs r3, #3
  37148. 8010102: 633b str r3, [r7, #48] @ 0x30
  37149. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37150. 8010104: 230b movs r3, #11
  37151. 8010106: 637b str r3, [r7, #52] @ 0x34
  37152. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  37153. 8010108: f107 0324 add.w r3, r7, #36 @ 0x24
  37154. 801010c: 4619 mov r1, r3
  37155. 801010e: 4822 ldr r0, [pc, #136] @ (8010198 <HAL_ETH_MspInit+0x17c>)
  37156. 8010110: f7f9 fac8 bl 80096a4 <HAL_GPIO_Init>
  37157. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  37158. 8010114: 238f movs r3, #143 @ 0x8f
  37159. 8010116: 627b str r3, [r7, #36] @ 0x24
  37160. |GPIO_PIN_7;
  37161. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37162. 8010118: 2302 movs r3, #2
  37163. 801011a: 62bb str r3, [r7, #40] @ 0x28
  37164. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37165. 801011c: 2300 movs r3, #0
  37166. 801011e: 62fb str r3, [r7, #44] @ 0x2c
  37167. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37168. 8010120: 2303 movs r3, #3
  37169. 8010122: 633b str r3, [r7, #48] @ 0x30
  37170. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37171. 8010124: 230b movs r3, #11
  37172. 8010126: 637b str r3, [r7, #52] @ 0x34
  37173. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  37174. 8010128: f107 0324 add.w r3, r7, #36 @ 0x24
  37175. 801012c: 4619 mov r1, r3
  37176. 801012e: 481b ldr r0, [pc, #108] @ (801019c <HAL_ETH_MspInit+0x180>)
  37177. 8010130: f7f9 fab8 bl 80096a4 <HAL_GPIO_Init>
  37178. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_11|GPIO_PIN_12
  37179. 8010134: f643 1303 movw r3, #14595 @ 0x3903
  37180. 8010138: 627b str r3, [r7, #36] @ 0x24
  37181. |GPIO_PIN_13|GPIO_PIN_8;
  37182. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37183. 801013a: 2302 movs r3, #2
  37184. 801013c: 62bb str r3, [r7, #40] @ 0x28
  37185. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37186. 801013e: 2300 movs r3, #0
  37187. 8010140: 62fb str r3, [r7, #44] @ 0x2c
  37188. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37189. 8010142: 2303 movs r3, #3
  37190. 8010144: 633b str r3, [r7, #48] @ 0x30
  37191. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37192. 8010146: 230b movs r3, #11
  37193. 8010148: 637b str r3, [r7, #52] @ 0x34
  37194. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  37195. 801014a: f107 0324 add.w r3, r7, #36 @ 0x24
  37196. 801014e: 4619 mov r1, r3
  37197. 8010150: 4813 ldr r0, [pc, #76] @ (80101a0 <HAL_ETH_MspInit+0x184>)
  37198. 8010152: f7f9 faa7 bl 80096a4 <HAL_GPIO_Init>
  37199. GPIO_InitStruct.Pin = GPIO_PIN_10;
  37200. 8010156: f44f 6380 mov.w r3, #1024 @ 0x400
  37201. 801015a: 627b str r3, [r7, #36] @ 0x24
  37202. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37203. 801015c: 2302 movs r3, #2
  37204. 801015e: 62bb str r3, [r7, #40] @ 0x28
  37205. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37206. 8010160: 2300 movs r3, #0
  37207. 8010162: 62fb str r3, [r7, #44] @ 0x2c
  37208. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37209. 8010164: 2303 movs r3, #3
  37210. 8010166: 633b str r3, [r7, #48] @ 0x30
  37211. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37212. 8010168: 230b movs r3, #11
  37213. 801016a: 637b str r3, [r7, #52] @ 0x34
  37214. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  37215. 801016c: f107 0324 add.w r3, r7, #36 @ 0x24
  37216. 8010170: 4619 mov r1, r3
  37217. 8010172: 480b ldr r0, [pc, #44] @ (80101a0 <HAL_ETH_MspInit+0x184>)
  37218. 8010174: f7f9 fa96 bl 80096a4 <HAL_GPIO_Init>
  37219. /* Peripheral interrupt init */
  37220. HAL_NVIC_SetPriority(ETH_IRQn, 5, 0);
  37221. 8010178: 2200 movs r2, #0
  37222. 801017a: 2105 movs r1, #5
  37223. 801017c: 203d movs r0, #61 @ 0x3d
  37224. 801017e: f7f5 f869 bl 8005254 <HAL_NVIC_SetPriority>
  37225. HAL_NVIC_EnableIRQ(ETH_IRQn);
  37226. 8010182: 203d movs r0, #61 @ 0x3d
  37227. 8010184: f7f5 f880 bl 8005288 <HAL_NVIC_EnableIRQ>
  37228. /* USER CODE BEGIN ETH_MspInit 1 */
  37229. /* USER CODE END ETH_MspInit 1 */
  37230. }
  37231. }
  37232. 8010188: bf00 nop
  37233. 801018a: 3738 adds r7, #56 @ 0x38
  37234. 801018c: 46bd mov sp, r7
  37235. 801018e: bd80 pop {r7, pc}
  37236. 8010190: 40028000 .word 0x40028000
  37237. 8010194: 58024400 .word 0x58024400
  37238. 8010198: 58020800 .word 0x58020800
  37239. 801019c: 58020000 .word 0x58020000
  37240. 80101a0: 58020400 .word 0x58020400
  37241. 080101a4 <ETH_PHY_IO_Init>:
  37242. * @brief Initializes the MDIO interface GPIO and clocks.
  37243. * @param None
  37244. * @retval 0 if OK, -1 if ERROR
  37245. */
  37246. int32_t ETH_PHY_IO_Init(void)
  37247. {
  37248. 80101a4: b580 push {r7, lr}
  37249. 80101a6: af00 add r7, sp, #0
  37250. /* We assume that MDIO GPIO configuration is already done
  37251. in the ETH_MspInit() else it should be done here
  37252. */
  37253. /* Configure the MDIO Clock */
  37254. HAL_ETH_SetMDIOClockRange(&heth);
  37255. 80101a8: 4802 ldr r0, [pc, #8] @ (80101b4 <ETH_PHY_IO_Init+0x10>)
  37256. 80101aa: f7f8 fc9b bl 8008ae4 <HAL_ETH_SetMDIOClockRange>
  37257. return 0;
  37258. 80101ae: 2300 movs r3, #0
  37259. }
  37260. 80101b0: 4618 mov r0, r3
  37261. 80101b2: bd80 pop {r7, pc}
  37262. 80101b4: 240021ec .word 0x240021ec
  37263. 080101b8 <ETH_PHY_IO_DeInit>:
  37264. * @brief De-Initializes the MDIO interface .
  37265. * @param None
  37266. * @retval 0 if OK, -1 if ERROR
  37267. */
  37268. int32_t ETH_PHY_IO_DeInit (void)
  37269. {
  37270. 80101b8: b480 push {r7}
  37271. 80101ba: af00 add r7, sp, #0
  37272. return 0;
  37273. 80101bc: 2300 movs r3, #0
  37274. }
  37275. 80101be: 4618 mov r0, r3
  37276. 80101c0: 46bd mov sp, r7
  37277. 80101c2: f85d 7b04 ldr.w r7, [sp], #4
  37278. 80101c6: 4770 bx lr
  37279. 080101c8 <ETH_PHY_IO_ReadReg>:
  37280. * @param RegAddr: PHY register address
  37281. * @param pRegVal: pointer to hold the register value
  37282. * @retval 0 if OK -1 if Error
  37283. */
  37284. int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal)
  37285. {
  37286. 80101c8: b580 push {r7, lr}
  37287. 80101ca: b084 sub sp, #16
  37288. 80101cc: af00 add r7, sp, #0
  37289. 80101ce: 60f8 str r0, [r7, #12]
  37290. 80101d0: 60b9 str r1, [r7, #8]
  37291. 80101d2: 607a str r2, [r7, #4]
  37292. if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK)
  37293. 80101d4: 687b ldr r3, [r7, #4]
  37294. 80101d6: 68ba ldr r2, [r7, #8]
  37295. 80101d8: 68f9 ldr r1, [r7, #12]
  37296. 80101da: 4807 ldr r0, [pc, #28] @ (80101f8 <ETH_PHY_IO_ReadReg+0x30>)
  37297. 80101dc: f7f8 f9ec bl 80085b8 <HAL_ETH_ReadPHYRegister>
  37298. 80101e0: 4603 mov r3, r0
  37299. 80101e2: 2b00 cmp r3, #0
  37300. 80101e4: d002 beq.n 80101ec <ETH_PHY_IO_ReadReg+0x24>
  37301. {
  37302. return -1;
  37303. 80101e6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  37304. 80101ea: e000 b.n 80101ee <ETH_PHY_IO_ReadReg+0x26>
  37305. }
  37306. return 0;
  37307. 80101ec: 2300 movs r3, #0
  37308. }
  37309. 80101ee: 4618 mov r0, r3
  37310. 80101f0: 3710 adds r7, #16
  37311. 80101f2: 46bd mov sp, r7
  37312. 80101f4: bd80 pop {r7, pc}
  37313. 80101f6: bf00 nop
  37314. 80101f8: 240021ec .word 0x240021ec
  37315. 080101fc <ETH_PHY_IO_WriteReg>:
  37316. * @param RegAddr: PHY register address
  37317. * @param RegVal: Value to be written
  37318. * @retval 0 if OK -1 if Error
  37319. */
  37320. int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal)
  37321. {
  37322. 80101fc: b580 push {r7, lr}
  37323. 80101fe: b084 sub sp, #16
  37324. 8010200: af00 add r7, sp, #0
  37325. 8010202: 60f8 str r0, [r7, #12]
  37326. 8010204: 60b9 str r1, [r7, #8]
  37327. 8010206: 607a str r2, [r7, #4]
  37328. if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK)
  37329. 8010208: 687b ldr r3, [r7, #4]
  37330. 801020a: 68ba ldr r2, [r7, #8]
  37331. 801020c: 68f9 ldr r1, [r7, #12]
  37332. 801020e: 4807 ldr r0, [pc, #28] @ (801022c <ETH_PHY_IO_WriteReg+0x30>)
  37333. 8010210: f7f8 fa26 bl 8008660 <HAL_ETH_WritePHYRegister>
  37334. 8010214: 4603 mov r3, r0
  37335. 8010216: 2b00 cmp r3, #0
  37336. 8010218: d002 beq.n 8010220 <ETH_PHY_IO_WriteReg+0x24>
  37337. {
  37338. return -1;
  37339. 801021a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  37340. 801021e: e000 b.n 8010222 <ETH_PHY_IO_WriteReg+0x26>
  37341. }
  37342. return 0;
  37343. 8010220: 2300 movs r3, #0
  37344. }
  37345. 8010222: 4618 mov r0, r3
  37346. 8010224: 3710 adds r7, #16
  37347. 8010226: 46bd mov sp, r7
  37348. 8010228: bd80 pop {r7, pc}
  37349. 801022a: bf00 nop
  37350. 801022c: 240021ec .word 0x240021ec
  37351. 08010230 <ETH_PHY_IO_GetTick>:
  37352. /**
  37353. * @brief Get the time in millisecons used for internal PHY driver process.
  37354. * @retval Time value
  37355. */
  37356. int32_t ETH_PHY_IO_GetTick(void)
  37357. {
  37358. 8010230: b580 push {r7, lr}
  37359. 8010232: af00 add r7, sp, #0
  37360. return HAL_GetTick();
  37361. 8010234: f7f4 ff06 bl 8005044 <HAL_GetTick>
  37362. 8010238: 4603 mov r3, r0
  37363. }
  37364. 801023a: 4618 mov r0, r3
  37365. 801023c: bd80 pop {r7, pc}
  37366. ...
  37367. 08010240 <ethernet_link_thread>:
  37368. /**
  37369. * @brief Check the ETH link state then update ETH driver and netif link accordingly.
  37370. * @retval None
  37371. */
  37372. void ethernet_link_thread(void* argument)
  37373. {
  37374. 8010240: b580 push {r7, lr}
  37375. 8010242: b0a2 sub sp, #136 @ 0x88
  37376. 8010244: af00 add r7, sp, #0
  37377. 8010246: 6078 str r0, [r7, #4]
  37378. ETH_MACConfigTypeDef MACConf = {0};
  37379. 8010248: f107 0310 add.w r3, r7, #16
  37380. 801024c: 2264 movs r2, #100 @ 0x64
  37381. 801024e: 2100 movs r1, #0
  37382. 8010250: 4618 mov r0, r3
  37383. 8010252: f019 fd55 bl 8029d00 <memset>
  37384. int32_t PHYLinkState = 0;
  37385. 8010256: 2300 movs r3, #0
  37386. 8010258: 67bb str r3, [r7, #120] @ 0x78
  37387. uint32_t linkchanged = 0U, speed = 0U, duplex = 0U;
  37388. 801025a: 2300 movs r3, #0
  37389. 801025c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  37390. 8010260: 2300 movs r3, #0
  37391. 8010262: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  37392. 8010266: 2300 movs r3, #0
  37393. 8010268: 67fb str r3, [r7, #124] @ 0x7c
  37394. struct netif *netif = (struct netif *) argument;
  37395. 801026a: 687b ldr r3, [r7, #4]
  37396. 801026c: 677b str r3, [r7, #116] @ 0x74
  37397. /* USER CODE BEGIN ETH link init */
  37398. #if USE_DHCP
  37399. enum dhcp_states DHCP_state = DHCP_START;
  37400. 801026e: 2301 movs r3, #1
  37401. 8010270: 73fb strb r3, [r7, #15]
  37402. // LOCK_TCPIP_CORE();
  37403. /* USER CODE END ETH link init */
  37404. for(;;)
  37405. {
  37406. PHYLinkState = DP83848_GetLinkState(&DP83848);
  37407. 8010272: 484a ldr r0, [pc, #296] @ (801039c <ethernet_link_thread+0x15c>)
  37408. 8010274: f7f4 fe0e bl 8004e94 <DP83848_GetLinkState>
  37409. 8010278: 67b8 str r0, [r7, #120] @ 0x78
  37410. if(netif_is_link_up(netif) && (PHYLinkState <= DP83848_STATUS_LINK_DOWN))
  37411. 801027a: 6f7b ldr r3, [r7, #116] @ 0x74
  37412. 801027c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  37413. 8010280: 089b lsrs r3, r3, #2
  37414. 8010282: f003 0301 and.w r3, r3, #1
  37415. 8010286: b2db uxtb r3, r3
  37416. 8010288: 2b00 cmp r3, #0
  37417. 801028a: d013 beq.n 80102b4 <ethernet_link_thread+0x74>
  37418. 801028c: 6fbb ldr r3, [r7, #120] @ 0x78
  37419. 801028e: 2b01 cmp r3, #1
  37420. 8010290: dc10 bgt.n 80102b4 <ethernet_link_thread+0x74>
  37421. {
  37422. HAL_ETH_Stop_IT(&heth);
  37423. 8010292: 4843 ldr r0, [pc, #268] @ (80103a0 <ethernet_link_thread+0x160>)
  37424. 8010294: f7f7 fe1c bl 8007ed0 <HAL_ETH_Stop_IT>
  37425. LOCK_TCPIP_CORE();
  37426. 8010298: f000 f936 bl 8010508 <sys_lock_tcpip_core>
  37427. netif_set_down(netif);
  37428. 801029c: 6f78 ldr r0, [r7, #116] @ 0x74
  37429. 801029e: f009 fca5 bl 8019bec <netif_set_down>
  37430. netif_set_link_down(netif);
  37431. 80102a2: 6f78 ldr r0, [r7, #116] @ 0x74
  37432. 80102a4: f009 fd10 bl 8019cc8 <netif_set_link_down>
  37433. UNLOCK_TCPIP_CORE();
  37434. 80102a8: f000 f93e bl 8010528 <sys_unlock_tcpip_core>
  37435. printf("Link down...\r\n");
  37436. 80102ac: 483d ldr r0, [pc, #244] @ (80103a4 <ethernet_link_thread+0x164>)
  37437. 80102ae: f019 fbfd bl 8029aac <puts>
  37438. 80102b2: e067 b.n 8010384 <ethernet_link_thread+0x144>
  37439. }
  37440. else if(!netif_is_link_up(netif) && (PHYLinkState > DP83848_STATUS_LINK_DOWN))
  37441. 80102b4: 6f7b ldr r3, [r7, #116] @ 0x74
  37442. 80102b6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  37443. 80102ba: f003 0304 and.w r3, r3, #4
  37444. 80102be: 2b00 cmp r3, #0
  37445. 80102c0: d160 bne.n 8010384 <ethernet_link_thread+0x144>
  37446. 80102c2: 6fbb ldr r3, [r7, #120] @ 0x78
  37447. 80102c4: 2b01 cmp r3, #1
  37448. 80102c6: dd5d ble.n 8010384 <ethernet_link_thread+0x144>
  37449. {
  37450. switch (PHYLinkState)
  37451. 80102c8: 6fbb ldr r3, [r7, #120] @ 0x78
  37452. 80102ca: 3b02 subs r3, #2
  37453. 80102cc: 2b03 cmp r3, #3
  37454. 80102ce: d833 bhi.n 8010338 <ethernet_link_thread+0xf8>
  37455. 80102d0: a201 add r2, pc, #4 @ (adr r2, 80102d8 <ethernet_link_thread+0x98>)
  37456. 80102d2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37457. 80102d6: bf00 nop
  37458. 80102d8: 080102e9 .word 0x080102e9
  37459. 80102dc: 080102ff .word 0x080102ff
  37460. 80102e0: 08010313 .word 0x08010313
  37461. 80102e4: 08010327 .word 0x08010327
  37462. {
  37463. case DP83848_STATUS_100MBITS_FULLDUPLEX:
  37464. duplex = ETH_FULLDUPLEX_MODE;
  37465. 80102e8: f44f 5300 mov.w r3, #8192 @ 0x2000
  37466. 80102ec: 67fb str r3, [r7, #124] @ 0x7c
  37467. speed = ETH_SPEED_100M;
  37468. 80102ee: f44f 4380 mov.w r3, #16384 @ 0x4000
  37469. 80102f2: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  37470. linkchanged = 1;
  37471. 80102f6: 2301 movs r3, #1
  37472. 80102f8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  37473. break;
  37474. 80102fc: e01d b.n 801033a <ethernet_link_thread+0xfa>
  37475. case DP83848_STATUS_100MBITS_HALFDUPLEX:
  37476. duplex = ETH_HALFDUPLEX_MODE;
  37477. 80102fe: 2300 movs r3, #0
  37478. 8010300: 67fb str r3, [r7, #124] @ 0x7c
  37479. speed = ETH_SPEED_100M;
  37480. 8010302: f44f 4380 mov.w r3, #16384 @ 0x4000
  37481. 8010306: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  37482. linkchanged = 1;
  37483. 801030a: 2301 movs r3, #1
  37484. 801030c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  37485. break;
  37486. 8010310: e013 b.n 801033a <ethernet_link_thread+0xfa>
  37487. case DP83848_STATUS_10MBITS_FULLDUPLEX:
  37488. duplex = ETH_FULLDUPLEX_MODE;
  37489. 8010312: f44f 5300 mov.w r3, #8192 @ 0x2000
  37490. 8010316: 67fb str r3, [r7, #124] @ 0x7c
  37491. speed = ETH_SPEED_10M;
  37492. 8010318: 2300 movs r3, #0
  37493. 801031a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  37494. linkchanged = 1;
  37495. 801031e: 2301 movs r3, #1
  37496. 8010320: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  37497. break;
  37498. 8010324: e009 b.n 801033a <ethernet_link_thread+0xfa>
  37499. case DP83848_STATUS_10MBITS_HALFDUPLEX:
  37500. duplex = ETH_HALFDUPLEX_MODE;
  37501. 8010326: 2300 movs r3, #0
  37502. 8010328: 67fb str r3, [r7, #124] @ 0x7c
  37503. speed = ETH_SPEED_10M;
  37504. 801032a: 2300 movs r3, #0
  37505. 801032c: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  37506. linkchanged = 1;
  37507. 8010330: 2301 movs r3, #1
  37508. 8010332: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  37509. break;
  37510. 8010336: e000 b.n 801033a <ethernet_link_thread+0xfa>
  37511. default:
  37512. break;
  37513. 8010338: bf00 nop
  37514. }
  37515. if(linkchanged)
  37516. 801033a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  37517. 801033e: 2b00 cmp r3, #0
  37518. 8010340: d020 beq.n 8010384 <ethernet_link_thread+0x144>
  37519. {
  37520. /* Get MAC Config MAC */
  37521. HAL_ETH_GetMACConfig(&heth, &MACConf);
  37522. 8010342: f107 0310 add.w r3, r7, #16
  37523. 8010346: 4619 mov r1, r3
  37524. 8010348: 4815 ldr r0, [pc, #84] @ (80103a0 <ethernet_link_thread+0x160>)
  37525. 801034a: f7f8 f9dd bl 8008708 <HAL_ETH_GetMACConfig>
  37526. MACConf.DuplexMode = duplex;
  37527. 801034e: 6ffb ldr r3, [r7, #124] @ 0x7c
  37528. 8010350: 62bb str r3, [r7, #40] @ 0x28
  37529. MACConf.Speed = speed;
  37530. 8010352: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  37531. 8010356: 627b str r3, [r7, #36] @ 0x24
  37532. HAL_ETH_SetMACConfig(&heth, &MACConf);
  37533. 8010358: f107 0310 add.w r3, r7, #16
  37534. 801035c: 4619 mov r1, r3
  37535. 801035e: 4810 ldr r0, [pc, #64] @ (80103a0 <ethernet_link_thread+0x160>)
  37536. 8010360: f7f8 fba6 bl 8008ab0 <HAL_ETH_SetMACConfig>
  37537. HAL_ETH_Start_IT(&heth);
  37538. 8010364: 480e ldr r0, [pc, #56] @ (80103a0 <ethernet_link_thread+0x160>)
  37539. 8010366: f7f7 fd3f bl 8007de8 <HAL_ETH_Start_IT>
  37540. LOCK_TCPIP_CORE();
  37541. 801036a: f000 f8cd bl 8010508 <sys_lock_tcpip_core>
  37542. netif_set_up(netif);
  37543. 801036e: 6f78 ldr r0, [r7, #116] @ 0x74
  37544. 8010370: f009 fbce bl 8019b10 <netif_set_up>
  37545. netif_set_link_up(netif);
  37546. 8010374: 6f78 ldr r0, [r7, #116] @ 0x74
  37547. 8010376: f009 fc6d bl 8019c54 <netif_set_link_up>
  37548. UNLOCK_TCPIP_CORE();
  37549. 801037a: f000 f8d5 bl 8010528 <sys_unlock_tcpip_core>
  37550. printf("Link up...\r\n");
  37551. 801037e: 480a ldr r0, [pc, #40] @ (80103a8 <ethernet_link_thread+0x168>)
  37552. 8010380: f019 fb94 bl 8029aac <puts>
  37553. }
  37554. }
  37555. /* USER CODE BEGIN ETH link Thread core code for User BSP */
  37556. #if USE_DHCP
  37557. dhcp_sm(netif, &DHCP_state);
  37558. 8010384: f107 030f add.w r3, r7, #15
  37559. 8010388: 4619 mov r1, r3
  37560. 801038a: 6f78 ldr r0, [r7, #116] @ 0x74
  37561. 801038c: f000 f922 bl 80105d4 <dhcp_sm>
  37562. #endif
  37563. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE when accessing netif link functions*/
  37564. // UNLOCK_TCPIP_CORE();
  37565. osDelay(pdMS_TO_TICKS(500));
  37566. 8010390: f44f 70fa mov.w r0, #500 @ 0x1f4
  37567. 8010394: f000 faff bl 8010996 <osDelay>
  37568. // LOCK_TCPIP_CORE();
  37569. continue; /* skip next osDelay */
  37570. 8010398: bf00 nop
  37571. PHYLinkState = DP83848_GetLinkState(&DP83848);
  37572. 801039a: e76a b.n 8010272 <ethernet_link_thread+0x32>
  37573. 801039c: 240022d4 .word 0x240022d4
  37574. 80103a0: 240021ec .word 0x240021ec
  37575. 80103a4: 0802ca9c .word 0x0802ca9c
  37576. 80103a8: 0802caac .word 0x0802caac
  37577. 080103ac <ethernetif_notify_conn_changed>:
  37578. * @brief This function notify user about link status changement.
  37579. * @param netif: the network interface
  37580. * @retval None
  37581. */
  37582. __weak void ethernetif_notify_conn_changed(struct netif *netif)
  37583. {
  37584. 80103ac: b480 push {r7}
  37585. 80103ae: b083 sub sp, #12
  37586. 80103b0: af00 add r7, sp, #0
  37587. 80103b2: 6078 str r0, [r7, #4]
  37588. /* NOTE : This is function could be implemented in user file
  37589. when the callback is needed,
  37590. */
  37591. }
  37592. 80103b4: bf00 nop
  37593. 80103b6: 370c adds r7, #12
  37594. 80103b8: 46bd mov sp, r7
  37595. 80103ba: f85d 7b04 ldr.w r7, [sp], #4
  37596. 80103be: 4770 bx lr
  37597. 080103c0 <HAL_ETH_RxAllocateCallback>:
  37598. void HAL_ETH_RxAllocateCallback(uint8_t **buff)
  37599. {
  37600. 80103c0: b580 push {r7, lr}
  37601. 80103c2: b086 sub sp, #24
  37602. 80103c4: af02 add r7, sp, #8
  37603. 80103c6: 6078 str r0, [r7, #4]
  37604. /* USER CODE BEGIN HAL ETH RxAllocateCallback */
  37605. struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL);
  37606. 80103c8: 4812 ldr r0, [pc, #72] @ (8010414 <HAL_ETH_RxAllocateCallback+0x54>)
  37607. 80103ca: f009 f909 bl 80195e0 <memp_malloc_pool>
  37608. 80103ce: 60f8 str r0, [r7, #12]
  37609. if (p)
  37610. 80103d0: 68fb ldr r3, [r7, #12]
  37611. 80103d2: 2b00 cmp r3, #0
  37612. 80103d4: d014 beq.n 8010400 <HAL_ETH_RxAllocateCallback+0x40>
  37613. {
  37614. /* Get the buff from the struct pbuf address. */
  37615. *buff = (uint8_t *)p + offsetof(RxBuff_t, buff);
  37616. 80103d6: 68fb ldr r3, [r7, #12]
  37617. 80103d8: f103 0220 add.w r2, r3, #32
  37618. 80103dc: 687b ldr r3, [r7, #4]
  37619. 80103de: 601a str r2, [r3, #0]
  37620. p->custom_free_function = pbuf_free_custom;
  37621. 80103e0: 68fb ldr r3, [r7, #12]
  37622. 80103e2: 4a0d ldr r2, [pc, #52] @ (8010418 <HAL_ETH_RxAllocateCallback+0x58>)
  37623. 80103e4: 611a str r2, [r3, #16]
  37624. /* Initialize the struct pbuf.
  37625. * This must be performed whenever a buffer's allocated because it may be
  37626. * changed by lwIP or the app, e.g., pbuf_free decrements ref. */
  37627. pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE);
  37628. 80103e6: 687b ldr r3, [r7, #4]
  37629. 80103e8: 681b ldr r3, [r3, #0]
  37630. 80103ea: f44f 62c0 mov.w r2, #1536 @ 0x600
  37631. 80103ee: 9201 str r2, [sp, #4]
  37632. 80103f0: 9300 str r3, [sp, #0]
  37633. 80103f2: 68fb ldr r3, [r7, #12]
  37634. 80103f4: 2241 movs r2, #65 @ 0x41
  37635. 80103f6: 2100 movs r1, #0
  37636. 80103f8: 2000 movs r0, #0
  37637. 80103fa: f009 fe8d bl 801a118 <pbuf_alloced_custom>
  37638. {
  37639. RxAllocStatus = RX_ALLOC_ERROR;
  37640. *buff = NULL;
  37641. }
  37642. /* USER CODE END HAL ETH RxAllocateCallback */
  37643. }
  37644. 80103fe: e005 b.n 801040c <HAL_ETH_RxAllocateCallback+0x4c>
  37645. RxAllocStatus = RX_ALLOC_ERROR;
  37646. 8010400: 4b06 ldr r3, [pc, #24] @ (801041c <HAL_ETH_RxAllocateCallback+0x5c>)
  37647. 8010402: 2201 movs r2, #1
  37648. 8010404: 701a strb r2, [r3, #0]
  37649. *buff = NULL;
  37650. 8010406: 687b ldr r3, [r7, #4]
  37651. 8010408: 2200 movs r2, #0
  37652. 801040a: 601a str r2, [r3, #0]
  37653. }
  37654. 801040c: bf00 nop
  37655. 801040e: 3710 adds r7, #16
  37656. 8010410: 46bd mov sp, r7
  37657. 8010412: bd80 pop {r7, pc}
  37658. 8010414: 08030abc .word 0x08030abc
  37659. 8010418: 0800ffcd .word 0x0800ffcd
  37660. 801041c: 240021e0 .word 0x240021e0
  37661. 08010420 <HAL_ETH_RxLinkCallback>:
  37662. void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length)
  37663. {
  37664. 8010420: b480 push {r7}
  37665. 8010422: b08d sub sp, #52 @ 0x34
  37666. 8010424: af00 add r7, sp, #0
  37667. 8010426: 60f8 str r0, [r7, #12]
  37668. 8010428: 60b9 str r1, [r7, #8]
  37669. 801042a: 607a str r2, [r7, #4]
  37670. 801042c: 807b strh r3, [r7, #2]
  37671. /* USER CODE BEGIN HAL ETH RxLinkCallback */
  37672. struct pbuf **ppStart = (struct pbuf **)pStart;
  37673. 801042e: 68fb ldr r3, [r7, #12]
  37674. 8010430: 62bb str r3, [r7, #40] @ 0x28
  37675. struct pbuf **ppEnd = (struct pbuf **)pEnd;
  37676. 8010432: 68bb ldr r3, [r7, #8]
  37677. 8010434: 627b str r3, [r7, #36] @ 0x24
  37678. struct pbuf *p = NULL;
  37679. 8010436: 2300 movs r3, #0
  37680. 8010438: 62fb str r3, [r7, #44] @ 0x2c
  37681. /* Get the struct pbuf from the buff address. */
  37682. p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff));
  37683. 801043a: 687b ldr r3, [r7, #4]
  37684. 801043c: 3b20 subs r3, #32
  37685. 801043e: 62fb str r3, [r7, #44] @ 0x2c
  37686. p->next = NULL;
  37687. 8010440: 6afb ldr r3, [r7, #44] @ 0x2c
  37688. 8010442: 2200 movs r2, #0
  37689. 8010444: 601a str r2, [r3, #0]
  37690. p->tot_len = 0;
  37691. 8010446: 6afb ldr r3, [r7, #44] @ 0x2c
  37692. 8010448: 2200 movs r2, #0
  37693. 801044a: 811a strh r2, [r3, #8]
  37694. p->len = Length;
  37695. 801044c: 6afb ldr r3, [r7, #44] @ 0x2c
  37696. 801044e: 887a ldrh r2, [r7, #2]
  37697. 8010450: 815a strh r2, [r3, #10]
  37698. /* Chain the buffer. */
  37699. if (!*ppStart)
  37700. 8010452: 6abb ldr r3, [r7, #40] @ 0x28
  37701. 8010454: 681b ldr r3, [r3, #0]
  37702. 8010456: 2b00 cmp r3, #0
  37703. 8010458: d103 bne.n 8010462 <HAL_ETH_RxLinkCallback+0x42>
  37704. {
  37705. /* The first buffer of the packet. */
  37706. *ppStart = p;
  37707. 801045a: 6abb ldr r3, [r7, #40] @ 0x28
  37708. 801045c: 6afa ldr r2, [r7, #44] @ 0x2c
  37709. 801045e: 601a str r2, [r3, #0]
  37710. 8010460: e003 b.n 801046a <HAL_ETH_RxLinkCallback+0x4a>
  37711. }
  37712. else
  37713. {
  37714. /* Chain the buffer to the end of the packet. */
  37715. (*ppEnd)->next = p;
  37716. 8010462: 6a7b ldr r3, [r7, #36] @ 0x24
  37717. 8010464: 681b ldr r3, [r3, #0]
  37718. 8010466: 6afa ldr r2, [r7, #44] @ 0x2c
  37719. 8010468: 601a str r2, [r3, #0]
  37720. }
  37721. *ppEnd = p;
  37722. 801046a: 6a7b ldr r3, [r7, #36] @ 0x24
  37723. 801046c: 6afa ldr r2, [r7, #44] @ 0x2c
  37724. 801046e: 601a str r2, [r3, #0]
  37725. /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len
  37726. * set to its own length, plus the length of all the following pbufs in the chain. */
  37727. for (p = *ppStart; p != NULL; p = p->next)
  37728. 8010470: 6abb ldr r3, [r7, #40] @ 0x28
  37729. 8010472: 681b ldr r3, [r3, #0]
  37730. 8010474: 62fb str r3, [r7, #44] @ 0x2c
  37731. 8010476: e009 b.n 801048c <HAL_ETH_RxLinkCallback+0x6c>
  37732. {
  37733. p->tot_len += Length;
  37734. 8010478: 6afb ldr r3, [r7, #44] @ 0x2c
  37735. 801047a: 891a ldrh r2, [r3, #8]
  37736. 801047c: 887b ldrh r3, [r7, #2]
  37737. 801047e: 4413 add r3, r2
  37738. 8010480: b29a uxth r2, r3
  37739. 8010482: 6afb ldr r3, [r7, #44] @ 0x2c
  37740. 8010484: 811a strh r2, [r3, #8]
  37741. for (p = *ppStart; p != NULL; p = p->next)
  37742. 8010486: 6afb ldr r3, [r7, #44] @ 0x2c
  37743. 8010488: 681b ldr r3, [r3, #0]
  37744. 801048a: 62fb str r3, [r7, #44] @ 0x2c
  37745. 801048c: 6afb ldr r3, [r7, #44] @ 0x2c
  37746. 801048e: 2b00 cmp r3, #0
  37747. 8010490: d1f2 bne.n 8010478 <HAL_ETH_RxLinkCallback+0x58>
  37748. }
  37749. /* Invalidate data cache because Rx DMA's writing to physical memory makes it stale. */
  37750. SCB_InvalidateDCache_by_Addr((uint32_t *)buff, Length);
  37751. 8010492: 887b ldrh r3, [r7, #2]
  37752. 8010494: 687a ldr r2, [r7, #4]
  37753. 8010496: 623a str r2, [r7, #32]
  37754. 8010498: 61fb str r3, [r7, #28]
  37755. if ( dsize > 0 ) {
  37756. 801049a: 69fb ldr r3, [r7, #28]
  37757. 801049c: 2b00 cmp r3, #0
  37758. 801049e: dd1d ble.n 80104dc <HAL_ETH_RxLinkCallback+0xbc>
  37759. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  37760. 80104a0: 6a3b ldr r3, [r7, #32]
  37761. 80104a2: f003 021f and.w r2, r3, #31
  37762. 80104a6: 69fb ldr r3, [r7, #28]
  37763. 80104a8: 4413 add r3, r2
  37764. 80104aa: 61bb str r3, [r7, #24]
  37765. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  37766. 80104ac: 6a3b ldr r3, [r7, #32]
  37767. 80104ae: 617b str r3, [r7, #20]
  37768. __ASM volatile ("dsb 0xF":::"memory");
  37769. 80104b0: f3bf 8f4f dsb sy
  37770. }
  37771. 80104b4: bf00 nop
  37772. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  37773. 80104b6: 4a0d ldr r2, [pc, #52] @ (80104ec <HAL_ETH_RxLinkCallback+0xcc>)
  37774. 80104b8: 697b ldr r3, [r7, #20]
  37775. 80104ba: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  37776. op_addr += __SCB_DCACHE_LINE_SIZE;
  37777. 80104be: 697b ldr r3, [r7, #20]
  37778. 80104c0: 3320 adds r3, #32
  37779. 80104c2: 617b str r3, [r7, #20]
  37780. op_size -= __SCB_DCACHE_LINE_SIZE;
  37781. 80104c4: 69bb ldr r3, [r7, #24]
  37782. 80104c6: 3b20 subs r3, #32
  37783. 80104c8: 61bb str r3, [r7, #24]
  37784. } while ( op_size > 0 );
  37785. 80104ca: 69bb ldr r3, [r7, #24]
  37786. 80104cc: 2b00 cmp r3, #0
  37787. 80104ce: dcf2 bgt.n 80104b6 <HAL_ETH_RxLinkCallback+0x96>
  37788. __ASM volatile ("dsb 0xF":::"memory");
  37789. 80104d0: f3bf 8f4f dsb sy
  37790. }
  37791. 80104d4: bf00 nop
  37792. __ASM volatile ("isb 0xF":::"memory");
  37793. 80104d6: f3bf 8f6f isb sy
  37794. }
  37795. 80104da: bf00 nop
  37796. }
  37797. 80104dc: bf00 nop
  37798. /* USER CODE END HAL ETH RxLinkCallback */
  37799. }
  37800. 80104de: bf00 nop
  37801. 80104e0: 3734 adds r7, #52 @ 0x34
  37802. 80104e2: 46bd mov sp, r7
  37803. 80104e4: f85d 7b04 ldr.w r7, [sp], #4
  37804. 80104e8: 4770 bx lr
  37805. 80104ea: bf00 nop
  37806. 80104ec: e000ed00 .word 0xe000ed00
  37807. 080104f0 <HAL_ETH_TxFreeCallback>:
  37808. void HAL_ETH_TxFreeCallback(uint32_t * buff)
  37809. {
  37810. 80104f0: b580 push {r7, lr}
  37811. 80104f2: b082 sub sp, #8
  37812. 80104f4: af00 add r7, sp, #0
  37813. 80104f6: 6078 str r0, [r7, #4]
  37814. /* USER CODE BEGIN HAL ETH TxFreeCallback */
  37815. pbuf_free((struct pbuf *)buff);
  37816. 80104f8: 6878 ldr r0, [r7, #4]
  37817. 80104fa: f009 fff7 bl 801a4ec <pbuf_free>
  37818. /* USER CODE END HAL ETH TxFreeCallback */
  37819. }
  37820. 80104fe: bf00 nop
  37821. 8010500: 3708 adds r7, #8
  37822. 8010502: 46bd mov sp, r7
  37823. 8010504: bd80 pop {r7, pc}
  37824. ...
  37825. 08010508 <sys_lock_tcpip_core>:
  37826. /* ETH_CODE: add functions needed for proper multithreading support and check */
  37827. static osThreadId_t lwip_core_lock_holder_thread_id;
  37828. static osThreadId_t lwip_tcpip_thread_id;
  37829. void sys_lock_tcpip_core(void){
  37830. 8010508: b580 push {r7, lr}
  37831. 801050a: af00 add r7, sp, #0
  37832. sys_mutex_lock(&lock_tcpip_core);
  37833. 801050c: 4804 ldr r0, [pc, #16] @ (8010520 <sys_lock_tcpip_core+0x18>)
  37834. 801050e: f015 ff93 bl 8026438 <sys_mutex_lock>
  37835. lwip_core_lock_holder_thread_id = osThreadGetId();
  37836. 8010512: f000 fa35 bl 8010980 <osThreadGetId>
  37837. 8010516: 4603 mov r3, r0
  37838. 8010518: 4a02 ldr r2, [pc, #8] @ (8010524 <sys_lock_tcpip_core+0x1c>)
  37839. 801051a: 6013 str r3, [r2, #0]
  37840. }
  37841. 801051c: bf00 nop
  37842. 801051e: bd80 pop {r7, pc}
  37843. 8010520: 24024334 .word 0x24024334
  37844. 8010524: 240022f4 .word 0x240022f4
  37845. 08010528 <sys_unlock_tcpip_core>:
  37846. void sys_unlock_tcpip_core(void){
  37847. 8010528: b580 push {r7, lr}
  37848. 801052a: af00 add r7, sp, #0
  37849. lwip_core_lock_holder_thread_id = 0;
  37850. 801052c: 4b03 ldr r3, [pc, #12] @ (801053c <sys_unlock_tcpip_core+0x14>)
  37851. 801052e: 2200 movs r2, #0
  37852. 8010530: 601a str r2, [r3, #0]
  37853. sys_mutex_unlock(&lock_tcpip_core);
  37854. 8010532: 4803 ldr r0, [pc, #12] @ (8010540 <sys_unlock_tcpip_core+0x18>)
  37855. 8010534: f015 ff8f bl 8026456 <sys_mutex_unlock>
  37856. }
  37857. 8010538: bf00 nop
  37858. 801053a: bd80 pop {r7, pc}
  37859. 801053c: 240022f4 .word 0x240022f4
  37860. 8010540: 24024334 .word 0x24024334
  37861. 08010544 <sys_check_core_locking>:
  37862. void sys_check_core_locking(void){
  37863. 8010544: b580 push {r7, lr}
  37864. 8010546: b082 sub sp, #8
  37865. 8010548: af00 add r7, sp, #0
  37866. /* Embedded systems should check we are NOT in an interrupt context here */
  37867. LWIP_ASSERT("Function called from interrupt context", (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0);
  37868. 801054a: 4b15 ldr r3, [pc, #84] @ (80105a0 <sys_check_core_locking+0x5c>)
  37869. 801054c: 685b ldr r3, [r3, #4]
  37870. 801054e: f3c3 0308 ubfx r3, r3, #0, #9
  37871. 8010552: 2b00 cmp r3, #0
  37872. 8010554: d006 beq.n 8010564 <sys_check_core_locking+0x20>
  37873. 8010556: 4b13 ldr r3, [pc, #76] @ (80105a4 <sys_check_core_locking+0x60>)
  37874. 8010558: f240 4216 movw r2, #1046 @ 0x416
  37875. 801055c: 4912 ldr r1, [pc, #72] @ (80105a8 <sys_check_core_locking+0x64>)
  37876. 801055e: 4813 ldr r0, [pc, #76] @ (80105ac <sys_check_core_locking+0x68>)
  37877. 8010560: f019 fa3c bl 80299dc <iprintf>
  37878. if (lwip_tcpip_thread_id != 0) {
  37879. 8010564: 4b12 ldr r3, [pc, #72] @ (80105b0 <sys_check_core_locking+0x6c>)
  37880. 8010566: 681b ldr r3, [r3, #0]
  37881. 8010568: 2b00 cmp r3, #0
  37882. 801056a: d014 beq.n 8010596 <sys_check_core_locking+0x52>
  37883. osThreadId_t current_thread_id = osThreadGetId();
  37884. 801056c: f000 fa08 bl 8010980 <osThreadGetId>
  37885. 8010570: 6078 str r0, [r7, #4]
  37886. #if LWIP_TCPIP_CORE_LOCKING
  37887. LWIP_ASSERT("Function called without core lock", current_thread_id == lwip_core_lock_holder_thread_id);
  37888. 8010572: 4b10 ldr r3, [pc, #64] @ (80105b4 <sys_check_core_locking+0x70>)
  37889. 8010574: 681b ldr r3, [r3, #0]
  37890. 8010576: 687a ldr r2, [r7, #4]
  37891. 8010578: 429a cmp r2, r3
  37892. 801057a: d006 beq.n 801058a <sys_check_core_locking+0x46>
  37893. 801057c: 4b09 ldr r3, [pc, #36] @ (80105a4 <sys_check_core_locking+0x60>)
  37894. 801057e: f240 421c movw r2, #1052 @ 0x41c
  37895. 8010582: 490d ldr r1, [pc, #52] @ (80105b8 <sys_check_core_locking+0x74>)
  37896. 8010584: 4809 ldr r0, [pc, #36] @ (80105ac <sys_check_core_locking+0x68>)
  37897. 8010586: f019 fa29 bl 80299dc <iprintf>
  37898. /* ETH_CODE: to easily check that example has correct handling of core lock
  37899. * This will trigger breakpoint (__BKPT)
  37900. */
  37901. #warning Below check should be removed in production code
  37902. if(current_thread_id != lwip_core_lock_holder_thread_id) __BKPT(0);
  37903. 801058a: 4b0a ldr r3, [pc, #40] @ (80105b4 <sys_check_core_locking+0x70>)
  37904. 801058c: 681b ldr r3, [r3, #0]
  37905. 801058e: 687a ldr r2, [r7, #4]
  37906. 8010590: 429a cmp r2, r3
  37907. 8010592: d000 beq.n 8010596 <sys_check_core_locking+0x52>
  37908. 8010594: be00 bkpt 0x0000
  37909. #else /* LWIP_TCPIP_CORE_LOCKING */
  37910. LWIP_ASSERT("Function called from wrong thread", current_thread_id == lwip_tcpip_thread_id);
  37911. #endif /* LWIP_TCPIP_CORE_LOCKING */
  37912. LWIP_UNUSED_ARG(current_thread_id); /* for LWIP_NOASSERT */
  37913. }
  37914. }
  37915. 8010596: bf00 nop
  37916. 8010598: 3708 adds r7, #8
  37917. 801059a: 46bd mov sp, r7
  37918. 801059c: bd80 pop {r7, pc}
  37919. 801059e: bf00 nop
  37920. 80105a0: e000ed00 .word 0xe000ed00
  37921. 80105a4: 0802ca48 .word 0x0802ca48
  37922. 80105a8: 0802cab8 .word 0x0802cab8
  37923. 80105ac: 0802ca74 .word 0x0802ca74
  37924. 80105b0: 240022f8 .word 0x240022f8
  37925. 80105b4: 240022f4 .word 0x240022f4
  37926. 80105b8: 0802cae0 .word 0x0802cae0
  37927. 080105bc <sys_mark_tcpip_thread>:
  37928. void sys_mark_tcpip_thread(void){
  37929. 80105bc: b580 push {r7, lr}
  37930. 80105be: af00 add r7, sp, #0
  37931. lwip_tcpip_thread_id = osThreadGetId();
  37932. 80105c0: f000 f9de bl 8010980 <osThreadGetId>
  37933. 80105c4: 4603 mov r3, r0
  37934. 80105c6: 4a02 ldr r2, [pc, #8] @ (80105d0 <sys_mark_tcpip_thread+0x14>)
  37935. 80105c8: 6013 str r3, [r2, #0]
  37936. }
  37937. 80105ca: bf00 nop
  37938. 80105cc: bd80 pop {r7, pc}
  37939. 80105ce: bf00 nop
  37940. 80105d0: 240022f8 .word 0x240022f8
  37941. 080105d4 <dhcp_sm>:
  37942. #if USE_DHCP
  37943. void dhcp_sm(struct netif *netif, enum dhcp_states *state)
  37944. {
  37945. 80105d4: b580 push {r7, lr}
  37946. 80105d6: b08c sub sp, #48 @ 0x30
  37947. 80105d8: af00 add r7, sp, #0
  37948. 80105da: 6078 str r0, [r7, #4]
  37949. 80105dc: 6039 str r1, [r7, #0]
  37950. ip_addr_t gw;
  37951. #ifdef DHCP_USER_LOGS
  37952. uint8_t iptxt[20];
  37953. #endif
  37954. switch(*state)
  37955. 80105de: 683b ldr r3, [r7, #0]
  37956. 80105e0: 781b ldrb r3, [r3, #0]
  37957. 80105e2: 2b03 cmp r3, #3
  37958. 80105e4: d072 beq.n 80106cc <dhcp_sm+0xf8>
  37959. 80105e6: 2b03 cmp r3, #3
  37960. 80105e8: dc7b bgt.n 80106e2 <dhcp_sm+0x10e>
  37961. 80105ea: 2b01 cmp r3, #1
  37962. 80105ec: d002 beq.n 80105f4 <dhcp_sm+0x20>
  37963. 80105ee: 2b02 cmp r3, #2
  37964. 80105f0: d00a beq.n 8010608 <dhcp_sm+0x34>
  37965. {
  37966. *state = DHCP_START;
  37967. }
  37968. break;
  37969. default:
  37970. break;
  37971. 80105f2: e076 b.n 80106e2 <dhcp_sm+0x10e>
  37972. *state = DHCP_WAIT_ADDRESS;
  37973. 80105f4: 683b ldr r3, [r7, #0]
  37974. 80105f6: 2202 movs r2, #2
  37975. 80105f8: 701a strb r2, [r3, #0]
  37976. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  37977. 80105fa: 687b ldr r3, [r7, #4]
  37978. 80105fc: 6a5b ldr r3, [r3, #36] @ 0x24
  37979. 80105fe: 62fb str r3, [r7, #44] @ 0x2c
  37980. printf(" State: Looking for DHCP server ...\n");
  37981. 8010600: 483c ldr r0, [pc, #240] @ (80106f4 <dhcp_sm+0x120>)
  37982. 8010602: f019 fa53 bl 8029aac <puts>
  37983. break;
  37984. 8010606: e071 b.n 80106ec <dhcp_sm+0x118>
  37985. if (dhcp_supplied_address(netif))
  37986. 8010608: 6878 ldr r0, [r7, #4]
  37987. 801060a: f013 f879 bl 8023700 <dhcp_supplied_address>
  37988. 801060e: 4603 mov r3, r0
  37989. 8010610: 2b00 cmp r3, #0
  37990. 8010612: d015 beq.n 8010640 <dhcp_sm+0x6c>
  37991. *state = DHCP_ADDRESS_ASSIGNED;
  37992. 8010614: 683b ldr r3, [r7, #0]
  37993. 8010616: 2203 movs r2, #3
  37994. 8010618: 701a strb r2, [r3, #0]
  37995. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  37996. 801061a: 687b ldr r3, [r7, #4]
  37997. 801061c: 3304 adds r3, #4
  37998. 801061e: 4618 mov r0, r3
  37999. 8010620: f014 fe06 bl 8025230 <ip4addr_ntoa>
  38000. 8010624: 4602 mov r2, r0
  38001. 8010626: f107 030c add.w r3, r7, #12
  38002. 801062a: 4933 ldr r1, [pc, #204] @ (80106f8 <dhcp_sm+0x124>)
  38003. 801062c: 4618 mov r0, r3
  38004. 801062e: f019 fa45 bl 8029abc <siprintf>
  38005. printf("IP address assigned by a DHCP server: %s\n", iptxt);
  38006. 8010632: f107 030c add.w r3, r7, #12
  38007. 8010636: 4619 mov r1, r3
  38008. 8010638: 4830 ldr r0, [pc, #192] @ (80106fc <dhcp_sm+0x128>)
  38009. 801063a: f019 f9cf bl 80299dc <iprintf>
  38010. break;
  38011. 801063e: e052 b.n 80106e6 <dhcp_sm+0x112>
  38012. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  38013. 8010640: 687b ldr r3, [r7, #4]
  38014. 8010642: 6a5b ldr r3, [r3, #36] @ 0x24
  38015. 8010644: 62fb str r3, [r7, #44] @ 0x2c
  38016. if (dhcp->tries > MAX_DHCP_TRIES)
  38017. 8010646: 6afb ldr r3, [r7, #44] @ 0x2c
  38018. 8010648: 799b ldrb r3, [r3, #6]
  38019. 801064a: 2b04 cmp r3, #4
  38020. 801064c: d94b bls.n 80106e6 <dhcp_sm+0x112>
  38021. *state = DHCP_TIMEOUT;
  38022. 801064e: 683b ldr r3, [r7, #0]
  38023. 8010650: 2204 movs r2, #4
  38024. 8010652: 701a strb r2, [r3, #0]
  38025. LOCK_TCPIP_CORE();
  38026. 8010654: f7ff ff58 bl 8010508 <sys_lock_tcpip_core>
  38027. dhcp_stop(netif);
  38028. 8010658: 6878 ldr r0, [r7, #4]
  38029. 801065a: f012 faa9 bl 8022bb0 <dhcp_stop>
  38030. UNLOCK_TCPIP_CORE();
  38031. 801065e: f7ff ff63 bl 8010528 <sys_unlock_tcpip_core>
  38032. ipaddr_aton(STATIC_IP, &ipaddr);
  38033. 8010662: f107 0328 add.w r3, r7, #40 @ 0x28
  38034. 8010666: 4619 mov r1, r3
  38035. 8010668: 4825 ldr r0, [pc, #148] @ (8010700 <dhcp_sm+0x12c>)
  38036. 801066a: f014 fcb7 bl 8024fdc <ip4addr_aton>
  38037. ipaddr_aton(STATIC_MASK, &netmask);
  38038. 801066e: f107 0324 add.w r3, r7, #36 @ 0x24
  38039. 8010672: 4619 mov r1, r3
  38040. 8010674: 4823 ldr r0, [pc, #140] @ (8010704 <dhcp_sm+0x130>)
  38041. 8010676: f014 fcb1 bl 8024fdc <ip4addr_aton>
  38042. ipaddr_aton(STATIC_GW, &gw);
  38043. 801067a: f107 0320 add.w r3, r7, #32
  38044. 801067e: 4619 mov r1, r3
  38045. 8010680: 4821 ldr r0, [pc, #132] @ (8010708 <dhcp_sm+0x134>)
  38046. 8010682: f014 fcab bl 8024fdc <ip4addr_aton>
  38047. LOCK_TCPIP_CORE();
  38048. 8010686: f7ff ff3f bl 8010508 <sys_lock_tcpip_core>
  38049. netif_set_addr(netif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  38050. 801068a: f107 0320 add.w r3, r7, #32
  38051. 801068e: f107 0224 add.w r2, r7, #36 @ 0x24
  38052. 8010692: f107 0128 add.w r1, r7, #40 @ 0x28
  38053. 8010696: 6878 ldr r0, [r7, #4]
  38054. 8010698: f009 f9de bl 8019a58 <netif_set_addr>
  38055. UNLOCK_TCPIP_CORE();
  38056. 801069c: f7ff ff44 bl 8010528 <sys_unlock_tcpip_core>
  38057. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  38058. 80106a0: 687b ldr r3, [r7, #4]
  38059. 80106a2: 3304 adds r3, #4
  38060. 80106a4: 4618 mov r0, r3
  38061. 80106a6: f014 fdc3 bl 8025230 <ip4addr_ntoa>
  38062. 80106aa: 4602 mov r2, r0
  38063. 80106ac: f107 030c add.w r3, r7, #12
  38064. 80106b0: 4911 ldr r1, [pc, #68] @ (80106f8 <dhcp_sm+0x124>)
  38065. 80106b2: 4618 mov r0, r3
  38066. 80106b4: f019 fa02 bl 8029abc <siprintf>
  38067. printf("DHCP Timeout !! \n");
  38068. 80106b8: 4814 ldr r0, [pc, #80] @ (801070c <dhcp_sm+0x138>)
  38069. 80106ba: f019 f9f7 bl 8029aac <puts>
  38070. printf("Static IP address: %s\n", iptxt);
  38071. 80106be: f107 030c add.w r3, r7, #12
  38072. 80106c2: 4619 mov r1, r3
  38073. 80106c4: 4812 ldr r0, [pc, #72] @ (8010710 <dhcp_sm+0x13c>)
  38074. 80106c6: f019 f989 bl 80299dc <iprintf>
  38075. break;
  38076. 80106ca: e00c b.n 80106e6 <dhcp_sm+0x112>
  38077. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  38078. 80106cc: 687b ldr r3, [r7, #4]
  38079. 80106ce: 6a5b ldr r3, [r3, #36] @ 0x24
  38080. 80106d0: 62fb str r3, [r7, #44] @ 0x2c
  38081. if(dhcp->state == 3)
  38082. 80106d2: 6afb ldr r3, [r7, #44] @ 0x2c
  38083. 80106d4: 795b ldrb r3, [r3, #5]
  38084. 80106d6: 2b03 cmp r3, #3
  38085. 80106d8: d107 bne.n 80106ea <dhcp_sm+0x116>
  38086. *state = DHCP_START;
  38087. 80106da: 683b ldr r3, [r7, #0]
  38088. 80106dc: 2201 movs r2, #1
  38089. 80106de: 701a strb r2, [r3, #0]
  38090. break;
  38091. 80106e0: e003 b.n 80106ea <dhcp_sm+0x116>
  38092. break;
  38093. 80106e2: bf00 nop
  38094. 80106e4: e002 b.n 80106ec <dhcp_sm+0x118>
  38095. break;
  38096. 80106e6: bf00 nop
  38097. 80106e8: e000 b.n 80106ec <dhcp_sm+0x118>
  38098. break;
  38099. 80106ea: bf00 nop
  38100. }
  38101. }
  38102. 80106ec: bf00 nop
  38103. 80106ee: 3730 adds r7, #48 @ 0x30
  38104. 80106f0: 46bd mov sp, r7
  38105. 80106f2: bd80 pop {r7, pc}
  38106. 80106f4: 0802cb04 .word 0x0802cb04
  38107. 80106f8: 0802cb2c .word 0x0802cb2c
  38108. 80106fc: 0802cb30 .word 0x0802cb30
  38109. 8010700: 0802cb5c .word 0x0802cb5c
  38110. 8010704: 0802cb6c .word 0x0802cb6c
  38111. 8010708: 0802cb7c .word 0x0802cb7c
  38112. 801070c: 0802cb88 .word 0x0802cb88
  38113. 8010710: 0802cb9c .word 0x0802cb9c
  38114. 08010714 <__NVIC_SetPriority>:
  38115. {
  38116. 8010714: b480 push {r7}
  38117. 8010716: b083 sub sp, #12
  38118. 8010718: af00 add r7, sp, #0
  38119. 801071a: 4603 mov r3, r0
  38120. 801071c: 6039 str r1, [r7, #0]
  38121. 801071e: 80fb strh r3, [r7, #6]
  38122. if ((int32_t)(IRQn) >= 0)
  38123. 8010720: f9b7 3006 ldrsh.w r3, [r7, #6]
  38124. 8010724: 2b00 cmp r3, #0
  38125. 8010726: db0a blt.n 801073e <__NVIC_SetPriority+0x2a>
  38126. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  38127. 8010728: 683b ldr r3, [r7, #0]
  38128. 801072a: b2da uxtb r2, r3
  38129. 801072c: 490c ldr r1, [pc, #48] @ (8010760 <__NVIC_SetPriority+0x4c>)
  38130. 801072e: f9b7 3006 ldrsh.w r3, [r7, #6]
  38131. 8010732: 0112 lsls r2, r2, #4
  38132. 8010734: b2d2 uxtb r2, r2
  38133. 8010736: 440b add r3, r1
  38134. 8010738: f883 2300 strb.w r2, [r3, #768] @ 0x300
  38135. }
  38136. 801073c: e00a b.n 8010754 <__NVIC_SetPriority+0x40>
  38137. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  38138. 801073e: 683b ldr r3, [r7, #0]
  38139. 8010740: b2da uxtb r2, r3
  38140. 8010742: 4908 ldr r1, [pc, #32] @ (8010764 <__NVIC_SetPriority+0x50>)
  38141. 8010744: 88fb ldrh r3, [r7, #6]
  38142. 8010746: f003 030f and.w r3, r3, #15
  38143. 801074a: 3b04 subs r3, #4
  38144. 801074c: 0112 lsls r2, r2, #4
  38145. 801074e: b2d2 uxtb r2, r2
  38146. 8010750: 440b add r3, r1
  38147. 8010752: 761a strb r2, [r3, #24]
  38148. }
  38149. 8010754: bf00 nop
  38150. 8010756: 370c adds r7, #12
  38151. 8010758: 46bd mov sp, r7
  38152. 801075a: f85d 7b04 ldr.w r7, [sp], #4
  38153. 801075e: 4770 bx lr
  38154. 8010760: e000e100 .word 0xe000e100
  38155. 8010764: e000ed00 .word 0xe000ed00
  38156. 08010768 <SysTick_Handler>:
  38157. /*
  38158. SysTick handler implementation that also clears overflow flag.
  38159. */
  38160. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  38161. void SysTick_Handler (void) {
  38162. 8010768: b580 push {r7, lr}
  38163. 801076a: af00 add r7, sp, #0
  38164. /* Clear overflow flag */
  38165. SysTick->CTRL;
  38166. 801076c: 4b05 ldr r3, [pc, #20] @ (8010784 <SysTick_Handler+0x1c>)
  38167. 801076e: 681b ldr r3, [r3, #0]
  38168. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  38169. 8010770: f003 f946 bl 8013a00 <xTaskGetSchedulerState>
  38170. 8010774: 4603 mov r3, r0
  38171. 8010776: 2b01 cmp r3, #1
  38172. 8010778: d001 beq.n 801077e <SysTick_Handler+0x16>
  38173. /* Call tick handler */
  38174. xPortSysTickHandler();
  38175. 801077a: f004 fa6d bl 8014c58 <xPortSysTickHandler>
  38176. }
  38177. }
  38178. 801077e: bf00 nop
  38179. 8010780: bd80 pop {r7, pc}
  38180. 8010782: bf00 nop
  38181. 8010784: e000e010 .word 0xe000e010
  38182. 08010788 <SVC_Setup>:
  38183. #endif /* SysTick */
  38184. /*
  38185. Setup SVC to reset value.
  38186. */
  38187. __STATIC_INLINE void SVC_Setup (void) {
  38188. 8010788: b580 push {r7, lr}
  38189. 801078a: af00 add r7, sp, #0
  38190. #if (__ARM_ARCH_7A__ == 0U)
  38191. /* Service Call interrupt might be configured before kernel start */
  38192. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  38193. /* causes a Hard Fault. */
  38194. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  38195. 801078c: 2100 movs r1, #0
  38196. 801078e: f06f 0004 mvn.w r0, #4
  38197. 8010792: f7ff ffbf bl 8010714 <__NVIC_SetPriority>
  38198. #endif
  38199. }
  38200. 8010796: bf00 nop
  38201. 8010798: bd80 pop {r7, pc}
  38202. ...
  38203. 0801079c <osKernelInitialize>:
  38204. static uint32_t OS_Tick_GetOverflow (void);
  38205. /* Get OS Tick interval */
  38206. static uint32_t OS_Tick_GetInterval (void);
  38207. /*---------------------------------------------------------------------------*/
  38208. osStatus_t osKernelInitialize (void) {
  38209. 801079c: b480 push {r7}
  38210. 801079e: b083 sub sp, #12
  38211. 80107a0: af00 add r7, sp, #0
  38212. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38213. 80107a2: f3ef 8305 mrs r3, IPSR
  38214. 80107a6: 603b str r3, [r7, #0]
  38215. return(result);
  38216. 80107a8: 683b ldr r3, [r7, #0]
  38217. osStatus_t stat;
  38218. if (IS_IRQ()) {
  38219. 80107aa: 2b00 cmp r3, #0
  38220. 80107ac: d003 beq.n 80107b6 <osKernelInitialize+0x1a>
  38221. stat = osErrorISR;
  38222. 80107ae: f06f 0305 mvn.w r3, #5
  38223. 80107b2: 607b str r3, [r7, #4]
  38224. 80107b4: e00c b.n 80107d0 <osKernelInitialize+0x34>
  38225. }
  38226. else {
  38227. if (KernelState == osKernelInactive) {
  38228. 80107b6: 4b0a ldr r3, [pc, #40] @ (80107e0 <osKernelInitialize+0x44>)
  38229. 80107b8: 681b ldr r3, [r3, #0]
  38230. 80107ba: 2b00 cmp r3, #0
  38231. 80107bc: d105 bne.n 80107ca <osKernelInitialize+0x2e>
  38232. EvrFreeRTOSSetup(0U);
  38233. #endif
  38234. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  38235. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  38236. #endif
  38237. KernelState = osKernelReady;
  38238. 80107be: 4b08 ldr r3, [pc, #32] @ (80107e0 <osKernelInitialize+0x44>)
  38239. 80107c0: 2201 movs r2, #1
  38240. 80107c2: 601a str r2, [r3, #0]
  38241. stat = osOK;
  38242. 80107c4: 2300 movs r3, #0
  38243. 80107c6: 607b str r3, [r7, #4]
  38244. 80107c8: e002 b.n 80107d0 <osKernelInitialize+0x34>
  38245. } else {
  38246. stat = osError;
  38247. 80107ca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38248. 80107ce: 607b str r3, [r7, #4]
  38249. }
  38250. }
  38251. return (stat);
  38252. 80107d0: 687b ldr r3, [r7, #4]
  38253. }
  38254. 80107d2: 4618 mov r0, r3
  38255. 80107d4: 370c adds r7, #12
  38256. 80107d6: 46bd mov sp, r7
  38257. 80107d8: f85d 7b04 ldr.w r7, [sp], #4
  38258. 80107dc: 4770 bx lr
  38259. 80107de: bf00 nop
  38260. 80107e0: 240022fc .word 0x240022fc
  38261. 080107e4 <osKernelStart>:
  38262. }
  38263. return (state);
  38264. }
  38265. osStatus_t osKernelStart (void) {
  38266. 80107e4: b580 push {r7, lr}
  38267. 80107e6: b082 sub sp, #8
  38268. 80107e8: af00 add r7, sp, #0
  38269. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38270. 80107ea: f3ef 8305 mrs r3, IPSR
  38271. 80107ee: 603b str r3, [r7, #0]
  38272. return(result);
  38273. 80107f0: 683b ldr r3, [r7, #0]
  38274. osStatus_t stat;
  38275. if (IS_IRQ()) {
  38276. 80107f2: 2b00 cmp r3, #0
  38277. 80107f4: d003 beq.n 80107fe <osKernelStart+0x1a>
  38278. stat = osErrorISR;
  38279. 80107f6: f06f 0305 mvn.w r3, #5
  38280. 80107fa: 607b str r3, [r7, #4]
  38281. 80107fc: e010 b.n 8010820 <osKernelStart+0x3c>
  38282. }
  38283. else {
  38284. if (KernelState == osKernelReady) {
  38285. 80107fe: 4b0b ldr r3, [pc, #44] @ (801082c <osKernelStart+0x48>)
  38286. 8010800: 681b ldr r3, [r3, #0]
  38287. 8010802: 2b01 cmp r3, #1
  38288. 8010804: d109 bne.n 801081a <osKernelStart+0x36>
  38289. /* Ensure SVC priority is at the reset value */
  38290. SVC_Setup();
  38291. 8010806: f7ff ffbf bl 8010788 <SVC_Setup>
  38292. /* Change state to enable IRQ masking check */
  38293. KernelState = osKernelRunning;
  38294. 801080a: 4b08 ldr r3, [pc, #32] @ (801082c <osKernelStart+0x48>)
  38295. 801080c: 2202 movs r2, #2
  38296. 801080e: 601a str r2, [r3, #0]
  38297. /* Start the kernel scheduler */
  38298. vTaskStartScheduler();
  38299. 8010810: f002 fc3a bl 8013088 <vTaskStartScheduler>
  38300. stat = osOK;
  38301. 8010814: 2300 movs r3, #0
  38302. 8010816: 607b str r3, [r7, #4]
  38303. 8010818: e002 b.n 8010820 <osKernelStart+0x3c>
  38304. } else {
  38305. stat = osError;
  38306. 801081a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38307. 801081e: 607b str r3, [r7, #4]
  38308. }
  38309. }
  38310. return (stat);
  38311. 8010820: 687b ldr r3, [r7, #4]
  38312. }
  38313. 8010822: 4618 mov r0, r3
  38314. 8010824: 3708 adds r7, #8
  38315. 8010826: 46bd mov sp, r7
  38316. 8010828: bd80 pop {r7, pc}
  38317. 801082a: bf00 nop
  38318. 801082c: 240022fc .word 0x240022fc
  38319. 08010830 <osKernelGetTickCount>:
  38320. }
  38321. return (lock);
  38322. }
  38323. uint32_t osKernelGetTickCount (void) {
  38324. 8010830: b580 push {r7, lr}
  38325. 8010832: b082 sub sp, #8
  38326. 8010834: af00 add r7, sp, #0
  38327. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38328. 8010836: f3ef 8305 mrs r3, IPSR
  38329. 801083a: 603b str r3, [r7, #0]
  38330. return(result);
  38331. 801083c: 683b ldr r3, [r7, #0]
  38332. TickType_t ticks;
  38333. if (IS_IRQ()) {
  38334. 801083e: 2b00 cmp r3, #0
  38335. 8010840: d003 beq.n 801084a <osKernelGetTickCount+0x1a>
  38336. ticks = xTaskGetTickCountFromISR();
  38337. 8010842: f002 fd4d bl 80132e0 <xTaskGetTickCountFromISR>
  38338. 8010846: 6078 str r0, [r7, #4]
  38339. 8010848: e002 b.n 8010850 <osKernelGetTickCount+0x20>
  38340. } else {
  38341. ticks = xTaskGetTickCount();
  38342. 801084a: f002 fd39 bl 80132c0 <xTaskGetTickCount>
  38343. 801084e: 6078 str r0, [r7, #4]
  38344. }
  38345. return (ticks);
  38346. 8010850: 687b ldr r3, [r7, #4]
  38347. }
  38348. 8010852: 4618 mov r0, r3
  38349. 8010854: 3708 adds r7, #8
  38350. 8010856: 46bd mov sp, r7
  38351. 8010858: bd80 pop {r7, pc}
  38352. 0801085a <osThreadNew>:
  38353. return (configCPU_CLOCK_HZ);
  38354. }
  38355. /*---------------------------------------------------------------------------*/
  38356. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  38357. 801085a: b580 push {r7, lr}
  38358. 801085c: b08e sub sp, #56 @ 0x38
  38359. 801085e: af04 add r7, sp, #16
  38360. 8010860: 60f8 str r0, [r7, #12]
  38361. 8010862: 60b9 str r1, [r7, #8]
  38362. 8010864: 607a str r2, [r7, #4]
  38363. uint32_t stack;
  38364. TaskHandle_t hTask;
  38365. UBaseType_t prio;
  38366. int32_t mem;
  38367. hTask = NULL;
  38368. 8010866: 2300 movs r3, #0
  38369. 8010868: 613b str r3, [r7, #16]
  38370. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38371. 801086a: f3ef 8305 mrs r3, IPSR
  38372. 801086e: 617b str r3, [r7, #20]
  38373. return(result);
  38374. 8010870: 697b ldr r3, [r7, #20]
  38375. if (!IS_IRQ() && (func != NULL)) {
  38376. 8010872: 2b00 cmp r3, #0
  38377. 8010874: d17f bne.n 8010976 <osThreadNew+0x11c>
  38378. 8010876: 68fb ldr r3, [r7, #12]
  38379. 8010878: 2b00 cmp r3, #0
  38380. 801087a: d07c beq.n 8010976 <osThreadNew+0x11c>
  38381. stack = configMINIMAL_STACK_SIZE;
  38382. 801087c: f44f 7300 mov.w r3, #512 @ 0x200
  38383. 8010880: 623b str r3, [r7, #32]
  38384. prio = (UBaseType_t)osPriorityNormal;
  38385. 8010882: 2318 movs r3, #24
  38386. 8010884: 61fb str r3, [r7, #28]
  38387. name = NULL;
  38388. 8010886: 2300 movs r3, #0
  38389. 8010888: 627b str r3, [r7, #36] @ 0x24
  38390. mem = -1;
  38391. 801088a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38392. 801088e: 61bb str r3, [r7, #24]
  38393. if (attr != NULL) {
  38394. 8010890: 687b ldr r3, [r7, #4]
  38395. 8010892: 2b00 cmp r3, #0
  38396. 8010894: d045 beq.n 8010922 <osThreadNew+0xc8>
  38397. if (attr->name != NULL) {
  38398. 8010896: 687b ldr r3, [r7, #4]
  38399. 8010898: 681b ldr r3, [r3, #0]
  38400. 801089a: 2b00 cmp r3, #0
  38401. 801089c: d002 beq.n 80108a4 <osThreadNew+0x4a>
  38402. name = attr->name;
  38403. 801089e: 687b ldr r3, [r7, #4]
  38404. 80108a0: 681b ldr r3, [r3, #0]
  38405. 80108a2: 627b str r3, [r7, #36] @ 0x24
  38406. }
  38407. if (attr->priority != osPriorityNone) {
  38408. 80108a4: 687b ldr r3, [r7, #4]
  38409. 80108a6: 699b ldr r3, [r3, #24]
  38410. 80108a8: 2b00 cmp r3, #0
  38411. 80108aa: d002 beq.n 80108b2 <osThreadNew+0x58>
  38412. prio = (UBaseType_t)attr->priority;
  38413. 80108ac: 687b ldr r3, [r7, #4]
  38414. 80108ae: 699b ldr r3, [r3, #24]
  38415. 80108b0: 61fb str r3, [r7, #28]
  38416. }
  38417. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  38418. 80108b2: 69fb ldr r3, [r7, #28]
  38419. 80108b4: 2b00 cmp r3, #0
  38420. 80108b6: d008 beq.n 80108ca <osThreadNew+0x70>
  38421. 80108b8: 69fb ldr r3, [r7, #28]
  38422. 80108ba: 2b38 cmp r3, #56 @ 0x38
  38423. 80108bc: d805 bhi.n 80108ca <osThreadNew+0x70>
  38424. 80108be: 687b ldr r3, [r7, #4]
  38425. 80108c0: 685b ldr r3, [r3, #4]
  38426. 80108c2: f003 0301 and.w r3, r3, #1
  38427. 80108c6: 2b00 cmp r3, #0
  38428. 80108c8: d001 beq.n 80108ce <osThreadNew+0x74>
  38429. return (NULL);
  38430. 80108ca: 2300 movs r3, #0
  38431. 80108cc: e054 b.n 8010978 <osThreadNew+0x11e>
  38432. }
  38433. if (attr->stack_size > 0U) {
  38434. 80108ce: 687b ldr r3, [r7, #4]
  38435. 80108d0: 695b ldr r3, [r3, #20]
  38436. 80108d2: 2b00 cmp r3, #0
  38437. 80108d4: d003 beq.n 80108de <osThreadNew+0x84>
  38438. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  38439. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  38440. stack = attr->stack_size / sizeof(StackType_t);
  38441. 80108d6: 687b ldr r3, [r7, #4]
  38442. 80108d8: 695b ldr r3, [r3, #20]
  38443. 80108da: 089b lsrs r3, r3, #2
  38444. 80108dc: 623b str r3, [r7, #32]
  38445. }
  38446. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  38447. 80108de: 687b ldr r3, [r7, #4]
  38448. 80108e0: 689b ldr r3, [r3, #8]
  38449. 80108e2: 2b00 cmp r3, #0
  38450. 80108e4: d00e beq.n 8010904 <osThreadNew+0xaa>
  38451. 80108e6: 687b ldr r3, [r7, #4]
  38452. 80108e8: 68db ldr r3, [r3, #12]
  38453. 80108ea: 2ba7 cmp r3, #167 @ 0xa7
  38454. 80108ec: d90a bls.n 8010904 <osThreadNew+0xaa>
  38455. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  38456. 80108ee: 687b ldr r3, [r7, #4]
  38457. 80108f0: 691b ldr r3, [r3, #16]
  38458. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  38459. 80108f2: 2b00 cmp r3, #0
  38460. 80108f4: d006 beq.n 8010904 <osThreadNew+0xaa>
  38461. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  38462. 80108f6: 687b ldr r3, [r7, #4]
  38463. 80108f8: 695b ldr r3, [r3, #20]
  38464. 80108fa: 2b00 cmp r3, #0
  38465. 80108fc: d002 beq.n 8010904 <osThreadNew+0xaa>
  38466. mem = 1;
  38467. 80108fe: 2301 movs r3, #1
  38468. 8010900: 61bb str r3, [r7, #24]
  38469. 8010902: e010 b.n 8010926 <osThreadNew+0xcc>
  38470. }
  38471. else {
  38472. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  38473. 8010904: 687b ldr r3, [r7, #4]
  38474. 8010906: 689b ldr r3, [r3, #8]
  38475. 8010908: 2b00 cmp r3, #0
  38476. 801090a: d10c bne.n 8010926 <osThreadNew+0xcc>
  38477. 801090c: 687b ldr r3, [r7, #4]
  38478. 801090e: 68db ldr r3, [r3, #12]
  38479. 8010910: 2b00 cmp r3, #0
  38480. 8010912: d108 bne.n 8010926 <osThreadNew+0xcc>
  38481. 8010914: 687b ldr r3, [r7, #4]
  38482. 8010916: 691b ldr r3, [r3, #16]
  38483. 8010918: 2b00 cmp r3, #0
  38484. 801091a: d104 bne.n 8010926 <osThreadNew+0xcc>
  38485. mem = 0;
  38486. 801091c: 2300 movs r3, #0
  38487. 801091e: 61bb str r3, [r7, #24]
  38488. 8010920: e001 b.n 8010926 <osThreadNew+0xcc>
  38489. }
  38490. }
  38491. }
  38492. else {
  38493. mem = 0;
  38494. 8010922: 2300 movs r3, #0
  38495. 8010924: 61bb str r3, [r7, #24]
  38496. }
  38497. if (mem == 1) {
  38498. 8010926: 69bb ldr r3, [r7, #24]
  38499. 8010928: 2b01 cmp r3, #1
  38500. 801092a: d110 bne.n 801094e <osThreadNew+0xf4>
  38501. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  38502. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  38503. 801092c: 687b ldr r3, [r7, #4]
  38504. 801092e: 691b ldr r3, [r3, #16]
  38505. (StaticTask_t *)attr->cb_mem);
  38506. 8010930: 687a ldr r2, [r7, #4]
  38507. 8010932: 6892 ldr r2, [r2, #8]
  38508. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  38509. 8010934: 9202 str r2, [sp, #8]
  38510. 8010936: 9301 str r3, [sp, #4]
  38511. 8010938: 69fb ldr r3, [r7, #28]
  38512. 801093a: 9300 str r3, [sp, #0]
  38513. 801093c: 68bb ldr r3, [r7, #8]
  38514. 801093e: 6a3a ldr r2, [r7, #32]
  38515. 8010940: 6a79 ldr r1, [r7, #36] @ 0x24
  38516. 8010942: 68f8 ldr r0, [r7, #12]
  38517. 8010944: f002 f9ac bl 8012ca0 <xTaskCreateStatic>
  38518. 8010948: 4603 mov r3, r0
  38519. 801094a: 613b str r3, [r7, #16]
  38520. 801094c: e013 b.n 8010976 <osThreadNew+0x11c>
  38521. #endif
  38522. }
  38523. else {
  38524. if (mem == 0) {
  38525. 801094e: 69bb ldr r3, [r7, #24]
  38526. 8010950: 2b00 cmp r3, #0
  38527. 8010952: d110 bne.n 8010976 <osThreadNew+0x11c>
  38528. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  38529. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  38530. 8010954: 6a3b ldr r3, [r7, #32]
  38531. 8010956: b29a uxth r2, r3
  38532. 8010958: f107 0310 add.w r3, r7, #16
  38533. 801095c: 9301 str r3, [sp, #4]
  38534. 801095e: 69fb ldr r3, [r7, #28]
  38535. 8010960: 9300 str r3, [sp, #0]
  38536. 8010962: 68bb ldr r3, [r7, #8]
  38537. 8010964: 6a79 ldr r1, [r7, #36] @ 0x24
  38538. 8010966: 68f8 ldr r0, [r7, #12]
  38539. 8010968: f002 f9fa bl 8012d60 <xTaskCreate>
  38540. 801096c: 4603 mov r3, r0
  38541. 801096e: 2b01 cmp r3, #1
  38542. 8010970: d001 beq.n 8010976 <osThreadNew+0x11c>
  38543. hTask = NULL;
  38544. 8010972: 2300 movs r3, #0
  38545. 8010974: 613b str r3, [r7, #16]
  38546. #endif
  38547. }
  38548. }
  38549. }
  38550. return ((osThreadId_t)hTask);
  38551. 8010976: 693b ldr r3, [r7, #16]
  38552. }
  38553. 8010978: 4618 mov r0, r3
  38554. 801097a: 3728 adds r7, #40 @ 0x28
  38555. 801097c: 46bd mov sp, r7
  38556. 801097e: bd80 pop {r7, pc}
  38557. 08010980 <osThreadGetId>:
  38558. }
  38559. return (name);
  38560. }
  38561. osThreadId_t osThreadGetId (void) {
  38562. 8010980: b580 push {r7, lr}
  38563. 8010982: b082 sub sp, #8
  38564. 8010984: af00 add r7, sp, #0
  38565. osThreadId_t id;
  38566. id = (osThreadId_t)xTaskGetCurrentTaskHandle();
  38567. 8010986: f003 f82b bl 80139e0 <xTaskGetCurrentTaskHandle>
  38568. 801098a: 6078 str r0, [r7, #4]
  38569. return (id);
  38570. 801098c: 687b ldr r3, [r7, #4]
  38571. }
  38572. 801098e: 4618 mov r0, r3
  38573. 8010990: 3708 adds r7, #8
  38574. 8010992: 46bd mov sp, r7
  38575. 8010994: bd80 pop {r7, pc}
  38576. 08010996 <osDelay>:
  38577. /* Return flags before clearing */
  38578. return (rflags);
  38579. }
  38580. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  38581. osStatus_t osDelay (uint32_t ticks) {
  38582. 8010996: b580 push {r7, lr}
  38583. 8010998: b084 sub sp, #16
  38584. 801099a: af00 add r7, sp, #0
  38585. 801099c: 6078 str r0, [r7, #4]
  38586. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38587. 801099e: f3ef 8305 mrs r3, IPSR
  38588. 80109a2: 60bb str r3, [r7, #8]
  38589. return(result);
  38590. 80109a4: 68bb ldr r3, [r7, #8]
  38591. osStatus_t stat;
  38592. if (IS_IRQ()) {
  38593. 80109a6: 2b00 cmp r3, #0
  38594. 80109a8: d003 beq.n 80109b2 <osDelay+0x1c>
  38595. stat = osErrorISR;
  38596. 80109aa: f06f 0305 mvn.w r3, #5
  38597. 80109ae: 60fb str r3, [r7, #12]
  38598. 80109b0: e007 b.n 80109c2 <osDelay+0x2c>
  38599. }
  38600. else {
  38601. stat = osOK;
  38602. 80109b2: 2300 movs r3, #0
  38603. 80109b4: 60fb str r3, [r7, #12]
  38604. if (ticks != 0U) {
  38605. 80109b6: 687b ldr r3, [r7, #4]
  38606. 80109b8: 2b00 cmp r3, #0
  38607. 80109ba: d002 beq.n 80109c2 <osDelay+0x2c>
  38608. vTaskDelay(ticks);
  38609. 80109bc: 6878 ldr r0, [r7, #4]
  38610. 80109be: f002 fb2d bl 801301c <vTaskDelay>
  38611. }
  38612. }
  38613. return (stat);
  38614. 80109c2: 68fb ldr r3, [r7, #12]
  38615. }
  38616. 80109c4: 4618 mov r0, r3
  38617. 80109c6: 3710 adds r7, #16
  38618. 80109c8: 46bd mov sp, r7
  38619. 80109ca: bd80 pop {r7, pc}
  38620. 080109cc <osMutexNew>:
  38621. }
  38622. /*---------------------------------------------------------------------------*/
  38623. #if (configUSE_OS2_MUTEX == 1)
  38624. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  38625. 80109cc: b580 push {r7, lr}
  38626. 80109ce: b088 sub sp, #32
  38627. 80109d0: af00 add r7, sp, #0
  38628. 80109d2: 6078 str r0, [r7, #4]
  38629. int32_t mem;
  38630. #if (configQUEUE_REGISTRY_SIZE > 0)
  38631. const char *name;
  38632. #endif
  38633. hMutex = NULL;
  38634. 80109d4: 2300 movs r3, #0
  38635. 80109d6: 61fb str r3, [r7, #28]
  38636. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38637. 80109d8: f3ef 8305 mrs r3, IPSR
  38638. 80109dc: 60bb str r3, [r7, #8]
  38639. return(result);
  38640. 80109de: 68bb ldr r3, [r7, #8]
  38641. if (!IS_IRQ()) {
  38642. 80109e0: 2b00 cmp r3, #0
  38643. 80109e2: d174 bne.n 8010ace <osMutexNew+0x102>
  38644. if (attr != NULL) {
  38645. 80109e4: 687b ldr r3, [r7, #4]
  38646. 80109e6: 2b00 cmp r3, #0
  38647. 80109e8: d003 beq.n 80109f2 <osMutexNew+0x26>
  38648. type = attr->attr_bits;
  38649. 80109ea: 687b ldr r3, [r7, #4]
  38650. 80109ec: 685b ldr r3, [r3, #4]
  38651. 80109ee: 61bb str r3, [r7, #24]
  38652. 80109f0: e001 b.n 80109f6 <osMutexNew+0x2a>
  38653. } else {
  38654. type = 0U;
  38655. 80109f2: 2300 movs r3, #0
  38656. 80109f4: 61bb str r3, [r7, #24]
  38657. }
  38658. if ((type & osMutexRecursive) == osMutexRecursive) {
  38659. 80109f6: 69bb ldr r3, [r7, #24]
  38660. 80109f8: f003 0301 and.w r3, r3, #1
  38661. 80109fc: 2b00 cmp r3, #0
  38662. 80109fe: d002 beq.n 8010a06 <osMutexNew+0x3a>
  38663. rmtx = 1U;
  38664. 8010a00: 2301 movs r3, #1
  38665. 8010a02: 617b str r3, [r7, #20]
  38666. 8010a04: e001 b.n 8010a0a <osMutexNew+0x3e>
  38667. } else {
  38668. rmtx = 0U;
  38669. 8010a06: 2300 movs r3, #0
  38670. 8010a08: 617b str r3, [r7, #20]
  38671. }
  38672. if ((type & osMutexRobust) != osMutexRobust) {
  38673. 8010a0a: 69bb ldr r3, [r7, #24]
  38674. 8010a0c: f003 0308 and.w r3, r3, #8
  38675. 8010a10: 2b00 cmp r3, #0
  38676. 8010a12: d15c bne.n 8010ace <osMutexNew+0x102>
  38677. mem = -1;
  38678. 8010a14: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38679. 8010a18: 613b str r3, [r7, #16]
  38680. if (attr != NULL) {
  38681. 8010a1a: 687b ldr r3, [r7, #4]
  38682. 8010a1c: 2b00 cmp r3, #0
  38683. 8010a1e: d015 beq.n 8010a4c <osMutexNew+0x80>
  38684. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  38685. 8010a20: 687b ldr r3, [r7, #4]
  38686. 8010a22: 689b ldr r3, [r3, #8]
  38687. 8010a24: 2b00 cmp r3, #0
  38688. 8010a26: d006 beq.n 8010a36 <osMutexNew+0x6a>
  38689. 8010a28: 687b ldr r3, [r7, #4]
  38690. 8010a2a: 68db ldr r3, [r3, #12]
  38691. 8010a2c: 2b4f cmp r3, #79 @ 0x4f
  38692. 8010a2e: d902 bls.n 8010a36 <osMutexNew+0x6a>
  38693. mem = 1;
  38694. 8010a30: 2301 movs r3, #1
  38695. 8010a32: 613b str r3, [r7, #16]
  38696. 8010a34: e00c b.n 8010a50 <osMutexNew+0x84>
  38697. }
  38698. else {
  38699. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  38700. 8010a36: 687b ldr r3, [r7, #4]
  38701. 8010a38: 689b ldr r3, [r3, #8]
  38702. 8010a3a: 2b00 cmp r3, #0
  38703. 8010a3c: d108 bne.n 8010a50 <osMutexNew+0x84>
  38704. 8010a3e: 687b ldr r3, [r7, #4]
  38705. 8010a40: 68db ldr r3, [r3, #12]
  38706. 8010a42: 2b00 cmp r3, #0
  38707. 8010a44: d104 bne.n 8010a50 <osMutexNew+0x84>
  38708. mem = 0;
  38709. 8010a46: 2300 movs r3, #0
  38710. 8010a48: 613b str r3, [r7, #16]
  38711. 8010a4a: e001 b.n 8010a50 <osMutexNew+0x84>
  38712. }
  38713. }
  38714. }
  38715. else {
  38716. mem = 0;
  38717. 8010a4c: 2300 movs r3, #0
  38718. 8010a4e: 613b str r3, [r7, #16]
  38719. }
  38720. if (mem == 1) {
  38721. 8010a50: 693b ldr r3, [r7, #16]
  38722. 8010a52: 2b01 cmp r3, #1
  38723. 8010a54: d112 bne.n 8010a7c <osMutexNew+0xb0>
  38724. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  38725. if (rmtx != 0U) {
  38726. 8010a56: 697b ldr r3, [r7, #20]
  38727. 8010a58: 2b00 cmp r3, #0
  38728. 8010a5a: d007 beq.n 8010a6c <osMutexNew+0xa0>
  38729. #if (configUSE_RECURSIVE_MUTEXES == 1)
  38730. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  38731. 8010a5c: 687b ldr r3, [r7, #4]
  38732. 8010a5e: 689b ldr r3, [r3, #8]
  38733. 8010a60: 4619 mov r1, r3
  38734. 8010a62: 2004 movs r0, #4
  38735. 8010a64: f000 fdd9 bl 801161a <xQueueCreateMutexStatic>
  38736. 8010a68: 61f8 str r0, [r7, #28]
  38737. 8010a6a: e016 b.n 8010a9a <osMutexNew+0xce>
  38738. #endif
  38739. }
  38740. else {
  38741. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  38742. 8010a6c: 687b ldr r3, [r7, #4]
  38743. 8010a6e: 689b ldr r3, [r3, #8]
  38744. 8010a70: 4619 mov r1, r3
  38745. 8010a72: 2001 movs r0, #1
  38746. 8010a74: f000 fdd1 bl 801161a <xQueueCreateMutexStatic>
  38747. 8010a78: 61f8 str r0, [r7, #28]
  38748. 8010a7a: e00e b.n 8010a9a <osMutexNew+0xce>
  38749. }
  38750. #endif
  38751. }
  38752. else {
  38753. if (mem == 0) {
  38754. 8010a7c: 693b ldr r3, [r7, #16]
  38755. 8010a7e: 2b00 cmp r3, #0
  38756. 8010a80: d10b bne.n 8010a9a <osMutexNew+0xce>
  38757. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  38758. if (rmtx != 0U) {
  38759. 8010a82: 697b ldr r3, [r7, #20]
  38760. 8010a84: 2b00 cmp r3, #0
  38761. 8010a86: d004 beq.n 8010a92 <osMutexNew+0xc6>
  38762. #if (configUSE_RECURSIVE_MUTEXES == 1)
  38763. hMutex = xSemaphoreCreateRecursiveMutex ();
  38764. 8010a88: 2004 movs r0, #4
  38765. 8010a8a: f000 fdae bl 80115ea <xQueueCreateMutex>
  38766. 8010a8e: 61f8 str r0, [r7, #28]
  38767. 8010a90: e003 b.n 8010a9a <osMutexNew+0xce>
  38768. #endif
  38769. } else {
  38770. hMutex = xSemaphoreCreateMutex ();
  38771. 8010a92: 2001 movs r0, #1
  38772. 8010a94: f000 fda9 bl 80115ea <xQueueCreateMutex>
  38773. 8010a98: 61f8 str r0, [r7, #28]
  38774. #endif
  38775. }
  38776. }
  38777. #if (configQUEUE_REGISTRY_SIZE > 0)
  38778. if (hMutex != NULL) {
  38779. 8010a9a: 69fb ldr r3, [r7, #28]
  38780. 8010a9c: 2b00 cmp r3, #0
  38781. 8010a9e: d00c beq.n 8010aba <osMutexNew+0xee>
  38782. if (attr != NULL) {
  38783. 8010aa0: 687b ldr r3, [r7, #4]
  38784. 8010aa2: 2b00 cmp r3, #0
  38785. 8010aa4: d003 beq.n 8010aae <osMutexNew+0xe2>
  38786. name = attr->name;
  38787. 8010aa6: 687b ldr r3, [r7, #4]
  38788. 8010aa8: 681b ldr r3, [r3, #0]
  38789. 8010aaa: 60fb str r3, [r7, #12]
  38790. 8010aac: e001 b.n 8010ab2 <osMutexNew+0xe6>
  38791. } else {
  38792. name = NULL;
  38793. 8010aae: 2300 movs r3, #0
  38794. 8010ab0: 60fb str r3, [r7, #12]
  38795. }
  38796. vQueueAddToRegistry (hMutex, name);
  38797. 8010ab2: 68f9 ldr r1, [r7, #12]
  38798. 8010ab4: 69f8 ldr r0, [r7, #28]
  38799. 8010ab6: f001 fcd3 bl 8012460 <vQueueAddToRegistry>
  38800. }
  38801. #endif
  38802. if ((hMutex != NULL) && (rmtx != 0U)) {
  38803. 8010aba: 69fb ldr r3, [r7, #28]
  38804. 8010abc: 2b00 cmp r3, #0
  38805. 8010abe: d006 beq.n 8010ace <osMutexNew+0x102>
  38806. 8010ac0: 697b ldr r3, [r7, #20]
  38807. 8010ac2: 2b00 cmp r3, #0
  38808. 8010ac4: d003 beq.n 8010ace <osMutexNew+0x102>
  38809. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  38810. 8010ac6: 69fb ldr r3, [r7, #28]
  38811. 8010ac8: f043 0301 orr.w r3, r3, #1
  38812. 8010acc: 61fb str r3, [r7, #28]
  38813. }
  38814. }
  38815. }
  38816. return ((osMutexId_t)hMutex);
  38817. 8010ace: 69fb ldr r3, [r7, #28]
  38818. }
  38819. 8010ad0: 4618 mov r0, r3
  38820. 8010ad2: 3720 adds r7, #32
  38821. 8010ad4: 46bd mov sp, r7
  38822. 8010ad6: bd80 pop {r7, pc}
  38823. 08010ad8 <osMutexAcquire>:
  38824. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  38825. 8010ad8: b580 push {r7, lr}
  38826. 8010ada: b086 sub sp, #24
  38827. 8010adc: af00 add r7, sp, #0
  38828. 8010ade: 6078 str r0, [r7, #4]
  38829. 8010ae0: 6039 str r1, [r7, #0]
  38830. SemaphoreHandle_t hMutex;
  38831. osStatus_t stat;
  38832. uint32_t rmtx;
  38833. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  38834. 8010ae2: 687b ldr r3, [r7, #4]
  38835. 8010ae4: f023 0301 bic.w r3, r3, #1
  38836. 8010ae8: 613b str r3, [r7, #16]
  38837. rmtx = (uint32_t)mutex_id & 1U;
  38838. 8010aea: 687b ldr r3, [r7, #4]
  38839. 8010aec: f003 0301 and.w r3, r3, #1
  38840. 8010af0: 60fb str r3, [r7, #12]
  38841. stat = osOK;
  38842. 8010af2: 2300 movs r3, #0
  38843. 8010af4: 617b str r3, [r7, #20]
  38844. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38845. 8010af6: f3ef 8305 mrs r3, IPSR
  38846. 8010afa: 60bb str r3, [r7, #8]
  38847. return(result);
  38848. 8010afc: 68bb ldr r3, [r7, #8]
  38849. if (IS_IRQ()) {
  38850. 8010afe: 2b00 cmp r3, #0
  38851. 8010b00: d003 beq.n 8010b0a <osMutexAcquire+0x32>
  38852. stat = osErrorISR;
  38853. 8010b02: f06f 0305 mvn.w r3, #5
  38854. 8010b06: 617b str r3, [r7, #20]
  38855. 8010b08: e02c b.n 8010b64 <osMutexAcquire+0x8c>
  38856. }
  38857. else if (hMutex == NULL) {
  38858. 8010b0a: 693b ldr r3, [r7, #16]
  38859. 8010b0c: 2b00 cmp r3, #0
  38860. 8010b0e: d103 bne.n 8010b18 <osMutexAcquire+0x40>
  38861. stat = osErrorParameter;
  38862. 8010b10: f06f 0303 mvn.w r3, #3
  38863. 8010b14: 617b str r3, [r7, #20]
  38864. 8010b16: e025 b.n 8010b64 <osMutexAcquire+0x8c>
  38865. }
  38866. else {
  38867. if (rmtx != 0U) {
  38868. 8010b18: 68fb ldr r3, [r7, #12]
  38869. 8010b1a: 2b00 cmp r3, #0
  38870. 8010b1c: d011 beq.n 8010b42 <osMutexAcquire+0x6a>
  38871. #if (configUSE_RECURSIVE_MUTEXES == 1)
  38872. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  38873. 8010b1e: 6839 ldr r1, [r7, #0]
  38874. 8010b20: 6938 ldr r0, [r7, #16]
  38875. 8010b22: f000 fdca bl 80116ba <xQueueTakeMutexRecursive>
  38876. 8010b26: 4603 mov r3, r0
  38877. 8010b28: 2b01 cmp r3, #1
  38878. 8010b2a: d01b beq.n 8010b64 <osMutexAcquire+0x8c>
  38879. if (timeout != 0U) {
  38880. 8010b2c: 683b ldr r3, [r7, #0]
  38881. 8010b2e: 2b00 cmp r3, #0
  38882. 8010b30: d003 beq.n 8010b3a <osMutexAcquire+0x62>
  38883. stat = osErrorTimeout;
  38884. 8010b32: f06f 0301 mvn.w r3, #1
  38885. 8010b36: 617b str r3, [r7, #20]
  38886. 8010b38: e014 b.n 8010b64 <osMutexAcquire+0x8c>
  38887. } else {
  38888. stat = osErrorResource;
  38889. 8010b3a: f06f 0302 mvn.w r3, #2
  38890. 8010b3e: 617b str r3, [r7, #20]
  38891. 8010b40: e010 b.n 8010b64 <osMutexAcquire+0x8c>
  38892. }
  38893. }
  38894. #endif
  38895. }
  38896. else {
  38897. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  38898. 8010b42: 6839 ldr r1, [r7, #0]
  38899. 8010b44: 6938 ldr r0, [r7, #16]
  38900. 8010b46: f001 f96f bl 8011e28 <xQueueSemaphoreTake>
  38901. 8010b4a: 4603 mov r3, r0
  38902. 8010b4c: 2b01 cmp r3, #1
  38903. 8010b4e: d009 beq.n 8010b64 <osMutexAcquire+0x8c>
  38904. if (timeout != 0U) {
  38905. 8010b50: 683b ldr r3, [r7, #0]
  38906. 8010b52: 2b00 cmp r3, #0
  38907. 8010b54: d003 beq.n 8010b5e <osMutexAcquire+0x86>
  38908. stat = osErrorTimeout;
  38909. 8010b56: f06f 0301 mvn.w r3, #1
  38910. 8010b5a: 617b str r3, [r7, #20]
  38911. 8010b5c: e002 b.n 8010b64 <osMutexAcquire+0x8c>
  38912. } else {
  38913. stat = osErrorResource;
  38914. 8010b5e: f06f 0302 mvn.w r3, #2
  38915. 8010b62: 617b str r3, [r7, #20]
  38916. }
  38917. }
  38918. }
  38919. }
  38920. return (stat);
  38921. 8010b64: 697b ldr r3, [r7, #20]
  38922. }
  38923. 8010b66: 4618 mov r0, r3
  38924. 8010b68: 3718 adds r7, #24
  38925. 8010b6a: 46bd mov sp, r7
  38926. 8010b6c: bd80 pop {r7, pc}
  38927. 08010b6e <osMutexRelease>:
  38928. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  38929. 8010b6e: b580 push {r7, lr}
  38930. 8010b70: b086 sub sp, #24
  38931. 8010b72: af00 add r7, sp, #0
  38932. 8010b74: 6078 str r0, [r7, #4]
  38933. SemaphoreHandle_t hMutex;
  38934. osStatus_t stat;
  38935. uint32_t rmtx;
  38936. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  38937. 8010b76: 687b ldr r3, [r7, #4]
  38938. 8010b78: f023 0301 bic.w r3, r3, #1
  38939. 8010b7c: 613b str r3, [r7, #16]
  38940. rmtx = (uint32_t)mutex_id & 1U;
  38941. 8010b7e: 687b ldr r3, [r7, #4]
  38942. 8010b80: f003 0301 and.w r3, r3, #1
  38943. 8010b84: 60fb str r3, [r7, #12]
  38944. stat = osOK;
  38945. 8010b86: 2300 movs r3, #0
  38946. 8010b88: 617b str r3, [r7, #20]
  38947. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38948. 8010b8a: f3ef 8305 mrs r3, IPSR
  38949. 8010b8e: 60bb str r3, [r7, #8]
  38950. return(result);
  38951. 8010b90: 68bb ldr r3, [r7, #8]
  38952. if (IS_IRQ()) {
  38953. 8010b92: 2b00 cmp r3, #0
  38954. 8010b94: d003 beq.n 8010b9e <osMutexRelease+0x30>
  38955. stat = osErrorISR;
  38956. 8010b96: f06f 0305 mvn.w r3, #5
  38957. 8010b9a: 617b str r3, [r7, #20]
  38958. 8010b9c: e01f b.n 8010bde <osMutexRelease+0x70>
  38959. }
  38960. else if (hMutex == NULL) {
  38961. 8010b9e: 693b ldr r3, [r7, #16]
  38962. 8010ba0: 2b00 cmp r3, #0
  38963. 8010ba2: d103 bne.n 8010bac <osMutexRelease+0x3e>
  38964. stat = osErrorParameter;
  38965. 8010ba4: f06f 0303 mvn.w r3, #3
  38966. 8010ba8: 617b str r3, [r7, #20]
  38967. 8010baa: e018 b.n 8010bde <osMutexRelease+0x70>
  38968. }
  38969. else {
  38970. if (rmtx != 0U) {
  38971. 8010bac: 68fb ldr r3, [r7, #12]
  38972. 8010bae: 2b00 cmp r3, #0
  38973. 8010bb0: d009 beq.n 8010bc6 <osMutexRelease+0x58>
  38974. #if (configUSE_RECURSIVE_MUTEXES == 1)
  38975. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  38976. 8010bb2: 6938 ldr r0, [r7, #16]
  38977. 8010bb4: f000 fd4c bl 8011650 <xQueueGiveMutexRecursive>
  38978. 8010bb8: 4603 mov r3, r0
  38979. 8010bba: 2b01 cmp r3, #1
  38980. 8010bbc: d00f beq.n 8010bde <osMutexRelease+0x70>
  38981. stat = osErrorResource;
  38982. 8010bbe: f06f 0302 mvn.w r3, #2
  38983. 8010bc2: 617b str r3, [r7, #20]
  38984. 8010bc4: e00b b.n 8010bde <osMutexRelease+0x70>
  38985. }
  38986. #endif
  38987. }
  38988. else {
  38989. if (xSemaphoreGive (hMutex) != pdPASS) {
  38990. 8010bc6: 2300 movs r3, #0
  38991. 8010bc8: 2200 movs r2, #0
  38992. 8010bca: 2100 movs r1, #0
  38993. 8010bcc: 6938 ldr r0, [r7, #16]
  38994. 8010bce: f000 fe19 bl 8011804 <xQueueGenericSend>
  38995. 8010bd2: 4603 mov r3, r0
  38996. 8010bd4: 2b01 cmp r3, #1
  38997. 8010bd6: d002 beq.n 8010bde <osMutexRelease+0x70>
  38998. stat = osErrorResource;
  38999. 8010bd8: f06f 0302 mvn.w r3, #2
  39000. 8010bdc: 617b str r3, [r7, #20]
  39001. }
  39002. }
  39003. }
  39004. return (stat);
  39005. 8010bde: 697b ldr r3, [r7, #20]
  39006. }
  39007. 8010be0: 4618 mov r0, r3
  39008. 8010be2: 3718 adds r7, #24
  39009. 8010be4: 46bd mov sp, r7
  39010. 8010be6: bd80 pop {r7, pc}
  39011. 08010be8 <osSemaphoreNew>:
  39012. }
  39013. #endif /* (configUSE_OS2_MUTEX == 1) */
  39014. /*---------------------------------------------------------------------------*/
  39015. osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr) {
  39016. 8010be8: b580 push {r7, lr}
  39017. 8010bea: b08a sub sp, #40 @ 0x28
  39018. 8010bec: af02 add r7, sp, #8
  39019. 8010bee: 60f8 str r0, [r7, #12]
  39020. 8010bf0: 60b9 str r1, [r7, #8]
  39021. 8010bf2: 607a str r2, [r7, #4]
  39022. int32_t mem;
  39023. #if (configQUEUE_REGISTRY_SIZE > 0)
  39024. const char *name;
  39025. #endif
  39026. hSemaphore = NULL;
  39027. 8010bf4: 2300 movs r3, #0
  39028. 8010bf6: 61fb str r3, [r7, #28]
  39029. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39030. 8010bf8: f3ef 8305 mrs r3, IPSR
  39031. 8010bfc: 613b str r3, [r7, #16]
  39032. return(result);
  39033. 8010bfe: 693b ldr r3, [r7, #16]
  39034. if (!IS_IRQ() && (max_count > 0U) && (initial_count <= max_count)) {
  39035. 8010c00: 2b00 cmp r3, #0
  39036. 8010c02: d175 bne.n 8010cf0 <osSemaphoreNew+0x108>
  39037. 8010c04: 68fb ldr r3, [r7, #12]
  39038. 8010c06: 2b00 cmp r3, #0
  39039. 8010c08: d072 beq.n 8010cf0 <osSemaphoreNew+0x108>
  39040. 8010c0a: 68ba ldr r2, [r7, #8]
  39041. 8010c0c: 68fb ldr r3, [r7, #12]
  39042. 8010c0e: 429a cmp r2, r3
  39043. 8010c10: d86e bhi.n 8010cf0 <osSemaphoreNew+0x108>
  39044. mem = -1;
  39045. 8010c12: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39046. 8010c16: 61bb str r3, [r7, #24]
  39047. if (attr != NULL) {
  39048. 8010c18: 687b ldr r3, [r7, #4]
  39049. 8010c1a: 2b00 cmp r3, #0
  39050. 8010c1c: d015 beq.n 8010c4a <osSemaphoreNew+0x62>
  39051. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  39052. 8010c1e: 687b ldr r3, [r7, #4]
  39053. 8010c20: 689b ldr r3, [r3, #8]
  39054. 8010c22: 2b00 cmp r3, #0
  39055. 8010c24: d006 beq.n 8010c34 <osSemaphoreNew+0x4c>
  39056. 8010c26: 687b ldr r3, [r7, #4]
  39057. 8010c28: 68db ldr r3, [r3, #12]
  39058. 8010c2a: 2b4f cmp r3, #79 @ 0x4f
  39059. 8010c2c: d902 bls.n 8010c34 <osSemaphoreNew+0x4c>
  39060. mem = 1;
  39061. 8010c2e: 2301 movs r3, #1
  39062. 8010c30: 61bb str r3, [r7, #24]
  39063. 8010c32: e00c b.n 8010c4e <osSemaphoreNew+0x66>
  39064. }
  39065. else {
  39066. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  39067. 8010c34: 687b ldr r3, [r7, #4]
  39068. 8010c36: 689b ldr r3, [r3, #8]
  39069. 8010c38: 2b00 cmp r3, #0
  39070. 8010c3a: d108 bne.n 8010c4e <osSemaphoreNew+0x66>
  39071. 8010c3c: 687b ldr r3, [r7, #4]
  39072. 8010c3e: 68db ldr r3, [r3, #12]
  39073. 8010c40: 2b00 cmp r3, #0
  39074. 8010c42: d104 bne.n 8010c4e <osSemaphoreNew+0x66>
  39075. mem = 0;
  39076. 8010c44: 2300 movs r3, #0
  39077. 8010c46: 61bb str r3, [r7, #24]
  39078. 8010c48: e001 b.n 8010c4e <osSemaphoreNew+0x66>
  39079. }
  39080. }
  39081. }
  39082. else {
  39083. mem = 0;
  39084. 8010c4a: 2300 movs r3, #0
  39085. 8010c4c: 61bb str r3, [r7, #24]
  39086. }
  39087. if (mem != -1) {
  39088. 8010c4e: 69bb ldr r3, [r7, #24]
  39089. 8010c50: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  39090. 8010c54: d04c beq.n 8010cf0 <osSemaphoreNew+0x108>
  39091. if (max_count == 1U) {
  39092. 8010c56: 68fb ldr r3, [r7, #12]
  39093. 8010c58: 2b01 cmp r3, #1
  39094. 8010c5a: d128 bne.n 8010cae <osSemaphoreNew+0xc6>
  39095. if (mem == 1) {
  39096. 8010c5c: 69bb ldr r3, [r7, #24]
  39097. 8010c5e: 2b01 cmp r3, #1
  39098. 8010c60: d10a bne.n 8010c78 <osSemaphoreNew+0x90>
  39099. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39100. hSemaphore = xSemaphoreCreateBinaryStatic ((StaticSemaphore_t *)attr->cb_mem);
  39101. 8010c62: 687b ldr r3, [r7, #4]
  39102. 8010c64: 689b ldr r3, [r3, #8]
  39103. 8010c66: 2203 movs r2, #3
  39104. 8010c68: 9200 str r2, [sp, #0]
  39105. 8010c6a: 2200 movs r2, #0
  39106. 8010c6c: 2100 movs r1, #0
  39107. 8010c6e: 2001 movs r0, #1
  39108. 8010c70: f000 fbc6 bl 8011400 <xQueueGenericCreateStatic>
  39109. 8010c74: 61f8 str r0, [r7, #28]
  39110. 8010c76: e005 b.n 8010c84 <osSemaphoreNew+0x9c>
  39111. #endif
  39112. }
  39113. else {
  39114. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39115. hSemaphore = xSemaphoreCreateBinary();
  39116. 8010c78: 2203 movs r2, #3
  39117. 8010c7a: 2100 movs r1, #0
  39118. 8010c7c: 2001 movs r0, #1
  39119. 8010c7e: f000 fc3c bl 80114fa <xQueueGenericCreate>
  39120. 8010c82: 61f8 str r0, [r7, #28]
  39121. #endif
  39122. }
  39123. if ((hSemaphore != NULL) && (initial_count != 0U)) {
  39124. 8010c84: 69fb ldr r3, [r7, #28]
  39125. 8010c86: 2b00 cmp r3, #0
  39126. 8010c88: d022 beq.n 8010cd0 <osSemaphoreNew+0xe8>
  39127. 8010c8a: 68bb ldr r3, [r7, #8]
  39128. 8010c8c: 2b00 cmp r3, #0
  39129. 8010c8e: d01f beq.n 8010cd0 <osSemaphoreNew+0xe8>
  39130. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  39131. 8010c90: 2300 movs r3, #0
  39132. 8010c92: 2200 movs r2, #0
  39133. 8010c94: 2100 movs r1, #0
  39134. 8010c96: 69f8 ldr r0, [r7, #28]
  39135. 8010c98: f000 fdb4 bl 8011804 <xQueueGenericSend>
  39136. 8010c9c: 4603 mov r3, r0
  39137. 8010c9e: 2b01 cmp r3, #1
  39138. 8010ca0: d016 beq.n 8010cd0 <osSemaphoreNew+0xe8>
  39139. vSemaphoreDelete (hSemaphore);
  39140. 8010ca2: 69f8 ldr r0, [r7, #28]
  39141. 8010ca4: f001 fa90 bl 80121c8 <vQueueDelete>
  39142. hSemaphore = NULL;
  39143. 8010ca8: 2300 movs r3, #0
  39144. 8010caa: 61fb str r3, [r7, #28]
  39145. 8010cac: e010 b.n 8010cd0 <osSemaphoreNew+0xe8>
  39146. }
  39147. }
  39148. }
  39149. else {
  39150. if (mem == 1) {
  39151. 8010cae: 69bb ldr r3, [r7, #24]
  39152. 8010cb0: 2b01 cmp r3, #1
  39153. 8010cb2: d108 bne.n 8010cc6 <osSemaphoreNew+0xde>
  39154. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39155. hSemaphore = xSemaphoreCreateCountingStatic (max_count, initial_count, (StaticSemaphore_t *)attr->cb_mem);
  39156. 8010cb4: 687b ldr r3, [r7, #4]
  39157. 8010cb6: 689b ldr r3, [r3, #8]
  39158. 8010cb8: 461a mov r2, r3
  39159. 8010cba: 68b9 ldr r1, [r7, #8]
  39160. 8010cbc: 68f8 ldr r0, [r7, #12]
  39161. 8010cbe: f000 fd33 bl 8011728 <xQueueCreateCountingSemaphoreStatic>
  39162. 8010cc2: 61f8 str r0, [r7, #28]
  39163. 8010cc4: e004 b.n 8010cd0 <osSemaphoreNew+0xe8>
  39164. #endif
  39165. }
  39166. else {
  39167. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39168. hSemaphore = xSemaphoreCreateCounting (max_count, initial_count);
  39169. 8010cc6: 68b9 ldr r1, [r7, #8]
  39170. 8010cc8: 68f8 ldr r0, [r7, #12]
  39171. 8010cca: f000 fd66 bl 801179a <xQueueCreateCountingSemaphore>
  39172. 8010cce: 61f8 str r0, [r7, #28]
  39173. #endif
  39174. }
  39175. }
  39176. #if (configQUEUE_REGISTRY_SIZE > 0)
  39177. if (hSemaphore != NULL) {
  39178. 8010cd0: 69fb ldr r3, [r7, #28]
  39179. 8010cd2: 2b00 cmp r3, #0
  39180. 8010cd4: d00c beq.n 8010cf0 <osSemaphoreNew+0x108>
  39181. if (attr != NULL) {
  39182. 8010cd6: 687b ldr r3, [r7, #4]
  39183. 8010cd8: 2b00 cmp r3, #0
  39184. 8010cda: d003 beq.n 8010ce4 <osSemaphoreNew+0xfc>
  39185. name = attr->name;
  39186. 8010cdc: 687b ldr r3, [r7, #4]
  39187. 8010cde: 681b ldr r3, [r3, #0]
  39188. 8010ce0: 617b str r3, [r7, #20]
  39189. 8010ce2: e001 b.n 8010ce8 <osSemaphoreNew+0x100>
  39190. } else {
  39191. name = NULL;
  39192. 8010ce4: 2300 movs r3, #0
  39193. 8010ce6: 617b str r3, [r7, #20]
  39194. }
  39195. vQueueAddToRegistry (hSemaphore, name);
  39196. 8010ce8: 6979 ldr r1, [r7, #20]
  39197. 8010cea: 69f8 ldr r0, [r7, #28]
  39198. 8010cec: f001 fbb8 bl 8012460 <vQueueAddToRegistry>
  39199. }
  39200. #endif
  39201. }
  39202. }
  39203. return ((osSemaphoreId_t)hSemaphore);
  39204. 8010cf0: 69fb ldr r3, [r7, #28]
  39205. }
  39206. 8010cf2: 4618 mov r0, r3
  39207. 8010cf4: 3720 adds r7, #32
  39208. 8010cf6: 46bd mov sp, r7
  39209. 8010cf8: bd80 pop {r7, pc}
  39210. ...
  39211. 08010cfc <osSemaphoreAcquire>:
  39212. osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout) {
  39213. 8010cfc: b580 push {r7, lr}
  39214. 8010cfe: b086 sub sp, #24
  39215. 8010d00: af00 add r7, sp, #0
  39216. 8010d02: 6078 str r0, [r7, #4]
  39217. 8010d04: 6039 str r1, [r7, #0]
  39218. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  39219. 8010d06: 687b ldr r3, [r7, #4]
  39220. 8010d08: 613b str r3, [r7, #16]
  39221. osStatus_t stat;
  39222. BaseType_t yield;
  39223. stat = osOK;
  39224. 8010d0a: 2300 movs r3, #0
  39225. 8010d0c: 617b str r3, [r7, #20]
  39226. if (hSemaphore == NULL) {
  39227. 8010d0e: 693b ldr r3, [r7, #16]
  39228. 8010d10: 2b00 cmp r3, #0
  39229. 8010d12: d103 bne.n 8010d1c <osSemaphoreAcquire+0x20>
  39230. stat = osErrorParameter;
  39231. 8010d14: f06f 0303 mvn.w r3, #3
  39232. 8010d18: 617b str r3, [r7, #20]
  39233. 8010d1a: e039 b.n 8010d90 <osSemaphoreAcquire+0x94>
  39234. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39235. 8010d1c: f3ef 8305 mrs r3, IPSR
  39236. 8010d20: 60fb str r3, [r7, #12]
  39237. return(result);
  39238. 8010d22: 68fb ldr r3, [r7, #12]
  39239. }
  39240. else if (IS_IRQ()) {
  39241. 8010d24: 2b00 cmp r3, #0
  39242. 8010d26: d022 beq.n 8010d6e <osSemaphoreAcquire+0x72>
  39243. if (timeout != 0U) {
  39244. 8010d28: 683b ldr r3, [r7, #0]
  39245. 8010d2a: 2b00 cmp r3, #0
  39246. 8010d2c: d003 beq.n 8010d36 <osSemaphoreAcquire+0x3a>
  39247. stat = osErrorParameter;
  39248. 8010d2e: f06f 0303 mvn.w r3, #3
  39249. 8010d32: 617b str r3, [r7, #20]
  39250. 8010d34: e02c b.n 8010d90 <osSemaphoreAcquire+0x94>
  39251. }
  39252. else {
  39253. yield = pdFALSE;
  39254. 8010d36: 2300 movs r3, #0
  39255. 8010d38: 60bb str r3, [r7, #8]
  39256. if (xSemaphoreTakeFromISR (hSemaphore, &yield) != pdPASS) {
  39257. 8010d3a: f107 0308 add.w r3, r7, #8
  39258. 8010d3e: 461a mov r2, r3
  39259. 8010d40: 2100 movs r1, #0
  39260. 8010d42: 6938 ldr r0, [r7, #16]
  39261. 8010d44: f001 f980 bl 8012048 <xQueueReceiveFromISR>
  39262. 8010d48: 4603 mov r3, r0
  39263. 8010d4a: 2b01 cmp r3, #1
  39264. 8010d4c: d003 beq.n 8010d56 <osSemaphoreAcquire+0x5a>
  39265. stat = osErrorResource;
  39266. 8010d4e: f06f 0302 mvn.w r3, #2
  39267. 8010d52: 617b str r3, [r7, #20]
  39268. 8010d54: e01c b.n 8010d90 <osSemaphoreAcquire+0x94>
  39269. } else {
  39270. portYIELD_FROM_ISR (yield);
  39271. 8010d56: 68bb ldr r3, [r7, #8]
  39272. 8010d58: 2b00 cmp r3, #0
  39273. 8010d5a: d019 beq.n 8010d90 <osSemaphoreAcquire+0x94>
  39274. 8010d5c: 4b0f ldr r3, [pc, #60] @ (8010d9c <osSemaphoreAcquire+0xa0>)
  39275. 8010d5e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  39276. 8010d62: 601a str r2, [r3, #0]
  39277. 8010d64: f3bf 8f4f dsb sy
  39278. 8010d68: f3bf 8f6f isb sy
  39279. 8010d6c: e010 b.n 8010d90 <osSemaphoreAcquire+0x94>
  39280. }
  39281. }
  39282. }
  39283. else {
  39284. if (xSemaphoreTake (hSemaphore, (TickType_t)timeout) != pdPASS) {
  39285. 8010d6e: 6839 ldr r1, [r7, #0]
  39286. 8010d70: 6938 ldr r0, [r7, #16]
  39287. 8010d72: f001 f859 bl 8011e28 <xQueueSemaphoreTake>
  39288. 8010d76: 4603 mov r3, r0
  39289. 8010d78: 2b01 cmp r3, #1
  39290. 8010d7a: d009 beq.n 8010d90 <osSemaphoreAcquire+0x94>
  39291. if (timeout != 0U) {
  39292. 8010d7c: 683b ldr r3, [r7, #0]
  39293. 8010d7e: 2b00 cmp r3, #0
  39294. 8010d80: d003 beq.n 8010d8a <osSemaphoreAcquire+0x8e>
  39295. stat = osErrorTimeout;
  39296. 8010d82: f06f 0301 mvn.w r3, #1
  39297. 8010d86: 617b str r3, [r7, #20]
  39298. 8010d88: e002 b.n 8010d90 <osSemaphoreAcquire+0x94>
  39299. } else {
  39300. stat = osErrorResource;
  39301. 8010d8a: f06f 0302 mvn.w r3, #2
  39302. 8010d8e: 617b str r3, [r7, #20]
  39303. }
  39304. }
  39305. }
  39306. return (stat);
  39307. 8010d90: 697b ldr r3, [r7, #20]
  39308. }
  39309. 8010d92: 4618 mov r0, r3
  39310. 8010d94: 3718 adds r7, #24
  39311. 8010d96: 46bd mov sp, r7
  39312. 8010d98: bd80 pop {r7, pc}
  39313. 8010d9a: bf00 nop
  39314. 8010d9c: e000ed04 .word 0xe000ed04
  39315. 08010da0 <osSemaphoreRelease>:
  39316. osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id) {
  39317. 8010da0: b580 push {r7, lr}
  39318. 8010da2: b086 sub sp, #24
  39319. 8010da4: af00 add r7, sp, #0
  39320. 8010da6: 6078 str r0, [r7, #4]
  39321. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  39322. 8010da8: 687b ldr r3, [r7, #4]
  39323. 8010daa: 613b str r3, [r7, #16]
  39324. osStatus_t stat;
  39325. BaseType_t yield;
  39326. stat = osOK;
  39327. 8010dac: 2300 movs r3, #0
  39328. 8010dae: 617b str r3, [r7, #20]
  39329. if (hSemaphore == NULL) {
  39330. 8010db0: 693b ldr r3, [r7, #16]
  39331. 8010db2: 2b00 cmp r3, #0
  39332. 8010db4: d103 bne.n 8010dbe <osSemaphoreRelease+0x1e>
  39333. stat = osErrorParameter;
  39334. 8010db6: f06f 0303 mvn.w r3, #3
  39335. 8010dba: 617b str r3, [r7, #20]
  39336. 8010dbc: e02c b.n 8010e18 <osSemaphoreRelease+0x78>
  39337. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39338. 8010dbe: f3ef 8305 mrs r3, IPSR
  39339. 8010dc2: 60fb str r3, [r7, #12]
  39340. return(result);
  39341. 8010dc4: 68fb ldr r3, [r7, #12]
  39342. }
  39343. else if (IS_IRQ()) {
  39344. 8010dc6: 2b00 cmp r3, #0
  39345. 8010dc8: d01a beq.n 8010e00 <osSemaphoreRelease+0x60>
  39346. yield = pdFALSE;
  39347. 8010dca: 2300 movs r3, #0
  39348. 8010dcc: 60bb str r3, [r7, #8]
  39349. if (xSemaphoreGiveFromISR (hSemaphore, &yield) != pdTRUE) {
  39350. 8010dce: f107 0308 add.w r3, r7, #8
  39351. 8010dd2: 4619 mov r1, r3
  39352. 8010dd4: 6938 ldr r0, [r7, #16]
  39353. 8010dd6: f000 feb5 bl 8011b44 <xQueueGiveFromISR>
  39354. 8010dda: 4603 mov r3, r0
  39355. 8010ddc: 2b01 cmp r3, #1
  39356. 8010dde: d003 beq.n 8010de8 <osSemaphoreRelease+0x48>
  39357. stat = osErrorResource;
  39358. 8010de0: f06f 0302 mvn.w r3, #2
  39359. 8010de4: 617b str r3, [r7, #20]
  39360. 8010de6: e017 b.n 8010e18 <osSemaphoreRelease+0x78>
  39361. } else {
  39362. portYIELD_FROM_ISR (yield);
  39363. 8010de8: 68bb ldr r3, [r7, #8]
  39364. 8010dea: 2b00 cmp r3, #0
  39365. 8010dec: d014 beq.n 8010e18 <osSemaphoreRelease+0x78>
  39366. 8010dee: 4b0d ldr r3, [pc, #52] @ (8010e24 <osSemaphoreRelease+0x84>)
  39367. 8010df0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  39368. 8010df4: 601a str r2, [r3, #0]
  39369. 8010df6: f3bf 8f4f dsb sy
  39370. 8010dfa: f3bf 8f6f isb sy
  39371. 8010dfe: e00b b.n 8010e18 <osSemaphoreRelease+0x78>
  39372. }
  39373. }
  39374. else {
  39375. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  39376. 8010e00: 2300 movs r3, #0
  39377. 8010e02: 2200 movs r2, #0
  39378. 8010e04: 2100 movs r1, #0
  39379. 8010e06: 6938 ldr r0, [r7, #16]
  39380. 8010e08: f000 fcfc bl 8011804 <xQueueGenericSend>
  39381. 8010e0c: 4603 mov r3, r0
  39382. 8010e0e: 2b01 cmp r3, #1
  39383. 8010e10: d002 beq.n 8010e18 <osSemaphoreRelease+0x78>
  39384. stat = osErrorResource;
  39385. 8010e12: f06f 0302 mvn.w r3, #2
  39386. 8010e16: 617b str r3, [r7, #20]
  39387. }
  39388. }
  39389. return (stat);
  39390. 8010e18: 697b ldr r3, [r7, #20]
  39391. }
  39392. 8010e1a: 4618 mov r0, r3
  39393. 8010e1c: 3718 adds r7, #24
  39394. 8010e1e: 46bd mov sp, r7
  39395. 8010e20: bd80 pop {r7, pc}
  39396. 8010e22: bf00 nop
  39397. 8010e24: e000ed04 .word 0xe000ed04
  39398. 08010e28 <osSemaphoreDelete>:
  39399. }
  39400. return (count);
  39401. }
  39402. osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id) {
  39403. 8010e28: b580 push {r7, lr}
  39404. 8010e2a: b086 sub sp, #24
  39405. 8010e2c: af00 add r7, sp, #0
  39406. 8010e2e: 6078 str r0, [r7, #4]
  39407. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  39408. 8010e30: 687b ldr r3, [r7, #4]
  39409. 8010e32: 613b str r3, [r7, #16]
  39410. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39411. 8010e34: f3ef 8305 mrs r3, IPSR
  39412. 8010e38: 60fb str r3, [r7, #12]
  39413. return(result);
  39414. 8010e3a: 68fb ldr r3, [r7, #12]
  39415. osStatus_t stat;
  39416. #ifndef USE_FreeRTOS_HEAP_1
  39417. if (IS_IRQ()) {
  39418. 8010e3c: 2b00 cmp r3, #0
  39419. 8010e3e: d003 beq.n 8010e48 <osSemaphoreDelete+0x20>
  39420. stat = osErrorISR;
  39421. 8010e40: f06f 0305 mvn.w r3, #5
  39422. 8010e44: 617b str r3, [r7, #20]
  39423. 8010e46: e00e b.n 8010e66 <osSemaphoreDelete+0x3e>
  39424. }
  39425. else if (hSemaphore == NULL) {
  39426. 8010e48: 693b ldr r3, [r7, #16]
  39427. 8010e4a: 2b00 cmp r3, #0
  39428. 8010e4c: d103 bne.n 8010e56 <osSemaphoreDelete+0x2e>
  39429. stat = osErrorParameter;
  39430. 8010e4e: f06f 0303 mvn.w r3, #3
  39431. 8010e52: 617b str r3, [r7, #20]
  39432. 8010e54: e007 b.n 8010e66 <osSemaphoreDelete+0x3e>
  39433. }
  39434. else {
  39435. #if (configQUEUE_REGISTRY_SIZE > 0)
  39436. vQueueUnregisterQueue (hSemaphore);
  39437. 8010e56: 6938 ldr r0, [r7, #16]
  39438. 8010e58: f001 fb2c bl 80124b4 <vQueueUnregisterQueue>
  39439. #endif
  39440. stat = osOK;
  39441. 8010e5c: 2300 movs r3, #0
  39442. 8010e5e: 617b str r3, [r7, #20]
  39443. vSemaphoreDelete (hSemaphore);
  39444. 8010e60: 6938 ldr r0, [r7, #16]
  39445. 8010e62: f001 f9b1 bl 80121c8 <vQueueDelete>
  39446. }
  39447. #else
  39448. stat = osError;
  39449. #endif
  39450. return (stat);
  39451. 8010e66: 697b ldr r3, [r7, #20]
  39452. }
  39453. 8010e68: 4618 mov r0, r3
  39454. 8010e6a: 3718 adds r7, #24
  39455. 8010e6c: 46bd mov sp, r7
  39456. 8010e6e: bd80 pop {r7, pc}
  39457. 08010e70 <osMessageQueueNew>:
  39458. /*---------------------------------------------------------------------------*/
  39459. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  39460. 8010e70: b580 push {r7, lr}
  39461. 8010e72: b08a sub sp, #40 @ 0x28
  39462. 8010e74: af02 add r7, sp, #8
  39463. 8010e76: 60f8 str r0, [r7, #12]
  39464. 8010e78: 60b9 str r1, [r7, #8]
  39465. 8010e7a: 607a str r2, [r7, #4]
  39466. int32_t mem;
  39467. #if (configQUEUE_REGISTRY_SIZE > 0)
  39468. const char *name;
  39469. #endif
  39470. hQueue = NULL;
  39471. 8010e7c: 2300 movs r3, #0
  39472. 8010e7e: 61fb str r3, [r7, #28]
  39473. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39474. 8010e80: f3ef 8305 mrs r3, IPSR
  39475. 8010e84: 613b str r3, [r7, #16]
  39476. return(result);
  39477. 8010e86: 693b ldr r3, [r7, #16]
  39478. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  39479. 8010e88: 2b00 cmp r3, #0
  39480. 8010e8a: d15f bne.n 8010f4c <osMessageQueueNew+0xdc>
  39481. 8010e8c: 68fb ldr r3, [r7, #12]
  39482. 8010e8e: 2b00 cmp r3, #0
  39483. 8010e90: d05c beq.n 8010f4c <osMessageQueueNew+0xdc>
  39484. 8010e92: 68bb ldr r3, [r7, #8]
  39485. 8010e94: 2b00 cmp r3, #0
  39486. 8010e96: d059 beq.n 8010f4c <osMessageQueueNew+0xdc>
  39487. mem = -1;
  39488. 8010e98: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39489. 8010e9c: 61bb str r3, [r7, #24]
  39490. if (attr != NULL) {
  39491. 8010e9e: 687b ldr r3, [r7, #4]
  39492. 8010ea0: 2b00 cmp r3, #0
  39493. 8010ea2: d029 beq.n 8010ef8 <osMessageQueueNew+0x88>
  39494. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  39495. 8010ea4: 687b ldr r3, [r7, #4]
  39496. 8010ea6: 689b ldr r3, [r3, #8]
  39497. 8010ea8: 2b00 cmp r3, #0
  39498. 8010eaa: d012 beq.n 8010ed2 <osMessageQueueNew+0x62>
  39499. 8010eac: 687b ldr r3, [r7, #4]
  39500. 8010eae: 68db ldr r3, [r3, #12]
  39501. 8010eb0: 2b4f cmp r3, #79 @ 0x4f
  39502. 8010eb2: d90e bls.n 8010ed2 <osMessageQueueNew+0x62>
  39503. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  39504. 8010eb4: 687b ldr r3, [r7, #4]
  39505. 8010eb6: 691b ldr r3, [r3, #16]
  39506. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  39507. 8010eb8: 2b00 cmp r3, #0
  39508. 8010eba: d00a beq.n 8010ed2 <osMessageQueueNew+0x62>
  39509. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  39510. 8010ebc: 687b ldr r3, [r7, #4]
  39511. 8010ebe: 695a ldr r2, [r3, #20]
  39512. 8010ec0: 68fb ldr r3, [r7, #12]
  39513. 8010ec2: 68b9 ldr r1, [r7, #8]
  39514. 8010ec4: fb01 f303 mul.w r3, r1, r3
  39515. 8010ec8: 429a cmp r2, r3
  39516. 8010eca: d302 bcc.n 8010ed2 <osMessageQueueNew+0x62>
  39517. mem = 1;
  39518. 8010ecc: 2301 movs r3, #1
  39519. 8010ece: 61bb str r3, [r7, #24]
  39520. 8010ed0: e014 b.n 8010efc <osMessageQueueNew+0x8c>
  39521. }
  39522. else {
  39523. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  39524. 8010ed2: 687b ldr r3, [r7, #4]
  39525. 8010ed4: 689b ldr r3, [r3, #8]
  39526. 8010ed6: 2b00 cmp r3, #0
  39527. 8010ed8: d110 bne.n 8010efc <osMessageQueueNew+0x8c>
  39528. 8010eda: 687b ldr r3, [r7, #4]
  39529. 8010edc: 68db ldr r3, [r3, #12]
  39530. 8010ede: 2b00 cmp r3, #0
  39531. 8010ee0: d10c bne.n 8010efc <osMessageQueueNew+0x8c>
  39532. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  39533. 8010ee2: 687b ldr r3, [r7, #4]
  39534. 8010ee4: 691b ldr r3, [r3, #16]
  39535. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  39536. 8010ee6: 2b00 cmp r3, #0
  39537. 8010ee8: d108 bne.n 8010efc <osMessageQueueNew+0x8c>
  39538. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  39539. 8010eea: 687b ldr r3, [r7, #4]
  39540. 8010eec: 695b ldr r3, [r3, #20]
  39541. 8010eee: 2b00 cmp r3, #0
  39542. 8010ef0: d104 bne.n 8010efc <osMessageQueueNew+0x8c>
  39543. mem = 0;
  39544. 8010ef2: 2300 movs r3, #0
  39545. 8010ef4: 61bb str r3, [r7, #24]
  39546. 8010ef6: e001 b.n 8010efc <osMessageQueueNew+0x8c>
  39547. }
  39548. }
  39549. }
  39550. else {
  39551. mem = 0;
  39552. 8010ef8: 2300 movs r3, #0
  39553. 8010efa: 61bb str r3, [r7, #24]
  39554. }
  39555. if (mem == 1) {
  39556. 8010efc: 69bb ldr r3, [r7, #24]
  39557. 8010efe: 2b01 cmp r3, #1
  39558. 8010f00: d10b bne.n 8010f1a <osMessageQueueNew+0xaa>
  39559. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39560. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  39561. 8010f02: 687b ldr r3, [r7, #4]
  39562. 8010f04: 691a ldr r2, [r3, #16]
  39563. 8010f06: 687b ldr r3, [r7, #4]
  39564. 8010f08: 689b ldr r3, [r3, #8]
  39565. 8010f0a: 2100 movs r1, #0
  39566. 8010f0c: 9100 str r1, [sp, #0]
  39567. 8010f0e: 68b9 ldr r1, [r7, #8]
  39568. 8010f10: 68f8 ldr r0, [r7, #12]
  39569. 8010f12: f000 fa75 bl 8011400 <xQueueGenericCreateStatic>
  39570. 8010f16: 61f8 str r0, [r7, #28]
  39571. 8010f18: e008 b.n 8010f2c <osMessageQueueNew+0xbc>
  39572. #endif
  39573. }
  39574. else {
  39575. if (mem == 0) {
  39576. 8010f1a: 69bb ldr r3, [r7, #24]
  39577. 8010f1c: 2b00 cmp r3, #0
  39578. 8010f1e: d105 bne.n 8010f2c <osMessageQueueNew+0xbc>
  39579. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39580. hQueue = xQueueCreate (msg_count, msg_size);
  39581. 8010f20: 2200 movs r2, #0
  39582. 8010f22: 68b9 ldr r1, [r7, #8]
  39583. 8010f24: 68f8 ldr r0, [r7, #12]
  39584. 8010f26: f000 fae8 bl 80114fa <xQueueGenericCreate>
  39585. 8010f2a: 61f8 str r0, [r7, #28]
  39586. #endif
  39587. }
  39588. }
  39589. #if (configQUEUE_REGISTRY_SIZE > 0)
  39590. if (hQueue != NULL) {
  39591. 8010f2c: 69fb ldr r3, [r7, #28]
  39592. 8010f2e: 2b00 cmp r3, #0
  39593. 8010f30: d00c beq.n 8010f4c <osMessageQueueNew+0xdc>
  39594. if (attr != NULL) {
  39595. 8010f32: 687b ldr r3, [r7, #4]
  39596. 8010f34: 2b00 cmp r3, #0
  39597. 8010f36: d003 beq.n 8010f40 <osMessageQueueNew+0xd0>
  39598. name = attr->name;
  39599. 8010f38: 687b ldr r3, [r7, #4]
  39600. 8010f3a: 681b ldr r3, [r3, #0]
  39601. 8010f3c: 617b str r3, [r7, #20]
  39602. 8010f3e: e001 b.n 8010f44 <osMessageQueueNew+0xd4>
  39603. } else {
  39604. name = NULL;
  39605. 8010f40: 2300 movs r3, #0
  39606. 8010f42: 617b str r3, [r7, #20]
  39607. }
  39608. vQueueAddToRegistry (hQueue, name);
  39609. 8010f44: 6979 ldr r1, [r7, #20]
  39610. 8010f46: 69f8 ldr r0, [r7, #28]
  39611. 8010f48: f001 fa8a bl 8012460 <vQueueAddToRegistry>
  39612. }
  39613. #endif
  39614. }
  39615. return ((osMessageQueueId_t)hQueue);
  39616. 8010f4c: 69fb ldr r3, [r7, #28]
  39617. }
  39618. 8010f4e: 4618 mov r0, r3
  39619. 8010f50: 3720 adds r7, #32
  39620. 8010f52: 46bd mov sp, r7
  39621. 8010f54: bd80 pop {r7, pc}
  39622. ...
  39623. 08010f58 <osMessageQueuePut>:
  39624. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  39625. 8010f58: b580 push {r7, lr}
  39626. 8010f5a: b088 sub sp, #32
  39627. 8010f5c: af00 add r7, sp, #0
  39628. 8010f5e: 60f8 str r0, [r7, #12]
  39629. 8010f60: 60b9 str r1, [r7, #8]
  39630. 8010f62: 603b str r3, [r7, #0]
  39631. 8010f64: 4613 mov r3, r2
  39632. 8010f66: 71fb strb r3, [r7, #7]
  39633. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  39634. 8010f68: 68fb ldr r3, [r7, #12]
  39635. 8010f6a: 61bb str r3, [r7, #24]
  39636. osStatus_t stat;
  39637. BaseType_t yield;
  39638. (void)msg_prio; /* Message priority is ignored */
  39639. stat = osOK;
  39640. 8010f6c: 2300 movs r3, #0
  39641. 8010f6e: 61fb str r3, [r7, #28]
  39642. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39643. 8010f70: f3ef 8305 mrs r3, IPSR
  39644. 8010f74: 617b str r3, [r7, #20]
  39645. return(result);
  39646. 8010f76: 697b ldr r3, [r7, #20]
  39647. if (IS_IRQ()) {
  39648. 8010f78: 2b00 cmp r3, #0
  39649. 8010f7a: d028 beq.n 8010fce <osMessageQueuePut+0x76>
  39650. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  39651. 8010f7c: 69bb ldr r3, [r7, #24]
  39652. 8010f7e: 2b00 cmp r3, #0
  39653. 8010f80: d005 beq.n 8010f8e <osMessageQueuePut+0x36>
  39654. 8010f82: 68bb ldr r3, [r7, #8]
  39655. 8010f84: 2b00 cmp r3, #0
  39656. 8010f86: d002 beq.n 8010f8e <osMessageQueuePut+0x36>
  39657. 8010f88: 683b ldr r3, [r7, #0]
  39658. 8010f8a: 2b00 cmp r3, #0
  39659. 8010f8c: d003 beq.n 8010f96 <osMessageQueuePut+0x3e>
  39660. stat = osErrorParameter;
  39661. 8010f8e: f06f 0303 mvn.w r3, #3
  39662. 8010f92: 61fb str r3, [r7, #28]
  39663. 8010f94: e038 b.n 8011008 <osMessageQueuePut+0xb0>
  39664. }
  39665. else {
  39666. yield = pdFALSE;
  39667. 8010f96: 2300 movs r3, #0
  39668. 8010f98: 613b str r3, [r7, #16]
  39669. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  39670. 8010f9a: f107 0210 add.w r2, r7, #16
  39671. 8010f9e: 2300 movs r3, #0
  39672. 8010fa0: 68b9 ldr r1, [r7, #8]
  39673. 8010fa2: 69b8 ldr r0, [r7, #24]
  39674. 8010fa4: f000 fd30 bl 8011a08 <xQueueGenericSendFromISR>
  39675. 8010fa8: 4603 mov r3, r0
  39676. 8010faa: 2b01 cmp r3, #1
  39677. 8010fac: d003 beq.n 8010fb6 <osMessageQueuePut+0x5e>
  39678. stat = osErrorResource;
  39679. 8010fae: f06f 0302 mvn.w r3, #2
  39680. 8010fb2: 61fb str r3, [r7, #28]
  39681. 8010fb4: e028 b.n 8011008 <osMessageQueuePut+0xb0>
  39682. } else {
  39683. portYIELD_FROM_ISR (yield);
  39684. 8010fb6: 693b ldr r3, [r7, #16]
  39685. 8010fb8: 2b00 cmp r3, #0
  39686. 8010fba: d025 beq.n 8011008 <osMessageQueuePut+0xb0>
  39687. 8010fbc: 4b15 ldr r3, [pc, #84] @ (8011014 <osMessageQueuePut+0xbc>)
  39688. 8010fbe: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  39689. 8010fc2: 601a str r2, [r3, #0]
  39690. 8010fc4: f3bf 8f4f dsb sy
  39691. 8010fc8: f3bf 8f6f isb sy
  39692. 8010fcc: e01c b.n 8011008 <osMessageQueuePut+0xb0>
  39693. }
  39694. }
  39695. }
  39696. else {
  39697. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  39698. 8010fce: 69bb ldr r3, [r7, #24]
  39699. 8010fd0: 2b00 cmp r3, #0
  39700. 8010fd2: d002 beq.n 8010fda <osMessageQueuePut+0x82>
  39701. 8010fd4: 68bb ldr r3, [r7, #8]
  39702. 8010fd6: 2b00 cmp r3, #0
  39703. 8010fd8: d103 bne.n 8010fe2 <osMessageQueuePut+0x8a>
  39704. stat = osErrorParameter;
  39705. 8010fda: f06f 0303 mvn.w r3, #3
  39706. 8010fde: 61fb str r3, [r7, #28]
  39707. 8010fe0: e012 b.n 8011008 <osMessageQueuePut+0xb0>
  39708. }
  39709. else {
  39710. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  39711. 8010fe2: 2300 movs r3, #0
  39712. 8010fe4: 683a ldr r2, [r7, #0]
  39713. 8010fe6: 68b9 ldr r1, [r7, #8]
  39714. 8010fe8: 69b8 ldr r0, [r7, #24]
  39715. 8010fea: f000 fc0b bl 8011804 <xQueueGenericSend>
  39716. 8010fee: 4603 mov r3, r0
  39717. 8010ff0: 2b01 cmp r3, #1
  39718. 8010ff2: d009 beq.n 8011008 <osMessageQueuePut+0xb0>
  39719. if (timeout != 0U) {
  39720. 8010ff4: 683b ldr r3, [r7, #0]
  39721. 8010ff6: 2b00 cmp r3, #0
  39722. 8010ff8: d003 beq.n 8011002 <osMessageQueuePut+0xaa>
  39723. stat = osErrorTimeout;
  39724. 8010ffa: f06f 0301 mvn.w r3, #1
  39725. 8010ffe: 61fb str r3, [r7, #28]
  39726. 8011000: e002 b.n 8011008 <osMessageQueuePut+0xb0>
  39727. } else {
  39728. stat = osErrorResource;
  39729. 8011002: f06f 0302 mvn.w r3, #2
  39730. 8011006: 61fb str r3, [r7, #28]
  39731. }
  39732. }
  39733. }
  39734. }
  39735. return (stat);
  39736. 8011008: 69fb ldr r3, [r7, #28]
  39737. }
  39738. 801100a: 4618 mov r0, r3
  39739. 801100c: 3720 adds r7, #32
  39740. 801100e: 46bd mov sp, r7
  39741. 8011010: bd80 pop {r7, pc}
  39742. 8011012: bf00 nop
  39743. 8011014: e000ed04 .word 0xe000ed04
  39744. 08011018 <osMessageQueueGet>:
  39745. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  39746. 8011018: b580 push {r7, lr}
  39747. 801101a: b088 sub sp, #32
  39748. 801101c: af00 add r7, sp, #0
  39749. 801101e: 60f8 str r0, [r7, #12]
  39750. 8011020: 60b9 str r1, [r7, #8]
  39751. 8011022: 607a str r2, [r7, #4]
  39752. 8011024: 603b str r3, [r7, #0]
  39753. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  39754. 8011026: 68fb ldr r3, [r7, #12]
  39755. 8011028: 61bb str r3, [r7, #24]
  39756. osStatus_t stat;
  39757. BaseType_t yield;
  39758. (void)msg_prio; /* Message priority is ignored */
  39759. stat = osOK;
  39760. 801102a: 2300 movs r3, #0
  39761. 801102c: 61fb str r3, [r7, #28]
  39762. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39763. 801102e: f3ef 8305 mrs r3, IPSR
  39764. 8011032: 617b str r3, [r7, #20]
  39765. return(result);
  39766. 8011034: 697b ldr r3, [r7, #20]
  39767. if (IS_IRQ()) {
  39768. 8011036: 2b00 cmp r3, #0
  39769. 8011038: d028 beq.n 801108c <osMessageQueueGet+0x74>
  39770. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  39771. 801103a: 69bb ldr r3, [r7, #24]
  39772. 801103c: 2b00 cmp r3, #0
  39773. 801103e: d005 beq.n 801104c <osMessageQueueGet+0x34>
  39774. 8011040: 68bb ldr r3, [r7, #8]
  39775. 8011042: 2b00 cmp r3, #0
  39776. 8011044: d002 beq.n 801104c <osMessageQueueGet+0x34>
  39777. 8011046: 683b ldr r3, [r7, #0]
  39778. 8011048: 2b00 cmp r3, #0
  39779. 801104a: d003 beq.n 8011054 <osMessageQueueGet+0x3c>
  39780. stat = osErrorParameter;
  39781. 801104c: f06f 0303 mvn.w r3, #3
  39782. 8011050: 61fb str r3, [r7, #28]
  39783. 8011052: e037 b.n 80110c4 <osMessageQueueGet+0xac>
  39784. }
  39785. else {
  39786. yield = pdFALSE;
  39787. 8011054: 2300 movs r3, #0
  39788. 8011056: 613b str r3, [r7, #16]
  39789. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  39790. 8011058: f107 0310 add.w r3, r7, #16
  39791. 801105c: 461a mov r2, r3
  39792. 801105e: 68b9 ldr r1, [r7, #8]
  39793. 8011060: 69b8 ldr r0, [r7, #24]
  39794. 8011062: f000 fff1 bl 8012048 <xQueueReceiveFromISR>
  39795. 8011066: 4603 mov r3, r0
  39796. 8011068: 2b01 cmp r3, #1
  39797. 801106a: d003 beq.n 8011074 <osMessageQueueGet+0x5c>
  39798. stat = osErrorResource;
  39799. 801106c: f06f 0302 mvn.w r3, #2
  39800. 8011070: 61fb str r3, [r7, #28]
  39801. 8011072: e027 b.n 80110c4 <osMessageQueueGet+0xac>
  39802. } else {
  39803. portYIELD_FROM_ISR (yield);
  39804. 8011074: 693b ldr r3, [r7, #16]
  39805. 8011076: 2b00 cmp r3, #0
  39806. 8011078: d024 beq.n 80110c4 <osMessageQueueGet+0xac>
  39807. 801107a: 4b15 ldr r3, [pc, #84] @ (80110d0 <osMessageQueueGet+0xb8>)
  39808. 801107c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  39809. 8011080: 601a str r2, [r3, #0]
  39810. 8011082: f3bf 8f4f dsb sy
  39811. 8011086: f3bf 8f6f isb sy
  39812. 801108a: e01b b.n 80110c4 <osMessageQueueGet+0xac>
  39813. }
  39814. }
  39815. }
  39816. else {
  39817. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  39818. 801108c: 69bb ldr r3, [r7, #24]
  39819. 801108e: 2b00 cmp r3, #0
  39820. 8011090: d002 beq.n 8011098 <osMessageQueueGet+0x80>
  39821. 8011092: 68bb ldr r3, [r7, #8]
  39822. 8011094: 2b00 cmp r3, #0
  39823. 8011096: d103 bne.n 80110a0 <osMessageQueueGet+0x88>
  39824. stat = osErrorParameter;
  39825. 8011098: f06f 0303 mvn.w r3, #3
  39826. 801109c: 61fb str r3, [r7, #28]
  39827. 801109e: e011 b.n 80110c4 <osMessageQueueGet+0xac>
  39828. }
  39829. else {
  39830. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  39831. 80110a0: 683a ldr r2, [r7, #0]
  39832. 80110a2: 68b9 ldr r1, [r7, #8]
  39833. 80110a4: 69b8 ldr r0, [r7, #24]
  39834. 80110a6: f000 fddd bl 8011c64 <xQueueReceive>
  39835. 80110aa: 4603 mov r3, r0
  39836. 80110ac: 2b01 cmp r3, #1
  39837. 80110ae: d009 beq.n 80110c4 <osMessageQueueGet+0xac>
  39838. if (timeout != 0U) {
  39839. 80110b0: 683b ldr r3, [r7, #0]
  39840. 80110b2: 2b00 cmp r3, #0
  39841. 80110b4: d003 beq.n 80110be <osMessageQueueGet+0xa6>
  39842. stat = osErrorTimeout;
  39843. 80110b6: f06f 0301 mvn.w r3, #1
  39844. 80110ba: 61fb str r3, [r7, #28]
  39845. 80110bc: e002 b.n 80110c4 <osMessageQueueGet+0xac>
  39846. } else {
  39847. stat = osErrorResource;
  39848. 80110be: f06f 0302 mvn.w r3, #2
  39849. 80110c2: 61fb str r3, [r7, #28]
  39850. }
  39851. }
  39852. }
  39853. }
  39854. return (stat);
  39855. 80110c4: 69fb ldr r3, [r7, #28]
  39856. }
  39857. 80110c6: 4618 mov r0, r3
  39858. 80110c8: 3720 adds r7, #32
  39859. 80110ca: 46bd mov sp, r7
  39860. 80110cc: bd80 pop {r7, pc}
  39861. 80110ce: bf00 nop
  39862. 80110d0: e000ed04 .word 0xe000ed04
  39863. 080110d4 <osMessageQueueGetCount>:
  39864. }
  39865. return (size);
  39866. }
  39867. uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id) {
  39868. 80110d4: b580 push {r7, lr}
  39869. 80110d6: b086 sub sp, #24
  39870. 80110d8: af00 add r7, sp, #0
  39871. 80110da: 6078 str r0, [r7, #4]
  39872. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  39873. 80110dc: 687b ldr r3, [r7, #4]
  39874. 80110de: 613b str r3, [r7, #16]
  39875. UBaseType_t count;
  39876. if (hQueue == NULL) {
  39877. 80110e0: 693b ldr r3, [r7, #16]
  39878. 80110e2: 2b00 cmp r3, #0
  39879. 80110e4: d102 bne.n 80110ec <osMessageQueueGetCount+0x18>
  39880. count = 0U;
  39881. 80110e6: 2300 movs r3, #0
  39882. 80110e8: 617b str r3, [r7, #20]
  39883. 80110ea: e00e b.n 801110a <osMessageQueueGetCount+0x36>
  39884. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39885. 80110ec: f3ef 8305 mrs r3, IPSR
  39886. 80110f0: 60fb str r3, [r7, #12]
  39887. return(result);
  39888. 80110f2: 68fb ldr r3, [r7, #12]
  39889. }
  39890. else if (IS_IRQ()) {
  39891. 80110f4: 2b00 cmp r3, #0
  39892. 80110f6: d004 beq.n 8011102 <osMessageQueueGetCount+0x2e>
  39893. count = uxQueueMessagesWaitingFromISR (hQueue);
  39894. 80110f8: 6938 ldr r0, [r7, #16]
  39895. 80110fa: f001 f846 bl 801218a <uxQueueMessagesWaitingFromISR>
  39896. 80110fe: 6178 str r0, [r7, #20]
  39897. 8011100: e003 b.n 801110a <osMessageQueueGetCount+0x36>
  39898. }
  39899. else {
  39900. count = uxQueueMessagesWaiting (hQueue);
  39901. 8011102: 6938 ldr r0, [r7, #16]
  39902. 8011104: f001 f822 bl 801214c <uxQueueMessagesWaiting>
  39903. 8011108: 6178 str r0, [r7, #20]
  39904. }
  39905. return ((uint32_t)count);
  39906. 801110a: 697b ldr r3, [r7, #20]
  39907. }
  39908. 801110c: 4618 mov r0, r3
  39909. 801110e: 3718 adds r7, #24
  39910. 8011110: 46bd mov sp, r7
  39911. 8011112: bd80 pop {r7, pc}
  39912. 08011114 <osMessageQueueDelete>:
  39913. }
  39914. return (stat);
  39915. }
  39916. osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id) {
  39917. 8011114: b580 push {r7, lr}
  39918. 8011116: b086 sub sp, #24
  39919. 8011118: af00 add r7, sp, #0
  39920. 801111a: 6078 str r0, [r7, #4]
  39921. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  39922. 801111c: 687b ldr r3, [r7, #4]
  39923. 801111e: 613b str r3, [r7, #16]
  39924. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39925. 8011120: f3ef 8305 mrs r3, IPSR
  39926. 8011124: 60fb str r3, [r7, #12]
  39927. return(result);
  39928. 8011126: 68fb ldr r3, [r7, #12]
  39929. osStatus_t stat;
  39930. #ifndef USE_FreeRTOS_HEAP_1
  39931. if (IS_IRQ()) {
  39932. 8011128: 2b00 cmp r3, #0
  39933. 801112a: d003 beq.n 8011134 <osMessageQueueDelete+0x20>
  39934. stat = osErrorISR;
  39935. 801112c: f06f 0305 mvn.w r3, #5
  39936. 8011130: 617b str r3, [r7, #20]
  39937. 8011132: e00e b.n 8011152 <osMessageQueueDelete+0x3e>
  39938. }
  39939. else if (hQueue == NULL) {
  39940. 8011134: 693b ldr r3, [r7, #16]
  39941. 8011136: 2b00 cmp r3, #0
  39942. 8011138: d103 bne.n 8011142 <osMessageQueueDelete+0x2e>
  39943. stat = osErrorParameter;
  39944. 801113a: f06f 0303 mvn.w r3, #3
  39945. 801113e: 617b str r3, [r7, #20]
  39946. 8011140: e007 b.n 8011152 <osMessageQueueDelete+0x3e>
  39947. }
  39948. else {
  39949. #if (configQUEUE_REGISTRY_SIZE > 0)
  39950. vQueueUnregisterQueue (hQueue);
  39951. 8011142: 6938 ldr r0, [r7, #16]
  39952. 8011144: f001 f9b6 bl 80124b4 <vQueueUnregisterQueue>
  39953. #endif
  39954. stat = osOK;
  39955. 8011148: 2300 movs r3, #0
  39956. 801114a: 617b str r3, [r7, #20]
  39957. vQueueDelete (hQueue);
  39958. 801114c: 6938 ldr r0, [r7, #16]
  39959. 801114e: f001 f83b bl 80121c8 <vQueueDelete>
  39960. }
  39961. #else
  39962. stat = osError;
  39963. #endif
  39964. return (stat);
  39965. 8011152: 697b ldr r3, [r7, #20]
  39966. }
  39967. 8011154: 4618 mov r0, r3
  39968. 8011156: 3718 adds r7, #24
  39969. 8011158: 46bd mov sp, r7
  39970. 801115a: bd80 pop {r7, pc}
  39971. 0801115c <vApplicationGetIdleTaskMemory>:
  39972. /*
  39973. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  39974. equals to 1 and is required for static memory allocation support.
  39975. */
  39976. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  39977. 801115c: b480 push {r7}
  39978. 801115e: b085 sub sp, #20
  39979. 8011160: af00 add r7, sp, #0
  39980. 8011162: 60f8 str r0, [r7, #12]
  39981. 8011164: 60b9 str r1, [r7, #8]
  39982. 8011166: 607a str r2, [r7, #4]
  39983. /* Idle task control block and stack */
  39984. static StaticTask_t Idle_TCB;
  39985. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  39986. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  39987. 8011168: 68fb ldr r3, [r7, #12]
  39988. 801116a: 4a07 ldr r2, [pc, #28] @ (8011188 <vApplicationGetIdleTaskMemory+0x2c>)
  39989. 801116c: 601a str r2, [r3, #0]
  39990. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  39991. 801116e: 68bb ldr r3, [r7, #8]
  39992. 8011170: 4a06 ldr r2, [pc, #24] @ (801118c <vApplicationGetIdleTaskMemory+0x30>)
  39993. 8011172: 601a str r2, [r3, #0]
  39994. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  39995. 8011174: 687b ldr r3, [r7, #4]
  39996. 8011176: f44f 7200 mov.w r2, #512 @ 0x200
  39997. 801117a: 601a str r2, [r3, #0]
  39998. }
  39999. 801117c: bf00 nop
  40000. 801117e: 3714 adds r7, #20
  40001. 8011180: 46bd mov sp, r7
  40002. 8011182: f85d 7b04 ldr.w r7, [sp], #4
  40003. 8011186: 4770 bx lr
  40004. 8011188: 24002300 .word 0x24002300
  40005. 801118c: 240023a8 .word 0x240023a8
  40006. 08011190 <vApplicationGetTimerTaskMemory>:
  40007. /*
  40008. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  40009. equals to 1 and is required for static memory allocation support.
  40010. */
  40011. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  40012. 8011190: b480 push {r7}
  40013. 8011192: b085 sub sp, #20
  40014. 8011194: af00 add r7, sp, #0
  40015. 8011196: 60f8 str r0, [r7, #12]
  40016. 8011198: 60b9 str r1, [r7, #8]
  40017. 801119a: 607a str r2, [r7, #4]
  40018. /* Timer task control block and stack */
  40019. static StaticTask_t Timer_TCB;
  40020. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  40021. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  40022. 801119c: 68fb ldr r3, [r7, #12]
  40023. 801119e: 4a07 ldr r2, [pc, #28] @ (80111bc <vApplicationGetTimerTaskMemory+0x2c>)
  40024. 80111a0: 601a str r2, [r3, #0]
  40025. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  40026. 80111a2: 68bb ldr r3, [r7, #8]
  40027. 80111a4: 4a06 ldr r2, [pc, #24] @ (80111c0 <vApplicationGetTimerTaskMemory+0x30>)
  40028. 80111a6: 601a str r2, [r3, #0]
  40029. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  40030. 80111a8: 687b ldr r3, [r7, #4]
  40031. 80111aa: f44f 6280 mov.w r2, #1024 @ 0x400
  40032. 80111ae: 601a str r2, [r3, #0]
  40033. }
  40034. 80111b0: bf00 nop
  40035. 80111b2: 3714 adds r7, #20
  40036. 80111b4: 46bd mov sp, r7
  40037. 80111b6: f85d 7b04 ldr.w r7, [sp], #4
  40038. 80111ba: 4770 bx lr
  40039. 80111bc: 24002ba8 .word 0x24002ba8
  40040. 80111c0: 24002c50 .word 0x24002c50
  40041. 080111c4 <vListInitialise>:
  40042. /*-----------------------------------------------------------
  40043. * PUBLIC LIST API documented in list.h
  40044. *----------------------------------------------------------*/
  40045. void vListInitialise( List_t * const pxList )
  40046. {
  40047. 80111c4: b480 push {r7}
  40048. 80111c6: b083 sub sp, #12
  40049. 80111c8: af00 add r7, sp, #0
  40050. 80111ca: 6078 str r0, [r7, #4]
  40051. /* The list structure contains a list item which is used to mark the
  40052. end of the list. To initialise the list the list end is inserted
  40053. as the only list entry. */
  40054. 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. */
  40055. 80111cc: 687b ldr r3, [r7, #4]
  40056. 80111ce: f103 0208 add.w r2, r3, #8
  40057. 80111d2: 687b ldr r3, [r7, #4]
  40058. 80111d4: 605a str r2, [r3, #4]
  40059. /* The list end value is the highest possible value in the list to
  40060. ensure it remains at the end of the list. */
  40061. pxList->xListEnd.xItemValue = portMAX_DELAY;
  40062. 80111d6: 687b ldr r3, [r7, #4]
  40063. 80111d8: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  40064. 80111dc: 609a str r2, [r3, #8]
  40065. /* The list end next and previous pointers point to itself so we know
  40066. when the list is empty. */
  40067. 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. */
  40068. 80111de: 687b ldr r3, [r7, #4]
  40069. 80111e0: f103 0208 add.w r2, r3, #8
  40070. 80111e4: 687b ldr r3, [r7, #4]
  40071. 80111e6: 60da str r2, [r3, #12]
  40072. 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. */
  40073. 80111e8: 687b ldr r3, [r7, #4]
  40074. 80111ea: f103 0208 add.w r2, r3, #8
  40075. 80111ee: 687b ldr r3, [r7, #4]
  40076. 80111f0: 611a str r2, [r3, #16]
  40077. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  40078. 80111f2: 687b ldr r3, [r7, #4]
  40079. 80111f4: 2200 movs r2, #0
  40080. 80111f6: 601a str r2, [r3, #0]
  40081. /* Write known values into the list if
  40082. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  40083. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  40084. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  40085. }
  40086. 80111f8: bf00 nop
  40087. 80111fa: 370c adds r7, #12
  40088. 80111fc: 46bd mov sp, r7
  40089. 80111fe: f85d 7b04 ldr.w r7, [sp], #4
  40090. 8011202: 4770 bx lr
  40091. 08011204 <vListInitialiseItem>:
  40092. /*-----------------------------------------------------------*/
  40093. void vListInitialiseItem( ListItem_t * const pxItem )
  40094. {
  40095. 8011204: b480 push {r7}
  40096. 8011206: b083 sub sp, #12
  40097. 8011208: af00 add r7, sp, #0
  40098. 801120a: 6078 str r0, [r7, #4]
  40099. /* Make sure the list item is not recorded as being on a list. */
  40100. pxItem->pxContainer = NULL;
  40101. 801120c: 687b ldr r3, [r7, #4]
  40102. 801120e: 2200 movs r2, #0
  40103. 8011210: 611a str r2, [r3, #16]
  40104. /* Write known values into the list item if
  40105. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  40106. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  40107. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  40108. }
  40109. 8011212: bf00 nop
  40110. 8011214: 370c adds r7, #12
  40111. 8011216: 46bd mov sp, r7
  40112. 8011218: f85d 7b04 ldr.w r7, [sp], #4
  40113. 801121c: 4770 bx lr
  40114. 0801121e <vListInsertEnd>:
  40115. /*-----------------------------------------------------------*/
  40116. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  40117. {
  40118. 801121e: b480 push {r7}
  40119. 8011220: b085 sub sp, #20
  40120. 8011222: af00 add r7, sp, #0
  40121. 8011224: 6078 str r0, [r7, #4]
  40122. 8011226: 6039 str r1, [r7, #0]
  40123. ListItem_t * const pxIndex = pxList->pxIndex;
  40124. 8011228: 687b ldr r3, [r7, #4]
  40125. 801122a: 685b ldr r3, [r3, #4]
  40126. 801122c: 60fb str r3, [r7, #12]
  40127. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  40128. /* Insert a new list item into pxList, but rather than sort the list,
  40129. makes the new list item the last item to be removed by a call to
  40130. listGET_OWNER_OF_NEXT_ENTRY(). */
  40131. pxNewListItem->pxNext = pxIndex;
  40132. 801122e: 683b ldr r3, [r7, #0]
  40133. 8011230: 68fa ldr r2, [r7, #12]
  40134. 8011232: 605a str r2, [r3, #4]
  40135. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  40136. 8011234: 68fb ldr r3, [r7, #12]
  40137. 8011236: 689a ldr r2, [r3, #8]
  40138. 8011238: 683b ldr r3, [r7, #0]
  40139. 801123a: 609a str r2, [r3, #8]
  40140. /* Only used during decision coverage testing. */
  40141. mtCOVERAGE_TEST_DELAY();
  40142. pxIndex->pxPrevious->pxNext = pxNewListItem;
  40143. 801123c: 68fb ldr r3, [r7, #12]
  40144. 801123e: 689b ldr r3, [r3, #8]
  40145. 8011240: 683a ldr r2, [r7, #0]
  40146. 8011242: 605a str r2, [r3, #4]
  40147. pxIndex->pxPrevious = pxNewListItem;
  40148. 8011244: 68fb ldr r3, [r7, #12]
  40149. 8011246: 683a ldr r2, [r7, #0]
  40150. 8011248: 609a str r2, [r3, #8]
  40151. /* Remember which list the item is in. */
  40152. pxNewListItem->pxContainer = pxList;
  40153. 801124a: 683b ldr r3, [r7, #0]
  40154. 801124c: 687a ldr r2, [r7, #4]
  40155. 801124e: 611a str r2, [r3, #16]
  40156. ( pxList->uxNumberOfItems )++;
  40157. 8011250: 687b ldr r3, [r7, #4]
  40158. 8011252: 681b ldr r3, [r3, #0]
  40159. 8011254: 1c5a adds r2, r3, #1
  40160. 8011256: 687b ldr r3, [r7, #4]
  40161. 8011258: 601a str r2, [r3, #0]
  40162. }
  40163. 801125a: bf00 nop
  40164. 801125c: 3714 adds r7, #20
  40165. 801125e: 46bd mov sp, r7
  40166. 8011260: f85d 7b04 ldr.w r7, [sp], #4
  40167. 8011264: 4770 bx lr
  40168. 08011266 <vListInsert>:
  40169. /*-----------------------------------------------------------*/
  40170. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  40171. {
  40172. 8011266: b480 push {r7}
  40173. 8011268: b085 sub sp, #20
  40174. 801126a: af00 add r7, sp, #0
  40175. 801126c: 6078 str r0, [r7, #4]
  40176. 801126e: 6039 str r1, [r7, #0]
  40177. ListItem_t *pxIterator;
  40178. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  40179. 8011270: 683b ldr r3, [r7, #0]
  40180. 8011272: 681b ldr r3, [r3, #0]
  40181. 8011274: 60bb str r3, [r7, #8]
  40182. new list item should be placed after it. This ensures that TCBs which are
  40183. stored in ready lists (all of which have the same xItemValue value) get a
  40184. share of the CPU. However, if the xItemValue is the same as the back marker
  40185. the iteration loop below will not end. Therefore the value is checked
  40186. first, and the algorithm slightly modified if necessary. */
  40187. if( xValueOfInsertion == portMAX_DELAY )
  40188. 8011276: 68bb ldr r3, [r7, #8]
  40189. 8011278: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  40190. 801127c: d103 bne.n 8011286 <vListInsert+0x20>
  40191. {
  40192. pxIterator = pxList->xListEnd.pxPrevious;
  40193. 801127e: 687b ldr r3, [r7, #4]
  40194. 8011280: 691b ldr r3, [r3, #16]
  40195. 8011282: 60fb str r3, [r7, #12]
  40196. 8011284: e00c b.n 80112a0 <vListInsert+0x3a>
  40197. 4) Using a queue or semaphore before it has been initialised or
  40198. before the scheduler has been started (are interrupts firing
  40199. before vTaskStartScheduler() has been called?).
  40200. **********************************************************************/
  40201. 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. */
  40202. 8011286: 687b ldr r3, [r7, #4]
  40203. 8011288: 3308 adds r3, #8
  40204. 801128a: 60fb str r3, [r7, #12]
  40205. 801128c: e002 b.n 8011294 <vListInsert+0x2e>
  40206. 801128e: 68fb ldr r3, [r7, #12]
  40207. 8011290: 685b ldr r3, [r3, #4]
  40208. 8011292: 60fb str r3, [r7, #12]
  40209. 8011294: 68fb ldr r3, [r7, #12]
  40210. 8011296: 685b ldr r3, [r3, #4]
  40211. 8011298: 681b ldr r3, [r3, #0]
  40212. 801129a: 68ba ldr r2, [r7, #8]
  40213. 801129c: 429a cmp r2, r3
  40214. 801129e: d2f6 bcs.n 801128e <vListInsert+0x28>
  40215. /* There is nothing to do here, just iterating to the wanted
  40216. insertion position. */
  40217. }
  40218. }
  40219. pxNewListItem->pxNext = pxIterator->pxNext;
  40220. 80112a0: 68fb ldr r3, [r7, #12]
  40221. 80112a2: 685a ldr r2, [r3, #4]
  40222. 80112a4: 683b ldr r3, [r7, #0]
  40223. 80112a6: 605a str r2, [r3, #4]
  40224. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  40225. 80112a8: 683b ldr r3, [r7, #0]
  40226. 80112aa: 685b ldr r3, [r3, #4]
  40227. 80112ac: 683a ldr r2, [r7, #0]
  40228. 80112ae: 609a str r2, [r3, #8]
  40229. pxNewListItem->pxPrevious = pxIterator;
  40230. 80112b0: 683b ldr r3, [r7, #0]
  40231. 80112b2: 68fa ldr r2, [r7, #12]
  40232. 80112b4: 609a str r2, [r3, #8]
  40233. pxIterator->pxNext = pxNewListItem;
  40234. 80112b6: 68fb ldr r3, [r7, #12]
  40235. 80112b8: 683a ldr r2, [r7, #0]
  40236. 80112ba: 605a str r2, [r3, #4]
  40237. /* Remember which list the item is in. This allows fast removal of the
  40238. item later. */
  40239. pxNewListItem->pxContainer = pxList;
  40240. 80112bc: 683b ldr r3, [r7, #0]
  40241. 80112be: 687a ldr r2, [r7, #4]
  40242. 80112c0: 611a str r2, [r3, #16]
  40243. ( pxList->uxNumberOfItems )++;
  40244. 80112c2: 687b ldr r3, [r7, #4]
  40245. 80112c4: 681b ldr r3, [r3, #0]
  40246. 80112c6: 1c5a adds r2, r3, #1
  40247. 80112c8: 687b ldr r3, [r7, #4]
  40248. 80112ca: 601a str r2, [r3, #0]
  40249. }
  40250. 80112cc: bf00 nop
  40251. 80112ce: 3714 adds r7, #20
  40252. 80112d0: 46bd mov sp, r7
  40253. 80112d2: f85d 7b04 ldr.w r7, [sp], #4
  40254. 80112d6: 4770 bx lr
  40255. 080112d8 <uxListRemove>:
  40256. /*-----------------------------------------------------------*/
  40257. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  40258. {
  40259. 80112d8: b480 push {r7}
  40260. 80112da: b085 sub sp, #20
  40261. 80112dc: af00 add r7, sp, #0
  40262. 80112de: 6078 str r0, [r7, #4]
  40263. /* The list item knows which list it is in. Obtain the list from the list
  40264. item. */
  40265. List_t * const pxList = pxItemToRemove->pxContainer;
  40266. 80112e0: 687b ldr r3, [r7, #4]
  40267. 80112e2: 691b ldr r3, [r3, #16]
  40268. 80112e4: 60fb str r3, [r7, #12]
  40269. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  40270. 80112e6: 687b ldr r3, [r7, #4]
  40271. 80112e8: 685b ldr r3, [r3, #4]
  40272. 80112ea: 687a ldr r2, [r7, #4]
  40273. 80112ec: 6892 ldr r2, [r2, #8]
  40274. 80112ee: 609a str r2, [r3, #8]
  40275. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  40276. 80112f0: 687b ldr r3, [r7, #4]
  40277. 80112f2: 689b ldr r3, [r3, #8]
  40278. 80112f4: 687a ldr r2, [r7, #4]
  40279. 80112f6: 6852 ldr r2, [r2, #4]
  40280. 80112f8: 605a str r2, [r3, #4]
  40281. /* Only used during decision coverage testing. */
  40282. mtCOVERAGE_TEST_DELAY();
  40283. /* Make sure the index is left pointing to a valid item. */
  40284. if( pxList->pxIndex == pxItemToRemove )
  40285. 80112fa: 68fb ldr r3, [r7, #12]
  40286. 80112fc: 685b ldr r3, [r3, #4]
  40287. 80112fe: 687a ldr r2, [r7, #4]
  40288. 8011300: 429a cmp r2, r3
  40289. 8011302: d103 bne.n 801130c <uxListRemove+0x34>
  40290. {
  40291. pxList->pxIndex = pxItemToRemove->pxPrevious;
  40292. 8011304: 687b ldr r3, [r7, #4]
  40293. 8011306: 689a ldr r2, [r3, #8]
  40294. 8011308: 68fb ldr r3, [r7, #12]
  40295. 801130a: 605a str r2, [r3, #4]
  40296. else
  40297. {
  40298. mtCOVERAGE_TEST_MARKER();
  40299. }
  40300. pxItemToRemove->pxContainer = NULL;
  40301. 801130c: 687b ldr r3, [r7, #4]
  40302. 801130e: 2200 movs r2, #0
  40303. 8011310: 611a str r2, [r3, #16]
  40304. ( pxList->uxNumberOfItems )--;
  40305. 8011312: 68fb ldr r3, [r7, #12]
  40306. 8011314: 681b ldr r3, [r3, #0]
  40307. 8011316: 1e5a subs r2, r3, #1
  40308. 8011318: 68fb ldr r3, [r7, #12]
  40309. 801131a: 601a str r2, [r3, #0]
  40310. return pxList->uxNumberOfItems;
  40311. 801131c: 68fb ldr r3, [r7, #12]
  40312. 801131e: 681b ldr r3, [r3, #0]
  40313. }
  40314. 8011320: 4618 mov r0, r3
  40315. 8011322: 3714 adds r7, #20
  40316. 8011324: 46bd mov sp, r7
  40317. 8011326: f85d 7b04 ldr.w r7, [sp], #4
  40318. 801132a: 4770 bx lr
  40319. 0801132c <xQueueGenericReset>:
  40320. } \
  40321. taskEXIT_CRITICAL()
  40322. /*-----------------------------------------------------------*/
  40323. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  40324. {
  40325. 801132c: b580 push {r7, lr}
  40326. 801132e: b084 sub sp, #16
  40327. 8011330: af00 add r7, sp, #0
  40328. 8011332: 6078 str r0, [r7, #4]
  40329. 8011334: 6039 str r1, [r7, #0]
  40330. Queue_t * const pxQueue = xQueue;
  40331. 8011336: 687b ldr r3, [r7, #4]
  40332. 8011338: 60fb str r3, [r7, #12]
  40333. configASSERT( pxQueue );
  40334. 801133a: 68fb ldr r3, [r7, #12]
  40335. 801133c: 2b00 cmp r3, #0
  40336. 801133e: d10b bne.n 8011358 <xQueueGenericReset+0x2c>
  40337. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  40338. {
  40339. uint32_t ulNewBASEPRI;
  40340. __asm volatile
  40341. 8011340: f04f 0350 mov.w r3, #80 @ 0x50
  40342. 8011344: f383 8811 msr BASEPRI, r3
  40343. 8011348: f3bf 8f6f isb sy
  40344. 801134c: f3bf 8f4f dsb sy
  40345. 8011350: 60bb str r3, [r7, #8]
  40346. " msr basepri, %0 \n" \
  40347. " isb \n" \
  40348. " dsb \n" \
  40349. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  40350. );
  40351. }
  40352. 8011352: bf00 nop
  40353. 8011354: bf00 nop
  40354. 8011356: e7fd b.n 8011354 <xQueueGenericReset+0x28>
  40355. taskENTER_CRITICAL();
  40356. 8011358: f003 fbee bl 8014b38 <vPortEnterCritical>
  40357. {
  40358. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  40359. 801135c: 68fb ldr r3, [r7, #12]
  40360. 801135e: 681a ldr r2, [r3, #0]
  40361. 8011360: 68fb ldr r3, [r7, #12]
  40362. 8011362: 6bdb ldr r3, [r3, #60] @ 0x3c
  40363. 8011364: 68f9 ldr r1, [r7, #12]
  40364. 8011366: 6c09 ldr r1, [r1, #64] @ 0x40
  40365. 8011368: fb01 f303 mul.w r3, r1, r3
  40366. 801136c: 441a add r2, r3
  40367. 801136e: 68fb ldr r3, [r7, #12]
  40368. 8011370: 609a str r2, [r3, #8]
  40369. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  40370. 8011372: 68fb ldr r3, [r7, #12]
  40371. 8011374: 2200 movs r2, #0
  40372. 8011376: 639a str r2, [r3, #56] @ 0x38
  40373. pxQueue->pcWriteTo = pxQueue->pcHead;
  40374. 8011378: 68fb ldr r3, [r7, #12]
  40375. 801137a: 681a ldr r2, [r3, #0]
  40376. 801137c: 68fb ldr r3, [r7, #12]
  40377. 801137e: 605a str r2, [r3, #4]
  40378. 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. */
  40379. 8011380: 68fb ldr r3, [r7, #12]
  40380. 8011382: 681a ldr r2, [r3, #0]
  40381. 8011384: 68fb ldr r3, [r7, #12]
  40382. 8011386: 6bdb ldr r3, [r3, #60] @ 0x3c
  40383. 8011388: 3b01 subs r3, #1
  40384. 801138a: 68f9 ldr r1, [r7, #12]
  40385. 801138c: 6c09 ldr r1, [r1, #64] @ 0x40
  40386. 801138e: fb01 f303 mul.w r3, r1, r3
  40387. 8011392: 441a add r2, r3
  40388. 8011394: 68fb ldr r3, [r7, #12]
  40389. 8011396: 60da str r2, [r3, #12]
  40390. pxQueue->cRxLock = queueUNLOCKED;
  40391. 8011398: 68fb ldr r3, [r7, #12]
  40392. 801139a: 22ff movs r2, #255 @ 0xff
  40393. 801139c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  40394. pxQueue->cTxLock = queueUNLOCKED;
  40395. 80113a0: 68fb ldr r3, [r7, #12]
  40396. 80113a2: 22ff movs r2, #255 @ 0xff
  40397. 80113a4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  40398. if( xNewQueue == pdFALSE )
  40399. 80113a8: 683b ldr r3, [r7, #0]
  40400. 80113aa: 2b00 cmp r3, #0
  40401. 80113ac: d114 bne.n 80113d8 <xQueueGenericReset+0xac>
  40402. /* If there are tasks blocked waiting to read from the queue, then
  40403. the tasks will remain blocked as after this function exits the queue
  40404. will still be empty. If there are tasks blocked waiting to write to
  40405. the queue, then one should be unblocked as after this function exits
  40406. it will be possible to write to it. */
  40407. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  40408. 80113ae: 68fb ldr r3, [r7, #12]
  40409. 80113b0: 691b ldr r3, [r3, #16]
  40410. 80113b2: 2b00 cmp r3, #0
  40411. 80113b4: d01a beq.n 80113ec <xQueueGenericReset+0xc0>
  40412. {
  40413. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  40414. 80113b6: 68fb ldr r3, [r7, #12]
  40415. 80113b8: 3310 adds r3, #16
  40416. 80113ba: 4618 mov r0, r3
  40417. 80113bc: f002 f922 bl 8013604 <xTaskRemoveFromEventList>
  40418. 80113c0: 4603 mov r3, r0
  40419. 80113c2: 2b00 cmp r3, #0
  40420. 80113c4: d012 beq.n 80113ec <xQueueGenericReset+0xc0>
  40421. {
  40422. queueYIELD_IF_USING_PREEMPTION();
  40423. 80113c6: 4b0d ldr r3, [pc, #52] @ (80113fc <xQueueGenericReset+0xd0>)
  40424. 80113c8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40425. 80113cc: 601a str r2, [r3, #0]
  40426. 80113ce: f3bf 8f4f dsb sy
  40427. 80113d2: f3bf 8f6f isb sy
  40428. 80113d6: e009 b.n 80113ec <xQueueGenericReset+0xc0>
  40429. }
  40430. }
  40431. else
  40432. {
  40433. /* Ensure the event queues start in the correct state. */
  40434. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  40435. 80113d8: 68fb ldr r3, [r7, #12]
  40436. 80113da: 3310 adds r3, #16
  40437. 80113dc: 4618 mov r0, r3
  40438. 80113de: f7ff fef1 bl 80111c4 <vListInitialise>
  40439. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  40440. 80113e2: 68fb ldr r3, [r7, #12]
  40441. 80113e4: 3324 adds r3, #36 @ 0x24
  40442. 80113e6: 4618 mov r0, r3
  40443. 80113e8: f7ff feec bl 80111c4 <vListInitialise>
  40444. }
  40445. }
  40446. taskEXIT_CRITICAL();
  40447. 80113ec: f003 fbd6 bl 8014b9c <vPortExitCritical>
  40448. /* A value is returned for calling semantic consistency with previous
  40449. versions. */
  40450. return pdPASS;
  40451. 80113f0: 2301 movs r3, #1
  40452. }
  40453. 80113f2: 4618 mov r0, r3
  40454. 80113f4: 3710 adds r7, #16
  40455. 80113f6: 46bd mov sp, r7
  40456. 80113f8: bd80 pop {r7, pc}
  40457. 80113fa: bf00 nop
  40458. 80113fc: e000ed04 .word 0xe000ed04
  40459. 08011400 <xQueueGenericCreateStatic>:
  40460. /*-----------------------------------------------------------*/
  40461. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  40462. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  40463. {
  40464. 8011400: b580 push {r7, lr}
  40465. 8011402: b08e sub sp, #56 @ 0x38
  40466. 8011404: af02 add r7, sp, #8
  40467. 8011406: 60f8 str r0, [r7, #12]
  40468. 8011408: 60b9 str r1, [r7, #8]
  40469. 801140a: 607a str r2, [r7, #4]
  40470. 801140c: 603b str r3, [r7, #0]
  40471. Queue_t *pxNewQueue;
  40472. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  40473. 801140e: 68fb ldr r3, [r7, #12]
  40474. 8011410: 2b00 cmp r3, #0
  40475. 8011412: d10b bne.n 801142c <xQueueGenericCreateStatic+0x2c>
  40476. __asm volatile
  40477. 8011414: f04f 0350 mov.w r3, #80 @ 0x50
  40478. 8011418: f383 8811 msr BASEPRI, r3
  40479. 801141c: f3bf 8f6f isb sy
  40480. 8011420: f3bf 8f4f dsb sy
  40481. 8011424: 62bb str r3, [r7, #40] @ 0x28
  40482. }
  40483. 8011426: bf00 nop
  40484. 8011428: bf00 nop
  40485. 801142a: e7fd b.n 8011428 <xQueueGenericCreateStatic+0x28>
  40486. /* The StaticQueue_t structure and the queue storage area must be
  40487. supplied. */
  40488. configASSERT( pxStaticQueue != NULL );
  40489. 801142c: 683b ldr r3, [r7, #0]
  40490. 801142e: 2b00 cmp r3, #0
  40491. 8011430: d10b bne.n 801144a <xQueueGenericCreateStatic+0x4a>
  40492. __asm volatile
  40493. 8011432: f04f 0350 mov.w r3, #80 @ 0x50
  40494. 8011436: f383 8811 msr BASEPRI, r3
  40495. 801143a: f3bf 8f6f isb sy
  40496. 801143e: f3bf 8f4f dsb sy
  40497. 8011442: 627b str r3, [r7, #36] @ 0x24
  40498. }
  40499. 8011444: bf00 nop
  40500. 8011446: bf00 nop
  40501. 8011448: e7fd b.n 8011446 <xQueueGenericCreateStatic+0x46>
  40502. /* A queue storage area should be provided if the item size is not 0, and
  40503. should not be provided if the item size is 0. */
  40504. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  40505. 801144a: 687b ldr r3, [r7, #4]
  40506. 801144c: 2b00 cmp r3, #0
  40507. 801144e: d002 beq.n 8011456 <xQueueGenericCreateStatic+0x56>
  40508. 8011450: 68bb ldr r3, [r7, #8]
  40509. 8011452: 2b00 cmp r3, #0
  40510. 8011454: d001 beq.n 801145a <xQueueGenericCreateStatic+0x5a>
  40511. 8011456: 2301 movs r3, #1
  40512. 8011458: e000 b.n 801145c <xQueueGenericCreateStatic+0x5c>
  40513. 801145a: 2300 movs r3, #0
  40514. 801145c: 2b00 cmp r3, #0
  40515. 801145e: d10b bne.n 8011478 <xQueueGenericCreateStatic+0x78>
  40516. __asm volatile
  40517. 8011460: f04f 0350 mov.w r3, #80 @ 0x50
  40518. 8011464: f383 8811 msr BASEPRI, r3
  40519. 8011468: f3bf 8f6f isb sy
  40520. 801146c: f3bf 8f4f dsb sy
  40521. 8011470: 623b str r3, [r7, #32]
  40522. }
  40523. 8011472: bf00 nop
  40524. 8011474: bf00 nop
  40525. 8011476: e7fd b.n 8011474 <xQueueGenericCreateStatic+0x74>
  40526. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  40527. 8011478: 687b ldr r3, [r7, #4]
  40528. 801147a: 2b00 cmp r3, #0
  40529. 801147c: d102 bne.n 8011484 <xQueueGenericCreateStatic+0x84>
  40530. 801147e: 68bb ldr r3, [r7, #8]
  40531. 8011480: 2b00 cmp r3, #0
  40532. 8011482: d101 bne.n 8011488 <xQueueGenericCreateStatic+0x88>
  40533. 8011484: 2301 movs r3, #1
  40534. 8011486: e000 b.n 801148a <xQueueGenericCreateStatic+0x8a>
  40535. 8011488: 2300 movs r3, #0
  40536. 801148a: 2b00 cmp r3, #0
  40537. 801148c: d10b bne.n 80114a6 <xQueueGenericCreateStatic+0xa6>
  40538. __asm volatile
  40539. 801148e: f04f 0350 mov.w r3, #80 @ 0x50
  40540. 8011492: f383 8811 msr BASEPRI, r3
  40541. 8011496: f3bf 8f6f isb sy
  40542. 801149a: f3bf 8f4f dsb sy
  40543. 801149e: 61fb str r3, [r7, #28]
  40544. }
  40545. 80114a0: bf00 nop
  40546. 80114a2: bf00 nop
  40547. 80114a4: e7fd b.n 80114a2 <xQueueGenericCreateStatic+0xa2>
  40548. #if( configASSERT_DEFINED == 1 )
  40549. {
  40550. /* Sanity check that the size of the structure used to declare a
  40551. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  40552. the real queue and semaphore structures. */
  40553. volatile size_t xSize = sizeof( StaticQueue_t );
  40554. 80114a6: 2350 movs r3, #80 @ 0x50
  40555. 80114a8: 617b str r3, [r7, #20]
  40556. configASSERT( xSize == sizeof( Queue_t ) );
  40557. 80114aa: 697b ldr r3, [r7, #20]
  40558. 80114ac: 2b50 cmp r3, #80 @ 0x50
  40559. 80114ae: d00b beq.n 80114c8 <xQueueGenericCreateStatic+0xc8>
  40560. __asm volatile
  40561. 80114b0: f04f 0350 mov.w r3, #80 @ 0x50
  40562. 80114b4: f383 8811 msr BASEPRI, r3
  40563. 80114b8: f3bf 8f6f isb sy
  40564. 80114bc: f3bf 8f4f dsb sy
  40565. 80114c0: 61bb str r3, [r7, #24]
  40566. }
  40567. 80114c2: bf00 nop
  40568. 80114c4: bf00 nop
  40569. 80114c6: e7fd b.n 80114c4 <xQueueGenericCreateStatic+0xc4>
  40570. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  40571. 80114c8: 697b ldr r3, [r7, #20]
  40572. #endif /* configASSERT_DEFINED */
  40573. /* The address of a statically allocated queue was passed in, use it.
  40574. The address of a statically allocated storage area was also passed in
  40575. but is already set. */
  40576. 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. */
  40577. 80114ca: 683b ldr r3, [r7, #0]
  40578. 80114cc: 62fb str r3, [r7, #44] @ 0x2c
  40579. if( pxNewQueue != NULL )
  40580. 80114ce: 6afb ldr r3, [r7, #44] @ 0x2c
  40581. 80114d0: 2b00 cmp r3, #0
  40582. 80114d2: d00d beq.n 80114f0 <xQueueGenericCreateStatic+0xf0>
  40583. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  40584. {
  40585. /* Queues can be allocated wither statically or dynamically, so
  40586. note this queue was allocated statically in case the queue is
  40587. later deleted. */
  40588. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  40589. 80114d4: 6afb ldr r3, [r7, #44] @ 0x2c
  40590. 80114d6: 2201 movs r2, #1
  40591. 80114d8: f883 2046 strb.w r2, [r3, #70] @ 0x46
  40592. }
  40593. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  40594. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  40595. 80114dc: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  40596. 80114e0: 6afb ldr r3, [r7, #44] @ 0x2c
  40597. 80114e2: 9300 str r3, [sp, #0]
  40598. 80114e4: 4613 mov r3, r2
  40599. 80114e6: 687a ldr r2, [r7, #4]
  40600. 80114e8: 68b9 ldr r1, [r7, #8]
  40601. 80114ea: 68f8 ldr r0, [r7, #12]
  40602. 80114ec: f000 f840 bl 8011570 <prvInitialiseNewQueue>
  40603. {
  40604. traceQUEUE_CREATE_FAILED( ucQueueType );
  40605. mtCOVERAGE_TEST_MARKER();
  40606. }
  40607. return pxNewQueue;
  40608. 80114f0: 6afb ldr r3, [r7, #44] @ 0x2c
  40609. }
  40610. 80114f2: 4618 mov r0, r3
  40611. 80114f4: 3730 adds r7, #48 @ 0x30
  40612. 80114f6: 46bd mov sp, r7
  40613. 80114f8: bd80 pop {r7, pc}
  40614. 080114fa <xQueueGenericCreate>:
  40615. /*-----------------------------------------------------------*/
  40616. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  40617. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  40618. {
  40619. 80114fa: b580 push {r7, lr}
  40620. 80114fc: b08a sub sp, #40 @ 0x28
  40621. 80114fe: af02 add r7, sp, #8
  40622. 8011500: 60f8 str r0, [r7, #12]
  40623. 8011502: 60b9 str r1, [r7, #8]
  40624. 8011504: 4613 mov r3, r2
  40625. 8011506: 71fb strb r3, [r7, #7]
  40626. Queue_t *pxNewQueue;
  40627. size_t xQueueSizeInBytes;
  40628. uint8_t *pucQueueStorage;
  40629. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  40630. 8011508: 68fb ldr r3, [r7, #12]
  40631. 801150a: 2b00 cmp r3, #0
  40632. 801150c: d10b bne.n 8011526 <xQueueGenericCreate+0x2c>
  40633. __asm volatile
  40634. 801150e: f04f 0350 mov.w r3, #80 @ 0x50
  40635. 8011512: f383 8811 msr BASEPRI, r3
  40636. 8011516: f3bf 8f6f isb sy
  40637. 801151a: f3bf 8f4f dsb sy
  40638. 801151e: 613b str r3, [r7, #16]
  40639. }
  40640. 8011520: bf00 nop
  40641. 8011522: bf00 nop
  40642. 8011524: e7fd b.n 8011522 <xQueueGenericCreate+0x28>
  40643. /* Allocate enough space to hold the maximum number of items that
  40644. can be in the queue at any time. It is valid for uxItemSize to be
  40645. zero in the case the queue is used as a semaphore. */
  40646. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  40647. 8011526: 68fb ldr r3, [r7, #12]
  40648. 8011528: 68ba ldr r2, [r7, #8]
  40649. 801152a: fb02 f303 mul.w r3, r2, r3
  40650. 801152e: 61fb str r3, [r7, #28]
  40651. alignment requirements of the Queue_t structure - which in this case
  40652. is an int8_t *. Therefore, whenever the stack alignment requirements
  40653. are greater than or equal to the pointer to char requirements the cast
  40654. is safe. In other cases alignment requirements are not strict (one or
  40655. two bytes). */
  40656. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  40657. 8011530: 69fb ldr r3, [r7, #28]
  40658. 8011532: 3350 adds r3, #80 @ 0x50
  40659. 8011534: 4618 mov r0, r3
  40660. 8011536: f003 fc21 bl 8014d7c <pvPortMalloc>
  40661. 801153a: 61b8 str r0, [r7, #24]
  40662. if( pxNewQueue != NULL )
  40663. 801153c: 69bb ldr r3, [r7, #24]
  40664. 801153e: 2b00 cmp r3, #0
  40665. 8011540: d011 beq.n 8011566 <xQueueGenericCreate+0x6c>
  40666. {
  40667. /* Jump past the queue structure to find the location of the queue
  40668. storage area. */
  40669. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  40670. 8011542: 69bb ldr r3, [r7, #24]
  40671. 8011544: 617b str r3, [r7, #20]
  40672. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  40673. 8011546: 697b ldr r3, [r7, #20]
  40674. 8011548: 3350 adds r3, #80 @ 0x50
  40675. 801154a: 617b str r3, [r7, #20]
  40676. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  40677. {
  40678. /* Queues can be created either statically or dynamically, so
  40679. note this task was created dynamically in case it is later
  40680. deleted. */
  40681. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  40682. 801154c: 69bb ldr r3, [r7, #24]
  40683. 801154e: 2200 movs r2, #0
  40684. 8011550: f883 2046 strb.w r2, [r3, #70] @ 0x46
  40685. }
  40686. #endif /* configSUPPORT_STATIC_ALLOCATION */
  40687. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  40688. 8011554: 79fa ldrb r2, [r7, #7]
  40689. 8011556: 69bb ldr r3, [r7, #24]
  40690. 8011558: 9300 str r3, [sp, #0]
  40691. 801155a: 4613 mov r3, r2
  40692. 801155c: 697a ldr r2, [r7, #20]
  40693. 801155e: 68b9 ldr r1, [r7, #8]
  40694. 8011560: 68f8 ldr r0, [r7, #12]
  40695. 8011562: f000 f805 bl 8011570 <prvInitialiseNewQueue>
  40696. {
  40697. traceQUEUE_CREATE_FAILED( ucQueueType );
  40698. mtCOVERAGE_TEST_MARKER();
  40699. }
  40700. return pxNewQueue;
  40701. 8011566: 69bb ldr r3, [r7, #24]
  40702. }
  40703. 8011568: 4618 mov r0, r3
  40704. 801156a: 3720 adds r7, #32
  40705. 801156c: 46bd mov sp, r7
  40706. 801156e: bd80 pop {r7, pc}
  40707. 08011570 <prvInitialiseNewQueue>:
  40708. #endif /* configSUPPORT_STATIC_ALLOCATION */
  40709. /*-----------------------------------------------------------*/
  40710. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  40711. {
  40712. 8011570: b580 push {r7, lr}
  40713. 8011572: b084 sub sp, #16
  40714. 8011574: af00 add r7, sp, #0
  40715. 8011576: 60f8 str r0, [r7, #12]
  40716. 8011578: 60b9 str r1, [r7, #8]
  40717. 801157a: 607a str r2, [r7, #4]
  40718. 801157c: 70fb strb r3, [r7, #3]
  40719. /* Remove compiler warnings about unused parameters should
  40720. configUSE_TRACE_FACILITY not be set to 1. */
  40721. ( void ) ucQueueType;
  40722. if( uxItemSize == ( UBaseType_t ) 0 )
  40723. 801157e: 68bb ldr r3, [r7, #8]
  40724. 8011580: 2b00 cmp r3, #0
  40725. 8011582: d103 bne.n 801158c <prvInitialiseNewQueue+0x1c>
  40726. {
  40727. /* No RAM was allocated for the queue storage area, but PC head cannot
  40728. be set to NULL because NULL is used as a key to say the queue is used as
  40729. a mutex. Therefore just set pcHead to point to the queue as a benign
  40730. value that is known to be within the memory map. */
  40731. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  40732. 8011584: 69bb ldr r3, [r7, #24]
  40733. 8011586: 69ba ldr r2, [r7, #24]
  40734. 8011588: 601a str r2, [r3, #0]
  40735. 801158a: e002 b.n 8011592 <prvInitialiseNewQueue+0x22>
  40736. }
  40737. else
  40738. {
  40739. /* Set the head to the start of the queue storage area. */
  40740. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  40741. 801158c: 69bb ldr r3, [r7, #24]
  40742. 801158e: 687a ldr r2, [r7, #4]
  40743. 8011590: 601a str r2, [r3, #0]
  40744. }
  40745. /* Initialise the queue members as described where the queue type is
  40746. defined. */
  40747. pxNewQueue->uxLength = uxQueueLength;
  40748. 8011592: 69bb ldr r3, [r7, #24]
  40749. 8011594: 68fa ldr r2, [r7, #12]
  40750. 8011596: 63da str r2, [r3, #60] @ 0x3c
  40751. pxNewQueue->uxItemSize = uxItemSize;
  40752. 8011598: 69bb ldr r3, [r7, #24]
  40753. 801159a: 68ba ldr r2, [r7, #8]
  40754. 801159c: 641a str r2, [r3, #64] @ 0x40
  40755. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  40756. 801159e: 2101 movs r1, #1
  40757. 80115a0: 69b8 ldr r0, [r7, #24]
  40758. 80115a2: f7ff fec3 bl 801132c <xQueueGenericReset>
  40759. #if ( configUSE_TRACE_FACILITY == 1 )
  40760. {
  40761. pxNewQueue->ucQueueType = ucQueueType;
  40762. 80115a6: 69bb ldr r3, [r7, #24]
  40763. 80115a8: 78fa ldrb r2, [r7, #3]
  40764. 80115aa: f883 204c strb.w r2, [r3, #76] @ 0x4c
  40765. pxNewQueue->pxQueueSetContainer = NULL;
  40766. }
  40767. #endif /* configUSE_QUEUE_SETS */
  40768. traceQUEUE_CREATE( pxNewQueue );
  40769. }
  40770. 80115ae: bf00 nop
  40771. 80115b0: 3710 adds r7, #16
  40772. 80115b2: 46bd mov sp, r7
  40773. 80115b4: bd80 pop {r7, pc}
  40774. 080115b6 <prvInitialiseMutex>:
  40775. /*-----------------------------------------------------------*/
  40776. #if( configUSE_MUTEXES == 1 )
  40777. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  40778. {
  40779. 80115b6: b580 push {r7, lr}
  40780. 80115b8: b082 sub sp, #8
  40781. 80115ba: af00 add r7, sp, #0
  40782. 80115bc: 6078 str r0, [r7, #4]
  40783. if( pxNewQueue != NULL )
  40784. 80115be: 687b ldr r3, [r7, #4]
  40785. 80115c0: 2b00 cmp r3, #0
  40786. 80115c2: d00e beq.n 80115e2 <prvInitialiseMutex+0x2c>
  40787. {
  40788. /* The queue create function will set all the queue structure members
  40789. correctly for a generic queue, but this function is creating a
  40790. mutex. Overwrite those members that need to be set differently -
  40791. in particular the information required for priority inheritance. */
  40792. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  40793. 80115c4: 687b ldr r3, [r7, #4]
  40794. 80115c6: 2200 movs r2, #0
  40795. 80115c8: 609a str r2, [r3, #8]
  40796. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  40797. 80115ca: 687b ldr r3, [r7, #4]
  40798. 80115cc: 2200 movs r2, #0
  40799. 80115ce: 601a str r2, [r3, #0]
  40800. /* In case this is a recursive mutex. */
  40801. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  40802. 80115d0: 687b ldr r3, [r7, #4]
  40803. 80115d2: 2200 movs r2, #0
  40804. 80115d4: 60da str r2, [r3, #12]
  40805. traceCREATE_MUTEX( pxNewQueue );
  40806. /* Start with the semaphore in the expected state. */
  40807. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  40808. 80115d6: 2300 movs r3, #0
  40809. 80115d8: 2200 movs r2, #0
  40810. 80115da: 2100 movs r1, #0
  40811. 80115dc: 6878 ldr r0, [r7, #4]
  40812. 80115de: f000 f911 bl 8011804 <xQueueGenericSend>
  40813. }
  40814. else
  40815. {
  40816. traceCREATE_MUTEX_FAILED();
  40817. }
  40818. }
  40819. 80115e2: bf00 nop
  40820. 80115e4: 3708 adds r7, #8
  40821. 80115e6: 46bd mov sp, r7
  40822. 80115e8: bd80 pop {r7, pc}
  40823. 080115ea <xQueueCreateMutex>:
  40824. /*-----------------------------------------------------------*/
  40825. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  40826. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  40827. {
  40828. 80115ea: b580 push {r7, lr}
  40829. 80115ec: b086 sub sp, #24
  40830. 80115ee: af00 add r7, sp, #0
  40831. 80115f0: 4603 mov r3, r0
  40832. 80115f2: 71fb strb r3, [r7, #7]
  40833. QueueHandle_t xNewQueue;
  40834. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  40835. 80115f4: 2301 movs r3, #1
  40836. 80115f6: 617b str r3, [r7, #20]
  40837. 80115f8: 2300 movs r3, #0
  40838. 80115fa: 613b str r3, [r7, #16]
  40839. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  40840. 80115fc: 79fb ldrb r3, [r7, #7]
  40841. 80115fe: 461a mov r2, r3
  40842. 8011600: 6939 ldr r1, [r7, #16]
  40843. 8011602: 6978 ldr r0, [r7, #20]
  40844. 8011604: f7ff ff79 bl 80114fa <xQueueGenericCreate>
  40845. 8011608: 60f8 str r0, [r7, #12]
  40846. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  40847. 801160a: 68f8 ldr r0, [r7, #12]
  40848. 801160c: f7ff ffd3 bl 80115b6 <prvInitialiseMutex>
  40849. return xNewQueue;
  40850. 8011610: 68fb ldr r3, [r7, #12]
  40851. }
  40852. 8011612: 4618 mov r0, r3
  40853. 8011614: 3718 adds r7, #24
  40854. 8011616: 46bd mov sp, r7
  40855. 8011618: bd80 pop {r7, pc}
  40856. 0801161a <xQueueCreateMutexStatic>:
  40857. /*-----------------------------------------------------------*/
  40858. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  40859. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  40860. {
  40861. 801161a: b580 push {r7, lr}
  40862. 801161c: b088 sub sp, #32
  40863. 801161e: af02 add r7, sp, #8
  40864. 8011620: 4603 mov r3, r0
  40865. 8011622: 6039 str r1, [r7, #0]
  40866. 8011624: 71fb strb r3, [r7, #7]
  40867. QueueHandle_t xNewQueue;
  40868. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  40869. 8011626: 2301 movs r3, #1
  40870. 8011628: 617b str r3, [r7, #20]
  40871. 801162a: 2300 movs r3, #0
  40872. 801162c: 613b str r3, [r7, #16]
  40873. /* Prevent compiler warnings about unused parameters if
  40874. configUSE_TRACE_FACILITY does not equal 1. */
  40875. ( void ) ucQueueType;
  40876. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  40877. 801162e: 79fb ldrb r3, [r7, #7]
  40878. 8011630: 9300 str r3, [sp, #0]
  40879. 8011632: 683b ldr r3, [r7, #0]
  40880. 8011634: 2200 movs r2, #0
  40881. 8011636: 6939 ldr r1, [r7, #16]
  40882. 8011638: 6978 ldr r0, [r7, #20]
  40883. 801163a: f7ff fee1 bl 8011400 <xQueueGenericCreateStatic>
  40884. 801163e: 60f8 str r0, [r7, #12]
  40885. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  40886. 8011640: 68f8 ldr r0, [r7, #12]
  40887. 8011642: f7ff ffb8 bl 80115b6 <prvInitialiseMutex>
  40888. return xNewQueue;
  40889. 8011646: 68fb ldr r3, [r7, #12]
  40890. }
  40891. 8011648: 4618 mov r0, r3
  40892. 801164a: 3718 adds r7, #24
  40893. 801164c: 46bd mov sp, r7
  40894. 801164e: bd80 pop {r7, pc}
  40895. 08011650 <xQueueGiveMutexRecursive>:
  40896. /*-----------------------------------------------------------*/
  40897. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  40898. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  40899. {
  40900. 8011650: b590 push {r4, r7, lr}
  40901. 8011652: b087 sub sp, #28
  40902. 8011654: af00 add r7, sp, #0
  40903. 8011656: 6078 str r0, [r7, #4]
  40904. BaseType_t xReturn;
  40905. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  40906. 8011658: 687b ldr r3, [r7, #4]
  40907. 801165a: 613b str r3, [r7, #16]
  40908. configASSERT( pxMutex );
  40909. 801165c: 693b ldr r3, [r7, #16]
  40910. 801165e: 2b00 cmp r3, #0
  40911. 8011660: d10b bne.n 801167a <xQueueGiveMutexRecursive+0x2a>
  40912. __asm volatile
  40913. 8011662: f04f 0350 mov.w r3, #80 @ 0x50
  40914. 8011666: f383 8811 msr BASEPRI, r3
  40915. 801166a: f3bf 8f6f isb sy
  40916. 801166e: f3bf 8f4f dsb sy
  40917. 8011672: 60fb str r3, [r7, #12]
  40918. }
  40919. 8011674: bf00 nop
  40920. 8011676: bf00 nop
  40921. 8011678: e7fd b.n 8011676 <xQueueGiveMutexRecursive+0x26>
  40922. change outside of this task. If this task does not hold the mutex then
  40923. pxMutexHolder can never coincidentally equal the tasks handle, and as
  40924. this is the only condition we are interested in it does not matter if
  40925. pxMutexHolder is accessed simultaneously by another task. Therefore no
  40926. mutual exclusion is required to test the pxMutexHolder variable. */
  40927. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  40928. 801167a: 693b ldr r3, [r7, #16]
  40929. 801167c: 689c ldr r4, [r3, #8]
  40930. 801167e: f002 f9af bl 80139e0 <xTaskGetCurrentTaskHandle>
  40931. 8011682: 4603 mov r3, r0
  40932. 8011684: 429c cmp r4, r3
  40933. 8011686: d111 bne.n 80116ac <xQueueGiveMutexRecursive+0x5c>
  40934. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  40935. the task handle, therefore no underflow check is required. Also,
  40936. uxRecursiveCallCount is only modified by the mutex holder, and as
  40937. there can only be one, no mutual exclusion is required to modify the
  40938. uxRecursiveCallCount member. */
  40939. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  40940. 8011688: 693b ldr r3, [r7, #16]
  40941. 801168a: 68db ldr r3, [r3, #12]
  40942. 801168c: 1e5a subs r2, r3, #1
  40943. 801168e: 693b ldr r3, [r7, #16]
  40944. 8011690: 60da str r2, [r3, #12]
  40945. /* Has the recursive call count unwound to 0? */
  40946. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  40947. 8011692: 693b ldr r3, [r7, #16]
  40948. 8011694: 68db ldr r3, [r3, #12]
  40949. 8011696: 2b00 cmp r3, #0
  40950. 8011698: d105 bne.n 80116a6 <xQueueGiveMutexRecursive+0x56>
  40951. {
  40952. /* Return the mutex. This will automatically unblock any other
  40953. task that might be waiting to access the mutex. */
  40954. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  40955. 801169a: 2300 movs r3, #0
  40956. 801169c: 2200 movs r2, #0
  40957. 801169e: 2100 movs r1, #0
  40958. 80116a0: 6938 ldr r0, [r7, #16]
  40959. 80116a2: f000 f8af bl 8011804 <xQueueGenericSend>
  40960. else
  40961. {
  40962. mtCOVERAGE_TEST_MARKER();
  40963. }
  40964. xReturn = pdPASS;
  40965. 80116a6: 2301 movs r3, #1
  40966. 80116a8: 617b str r3, [r7, #20]
  40967. 80116aa: e001 b.n 80116b0 <xQueueGiveMutexRecursive+0x60>
  40968. }
  40969. else
  40970. {
  40971. /* The mutex cannot be given because the calling task is not the
  40972. holder. */
  40973. xReturn = pdFAIL;
  40974. 80116ac: 2300 movs r3, #0
  40975. 80116ae: 617b str r3, [r7, #20]
  40976. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  40977. }
  40978. return xReturn;
  40979. 80116b0: 697b ldr r3, [r7, #20]
  40980. }
  40981. 80116b2: 4618 mov r0, r3
  40982. 80116b4: 371c adds r7, #28
  40983. 80116b6: 46bd mov sp, r7
  40984. 80116b8: bd90 pop {r4, r7, pc}
  40985. 080116ba <xQueueTakeMutexRecursive>:
  40986. /*-----------------------------------------------------------*/
  40987. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  40988. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  40989. {
  40990. 80116ba: b590 push {r4, r7, lr}
  40991. 80116bc: b087 sub sp, #28
  40992. 80116be: af00 add r7, sp, #0
  40993. 80116c0: 6078 str r0, [r7, #4]
  40994. 80116c2: 6039 str r1, [r7, #0]
  40995. BaseType_t xReturn;
  40996. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  40997. 80116c4: 687b ldr r3, [r7, #4]
  40998. 80116c6: 613b str r3, [r7, #16]
  40999. configASSERT( pxMutex );
  41000. 80116c8: 693b ldr r3, [r7, #16]
  41001. 80116ca: 2b00 cmp r3, #0
  41002. 80116cc: d10b bne.n 80116e6 <xQueueTakeMutexRecursive+0x2c>
  41003. __asm volatile
  41004. 80116ce: f04f 0350 mov.w r3, #80 @ 0x50
  41005. 80116d2: f383 8811 msr BASEPRI, r3
  41006. 80116d6: f3bf 8f6f isb sy
  41007. 80116da: f3bf 8f4f dsb sy
  41008. 80116de: 60fb str r3, [r7, #12]
  41009. }
  41010. 80116e0: bf00 nop
  41011. 80116e2: bf00 nop
  41012. 80116e4: e7fd b.n 80116e2 <xQueueTakeMutexRecursive+0x28>
  41013. /* Comments regarding mutual exclusion as per those within
  41014. xQueueGiveMutexRecursive(). */
  41015. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  41016. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  41017. 80116e6: 693b ldr r3, [r7, #16]
  41018. 80116e8: 689c ldr r4, [r3, #8]
  41019. 80116ea: f002 f979 bl 80139e0 <xTaskGetCurrentTaskHandle>
  41020. 80116ee: 4603 mov r3, r0
  41021. 80116f0: 429c cmp r4, r3
  41022. 80116f2: d107 bne.n 8011704 <xQueueTakeMutexRecursive+0x4a>
  41023. {
  41024. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  41025. 80116f4: 693b ldr r3, [r7, #16]
  41026. 80116f6: 68db ldr r3, [r3, #12]
  41027. 80116f8: 1c5a adds r2, r3, #1
  41028. 80116fa: 693b ldr r3, [r7, #16]
  41029. 80116fc: 60da str r2, [r3, #12]
  41030. xReturn = pdPASS;
  41031. 80116fe: 2301 movs r3, #1
  41032. 8011700: 617b str r3, [r7, #20]
  41033. 8011702: e00c b.n 801171e <xQueueTakeMutexRecursive+0x64>
  41034. }
  41035. else
  41036. {
  41037. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  41038. 8011704: 6839 ldr r1, [r7, #0]
  41039. 8011706: 6938 ldr r0, [r7, #16]
  41040. 8011708: f000 fb8e bl 8011e28 <xQueueSemaphoreTake>
  41041. 801170c: 6178 str r0, [r7, #20]
  41042. /* pdPASS will only be returned if the mutex was successfully
  41043. obtained. The calling task may have entered the Blocked state
  41044. before reaching here. */
  41045. if( xReturn != pdFAIL )
  41046. 801170e: 697b ldr r3, [r7, #20]
  41047. 8011710: 2b00 cmp r3, #0
  41048. 8011712: d004 beq.n 801171e <xQueueTakeMutexRecursive+0x64>
  41049. {
  41050. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  41051. 8011714: 693b ldr r3, [r7, #16]
  41052. 8011716: 68db ldr r3, [r3, #12]
  41053. 8011718: 1c5a adds r2, r3, #1
  41054. 801171a: 693b ldr r3, [r7, #16]
  41055. 801171c: 60da str r2, [r3, #12]
  41056. {
  41057. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  41058. }
  41059. }
  41060. return xReturn;
  41061. 801171e: 697b ldr r3, [r7, #20]
  41062. }
  41063. 8011720: 4618 mov r0, r3
  41064. 8011722: 371c adds r7, #28
  41065. 8011724: 46bd mov sp, r7
  41066. 8011726: bd90 pop {r4, r7, pc}
  41067. 08011728 <xQueueCreateCountingSemaphoreStatic>:
  41068. /*-----------------------------------------------------------*/
  41069. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  41070. QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue )
  41071. {
  41072. 8011728: b580 push {r7, lr}
  41073. 801172a: b08a sub sp, #40 @ 0x28
  41074. 801172c: af02 add r7, sp, #8
  41075. 801172e: 60f8 str r0, [r7, #12]
  41076. 8011730: 60b9 str r1, [r7, #8]
  41077. 8011732: 607a str r2, [r7, #4]
  41078. QueueHandle_t xHandle;
  41079. configASSERT( uxMaxCount != 0 );
  41080. 8011734: 68fb ldr r3, [r7, #12]
  41081. 8011736: 2b00 cmp r3, #0
  41082. 8011738: d10b bne.n 8011752 <xQueueCreateCountingSemaphoreStatic+0x2a>
  41083. __asm volatile
  41084. 801173a: f04f 0350 mov.w r3, #80 @ 0x50
  41085. 801173e: f383 8811 msr BASEPRI, r3
  41086. 8011742: f3bf 8f6f isb sy
  41087. 8011746: f3bf 8f4f dsb sy
  41088. 801174a: 61bb str r3, [r7, #24]
  41089. }
  41090. 801174c: bf00 nop
  41091. 801174e: bf00 nop
  41092. 8011750: e7fd b.n 801174e <xQueueCreateCountingSemaphoreStatic+0x26>
  41093. configASSERT( uxInitialCount <= uxMaxCount );
  41094. 8011752: 68ba ldr r2, [r7, #8]
  41095. 8011754: 68fb ldr r3, [r7, #12]
  41096. 8011756: 429a cmp r2, r3
  41097. 8011758: d90b bls.n 8011772 <xQueueCreateCountingSemaphoreStatic+0x4a>
  41098. __asm volatile
  41099. 801175a: f04f 0350 mov.w r3, #80 @ 0x50
  41100. 801175e: f383 8811 msr BASEPRI, r3
  41101. 8011762: f3bf 8f6f isb sy
  41102. 8011766: f3bf 8f4f dsb sy
  41103. 801176a: 617b str r3, [r7, #20]
  41104. }
  41105. 801176c: bf00 nop
  41106. 801176e: bf00 nop
  41107. 8011770: e7fd b.n 801176e <xQueueCreateCountingSemaphoreStatic+0x46>
  41108. xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  41109. 8011772: 2302 movs r3, #2
  41110. 8011774: 9300 str r3, [sp, #0]
  41111. 8011776: 687b ldr r3, [r7, #4]
  41112. 8011778: 2200 movs r2, #0
  41113. 801177a: 2100 movs r1, #0
  41114. 801177c: 68f8 ldr r0, [r7, #12]
  41115. 801177e: f7ff fe3f bl 8011400 <xQueueGenericCreateStatic>
  41116. 8011782: 61f8 str r0, [r7, #28]
  41117. if( xHandle != NULL )
  41118. 8011784: 69fb ldr r3, [r7, #28]
  41119. 8011786: 2b00 cmp r3, #0
  41120. 8011788: d002 beq.n 8011790 <xQueueCreateCountingSemaphoreStatic+0x68>
  41121. {
  41122. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  41123. 801178a: 69fb ldr r3, [r7, #28]
  41124. 801178c: 68ba ldr r2, [r7, #8]
  41125. 801178e: 639a str r2, [r3, #56] @ 0x38
  41126. else
  41127. {
  41128. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  41129. }
  41130. return xHandle;
  41131. 8011790: 69fb ldr r3, [r7, #28]
  41132. }
  41133. 8011792: 4618 mov r0, r3
  41134. 8011794: 3720 adds r7, #32
  41135. 8011796: 46bd mov sp, r7
  41136. 8011798: bd80 pop {r7, pc}
  41137. 0801179a <xQueueCreateCountingSemaphore>:
  41138. /*-----------------------------------------------------------*/
  41139. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  41140. QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount )
  41141. {
  41142. 801179a: b580 push {r7, lr}
  41143. 801179c: b086 sub sp, #24
  41144. 801179e: af00 add r7, sp, #0
  41145. 80117a0: 6078 str r0, [r7, #4]
  41146. 80117a2: 6039 str r1, [r7, #0]
  41147. QueueHandle_t xHandle;
  41148. configASSERT( uxMaxCount != 0 );
  41149. 80117a4: 687b ldr r3, [r7, #4]
  41150. 80117a6: 2b00 cmp r3, #0
  41151. 80117a8: d10b bne.n 80117c2 <xQueueCreateCountingSemaphore+0x28>
  41152. __asm volatile
  41153. 80117aa: f04f 0350 mov.w r3, #80 @ 0x50
  41154. 80117ae: f383 8811 msr BASEPRI, r3
  41155. 80117b2: f3bf 8f6f isb sy
  41156. 80117b6: f3bf 8f4f dsb sy
  41157. 80117ba: 613b str r3, [r7, #16]
  41158. }
  41159. 80117bc: bf00 nop
  41160. 80117be: bf00 nop
  41161. 80117c0: e7fd b.n 80117be <xQueueCreateCountingSemaphore+0x24>
  41162. configASSERT( uxInitialCount <= uxMaxCount );
  41163. 80117c2: 683a ldr r2, [r7, #0]
  41164. 80117c4: 687b ldr r3, [r7, #4]
  41165. 80117c6: 429a cmp r2, r3
  41166. 80117c8: d90b bls.n 80117e2 <xQueueCreateCountingSemaphore+0x48>
  41167. __asm volatile
  41168. 80117ca: f04f 0350 mov.w r3, #80 @ 0x50
  41169. 80117ce: f383 8811 msr BASEPRI, r3
  41170. 80117d2: f3bf 8f6f isb sy
  41171. 80117d6: f3bf 8f4f dsb sy
  41172. 80117da: 60fb str r3, [r7, #12]
  41173. }
  41174. 80117dc: bf00 nop
  41175. 80117de: bf00 nop
  41176. 80117e0: e7fd b.n 80117de <xQueueCreateCountingSemaphore+0x44>
  41177. xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  41178. 80117e2: 2202 movs r2, #2
  41179. 80117e4: 2100 movs r1, #0
  41180. 80117e6: 6878 ldr r0, [r7, #4]
  41181. 80117e8: f7ff fe87 bl 80114fa <xQueueGenericCreate>
  41182. 80117ec: 6178 str r0, [r7, #20]
  41183. if( xHandle != NULL )
  41184. 80117ee: 697b ldr r3, [r7, #20]
  41185. 80117f0: 2b00 cmp r3, #0
  41186. 80117f2: d002 beq.n 80117fa <xQueueCreateCountingSemaphore+0x60>
  41187. {
  41188. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  41189. 80117f4: 697b ldr r3, [r7, #20]
  41190. 80117f6: 683a ldr r2, [r7, #0]
  41191. 80117f8: 639a str r2, [r3, #56] @ 0x38
  41192. else
  41193. {
  41194. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  41195. }
  41196. return xHandle;
  41197. 80117fa: 697b ldr r3, [r7, #20]
  41198. }
  41199. 80117fc: 4618 mov r0, r3
  41200. 80117fe: 3718 adds r7, #24
  41201. 8011800: 46bd mov sp, r7
  41202. 8011802: bd80 pop {r7, pc}
  41203. 08011804 <xQueueGenericSend>:
  41204. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  41205. /*-----------------------------------------------------------*/
  41206. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  41207. {
  41208. 8011804: b580 push {r7, lr}
  41209. 8011806: b08e sub sp, #56 @ 0x38
  41210. 8011808: af00 add r7, sp, #0
  41211. 801180a: 60f8 str r0, [r7, #12]
  41212. 801180c: 60b9 str r1, [r7, #8]
  41213. 801180e: 607a str r2, [r7, #4]
  41214. 8011810: 603b str r3, [r7, #0]
  41215. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  41216. 8011812: 2300 movs r3, #0
  41217. 8011814: 637b str r3, [r7, #52] @ 0x34
  41218. TimeOut_t xTimeOut;
  41219. Queue_t * const pxQueue = xQueue;
  41220. 8011816: 68fb ldr r3, [r7, #12]
  41221. 8011818: 633b str r3, [r7, #48] @ 0x30
  41222. configASSERT( pxQueue );
  41223. 801181a: 6b3b ldr r3, [r7, #48] @ 0x30
  41224. 801181c: 2b00 cmp r3, #0
  41225. 801181e: d10b bne.n 8011838 <xQueueGenericSend+0x34>
  41226. __asm volatile
  41227. 8011820: f04f 0350 mov.w r3, #80 @ 0x50
  41228. 8011824: f383 8811 msr BASEPRI, r3
  41229. 8011828: f3bf 8f6f isb sy
  41230. 801182c: f3bf 8f4f dsb sy
  41231. 8011830: 62bb str r3, [r7, #40] @ 0x28
  41232. }
  41233. 8011832: bf00 nop
  41234. 8011834: bf00 nop
  41235. 8011836: e7fd b.n 8011834 <xQueueGenericSend+0x30>
  41236. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  41237. 8011838: 68bb ldr r3, [r7, #8]
  41238. 801183a: 2b00 cmp r3, #0
  41239. 801183c: d103 bne.n 8011846 <xQueueGenericSend+0x42>
  41240. 801183e: 6b3b ldr r3, [r7, #48] @ 0x30
  41241. 8011840: 6c1b ldr r3, [r3, #64] @ 0x40
  41242. 8011842: 2b00 cmp r3, #0
  41243. 8011844: d101 bne.n 801184a <xQueueGenericSend+0x46>
  41244. 8011846: 2301 movs r3, #1
  41245. 8011848: e000 b.n 801184c <xQueueGenericSend+0x48>
  41246. 801184a: 2300 movs r3, #0
  41247. 801184c: 2b00 cmp r3, #0
  41248. 801184e: d10b bne.n 8011868 <xQueueGenericSend+0x64>
  41249. __asm volatile
  41250. 8011850: f04f 0350 mov.w r3, #80 @ 0x50
  41251. 8011854: f383 8811 msr BASEPRI, r3
  41252. 8011858: f3bf 8f6f isb sy
  41253. 801185c: f3bf 8f4f dsb sy
  41254. 8011860: 627b str r3, [r7, #36] @ 0x24
  41255. }
  41256. 8011862: bf00 nop
  41257. 8011864: bf00 nop
  41258. 8011866: e7fd b.n 8011864 <xQueueGenericSend+0x60>
  41259. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  41260. 8011868: 683b ldr r3, [r7, #0]
  41261. 801186a: 2b02 cmp r3, #2
  41262. 801186c: d103 bne.n 8011876 <xQueueGenericSend+0x72>
  41263. 801186e: 6b3b ldr r3, [r7, #48] @ 0x30
  41264. 8011870: 6bdb ldr r3, [r3, #60] @ 0x3c
  41265. 8011872: 2b01 cmp r3, #1
  41266. 8011874: d101 bne.n 801187a <xQueueGenericSend+0x76>
  41267. 8011876: 2301 movs r3, #1
  41268. 8011878: e000 b.n 801187c <xQueueGenericSend+0x78>
  41269. 801187a: 2300 movs r3, #0
  41270. 801187c: 2b00 cmp r3, #0
  41271. 801187e: d10b bne.n 8011898 <xQueueGenericSend+0x94>
  41272. __asm volatile
  41273. 8011880: f04f 0350 mov.w r3, #80 @ 0x50
  41274. 8011884: f383 8811 msr BASEPRI, r3
  41275. 8011888: f3bf 8f6f isb sy
  41276. 801188c: f3bf 8f4f dsb sy
  41277. 8011890: 623b str r3, [r7, #32]
  41278. }
  41279. 8011892: bf00 nop
  41280. 8011894: bf00 nop
  41281. 8011896: e7fd b.n 8011894 <xQueueGenericSend+0x90>
  41282. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  41283. {
  41284. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  41285. 8011898: f002 f8b2 bl 8013a00 <xTaskGetSchedulerState>
  41286. 801189c: 4603 mov r3, r0
  41287. 801189e: 2b00 cmp r3, #0
  41288. 80118a0: d102 bne.n 80118a8 <xQueueGenericSend+0xa4>
  41289. 80118a2: 687b ldr r3, [r7, #4]
  41290. 80118a4: 2b00 cmp r3, #0
  41291. 80118a6: d101 bne.n 80118ac <xQueueGenericSend+0xa8>
  41292. 80118a8: 2301 movs r3, #1
  41293. 80118aa: e000 b.n 80118ae <xQueueGenericSend+0xaa>
  41294. 80118ac: 2300 movs r3, #0
  41295. 80118ae: 2b00 cmp r3, #0
  41296. 80118b0: d10b bne.n 80118ca <xQueueGenericSend+0xc6>
  41297. __asm volatile
  41298. 80118b2: f04f 0350 mov.w r3, #80 @ 0x50
  41299. 80118b6: f383 8811 msr BASEPRI, r3
  41300. 80118ba: f3bf 8f6f isb sy
  41301. 80118be: f3bf 8f4f dsb sy
  41302. 80118c2: 61fb str r3, [r7, #28]
  41303. }
  41304. 80118c4: bf00 nop
  41305. 80118c6: bf00 nop
  41306. 80118c8: e7fd b.n 80118c6 <xQueueGenericSend+0xc2>
  41307. /*lint -save -e904 This function relaxes the coding standard somewhat to
  41308. allow return statements within the function itself. This is done in the
  41309. interest of execution time efficiency. */
  41310. for( ;; )
  41311. {
  41312. taskENTER_CRITICAL();
  41313. 80118ca: f003 f935 bl 8014b38 <vPortEnterCritical>
  41314. {
  41315. /* Is there room on the queue now? The running task must be the
  41316. highest priority task wanting to access the queue. If the head item
  41317. in the queue is to be overwritten then it does not matter if the
  41318. queue is full. */
  41319. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  41320. 80118ce: 6b3b ldr r3, [r7, #48] @ 0x30
  41321. 80118d0: 6b9a ldr r2, [r3, #56] @ 0x38
  41322. 80118d2: 6b3b ldr r3, [r7, #48] @ 0x30
  41323. 80118d4: 6bdb ldr r3, [r3, #60] @ 0x3c
  41324. 80118d6: 429a cmp r2, r3
  41325. 80118d8: d302 bcc.n 80118e0 <xQueueGenericSend+0xdc>
  41326. 80118da: 683b ldr r3, [r7, #0]
  41327. 80118dc: 2b02 cmp r3, #2
  41328. 80118de: d129 bne.n 8011934 <xQueueGenericSend+0x130>
  41329. }
  41330. }
  41331. }
  41332. #else /* configUSE_QUEUE_SETS */
  41333. {
  41334. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  41335. 80118e0: 683a ldr r2, [r7, #0]
  41336. 80118e2: 68b9 ldr r1, [r7, #8]
  41337. 80118e4: 6b38 ldr r0, [r7, #48] @ 0x30
  41338. 80118e6: f000 fcab bl 8012240 <prvCopyDataToQueue>
  41339. 80118ea: 62f8 str r0, [r7, #44] @ 0x2c
  41340. /* If there was a task waiting for data to arrive on the
  41341. queue then unblock it now. */
  41342. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  41343. 80118ec: 6b3b ldr r3, [r7, #48] @ 0x30
  41344. 80118ee: 6a5b ldr r3, [r3, #36] @ 0x24
  41345. 80118f0: 2b00 cmp r3, #0
  41346. 80118f2: d010 beq.n 8011916 <xQueueGenericSend+0x112>
  41347. {
  41348. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  41349. 80118f4: 6b3b ldr r3, [r7, #48] @ 0x30
  41350. 80118f6: 3324 adds r3, #36 @ 0x24
  41351. 80118f8: 4618 mov r0, r3
  41352. 80118fa: f001 fe83 bl 8013604 <xTaskRemoveFromEventList>
  41353. 80118fe: 4603 mov r3, r0
  41354. 8011900: 2b00 cmp r3, #0
  41355. 8011902: d013 beq.n 801192c <xQueueGenericSend+0x128>
  41356. {
  41357. /* The unblocked task has a priority higher than
  41358. our own so yield immediately. Yes it is ok to do
  41359. this from within the critical section - the kernel
  41360. takes care of that. */
  41361. queueYIELD_IF_USING_PREEMPTION();
  41362. 8011904: 4b3f ldr r3, [pc, #252] @ (8011a04 <xQueueGenericSend+0x200>)
  41363. 8011906: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41364. 801190a: 601a str r2, [r3, #0]
  41365. 801190c: f3bf 8f4f dsb sy
  41366. 8011910: f3bf 8f6f isb sy
  41367. 8011914: e00a b.n 801192c <xQueueGenericSend+0x128>
  41368. else
  41369. {
  41370. mtCOVERAGE_TEST_MARKER();
  41371. }
  41372. }
  41373. else if( xYieldRequired != pdFALSE )
  41374. 8011916: 6afb ldr r3, [r7, #44] @ 0x2c
  41375. 8011918: 2b00 cmp r3, #0
  41376. 801191a: d007 beq.n 801192c <xQueueGenericSend+0x128>
  41377. {
  41378. /* This path is a special case that will only get
  41379. executed if the task was holding multiple mutexes and
  41380. the mutexes were given back in an order that is
  41381. different to that in which they were taken. */
  41382. queueYIELD_IF_USING_PREEMPTION();
  41383. 801191c: 4b39 ldr r3, [pc, #228] @ (8011a04 <xQueueGenericSend+0x200>)
  41384. 801191e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41385. 8011922: 601a str r2, [r3, #0]
  41386. 8011924: f3bf 8f4f dsb sy
  41387. 8011928: f3bf 8f6f isb sy
  41388. mtCOVERAGE_TEST_MARKER();
  41389. }
  41390. }
  41391. #endif /* configUSE_QUEUE_SETS */
  41392. taskEXIT_CRITICAL();
  41393. 801192c: f003 f936 bl 8014b9c <vPortExitCritical>
  41394. return pdPASS;
  41395. 8011930: 2301 movs r3, #1
  41396. 8011932: e063 b.n 80119fc <xQueueGenericSend+0x1f8>
  41397. }
  41398. else
  41399. {
  41400. if( xTicksToWait == ( TickType_t ) 0 )
  41401. 8011934: 687b ldr r3, [r7, #4]
  41402. 8011936: 2b00 cmp r3, #0
  41403. 8011938: d103 bne.n 8011942 <xQueueGenericSend+0x13e>
  41404. {
  41405. /* The queue was full and no block time is specified (or
  41406. the block time has expired) so leave now. */
  41407. taskEXIT_CRITICAL();
  41408. 801193a: f003 f92f bl 8014b9c <vPortExitCritical>
  41409. /* Return to the original privilege level before exiting
  41410. the function. */
  41411. traceQUEUE_SEND_FAILED( pxQueue );
  41412. return errQUEUE_FULL;
  41413. 801193e: 2300 movs r3, #0
  41414. 8011940: e05c b.n 80119fc <xQueueGenericSend+0x1f8>
  41415. }
  41416. else if( xEntryTimeSet == pdFALSE )
  41417. 8011942: 6b7b ldr r3, [r7, #52] @ 0x34
  41418. 8011944: 2b00 cmp r3, #0
  41419. 8011946: d106 bne.n 8011956 <xQueueGenericSend+0x152>
  41420. {
  41421. /* The queue was full and a block time was specified so
  41422. configure the timeout structure. */
  41423. vTaskInternalSetTimeOutState( &xTimeOut );
  41424. 8011948: f107 0314 add.w r3, r7, #20
  41425. 801194c: 4618 mov r0, r3
  41426. 801194e: f001 fee5 bl 801371c <vTaskInternalSetTimeOutState>
  41427. xEntryTimeSet = pdTRUE;
  41428. 8011952: 2301 movs r3, #1
  41429. 8011954: 637b str r3, [r7, #52] @ 0x34
  41430. /* Entry time was already set. */
  41431. mtCOVERAGE_TEST_MARKER();
  41432. }
  41433. }
  41434. }
  41435. taskEXIT_CRITICAL();
  41436. 8011956: f003 f921 bl 8014b9c <vPortExitCritical>
  41437. /* Interrupts and other tasks can send to and receive from the queue
  41438. now the critical section has been exited. */
  41439. vTaskSuspendAll();
  41440. 801195a: f001 fc05 bl 8013168 <vTaskSuspendAll>
  41441. prvLockQueue( pxQueue );
  41442. 801195e: f003 f8eb bl 8014b38 <vPortEnterCritical>
  41443. 8011962: 6b3b ldr r3, [r7, #48] @ 0x30
  41444. 8011964: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  41445. 8011968: b25b sxtb r3, r3
  41446. 801196a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41447. 801196e: d103 bne.n 8011978 <xQueueGenericSend+0x174>
  41448. 8011970: 6b3b ldr r3, [r7, #48] @ 0x30
  41449. 8011972: 2200 movs r2, #0
  41450. 8011974: f883 2044 strb.w r2, [r3, #68] @ 0x44
  41451. 8011978: 6b3b ldr r3, [r7, #48] @ 0x30
  41452. 801197a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  41453. 801197e: b25b sxtb r3, r3
  41454. 8011980: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41455. 8011984: d103 bne.n 801198e <xQueueGenericSend+0x18a>
  41456. 8011986: 6b3b ldr r3, [r7, #48] @ 0x30
  41457. 8011988: 2200 movs r2, #0
  41458. 801198a: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41459. 801198e: f003 f905 bl 8014b9c <vPortExitCritical>
  41460. /* Update the timeout state to see if it has expired yet. */
  41461. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  41462. 8011992: 1d3a adds r2, r7, #4
  41463. 8011994: f107 0314 add.w r3, r7, #20
  41464. 8011998: 4611 mov r1, r2
  41465. 801199a: 4618 mov r0, r3
  41466. 801199c: f001 fed4 bl 8013748 <xTaskCheckForTimeOut>
  41467. 80119a0: 4603 mov r3, r0
  41468. 80119a2: 2b00 cmp r3, #0
  41469. 80119a4: d124 bne.n 80119f0 <xQueueGenericSend+0x1ec>
  41470. {
  41471. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  41472. 80119a6: 6b38 ldr r0, [r7, #48] @ 0x30
  41473. 80119a8: f000 fd42 bl 8012430 <prvIsQueueFull>
  41474. 80119ac: 4603 mov r3, r0
  41475. 80119ae: 2b00 cmp r3, #0
  41476. 80119b0: d018 beq.n 80119e4 <xQueueGenericSend+0x1e0>
  41477. {
  41478. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  41479. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  41480. 80119b2: 6b3b ldr r3, [r7, #48] @ 0x30
  41481. 80119b4: 3310 adds r3, #16
  41482. 80119b6: 687a ldr r2, [r7, #4]
  41483. 80119b8: 4611 mov r1, r2
  41484. 80119ba: 4618 mov r0, r3
  41485. 80119bc: f001 fdd0 bl 8013560 <vTaskPlaceOnEventList>
  41486. /* Unlocking the queue means queue events can effect the
  41487. event list. It is possible that interrupts occurring now
  41488. remove this task from the event list again - but as the
  41489. scheduler is suspended the task will go onto the pending
  41490. ready last instead of the actual ready list. */
  41491. prvUnlockQueue( pxQueue );
  41492. 80119c0: 6b38 ldr r0, [r7, #48] @ 0x30
  41493. 80119c2: f000 fccd bl 8012360 <prvUnlockQueue>
  41494. /* Resuming the scheduler will move tasks from the pending
  41495. ready list into the ready list - so it is feasible that this
  41496. task is already in a ready list before it yields - in which
  41497. case the yield will not cause a context switch unless there
  41498. is also a higher priority task in the pending ready list. */
  41499. if( xTaskResumeAll() == pdFALSE )
  41500. 80119c6: f001 fbdd bl 8013184 <xTaskResumeAll>
  41501. 80119ca: 4603 mov r3, r0
  41502. 80119cc: 2b00 cmp r3, #0
  41503. 80119ce: f47f af7c bne.w 80118ca <xQueueGenericSend+0xc6>
  41504. {
  41505. portYIELD_WITHIN_API();
  41506. 80119d2: 4b0c ldr r3, [pc, #48] @ (8011a04 <xQueueGenericSend+0x200>)
  41507. 80119d4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41508. 80119d8: 601a str r2, [r3, #0]
  41509. 80119da: f3bf 8f4f dsb sy
  41510. 80119de: f3bf 8f6f isb sy
  41511. 80119e2: e772 b.n 80118ca <xQueueGenericSend+0xc6>
  41512. }
  41513. }
  41514. else
  41515. {
  41516. /* Try again. */
  41517. prvUnlockQueue( pxQueue );
  41518. 80119e4: 6b38 ldr r0, [r7, #48] @ 0x30
  41519. 80119e6: f000 fcbb bl 8012360 <prvUnlockQueue>
  41520. ( void ) xTaskResumeAll();
  41521. 80119ea: f001 fbcb bl 8013184 <xTaskResumeAll>
  41522. 80119ee: e76c b.n 80118ca <xQueueGenericSend+0xc6>
  41523. }
  41524. }
  41525. else
  41526. {
  41527. /* The timeout has expired. */
  41528. prvUnlockQueue( pxQueue );
  41529. 80119f0: 6b38 ldr r0, [r7, #48] @ 0x30
  41530. 80119f2: f000 fcb5 bl 8012360 <prvUnlockQueue>
  41531. ( void ) xTaskResumeAll();
  41532. 80119f6: f001 fbc5 bl 8013184 <xTaskResumeAll>
  41533. traceQUEUE_SEND_FAILED( pxQueue );
  41534. return errQUEUE_FULL;
  41535. 80119fa: 2300 movs r3, #0
  41536. }
  41537. } /*lint -restore */
  41538. }
  41539. 80119fc: 4618 mov r0, r3
  41540. 80119fe: 3738 adds r7, #56 @ 0x38
  41541. 8011a00: 46bd mov sp, r7
  41542. 8011a02: bd80 pop {r7, pc}
  41543. 8011a04: e000ed04 .word 0xe000ed04
  41544. 08011a08 <xQueueGenericSendFromISR>:
  41545. /*-----------------------------------------------------------*/
  41546. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  41547. {
  41548. 8011a08: b580 push {r7, lr}
  41549. 8011a0a: b090 sub sp, #64 @ 0x40
  41550. 8011a0c: af00 add r7, sp, #0
  41551. 8011a0e: 60f8 str r0, [r7, #12]
  41552. 8011a10: 60b9 str r1, [r7, #8]
  41553. 8011a12: 607a str r2, [r7, #4]
  41554. 8011a14: 603b str r3, [r7, #0]
  41555. BaseType_t xReturn;
  41556. UBaseType_t uxSavedInterruptStatus;
  41557. Queue_t * const pxQueue = xQueue;
  41558. 8011a16: 68fb ldr r3, [r7, #12]
  41559. 8011a18: 63bb str r3, [r7, #56] @ 0x38
  41560. configASSERT( pxQueue );
  41561. 8011a1a: 6bbb ldr r3, [r7, #56] @ 0x38
  41562. 8011a1c: 2b00 cmp r3, #0
  41563. 8011a1e: d10b bne.n 8011a38 <xQueueGenericSendFromISR+0x30>
  41564. __asm volatile
  41565. 8011a20: f04f 0350 mov.w r3, #80 @ 0x50
  41566. 8011a24: f383 8811 msr BASEPRI, r3
  41567. 8011a28: f3bf 8f6f isb sy
  41568. 8011a2c: f3bf 8f4f dsb sy
  41569. 8011a30: 62bb str r3, [r7, #40] @ 0x28
  41570. }
  41571. 8011a32: bf00 nop
  41572. 8011a34: bf00 nop
  41573. 8011a36: e7fd b.n 8011a34 <xQueueGenericSendFromISR+0x2c>
  41574. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  41575. 8011a38: 68bb ldr r3, [r7, #8]
  41576. 8011a3a: 2b00 cmp r3, #0
  41577. 8011a3c: d103 bne.n 8011a46 <xQueueGenericSendFromISR+0x3e>
  41578. 8011a3e: 6bbb ldr r3, [r7, #56] @ 0x38
  41579. 8011a40: 6c1b ldr r3, [r3, #64] @ 0x40
  41580. 8011a42: 2b00 cmp r3, #0
  41581. 8011a44: d101 bne.n 8011a4a <xQueueGenericSendFromISR+0x42>
  41582. 8011a46: 2301 movs r3, #1
  41583. 8011a48: e000 b.n 8011a4c <xQueueGenericSendFromISR+0x44>
  41584. 8011a4a: 2300 movs r3, #0
  41585. 8011a4c: 2b00 cmp r3, #0
  41586. 8011a4e: d10b bne.n 8011a68 <xQueueGenericSendFromISR+0x60>
  41587. __asm volatile
  41588. 8011a50: f04f 0350 mov.w r3, #80 @ 0x50
  41589. 8011a54: f383 8811 msr BASEPRI, r3
  41590. 8011a58: f3bf 8f6f isb sy
  41591. 8011a5c: f3bf 8f4f dsb sy
  41592. 8011a60: 627b str r3, [r7, #36] @ 0x24
  41593. }
  41594. 8011a62: bf00 nop
  41595. 8011a64: bf00 nop
  41596. 8011a66: e7fd b.n 8011a64 <xQueueGenericSendFromISR+0x5c>
  41597. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  41598. 8011a68: 683b ldr r3, [r7, #0]
  41599. 8011a6a: 2b02 cmp r3, #2
  41600. 8011a6c: d103 bne.n 8011a76 <xQueueGenericSendFromISR+0x6e>
  41601. 8011a6e: 6bbb ldr r3, [r7, #56] @ 0x38
  41602. 8011a70: 6bdb ldr r3, [r3, #60] @ 0x3c
  41603. 8011a72: 2b01 cmp r3, #1
  41604. 8011a74: d101 bne.n 8011a7a <xQueueGenericSendFromISR+0x72>
  41605. 8011a76: 2301 movs r3, #1
  41606. 8011a78: e000 b.n 8011a7c <xQueueGenericSendFromISR+0x74>
  41607. 8011a7a: 2300 movs r3, #0
  41608. 8011a7c: 2b00 cmp r3, #0
  41609. 8011a7e: d10b bne.n 8011a98 <xQueueGenericSendFromISR+0x90>
  41610. __asm volatile
  41611. 8011a80: f04f 0350 mov.w r3, #80 @ 0x50
  41612. 8011a84: f383 8811 msr BASEPRI, r3
  41613. 8011a88: f3bf 8f6f isb sy
  41614. 8011a8c: f3bf 8f4f dsb sy
  41615. 8011a90: 623b str r3, [r7, #32]
  41616. }
  41617. 8011a92: bf00 nop
  41618. 8011a94: bf00 nop
  41619. 8011a96: e7fd b.n 8011a94 <xQueueGenericSendFromISR+0x8c>
  41620. that have been assigned a priority at or (logically) below the maximum
  41621. system call interrupt priority. FreeRTOS maintains a separate interrupt
  41622. safe API to ensure interrupt entry is as fast and as simple as possible.
  41623. More information (albeit Cortex-M specific) is provided on the following
  41624. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  41625. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  41626. 8011a98: f003 f92e bl 8014cf8 <vPortValidateInterruptPriority>
  41627. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  41628. {
  41629. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  41630. __asm volatile
  41631. 8011a9c: f3ef 8211 mrs r2, BASEPRI
  41632. 8011aa0: f04f 0350 mov.w r3, #80 @ 0x50
  41633. 8011aa4: f383 8811 msr BASEPRI, r3
  41634. 8011aa8: f3bf 8f6f isb sy
  41635. 8011aac: f3bf 8f4f dsb sy
  41636. 8011ab0: 61fa str r2, [r7, #28]
  41637. 8011ab2: 61bb str r3, [r7, #24]
  41638. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  41639. );
  41640. /* This return will not be reached but is necessary to prevent compiler
  41641. warnings. */
  41642. return ulOriginalBASEPRI;
  41643. 8011ab4: 69fb ldr r3, [r7, #28]
  41644. /* Similar to xQueueGenericSend, except without blocking if there is no room
  41645. in the queue. Also don't directly wake a task that was blocked on a queue
  41646. read, instead return a flag to say whether a context switch is required or
  41647. not (i.e. has a task with a higher priority than us been woken by this
  41648. post). */
  41649. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  41650. 8011ab6: 637b str r3, [r7, #52] @ 0x34
  41651. {
  41652. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  41653. 8011ab8: 6bbb ldr r3, [r7, #56] @ 0x38
  41654. 8011aba: 6b9a ldr r2, [r3, #56] @ 0x38
  41655. 8011abc: 6bbb ldr r3, [r7, #56] @ 0x38
  41656. 8011abe: 6bdb ldr r3, [r3, #60] @ 0x3c
  41657. 8011ac0: 429a cmp r2, r3
  41658. 8011ac2: d302 bcc.n 8011aca <xQueueGenericSendFromISR+0xc2>
  41659. 8011ac4: 683b ldr r3, [r7, #0]
  41660. 8011ac6: 2b02 cmp r3, #2
  41661. 8011ac8: d12f bne.n 8011b2a <xQueueGenericSendFromISR+0x122>
  41662. {
  41663. const int8_t cTxLock = pxQueue->cTxLock;
  41664. 8011aca: 6bbb ldr r3, [r7, #56] @ 0x38
  41665. 8011acc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  41666. 8011ad0: f887 3033 strb.w r3, [r7, #51] @ 0x33
  41667. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  41668. 8011ad4: 6bbb ldr r3, [r7, #56] @ 0x38
  41669. 8011ad6: 6b9b ldr r3, [r3, #56] @ 0x38
  41670. 8011ad8: 62fb str r3, [r7, #44] @ 0x2c
  41671. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  41672. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  41673. in a task disinheriting a priority and prvCopyDataToQueue() can be
  41674. called here even though the disinherit function does not check if
  41675. the scheduler is suspended before accessing the ready lists. */
  41676. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  41677. 8011ada: 683a ldr r2, [r7, #0]
  41678. 8011adc: 68b9 ldr r1, [r7, #8]
  41679. 8011ade: 6bb8 ldr r0, [r7, #56] @ 0x38
  41680. 8011ae0: f000 fbae bl 8012240 <prvCopyDataToQueue>
  41681. /* The event list is not altered if the queue is locked. This will
  41682. be done when the queue is unlocked later. */
  41683. if( cTxLock == queueUNLOCKED )
  41684. 8011ae4: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  41685. 8011ae8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41686. 8011aec: d112 bne.n 8011b14 <xQueueGenericSendFromISR+0x10c>
  41687. }
  41688. }
  41689. }
  41690. #else /* configUSE_QUEUE_SETS */
  41691. {
  41692. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  41693. 8011aee: 6bbb ldr r3, [r7, #56] @ 0x38
  41694. 8011af0: 6a5b ldr r3, [r3, #36] @ 0x24
  41695. 8011af2: 2b00 cmp r3, #0
  41696. 8011af4: d016 beq.n 8011b24 <xQueueGenericSendFromISR+0x11c>
  41697. {
  41698. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  41699. 8011af6: 6bbb ldr r3, [r7, #56] @ 0x38
  41700. 8011af8: 3324 adds r3, #36 @ 0x24
  41701. 8011afa: 4618 mov r0, r3
  41702. 8011afc: f001 fd82 bl 8013604 <xTaskRemoveFromEventList>
  41703. 8011b00: 4603 mov r3, r0
  41704. 8011b02: 2b00 cmp r3, #0
  41705. 8011b04: d00e beq.n 8011b24 <xQueueGenericSendFromISR+0x11c>
  41706. {
  41707. /* The task waiting has a higher priority so record that a
  41708. context switch is required. */
  41709. if( pxHigherPriorityTaskWoken != NULL )
  41710. 8011b06: 687b ldr r3, [r7, #4]
  41711. 8011b08: 2b00 cmp r3, #0
  41712. 8011b0a: d00b beq.n 8011b24 <xQueueGenericSendFromISR+0x11c>
  41713. {
  41714. *pxHigherPriorityTaskWoken = pdTRUE;
  41715. 8011b0c: 687b ldr r3, [r7, #4]
  41716. 8011b0e: 2201 movs r2, #1
  41717. 8011b10: 601a str r2, [r3, #0]
  41718. 8011b12: e007 b.n 8011b24 <xQueueGenericSendFromISR+0x11c>
  41719. }
  41720. else
  41721. {
  41722. /* Increment the lock count so the task that unlocks the queue
  41723. knows that data was posted while it was locked. */
  41724. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  41725. 8011b14: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  41726. 8011b18: 3301 adds r3, #1
  41727. 8011b1a: b2db uxtb r3, r3
  41728. 8011b1c: b25a sxtb r2, r3
  41729. 8011b1e: 6bbb ldr r3, [r7, #56] @ 0x38
  41730. 8011b20: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41731. }
  41732. xReturn = pdPASS;
  41733. 8011b24: 2301 movs r3, #1
  41734. 8011b26: 63fb str r3, [r7, #60] @ 0x3c
  41735. {
  41736. 8011b28: e001 b.n 8011b2e <xQueueGenericSendFromISR+0x126>
  41737. }
  41738. else
  41739. {
  41740. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  41741. xReturn = errQUEUE_FULL;
  41742. 8011b2a: 2300 movs r3, #0
  41743. 8011b2c: 63fb str r3, [r7, #60] @ 0x3c
  41744. 8011b2e: 6b7b ldr r3, [r7, #52] @ 0x34
  41745. 8011b30: 617b str r3, [r7, #20]
  41746. }
  41747. /*-----------------------------------------------------------*/
  41748. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  41749. {
  41750. __asm volatile
  41751. 8011b32: 697b ldr r3, [r7, #20]
  41752. 8011b34: f383 8811 msr BASEPRI, r3
  41753. (
  41754. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  41755. );
  41756. }
  41757. 8011b38: bf00 nop
  41758. }
  41759. }
  41760. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  41761. return xReturn;
  41762. 8011b3a: 6bfb ldr r3, [r7, #60] @ 0x3c
  41763. }
  41764. 8011b3c: 4618 mov r0, r3
  41765. 8011b3e: 3740 adds r7, #64 @ 0x40
  41766. 8011b40: 46bd mov sp, r7
  41767. 8011b42: bd80 pop {r7, pc}
  41768. 08011b44 <xQueueGiveFromISR>:
  41769. /*-----------------------------------------------------------*/
  41770. BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken )
  41771. {
  41772. 8011b44: b580 push {r7, lr}
  41773. 8011b46: b08e sub sp, #56 @ 0x38
  41774. 8011b48: af00 add r7, sp, #0
  41775. 8011b4a: 6078 str r0, [r7, #4]
  41776. 8011b4c: 6039 str r1, [r7, #0]
  41777. BaseType_t xReturn;
  41778. UBaseType_t uxSavedInterruptStatus;
  41779. Queue_t * const pxQueue = xQueue;
  41780. 8011b4e: 687b ldr r3, [r7, #4]
  41781. 8011b50: 633b str r3, [r7, #48] @ 0x30
  41782. item size is 0. Don't directly wake a task that was blocked on a queue
  41783. read, instead return a flag to say whether a context switch is required or
  41784. not (i.e. has a task with a higher priority than us been woken by this
  41785. post). */
  41786. configASSERT( pxQueue );
  41787. 8011b52: 6b3b ldr r3, [r7, #48] @ 0x30
  41788. 8011b54: 2b00 cmp r3, #0
  41789. 8011b56: d10b bne.n 8011b70 <xQueueGiveFromISR+0x2c>
  41790. __asm volatile
  41791. 8011b58: f04f 0350 mov.w r3, #80 @ 0x50
  41792. 8011b5c: f383 8811 msr BASEPRI, r3
  41793. 8011b60: f3bf 8f6f isb sy
  41794. 8011b64: f3bf 8f4f dsb sy
  41795. 8011b68: 623b str r3, [r7, #32]
  41796. }
  41797. 8011b6a: bf00 nop
  41798. 8011b6c: bf00 nop
  41799. 8011b6e: e7fd b.n 8011b6c <xQueueGiveFromISR+0x28>
  41800. /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR()
  41801. if the item size is not 0. */
  41802. configASSERT( pxQueue->uxItemSize == 0 );
  41803. 8011b70: 6b3b ldr r3, [r7, #48] @ 0x30
  41804. 8011b72: 6c1b ldr r3, [r3, #64] @ 0x40
  41805. 8011b74: 2b00 cmp r3, #0
  41806. 8011b76: d00b beq.n 8011b90 <xQueueGiveFromISR+0x4c>
  41807. __asm volatile
  41808. 8011b78: f04f 0350 mov.w r3, #80 @ 0x50
  41809. 8011b7c: f383 8811 msr BASEPRI, r3
  41810. 8011b80: f3bf 8f6f isb sy
  41811. 8011b84: f3bf 8f4f dsb sy
  41812. 8011b88: 61fb str r3, [r7, #28]
  41813. }
  41814. 8011b8a: bf00 nop
  41815. 8011b8c: bf00 nop
  41816. 8011b8e: e7fd b.n 8011b8c <xQueueGiveFromISR+0x48>
  41817. /* Normally a mutex would not be given from an interrupt, especially if
  41818. there is a mutex holder, as priority inheritance makes no sense for an
  41819. interrupts, only tasks. */
  41820. configASSERT( !( ( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue->u.xSemaphore.xMutexHolder != NULL ) ) );
  41821. 8011b90: 6b3b ldr r3, [r7, #48] @ 0x30
  41822. 8011b92: 681b ldr r3, [r3, #0]
  41823. 8011b94: 2b00 cmp r3, #0
  41824. 8011b96: d103 bne.n 8011ba0 <xQueueGiveFromISR+0x5c>
  41825. 8011b98: 6b3b ldr r3, [r7, #48] @ 0x30
  41826. 8011b9a: 689b ldr r3, [r3, #8]
  41827. 8011b9c: 2b00 cmp r3, #0
  41828. 8011b9e: d101 bne.n 8011ba4 <xQueueGiveFromISR+0x60>
  41829. 8011ba0: 2301 movs r3, #1
  41830. 8011ba2: e000 b.n 8011ba6 <xQueueGiveFromISR+0x62>
  41831. 8011ba4: 2300 movs r3, #0
  41832. 8011ba6: 2b00 cmp r3, #0
  41833. 8011ba8: d10b bne.n 8011bc2 <xQueueGiveFromISR+0x7e>
  41834. __asm volatile
  41835. 8011baa: f04f 0350 mov.w r3, #80 @ 0x50
  41836. 8011bae: f383 8811 msr BASEPRI, r3
  41837. 8011bb2: f3bf 8f6f isb sy
  41838. 8011bb6: f3bf 8f4f dsb sy
  41839. 8011bba: 61bb str r3, [r7, #24]
  41840. }
  41841. 8011bbc: bf00 nop
  41842. 8011bbe: bf00 nop
  41843. 8011bc0: e7fd b.n 8011bbe <xQueueGiveFromISR+0x7a>
  41844. that have been assigned a priority at or (logically) below the maximum
  41845. system call interrupt priority. FreeRTOS maintains a separate interrupt
  41846. safe API to ensure interrupt entry is as fast and as simple as possible.
  41847. More information (albeit Cortex-M specific) is provided on the following
  41848. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  41849. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  41850. 8011bc2: f003 f899 bl 8014cf8 <vPortValidateInterruptPriority>
  41851. __asm volatile
  41852. 8011bc6: f3ef 8211 mrs r2, BASEPRI
  41853. 8011bca: f04f 0350 mov.w r3, #80 @ 0x50
  41854. 8011bce: f383 8811 msr BASEPRI, r3
  41855. 8011bd2: f3bf 8f6f isb sy
  41856. 8011bd6: f3bf 8f4f dsb sy
  41857. 8011bda: 617a str r2, [r7, #20]
  41858. 8011bdc: 613b str r3, [r7, #16]
  41859. return ulOriginalBASEPRI;
  41860. 8011bde: 697b ldr r3, [r7, #20]
  41861. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  41862. 8011be0: 62fb str r3, [r7, #44] @ 0x2c
  41863. {
  41864. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  41865. 8011be2: 6b3b ldr r3, [r7, #48] @ 0x30
  41866. 8011be4: 6b9b ldr r3, [r3, #56] @ 0x38
  41867. 8011be6: 62bb str r3, [r7, #40] @ 0x28
  41868. /* When the queue is used to implement a semaphore no data is ever
  41869. moved through the queue but it is still valid to see if the queue 'has
  41870. space'. */
  41871. if( uxMessagesWaiting < pxQueue->uxLength )
  41872. 8011be8: 6b3b ldr r3, [r7, #48] @ 0x30
  41873. 8011bea: 6bdb ldr r3, [r3, #60] @ 0x3c
  41874. 8011bec: 6aba ldr r2, [r7, #40] @ 0x28
  41875. 8011bee: 429a cmp r2, r3
  41876. 8011bf0: d22b bcs.n 8011c4a <xQueueGiveFromISR+0x106>
  41877. {
  41878. const int8_t cTxLock = pxQueue->cTxLock;
  41879. 8011bf2: 6b3b ldr r3, [r7, #48] @ 0x30
  41880. 8011bf4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  41881. 8011bf8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  41882. holder - and if there is a mutex holder then the mutex cannot be
  41883. given from an ISR. As this is the ISR version of the function it
  41884. can be assumed there is no mutex holder and no need to determine if
  41885. priority disinheritance is needed. Simply increase the count of
  41886. messages (semaphores) available. */
  41887. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  41888. 8011bfc: 6abb ldr r3, [r7, #40] @ 0x28
  41889. 8011bfe: 1c5a adds r2, r3, #1
  41890. 8011c00: 6b3b ldr r3, [r7, #48] @ 0x30
  41891. 8011c02: 639a str r2, [r3, #56] @ 0x38
  41892. /* The event list is not altered if the queue is locked. This will
  41893. be done when the queue is unlocked later. */
  41894. if( cTxLock == queueUNLOCKED )
  41895. 8011c04: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  41896. 8011c08: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41897. 8011c0c: d112 bne.n 8011c34 <xQueueGiveFromISR+0xf0>
  41898. }
  41899. }
  41900. }
  41901. #else /* configUSE_QUEUE_SETS */
  41902. {
  41903. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  41904. 8011c0e: 6b3b ldr r3, [r7, #48] @ 0x30
  41905. 8011c10: 6a5b ldr r3, [r3, #36] @ 0x24
  41906. 8011c12: 2b00 cmp r3, #0
  41907. 8011c14: d016 beq.n 8011c44 <xQueueGiveFromISR+0x100>
  41908. {
  41909. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  41910. 8011c16: 6b3b ldr r3, [r7, #48] @ 0x30
  41911. 8011c18: 3324 adds r3, #36 @ 0x24
  41912. 8011c1a: 4618 mov r0, r3
  41913. 8011c1c: f001 fcf2 bl 8013604 <xTaskRemoveFromEventList>
  41914. 8011c20: 4603 mov r3, r0
  41915. 8011c22: 2b00 cmp r3, #0
  41916. 8011c24: d00e beq.n 8011c44 <xQueueGiveFromISR+0x100>
  41917. {
  41918. /* The task waiting has a higher priority so record that a
  41919. context switch is required. */
  41920. if( pxHigherPriorityTaskWoken != NULL )
  41921. 8011c26: 683b ldr r3, [r7, #0]
  41922. 8011c28: 2b00 cmp r3, #0
  41923. 8011c2a: d00b beq.n 8011c44 <xQueueGiveFromISR+0x100>
  41924. {
  41925. *pxHigherPriorityTaskWoken = pdTRUE;
  41926. 8011c2c: 683b ldr r3, [r7, #0]
  41927. 8011c2e: 2201 movs r2, #1
  41928. 8011c30: 601a str r2, [r3, #0]
  41929. 8011c32: e007 b.n 8011c44 <xQueueGiveFromISR+0x100>
  41930. }
  41931. else
  41932. {
  41933. /* Increment the lock count so the task that unlocks the queue
  41934. knows that data was posted while it was locked. */
  41935. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  41936. 8011c34: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  41937. 8011c38: 3301 adds r3, #1
  41938. 8011c3a: b2db uxtb r3, r3
  41939. 8011c3c: b25a sxtb r2, r3
  41940. 8011c3e: 6b3b ldr r3, [r7, #48] @ 0x30
  41941. 8011c40: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41942. }
  41943. xReturn = pdPASS;
  41944. 8011c44: 2301 movs r3, #1
  41945. 8011c46: 637b str r3, [r7, #52] @ 0x34
  41946. 8011c48: e001 b.n 8011c4e <xQueueGiveFromISR+0x10a>
  41947. }
  41948. else
  41949. {
  41950. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  41951. xReturn = errQUEUE_FULL;
  41952. 8011c4a: 2300 movs r3, #0
  41953. 8011c4c: 637b str r3, [r7, #52] @ 0x34
  41954. 8011c4e: 6afb ldr r3, [r7, #44] @ 0x2c
  41955. 8011c50: 60fb str r3, [r7, #12]
  41956. __asm volatile
  41957. 8011c52: 68fb ldr r3, [r7, #12]
  41958. 8011c54: f383 8811 msr BASEPRI, r3
  41959. }
  41960. 8011c58: bf00 nop
  41961. }
  41962. }
  41963. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  41964. return xReturn;
  41965. 8011c5a: 6b7b ldr r3, [r7, #52] @ 0x34
  41966. }
  41967. 8011c5c: 4618 mov r0, r3
  41968. 8011c5e: 3738 adds r7, #56 @ 0x38
  41969. 8011c60: 46bd mov sp, r7
  41970. 8011c62: bd80 pop {r7, pc}
  41971. 08011c64 <xQueueReceive>:
  41972. /*-----------------------------------------------------------*/
  41973. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  41974. {
  41975. 8011c64: b580 push {r7, lr}
  41976. 8011c66: b08c sub sp, #48 @ 0x30
  41977. 8011c68: af00 add r7, sp, #0
  41978. 8011c6a: 60f8 str r0, [r7, #12]
  41979. 8011c6c: 60b9 str r1, [r7, #8]
  41980. 8011c6e: 607a str r2, [r7, #4]
  41981. BaseType_t xEntryTimeSet = pdFALSE;
  41982. 8011c70: 2300 movs r3, #0
  41983. 8011c72: 62fb str r3, [r7, #44] @ 0x2c
  41984. TimeOut_t xTimeOut;
  41985. Queue_t * const pxQueue = xQueue;
  41986. 8011c74: 68fb ldr r3, [r7, #12]
  41987. 8011c76: 62bb str r3, [r7, #40] @ 0x28
  41988. /* Check the pointer is not NULL. */
  41989. configASSERT( ( pxQueue ) );
  41990. 8011c78: 6abb ldr r3, [r7, #40] @ 0x28
  41991. 8011c7a: 2b00 cmp r3, #0
  41992. 8011c7c: d10b bne.n 8011c96 <xQueueReceive+0x32>
  41993. __asm volatile
  41994. 8011c7e: f04f 0350 mov.w r3, #80 @ 0x50
  41995. 8011c82: f383 8811 msr BASEPRI, r3
  41996. 8011c86: f3bf 8f6f isb sy
  41997. 8011c8a: f3bf 8f4f dsb sy
  41998. 8011c8e: 623b str r3, [r7, #32]
  41999. }
  42000. 8011c90: bf00 nop
  42001. 8011c92: bf00 nop
  42002. 8011c94: e7fd b.n 8011c92 <xQueueReceive+0x2e>
  42003. /* The buffer into which data is received can only be NULL if the data size
  42004. is zero (so no data is copied into the buffer. */
  42005. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  42006. 8011c96: 68bb ldr r3, [r7, #8]
  42007. 8011c98: 2b00 cmp r3, #0
  42008. 8011c9a: d103 bne.n 8011ca4 <xQueueReceive+0x40>
  42009. 8011c9c: 6abb ldr r3, [r7, #40] @ 0x28
  42010. 8011c9e: 6c1b ldr r3, [r3, #64] @ 0x40
  42011. 8011ca0: 2b00 cmp r3, #0
  42012. 8011ca2: d101 bne.n 8011ca8 <xQueueReceive+0x44>
  42013. 8011ca4: 2301 movs r3, #1
  42014. 8011ca6: e000 b.n 8011caa <xQueueReceive+0x46>
  42015. 8011ca8: 2300 movs r3, #0
  42016. 8011caa: 2b00 cmp r3, #0
  42017. 8011cac: d10b bne.n 8011cc6 <xQueueReceive+0x62>
  42018. __asm volatile
  42019. 8011cae: f04f 0350 mov.w r3, #80 @ 0x50
  42020. 8011cb2: f383 8811 msr BASEPRI, r3
  42021. 8011cb6: f3bf 8f6f isb sy
  42022. 8011cba: f3bf 8f4f dsb sy
  42023. 8011cbe: 61fb str r3, [r7, #28]
  42024. }
  42025. 8011cc0: bf00 nop
  42026. 8011cc2: bf00 nop
  42027. 8011cc4: e7fd b.n 8011cc2 <xQueueReceive+0x5e>
  42028. /* Cannot block if the scheduler is suspended. */
  42029. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  42030. {
  42031. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  42032. 8011cc6: f001 fe9b bl 8013a00 <xTaskGetSchedulerState>
  42033. 8011cca: 4603 mov r3, r0
  42034. 8011ccc: 2b00 cmp r3, #0
  42035. 8011cce: d102 bne.n 8011cd6 <xQueueReceive+0x72>
  42036. 8011cd0: 687b ldr r3, [r7, #4]
  42037. 8011cd2: 2b00 cmp r3, #0
  42038. 8011cd4: d101 bne.n 8011cda <xQueueReceive+0x76>
  42039. 8011cd6: 2301 movs r3, #1
  42040. 8011cd8: e000 b.n 8011cdc <xQueueReceive+0x78>
  42041. 8011cda: 2300 movs r3, #0
  42042. 8011cdc: 2b00 cmp r3, #0
  42043. 8011cde: d10b bne.n 8011cf8 <xQueueReceive+0x94>
  42044. __asm volatile
  42045. 8011ce0: f04f 0350 mov.w r3, #80 @ 0x50
  42046. 8011ce4: f383 8811 msr BASEPRI, r3
  42047. 8011ce8: f3bf 8f6f isb sy
  42048. 8011cec: f3bf 8f4f dsb sy
  42049. 8011cf0: 61bb str r3, [r7, #24]
  42050. }
  42051. 8011cf2: bf00 nop
  42052. 8011cf4: bf00 nop
  42053. 8011cf6: e7fd b.n 8011cf4 <xQueueReceive+0x90>
  42054. /*lint -save -e904 This function relaxes the coding standard somewhat to
  42055. allow return statements within the function itself. This is done in the
  42056. interest of execution time efficiency. */
  42057. for( ;; )
  42058. {
  42059. taskENTER_CRITICAL();
  42060. 8011cf8: f002 ff1e bl 8014b38 <vPortEnterCritical>
  42061. {
  42062. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  42063. 8011cfc: 6abb ldr r3, [r7, #40] @ 0x28
  42064. 8011cfe: 6b9b ldr r3, [r3, #56] @ 0x38
  42065. 8011d00: 627b str r3, [r7, #36] @ 0x24
  42066. /* Is there data in the queue now? To be running the calling task
  42067. must be the highest priority task wanting to access the queue. */
  42068. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  42069. 8011d02: 6a7b ldr r3, [r7, #36] @ 0x24
  42070. 8011d04: 2b00 cmp r3, #0
  42071. 8011d06: d01f beq.n 8011d48 <xQueueReceive+0xe4>
  42072. {
  42073. /* Data available, remove one item. */
  42074. prvCopyDataFromQueue( pxQueue, pvBuffer );
  42075. 8011d08: 68b9 ldr r1, [r7, #8]
  42076. 8011d0a: 6ab8 ldr r0, [r7, #40] @ 0x28
  42077. 8011d0c: f000 fb02 bl 8012314 <prvCopyDataFromQueue>
  42078. traceQUEUE_RECEIVE( pxQueue );
  42079. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  42080. 8011d10: 6a7b ldr r3, [r7, #36] @ 0x24
  42081. 8011d12: 1e5a subs r2, r3, #1
  42082. 8011d14: 6abb ldr r3, [r7, #40] @ 0x28
  42083. 8011d16: 639a str r2, [r3, #56] @ 0x38
  42084. /* There is now space in the queue, were any tasks waiting to
  42085. post to the queue? If so, unblock the highest priority waiting
  42086. task. */
  42087. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  42088. 8011d18: 6abb ldr r3, [r7, #40] @ 0x28
  42089. 8011d1a: 691b ldr r3, [r3, #16]
  42090. 8011d1c: 2b00 cmp r3, #0
  42091. 8011d1e: d00f beq.n 8011d40 <xQueueReceive+0xdc>
  42092. {
  42093. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  42094. 8011d20: 6abb ldr r3, [r7, #40] @ 0x28
  42095. 8011d22: 3310 adds r3, #16
  42096. 8011d24: 4618 mov r0, r3
  42097. 8011d26: f001 fc6d bl 8013604 <xTaskRemoveFromEventList>
  42098. 8011d2a: 4603 mov r3, r0
  42099. 8011d2c: 2b00 cmp r3, #0
  42100. 8011d2e: d007 beq.n 8011d40 <xQueueReceive+0xdc>
  42101. {
  42102. queueYIELD_IF_USING_PREEMPTION();
  42103. 8011d30: 4b3c ldr r3, [pc, #240] @ (8011e24 <xQueueReceive+0x1c0>)
  42104. 8011d32: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42105. 8011d36: 601a str r2, [r3, #0]
  42106. 8011d38: f3bf 8f4f dsb sy
  42107. 8011d3c: f3bf 8f6f isb sy
  42108. else
  42109. {
  42110. mtCOVERAGE_TEST_MARKER();
  42111. }
  42112. taskEXIT_CRITICAL();
  42113. 8011d40: f002 ff2c bl 8014b9c <vPortExitCritical>
  42114. return pdPASS;
  42115. 8011d44: 2301 movs r3, #1
  42116. 8011d46: e069 b.n 8011e1c <xQueueReceive+0x1b8>
  42117. }
  42118. else
  42119. {
  42120. if( xTicksToWait == ( TickType_t ) 0 )
  42121. 8011d48: 687b ldr r3, [r7, #4]
  42122. 8011d4a: 2b00 cmp r3, #0
  42123. 8011d4c: d103 bne.n 8011d56 <xQueueReceive+0xf2>
  42124. {
  42125. /* The queue was empty and no block time is specified (or
  42126. the block time has expired) so leave now. */
  42127. taskEXIT_CRITICAL();
  42128. 8011d4e: f002 ff25 bl 8014b9c <vPortExitCritical>
  42129. traceQUEUE_RECEIVE_FAILED( pxQueue );
  42130. return errQUEUE_EMPTY;
  42131. 8011d52: 2300 movs r3, #0
  42132. 8011d54: e062 b.n 8011e1c <xQueueReceive+0x1b8>
  42133. }
  42134. else if( xEntryTimeSet == pdFALSE )
  42135. 8011d56: 6afb ldr r3, [r7, #44] @ 0x2c
  42136. 8011d58: 2b00 cmp r3, #0
  42137. 8011d5a: d106 bne.n 8011d6a <xQueueReceive+0x106>
  42138. {
  42139. /* The queue was empty and a block time was specified so
  42140. configure the timeout structure. */
  42141. vTaskInternalSetTimeOutState( &xTimeOut );
  42142. 8011d5c: f107 0310 add.w r3, r7, #16
  42143. 8011d60: 4618 mov r0, r3
  42144. 8011d62: f001 fcdb bl 801371c <vTaskInternalSetTimeOutState>
  42145. xEntryTimeSet = pdTRUE;
  42146. 8011d66: 2301 movs r3, #1
  42147. 8011d68: 62fb str r3, [r7, #44] @ 0x2c
  42148. /* Entry time was already set. */
  42149. mtCOVERAGE_TEST_MARKER();
  42150. }
  42151. }
  42152. }
  42153. taskEXIT_CRITICAL();
  42154. 8011d6a: f002 ff17 bl 8014b9c <vPortExitCritical>
  42155. /* Interrupts and other tasks can send to and receive from the queue
  42156. now the critical section has been exited. */
  42157. vTaskSuspendAll();
  42158. 8011d6e: f001 f9fb bl 8013168 <vTaskSuspendAll>
  42159. prvLockQueue( pxQueue );
  42160. 8011d72: f002 fee1 bl 8014b38 <vPortEnterCritical>
  42161. 8011d76: 6abb ldr r3, [r7, #40] @ 0x28
  42162. 8011d78: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  42163. 8011d7c: b25b sxtb r3, r3
  42164. 8011d7e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42165. 8011d82: d103 bne.n 8011d8c <xQueueReceive+0x128>
  42166. 8011d84: 6abb ldr r3, [r7, #40] @ 0x28
  42167. 8011d86: 2200 movs r2, #0
  42168. 8011d88: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42169. 8011d8c: 6abb ldr r3, [r7, #40] @ 0x28
  42170. 8011d8e: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42171. 8011d92: b25b sxtb r3, r3
  42172. 8011d94: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42173. 8011d98: d103 bne.n 8011da2 <xQueueReceive+0x13e>
  42174. 8011d9a: 6abb ldr r3, [r7, #40] @ 0x28
  42175. 8011d9c: 2200 movs r2, #0
  42176. 8011d9e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42177. 8011da2: f002 fefb bl 8014b9c <vPortExitCritical>
  42178. /* Update the timeout state to see if it has expired yet. */
  42179. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  42180. 8011da6: 1d3a adds r2, r7, #4
  42181. 8011da8: f107 0310 add.w r3, r7, #16
  42182. 8011dac: 4611 mov r1, r2
  42183. 8011dae: 4618 mov r0, r3
  42184. 8011db0: f001 fcca bl 8013748 <xTaskCheckForTimeOut>
  42185. 8011db4: 4603 mov r3, r0
  42186. 8011db6: 2b00 cmp r3, #0
  42187. 8011db8: d123 bne.n 8011e02 <xQueueReceive+0x19e>
  42188. {
  42189. /* The timeout has not expired. If the queue is still empty place
  42190. the task on the list of tasks waiting to receive from the queue. */
  42191. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  42192. 8011dba: 6ab8 ldr r0, [r7, #40] @ 0x28
  42193. 8011dbc: f000 fb22 bl 8012404 <prvIsQueueEmpty>
  42194. 8011dc0: 4603 mov r3, r0
  42195. 8011dc2: 2b00 cmp r3, #0
  42196. 8011dc4: d017 beq.n 8011df6 <xQueueReceive+0x192>
  42197. {
  42198. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  42199. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  42200. 8011dc6: 6abb ldr r3, [r7, #40] @ 0x28
  42201. 8011dc8: 3324 adds r3, #36 @ 0x24
  42202. 8011dca: 687a ldr r2, [r7, #4]
  42203. 8011dcc: 4611 mov r1, r2
  42204. 8011dce: 4618 mov r0, r3
  42205. 8011dd0: f001 fbc6 bl 8013560 <vTaskPlaceOnEventList>
  42206. prvUnlockQueue( pxQueue );
  42207. 8011dd4: 6ab8 ldr r0, [r7, #40] @ 0x28
  42208. 8011dd6: f000 fac3 bl 8012360 <prvUnlockQueue>
  42209. if( xTaskResumeAll() == pdFALSE )
  42210. 8011dda: f001 f9d3 bl 8013184 <xTaskResumeAll>
  42211. 8011dde: 4603 mov r3, r0
  42212. 8011de0: 2b00 cmp r3, #0
  42213. 8011de2: d189 bne.n 8011cf8 <xQueueReceive+0x94>
  42214. {
  42215. portYIELD_WITHIN_API();
  42216. 8011de4: 4b0f ldr r3, [pc, #60] @ (8011e24 <xQueueReceive+0x1c0>)
  42217. 8011de6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42218. 8011dea: 601a str r2, [r3, #0]
  42219. 8011dec: f3bf 8f4f dsb sy
  42220. 8011df0: f3bf 8f6f isb sy
  42221. 8011df4: e780 b.n 8011cf8 <xQueueReceive+0x94>
  42222. }
  42223. else
  42224. {
  42225. /* The queue contains data again. Loop back to try and read the
  42226. data. */
  42227. prvUnlockQueue( pxQueue );
  42228. 8011df6: 6ab8 ldr r0, [r7, #40] @ 0x28
  42229. 8011df8: f000 fab2 bl 8012360 <prvUnlockQueue>
  42230. ( void ) xTaskResumeAll();
  42231. 8011dfc: f001 f9c2 bl 8013184 <xTaskResumeAll>
  42232. 8011e00: e77a b.n 8011cf8 <xQueueReceive+0x94>
  42233. }
  42234. else
  42235. {
  42236. /* Timed out. If there is no data in the queue exit, otherwise loop
  42237. back and attempt to read the data. */
  42238. prvUnlockQueue( pxQueue );
  42239. 8011e02: 6ab8 ldr r0, [r7, #40] @ 0x28
  42240. 8011e04: f000 faac bl 8012360 <prvUnlockQueue>
  42241. ( void ) xTaskResumeAll();
  42242. 8011e08: f001 f9bc bl 8013184 <xTaskResumeAll>
  42243. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  42244. 8011e0c: 6ab8 ldr r0, [r7, #40] @ 0x28
  42245. 8011e0e: f000 faf9 bl 8012404 <prvIsQueueEmpty>
  42246. 8011e12: 4603 mov r3, r0
  42247. 8011e14: 2b00 cmp r3, #0
  42248. 8011e16: f43f af6f beq.w 8011cf8 <xQueueReceive+0x94>
  42249. {
  42250. traceQUEUE_RECEIVE_FAILED( pxQueue );
  42251. return errQUEUE_EMPTY;
  42252. 8011e1a: 2300 movs r3, #0
  42253. {
  42254. mtCOVERAGE_TEST_MARKER();
  42255. }
  42256. }
  42257. } /*lint -restore */
  42258. }
  42259. 8011e1c: 4618 mov r0, r3
  42260. 8011e1e: 3730 adds r7, #48 @ 0x30
  42261. 8011e20: 46bd mov sp, r7
  42262. 8011e22: bd80 pop {r7, pc}
  42263. 8011e24: e000ed04 .word 0xe000ed04
  42264. 08011e28 <xQueueSemaphoreTake>:
  42265. /*-----------------------------------------------------------*/
  42266. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  42267. {
  42268. 8011e28: b580 push {r7, lr}
  42269. 8011e2a: b08e sub sp, #56 @ 0x38
  42270. 8011e2c: af00 add r7, sp, #0
  42271. 8011e2e: 6078 str r0, [r7, #4]
  42272. 8011e30: 6039 str r1, [r7, #0]
  42273. BaseType_t xEntryTimeSet = pdFALSE;
  42274. 8011e32: 2300 movs r3, #0
  42275. 8011e34: 637b str r3, [r7, #52] @ 0x34
  42276. TimeOut_t xTimeOut;
  42277. Queue_t * const pxQueue = xQueue;
  42278. 8011e36: 687b ldr r3, [r7, #4]
  42279. 8011e38: 62fb str r3, [r7, #44] @ 0x2c
  42280. #if( configUSE_MUTEXES == 1 )
  42281. BaseType_t xInheritanceOccurred = pdFALSE;
  42282. 8011e3a: 2300 movs r3, #0
  42283. 8011e3c: 633b str r3, [r7, #48] @ 0x30
  42284. #endif
  42285. /* Check the queue pointer is not NULL. */
  42286. configASSERT( ( pxQueue ) );
  42287. 8011e3e: 6afb ldr r3, [r7, #44] @ 0x2c
  42288. 8011e40: 2b00 cmp r3, #0
  42289. 8011e42: d10b bne.n 8011e5c <xQueueSemaphoreTake+0x34>
  42290. __asm volatile
  42291. 8011e44: f04f 0350 mov.w r3, #80 @ 0x50
  42292. 8011e48: f383 8811 msr BASEPRI, r3
  42293. 8011e4c: f3bf 8f6f isb sy
  42294. 8011e50: f3bf 8f4f dsb sy
  42295. 8011e54: 623b str r3, [r7, #32]
  42296. }
  42297. 8011e56: bf00 nop
  42298. 8011e58: bf00 nop
  42299. 8011e5a: e7fd b.n 8011e58 <xQueueSemaphoreTake+0x30>
  42300. /* Check this really is a semaphore, in which case the item size will be
  42301. 0. */
  42302. configASSERT( pxQueue->uxItemSize == 0 );
  42303. 8011e5c: 6afb ldr r3, [r7, #44] @ 0x2c
  42304. 8011e5e: 6c1b ldr r3, [r3, #64] @ 0x40
  42305. 8011e60: 2b00 cmp r3, #0
  42306. 8011e62: d00b beq.n 8011e7c <xQueueSemaphoreTake+0x54>
  42307. __asm volatile
  42308. 8011e64: f04f 0350 mov.w r3, #80 @ 0x50
  42309. 8011e68: f383 8811 msr BASEPRI, r3
  42310. 8011e6c: f3bf 8f6f isb sy
  42311. 8011e70: f3bf 8f4f dsb sy
  42312. 8011e74: 61fb str r3, [r7, #28]
  42313. }
  42314. 8011e76: bf00 nop
  42315. 8011e78: bf00 nop
  42316. 8011e7a: e7fd b.n 8011e78 <xQueueSemaphoreTake+0x50>
  42317. /* Cannot block if the scheduler is suspended. */
  42318. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  42319. {
  42320. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  42321. 8011e7c: f001 fdc0 bl 8013a00 <xTaskGetSchedulerState>
  42322. 8011e80: 4603 mov r3, r0
  42323. 8011e82: 2b00 cmp r3, #0
  42324. 8011e84: d102 bne.n 8011e8c <xQueueSemaphoreTake+0x64>
  42325. 8011e86: 683b ldr r3, [r7, #0]
  42326. 8011e88: 2b00 cmp r3, #0
  42327. 8011e8a: d101 bne.n 8011e90 <xQueueSemaphoreTake+0x68>
  42328. 8011e8c: 2301 movs r3, #1
  42329. 8011e8e: e000 b.n 8011e92 <xQueueSemaphoreTake+0x6a>
  42330. 8011e90: 2300 movs r3, #0
  42331. 8011e92: 2b00 cmp r3, #0
  42332. 8011e94: d10b bne.n 8011eae <xQueueSemaphoreTake+0x86>
  42333. __asm volatile
  42334. 8011e96: f04f 0350 mov.w r3, #80 @ 0x50
  42335. 8011e9a: f383 8811 msr BASEPRI, r3
  42336. 8011e9e: f3bf 8f6f isb sy
  42337. 8011ea2: f3bf 8f4f dsb sy
  42338. 8011ea6: 61bb str r3, [r7, #24]
  42339. }
  42340. 8011ea8: bf00 nop
  42341. 8011eaa: bf00 nop
  42342. 8011eac: e7fd b.n 8011eaa <xQueueSemaphoreTake+0x82>
  42343. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  42344. statements within the function itself. This is done in the interest
  42345. of execution time efficiency. */
  42346. for( ;; )
  42347. {
  42348. taskENTER_CRITICAL();
  42349. 8011eae: f002 fe43 bl 8014b38 <vPortEnterCritical>
  42350. {
  42351. /* Semaphores are queues with an item size of 0, and where the
  42352. number of messages in the queue is the semaphore's count value. */
  42353. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  42354. 8011eb2: 6afb ldr r3, [r7, #44] @ 0x2c
  42355. 8011eb4: 6b9b ldr r3, [r3, #56] @ 0x38
  42356. 8011eb6: 62bb str r3, [r7, #40] @ 0x28
  42357. /* Is there data in the queue now? To be running the calling task
  42358. must be the highest priority task wanting to access the queue. */
  42359. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  42360. 8011eb8: 6abb ldr r3, [r7, #40] @ 0x28
  42361. 8011eba: 2b00 cmp r3, #0
  42362. 8011ebc: d024 beq.n 8011f08 <xQueueSemaphoreTake+0xe0>
  42363. {
  42364. traceQUEUE_RECEIVE( pxQueue );
  42365. /* Semaphores are queues with a data size of zero and where the
  42366. messages waiting is the semaphore's count. Reduce the count. */
  42367. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  42368. 8011ebe: 6abb ldr r3, [r7, #40] @ 0x28
  42369. 8011ec0: 1e5a subs r2, r3, #1
  42370. 8011ec2: 6afb ldr r3, [r7, #44] @ 0x2c
  42371. 8011ec4: 639a str r2, [r3, #56] @ 0x38
  42372. #if ( configUSE_MUTEXES == 1 )
  42373. {
  42374. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  42375. 8011ec6: 6afb ldr r3, [r7, #44] @ 0x2c
  42376. 8011ec8: 681b ldr r3, [r3, #0]
  42377. 8011eca: 2b00 cmp r3, #0
  42378. 8011ecc: d104 bne.n 8011ed8 <xQueueSemaphoreTake+0xb0>
  42379. {
  42380. /* Record the information required to implement
  42381. priority inheritance should it become necessary. */
  42382. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  42383. 8011ece: f001 ff11 bl 8013cf4 <pvTaskIncrementMutexHeldCount>
  42384. 8011ed2: 4602 mov r2, r0
  42385. 8011ed4: 6afb ldr r3, [r7, #44] @ 0x2c
  42386. 8011ed6: 609a str r2, [r3, #8]
  42387. }
  42388. #endif /* configUSE_MUTEXES */
  42389. /* Check to see if other tasks are blocked waiting to give the
  42390. semaphore, and if so, unblock the highest priority such task. */
  42391. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  42392. 8011ed8: 6afb ldr r3, [r7, #44] @ 0x2c
  42393. 8011eda: 691b ldr r3, [r3, #16]
  42394. 8011edc: 2b00 cmp r3, #0
  42395. 8011ede: d00f beq.n 8011f00 <xQueueSemaphoreTake+0xd8>
  42396. {
  42397. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  42398. 8011ee0: 6afb ldr r3, [r7, #44] @ 0x2c
  42399. 8011ee2: 3310 adds r3, #16
  42400. 8011ee4: 4618 mov r0, r3
  42401. 8011ee6: f001 fb8d bl 8013604 <xTaskRemoveFromEventList>
  42402. 8011eea: 4603 mov r3, r0
  42403. 8011eec: 2b00 cmp r3, #0
  42404. 8011eee: d007 beq.n 8011f00 <xQueueSemaphoreTake+0xd8>
  42405. {
  42406. queueYIELD_IF_USING_PREEMPTION();
  42407. 8011ef0: 4b54 ldr r3, [pc, #336] @ (8012044 <xQueueSemaphoreTake+0x21c>)
  42408. 8011ef2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42409. 8011ef6: 601a str r2, [r3, #0]
  42410. 8011ef8: f3bf 8f4f dsb sy
  42411. 8011efc: f3bf 8f6f isb sy
  42412. else
  42413. {
  42414. mtCOVERAGE_TEST_MARKER();
  42415. }
  42416. taskEXIT_CRITICAL();
  42417. 8011f00: f002 fe4c bl 8014b9c <vPortExitCritical>
  42418. return pdPASS;
  42419. 8011f04: 2301 movs r3, #1
  42420. 8011f06: e098 b.n 801203a <xQueueSemaphoreTake+0x212>
  42421. }
  42422. else
  42423. {
  42424. if( xTicksToWait == ( TickType_t ) 0 )
  42425. 8011f08: 683b ldr r3, [r7, #0]
  42426. 8011f0a: 2b00 cmp r3, #0
  42427. 8011f0c: d112 bne.n 8011f34 <xQueueSemaphoreTake+0x10c>
  42428. /* For inheritance to have occurred there must have been an
  42429. initial timeout, and an adjusted timeout cannot become 0, as
  42430. if it were 0 the function would have exited. */
  42431. #if( configUSE_MUTEXES == 1 )
  42432. {
  42433. configASSERT( xInheritanceOccurred == pdFALSE );
  42434. 8011f0e: 6b3b ldr r3, [r7, #48] @ 0x30
  42435. 8011f10: 2b00 cmp r3, #0
  42436. 8011f12: d00b beq.n 8011f2c <xQueueSemaphoreTake+0x104>
  42437. __asm volatile
  42438. 8011f14: f04f 0350 mov.w r3, #80 @ 0x50
  42439. 8011f18: f383 8811 msr BASEPRI, r3
  42440. 8011f1c: f3bf 8f6f isb sy
  42441. 8011f20: f3bf 8f4f dsb sy
  42442. 8011f24: 617b str r3, [r7, #20]
  42443. }
  42444. 8011f26: bf00 nop
  42445. 8011f28: bf00 nop
  42446. 8011f2a: e7fd b.n 8011f28 <xQueueSemaphoreTake+0x100>
  42447. }
  42448. #endif /* configUSE_MUTEXES */
  42449. /* The semaphore count was 0 and no block time is specified
  42450. (or the block time has expired) so exit now. */
  42451. taskEXIT_CRITICAL();
  42452. 8011f2c: f002 fe36 bl 8014b9c <vPortExitCritical>
  42453. traceQUEUE_RECEIVE_FAILED( pxQueue );
  42454. return errQUEUE_EMPTY;
  42455. 8011f30: 2300 movs r3, #0
  42456. 8011f32: e082 b.n 801203a <xQueueSemaphoreTake+0x212>
  42457. }
  42458. else if( xEntryTimeSet == pdFALSE )
  42459. 8011f34: 6b7b ldr r3, [r7, #52] @ 0x34
  42460. 8011f36: 2b00 cmp r3, #0
  42461. 8011f38: d106 bne.n 8011f48 <xQueueSemaphoreTake+0x120>
  42462. {
  42463. /* The semaphore count was 0 and a block time was specified
  42464. so configure the timeout structure ready to block. */
  42465. vTaskInternalSetTimeOutState( &xTimeOut );
  42466. 8011f3a: f107 030c add.w r3, r7, #12
  42467. 8011f3e: 4618 mov r0, r3
  42468. 8011f40: f001 fbec bl 801371c <vTaskInternalSetTimeOutState>
  42469. xEntryTimeSet = pdTRUE;
  42470. 8011f44: 2301 movs r3, #1
  42471. 8011f46: 637b str r3, [r7, #52] @ 0x34
  42472. /* Entry time was already set. */
  42473. mtCOVERAGE_TEST_MARKER();
  42474. }
  42475. }
  42476. }
  42477. taskEXIT_CRITICAL();
  42478. 8011f48: f002 fe28 bl 8014b9c <vPortExitCritical>
  42479. /* Interrupts and other tasks can give to and take from the semaphore
  42480. now the critical section has been exited. */
  42481. vTaskSuspendAll();
  42482. 8011f4c: f001 f90c bl 8013168 <vTaskSuspendAll>
  42483. prvLockQueue( pxQueue );
  42484. 8011f50: f002 fdf2 bl 8014b38 <vPortEnterCritical>
  42485. 8011f54: 6afb ldr r3, [r7, #44] @ 0x2c
  42486. 8011f56: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  42487. 8011f5a: b25b sxtb r3, r3
  42488. 8011f5c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42489. 8011f60: d103 bne.n 8011f6a <xQueueSemaphoreTake+0x142>
  42490. 8011f62: 6afb ldr r3, [r7, #44] @ 0x2c
  42491. 8011f64: 2200 movs r2, #0
  42492. 8011f66: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42493. 8011f6a: 6afb ldr r3, [r7, #44] @ 0x2c
  42494. 8011f6c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42495. 8011f70: b25b sxtb r3, r3
  42496. 8011f72: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42497. 8011f76: d103 bne.n 8011f80 <xQueueSemaphoreTake+0x158>
  42498. 8011f78: 6afb ldr r3, [r7, #44] @ 0x2c
  42499. 8011f7a: 2200 movs r2, #0
  42500. 8011f7c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42501. 8011f80: f002 fe0c bl 8014b9c <vPortExitCritical>
  42502. /* Update the timeout state to see if it has expired yet. */
  42503. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  42504. 8011f84: 463a mov r2, r7
  42505. 8011f86: f107 030c add.w r3, r7, #12
  42506. 8011f8a: 4611 mov r1, r2
  42507. 8011f8c: 4618 mov r0, r3
  42508. 8011f8e: f001 fbdb bl 8013748 <xTaskCheckForTimeOut>
  42509. 8011f92: 4603 mov r3, r0
  42510. 8011f94: 2b00 cmp r3, #0
  42511. 8011f96: d132 bne.n 8011ffe <xQueueSemaphoreTake+0x1d6>
  42512. {
  42513. /* A block time is specified and not expired. If the semaphore
  42514. count is 0 then enter the Blocked state to wait for a semaphore to
  42515. become available. As semaphores are implemented with queues the
  42516. queue being empty is equivalent to the semaphore count being 0. */
  42517. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  42518. 8011f98: 6af8 ldr r0, [r7, #44] @ 0x2c
  42519. 8011f9a: f000 fa33 bl 8012404 <prvIsQueueEmpty>
  42520. 8011f9e: 4603 mov r3, r0
  42521. 8011fa0: 2b00 cmp r3, #0
  42522. 8011fa2: d026 beq.n 8011ff2 <xQueueSemaphoreTake+0x1ca>
  42523. {
  42524. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  42525. #if ( configUSE_MUTEXES == 1 )
  42526. {
  42527. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  42528. 8011fa4: 6afb ldr r3, [r7, #44] @ 0x2c
  42529. 8011fa6: 681b ldr r3, [r3, #0]
  42530. 8011fa8: 2b00 cmp r3, #0
  42531. 8011faa: d109 bne.n 8011fc0 <xQueueSemaphoreTake+0x198>
  42532. {
  42533. taskENTER_CRITICAL();
  42534. 8011fac: f002 fdc4 bl 8014b38 <vPortEnterCritical>
  42535. {
  42536. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  42537. 8011fb0: 6afb ldr r3, [r7, #44] @ 0x2c
  42538. 8011fb2: 689b ldr r3, [r3, #8]
  42539. 8011fb4: 4618 mov r0, r3
  42540. 8011fb6: f001 fd41 bl 8013a3c <xTaskPriorityInherit>
  42541. 8011fba: 6338 str r0, [r7, #48] @ 0x30
  42542. }
  42543. taskEXIT_CRITICAL();
  42544. 8011fbc: f002 fdee bl 8014b9c <vPortExitCritical>
  42545. mtCOVERAGE_TEST_MARKER();
  42546. }
  42547. }
  42548. #endif
  42549. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  42550. 8011fc0: 6afb ldr r3, [r7, #44] @ 0x2c
  42551. 8011fc2: 3324 adds r3, #36 @ 0x24
  42552. 8011fc4: 683a ldr r2, [r7, #0]
  42553. 8011fc6: 4611 mov r1, r2
  42554. 8011fc8: 4618 mov r0, r3
  42555. 8011fca: f001 fac9 bl 8013560 <vTaskPlaceOnEventList>
  42556. prvUnlockQueue( pxQueue );
  42557. 8011fce: 6af8 ldr r0, [r7, #44] @ 0x2c
  42558. 8011fd0: f000 f9c6 bl 8012360 <prvUnlockQueue>
  42559. if( xTaskResumeAll() == pdFALSE )
  42560. 8011fd4: f001 f8d6 bl 8013184 <xTaskResumeAll>
  42561. 8011fd8: 4603 mov r3, r0
  42562. 8011fda: 2b00 cmp r3, #0
  42563. 8011fdc: f47f af67 bne.w 8011eae <xQueueSemaphoreTake+0x86>
  42564. {
  42565. portYIELD_WITHIN_API();
  42566. 8011fe0: 4b18 ldr r3, [pc, #96] @ (8012044 <xQueueSemaphoreTake+0x21c>)
  42567. 8011fe2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42568. 8011fe6: 601a str r2, [r3, #0]
  42569. 8011fe8: f3bf 8f4f dsb sy
  42570. 8011fec: f3bf 8f6f isb sy
  42571. 8011ff0: e75d b.n 8011eae <xQueueSemaphoreTake+0x86>
  42572. }
  42573. else
  42574. {
  42575. /* There was no timeout and the semaphore count was not 0, so
  42576. attempt to take the semaphore again. */
  42577. prvUnlockQueue( pxQueue );
  42578. 8011ff2: 6af8 ldr r0, [r7, #44] @ 0x2c
  42579. 8011ff4: f000 f9b4 bl 8012360 <prvUnlockQueue>
  42580. ( void ) xTaskResumeAll();
  42581. 8011ff8: f001 f8c4 bl 8013184 <xTaskResumeAll>
  42582. 8011ffc: e757 b.n 8011eae <xQueueSemaphoreTake+0x86>
  42583. }
  42584. }
  42585. else
  42586. {
  42587. /* Timed out. */
  42588. prvUnlockQueue( pxQueue );
  42589. 8011ffe: 6af8 ldr r0, [r7, #44] @ 0x2c
  42590. 8012000: f000 f9ae bl 8012360 <prvUnlockQueue>
  42591. ( void ) xTaskResumeAll();
  42592. 8012004: f001 f8be bl 8013184 <xTaskResumeAll>
  42593. /* If the semaphore count is 0 exit now as the timeout has
  42594. expired. Otherwise return to attempt to take the semaphore that is
  42595. known to be available. As semaphores are implemented by queues the
  42596. queue being empty is equivalent to the semaphore count being 0. */
  42597. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  42598. 8012008: 6af8 ldr r0, [r7, #44] @ 0x2c
  42599. 801200a: f000 f9fb bl 8012404 <prvIsQueueEmpty>
  42600. 801200e: 4603 mov r3, r0
  42601. 8012010: 2b00 cmp r3, #0
  42602. 8012012: f43f af4c beq.w 8011eae <xQueueSemaphoreTake+0x86>
  42603. #if ( configUSE_MUTEXES == 1 )
  42604. {
  42605. /* xInheritanceOccurred could only have be set if
  42606. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  42607. test the mutex type again to check it is actually a mutex. */
  42608. if( xInheritanceOccurred != pdFALSE )
  42609. 8012016: 6b3b ldr r3, [r7, #48] @ 0x30
  42610. 8012018: 2b00 cmp r3, #0
  42611. 801201a: d00d beq.n 8012038 <xQueueSemaphoreTake+0x210>
  42612. {
  42613. taskENTER_CRITICAL();
  42614. 801201c: f002 fd8c bl 8014b38 <vPortEnterCritical>
  42615. /* This task blocking on the mutex caused another
  42616. task to inherit this task's priority. Now this task
  42617. has timed out the priority should be disinherited
  42618. again, but only as low as the next highest priority
  42619. task that is waiting for the same mutex. */
  42620. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  42621. 8012020: 6af8 ldr r0, [r7, #44] @ 0x2c
  42622. 8012022: f000 f8f5 bl 8012210 <prvGetDisinheritPriorityAfterTimeout>
  42623. 8012026: 6278 str r0, [r7, #36] @ 0x24
  42624. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  42625. 8012028: 6afb ldr r3, [r7, #44] @ 0x2c
  42626. 801202a: 689b ldr r3, [r3, #8]
  42627. 801202c: 6a79 ldr r1, [r7, #36] @ 0x24
  42628. 801202e: 4618 mov r0, r3
  42629. 8012030: f001 fddc bl 8013bec <vTaskPriorityDisinheritAfterTimeout>
  42630. }
  42631. taskEXIT_CRITICAL();
  42632. 8012034: f002 fdb2 bl 8014b9c <vPortExitCritical>
  42633. }
  42634. }
  42635. #endif /* configUSE_MUTEXES */
  42636. traceQUEUE_RECEIVE_FAILED( pxQueue );
  42637. return errQUEUE_EMPTY;
  42638. 8012038: 2300 movs r3, #0
  42639. {
  42640. mtCOVERAGE_TEST_MARKER();
  42641. }
  42642. }
  42643. } /*lint -restore */
  42644. }
  42645. 801203a: 4618 mov r0, r3
  42646. 801203c: 3738 adds r7, #56 @ 0x38
  42647. 801203e: 46bd mov sp, r7
  42648. 8012040: bd80 pop {r7, pc}
  42649. 8012042: bf00 nop
  42650. 8012044: e000ed04 .word 0xe000ed04
  42651. 08012048 <xQueueReceiveFromISR>:
  42652. } /*lint -restore */
  42653. }
  42654. /*-----------------------------------------------------------*/
  42655. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  42656. {
  42657. 8012048: b580 push {r7, lr}
  42658. 801204a: b08e sub sp, #56 @ 0x38
  42659. 801204c: af00 add r7, sp, #0
  42660. 801204e: 60f8 str r0, [r7, #12]
  42661. 8012050: 60b9 str r1, [r7, #8]
  42662. 8012052: 607a str r2, [r7, #4]
  42663. BaseType_t xReturn;
  42664. UBaseType_t uxSavedInterruptStatus;
  42665. Queue_t * const pxQueue = xQueue;
  42666. 8012054: 68fb ldr r3, [r7, #12]
  42667. 8012056: 633b str r3, [r7, #48] @ 0x30
  42668. configASSERT( pxQueue );
  42669. 8012058: 6b3b ldr r3, [r7, #48] @ 0x30
  42670. 801205a: 2b00 cmp r3, #0
  42671. 801205c: d10b bne.n 8012076 <xQueueReceiveFromISR+0x2e>
  42672. __asm volatile
  42673. 801205e: f04f 0350 mov.w r3, #80 @ 0x50
  42674. 8012062: f383 8811 msr BASEPRI, r3
  42675. 8012066: f3bf 8f6f isb sy
  42676. 801206a: f3bf 8f4f dsb sy
  42677. 801206e: 623b str r3, [r7, #32]
  42678. }
  42679. 8012070: bf00 nop
  42680. 8012072: bf00 nop
  42681. 8012074: e7fd b.n 8012072 <xQueueReceiveFromISR+0x2a>
  42682. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  42683. 8012076: 68bb ldr r3, [r7, #8]
  42684. 8012078: 2b00 cmp r3, #0
  42685. 801207a: d103 bne.n 8012084 <xQueueReceiveFromISR+0x3c>
  42686. 801207c: 6b3b ldr r3, [r7, #48] @ 0x30
  42687. 801207e: 6c1b ldr r3, [r3, #64] @ 0x40
  42688. 8012080: 2b00 cmp r3, #0
  42689. 8012082: d101 bne.n 8012088 <xQueueReceiveFromISR+0x40>
  42690. 8012084: 2301 movs r3, #1
  42691. 8012086: e000 b.n 801208a <xQueueReceiveFromISR+0x42>
  42692. 8012088: 2300 movs r3, #0
  42693. 801208a: 2b00 cmp r3, #0
  42694. 801208c: d10b bne.n 80120a6 <xQueueReceiveFromISR+0x5e>
  42695. __asm volatile
  42696. 801208e: f04f 0350 mov.w r3, #80 @ 0x50
  42697. 8012092: f383 8811 msr BASEPRI, r3
  42698. 8012096: f3bf 8f6f isb sy
  42699. 801209a: f3bf 8f4f dsb sy
  42700. 801209e: 61fb str r3, [r7, #28]
  42701. }
  42702. 80120a0: bf00 nop
  42703. 80120a2: bf00 nop
  42704. 80120a4: e7fd b.n 80120a2 <xQueueReceiveFromISR+0x5a>
  42705. that have been assigned a priority at or (logically) below the maximum
  42706. system call interrupt priority. FreeRTOS maintains a separate interrupt
  42707. safe API to ensure interrupt entry is as fast and as simple as possible.
  42708. More information (albeit Cortex-M specific) is provided on the following
  42709. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  42710. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  42711. 80120a6: f002 fe27 bl 8014cf8 <vPortValidateInterruptPriority>
  42712. __asm volatile
  42713. 80120aa: f3ef 8211 mrs r2, BASEPRI
  42714. 80120ae: f04f 0350 mov.w r3, #80 @ 0x50
  42715. 80120b2: f383 8811 msr BASEPRI, r3
  42716. 80120b6: f3bf 8f6f isb sy
  42717. 80120ba: f3bf 8f4f dsb sy
  42718. 80120be: 61ba str r2, [r7, #24]
  42719. 80120c0: 617b str r3, [r7, #20]
  42720. return ulOriginalBASEPRI;
  42721. 80120c2: 69bb ldr r3, [r7, #24]
  42722. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  42723. 80120c4: 62fb str r3, [r7, #44] @ 0x2c
  42724. {
  42725. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  42726. 80120c6: 6b3b ldr r3, [r7, #48] @ 0x30
  42727. 80120c8: 6b9b ldr r3, [r3, #56] @ 0x38
  42728. 80120ca: 62bb str r3, [r7, #40] @ 0x28
  42729. /* Cannot block in an ISR, so check there is data available. */
  42730. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  42731. 80120cc: 6abb ldr r3, [r7, #40] @ 0x28
  42732. 80120ce: 2b00 cmp r3, #0
  42733. 80120d0: d02f beq.n 8012132 <xQueueReceiveFromISR+0xea>
  42734. {
  42735. const int8_t cRxLock = pxQueue->cRxLock;
  42736. 80120d2: 6b3b ldr r3, [r7, #48] @ 0x30
  42737. 80120d4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  42738. 80120d8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  42739. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  42740. prvCopyDataFromQueue( pxQueue, pvBuffer );
  42741. 80120dc: 68b9 ldr r1, [r7, #8]
  42742. 80120de: 6b38 ldr r0, [r7, #48] @ 0x30
  42743. 80120e0: f000 f918 bl 8012314 <prvCopyDataFromQueue>
  42744. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  42745. 80120e4: 6abb ldr r3, [r7, #40] @ 0x28
  42746. 80120e6: 1e5a subs r2, r3, #1
  42747. 80120e8: 6b3b ldr r3, [r7, #48] @ 0x30
  42748. 80120ea: 639a str r2, [r3, #56] @ 0x38
  42749. /* If the queue is locked the event list will not be modified.
  42750. Instead update the lock count so the task that unlocks the queue
  42751. will know that an ISR has removed data while the queue was
  42752. locked. */
  42753. if( cRxLock == queueUNLOCKED )
  42754. 80120ec: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  42755. 80120f0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42756. 80120f4: d112 bne.n 801211c <xQueueReceiveFromISR+0xd4>
  42757. {
  42758. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  42759. 80120f6: 6b3b ldr r3, [r7, #48] @ 0x30
  42760. 80120f8: 691b ldr r3, [r3, #16]
  42761. 80120fa: 2b00 cmp r3, #0
  42762. 80120fc: d016 beq.n 801212c <xQueueReceiveFromISR+0xe4>
  42763. {
  42764. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  42765. 80120fe: 6b3b ldr r3, [r7, #48] @ 0x30
  42766. 8012100: 3310 adds r3, #16
  42767. 8012102: 4618 mov r0, r3
  42768. 8012104: f001 fa7e bl 8013604 <xTaskRemoveFromEventList>
  42769. 8012108: 4603 mov r3, r0
  42770. 801210a: 2b00 cmp r3, #0
  42771. 801210c: d00e beq.n 801212c <xQueueReceiveFromISR+0xe4>
  42772. {
  42773. /* The task waiting has a higher priority than us so
  42774. force a context switch. */
  42775. if( pxHigherPriorityTaskWoken != NULL )
  42776. 801210e: 687b ldr r3, [r7, #4]
  42777. 8012110: 2b00 cmp r3, #0
  42778. 8012112: d00b beq.n 801212c <xQueueReceiveFromISR+0xe4>
  42779. {
  42780. *pxHigherPriorityTaskWoken = pdTRUE;
  42781. 8012114: 687b ldr r3, [r7, #4]
  42782. 8012116: 2201 movs r2, #1
  42783. 8012118: 601a str r2, [r3, #0]
  42784. 801211a: e007 b.n 801212c <xQueueReceiveFromISR+0xe4>
  42785. }
  42786. else
  42787. {
  42788. /* Increment the lock count so the task that unlocks the queue
  42789. knows that data was removed while it was locked. */
  42790. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  42791. 801211c: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  42792. 8012120: 3301 adds r3, #1
  42793. 8012122: b2db uxtb r3, r3
  42794. 8012124: b25a sxtb r2, r3
  42795. 8012126: 6b3b ldr r3, [r7, #48] @ 0x30
  42796. 8012128: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42797. }
  42798. xReturn = pdPASS;
  42799. 801212c: 2301 movs r3, #1
  42800. 801212e: 637b str r3, [r7, #52] @ 0x34
  42801. 8012130: e001 b.n 8012136 <xQueueReceiveFromISR+0xee>
  42802. }
  42803. else
  42804. {
  42805. xReturn = pdFAIL;
  42806. 8012132: 2300 movs r3, #0
  42807. 8012134: 637b str r3, [r7, #52] @ 0x34
  42808. 8012136: 6afb ldr r3, [r7, #44] @ 0x2c
  42809. 8012138: 613b str r3, [r7, #16]
  42810. __asm volatile
  42811. 801213a: 693b ldr r3, [r7, #16]
  42812. 801213c: f383 8811 msr BASEPRI, r3
  42813. }
  42814. 8012140: bf00 nop
  42815. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  42816. }
  42817. }
  42818. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  42819. return xReturn;
  42820. 8012142: 6b7b ldr r3, [r7, #52] @ 0x34
  42821. }
  42822. 8012144: 4618 mov r0, r3
  42823. 8012146: 3738 adds r7, #56 @ 0x38
  42824. 8012148: 46bd mov sp, r7
  42825. 801214a: bd80 pop {r7, pc}
  42826. 0801214c <uxQueueMessagesWaiting>:
  42827. return xReturn;
  42828. }
  42829. /*-----------------------------------------------------------*/
  42830. UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue )
  42831. {
  42832. 801214c: b580 push {r7, lr}
  42833. 801214e: b084 sub sp, #16
  42834. 8012150: af00 add r7, sp, #0
  42835. 8012152: 6078 str r0, [r7, #4]
  42836. UBaseType_t uxReturn;
  42837. configASSERT( xQueue );
  42838. 8012154: 687b ldr r3, [r7, #4]
  42839. 8012156: 2b00 cmp r3, #0
  42840. 8012158: d10b bne.n 8012172 <uxQueueMessagesWaiting+0x26>
  42841. __asm volatile
  42842. 801215a: f04f 0350 mov.w r3, #80 @ 0x50
  42843. 801215e: f383 8811 msr BASEPRI, r3
  42844. 8012162: f3bf 8f6f isb sy
  42845. 8012166: f3bf 8f4f dsb sy
  42846. 801216a: 60bb str r3, [r7, #8]
  42847. }
  42848. 801216c: bf00 nop
  42849. 801216e: bf00 nop
  42850. 8012170: e7fd b.n 801216e <uxQueueMessagesWaiting+0x22>
  42851. taskENTER_CRITICAL();
  42852. 8012172: f002 fce1 bl 8014b38 <vPortEnterCritical>
  42853. {
  42854. uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting;
  42855. 8012176: 687b ldr r3, [r7, #4]
  42856. 8012178: 6b9b ldr r3, [r3, #56] @ 0x38
  42857. 801217a: 60fb str r3, [r7, #12]
  42858. }
  42859. taskEXIT_CRITICAL();
  42860. 801217c: f002 fd0e bl 8014b9c <vPortExitCritical>
  42861. return uxReturn;
  42862. 8012180: 68fb ldr r3, [r7, #12]
  42863. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  42864. 8012182: 4618 mov r0, r3
  42865. 8012184: 3710 adds r7, #16
  42866. 8012186: 46bd mov sp, r7
  42867. 8012188: bd80 pop {r7, pc}
  42868. 0801218a <uxQueueMessagesWaitingFromISR>:
  42869. return uxReturn;
  42870. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  42871. /*-----------------------------------------------------------*/
  42872. UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue )
  42873. {
  42874. 801218a: b480 push {r7}
  42875. 801218c: b087 sub sp, #28
  42876. 801218e: af00 add r7, sp, #0
  42877. 8012190: 6078 str r0, [r7, #4]
  42878. UBaseType_t uxReturn;
  42879. Queue_t * const pxQueue = xQueue;
  42880. 8012192: 687b ldr r3, [r7, #4]
  42881. 8012194: 617b str r3, [r7, #20]
  42882. configASSERT( pxQueue );
  42883. 8012196: 697b ldr r3, [r7, #20]
  42884. 8012198: 2b00 cmp r3, #0
  42885. 801219a: d10b bne.n 80121b4 <uxQueueMessagesWaitingFromISR+0x2a>
  42886. __asm volatile
  42887. 801219c: f04f 0350 mov.w r3, #80 @ 0x50
  42888. 80121a0: f383 8811 msr BASEPRI, r3
  42889. 80121a4: f3bf 8f6f isb sy
  42890. 80121a8: f3bf 8f4f dsb sy
  42891. 80121ac: 60fb str r3, [r7, #12]
  42892. }
  42893. 80121ae: bf00 nop
  42894. 80121b0: bf00 nop
  42895. 80121b2: e7fd b.n 80121b0 <uxQueueMessagesWaitingFromISR+0x26>
  42896. uxReturn = pxQueue->uxMessagesWaiting;
  42897. 80121b4: 697b ldr r3, [r7, #20]
  42898. 80121b6: 6b9b ldr r3, [r3, #56] @ 0x38
  42899. 80121b8: 613b str r3, [r7, #16]
  42900. return uxReturn;
  42901. 80121ba: 693b ldr r3, [r7, #16]
  42902. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  42903. 80121bc: 4618 mov r0, r3
  42904. 80121be: 371c adds r7, #28
  42905. 80121c0: 46bd mov sp, r7
  42906. 80121c2: f85d 7b04 ldr.w r7, [sp], #4
  42907. 80121c6: 4770 bx lr
  42908. 080121c8 <vQueueDelete>:
  42909. /*-----------------------------------------------------------*/
  42910. void vQueueDelete( QueueHandle_t xQueue )
  42911. {
  42912. 80121c8: b580 push {r7, lr}
  42913. 80121ca: b084 sub sp, #16
  42914. 80121cc: af00 add r7, sp, #0
  42915. 80121ce: 6078 str r0, [r7, #4]
  42916. Queue_t * const pxQueue = xQueue;
  42917. 80121d0: 687b ldr r3, [r7, #4]
  42918. 80121d2: 60fb str r3, [r7, #12]
  42919. configASSERT( pxQueue );
  42920. 80121d4: 68fb ldr r3, [r7, #12]
  42921. 80121d6: 2b00 cmp r3, #0
  42922. 80121d8: d10b bne.n 80121f2 <vQueueDelete+0x2a>
  42923. __asm volatile
  42924. 80121da: f04f 0350 mov.w r3, #80 @ 0x50
  42925. 80121de: f383 8811 msr BASEPRI, r3
  42926. 80121e2: f3bf 8f6f isb sy
  42927. 80121e6: f3bf 8f4f dsb sy
  42928. 80121ea: 60bb str r3, [r7, #8]
  42929. }
  42930. 80121ec: bf00 nop
  42931. 80121ee: bf00 nop
  42932. 80121f0: e7fd b.n 80121ee <vQueueDelete+0x26>
  42933. traceQUEUE_DELETE( pxQueue );
  42934. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  42935. {
  42936. vQueueUnregisterQueue( pxQueue );
  42937. 80121f2: 68f8 ldr r0, [r7, #12]
  42938. 80121f4: f000 f95e bl 80124b4 <vQueueUnregisterQueue>
  42939. }
  42940. #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  42941. {
  42942. /* The queue could have been allocated statically or dynamically, so
  42943. check before attempting to free the memory. */
  42944. if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE )
  42945. 80121f8: 68fb ldr r3, [r7, #12]
  42946. 80121fa: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  42947. 80121fe: 2b00 cmp r3, #0
  42948. 8012200: d102 bne.n 8012208 <vQueueDelete+0x40>
  42949. {
  42950. vPortFree( pxQueue );
  42951. 8012202: 68f8 ldr r0, [r7, #12]
  42952. 8012204: f002 fe88 bl 8014f18 <vPortFree>
  42953. /* The queue must have been statically allocated, so is not going to be
  42954. deleted. Avoid compiler warnings about the unused parameter. */
  42955. ( void ) pxQueue;
  42956. }
  42957. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  42958. }
  42959. 8012208: bf00 nop
  42960. 801220a: 3710 adds r7, #16
  42961. 801220c: 46bd mov sp, r7
  42962. 801220e: bd80 pop {r7, pc}
  42963. 08012210 <prvGetDisinheritPriorityAfterTimeout>:
  42964. /*-----------------------------------------------------------*/
  42965. #if( configUSE_MUTEXES == 1 )
  42966. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  42967. {
  42968. 8012210: b480 push {r7}
  42969. 8012212: b085 sub sp, #20
  42970. 8012214: af00 add r7, sp, #0
  42971. 8012216: 6078 str r0, [r7, #4]
  42972. priority, but the waiting task times out, then the holder should
  42973. disinherit the priority - but only down to the highest priority of any
  42974. other tasks that are waiting for the same mutex. For this purpose,
  42975. return the priority of the highest priority task that is waiting for the
  42976. mutex. */
  42977. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  42978. 8012218: 687b ldr r3, [r7, #4]
  42979. 801221a: 6a5b ldr r3, [r3, #36] @ 0x24
  42980. 801221c: 2b00 cmp r3, #0
  42981. 801221e: d006 beq.n 801222e <prvGetDisinheritPriorityAfterTimeout+0x1e>
  42982. {
  42983. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  42984. 8012220: 687b ldr r3, [r7, #4]
  42985. 8012222: 6b1b ldr r3, [r3, #48] @ 0x30
  42986. 8012224: 681b ldr r3, [r3, #0]
  42987. 8012226: f1c3 0338 rsb r3, r3, #56 @ 0x38
  42988. 801222a: 60fb str r3, [r7, #12]
  42989. 801222c: e001 b.n 8012232 <prvGetDisinheritPriorityAfterTimeout+0x22>
  42990. }
  42991. else
  42992. {
  42993. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  42994. 801222e: 2300 movs r3, #0
  42995. 8012230: 60fb str r3, [r7, #12]
  42996. }
  42997. return uxHighestPriorityOfWaitingTasks;
  42998. 8012232: 68fb ldr r3, [r7, #12]
  42999. }
  43000. 8012234: 4618 mov r0, r3
  43001. 8012236: 3714 adds r7, #20
  43002. 8012238: 46bd mov sp, r7
  43003. 801223a: f85d 7b04 ldr.w r7, [sp], #4
  43004. 801223e: 4770 bx lr
  43005. 08012240 <prvCopyDataToQueue>:
  43006. #endif /* configUSE_MUTEXES */
  43007. /*-----------------------------------------------------------*/
  43008. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  43009. {
  43010. 8012240: b580 push {r7, lr}
  43011. 8012242: b086 sub sp, #24
  43012. 8012244: af00 add r7, sp, #0
  43013. 8012246: 60f8 str r0, [r7, #12]
  43014. 8012248: 60b9 str r1, [r7, #8]
  43015. 801224a: 607a str r2, [r7, #4]
  43016. BaseType_t xReturn = pdFALSE;
  43017. 801224c: 2300 movs r3, #0
  43018. 801224e: 617b str r3, [r7, #20]
  43019. UBaseType_t uxMessagesWaiting;
  43020. /* This function is called from a critical section. */
  43021. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  43022. 8012250: 68fb ldr r3, [r7, #12]
  43023. 8012252: 6b9b ldr r3, [r3, #56] @ 0x38
  43024. 8012254: 613b str r3, [r7, #16]
  43025. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  43026. 8012256: 68fb ldr r3, [r7, #12]
  43027. 8012258: 6c1b ldr r3, [r3, #64] @ 0x40
  43028. 801225a: 2b00 cmp r3, #0
  43029. 801225c: d10d bne.n 801227a <prvCopyDataToQueue+0x3a>
  43030. {
  43031. #if ( configUSE_MUTEXES == 1 )
  43032. {
  43033. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  43034. 801225e: 68fb ldr r3, [r7, #12]
  43035. 8012260: 681b ldr r3, [r3, #0]
  43036. 8012262: 2b00 cmp r3, #0
  43037. 8012264: d14d bne.n 8012302 <prvCopyDataToQueue+0xc2>
  43038. {
  43039. /* The mutex is no longer being held. */
  43040. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  43041. 8012266: 68fb ldr r3, [r7, #12]
  43042. 8012268: 689b ldr r3, [r3, #8]
  43043. 801226a: 4618 mov r0, r3
  43044. 801226c: f001 fc4e bl 8013b0c <xTaskPriorityDisinherit>
  43045. 8012270: 6178 str r0, [r7, #20]
  43046. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  43047. 8012272: 68fb ldr r3, [r7, #12]
  43048. 8012274: 2200 movs r2, #0
  43049. 8012276: 609a str r2, [r3, #8]
  43050. 8012278: e043 b.n 8012302 <prvCopyDataToQueue+0xc2>
  43051. mtCOVERAGE_TEST_MARKER();
  43052. }
  43053. }
  43054. #endif /* configUSE_MUTEXES */
  43055. }
  43056. else if( xPosition == queueSEND_TO_BACK )
  43057. 801227a: 687b ldr r3, [r7, #4]
  43058. 801227c: 2b00 cmp r3, #0
  43059. 801227e: d119 bne.n 80122b4 <prvCopyDataToQueue+0x74>
  43060. {
  43061. ( 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. */
  43062. 8012280: 68fb ldr r3, [r7, #12]
  43063. 8012282: 6858 ldr r0, [r3, #4]
  43064. 8012284: 68fb ldr r3, [r7, #12]
  43065. 8012286: 6c1b ldr r3, [r3, #64] @ 0x40
  43066. 8012288: 461a mov r2, r3
  43067. 801228a: 68b9 ldr r1, [r7, #8]
  43068. 801228c: f017 fe2f bl 8029eee <memcpy>
  43069. 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. */
  43070. 8012290: 68fb ldr r3, [r7, #12]
  43071. 8012292: 685a ldr r2, [r3, #4]
  43072. 8012294: 68fb ldr r3, [r7, #12]
  43073. 8012296: 6c1b ldr r3, [r3, #64] @ 0x40
  43074. 8012298: 441a add r2, r3
  43075. 801229a: 68fb ldr r3, [r7, #12]
  43076. 801229c: 605a str r2, [r3, #4]
  43077. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  43078. 801229e: 68fb ldr r3, [r7, #12]
  43079. 80122a0: 685a ldr r2, [r3, #4]
  43080. 80122a2: 68fb ldr r3, [r7, #12]
  43081. 80122a4: 689b ldr r3, [r3, #8]
  43082. 80122a6: 429a cmp r2, r3
  43083. 80122a8: d32b bcc.n 8012302 <prvCopyDataToQueue+0xc2>
  43084. {
  43085. pxQueue->pcWriteTo = pxQueue->pcHead;
  43086. 80122aa: 68fb ldr r3, [r7, #12]
  43087. 80122ac: 681a ldr r2, [r3, #0]
  43088. 80122ae: 68fb ldr r3, [r7, #12]
  43089. 80122b0: 605a str r2, [r3, #4]
  43090. 80122b2: e026 b.n 8012302 <prvCopyDataToQueue+0xc2>
  43091. mtCOVERAGE_TEST_MARKER();
  43092. }
  43093. }
  43094. else
  43095. {
  43096. ( 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. */
  43097. 80122b4: 68fb ldr r3, [r7, #12]
  43098. 80122b6: 68d8 ldr r0, [r3, #12]
  43099. 80122b8: 68fb ldr r3, [r7, #12]
  43100. 80122ba: 6c1b ldr r3, [r3, #64] @ 0x40
  43101. 80122bc: 461a mov r2, r3
  43102. 80122be: 68b9 ldr r1, [r7, #8]
  43103. 80122c0: f017 fe15 bl 8029eee <memcpy>
  43104. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  43105. 80122c4: 68fb ldr r3, [r7, #12]
  43106. 80122c6: 68da ldr r2, [r3, #12]
  43107. 80122c8: 68fb ldr r3, [r7, #12]
  43108. 80122ca: 6c1b ldr r3, [r3, #64] @ 0x40
  43109. 80122cc: 425b negs r3, r3
  43110. 80122ce: 441a add r2, r3
  43111. 80122d0: 68fb ldr r3, [r7, #12]
  43112. 80122d2: 60da str r2, [r3, #12]
  43113. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  43114. 80122d4: 68fb ldr r3, [r7, #12]
  43115. 80122d6: 68da ldr r2, [r3, #12]
  43116. 80122d8: 68fb ldr r3, [r7, #12]
  43117. 80122da: 681b ldr r3, [r3, #0]
  43118. 80122dc: 429a cmp r2, r3
  43119. 80122de: d207 bcs.n 80122f0 <prvCopyDataToQueue+0xb0>
  43120. {
  43121. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  43122. 80122e0: 68fb ldr r3, [r7, #12]
  43123. 80122e2: 689a ldr r2, [r3, #8]
  43124. 80122e4: 68fb ldr r3, [r7, #12]
  43125. 80122e6: 6c1b ldr r3, [r3, #64] @ 0x40
  43126. 80122e8: 425b negs r3, r3
  43127. 80122ea: 441a add r2, r3
  43128. 80122ec: 68fb ldr r3, [r7, #12]
  43129. 80122ee: 60da str r2, [r3, #12]
  43130. else
  43131. {
  43132. mtCOVERAGE_TEST_MARKER();
  43133. }
  43134. if( xPosition == queueOVERWRITE )
  43135. 80122f0: 687b ldr r3, [r7, #4]
  43136. 80122f2: 2b02 cmp r3, #2
  43137. 80122f4: d105 bne.n 8012302 <prvCopyDataToQueue+0xc2>
  43138. {
  43139. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  43140. 80122f6: 693b ldr r3, [r7, #16]
  43141. 80122f8: 2b00 cmp r3, #0
  43142. 80122fa: d002 beq.n 8012302 <prvCopyDataToQueue+0xc2>
  43143. {
  43144. /* An item is not being added but overwritten, so subtract
  43145. one from the recorded number of items in the queue so when
  43146. one is added again below the number of recorded items remains
  43147. correct. */
  43148. --uxMessagesWaiting;
  43149. 80122fc: 693b ldr r3, [r7, #16]
  43150. 80122fe: 3b01 subs r3, #1
  43151. 8012300: 613b str r3, [r7, #16]
  43152. {
  43153. mtCOVERAGE_TEST_MARKER();
  43154. }
  43155. }
  43156. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  43157. 8012302: 693b ldr r3, [r7, #16]
  43158. 8012304: 1c5a adds r2, r3, #1
  43159. 8012306: 68fb ldr r3, [r7, #12]
  43160. 8012308: 639a str r2, [r3, #56] @ 0x38
  43161. return xReturn;
  43162. 801230a: 697b ldr r3, [r7, #20]
  43163. }
  43164. 801230c: 4618 mov r0, r3
  43165. 801230e: 3718 adds r7, #24
  43166. 8012310: 46bd mov sp, r7
  43167. 8012312: bd80 pop {r7, pc}
  43168. 08012314 <prvCopyDataFromQueue>:
  43169. /*-----------------------------------------------------------*/
  43170. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  43171. {
  43172. 8012314: b580 push {r7, lr}
  43173. 8012316: b082 sub sp, #8
  43174. 8012318: af00 add r7, sp, #0
  43175. 801231a: 6078 str r0, [r7, #4]
  43176. 801231c: 6039 str r1, [r7, #0]
  43177. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  43178. 801231e: 687b ldr r3, [r7, #4]
  43179. 8012320: 6c1b ldr r3, [r3, #64] @ 0x40
  43180. 8012322: 2b00 cmp r3, #0
  43181. 8012324: d018 beq.n 8012358 <prvCopyDataFromQueue+0x44>
  43182. {
  43183. 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. */
  43184. 8012326: 687b ldr r3, [r7, #4]
  43185. 8012328: 68da ldr r2, [r3, #12]
  43186. 801232a: 687b ldr r3, [r7, #4]
  43187. 801232c: 6c1b ldr r3, [r3, #64] @ 0x40
  43188. 801232e: 441a add r2, r3
  43189. 8012330: 687b ldr r3, [r7, #4]
  43190. 8012332: 60da str r2, [r3, #12]
  43191. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  43192. 8012334: 687b ldr r3, [r7, #4]
  43193. 8012336: 68da ldr r2, [r3, #12]
  43194. 8012338: 687b ldr r3, [r7, #4]
  43195. 801233a: 689b ldr r3, [r3, #8]
  43196. 801233c: 429a cmp r2, r3
  43197. 801233e: d303 bcc.n 8012348 <prvCopyDataFromQueue+0x34>
  43198. {
  43199. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  43200. 8012340: 687b ldr r3, [r7, #4]
  43201. 8012342: 681a ldr r2, [r3, #0]
  43202. 8012344: 687b ldr r3, [r7, #4]
  43203. 8012346: 60da str r2, [r3, #12]
  43204. }
  43205. else
  43206. {
  43207. mtCOVERAGE_TEST_MARKER();
  43208. }
  43209. ( 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. */
  43210. 8012348: 687b ldr r3, [r7, #4]
  43211. 801234a: 68d9 ldr r1, [r3, #12]
  43212. 801234c: 687b ldr r3, [r7, #4]
  43213. 801234e: 6c1b ldr r3, [r3, #64] @ 0x40
  43214. 8012350: 461a mov r2, r3
  43215. 8012352: 6838 ldr r0, [r7, #0]
  43216. 8012354: f017 fdcb bl 8029eee <memcpy>
  43217. }
  43218. }
  43219. 8012358: bf00 nop
  43220. 801235a: 3708 adds r7, #8
  43221. 801235c: 46bd mov sp, r7
  43222. 801235e: bd80 pop {r7, pc}
  43223. 08012360 <prvUnlockQueue>:
  43224. /*-----------------------------------------------------------*/
  43225. static void prvUnlockQueue( Queue_t * const pxQueue )
  43226. {
  43227. 8012360: b580 push {r7, lr}
  43228. 8012362: b084 sub sp, #16
  43229. 8012364: af00 add r7, sp, #0
  43230. 8012366: 6078 str r0, [r7, #4]
  43231. /* The lock counts contains the number of extra data items placed or
  43232. removed from the queue while the queue was locked. When a queue is
  43233. locked items can be added or removed, but the event lists cannot be
  43234. updated. */
  43235. taskENTER_CRITICAL();
  43236. 8012368: f002 fbe6 bl 8014b38 <vPortEnterCritical>
  43237. {
  43238. int8_t cTxLock = pxQueue->cTxLock;
  43239. 801236c: 687b ldr r3, [r7, #4]
  43240. 801236e: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43241. 8012372: 73fb strb r3, [r7, #15]
  43242. /* See if data was added to the queue while it was locked. */
  43243. while( cTxLock > queueLOCKED_UNMODIFIED )
  43244. 8012374: e011 b.n 801239a <prvUnlockQueue+0x3a>
  43245. }
  43246. #else /* configUSE_QUEUE_SETS */
  43247. {
  43248. /* Tasks that are removed from the event list will get added to
  43249. the pending ready list as the scheduler is still suspended. */
  43250. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  43251. 8012376: 687b ldr r3, [r7, #4]
  43252. 8012378: 6a5b ldr r3, [r3, #36] @ 0x24
  43253. 801237a: 2b00 cmp r3, #0
  43254. 801237c: d012 beq.n 80123a4 <prvUnlockQueue+0x44>
  43255. {
  43256. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  43257. 801237e: 687b ldr r3, [r7, #4]
  43258. 8012380: 3324 adds r3, #36 @ 0x24
  43259. 8012382: 4618 mov r0, r3
  43260. 8012384: f001 f93e bl 8013604 <xTaskRemoveFromEventList>
  43261. 8012388: 4603 mov r3, r0
  43262. 801238a: 2b00 cmp r3, #0
  43263. 801238c: d001 beq.n 8012392 <prvUnlockQueue+0x32>
  43264. {
  43265. /* The task waiting has a higher priority so record that
  43266. a context switch is required. */
  43267. vTaskMissedYield();
  43268. 801238e: f001 fa3f bl 8013810 <vTaskMissedYield>
  43269. break;
  43270. }
  43271. }
  43272. #endif /* configUSE_QUEUE_SETS */
  43273. --cTxLock;
  43274. 8012392: 7bfb ldrb r3, [r7, #15]
  43275. 8012394: 3b01 subs r3, #1
  43276. 8012396: b2db uxtb r3, r3
  43277. 8012398: 73fb strb r3, [r7, #15]
  43278. while( cTxLock > queueLOCKED_UNMODIFIED )
  43279. 801239a: f997 300f ldrsb.w r3, [r7, #15]
  43280. 801239e: 2b00 cmp r3, #0
  43281. 80123a0: dce9 bgt.n 8012376 <prvUnlockQueue+0x16>
  43282. 80123a2: e000 b.n 80123a6 <prvUnlockQueue+0x46>
  43283. break;
  43284. 80123a4: bf00 nop
  43285. }
  43286. pxQueue->cTxLock = queueUNLOCKED;
  43287. 80123a6: 687b ldr r3, [r7, #4]
  43288. 80123a8: 22ff movs r2, #255 @ 0xff
  43289. 80123aa: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43290. }
  43291. taskEXIT_CRITICAL();
  43292. 80123ae: f002 fbf5 bl 8014b9c <vPortExitCritical>
  43293. /* Do the same for the Rx lock. */
  43294. taskENTER_CRITICAL();
  43295. 80123b2: f002 fbc1 bl 8014b38 <vPortEnterCritical>
  43296. {
  43297. int8_t cRxLock = pxQueue->cRxLock;
  43298. 80123b6: 687b ldr r3, [r7, #4]
  43299. 80123b8: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43300. 80123bc: 73bb strb r3, [r7, #14]
  43301. while( cRxLock > queueLOCKED_UNMODIFIED )
  43302. 80123be: e011 b.n 80123e4 <prvUnlockQueue+0x84>
  43303. {
  43304. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  43305. 80123c0: 687b ldr r3, [r7, #4]
  43306. 80123c2: 691b ldr r3, [r3, #16]
  43307. 80123c4: 2b00 cmp r3, #0
  43308. 80123c6: d012 beq.n 80123ee <prvUnlockQueue+0x8e>
  43309. {
  43310. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  43311. 80123c8: 687b ldr r3, [r7, #4]
  43312. 80123ca: 3310 adds r3, #16
  43313. 80123cc: 4618 mov r0, r3
  43314. 80123ce: f001 f919 bl 8013604 <xTaskRemoveFromEventList>
  43315. 80123d2: 4603 mov r3, r0
  43316. 80123d4: 2b00 cmp r3, #0
  43317. 80123d6: d001 beq.n 80123dc <prvUnlockQueue+0x7c>
  43318. {
  43319. vTaskMissedYield();
  43320. 80123d8: f001 fa1a bl 8013810 <vTaskMissedYield>
  43321. else
  43322. {
  43323. mtCOVERAGE_TEST_MARKER();
  43324. }
  43325. --cRxLock;
  43326. 80123dc: 7bbb ldrb r3, [r7, #14]
  43327. 80123de: 3b01 subs r3, #1
  43328. 80123e0: b2db uxtb r3, r3
  43329. 80123e2: 73bb strb r3, [r7, #14]
  43330. while( cRxLock > queueLOCKED_UNMODIFIED )
  43331. 80123e4: f997 300e ldrsb.w r3, [r7, #14]
  43332. 80123e8: 2b00 cmp r3, #0
  43333. 80123ea: dce9 bgt.n 80123c0 <prvUnlockQueue+0x60>
  43334. 80123ec: e000 b.n 80123f0 <prvUnlockQueue+0x90>
  43335. }
  43336. else
  43337. {
  43338. break;
  43339. 80123ee: bf00 nop
  43340. }
  43341. }
  43342. pxQueue->cRxLock = queueUNLOCKED;
  43343. 80123f0: 687b ldr r3, [r7, #4]
  43344. 80123f2: 22ff movs r2, #255 @ 0xff
  43345. 80123f4: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43346. }
  43347. taskEXIT_CRITICAL();
  43348. 80123f8: f002 fbd0 bl 8014b9c <vPortExitCritical>
  43349. }
  43350. 80123fc: bf00 nop
  43351. 80123fe: 3710 adds r7, #16
  43352. 8012400: 46bd mov sp, r7
  43353. 8012402: bd80 pop {r7, pc}
  43354. 08012404 <prvIsQueueEmpty>:
  43355. /*-----------------------------------------------------------*/
  43356. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  43357. {
  43358. 8012404: b580 push {r7, lr}
  43359. 8012406: b084 sub sp, #16
  43360. 8012408: af00 add r7, sp, #0
  43361. 801240a: 6078 str r0, [r7, #4]
  43362. BaseType_t xReturn;
  43363. taskENTER_CRITICAL();
  43364. 801240c: f002 fb94 bl 8014b38 <vPortEnterCritical>
  43365. {
  43366. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  43367. 8012410: 687b ldr r3, [r7, #4]
  43368. 8012412: 6b9b ldr r3, [r3, #56] @ 0x38
  43369. 8012414: 2b00 cmp r3, #0
  43370. 8012416: d102 bne.n 801241e <prvIsQueueEmpty+0x1a>
  43371. {
  43372. xReturn = pdTRUE;
  43373. 8012418: 2301 movs r3, #1
  43374. 801241a: 60fb str r3, [r7, #12]
  43375. 801241c: e001 b.n 8012422 <prvIsQueueEmpty+0x1e>
  43376. }
  43377. else
  43378. {
  43379. xReturn = pdFALSE;
  43380. 801241e: 2300 movs r3, #0
  43381. 8012420: 60fb str r3, [r7, #12]
  43382. }
  43383. }
  43384. taskEXIT_CRITICAL();
  43385. 8012422: f002 fbbb bl 8014b9c <vPortExitCritical>
  43386. return xReturn;
  43387. 8012426: 68fb ldr r3, [r7, #12]
  43388. }
  43389. 8012428: 4618 mov r0, r3
  43390. 801242a: 3710 adds r7, #16
  43391. 801242c: 46bd mov sp, r7
  43392. 801242e: bd80 pop {r7, pc}
  43393. 08012430 <prvIsQueueFull>:
  43394. return xReturn;
  43395. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  43396. /*-----------------------------------------------------------*/
  43397. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  43398. {
  43399. 8012430: b580 push {r7, lr}
  43400. 8012432: b084 sub sp, #16
  43401. 8012434: af00 add r7, sp, #0
  43402. 8012436: 6078 str r0, [r7, #4]
  43403. BaseType_t xReturn;
  43404. taskENTER_CRITICAL();
  43405. 8012438: f002 fb7e bl 8014b38 <vPortEnterCritical>
  43406. {
  43407. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  43408. 801243c: 687b ldr r3, [r7, #4]
  43409. 801243e: 6b9a ldr r2, [r3, #56] @ 0x38
  43410. 8012440: 687b ldr r3, [r7, #4]
  43411. 8012442: 6bdb ldr r3, [r3, #60] @ 0x3c
  43412. 8012444: 429a cmp r2, r3
  43413. 8012446: d102 bne.n 801244e <prvIsQueueFull+0x1e>
  43414. {
  43415. xReturn = pdTRUE;
  43416. 8012448: 2301 movs r3, #1
  43417. 801244a: 60fb str r3, [r7, #12]
  43418. 801244c: e001 b.n 8012452 <prvIsQueueFull+0x22>
  43419. }
  43420. else
  43421. {
  43422. xReturn = pdFALSE;
  43423. 801244e: 2300 movs r3, #0
  43424. 8012450: 60fb str r3, [r7, #12]
  43425. }
  43426. }
  43427. taskEXIT_CRITICAL();
  43428. 8012452: f002 fba3 bl 8014b9c <vPortExitCritical>
  43429. return xReturn;
  43430. 8012456: 68fb ldr r3, [r7, #12]
  43431. }
  43432. 8012458: 4618 mov r0, r3
  43433. 801245a: 3710 adds r7, #16
  43434. 801245c: 46bd mov sp, r7
  43435. 801245e: bd80 pop {r7, pc}
  43436. 08012460 <vQueueAddToRegistry>:
  43437. /*-----------------------------------------------------------*/
  43438. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  43439. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  43440. {
  43441. 8012460: b480 push {r7}
  43442. 8012462: b085 sub sp, #20
  43443. 8012464: af00 add r7, sp, #0
  43444. 8012466: 6078 str r0, [r7, #4]
  43445. 8012468: 6039 str r1, [r7, #0]
  43446. UBaseType_t ux;
  43447. /* See if there is an empty space in the registry. A NULL name denotes
  43448. a free slot. */
  43449. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  43450. 801246a: 2300 movs r3, #0
  43451. 801246c: 60fb str r3, [r7, #12]
  43452. 801246e: e014 b.n 801249a <vQueueAddToRegistry+0x3a>
  43453. {
  43454. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  43455. 8012470: 4a0f ldr r2, [pc, #60] @ (80124b0 <vQueueAddToRegistry+0x50>)
  43456. 8012472: 68fb ldr r3, [r7, #12]
  43457. 8012474: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  43458. 8012478: 2b00 cmp r3, #0
  43459. 801247a: d10b bne.n 8012494 <vQueueAddToRegistry+0x34>
  43460. {
  43461. /* Store the information on this queue. */
  43462. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  43463. 801247c: 490c ldr r1, [pc, #48] @ (80124b0 <vQueueAddToRegistry+0x50>)
  43464. 801247e: 68fb ldr r3, [r7, #12]
  43465. 8012480: 683a ldr r2, [r7, #0]
  43466. 8012482: f841 2033 str.w r2, [r1, r3, lsl #3]
  43467. xQueueRegistry[ ux ].xHandle = xQueue;
  43468. 8012486: 4a0a ldr r2, [pc, #40] @ (80124b0 <vQueueAddToRegistry+0x50>)
  43469. 8012488: 68fb ldr r3, [r7, #12]
  43470. 801248a: 00db lsls r3, r3, #3
  43471. 801248c: 4413 add r3, r2
  43472. 801248e: 687a ldr r2, [r7, #4]
  43473. 8012490: 605a str r2, [r3, #4]
  43474. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  43475. break;
  43476. 8012492: e006 b.n 80124a2 <vQueueAddToRegistry+0x42>
  43477. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  43478. 8012494: 68fb ldr r3, [r7, #12]
  43479. 8012496: 3301 adds r3, #1
  43480. 8012498: 60fb str r3, [r7, #12]
  43481. 801249a: 68fb ldr r3, [r7, #12]
  43482. 801249c: 2b07 cmp r3, #7
  43483. 801249e: d9e7 bls.n 8012470 <vQueueAddToRegistry+0x10>
  43484. else
  43485. {
  43486. mtCOVERAGE_TEST_MARKER();
  43487. }
  43488. }
  43489. }
  43490. 80124a0: bf00 nop
  43491. 80124a2: bf00 nop
  43492. 80124a4: 3714 adds r7, #20
  43493. 80124a6: 46bd mov sp, r7
  43494. 80124a8: f85d 7b04 ldr.w r7, [sp], #4
  43495. 80124ac: 4770 bx lr
  43496. 80124ae: bf00 nop
  43497. 80124b0: 24003c50 .word 0x24003c50
  43498. 080124b4 <vQueueUnregisterQueue>:
  43499. /*-----------------------------------------------------------*/
  43500. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  43501. void vQueueUnregisterQueue( QueueHandle_t xQueue )
  43502. {
  43503. 80124b4: b480 push {r7}
  43504. 80124b6: b085 sub sp, #20
  43505. 80124b8: af00 add r7, sp, #0
  43506. 80124ba: 6078 str r0, [r7, #4]
  43507. UBaseType_t ux;
  43508. /* See if the handle of the queue being unregistered in actually in the
  43509. registry. */
  43510. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  43511. 80124bc: 2300 movs r3, #0
  43512. 80124be: 60fb str r3, [r7, #12]
  43513. 80124c0: e016 b.n 80124f0 <vQueueUnregisterQueue+0x3c>
  43514. {
  43515. if( xQueueRegistry[ ux ].xHandle == xQueue )
  43516. 80124c2: 4a10 ldr r2, [pc, #64] @ (8012504 <vQueueUnregisterQueue+0x50>)
  43517. 80124c4: 68fb ldr r3, [r7, #12]
  43518. 80124c6: 00db lsls r3, r3, #3
  43519. 80124c8: 4413 add r3, r2
  43520. 80124ca: 685b ldr r3, [r3, #4]
  43521. 80124cc: 687a ldr r2, [r7, #4]
  43522. 80124ce: 429a cmp r2, r3
  43523. 80124d0: d10b bne.n 80124ea <vQueueUnregisterQueue+0x36>
  43524. {
  43525. /* Set the name to NULL to show that this slot if free again. */
  43526. xQueueRegistry[ ux ].pcQueueName = NULL;
  43527. 80124d2: 4a0c ldr r2, [pc, #48] @ (8012504 <vQueueUnregisterQueue+0x50>)
  43528. 80124d4: 68fb ldr r3, [r7, #12]
  43529. 80124d6: 2100 movs r1, #0
  43530. 80124d8: f842 1033 str.w r1, [r2, r3, lsl #3]
  43531. /* Set the handle to NULL to ensure the same queue handle cannot
  43532. appear in the registry twice if it is added, removed, then
  43533. added again. */
  43534. xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0;
  43535. 80124dc: 4a09 ldr r2, [pc, #36] @ (8012504 <vQueueUnregisterQueue+0x50>)
  43536. 80124de: 68fb ldr r3, [r7, #12]
  43537. 80124e0: 00db lsls r3, r3, #3
  43538. 80124e2: 4413 add r3, r2
  43539. 80124e4: 2200 movs r2, #0
  43540. 80124e6: 605a str r2, [r3, #4]
  43541. break;
  43542. 80124e8: e006 b.n 80124f8 <vQueueUnregisterQueue+0x44>
  43543. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  43544. 80124ea: 68fb ldr r3, [r7, #12]
  43545. 80124ec: 3301 adds r3, #1
  43546. 80124ee: 60fb str r3, [r7, #12]
  43547. 80124f0: 68fb ldr r3, [r7, #12]
  43548. 80124f2: 2b07 cmp r3, #7
  43549. 80124f4: d9e5 bls.n 80124c2 <vQueueUnregisterQueue+0xe>
  43550. {
  43551. mtCOVERAGE_TEST_MARKER();
  43552. }
  43553. }
  43554. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  43555. 80124f6: bf00 nop
  43556. 80124f8: bf00 nop
  43557. 80124fa: 3714 adds r7, #20
  43558. 80124fc: 46bd mov sp, r7
  43559. 80124fe: f85d 7b04 ldr.w r7, [sp], #4
  43560. 8012502: 4770 bx lr
  43561. 8012504: 24003c50 .word 0x24003c50
  43562. 08012508 <vQueueWaitForMessageRestricted>:
  43563. /*-----------------------------------------------------------*/
  43564. #if ( configUSE_TIMERS == 1 )
  43565. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  43566. {
  43567. 8012508: b580 push {r7, lr}
  43568. 801250a: b086 sub sp, #24
  43569. 801250c: af00 add r7, sp, #0
  43570. 801250e: 60f8 str r0, [r7, #12]
  43571. 8012510: 60b9 str r1, [r7, #8]
  43572. 8012512: 607a str r2, [r7, #4]
  43573. Queue_t * const pxQueue = xQueue;
  43574. 8012514: 68fb ldr r3, [r7, #12]
  43575. 8012516: 617b str r3, [r7, #20]
  43576. will not actually cause the task to block, just place it on a blocked
  43577. list. It will not block until the scheduler is unlocked - at which
  43578. time a yield will be performed. If an item is added to the queue while
  43579. the queue is locked, and the calling task blocks on the queue, then the
  43580. calling task will be immediately unblocked when the queue is unlocked. */
  43581. prvLockQueue( pxQueue );
  43582. 8012518: f002 fb0e bl 8014b38 <vPortEnterCritical>
  43583. 801251c: 697b ldr r3, [r7, #20]
  43584. 801251e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43585. 8012522: b25b sxtb r3, r3
  43586. 8012524: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43587. 8012528: d103 bne.n 8012532 <vQueueWaitForMessageRestricted+0x2a>
  43588. 801252a: 697b ldr r3, [r7, #20]
  43589. 801252c: 2200 movs r2, #0
  43590. 801252e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43591. 8012532: 697b ldr r3, [r7, #20]
  43592. 8012534: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43593. 8012538: b25b sxtb r3, r3
  43594. 801253a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43595. 801253e: d103 bne.n 8012548 <vQueueWaitForMessageRestricted+0x40>
  43596. 8012540: 697b ldr r3, [r7, #20]
  43597. 8012542: 2200 movs r2, #0
  43598. 8012544: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43599. 8012548: f002 fb28 bl 8014b9c <vPortExitCritical>
  43600. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  43601. 801254c: 697b ldr r3, [r7, #20]
  43602. 801254e: 6b9b ldr r3, [r3, #56] @ 0x38
  43603. 8012550: 2b00 cmp r3, #0
  43604. 8012552: d106 bne.n 8012562 <vQueueWaitForMessageRestricted+0x5a>
  43605. {
  43606. /* There is nothing in the queue, block for the specified period. */
  43607. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  43608. 8012554: 697b ldr r3, [r7, #20]
  43609. 8012556: 3324 adds r3, #36 @ 0x24
  43610. 8012558: 687a ldr r2, [r7, #4]
  43611. 801255a: 68b9 ldr r1, [r7, #8]
  43612. 801255c: 4618 mov r0, r3
  43613. 801255e: f001 f825 bl 80135ac <vTaskPlaceOnEventListRestricted>
  43614. }
  43615. else
  43616. {
  43617. mtCOVERAGE_TEST_MARKER();
  43618. }
  43619. prvUnlockQueue( pxQueue );
  43620. 8012562: 6978 ldr r0, [r7, #20]
  43621. 8012564: f7ff fefc bl 8012360 <prvUnlockQueue>
  43622. }
  43623. 8012568: bf00 nop
  43624. 801256a: 3718 adds r7, #24
  43625. 801256c: 46bd mov sp, r7
  43626. 801256e: bd80 pop {r7, pc}
  43627. 08012570 <xStreamBufferGenericCreate>:
  43628. /*-----------------------------------------------------------*/
  43629. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  43630. StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer )
  43631. {
  43632. 8012570: b580 push {r7, lr}
  43633. 8012572: b08c sub sp, #48 @ 0x30
  43634. 8012574: af02 add r7, sp, #8
  43635. 8012576: 60f8 str r0, [r7, #12]
  43636. 8012578: 60b9 str r1, [r7, #8]
  43637. 801257a: 607a str r2, [r7, #4]
  43638. /* In case the stream buffer is going to be used as a message buffer
  43639. (that is, it will hold discrete messages with a little meta data that
  43640. says how big the next message is) check the buffer will be large enough
  43641. to hold at least one message. */
  43642. if( xIsMessageBuffer == pdTRUE )
  43643. 801257c: 687b ldr r3, [r7, #4]
  43644. 801257e: 2b01 cmp r3, #1
  43645. 8012580: d111 bne.n 80125a6 <xStreamBufferGenericCreate+0x36>
  43646. {
  43647. /* Is a message buffer but not statically allocated. */
  43648. ucFlags = sbFLAGS_IS_MESSAGE_BUFFER;
  43649. 8012582: 2301 movs r3, #1
  43650. 8012584: f887 3027 strb.w r3, [r7, #39] @ 0x27
  43651. configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );
  43652. 8012588: 68fb ldr r3, [r7, #12]
  43653. 801258a: 2b04 cmp r3, #4
  43654. 801258c: d81d bhi.n 80125ca <xStreamBufferGenericCreate+0x5a>
  43655. __asm volatile
  43656. 801258e: f04f 0350 mov.w r3, #80 @ 0x50
  43657. 8012592: f383 8811 msr BASEPRI, r3
  43658. 8012596: f3bf 8f6f isb sy
  43659. 801259a: f3bf 8f4f dsb sy
  43660. 801259e: 61fb str r3, [r7, #28]
  43661. }
  43662. 80125a0: bf00 nop
  43663. 80125a2: bf00 nop
  43664. 80125a4: e7fd b.n 80125a2 <xStreamBufferGenericCreate+0x32>
  43665. }
  43666. else
  43667. {
  43668. /* Not a message buffer and not statically allocated. */
  43669. ucFlags = 0;
  43670. 80125a6: 2300 movs r3, #0
  43671. 80125a8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  43672. configASSERT( xBufferSizeBytes > 0 );
  43673. 80125ac: 68fb ldr r3, [r7, #12]
  43674. 80125ae: 2b00 cmp r3, #0
  43675. 80125b0: d10b bne.n 80125ca <xStreamBufferGenericCreate+0x5a>
  43676. __asm volatile
  43677. 80125b2: f04f 0350 mov.w r3, #80 @ 0x50
  43678. 80125b6: f383 8811 msr BASEPRI, r3
  43679. 80125ba: f3bf 8f6f isb sy
  43680. 80125be: f3bf 8f4f dsb sy
  43681. 80125c2: 61bb str r3, [r7, #24]
  43682. }
  43683. 80125c4: bf00 nop
  43684. 80125c6: bf00 nop
  43685. 80125c8: e7fd b.n 80125c6 <xStreamBufferGenericCreate+0x56>
  43686. }
  43687. configASSERT( xTriggerLevelBytes <= xBufferSizeBytes );
  43688. 80125ca: 68ba ldr r2, [r7, #8]
  43689. 80125cc: 68fb ldr r3, [r7, #12]
  43690. 80125ce: 429a cmp r2, r3
  43691. 80125d0: d90b bls.n 80125ea <xStreamBufferGenericCreate+0x7a>
  43692. __asm volatile
  43693. 80125d2: f04f 0350 mov.w r3, #80 @ 0x50
  43694. 80125d6: f383 8811 msr BASEPRI, r3
  43695. 80125da: f3bf 8f6f isb sy
  43696. 80125de: f3bf 8f4f dsb sy
  43697. 80125e2: 617b str r3, [r7, #20]
  43698. }
  43699. 80125e4: bf00 nop
  43700. 80125e6: bf00 nop
  43701. 80125e8: e7fd b.n 80125e6 <xStreamBufferGenericCreate+0x76>
  43702. /* A trigger level of 0 would cause a waiting task to unblock even when
  43703. the buffer was empty. */
  43704. if( xTriggerLevelBytes == ( size_t ) 0 )
  43705. 80125ea: 68bb ldr r3, [r7, #8]
  43706. 80125ec: 2b00 cmp r3, #0
  43707. 80125ee: d101 bne.n 80125f4 <xStreamBufferGenericCreate+0x84>
  43708. {
  43709. xTriggerLevelBytes = ( size_t ) 1;
  43710. 80125f0: 2301 movs r3, #1
  43711. 80125f2: 60bb str r3, [r7, #8]
  43712. and the buffer follows immediately after. The requested size is
  43713. incremented so the free space is returned as the user would expect -
  43714. this is a quirk of the implementation that means otherwise the free
  43715. space would be reported as one byte smaller than would be logically
  43716. expected. */
  43717. xBufferSizeBytes++;
  43718. 80125f4: 68fb ldr r3, [r7, #12]
  43719. 80125f6: 3301 adds r3, #1
  43720. 80125f8: 60fb str r3, [r7, #12]
  43721. pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */
  43722. 80125fa: 68fb ldr r3, [r7, #12]
  43723. 80125fc: 3324 adds r3, #36 @ 0x24
  43724. 80125fe: 4618 mov r0, r3
  43725. 8012600: f002 fbbc bl 8014d7c <pvPortMalloc>
  43726. 8012604: 6238 str r0, [r7, #32]
  43727. if( pucAllocatedMemory != NULL )
  43728. 8012606: 6a3b ldr r3, [r7, #32]
  43729. 8012608: 2b00 cmp r3, #0
  43730. 801260a: d00a beq.n 8012622 <xStreamBufferGenericCreate+0xb2>
  43731. {
  43732. 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. */
  43733. 801260c: 6a3b ldr r3, [r7, #32]
  43734. 801260e: f103 0124 add.w r1, r3, #36 @ 0x24
  43735. 8012612: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  43736. 8012616: 9300 str r3, [sp, #0]
  43737. 8012618: 68bb ldr r3, [r7, #8]
  43738. 801261a: 68fa ldr r2, [r7, #12]
  43739. 801261c: 6a38 ldr r0, [r7, #32]
  43740. 801261e: f000 fb0b bl 8012c38 <prvInitialiseNewStreamBuffer>
  43741. else
  43742. {
  43743. traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer );
  43744. }
  43745. return ( StreamBufferHandle_t ) pucAllocatedMemory; /*lint !e9087 !e826 Safe cast as allocated memory is aligned. */
  43746. 8012622: 6a3b ldr r3, [r7, #32]
  43747. }
  43748. 8012624: 4618 mov r0, r3
  43749. 8012626: 3728 adds r7, #40 @ 0x28
  43750. 8012628: 46bd mov sp, r7
  43751. 801262a: bd80 pop {r7, pc}
  43752. 0801262c <xStreamBufferSpacesAvailable>:
  43753. return xReturn;
  43754. }
  43755. /*-----------------------------------------------------------*/
  43756. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  43757. {
  43758. 801262c: b480 push {r7}
  43759. 801262e: b087 sub sp, #28
  43760. 8012630: af00 add r7, sp, #0
  43761. 8012632: 6078 str r0, [r7, #4]
  43762. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  43763. 8012634: 687b ldr r3, [r7, #4]
  43764. 8012636: 613b str r3, [r7, #16]
  43765. size_t xSpace;
  43766. configASSERT( pxStreamBuffer );
  43767. 8012638: 693b ldr r3, [r7, #16]
  43768. 801263a: 2b00 cmp r3, #0
  43769. 801263c: d10b bne.n 8012656 <xStreamBufferSpacesAvailable+0x2a>
  43770. __asm volatile
  43771. 801263e: f04f 0350 mov.w r3, #80 @ 0x50
  43772. 8012642: f383 8811 msr BASEPRI, r3
  43773. 8012646: f3bf 8f6f isb sy
  43774. 801264a: f3bf 8f4f dsb sy
  43775. 801264e: 60fb str r3, [r7, #12]
  43776. }
  43777. 8012650: bf00 nop
  43778. 8012652: bf00 nop
  43779. 8012654: e7fd b.n 8012652 <xStreamBufferSpacesAvailable+0x26>
  43780. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  43781. 8012656: 693b ldr r3, [r7, #16]
  43782. 8012658: 689a ldr r2, [r3, #8]
  43783. 801265a: 693b ldr r3, [r7, #16]
  43784. 801265c: 681b ldr r3, [r3, #0]
  43785. 801265e: 4413 add r3, r2
  43786. 8012660: 617b str r3, [r7, #20]
  43787. xSpace -= pxStreamBuffer->xHead;
  43788. 8012662: 693b ldr r3, [r7, #16]
  43789. 8012664: 685b ldr r3, [r3, #4]
  43790. 8012666: 697a ldr r2, [r7, #20]
  43791. 8012668: 1ad3 subs r3, r2, r3
  43792. 801266a: 617b str r3, [r7, #20]
  43793. xSpace -= ( size_t ) 1;
  43794. 801266c: 697b ldr r3, [r7, #20]
  43795. 801266e: 3b01 subs r3, #1
  43796. 8012670: 617b str r3, [r7, #20]
  43797. if( xSpace >= pxStreamBuffer->xLength )
  43798. 8012672: 693b ldr r3, [r7, #16]
  43799. 8012674: 689b ldr r3, [r3, #8]
  43800. 8012676: 697a ldr r2, [r7, #20]
  43801. 8012678: 429a cmp r2, r3
  43802. 801267a: d304 bcc.n 8012686 <xStreamBufferSpacesAvailable+0x5a>
  43803. {
  43804. xSpace -= pxStreamBuffer->xLength;
  43805. 801267c: 693b ldr r3, [r7, #16]
  43806. 801267e: 689b ldr r3, [r3, #8]
  43807. 8012680: 697a ldr r2, [r7, #20]
  43808. 8012682: 1ad3 subs r3, r2, r3
  43809. 8012684: 617b str r3, [r7, #20]
  43810. else
  43811. {
  43812. mtCOVERAGE_TEST_MARKER();
  43813. }
  43814. return xSpace;
  43815. 8012686: 697b ldr r3, [r7, #20]
  43816. }
  43817. 8012688: 4618 mov r0, r3
  43818. 801268a: 371c adds r7, #28
  43819. 801268c: 46bd mov sp, r7
  43820. 801268e: f85d 7b04 ldr.w r7, [sp], #4
  43821. 8012692: 4770 bx lr
  43822. 08012694 <xStreamBufferSend>:
  43823. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  43824. const void *pvTxData,
  43825. size_t xDataLengthBytes,
  43826. TickType_t xTicksToWait )
  43827. {
  43828. 8012694: b580 push {r7, lr}
  43829. 8012696: b090 sub sp, #64 @ 0x40
  43830. 8012698: af02 add r7, sp, #8
  43831. 801269a: 60f8 str r0, [r7, #12]
  43832. 801269c: 60b9 str r1, [r7, #8]
  43833. 801269e: 607a str r2, [r7, #4]
  43834. 80126a0: 603b str r3, [r7, #0]
  43835. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  43836. 80126a2: 68fb ldr r3, [r7, #12]
  43837. 80126a4: 62fb str r3, [r7, #44] @ 0x2c
  43838. size_t xReturn, xSpace = 0;
  43839. 80126a6: 2300 movs r3, #0
  43840. 80126a8: 637b str r3, [r7, #52] @ 0x34
  43841. size_t xRequiredSpace = xDataLengthBytes;
  43842. 80126aa: 687b ldr r3, [r7, #4]
  43843. 80126ac: 633b str r3, [r7, #48] @ 0x30
  43844. TimeOut_t xTimeOut;
  43845. configASSERT( pvTxData );
  43846. 80126ae: 68bb ldr r3, [r7, #8]
  43847. 80126b0: 2b00 cmp r3, #0
  43848. 80126b2: d10b bne.n 80126cc <xStreamBufferSend+0x38>
  43849. __asm volatile
  43850. 80126b4: f04f 0350 mov.w r3, #80 @ 0x50
  43851. 80126b8: f383 8811 msr BASEPRI, r3
  43852. 80126bc: f3bf 8f6f isb sy
  43853. 80126c0: f3bf 8f4f dsb sy
  43854. 80126c4: 627b str r3, [r7, #36] @ 0x24
  43855. }
  43856. 80126c6: bf00 nop
  43857. 80126c8: bf00 nop
  43858. 80126ca: e7fd b.n 80126c8 <xStreamBufferSend+0x34>
  43859. configASSERT( pxStreamBuffer );
  43860. 80126cc: 6afb ldr r3, [r7, #44] @ 0x2c
  43861. 80126ce: 2b00 cmp r3, #0
  43862. 80126d0: d10b bne.n 80126ea <xStreamBufferSend+0x56>
  43863. __asm volatile
  43864. 80126d2: f04f 0350 mov.w r3, #80 @ 0x50
  43865. 80126d6: f383 8811 msr BASEPRI, r3
  43866. 80126da: f3bf 8f6f isb sy
  43867. 80126de: f3bf 8f4f dsb sy
  43868. 80126e2: 623b str r3, [r7, #32]
  43869. }
  43870. 80126e4: bf00 nop
  43871. 80126e6: bf00 nop
  43872. 80126e8: e7fd b.n 80126e6 <xStreamBufferSend+0x52>
  43873. /* This send function is used to write to both message buffers and stream
  43874. buffers. If this is a message buffer then the space needed must be
  43875. increased by the amount of bytes needed to store the length of the
  43876. message. */
  43877. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  43878. 80126ea: 6afb ldr r3, [r7, #44] @ 0x2c
  43879. 80126ec: 7f1b ldrb r3, [r3, #28]
  43880. 80126ee: f003 0301 and.w r3, r3, #1
  43881. 80126f2: 2b00 cmp r3, #0
  43882. 80126f4: d012 beq.n 801271c <xStreamBufferSend+0x88>
  43883. {
  43884. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  43885. 80126f6: 6b3b ldr r3, [r7, #48] @ 0x30
  43886. 80126f8: 3304 adds r3, #4
  43887. 80126fa: 633b str r3, [r7, #48] @ 0x30
  43888. /* Overflow? */
  43889. configASSERT( xRequiredSpace > xDataLengthBytes );
  43890. 80126fc: 6b3a ldr r2, [r7, #48] @ 0x30
  43891. 80126fe: 687b ldr r3, [r7, #4]
  43892. 8012700: 429a cmp r2, r3
  43893. 8012702: d80b bhi.n 801271c <xStreamBufferSend+0x88>
  43894. __asm volatile
  43895. 8012704: f04f 0350 mov.w r3, #80 @ 0x50
  43896. 8012708: f383 8811 msr BASEPRI, r3
  43897. 801270c: f3bf 8f6f isb sy
  43898. 8012710: f3bf 8f4f dsb sy
  43899. 8012714: 61fb str r3, [r7, #28]
  43900. }
  43901. 8012716: bf00 nop
  43902. 8012718: bf00 nop
  43903. 801271a: e7fd b.n 8012718 <xStreamBufferSend+0x84>
  43904. else
  43905. {
  43906. mtCOVERAGE_TEST_MARKER();
  43907. }
  43908. if( xTicksToWait != ( TickType_t ) 0 )
  43909. 801271c: 683b ldr r3, [r7, #0]
  43910. 801271e: 2b00 cmp r3, #0
  43911. 8012720: d03f beq.n 80127a2 <xStreamBufferSend+0x10e>
  43912. {
  43913. vTaskSetTimeOutState( &xTimeOut );
  43914. 8012722: f107 0310 add.w r3, r7, #16
  43915. 8012726: 4618 mov r0, r3
  43916. 8012728: f000 ffd0 bl 80136cc <vTaskSetTimeOutState>
  43917. do
  43918. {
  43919. /* Wait until the required number of bytes are free in the message
  43920. buffer. */
  43921. taskENTER_CRITICAL();
  43922. 801272c: f002 fa04 bl 8014b38 <vPortEnterCritical>
  43923. {
  43924. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  43925. 8012730: 6af8 ldr r0, [r7, #44] @ 0x2c
  43926. 8012732: f7ff ff7b bl 801262c <xStreamBufferSpacesAvailable>
  43927. 8012736: 6378 str r0, [r7, #52] @ 0x34
  43928. if( xSpace < xRequiredSpace )
  43929. 8012738: 6b7a ldr r2, [r7, #52] @ 0x34
  43930. 801273a: 6b3b ldr r3, [r7, #48] @ 0x30
  43931. 801273c: 429a cmp r2, r3
  43932. 801273e: d218 bcs.n 8012772 <xStreamBufferSend+0xde>
  43933. {
  43934. /* Clear notification state as going to wait for space. */
  43935. ( void ) xTaskNotifyStateClear( NULL );
  43936. 8012740: 2000 movs r0, #0
  43937. 8012742: f001 fcf3 bl 801412c <xTaskNotifyStateClear>
  43938. /* Should only be one writer. */
  43939. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  43940. 8012746: 6afb ldr r3, [r7, #44] @ 0x2c
  43941. 8012748: 695b ldr r3, [r3, #20]
  43942. 801274a: 2b00 cmp r3, #0
  43943. 801274c: d00b beq.n 8012766 <xStreamBufferSend+0xd2>
  43944. __asm volatile
  43945. 801274e: f04f 0350 mov.w r3, #80 @ 0x50
  43946. 8012752: f383 8811 msr BASEPRI, r3
  43947. 8012756: f3bf 8f6f isb sy
  43948. 801275a: f3bf 8f4f dsb sy
  43949. 801275e: 61bb str r3, [r7, #24]
  43950. }
  43951. 8012760: bf00 nop
  43952. 8012762: bf00 nop
  43953. 8012764: e7fd b.n 8012762 <xStreamBufferSend+0xce>
  43954. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  43955. 8012766: f001 f93b bl 80139e0 <xTaskGetCurrentTaskHandle>
  43956. 801276a: 4602 mov r2, r0
  43957. 801276c: 6afb ldr r3, [r7, #44] @ 0x2c
  43958. 801276e: 615a str r2, [r3, #20]
  43959. 8012770: e002 b.n 8012778 <xStreamBufferSend+0xe4>
  43960. }
  43961. else
  43962. {
  43963. taskEXIT_CRITICAL();
  43964. 8012772: f002 fa13 bl 8014b9c <vPortExitCritical>
  43965. break;
  43966. 8012776: e014 b.n 80127a2 <xStreamBufferSend+0x10e>
  43967. }
  43968. }
  43969. taskEXIT_CRITICAL();
  43970. 8012778: f002 fa10 bl 8014b9c <vPortExitCritical>
  43971. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  43972. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  43973. 801277c: 683b ldr r3, [r7, #0]
  43974. 801277e: 2200 movs r2, #0
  43975. 8012780: 2100 movs r1, #0
  43976. 8012782: 2000 movs r0, #0
  43977. 8012784: f001 faca bl 8013d1c <xTaskNotifyWait>
  43978. pxStreamBuffer->xTaskWaitingToSend = NULL;
  43979. 8012788: 6afb ldr r3, [r7, #44] @ 0x2c
  43980. 801278a: 2200 movs r2, #0
  43981. 801278c: 615a str r2, [r3, #20]
  43982. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  43983. 801278e: 463a mov r2, r7
  43984. 8012790: f107 0310 add.w r3, r7, #16
  43985. 8012794: 4611 mov r1, r2
  43986. 8012796: 4618 mov r0, r3
  43987. 8012798: f000 ffd6 bl 8013748 <xTaskCheckForTimeOut>
  43988. 801279c: 4603 mov r3, r0
  43989. 801279e: 2b00 cmp r3, #0
  43990. 80127a0: d0c4 beq.n 801272c <xStreamBufferSend+0x98>
  43991. else
  43992. {
  43993. mtCOVERAGE_TEST_MARKER();
  43994. }
  43995. if( xSpace == ( size_t ) 0 )
  43996. 80127a2: 6b7b ldr r3, [r7, #52] @ 0x34
  43997. 80127a4: 2b00 cmp r3, #0
  43998. 80127a6: d103 bne.n 80127b0 <xStreamBufferSend+0x11c>
  43999. {
  44000. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  44001. 80127a8: 6af8 ldr r0, [r7, #44] @ 0x2c
  44002. 80127aa: f7ff ff3f bl 801262c <xStreamBufferSpacesAvailable>
  44003. 80127ae: 6378 str r0, [r7, #52] @ 0x34
  44004. else
  44005. {
  44006. mtCOVERAGE_TEST_MARKER();
  44007. }
  44008. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  44009. 80127b0: 6b3b ldr r3, [r7, #48] @ 0x30
  44010. 80127b2: 9300 str r3, [sp, #0]
  44011. 80127b4: 6b7b ldr r3, [r7, #52] @ 0x34
  44012. 80127b6: 687a ldr r2, [r7, #4]
  44013. 80127b8: 68b9 ldr r1, [r7, #8]
  44014. 80127ba: 6af8 ldr r0, [r7, #44] @ 0x2c
  44015. 80127bc: f000 f823 bl 8012806 <prvWriteMessageToBuffer>
  44016. 80127c0: 62b8 str r0, [r7, #40] @ 0x28
  44017. if( xReturn > ( size_t ) 0 )
  44018. 80127c2: 6abb ldr r3, [r7, #40] @ 0x28
  44019. 80127c4: 2b00 cmp r3, #0
  44020. 80127c6: d019 beq.n 80127fc <xStreamBufferSend+0x168>
  44021. {
  44022. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  44023. /* Was a task waiting for the data? */
  44024. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  44025. 80127c8: 6af8 ldr r0, [r7, #44] @ 0x2c
  44026. 80127ca: f000 fa15 bl 8012bf8 <prvBytesInBuffer>
  44027. 80127ce: 4602 mov r2, r0
  44028. 80127d0: 6afb ldr r3, [r7, #44] @ 0x2c
  44029. 80127d2: 68db ldr r3, [r3, #12]
  44030. 80127d4: 429a cmp r2, r3
  44031. 80127d6: d311 bcc.n 80127fc <xStreamBufferSend+0x168>
  44032. {
  44033. sbSEND_COMPLETED( pxStreamBuffer );
  44034. 80127d8: f000 fcc6 bl 8013168 <vTaskSuspendAll>
  44035. 80127dc: 6afb ldr r3, [r7, #44] @ 0x2c
  44036. 80127de: 691b ldr r3, [r3, #16]
  44037. 80127e0: 2b00 cmp r3, #0
  44038. 80127e2: d009 beq.n 80127f8 <xStreamBufferSend+0x164>
  44039. 80127e4: 6afb ldr r3, [r7, #44] @ 0x2c
  44040. 80127e6: 6918 ldr r0, [r3, #16]
  44041. 80127e8: 2300 movs r3, #0
  44042. 80127ea: 2200 movs r2, #0
  44043. 80127ec: 2100 movs r1, #0
  44044. 80127ee: f001 faf5 bl 8013ddc <xTaskGenericNotify>
  44045. 80127f2: 6afb ldr r3, [r7, #44] @ 0x2c
  44046. 80127f4: 2200 movs r2, #0
  44047. 80127f6: 611a str r2, [r3, #16]
  44048. 80127f8: f000 fcc4 bl 8013184 <xTaskResumeAll>
  44049. {
  44050. mtCOVERAGE_TEST_MARKER();
  44051. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  44052. }
  44053. return xReturn;
  44054. 80127fc: 6abb ldr r3, [r7, #40] @ 0x28
  44055. }
  44056. 80127fe: 4618 mov r0, r3
  44057. 8012800: 3738 adds r7, #56 @ 0x38
  44058. 8012802: 46bd mov sp, r7
  44059. 8012804: bd80 pop {r7, pc}
  44060. 08012806 <prvWriteMessageToBuffer>:
  44061. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  44062. const void * pvTxData,
  44063. size_t xDataLengthBytes,
  44064. size_t xSpace,
  44065. size_t xRequiredSpace )
  44066. {
  44067. 8012806: b580 push {r7, lr}
  44068. 8012808: b086 sub sp, #24
  44069. 801280a: af00 add r7, sp, #0
  44070. 801280c: 60f8 str r0, [r7, #12]
  44071. 801280e: 60b9 str r1, [r7, #8]
  44072. 8012810: 607a str r2, [r7, #4]
  44073. 8012812: 603b str r3, [r7, #0]
  44074. BaseType_t xShouldWrite;
  44075. size_t xReturn;
  44076. if( xSpace == ( size_t ) 0 )
  44077. 8012814: 683b ldr r3, [r7, #0]
  44078. 8012816: 2b00 cmp r3, #0
  44079. 8012818: d102 bne.n 8012820 <prvWriteMessageToBuffer+0x1a>
  44080. {
  44081. /* Doesn't matter if this is a stream buffer or a message buffer, there
  44082. is no space to write. */
  44083. xShouldWrite = pdFALSE;
  44084. 801281a: 2300 movs r3, #0
  44085. 801281c: 617b str r3, [r7, #20]
  44086. 801281e: e01d b.n 801285c <prvWriteMessageToBuffer+0x56>
  44087. }
  44088. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  44089. 8012820: 68fb ldr r3, [r7, #12]
  44090. 8012822: 7f1b ldrb r3, [r3, #28]
  44091. 8012824: f003 0301 and.w r3, r3, #1
  44092. 8012828: 2b00 cmp r3, #0
  44093. 801282a: d108 bne.n 801283e <prvWriteMessageToBuffer+0x38>
  44094. {
  44095. /* This is a stream buffer, as opposed to a message buffer, so writing a
  44096. stream of bytes rather than discrete messages. Write as many bytes as
  44097. possible. */
  44098. xShouldWrite = pdTRUE;
  44099. 801282c: 2301 movs r3, #1
  44100. 801282e: 617b str r3, [r7, #20]
  44101. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  44102. 8012830: 687a ldr r2, [r7, #4]
  44103. 8012832: 683b ldr r3, [r7, #0]
  44104. 8012834: 4293 cmp r3, r2
  44105. 8012836: bf28 it cs
  44106. 8012838: 4613 movcs r3, r2
  44107. 801283a: 607b str r3, [r7, #4]
  44108. 801283c: e00e b.n 801285c <prvWriteMessageToBuffer+0x56>
  44109. }
  44110. else if( xSpace >= xRequiredSpace )
  44111. 801283e: 683a ldr r2, [r7, #0]
  44112. 8012840: 6a3b ldr r3, [r7, #32]
  44113. 8012842: 429a cmp r2, r3
  44114. 8012844: d308 bcc.n 8012858 <prvWriteMessageToBuffer+0x52>
  44115. {
  44116. /* This is a message buffer, as opposed to a stream buffer, and there
  44117. is enough space to write both the message length and the message itself
  44118. into the buffer. Start by writing the length of the data, the data
  44119. itself will be written later in this function. */
  44120. xShouldWrite = pdTRUE;
  44121. 8012846: 2301 movs r3, #1
  44122. 8012848: 617b str r3, [r7, #20]
  44123. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  44124. 801284a: 1d3b adds r3, r7, #4
  44125. 801284c: 2204 movs r2, #4
  44126. 801284e: 4619 mov r1, r3
  44127. 8012850: 68f8 ldr r0, [r7, #12]
  44128. 8012852: f000 f8df bl 8012a14 <prvWriteBytesToBuffer>
  44129. 8012856: e001 b.n 801285c <prvWriteMessageToBuffer+0x56>
  44130. }
  44131. else
  44132. {
  44133. /* There is space available, but not enough space. */
  44134. xShouldWrite = pdFALSE;
  44135. 8012858: 2300 movs r3, #0
  44136. 801285a: 617b str r3, [r7, #20]
  44137. }
  44138. if( xShouldWrite != pdFALSE )
  44139. 801285c: 697b ldr r3, [r7, #20]
  44140. 801285e: 2b00 cmp r3, #0
  44141. 8012860: d007 beq.n 8012872 <prvWriteMessageToBuffer+0x6c>
  44142. {
  44143. /* Writes the data itself. */
  44144. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  44145. 8012862: 687b ldr r3, [r7, #4]
  44146. 8012864: 461a mov r2, r3
  44147. 8012866: 68b9 ldr r1, [r7, #8]
  44148. 8012868: 68f8 ldr r0, [r7, #12]
  44149. 801286a: f000 f8d3 bl 8012a14 <prvWriteBytesToBuffer>
  44150. 801286e: 6138 str r0, [r7, #16]
  44151. 8012870: e001 b.n 8012876 <prvWriteMessageToBuffer+0x70>
  44152. }
  44153. else
  44154. {
  44155. xReturn = 0;
  44156. 8012872: 2300 movs r3, #0
  44157. 8012874: 613b str r3, [r7, #16]
  44158. }
  44159. return xReturn;
  44160. 8012876: 693b ldr r3, [r7, #16]
  44161. }
  44162. 8012878: 4618 mov r0, r3
  44163. 801287a: 3718 adds r7, #24
  44164. 801287c: 46bd mov sp, r7
  44165. 801287e: bd80 pop {r7, pc}
  44166. 08012880 <xStreamBufferReceive>:
  44167. size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
  44168. void *pvRxData,
  44169. size_t xBufferLengthBytes,
  44170. TickType_t xTicksToWait )
  44171. {
  44172. 8012880: b580 push {r7, lr}
  44173. 8012882: b08e sub sp, #56 @ 0x38
  44174. 8012884: af02 add r7, sp, #8
  44175. 8012886: 60f8 str r0, [r7, #12]
  44176. 8012888: 60b9 str r1, [r7, #8]
  44177. 801288a: 607a str r2, [r7, #4]
  44178. 801288c: 603b str r3, [r7, #0]
  44179. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  44180. 801288e: 68fb ldr r3, [r7, #12]
  44181. 8012890: 623b str r3, [r7, #32]
  44182. size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength;
  44183. 8012892: 2300 movs r3, #0
  44184. 8012894: 62fb str r3, [r7, #44] @ 0x2c
  44185. configASSERT( pvRxData );
  44186. 8012896: 68bb ldr r3, [r7, #8]
  44187. 8012898: 2b00 cmp r3, #0
  44188. 801289a: d10b bne.n 80128b4 <xStreamBufferReceive+0x34>
  44189. __asm volatile
  44190. 801289c: f04f 0350 mov.w r3, #80 @ 0x50
  44191. 80128a0: f383 8811 msr BASEPRI, r3
  44192. 80128a4: f3bf 8f6f isb sy
  44193. 80128a8: f3bf 8f4f dsb sy
  44194. 80128ac: 61fb str r3, [r7, #28]
  44195. }
  44196. 80128ae: bf00 nop
  44197. 80128b0: bf00 nop
  44198. 80128b2: e7fd b.n 80128b0 <xStreamBufferReceive+0x30>
  44199. configASSERT( pxStreamBuffer );
  44200. 80128b4: 6a3b ldr r3, [r7, #32]
  44201. 80128b6: 2b00 cmp r3, #0
  44202. 80128b8: d10b bne.n 80128d2 <xStreamBufferReceive+0x52>
  44203. __asm volatile
  44204. 80128ba: f04f 0350 mov.w r3, #80 @ 0x50
  44205. 80128be: f383 8811 msr BASEPRI, r3
  44206. 80128c2: f3bf 8f6f isb sy
  44207. 80128c6: f3bf 8f4f dsb sy
  44208. 80128ca: 61bb str r3, [r7, #24]
  44209. }
  44210. 80128cc: bf00 nop
  44211. 80128ce: bf00 nop
  44212. 80128d0: e7fd b.n 80128ce <xStreamBufferReceive+0x4e>
  44213. /* This receive function is used by both message buffers, which store
  44214. discrete messages, and stream buffers, which store a continuous stream of
  44215. bytes. Discrete messages include an additional
  44216. sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the
  44217. message. */
  44218. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  44219. 80128d2: 6a3b ldr r3, [r7, #32]
  44220. 80128d4: 7f1b ldrb r3, [r3, #28]
  44221. 80128d6: f003 0301 and.w r3, r3, #1
  44222. 80128da: 2b00 cmp r3, #0
  44223. 80128dc: d002 beq.n 80128e4 <xStreamBufferReceive+0x64>
  44224. {
  44225. xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
  44226. 80128de: 2304 movs r3, #4
  44227. 80128e0: 627b str r3, [r7, #36] @ 0x24
  44228. 80128e2: e001 b.n 80128e8 <xStreamBufferReceive+0x68>
  44229. }
  44230. else
  44231. {
  44232. xBytesToStoreMessageLength = 0;
  44233. 80128e4: 2300 movs r3, #0
  44234. 80128e6: 627b str r3, [r7, #36] @ 0x24
  44235. }
  44236. if( xTicksToWait != ( TickType_t ) 0 )
  44237. 80128e8: 683b ldr r3, [r7, #0]
  44238. 80128ea: 2b00 cmp r3, #0
  44239. 80128ec: d035 beq.n 801295a <xStreamBufferReceive+0xda>
  44240. {
  44241. /* Checking if there is data and clearing the notification state must be
  44242. performed atomically. */
  44243. taskENTER_CRITICAL();
  44244. 80128ee: f002 f923 bl 8014b38 <vPortEnterCritical>
  44245. {
  44246. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  44247. 80128f2: 6a38 ldr r0, [r7, #32]
  44248. 80128f4: f000 f980 bl 8012bf8 <prvBytesInBuffer>
  44249. 80128f8: 62b8 str r0, [r7, #40] @ 0x28
  44250. /* If this function was invoked by a message buffer read then
  44251. xBytesToStoreMessageLength holds the number of bytes used to hold
  44252. the length of the next discrete message. If this function was
  44253. invoked by a stream buffer read then xBytesToStoreMessageLength will
  44254. be 0. */
  44255. if( xBytesAvailable <= xBytesToStoreMessageLength )
  44256. 80128fa: 6aba ldr r2, [r7, #40] @ 0x28
  44257. 80128fc: 6a7b ldr r3, [r7, #36] @ 0x24
  44258. 80128fe: 429a cmp r2, r3
  44259. 8012900: d817 bhi.n 8012932 <xStreamBufferReceive+0xb2>
  44260. {
  44261. /* Clear notification state as going to wait for data. */
  44262. ( void ) xTaskNotifyStateClear( NULL );
  44263. 8012902: 2000 movs r0, #0
  44264. 8012904: f001 fc12 bl 801412c <xTaskNotifyStateClear>
  44265. /* Should only be one reader. */
  44266. configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL );
  44267. 8012908: 6a3b ldr r3, [r7, #32]
  44268. 801290a: 691b ldr r3, [r3, #16]
  44269. 801290c: 2b00 cmp r3, #0
  44270. 801290e: d00b beq.n 8012928 <xStreamBufferReceive+0xa8>
  44271. __asm volatile
  44272. 8012910: f04f 0350 mov.w r3, #80 @ 0x50
  44273. 8012914: f383 8811 msr BASEPRI, r3
  44274. 8012918: f3bf 8f6f isb sy
  44275. 801291c: f3bf 8f4f dsb sy
  44276. 8012920: 617b str r3, [r7, #20]
  44277. }
  44278. 8012922: bf00 nop
  44279. 8012924: bf00 nop
  44280. 8012926: e7fd b.n 8012924 <xStreamBufferReceive+0xa4>
  44281. pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle();
  44282. 8012928: f001 f85a bl 80139e0 <xTaskGetCurrentTaskHandle>
  44283. 801292c: 4602 mov r2, r0
  44284. 801292e: 6a3b ldr r3, [r7, #32]
  44285. 8012930: 611a str r2, [r3, #16]
  44286. else
  44287. {
  44288. mtCOVERAGE_TEST_MARKER();
  44289. }
  44290. }
  44291. taskEXIT_CRITICAL();
  44292. 8012932: f002 f933 bl 8014b9c <vPortExitCritical>
  44293. if( xBytesAvailable <= xBytesToStoreMessageLength )
  44294. 8012936: 6aba ldr r2, [r7, #40] @ 0x28
  44295. 8012938: 6a7b ldr r3, [r7, #36] @ 0x24
  44296. 801293a: 429a cmp r2, r3
  44297. 801293c: d811 bhi.n 8012962 <xStreamBufferReceive+0xe2>
  44298. {
  44299. /* Wait for data to be available. */
  44300. traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer );
  44301. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  44302. 801293e: 683b ldr r3, [r7, #0]
  44303. 8012940: 2200 movs r2, #0
  44304. 8012942: 2100 movs r1, #0
  44305. 8012944: 2000 movs r0, #0
  44306. 8012946: f001 f9e9 bl 8013d1c <xTaskNotifyWait>
  44307. pxStreamBuffer->xTaskWaitingToReceive = NULL;
  44308. 801294a: 6a3b ldr r3, [r7, #32]
  44309. 801294c: 2200 movs r2, #0
  44310. 801294e: 611a str r2, [r3, #16]
  44311. /* Recheck the data available after blocking. */
  44312. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  44313. 8012950: 6a38 ldr r0, [r7, #32]
  44314. 8012952: f000 f951 bl 8012bf8 <prvBytesInBuffer>
  44315. 8012956: 62b8 str r0, [r7, #40] @ 0x28
  44316. 8012958: e003 b.n 8012962 <xStreamBufferReceive+0xe2>
  44317. mtCOVERAGE_TEST_MARKER();
  44318. }
  44319. }
  44320. else
  44321. {
  44322. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  44323. 801295a: 6a38 ldr r0, [r7, #32]
  44324. 801295c: f000 f94c bl 8012bf8 <prvBytesInBuffer>
  44325. 8012960: 62b8 str r0, [r7, #40] @ 0x28
  44326. /* Whether receiving a discrete message (where xBytesToStoreMessageLength
  44327. holds the number of bytes used to store the message length) or a stream of
  44328. bytes (where xBytesToStoreMessageLength is zero), the number of bytes
  44329. available must be greater than xBytesToStoreMessageLength to be able to
  44330. read bytes from the buffer. */
  44331. if( xBytesAvailable > xBytesToStoreMessageLength )
  44332. 8012962: 6aba ldr r2, [r7, #40] @ 0x28
  44333. 8012964: 6a7b ldr r3, [r7, #36] @ 0x24
  44334. 8012966: 429a cmp r2, r3
  44335. 8012968: d91d bls.n 80129a6 <xStreamBufferReceive+0x126>
  44336. {
  44337. xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength );
  44338. 801296a: 6a7b ldr r3, [r7, #36] @ 0x24
  44339. 801296c: 9300 str r3, [sp, #0]
  44340. 801296e: 6abb ldr r3, [r7, #40] @ 0x28
  44341. 8012970: 687a ldr r2, [r7, #4]
  44342. 8012972: 68b9 ldr r1, [r7, #8]
  44343. 8012974: 6a38 ldr r0, [r7, #32]
  44344. 8012976: f000 f81b bl 80129b0 <prvReadMessageFromBuffer>
  44345. 801297a: 62f8 str r0, [r7, #44] @ 0x2c
  44346. /* Was a task waiting for space in the buffer? */
  44347. if( xReceivedLength != ( size_t ) 0 )
  44348. 801297c: 6afb ldr r3, [r7, #44] @ 0x2c
  44349. 801297e: 2b00 cmp r3, #0
  44350. 8012980: d011 beq.n 80129a6 <xStreamBufferReceive+0x126>
  44351. {
  44352. traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength );
  44353. sbRECEIVE_COMPLETED( pxStreamBuffer );
  44354. 8012982: f000 fbf1 bl 8013168 <vTaskSuspendAll>
  44355. 8012986: 6a3b ldr r3, [r7, #32]
  44356. 8012988: 695b ldr r3, [r3, #20]
  44357. 801298a: 2b00 cmp r3, #0
  44358. 801298c: d009 beq.n 80129a2 <xStreamBufferReceive+0x122>
  44359. 801298e: 6a3b ldr r3, [r7, #32]
  44360. 8012990: 6958 ldr r0, [r3, #20]
  44361. 8012992: 2300 movs r3, #0
  44362. 8012994: 2200 movs r2, #0
  44363. 8012996: 2100 movs r1, #0
  44364. 8012998: f001 fa20 bl 8013ddc <xTaskGenericNotify>
  44365. 801299c: 6a3b ldr r3, [r7, #32]
  44366. 801299e: 2200 movs r2, #0
  44367. 80129a0: 615a str r2, [r3, #20]
  44368. 80129a2: f000 fbef bl 8013184 <xTaskResumeAll>
  44369. {
  44370. traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer );
  44371. mtCOVERAGE_TEST_MARKER();
  44372. }
  44373. return xReceivedLength;
  44374. 80129a6: 6afb ldr r3, [r7, #44] @ 0x2c
  44375. }
  44376. 80129a8: 4618 mov r0, r3
  44377. 80129aa: 3730 adds r7, #48 @ 0x30
  44378. 80129ac: 46bd mov sp, r7
  44379. 80129ae: bd80 pop {r7, pc}
  44380. 080129b0 <prvReadMessageFromBuffer>:
  44381. static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer,
  44382. void *pvRxData,
  44383. size_t xBufferLengthBytes,
  44384. size_t xBytesAvailable,
  44385. size_t xBytesToStoreMessageLength )
  44386. {
  44387. 80129b0: b580 push {r7, lr}
  44388. 80129b2: b088 sub sp, #32
  44389. 80129b4: af00 add r7, sp, #0
  44390. 80129b6: 60f8 str r0, [r7, #12]
  44391. 80129b8: 60b9 str r1, [r7, #8]
  44392. 80129ba: 607a str r2, [r7, #4]
  44393. 80129bc: 603b str r3, [r7, #0]
  44394. size_t xOriginalTail, xReceivedLength, xNextMessageLength;
  44395. configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength;
  44396. if( xBytesToStoreMessageLength != ( size_t ) 0 )
  44397. 80129be: 6abb ldr r3, [r7, #40] @ 0x28
  44398. 80129c0: 2b00 cmp r3, #0
  44399. 80129c2: d019 beq.n 80129f8 <prvReadMessageFromBuffer+0x48>
  44400. {
  44401. /* A discrete message is being received. First receive the length
  44402. of the message. A copy of the tail is stored so the buffer can be
  44403. returned to its prior state if the length of the message is too
  44404. large for the provided buffer. */
  44405. xOriginalTail = pxStreamBuffer->xTail;
  44406. 80129c4: 68fb ldr r3, [r7, #12]
  44407. 80129c6: 681b ldr r3, [r3, #0]
  44408. 80129c8: 61bb str r3, [r7, #24]
  44409. ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNextMessageLength, xBytesToStoreMessageLength, xBytesAvailable );
  44410. 80129ca: f107 0110 add.w r1, r7, #16
  44411. 80129ce: 683b ldr r3, [r7, #0]
  44412. 80129d0: 6aba ldr r2, [r7, #40] @ 0x28
  44413. 80129d2: 68f8 ldr r0, [r7, #12]
  44414. 80129d4: f000 f893 bl 8012afe <prvReadBytesFromBuffer>
  44415. xNextMessageLength = ( size_t ) xTempNextMessageLength;
  44416. 80129d8: 693b ldr r3, [r7, #16]
  44417. 80129da: 61fb str r3, [r7, #28]
  44418. /* Reduce the number of bytes available by the number of bytes just
  44419. read out. */
  44420. xBytesAvailable -= xBytesToStoreMessageLength;
  44421. 80129dc: 683a ldr r2, [r7, #0]
  44422. 80129de: 6abb ldr r3, [r7, #40] @ 0x28
  44423. 80129e0: 1ad3 subs r3, r2, r3
  44424. 80129e2: 603b str r3, [r7, #0]
  44425. /* Check there is enough space in the buffer provided by the
  44426. user. */
  44427. if( xNextMessageLength > xBufferLengthBytes )
  44428. 80129e4: 69fa ldr r2, [r7, #28]
  44429. 80129e6: 687b ldr r3, [r7, #4]
  44430. 80129e8: 429a cmp r2, r3
  44431. 80129ea: d907 bls.n 80129fc <prvReadMessageFromBuffer+0x4c>
  44432. {
  44433. /* The user has provided insufficient space to read the message
  44434. so return the buffer to its previous state (so the length of
  44435. the message is in the buffer again). */
  44436. pxStreamBuffer->xTail = xOriginalTail;
  44437. 80129ec: 68fb ldr r3, [r7, #12]
  44438. 80129ee: 69ba ldr r2, [r7, #24]
  44439. 80129f0: 601a str r2, [r3, #0]
  44440. xNextMessageLength = 0;
  44441. 80129f2: 2300 movs r3, #0
  44442. 80129f4: 61fb str r3, [r7, #28]
  44443. 80129f6: e001 b.n 80129fc <prvReadMessageFromBuffer+0x4c>
  44444. }
  44445. else
  44446. {
  44447. /* A stream of bytes is being received (as opposed to a discrete
  44448. message), so read as many bytes as possible. */
  44449. xNextMessageLength = xBufferLengthBytes;
  44450. 80129f8: 687b ldr r3, [r7, #4]
  44451. 80129fa: 61fb str r3, [r7, #28]
  44452. }
  44453. /* Read the actual data. */
  44454. 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. */
  44455. 80129fc: 683b ldr r3, [r7, #0]
  44456. 80129fe: 69fa ldr r2, [r7, #28]
  44457. 8012a00: 68b9 ldr r1, [r7, #8]
  44458. 8012a02: 68f8 ldr r0, [r7, #12]
  44459. 8012a04: f000 f87b bl 8012afe <prvReadBytesFromBuffer>
  44460. 8012a08: 6178 str r0, [r7, #20]
  44461. return xReceivedLength;
  44462. 8012a0a: 697b ldr r3, [r7, #20]
  44463. }
  44464. 8012a0c: 4618 mov r0, r3
  44465. 8012a0e: 3720 adds r7, #32
  44466. 8012a10: 46bd mov sp, r7
  44467. 8012a12: bd80 pop {r7, pc}
  44468. 08012a14 <prvWriteBytesToBuffer>:
  44469. return xReturn;
  44470. }
  44471. /*-----------------------------------------------------------*/
  44472. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  44473. {
  44474. 8012a14: b580 push {r7, lr}
  44475. 8012a16: b08a sub sp, #40 @ 0x28
  44476. 8012a18: af00 add r7, sp, #0
  44477. 8012a1a: 60f8 str r0, [r7, #12]
  44478. 8012a1c: 60b9 str r1, [r7, #8]
  44479. 8012a1e: 607a str r2, [r7, #4]
  44480. size_t xNextHead, xFirstLength;
  44481. configASSERT( xCount > ( size_t ) 0 );
  44482. 8012a20: 687b ldr r3, [r7, #4]
  44483. 8012a22: 2b00 cmp r3, #0
  44484. 8012a24: d10b bne.n 8012a3e <prvWriteBytesToBuffer+0x2a>
  44485. __asm volatile
  44486. 8012a26: f04f 0350 mov.w r3, #80 @ 0x50
  44487. 8012a2a: f383 8811 msr BASEPRI, r3
  44488. 8012a2e: f3bf 8f6f isb sy
  44489. 8012a32: f3bf 8f4f dsb sy
  44490. 8012a36: 61fb str r3, [r7, #28]
  44491. }
  44492. 8012a38: bf00 nop
  44493. 8012a3a: bf00 nop
  44494. 8012a3c: e7fd b.n 8012a3a <prvWriteBytesToBuffer+0x26>
  44495. xNextHead = pxStreamBuffer->xHead;
  44496. 8012a3e: 68fb ldr r3, [r7, #12]
  44497. 8012a40: 685b ldr r3, [r3, #4]
  44498. 8012a42: 627b str r3, [r7, #36] @ 0x24
  44499. /* Calculate the number of bytes that can be added in the first write -
  44500. which may be less than the total number of bytes that need to be added if
  44501. the buffer will wrap back to the beginning. */
  44502. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  44503. 8012a44: 68fb ldr r3, [r7, #12]
  44504. 8012a46: 689a ldr r2, [r3, #8]
  44505. 8012a48: 6a7b ldr r3, [r7, #36] @ 0x24
  44506. 8012a4a: 1ad3 subs r3, r2, r3
  44507. 8012a4c: 687a ldr r2, [r7, #4]
  44508. 8012a4e: 4293 cmp r3, r2
  44509. 8012a50: bf28 it cs
  44510. 8012a52: 4613 movcs r3, r2
  44511. 8012a54: 623b str r3, [r7, #32]
  44512. /* Write as many bytes as can be written in the first write. */
  44513. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  44514. 8012a56: 6a7a ldr r2, [r7, #36] @ 0x24
  44515. 8012a58: 6a3b ldr r3, [r7, #32]
  44516. 8012a5a: 441a add r2, r3
  44517. 8012a5c: 68fb ldr r3, [r7, #12]
  44518. 8012a5e: 689b ldr r3, [r3, #8]
  44519. 8012a60: 429a cmp r2, r3
  44520. 8012a62: d90b bls.n 8012a7c <prvWriteBytesToBuffer+0x68>
  44521. __asm volatile
  44522. 8012a64: f04f 0350 mov.w r3, #80 @ 0x50
  44523. 8012a68: f383 8811 msr BASEPRI, r3
  44524. 8012a6c: f3bf 8f6f isb sy
  44525. 8012a70: f3bf 8f4f dsb sy
  44526. 8012a74: 61bb str r3, [r7, #24]
  44527. }
  44528. 8012a76: bf00 nop
  44529. 8012a78: bf00 nop
  44530. 8012a7a: e7fd b.n 8012a78 <prvWriteBytesToBuffer+0x64>
  44531. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  44532. 8012a7c: 68fb ldr r3, [r7, #12]
  44533. 8012a7e: 699a ldr r2, [r3, #24]
  44534. 8012a80: 6a7b ldr r3, [r7, #36] @ 0x24
  44535. 8012a82: 4413 add r3, r2
  44536. 8012a84: 6a3a ldr r2, [r7, #32]
  44537. 8012a86: 68b9 ldr r1, [r7, #8]
  44538. 8012a88: 4618 mov r0, r3
  44539. 8012a8a: f017 fa30 bl 8029eee <memcpy>
  44540. /* If the number of bytes written was less than the number that could be
  44541. written in the first write... */
  44542. if( xCount > xFirstLength )
  44543. 8012a8e: 687a ldr r2, [r7, #4]
  44544. 8012a90: 6a3b ldr r3, [r7, #32]
  44545. 8012a92: 429a cmp r2, r3
  44546. 8012a94: d91d bls.n 8012ad2 <prvWriteBytesToBuffer+0xbe>
  44547. {
  44548. /* ...then write the remaining bytes to the start of the buffer. */
  44549. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  44550. 8012a96: 687a ldr r2, [r7, #4]
  44551. 8012a98: 6a3b ldr r3, [r7, #32]
  44552. 8012a9a: 1ad2 subs r2, r2, r3
  44553. 8012a9c: 68fb ldr r3, [r7, #12]
  44554. 8012a9e: 689b ldr r3, [r3, #8]
  44555. 8012aa0: 429a cmp r2, r3
  44556. 8012aa2: d90b bls.n 8012abc <prvWriteBytesToBuffer+0xa8>
  44557. __asm volatile
  44558. 8012aa4: f04f 0350 mov.w r3, #80 @ 0x50
  44559. 8012aa8: f383 8811 msr BASEPRI, r3
  44560. 8012aac: f3bf 8f6f isb sy
  44561. 8012ab0: f3bf 8f4f dsb sy
  44562. 8012ab4: 617b str r3, [r7, #20]
  44563. }
  44564. 8012ab6: bf00 nop
  44565. 8012ab8: bf00 nop
  44566. 8012aba: e7fd b.n 8012ab8 <prvWriteBytesToBuffer+0xa4>
  44567. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  44568. 8012abc: 68fb ldr r3, [r7, #12]
  44569. 8012abe: 6998 ldr r0, [r3, #24]
  44570. 8012ac0: 68ba ldr r2, [r7, #8]
  44571. 8012ac2: 6a3b ldr r3, [r7, #32]
  44572. 8012ac4: 18d1 adds r1, r2, r3
  44573. 8012ac6: 687a ldr r2, [r7, #4]
  44574. 8012ac8: 6a3b ldr r3, [r7, #32]
  44575. 8012aca: 1ad3 subs r3, r2, r3
  44576. 8012acc: 461a mov r2, r3
  44577. 8012ace: f017 fa0e bl 8029eee <memcpy>
  44578. else
  44579. {
  44580. mtCOVERAGE_TEST_MARKER();
  44581. }
  44582. xNextHead += xCount;
  44583. 8012ad2: 6a7a ldr r2, [r7, #36] @ 0x24
  44584. 8012ad4: 687b ldr r3, [r7, #4]
  44585. 8012ad6: 4413 add r3, r2
  44586. 8012ad8: 627b str r3, [r7, #36] @ 0x24
  44587. if( xNextHead >= pxStreamBuffer->xLength )
  44588. 8012ada: 68fb ldr r3, [r7, #12]
  44589. 8012adc: 689b ldr r3, [r3, #8]
  44590. 8012ade: 6a7a ldr r2, [r7, #36] @ 0x24
  44591. 8012ae0: 429a cmp r2, r3
  44592. 8012ae2: d304 bcc.n 8012aee <prvWriteBytesToBuffer+0xda>
  44593. {
  44594. xNextHead -= pxStreamBuffer->xLength;
  44595. 8012ae4: 68fb ldr r3, [r7, #12]
  44596. 8012ae6: 689b ldr r3, [r3, #8]
  44597. 8012ae8: 6a7a ldr r2, [r7, #36] @ 0x24
  44598. 8012aea: 1ad3 subs r3, r2, r3
  44599. 8012aec: 627b str r3, [r7, #36] @ 0x24
  44600. else
  44601. {
  44602. mtCOVERAGE_TEST_MARKER();
  44603. }
  44604. pxStreamBuffer->xHead = xNextHead;
  44605. 8012aee: 68fb ldr r3, [r7, #12]
  44606. 8012af0: 6a7a ldr r2, [r7, #36] @ 0x24
  44607. 8012af2: 605a str r2, [r3, #4]
  44608. return xCount;
  44609. 8012af4: 687b ldr r3, [r7, #4]
  44610. }
  44611. 8012af6: 4618 mov r0, r3
  44612. 8012af8: 3728 adds r7, #40 @ 0x28
  44613. 8012afa: 46bd mov sp, r7
  44614. 8012afc: bd80 pop {r7, pc}
  44615. 08012afe <prvReadBytesFromBuffer>:
  44616. /*-----------------------------------------------------------*/
  44617. static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable )
  44618. {
  44619. 8012afe: b580 push {r7, lr}
  44620. 8012b00: b08a sub sp, #40 @ 0x28
  44621. 8012b02: af00 add r7, sp, #0
  44622. 8012b04: 60f8 str r0, [r7, #12]
  44623. 8012b06: 60b9 str r1, [r7, #8]
  44624. 8012b08: 607a str r2, [r7, #4]
  44625. 8012b0a: 603b str r3, [r7, #0]
  44626. size_t xCount, xFirstLength, xNextTail;
  44627. /* Use the minimum of the wanted bytes and the available bytes. */
  44628. xCount = configMIN( xBytesAvailable, xMaxCount );
  44629. 8012b0c: 687a ldr r2, [r7, #4]
  44630. 8012b0e: 683b ldr r3, [r7, #0]
  44631. 8012b10: 4293 cmp r3, r2
  44632. 8012b12: bf28 it cs
  44633. 8012b14: 4613 movcs r3, r2
  44634. 8012b16: 623b str r3, [r7, #32]
  44635. if( xCount > ( size_t ) 0 )
  44636. 8012b18: 6a3b ldr r3, [r7, #32]
  44637. 8012b1a: 2b00 cmp r3, #0
  44638. 8012b1c: d067 beq.n 8012bee <prvReadBytesFromBuffer+0xf0>
  44639. {
  44640. xNextTail = pxStreamBuffer->xTail;
  44641. 8012b1e: 68fb ldr r3, [r7, #12]
  44642. 8012b20: 681b ldr r3, [r3, #0]
  44643. 8012b22: 627b str r3, [r7, #36] @ 0x24
  44644. /* Calculate the number of bytes that can be read - which may be
  44645. less than the number wanted if the data wraps around to the start of
  44646. the buffer. */
  44647. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount );
  44648. 8012b24: 68fb ldr r3, [r7, #12]
  44649. 8012b26: 689a ldr r2, [r3, #8]
  44650. 8012b28: 6a7b ldr r3, [r7, #36] @ 0x24
  44651. 8012b2a: 1ad3 subs r3, r2, r3
  44652. 8012b2c: 6a3a ldr r2, [r7, #32]
  44653. 8012b2e: 4293 cmp r3, r2
  44654. 8012b30: bf28 it cs
  44655. 8012b32: 4613 movcs r3, r2
  44656. 8012b34: 61fb str r3, [r7, #28]
  44657. /* Obtain the number of bytes it is possible to obtain in the first
  44658. read. Asserts check bounds of read and write. */
  44659. configASSERT( xFirstLength <= xMaxCount );
  44660. 8012b36: 69fa ldr r2, [r7, #28]
  44661. 8012b38: 687b ldr r3, [r7, #4]
  44662. 8012b3a: 429a cmp r2, r3
  44663. 8012b3c: d90b bls.n 8012b56 <prvReadBytesFromBuffer+0x58>
  44664. __asm volatile
  44665. 8012b3e: f04f 0350 mov.w r3, #80 @ 0x50
  44666. 8012b42: f383 8811 msr BASEPRI, r3
  44667. 8012b46: f3bf 8f6f isb sy
  44668. 8012b4a: f3bf 8f4f dsb sy
  44669. 8012b4e: 61bb str r3, [r7, #24]
  44670. }
  44671. 8012b50: bf00 nop
  44672. 8012b52: bf00 nop
  44673. 8012b54: e7fd b.n 8012b52 <prvReadBytesFromBuffer+0x54>
  44674. configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength );
  44675. 8012b56: 6a7a ldr r2, [r7, #36] @ 0x24
  44676. 8012b58: 69fb ldr r3, [r7, #28]
  44677. 8012b5a: 441a add r2, r3
  44678. 8012b5c: 68fb ldr r3, [r7, #12]
  44679. 8012b5e: 689b ldr r3, [r3, #8]
  44680. 8012b60: 429a cmp r2, r3
  44681. 8012b62: d90b bls.n 8012b7c <prvReadBytesFromBuffer+0x7e>
  44682. __asm volatile
  44683. 8012b64: f04f 0350 mov.w r3, #80 @ 0x50
  44684. 8012b68: f383 8811 msr BASEPRI, r3
  44685. 8012b6c: f3bf 8f6f isb sy
  44686. 8012b70: f3bf 8f4f dsb sy
  44687. 8012b74: 617b str r3, [r7, #20]
  44688. }
  44689. 8012b76: bf00 nop
  44690. 8012b78: bf00 nop
  44691. 8012b7a: e7fd b.n 8012b78 <prvReadBytesFromBuffer+0x7a>
  44692. ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  44693. 8012b7c: 68fb ldr r3, [r7, #12]
  44694. 8012b7e: 699a ldr r2, [r3, #24]
  44695. 8012b80: 6a7b ldr r3, [r7, #36] @ 0x24
  44696. 8012b82: 4413 add r3, r2
  44697. 8012b84: 69fa ldr r2, [r7, #28]
  44698. 8012b86: 4619 mov r1, r3
  44699. 8012b88: 68b8 ldr r0, [r7, #8]
  44700. 8012b8a: f017 f9b0 bl 8029eee <memcpy>
  44701. /* If the total number of wanted bytes is greater than the number
  44702. that could be read in the first read... */
  44703. if( xCount > xFirstLength )
  44704. 8012b8e: 6a3a ldr r2, [r7, #32]
  44705. 8012b90: 69fb ldr r3, [r7, #28]
  44706. 8012b92: 429a cmp r2, r3
  44707. 8012b94: d91a bls.n 8012bcc <prvReadBytesFromBuffer+0xce>
  44708. {
  44709. /*...then read the remaining bytes from the start of the buffer. */
  44710. configASSERT( xCount <= xMaxCount );
  44711. 8012b96: 6a3a ldr r2, [r7, #32]
  44712. 8012b98: 687b ldr r3, [r7, #4]
  44713. 8012b9a: 429a cmp r2, r3
  44714. 8012b9c: d90b bls.n 8012bb6 <prvReadBytesFromBuffer+0xb8>
  44715. __asm volatile
  44716. 8012b9e: f04f 0350 mov.w r3, #80 @ 0x50
  44717. 8012ba2: f383 8811 msr BASEPRI, r3
  44718. 8012ba6: f3bf 8f6f isb sy
  44719. 8012baa: f3bf 8f4f dsb sy
  44720. 8012bae: 613b str r3, [r7, #16]
  44721. }
  44722. 8012bb0: bf00 nop
  44723. 8012bb2: bf00 nop
  44724. 8012bb4: e7fd b.n 8012bb2 <prvReadBytesFromBuffer+0xb4>
  44725. ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  44726. 8012bb6: 68ba ldr r2, [r7, #8]
  44727. 8012bb8: 69fb ldr r3, [r7, #28]
  44728. 8012bba: 18d0 adds r0, r2, r3
  44729. 8012bbc: 68fb ldr r3, [r7, #12]
  44730. 8012bbe: 6999 ldr r1, [r3, #24]
  44731. 8012bc0: 6a3a ldr r2, [r7, #32]
  44732. 8012bc2: 69fb ldr r3, [r7, #28]
  44733. 8012bc4: 1ad3 subs r3, r2, r3
  44734. 8012bc6: 461a mov r2, r3
  44735. 8012bc8: f017 f991 bl 8029eee <memcpy>
  44736. mtCOVERAGE_TEST_MARKER();
  44737. }
  44738. /* Move the tail pointer to effectively remove the data read from
  44739. the buffer. */
  44740. xNextTail += xCount;
  44741. 8012bcc: 6a7a ldr r2, [r7, #36] @ 0x24
  44742. 8012bce: 6a3b ldr r3, [r7, #32]
  44743. 8012bd0: 4413 add r3, r2
  44744. 8012bd2: 627b str r3, [r7, #36] @ 0x24
  44745. if( xNextTail >= pxStreamBuffer->xLength )
  44746. 8012bd4: 68fb ldr r3, [r7, #12]
  44747. 8012bd6: 689b ldr r3, [r3, #8]
  44748. 8012bd8: 6a7a ldr r2, [r7, #36] @ 0x24
  44749. 8012bda: 429a cmp r2, r3
  44750. 8012bdc: d304 bcc.n 8012be8 <prvReadBytesFromBuffer+0xea>
  44751. {
  44752. xNextTail -= pxStreamBuffer->xLength;
  44753. 8012bde: 68fb ldr r3, [r7, #12]
  44754. 8012be0: 689b ldr r3, [r3, #8]
  44755. 8012be2: 6a7a ldr r2, [r7, #36] @ 0x24
  44756. 8012be4: 1ad3 subs r3, r2, r3
  44757. 8012be6: 627b str r3, [r7, #36] @ 0x24
  44758. }
  44759. pxStreamBuffer->xTail = xNextTail;
  44760. 8012be8: 68fb ldr r3, [r7, #12]
  44761. 8012bea: 6a7a ldr r2, [r7, #36] @ 0x24
  44762. 8012bec: 601a str r2, [r3, #0]
  44763. else
  44764. {
  44765. mtCOVERAGE_TEST_MARKER();
  44766. }
  44767. return xCount;
  44768. 8012bee: 6a3b ldr r3, [r7, #32]
  44769. }
  44770. 8012bf0: 4618 mov r0, r3
  44771. 8012bf2: 3728 adds r7, #40 @ 0x28
  44772. 8012bf4: 46bd mov sp, r7
  44773. 8012bf6: bd80 pop {r7, pc}
  44774. 08012bf8 <prvBytesInBuffer>:
  44775. /*-----------------------------------------------------------*/
  44776. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  44777. {
  44778. 8012bf8: b480 push {r7}
  44779. 8012bfa: b085 sub sp, #20
  44780. 8012bfc: af00 add r7, sp, #0
  44781. 8012bfe: 6078 str r0, [r7, #4]
  44782. /* Returns the distance between xTail and xHead. */
  44783. size_t xCount;
  44784. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  44785. 8012c00: 687b ldr r3, [r7, #4]
  44786. 8012c02: 689a ldr r2, [r3, #8]
  44787. 8012c04: 687b ldr r3, [r7, #4]
  44788. 8012c06: 685b ldr r3, [r3, #4]
  44789. 8012c08: 4413 add r3, r2
  44790. 8012c0a: 60fb str r3, [r7, #12]
  44791. xCount -= pxStreamBuffer->xTail;
  44792. 8012c0c: 687b ldr r3, [r7, #4]
  44793. 8012c0e: 681b ldr r3, [r3, #0]
  44794. 8012c10: 68fa ldr r2, [r7, #12]
  44795. 8012c12: 1ad3 subs r3, r2, r3
  44796. 8012c14: 60fb str r3, [r7, #12]
  44797. if ( xCount >= pxStreamBuffer->xLength )
  44798. 8012c16: 687b ldr r3, [r7, #4]
  44799. 8012c18: 689b ldr r3, [r3, #8]
  44800. 8012c1a: 68fa ldr r2, [r7, #12]
  44801. 8012c1c: 429a cmp r2, r3
  44802. 8012c1e: d304 bcc.n 8012c2a <prvBytesInBuffer+0x32>
  44803. {
  44804. xCount -= pxStreamBuffer->xLength;
  44805. 8012c20: 687b ldr r3, [r7, #4]
  44806. 8012c22: 689b ldr r3, [r3, #8]
  44807. 8012c24: 68fa ldr r2, [r7, #12]
  44808. 8012c26: 1ad3 subs r3, r2, r3
  44809. 8012c28: 60fb str r3, [r7, #12]
  44810. else
  44811. {
  44812. mtCOVERAGE_TEST_MARKER();
  44813. }
  44814. return xCount;
  44815. 8012c2a: 68fb ldr r3, [r7, #12]
  44816. }
  44817. 8012c2c: 4618 mov r0, r3
  44818. 8012c2e: 3714 adds r7, #20
  44819. 8012c30: 46bd mov sp, r7
  44820. 8012c32: f85d 7b04 ldr.w r7, [sp], #4
  44821. 8012c36: 4770 bx lr
  44822. 08012c38 <prvInitialiseNewStreamBuffer>:
  44823. static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
  44824. uint8_t * const pucBuffer,
  44825. size_t xBufferSizeBytes,
  44826. size_t xTriggerLevelBytes,
  44827. uint8_t ucFlags )
  44828. {
  44829. 8012c38: b580 push {r7, lr}
  44830. 8012c3a: b086 sub sp, #24
  44831. 8012c3c: af00 add r7, sp, #0
  44832. 8012c3e: 60f8 str r0, [r7, #12]
  44833. 8012c40: 60b9 str r1, [r7, #8]
  44834. 8012c42: 607a str r2, [r7, #4]
  44835. 8012c44: 603b str r3, [r7, #0]
  44836. #if( configASSERT_DEFINED == 1 )
  44837. {
  44838. /* The value written just has to be identifiable when looking at the
  44839. memory. Don't use 0xA5 as that is the stack fill value and could
  44840. result in confusion as to what is actually being observed. */
  44841. const BaseType_t xWriteValue = 0x55;
  44842. 8012c46: 2355 movs r3, #85 @ 0x55
  44843. 8012c48: 617b str r3, [r7, #20]
  44844. configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes ) == pucBuffer );
  44845. 8012c4a: 687a ldr r2, [r7, #4]
  44846. 8012c4c: 6979 ldr r1, [r7, #20]
  44847. 8012c4e: 68b8 ldr r0, [r7, #8]
  44848. 8012c50: f017 f856 bl 8029d00 <memset>
  44849. 8012c54: 4602 mov r2, r0
  44850. 8012c56: 68bb ldr r3, [r7, #8]
  44851. 8012c58: 4293 cmp r3, r2
  44852. 8012c5a: d00b beq.n 8012c74 <prvInitialiseNewStreamBuffer+0x3c>
  44853. __asm volatile
  44854. 8012c5c: f04f 0350 mov.w r3, #80 @ 0x50
  44855. 8012c60: f383 8811 msr BASEPRI, r3
  44856. 8012c64: f3bf 8f6f isb sy
  44857. 8012c68: f3bf 8f4f dsb sy
  44858. 8012c6c: 613b str r3, [r7, #16]
  44859. }
  44860. 8012c6e: bf00 nop
  44861. 8012c70: bf00 nop
  44862. 8012c72: e7fd b.n 8012c70 <prvInitialiseNewStreamBuffer+0x38>
  44863. } /*lint !e529 !e438 xWriteValue is only used if configASSERT() is defined. */
  44864. #endif
  44865. ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); /*lint !e9087 memset() requires void *. */
  44866. 8012c74: 2224 movs r2, #36 @ 0x24
  44867. 8012c76: 2100 movs r1, #0
  44868. 8012c78: 68f8 ldr r0, [r7, #12]
  44869. 8012c7a: f017 f841 bl 8029d00 <memset>
  44870. pxStreamBuffer->pucBuffer = pucBuffer;
  44871. 8012c7e: 68fb ldr r3, [r7, #12]
  44872. 8012c80: 68ba ldr r2, [r7, #8]
  44873. 8012c82: 619a str r2, [r3, #24]
  44874. pxStreamBuffer->xLength = xBufferSizeBytes;
  44875. 8012c84: 68fb ldr r3, [r7, #12]
  44876. 8012c86: 687a ldr r2, [r7, #4]
  44877. 8012c88: 609a str r2, [r3, #8]
  44878. pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes;
  44879. 8012c8a: 68fb ldr r3, [r7, #12]
  44880. 8012c8c: 683a ldr r2, [r7, #0]
  44881. 8012c8e: 60da str r2, [r3, #12]
  44882. pxStreamBuffer->ucFlags = ucFlags;
  44883. 8012c90: 68fb ldr r3, [r7, #12]
  44884. 8012c92: f897 2020 ldrb.w r2, [r7, #32]
  44885. 8012c96: 771a strb r2, [r3, #28]
  44886. }
  44887. 8012c98: bf00 nop
  44888. 8012c9a: 3718 adds r7, #24
  44889. 8012c9c: 46bd mov sp, r7
  44890. 8012c9e: bd80 pop {r7, pc}
  44891. 08012ca0 <xTaskCreateStatic>:
  44892. const uint32_t ulStackDepth,
  44893. void * const pvParameters,
  44894. UBaseType_t uxPriority,
  44895. StackType_t * const puxStackBuffer,
  44896. StaticTask_t * const pxTaskBuffer )
  44897. {
  44898. 8012ca0: b580 push {r7, lr}
  44899. 8012ca2: b08e sub sp, #56 @ 0x38
  44900. 8012ca4: af04 add r7, sp, #16
  44901. 8012ca6: 60f8 str r0, [r7, #12]
  44902. 8012ca8: 60b9 str r1, [r7, #8]
  44903. 8012caa: 607a str r2, [r7, #4]
  44904. 8012cac: 603b str r3, [r7, #0]
  44905. TCB_t *pxNewTCB;
  44906. TaskHandle_t xReturn;
  44907. configASSERT( puxStackBuffer != NULL );
  44908. 8012cae: 6b7b ldr r3, [r7, #52] @ 0x34
  44909. 8012cb0: 2b00 cmp r3, #0
  44910. 8012cb2: d10b bne.n 8012ccc <xTaskCreateStatic+0x2c>
  44911. __asm volatile
  44912. 8012cb4: f04f 0350 mov.w r3, #80 @ 0x50
  44913. 8012cb8: f383 8811 msr BASEPRI, r3
  44914. 8012cbc: f3bf 8f6f isb sy
  44915. 8012cc0: f3bf 8f4f dsb sy
  44916. 8012cc4: 623b str r3, [r7, #32]
  44917. }
  44918. 8012cc6: bf00 nop
  44919. 8012cc8: bf00 nop
  44920. 8012cca: e7fd b.n 8012cc8 <xTaskCreateStatic+0x28>
  44921. configASSERT( pxTaskBuffer != NULL );
  44922. 8012ccc: 6bbb ldr r3, [r7, #56] @ 0x38
  44923. 8012cce: 2b00 cmp r3, #0
  44924. 8012cd0: d10b bne.n 8012cea <xTaskCreateStatic+0x4a>
  44925. __asm volatile
  44926. 8012cd2: f04f 0350 mov.w r3, #80 @ 0x50
  44927. 8012cd6: f383 8811 msr BASEPRI, r3
  44928. 8012cda: f3bf 8f6f isb sy
  44929. 8012cde: f3bf 8f4f dsb sy
  44930. 8012ce2: 61fb str r3, [r7, #28]
  44931. }
  44932. 8012ce4: bf00 nop
  44933. 8012ce6: bf00 nop
  44934. 8012ce8: e7fd b.n 8012ce6 <xTaskCreateStatic+0x46>
  44935. #if( configASSERT_DEFINED == 1 )
  44936. {
  44937. /* Sanity check that the size of the structure used to declare a
  44938. variable of type StaticTask_t equals the size of the real task
  44939. structure. */
  44940. volatile size_t xSize = sizeof( StaticTask_t );
  44941. 8012cea: 23a8 movs r3, #168 @ 0xa8
  44942. 8012cec: 613b str r3, [r7, #16]
  44943. configASSERT( xSize == sizeof( TCB_t ) );
  44944. 8012cee: 693b ldr r3, [r7, #16]
  44945. 8012cf0: 2ba8 cmp r3, #168 @ 0xa8
  44946. 8012cf2: d00b beq.n 8012d0c <xTaskCreateStatic+0x6c>
  44947. __asm volatile
  44948. 8012cf4: f04f 0350 mov.w r3, #80 @ 0x50
  44949. 8012cf8: f383 8811 msr BASEPRI, r3
  44950. 8012cfc: f3bf 8f6f isb sy
  44951. 8012d00: f3bf 8f4f dsb sy
  44952. 8012d04: 61bb str r3, [r7, #24]
  44953. }
  44954. 8012d06: bf00 nop
  44955. 8012d08: bf00 nop
  44956. 8012d0a: e7fd b.n 8012d08 <xTaskCreateStatic+0x68>
  44957. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  44958. 8012d0c: 693b ldr r3, [r7, #16]
  44959. }
  44960. #endif /* configASSERT_DEFINED */
  44961. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  44962. 8012d0e: 6bbb ldr r3, [r7, #56] @ 0x38
  44963. 8012d10: 2b00 cmp r3, #0
  44964. 8012d12: d01e beq.n 8012d52 <xTaskCreateStatic+0xb2>
  44965. 8012d14: 6b7b ldr r3, [r7, #52] @ 0x34
  44966. 8012d16: 2b00 cmp r3, #0
  44967. 8012d18: d01b beq.n 8012d52 <xTaskCreateStatic+0xb2>
  44968. {
  44969. /* The memory used for the task's TCB and stack are passed into this
  44970. function - use them. */
  44971. 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. */
  44972. 8012d1a: 6bbb ldr r3, [r7, #56] @ 0x38
  44973. 8012d1c: 627b str r3, [r7, #36] @ 0x24
  44974. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  44975. 8012d1e: 6a7b ldr r3, [r7, #36] @ 0x24
  44976. 8012d20: 6b7a ldr r2, [r7, #52] @ 0x34
  44977. 8012d22: 631a str r2, [r3, #48] @ 0x30
  44978. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  44979. {
  44980. /* Tasks can be created statically or dynamically, so note this
  44981. task was created statically in case the task is later deleted. */
  44982. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  44983. 8012d24: 6a7b ldr r3, [r7, #36] @ 0x24
  44984. 8012d26: 2202 movs r2, #2
  44985. 8012d28: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  44986. }
  44987. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  44988. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  44989. 8012d2c: 2300 movs r3, #0
  44990. 8012d2e: 9303 str r3, [sp, #12]
  44991. 8012d30: 6a7b ldr r3, [r7, #36] @ 0x24
  44992. 8012d32: 9302 str r3, [sp, #8]
  44993. 8012d34: f107 0314 add.w r3, r7, #20
  44994. 8012d38: 9301 str r3, [sp, #4]
  44995. 8012d3a: 6b3b ldr r3, [r7, #48] @ 0x30
  44996. 8012d3c: 9300 str r3, [sp, #0]
  44997. 8012d3e: 683b ldr r3, [r7, #0]
  44998. 8012d40: 687a ldr r2, [r7, #4]
  44999. 8012d42: 68b9 ldr r1, [r7, #8]
  45000. 8012d44: 68f8 ldr r0, [r7, #12]
  45001. 8012d46: f000 f851 bl 8012dec <prvInitialiseNewTask>
  45002. prvAddNewTaskToReadyList( pxNewTCB );
  45003. 8012d4a: 6a78 ldr r0, [r7, #36] @ 0x24
  45004. 8012d4c: f000 f8f6 bl 8012f3c <prvAddNewTaskToReadyList>
  45005. 8012d50: e001 b.n 8012d56 <xTaskCreateStatic+0xb6>
  45006. }
  45007. else
  45008. {
  45009. xReturn = NULL;
  45010. 8012d52: 2300 movs r3, #0
  45011. 8012d54: 617b str r3, [r7, #20]
  45012. }
  45013. return xReturn;
  45014. 8012d56: 697b ldr r3, [r7, #20]
  45015. }
  45016. 8012d58: 4618 mov r0, r3
  45017. 8012d5a: 3728 adds r7, #40 @ 0x28
  45018. 8012d5c: 46bd mov sp, r7
  45019. 8012d5e: bd80 pop {r7, pc}
  45020. 08012d60 <xTaskCreate>:
  45021. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  45022. const configSTACK_DEPTH_TYPE usStackDepth,
  45023. void * const pvParameters,
  45024. UBaseType_t uxPriority,
  45025. TaskHandle_t * const pxCreatedTask )
  45026. {
  45027. 8012d60: b580 push {r7, lr}
  45028. 8012d62: b08c sub sp, #48 @ 0x30
  45029. 8012d64: af04 add r7, sp, #16
  45030. 8012d66: 60f8 str r0, [r7, #12]
  45031. 8012d68: 60b9 str r1, [r7, #8]
  45032. 8012d6a: 603b str r3, [r7, #0]
  45033. 8012d6c: 4613 mov r3, r2
  45034. 8012d6e: 80fb strh r3, [r7, #6]
  45035. #else /* portSTACK_GROWTH */
  45036. {
  45037. StackType_t *pxStack;
  45038. /* Allocate space for the stack used by the task being created. */
  45039. 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. */
  45040. 8012d70: 88fb ldrh r3, [r7, #6]
  45041. 8012d72: 009b lsls r3, r3, #2
  45042. 8012d74: 4618 mov r0, r3
  45043. 8012d76: f002 f801 bl 8014d7c <pvPortMalloc>
  45044. 8012d7a: 6178 str r0, [r7, #20]
  45045. if( pxStack != NULL )
  45046. 8012d7c: 697b ldr r3, [r7, #20]
  45047. 8012d7e: 2b00 cmp r3, #0
  45048. 8012d80: d00e beq.n 8012da0 <xTaskCreate+0x40>
  45049. {
  45050. /* Allocate space for the TCB. */
  45051. 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. */
  45052. 8012d82: 20a8 movs r0, #168 @ 0xa8
  45053. 8012d84: f001 fffa bl 8014d7c <pvPortMalloc>
  45054. 8012d88: 61f8 str r0, [r7, #28]
  45055. if( pxNewTCB != NULL )
  45056. 8012d8a: 69fb ldr r3, [r7, #28]
  45057. 8012d8c: 2b00 cmp r3, #0
  45058. 8012d8e: d003 beq.n 8012d98 <xTaskCreate+0x38>
  45059. {
  45060. /* Store the stack location in the TCB. */
  45061. pxNewTCB->pxStack = pxStack;
  45062. 8012d90: 69fb ldr r3, [r7, #28]
  45063. 8012d92: 697a ldr r2, [r7, #20]
  45064. 8012d94: 631a str r2, [r3, #48] @ 0x30
  45065. 8012d96: e005 b.n 8012da4 <xTaskCreate+0x44>
  45066. }
  45067. else
  45068. {
  45069. /* The stack cannot be used as the TCB was not created. Free
  45070. it again. */
  45071. vPortFree( pxStack );
  45072. 8012d98: 6978 ldr r0, [r7, #20]
  45073. 8012d9a: f002 f8bd bl 8014f18 <vPortFree>
  45074. 8012d9e: e001 b.n 8012da4 <xTaskCreate+0x44>
  45075. }
  45076. }
  45077. else
  45078. {
  45079. pxNewTCB = NULL;
  45080. 8012da0: 2300 movs r3, #0
  45081. 8012da2: 61fb str r3, [r7, #28]
  45082. }
  45083. }
  45084. #endif /* portSTACK_GROWTH */
  45085. if( pxNewTCB != NULL )
  45086. 8012da4: 69fb ldr r3, [r7, #28]
  45087. 8012da6: 2b00 cmp r3, #0
  45088. 8012da8: d017 beq.n 8012dda <xTaskCreate+0x7a>
  45089. {
  45090. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  45091. {
  45092. /* Tasks can be created statically or dynamically, so note this
  45093. task was created dynamically in case it is later deleted. */
  45094. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  45095. 8012daa: 69fb ldr r3, [r7, #28]
  45096. 8012dac: 2200 movs r2, #0
  45097. 8012dae: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  45098. }
  45099. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  45100. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  45101. 8012db2: 88fa ldrh r2, [r7, #6]
  45102. 8012db4: 2300 movs r3, #0
  45103. 8012db6: 9303 str r3, [sp, #12]
  45104. 8012db8: 69fb ldr r3, [r7, #28]
  45105. 8012dba: 9302 str r3, [sp, #8]
  45106. 8012dbc: 6afb ldr r3, [r7, #44] @ 0x2c
  45107. 8012dbe: 9301 str r3, [sp, #4]
  45108. 8012dc0: 6abb ldr r3, [r7, #40] @ 0x28
  45109. 8012dc2: 9300 str r3, [sp, #0]
  45110. 8012dc4: 683b ldr r3, [r7, #0]
  45111. 8012dc6: 68b9 ldr r1, [r7, #8]
  45112. 8012dc8: 68f8 ldr r0, [r7, #12]
  45113. 8012dca: f000 f80f bl 8012dec <prvInitialiseNewTask>
  45114. prvAddNewTaskToReadyList( pxNewTCB );
  45115. 8012dce: 69f8 ldr r0, [r7, #28]
  45116. 8012dd0: f000 f8b4 bl 8012f3c <prvAddNewTaskToReadyList>
  45117. xReturn = pdPASS;
  45118. 8012dd4: 2301 movs r3, #1
  45119. 8012dd6: 61bb str r3, [r7, #24]
  45120. 8012dd8: e002 b.n 8012de0 <xTaskCreate+0x80>
  45121. }
  45122. else
  45123. {
  45124. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  45125. 8012dda: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45126. 8012dde: 61bb str r3, [r7, #24]
  45127. }
  45128. return xReturn;
  45129. 8012de0: 69bb ldr r3, [r7, #24]
  45130. }
  45131. 8012de2: 4618 mov r0, r3
  45132. 8012de4: 3720 adds r7, #32
  45133. 8012de6: 46bd mov sp, r7
  45134. 8012de8: bd80 pop {r7, pc}
  45135. ...
  45136. 08012dec <prvInitialiseNewTask>:
  45137. void * const pvParameters,
  45138. UBaseType_t uxPriority,
  45139. TaskHandle_t * const pxCreatedTask,
  45140. TCB_t *pxNewTCB,
  45141. const MemoryRegion_t * const xRegions )
  45142. {
  45143. 8012dec: b580 push {r7, lr}
  45144. 8012dee: b088 sub sp, #32
  45145. 8012df0: af00 add r7, sp, #0
  45146. 8012df2: 60f8 str r0, [r7, #12]
  45147. 8012df4: 60b9 str r1, [r7, #8]
  45148. 8012df6: 607a str r2, [r7, #4]
  45149. 8012df8: 603b str r3, [r7, #0]
  45150. /* Avoid dependency on memset() if it is not required. */
  45151. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  45152. {
  45153. /* Fill the stack with a known value to assist debugging. */
  45154. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  45155. 8012dfa: 6b3b ldr r3, [r7, #48] @ 0x30
  45156. 8012dfc: 6b18 ldr r0, [r3, #48] @ 0x30
  45157. 8012dfe: 687b ldr r3, [r7, #4]
  45158. 8012e00: 009b lsls r3, r3, #2
  45159. 8012e02: 461a mov r2, r3
  45160. 8012e04: 21a5 movs r1, #165 @ 0xa5
  45161. 8012e06: f016 ff7b bl 8029d00 <memset>
  45162. grows from high memory to low (as per the 80x86) or vice versa.
  45163. portSTACK_GROWTH is used to make the result positive or negative as required
  45164. by the port. */
  45165. #if( portSTACK_GROWTH < 0 )
  45166. {
  45167. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  45168. 8012e0a: 6b3b ldr r3, [r7, #48] @ 0x30
  45169. 8012e0c: 6b1a ldr r2, [r3, #48] @ 0x30
  45170. 8012e0e: 6879 ldr r1, [r7, #4]
  45171. 8012e10: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  45172. 8012e14: 440b add r3, r1
  45173. 8012e16: 009b lsls r3, r3, #2
  45174. 8012e18: 4413 add r3, r2
  45175. 8012e1a: 61bb str r3, [r7, #24]
  45176. 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(). */
  45177. 8012e1c: 69bb ldr r3, [r7, #24]
  45178. 8012e1e: f023 0307 bic.w r3, r3, #7
  45179. 8012e22: 61bb str r3, [r7, #24]
  45180. /* Check the alignment of the calculated top of stack is correct. */
  45181. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  45182. 8012e24: 69bb ldr r3, [r7, #24]
  45183. 8012e26: f003 0307 and.w r3, r3, #7
  45184. 8012e2a: 2b00 cmp r3, #0
  45185. 8012e2c: d00b beq.n 8012e46 <prvInitialiseNewTask+0x5a>
  45186. __asm volatile
  45187. 8012e2e: f04f 0350 mov.w r3, #80 @ 0x50
  45188. 8012e32: f383 8811 msr BASEPRI, r3
  45189. 8012e36: f3bf 8f6f isb sy
  45190. 8012e3a: f3bf 8f4f dsb sy
  45191. 8012e3e: 617b str r3, [r7, #20]
  45192. }
  45193. 8012e40: bf00 nop
  45194. 8012e42: bf00 nop
  45195. 8012e44: e7fd b.n 8012e42 <prvInitialiseNewTask+0x56>
  45196. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  45197. }
  45198. #endif /* portSTACK_GROWTH */
  45199. /* Store the task name in the TCB. */
  45200. if( pcName != NULL )
  45201. 8012e46: 68bb ldr r3, [r7, #8]
  45202. 8012e48: 2b00 cmp r3, #0
  45203. 8012e4a: d01f beq.n 8012e8c <prvInitialiseNewTask+0xa0>
  45204. {
  45205. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  45206. 8012e4c: 2300 movs r3, #0
  45207. 8012e4e: 61fb str r3, [r7, #28]
  45208. 8012e50: e012 b.n 8012e78 <prvInitialiseNewTask+0x8c>
  45209. {
  45210. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  45211. 8012e52: 68ba ldr r2, [r7, #8]
  45212. 8012e54: 69fb ldr r3, [r7, #28]
  45213. 8012e56: 4413 add r3, r2
  45214. 8012e58: 7819 ldrb r1, [r3, #0]
  45215. 8012e5a: 6b3a ldr r2, [r7, #48] @ 0x30
  45216. 8012e5c: 69fb ldr r3, [r7, #28]
  45217. 8012e5e: 4413 add r3, r2
  45218. 8012e60: 3334 adds r3, #52 @ 0x34
  45219. 8012e62: 460a mov r2, r1
  45220. 8012e64: 701a strb r2, [r3, #0]
  45221. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  45222. configMAX_TASK_NAME_LEN characters just in case the memory after the
  45223. string is not accessible (extremely unlikely). */
  45224. if( pcName[ x ] == ( char ) 0x00 )
  45225. 8012e66: 68ba ldr r2, [r7, #8]
  45226. 8012e68: 69fb ldr r3, [r7, #28]
  45227. 8012e6a: 4413 add r3, r2
  45228. 8012e6c: 781b ldrb r3, [r3, #0]
  45229. 8012e6e: 2b00 cmp r3, #0
  45230. 8012e70: d006 beq.n 8012e80 <prvInitialiseNewTask+0x94>
  45231. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  45232. 8012e72: 69fb ldr r3, [r7, #28]
  45233. 8012e74: 3301 adds r3, #1
  45234. 8012e76: 61fb str r3, [r7, #28]
  45235. 8012e78: 69fb ldr r3, [r7, #28]
  45236. 8012e7a: 2b0f cmp r3, #15
  45237. 8012e7c: d9e9 bls.n 8012e52 <prvInitialiseNewTask+0x66>
  45238. 8012e7e: e000 b.n 8012e82 <prvInitialiseNewTask+0x96>
  45239. {
  45240. break;
  45241. 8012e80: bf00 nop
  45242. }
  45243. }
  45244. /* Ensure the name string is terminated in the case that the string length
  45245. was greater or equal to configMAX_TASK_NAME_LEN. */
  45246. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  45247. 8012e82: 6b3b ldr r3, [r7, #48] @ 0x30
  45248. 8012e84: 2200 movs r2, #0
  45249. 8012e86: f883 2043 strb.w r2, [r3, #67] @ 0x43
  45250. 8012e8a: e003 b.n 8012e94 <prvInitialiseNewTask+0xa8>
  45251. }
  45252. else
  45253. {
  45254. /* The task has not been given a name, so just ensure there is a NULL
  45255. terminator when it is read out. */
  45256. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  45257. 8012e8c: 6b3b ldr r3, [r7, #48] @ 0x30
  45258. 8012e8e: 2200 movs r2, #0
  45259. 8012e90: f883 2034 strb.w r2, [r3, #52] @ 0x34
  45260. }
  45261. /* This is used as an array index so must ensure it's not too large. First
  45262. remove the privilege bit if one is present. */
  45263. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  45264. 8012e94: 6abb ldr r3, [r7, #40] @ 0x28
  45265. 8012e96: 2b37 cmp r3, #55 @ 0x37
  45266. 8012e98: d901 bls.n 8012e9e <prvInitialiseNewTask+0xb2>
  45267. {
  45268. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  45269. 8012e9a: 2337 movs r3, #55 @ 0x37
  45270. 8012e9c: 62bb str r3, [r7, #40] @ 0x28
  45271. else
  45272. {
  45273. mtCOVERAGE_TEST_MARKER();
  45274. }
  45275. pxNewTCB->uxPriority = uxPriority;
  45276. 8012e9e: 6b3b ldr r3, [r7, #48] @ 0x30
  45277. 8012ea0: 6aba ldr r2, [r7, #40] @ 0x28
  45278. 8012ea2: 62da str r2, [r3, #44] @ 0x2c
  45279. #if ( configUSE_MUTEXES == 1 )
  45280. {
  45281. pxNewTCB->uxBasePriority = uxPriority;
  45282. 8012ea4: 6b3b ldr r3, [r7, #48] @ 0x30
  45283. 8012ea6: 6aba ldr r2, [r7, #40] @ 0x28
  45284. 8012ea8: 64da str r2, [r3, #76] @ 0x4c
  45285. pxNewTCB->uxMutexesHeld = 0;
  45286. 8012eaa: 6b3b ldr r3, [r7, #48] @ 0x30
  45287. 8012eac: 2200 movs r2, #0
  45288. 8012eae: 651a str r2, [r3, #80] @ 0x50
  45289. }
  45290. #endif /* configUSE_MUTEXES */
  45291. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  45292. 8012eb0: 6b3b ldr r3, [r7, #48] @ 0x30
  45293. 8012eb2: 3304 adds r3, #4
  45294. 8012eb4: 4618 mov r0, r3
  45295. 8012eb6: f7fe f9a5 bl 8011204 <vListInitialiseItem>
  45296. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  45297. 8012eba: 6b3b ldr r3, [r7, #48] @ 0x30
  45298. 8012ebc: 3318 adds r3, #24
  45299. 8012ebe: 4618 mov r0, r3
  45300. 8012ec0: f7fe f9a0 bl 8011204 <vListInitialiseItem>
  45301. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  45302. back to the containing TCB from a generic item in a list. */
  45303. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  45304. 8012ec4: 6b3b ldr r3, [r7, #48] @ 0x30
  45305. 8012ec6: 6b3a ldr r2, [r7, #48] @ 0x30
  45306. 8012ec8: 611a str r2, [r3, #16]
  45307. /* Event lists are always in priority order. */
  45308. 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. */
  45309. 8012eca: 6abb ldr r3, [r7, #40] @ 0x28
  45310. 8012ecc: f1c3 0238 rsb r2, r3, #56 @ 0x38
  45311. 8012ed0: 6b3b ldr r3, [r7, #48] @ 0x30
  45312. 8012ed2: 619a str r2, [r3, #24]
  45313. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  45314. 8012ed4: 6b3b ldr r3, [r7, #48] @ 0x30
  45315. 8012ed6: 6b3a ldr r2, [r7, #48] @ 0x30
  45316. 8012ed8: 625a str r2, [r3, #36] @ 0x24
  45317. }
  45318. #endif
  45319. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  45320. {
  45321. pxNewTCB->ulNotifiedValue = 0;
  45322. 8012eda: 6b3b ldr r3, [r7, #48] @ 0x30
  45323. 8012edc: 2200 movs r2, #0
  45324. 8012ede: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  45325. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  45326. 8012ee2: 6b3b ldr r3, [r7, #48] @ 0x30
  45327. 8012ee4: 2200 movs r2, #0
  45328. 8012ee6: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  45329. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  45330. {
  45331. /* Initialise this task's Newlib reent structure.
  45332. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  45333. for additional information. */
  45334. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  45335. 8012eea: 6b3b ldr r3, [r7, #48] @ 0x30
  45336. 8012eec: 3354 adds r3, #84 @ 0x54
  45337. 8012eee: 224c movs r2, #76 @ 0x4c
  45338. 8012ef0: 2100 movs r1, #0
  45339. 8012ef2: 4618 mov r0, r3
  45340. 8012ef4: f016 ff04 bl 8029d00 <memset>
  45341. 8012ef8: 6b3b ldr r3, [r7, #48] @ 0x30
  45342. 8012efa: 4a0d ldr r2, [pc, #52] @ (8012f30 <prvInitialiseNewTask+0x144>)
  45343. 8012efc: 659a str r2, [r3, #88] @ 0x58
  45344. 8012efe: 6b3b ldr r3, [r7, #48] @ 0x30
  45345. 8012f00: 4a0c ldr r2, [pc, #48] @ (8012f34 <prvInitialiseNewTask+0x148>)
  45346. 8012f02: 65da str r2, [r3, #92] @ 0x5c
  45347. 8012f04: 6b3b ldr r3, [r7, #48] @ 0x30
  45348. 8012f06: 4a0c ldr r2, [pc, #48] @ (8012f38 <prvInitialiseNewTask+0x14c>)
  45349. 8012f08: 661a str r2, [r3, #96] @ 0x60
  45350. }
  45351. #endif /* portSTACK_GROWTH */
  45352. }
  45353. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  45354. {
  45355. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  45356. 8012f0a: 683a ldr r2, [r7, #0]
  45357. 8012f0c: 68f9 ldr r1, [r7, #12]
  45358. 8012f0e: 69b8 ldr r0, [r7, #24]
  45359. 8012f10: f001 fce0 bl 80148d4 <pxPortInitialiseStack>
  45360. 8012f14: 4602 mov r2, r0
  45361. 8012f16: 6b3b ldr r3, [r7, #48] @ 0x30
  45362. 8012f18: 601a str r2, [r3, #0]
  45363. }
  45364. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  45365. }
  45366. #endif /* portUSING_MPU_WRAPPERS */
  45367. if( pxCreatedTask != NULL )
  45368. 8012f1a: 6afb ldr r3, [r7, #44] @ 0x2c
  45369. 8012f1c: 2b00 cmp r3, #0
  45370. 8012f1e: d002 beq.n 8012f26 <prvInitialiseNewTask+0x13a>
  45371. {
  45372. /* Pass the handle out in an anonymous way. The handle can be used to
  45373. change the created task's priority, delete the created task, etc.*/
  45374. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  45375. 8012f20: 6afb ldr r3, [r7, #44] @ 0x2c
  45376. 8012f22: 6b3a ldr r2, [r7, #48] @ 0x30
  45377. 8012f24: 601a str r2, [r3, #0]
  45378. }
  45379. else
  45380. {
  45381. mtCOVERAGE_TEST_MARKER();
  45382. }
  45383. }
  45384. 8012f26: bf00 nop
  45385. 8012f28: 3720 adds r7, #32
  45386. 8012f2a: 46bd mov sp, r7
  45387. 8012f2c: bd80 pop {r7, pc}
  45388. 8012f2e: bf00 nop
  45389. 8012f30: 2402b044 .word 0x2402b044
  45390. 8012f34: 2402b0ac .word 0x2402b0ac
  45391. 8012f38: 2402b114 .word 0x2402b114
  45392. 08012f3c <prvAddNewTaskToReadyList>:
  45393. /*-----------------------------------------------------------*/
  45394. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  45395. {
  45396. 8012f3c: b580 push {r7, lr}
  45397. 8012f3e: b082 sub sp, #8
  45398. 8012f40: af00 add r7, sp, #0
  45399. 8012f42: 6078 str r0, [r7, #4]
  45400. /* Ensure interrupts don't access the task lists while the lists are being
  45401. updated. */
  45402. taskENTER_CRITICAL();
  45403. 8012f44: f001 fdf8 bl 8014b38 <vPortEnterCritical>
  45404. {
  45405. uxCurrentNumberOfTasks++;
  45406. 8012f48: 4b2d ldr r3, [pc, #180] @ (8013000 <prvAddNewTaskToReadyList+0xc4>)
  45407. 8012f4a: 681b ldr r3, [r3, #0]
  45408. 8012f4c: 3301 adds r3, #1
  45409. 8012f4e: 4a2c ldr r2, [pc, #176] @ (8013000 <prvAddNewTaskToReadyList+0xc4>)
  45410. 8012f50: 6013 str r3, [r2, #0]
  45411. if( pxCurrentTCB == NULL )
  45412. 8012f52: 4b2c ldr r3, [pc, #176] @ (8013004 <prvAddNewTaskToReadyList+0xc8>)
  45413. 8012f54: 681b ldr r3, [r3, #0]
  45414. 8012f56: 2b00 cmp r3, #0
  45415. 8012f58: d109 bne.n 8012f6e <prvAddNewTaskToReadyList+0x32>
  45416. {
  45417. /* There are no other tasks, or all the other tasks are in
  45418. the suspended state - make this the current task. */
  45419. pxCurrentTCB = pxNewTCB;
  45420. 8012f5a: 4a2a ldr r2, [pc, #168] @ (8013004 <prvAddNewTaskToReadyList+0xc8>)
  45421. 8012f5c: 687b ldr r3, [r7, #4]
  45422. 8012f5e: 6013 str r3, [r2, #0]
  45423. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  45424. 8012f60: 4b27 ldr r3, [pc, #156] @ (8013000 <prvAddNewTaskToReadyList+0xc4>)
  45425. 8012f62: 681b ldr r3, [r3, #0]
  45426. 8012f64: 2b01 cmp r3, #1
  45427. 8012f66: d110 bne.n 8012f8a <prvAddNewTaskToReadyList+0x4e>
  45428. {
  45429. /* This is the first task to be created so do the preliminary
  45430. initialisation required. We will not recover if this call
  45431. fails, but we will report the failure. */
  45432. prvInitialiseTaskLists();
  45433. 8012f68: f000 fc76 bl 8013858 <prvInitialiseTaskLists>
  45434. 8012f6c: e00d b.n 8012f8a <prvAddNewTaskToReadyList+0x4e>
  45435. else
  45436. {
  45437. /* If the scheduler is not already running, make this task the
  45438. current task if it is the highest priority task to be created
  45439. so far. */
  45440. if( xSchedulerRunning == pdFALSE )
  45441. 8012f6e: 4b26 ldr r3, [pc, #152] @ (8013008 <prvAddNewTaskToReadyList+0xcc>)
  45442. 8012f70: 681b ldr r3, [r3, #0]
  45443. 8012f72: 2b00 cmp r3, #0
  45444. 8012f74: d109 bne.n 8012f8a <prvAddNewTaskToReadyList+0x4e>
  45445. {
  45446. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  45447. 8012f76: 4b23 ldr r3, [pc, #140] @ (8013004 <prvAddNewTaskToReadyList+0xc8>)
  45448. 8012f78: 681b ldr r3, [r3, #0]
  45449. 8012f7a: 6ada ldr r2, [r3, #44] @ 0x2c
  45450. 8012f7c: 687b ldr r3, [r7, #4]
  45451. 8012f7e: 6adb ldr r3, [r3, #44] @ 0x2c
  45452. 8012f80: 429a cmp r2, r3
  45453. 8012f82: d802 bhi.n 8012f8a <prvAddNewTaskToReadyList+0x4e>
  45454. {
  45455. pxCurrentTCB = pxNewTCB;
  45456. 8012f84: 4a1f ldr r2, [pc, #124] @ (8013004 <prvAddNewTaskToReadyList+0xc8>)
  45457. 8012f86: 687b ldr r3, [r7, #4]
  45458. 8012f88: 6013 str r3, [r2, #0]
  45459. {
  45460. mtCOVERAGE_TEST_MARKER();
  45461. }
  45462. }
  45463. uxTaskNumber++;
  45464. 8012f8a: 4b20 ldr r3, [pc, #128] @ (801300c <prvAddNewTaskToReadyList+0xd0>)
  45465. 8012f8c: 681b ldr r3, [r3, #0]
  45466. 8012f8e: 3301 adds r3, #1
  45467. 8012f90: 4a1e ldr r2, [pc, #120] @ (801300c <prvAddNewTaskToReadyList+0xd0>)
  45468. 8012f92: 6013 str r3, [r2, #0]
  45469. #if ( configUSE_TRACE_FACILITY == 1 )
  45470. {
  45471. /* Add a counter into the TCB for tracing only. */
  45472. pxNewTCB->uxTCBNumber = uxTaskNumber;
  45473. 8012f94: 4b1d ldr r3, [pc, #116] @ (801300c <prvAddNewTaskToReadyList+0xd0>)
  45474. 8012f96: 681a ldr r2, [r3, #0]
  45475. 8012f98: 687b ldr r3, [r7, #4]
  45476. 8012f9a: 645a str r2, [r3, #68] @ 0x44
  45477. }
  45478. #endif /* configUSE_TRACE_FACILITY */
  45479. traceTASK_CREATE( pxNewTCB );
  45480. prvAddTaskToReadyList( pxNewTCB );
  45481. 8012f9c: 687b ldr r3, [r7, #4]
  45482. 8012f9e: 6ada ldr r2, [r3, #44] @ 0x2c
  45483. 8012fa0: 4b1b ldr r3, [pc, #108] @ (8013010 <prvAddNewTaskToReadyList+0xd4>)
  45484. 8012fa2: 681b ldr r3, [r3, #0]
  45485. 8012fa4: 429a cmp r2, r3
  45486. 8012fa6: d903 bls.n 8012fb0 <prvAddNewTaskToReadyList+0x74>
  45487. 8012fa8: 687b ldr r3, [r7, #4]
  45488. 8012faa: 6adb ldr r3, [r3, #44] @ 0x2c
  45489. 8012fac: 4a18 ldr r2, [pc, #96] @ (8013010 <prvAddNewTaskToReadyList+0xd4>)
  45490. 8012fae: 6013 str r3, [r2, #0]
  45491. 8012fb0: 687b ldr r3, [r7, #4]
  45492. 8012fb2: 6ada ldr r2, [r3, #44] @ 0x2c
  45493. 8012fb4: 4613 mov r3, r2
  45494. 8012fb6: 009b lsls r3, r3, #2
  45495. 8012fb8: 4413 add r3, r2
  45496. 8012fba: 009b lsls r3, r3, #2
  45497. 8012fbc: 4a15 ldr r2, [pc, #84] @ (8013014 <prvAddNewTaskToReadyList+0xd8>)
  45498. 8012fbe: 441a add r2, r3
  45499. 8012fc0: 687b ldr r3, [r7, #4]
  45500. 8012fc2: 3304 adds r3, #4
  45501. 8012fc4: 4619 mov r1, r3
  45502. 8012fc6: 4610 mov r0, r2
  45503. 8012fc8: f7fe f929 bl 801121e <vListInsertEnd>
  45504. portSETUP_TCB( pxNewTCB );
  45505. }
  45506. taskEXIT_CRITICAL();
  45507. 8012fcc: f001 fde6 bl 8014b9c <vPortExitCritical>
  45508. if( xSchedulerRunning != pdFALSE )
  45509. 8012fd0: 4b0d ldr r3, [pc, #52] @ (8013008 <prvAddNewTaskToReadyList+0xcc>)
  45510. 8012fd2: 681b ldr r3, [r3, #0]
  45511. 8012fd4: 2b00 cmp r3, #0
  45512. 8012fd6: d00e beq.n 8012ff6 <prvAddNewTaskToReadyList+0xba>
  45513. {
  45514. /* If the created task is of a higher priority than the current task
  45515. then it should run now. */
  45516. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  45517. 8012fd8: 4b0a ldr r3, [pc, #40] @ (8013004 <prvAddNewTaskToReadyList+0xc8>)
  45518. 8012fda: 681b ldr r3, [r3, #0]
  45519. 8012fdc: 6ada ldr r2, [r3, #44] @ 0x2c
  45520. 8012fde: 687b ldr r3, [r7, #4]
  45521. 8012fe0: 6adb ldr r3, [r3, #44] @ 0x2c
  45522. 8012fe2: 429a cmp r2, r3
  45523. 8012fe4: d207 bcs.n 8012ff6 <prvAddNewTaskToReadyList+0xba>
  45524. {
  45525. taskYIELD_IF_USING_PREEMPTION();
  45526. 8012fe6: 4b0c ldr r3, [pc, #48] @ (8013018 <prvAddNewTaskToReadyList+0xdc>)
  45527. 8012fe8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  45528. 8012fec: 601a str r2, [r3, #0]
  45529. 8012fee: f3bf 8f4f dsb sy
  45530. 8012ff2: f3bf 8f6f isb sy
  45531. }
  45532. else
  45533. {
  45534. mtCOVERAGE_TEST_MARKER();
  45535. }
  45536. }
  45537. 8012ff6: bf00 nop
  45538. 8012ff8: 3708 adds r7, #8
  45539. 8012ffa: 46bd mov sp, r7
  45540. 8012ffc: bd80 pop {r7, pc}
  45541. 8012ffe: bf00 nop
  45542. 8013000: 24004164 .word 0x24004164
  45543. 8013004: 24003c90 .word 0x24003c90
  45544. 8013008: 24004170 .word 0x24004170
  45545. 801300c: 24004180 .word 0x24004180
  45546. 8013010: 2400416c .word 0x2400416c
  45547. 8013014: 24003c94 .word 0x24003c94
  45548. 8013018: e000ed04 .word 0xe000ed04
  45549. 0801301c <vTaskDelay>:
  45550. /*-----------------------------------------------------------*/
  45551. #if ( INCLUDE_vTaskDelay == 1 )
  45552. void vTaskDelay( const TickType_t xTicksToDelay )
  45553. {
  45554. 801301c: b580 push {r7, lr}
  45555. 801301e: b084 sub sp, #16
  45556. 8013020: af00 add r7, sp, #0
  45557. 8013022: 6078 str r0, [r7, #4]
  45558. BaseType_t xAlreadyYielded = pdFALSE;
  45559. 8013024: 2300 movs r3, #0
  45560. 8013026: 60fb str r3, [r7, #12]
  45561. /* A delay time of zero just forces a reschedule. */
  45562. if( xTicksToDelay > ( TickType_t ) 0U )
  45563. 8013028: 687b ldr r3, [r7, #4]
  45564. 801302a: 2b00 cmp r3, #0
  45565. 801302c: d018 beq.n 8013060 <vTaskDelay+0x44>
  45566. {
  45567. configASSERT( uxSchedulerSuspended == 0 );
  45568. 801302e: 4b14 ldr r3, [pc, #80] @ (8013080 <vTaskDelay+0x64>)
  45569. 8013030: 681b ldr r3, [r3, #0]
  45570. 8013032: 2b00 cmp r3, #0
  45571. 8013034: d00b beq.n 801304e <vTaskDelay+0x32>
  45572. __asm volatile
  45573. 8013036: f04f 0350 mov.w r3, #80 @ 0x50
  45574. 801303a: f383 8811 msr BASEPRI, r3
  45575. 801303e: f3bf 8f6f isb sy
  45576. 8013042: f3bf 8f4f dsb sy
  45577. 8013046: 60bb str r3, [r7, #8]
  45578. }
  45579. 8013048: bf00 nop
  45580. 801304a: bf00 nop
  45581. 801304c: e7fd b.n 801304a <vTaskDelay+0x2e>
  45582. vTaskSuspendAll();
  45583. 801304e: f000 f88b bl 8013168 <vTaskSuspendAll>
  45584. list or removed from the blocked list until the scheduler
  45585. is resumed.
  45586. This task cannot be in an event list as it is the currently
  45587. executing task. */
  45588. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  45589. 8013052: 2100 movs r1, #0
  45590. 8013054: 6878 ldr r0, [r7, #4]
  45591. 8013056: f001 f88f bl 8014178 <prvAddCurrentTaskToDelayedList>
  45592. }
  45593. xAlreadyYielded = xTaskResumeAll();
  45594. 801305a: f000 f893 bl 8013184 <xTaskResumeAll>
  45595. 801305e: 60f8 str r0, [r7, #12]
  45596. mtCOVERAGE_TEST_MARKER();
  45597. }
  45598. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  45599. have put ourselves to sleep. */
  45600. if( xAlreadyYielded == pdFALSE )
  45601. 8013060: 68fb ldr r3, [r7, #12]
  45602. 8013062: 2b00 cmp r3, #0
  45603. 8013064: d107 bne.n 8013076 <vTaskDelay+0x5a>
  45604. {
  45605. portYIELD_WITHIN_API();
  45606. 8013066: 4b07 ldr r3, [pc, #28] @ (8013084 <vTaskDelay+0x68>)
  45607. 8013068: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  45608. 801306c: 601a str r2, [r3, #0]
  45609. 801306e: f3bf 8f4f dsb sy
  45610. 8013072: f3bf 8f6f isb sy
  45611. }
  45612. else
  45613. {
  45614. mtCOVERAGE_TEST_MARKER();
  45615. }
  45616. }
  45617. 8013076: bf00 nop
  45618. 8013078: 3710 adds r7, #16
  45619. 801307a: 46bd mov sp, r7
  45620. 801307c: bd80 pop {r7, pc}
  45621. 801307e: bf00 nop
  45622. 8013080: 2400418c .word 0x2400418c
  45623. 8013084: e000ed04 .word 0xe000ed04
  45624. 08013088 <vTaskStartScheduler>:
  45625. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  45626. /*-----------------------------------------------------------*/
  45627. void vTaskStartScheduler( void )
  45628. {
  45629. 8013088: b580 push {r7, lr}
  45630. 801308a: b08a sub sp, #40 @ 0x28
  45631. 801308c: af04 add r7, sp, #16
  45632. BaseType_t xReturn;
  45633. /* Add the idle task at the lowest priority. */
  45634. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  45635. {
  45636. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  45637. 801308e: 2300 movs r3, #0
  45638. 8013090: 60bb str r3, [r7, #8]
  45639. StackType_t *pxIdleTaskStackBuffer = NULL;
  45640. 8013092: 2300 movs r3, #0
  45641. 8013094: 607b str r3, [r7, #4]
  45642. uint32_t ulIdleTaskStackSize;
  45643. /* The Idle task is created using user provided RAM - obtain the
  45644. address of the RAM then create the idle task. */
  45645. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  45646. 8013096: 463a mov r2, r7
  45647. 8013098: 1d39 adds r1, r7, #4
  45648. 801309a: f107 0308 add.w r3, r7, #8
  45649. 801309e: 4618 mov r0, r3
  45650. 80130a0: f7fe f85c bl 801115c <vApplicationGetIdleTaskMemory>
  45651. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  45652. 80130a4: 6839 ldr r1, [r7, #0]
  45653. 80130a6: 687b ldr r3, [r7, #4]
  45654. 80130a8: 68ba ldr r2, [r7, #8]
  45655. 80130aa: 9202 str r2, [sp, #8]
  45656. 80130ac: 9301 str r3, [sp, #4]
  45657. 80130ae: 2300 movs r3, #0
  45658. 80130b0: 9300 str r3, [sp, #0]
  45659. 80130b2: 2300 movs r3, #0
  45660. 80130b4: 460a mov r2, r1
  45661. 80130b6: 4924 ldr r1, [pc, #144] @ (8013148 <vTaskStartScheduler+0xc0>)
  45662. 80130b8: 4824 ldr r0, [pc, #144] @ (801314c <vTaskStartScheduler+0xc4>)
  45663. 80130ba: f7ff fdf1 bl 8012ca0 <xTaskCreateStatic>
  45664. 80130be: 4603 mov r3, r0
  45665. 80130c0: 4a23 ldr r2, [pc, #140] @ (8013150 <vTaskStartScheduler+0xc8>)
  45666. 80130c2: 6013 str r3, [r2, #0]
  45667. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  45668. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  45669. pxIdleTaskStackBuffer,
  45670. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  45671. if( xIdleTaskHandle != NULL )
  45672. 80130c4: 4b22 ldr r3, [pc, #136] @ (8013150 <vTaskStartScheduler+0xc8>)
  45673. 80130c6: 681b ldr r3, [r3, #0]
  45674. 80130c8: 2b00 cmp r3, #0
  45675. 80130ca: d002 beq.n 80130d2 <vTaskStartScheduler+0x4a>
  45676. {
  45677. xReturn = pdPASS;
  45678. 80130cc: 2301 movs r3, #1
  45679. 80130ce: 617b str r3, [r7, #20]
  45680. 80130d0: e001 b.n 80130d6 <vTaskStartScheduler+0x4e>
  45681. }
  45682. else
  45683. {
  45684. xReturn = pdFAIL;
  45685. 80130d2: 2300 movs r3, #0
  45686. 80130d4: 617b str r3, [r7, #20]
  45687. }
  45688. #endif /* configSUPPORT_STATIC_ALLOCATION */
  45689. #if ( configUSE_TIMERS == 1 )
  45690. {
  45691. if( xReturn == pdPASS )
  45692. 80130d6: 697b ldr r3, [r7, #20]
  45693. 80130d8: 2b01 cmp r3, #1
  45694. 80130da: d102 bne.n 80130e2 <vTaskStartScheduler+0x5a>
  45695. {
  45696. xReturn = xTimerCreateTimerTask();
  45697. 80130dc: f001 f8a0 bl 8014220 <xTimerCreateTimerTask>
  45698. 80130e0: 6178 str r0, [r7, #20]
  45699. mtCOVERAGE_TEST_MARKER();
  45700. }
  45701. }
  45702. #endif /* configUSE_TIMERS */
  45703. if( xReturn == pdPASS )
  45704. 80130e2: 697b ldr r3, [r7, #20]
  45705. 80130e4: 2b01 cmp r3, #1
  45706. 80130e6: d11b bne.n 8013120 <vTaskStartScheduler+0x98>
  45707. __asm volatile
  45708. 80130e8: f04f 0350 mov.w r3, #80 @ 0x50
  45709. 80130ec: f383 8811 msr BASEPRI, r3
  45710. 80130f0: f3bf 8f6f isb sy
  45711. 80130f4: f3bf 8f4f dsb sy
  45712. 80130f8: 613b str r3, [r7, #16]
  45713. }
  45714. 80130fa: bf00 nop
  45715. {
  45716. /* Switch Newlib's _impure_ptr variable to point to the _reent
  45717. structure specific to the task that will run first.
  45718. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  45719. for additional information. */
  45720. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  45721. 80130fc: 4b15 ldr r3, [pc, #84] @ (8013154 <vTaskStartScheduler+0xcc>)
  45722. 80130fe: 681b ldr r3, [r3, #0]
  45723. 8013100: 3354 adds r3, #84 @ 0x54
  45724. 8013102: 4a15 ldr r2, [pc, #84] @ (8013158 <vTaskStartScheduler+0xd0>)
  45725. 8013104: 6013 str r3, [r2, #0]
  45726. }
  45727. #endif /* configUSE_NEWLIB_REENTRANT */
  45728. xNextTaskUnblockTime = portMAX_DELAY;
  45729. 8013106: 4b15 ldr r3, [pc, #84] @ (801315c <vTaskStartScheduler+0xd4>)
  45730. 8013108: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  45731. 801310c: 601a str r2, [r3, #0]
  45732. xSchedulerRunning = pdTRUE;
  45733. 801310e: 4b14 ldr r3, [pc, #80] @ (8013160 <vTaskStartScheduler+0xd8>)
  45734. 8013110: 2201 movs r2, #1
  45735. 8013112: 601a str r2, [r3, #0]
  45736. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  45737. 8013114: 4b13 ldr r3, [pc, #76] @ (8013164 <vTaskStartScheduler+0xdc>)
  45738. 8013116: 2200 movs r2, #0
  45739. 8013118: 601a str r2, [r3, #0]
  45740. traceTASK_SWITCHED_IN();
  45741. /* Setting up the timer tick is hardware specific and thus in the
  45742. portable interface. */
  45743. if( xPortStartScheduler() != pdFALSE )
  45744. 801311a: f001 fc69 bl 80149f0 <xPortStartScheduler>
  45745. }
  45746. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  45747. meaning xIdleTaskHandle is not used anywhere else. */
  45748. ( void ) xIdleTaskHandle;
  45749. }
  45750. 801311e: e00f b.n 8013140 <vTaskStartScheduler+0xb8>
  45751. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  45752. 8013120: 697b ldr r3, [r7, #20]
  45753. 8013122: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  45754. 8013126: d10b bne.n 8013140 <vTaskStartScheduler+0xb8>
  45755. __asm volatile
  45756. 8013128: f04f 0350 mov.w r3, #80 @ 0x50
  45757. 801312c: f383 8811 msr BASEPRI, r3
  45758. 8013130: f3bf 8f6f isb sy
  45759. 8013134: f3bf 8f4f dsb sy
  45760. 8013138: 60fb str r3, [r7, #12]
  45761. }
  45762. 801313a: bf00 nop
  45763. 801313c: bf00 nop
  45764. 801313e: e7fd b.n 801313c <vTaskStartScheduler+0xb4>
  45765. }
  45766. 8013140: bf00 nop
  45767. 8013142: 3718 adds r7, #24
  45768. 8013144: 46bd mov sp, r7
  45769. 8013146: bd80 pop {r7, pc}
  45770. 8013148: 0802cbb4 .word 0x0802cbb4
  45771. 801314c: 08013829 .word 0x08013829
  45772. 8013150: 24004188 .word 0x24004188
  45773. 8013154: 24003c90 .word 0x24003c90
  45774. 8013158: 240001d4 .word 0x240001d4
  45775. 801315c: 24004184 .word 0x24004184
  45776. 8013160: 24004170 .word 0x24004170
  45777. 8013164: 24004168 .word 0x24004168
  45778. 08013168 <vTaskSuspendAll>:
  45779. vPortEndScheduler();
  45780. }
  45781. /*----------------------------------------------------------*/
  45782. void vTaskSuspendAll( void )
  45783. {
  45784. 8013168: b480 push {r7}
  45785. 801316a: af00 add r7, sp, #0
  45786. do not otherwise exhibit real time behaviour. */
  45787. portSOFTWARE_BARRIER();
  45788. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  45789. is used to allow calls to vTaskSuspendAll() to nest. */
  45790. ++uxSchedulerSuspended;
  45791. 801316c: 4b04 ldr r3, [pc, #16] @ (8013180 <vTaskSuspendAll+0x18>)
  45792. 801316e: 681b ldr r3, [r3, #0]
  45793. 8013170: 3301 adds r3, #1
  45794. 8013172: 4a03 ldr r2, [pc, #12] @ (8013180 <vTaskSuspendAll+0x18>)
  45795. 8013174: 6013 str r3, [r2, #0]
  45796. /* Enforces ordering for ports and optimised compilers that may otherwise place
  45797. the above increment elsewhere. */
  45798. portMEMORY_BARRIER();
  45799. }
  45800. 8013176: bf00 nop
  45801. 8013178: 46bd mov sp, r7
  45802. 801317a: f85d 7b04 ldr.w r7, [sp], #4
  45803. 801317e: 4770 bx lr
  45804. 8013180: 2400418c .word 0x2400418c
  45805. 08013184 <xTaskResumeAll>:
  45806. #endif /* configUSE_TICKLESS_IDLE */
  45807. /*----------------------------------------------------------*/
  45808. BaseType_t xTaskResumeAll( void )
  45809. {
  45810. 8013184: b580 push {r7, lr}
  45811. 8013186: b084 sub sp, #16
  45812. 8013188: af00 add r7, sp, #0
  45813. TCB_t *pxTCB = NULL;
  45814. 801318a: 2300 movs r3, #0
  45815. 801318c: 60fb str r3, [r7, #12]
  45816. BaseType_t xAlreadyYielded = pdFALSE;
  45817. 801318e: 2300 movs r3, #0
  45818. 8013190: 60bb str r3, [r7, #8]
  45819. /* If uxSchedulerSuspended is zero then this function does not match a
  45820. previous call to vTaskSuspendAll(). */
  45821. configASSERT( uxSchedulerSuspended );
  45822. 8013192: 4b42 ldr r3, [pc, #264] @ (801329c <xTaskResumeAll+0x118>)
  45823. 8013194: 681b ldr r3, [r3, #0]
  45824. 8013196: 2b00 cmp r3, #0
  45825. 8013198: d10b bne.n 80131b2 <xTaskResumeAll+0x2e>
  45826. __asm volatile
  45827. 801319a: f04f 0350 mov.w r3, #80 @ 0x50
  45828. 801319e: f383 8811 msr BASEPRI, r3
  45829. 80131a2: f3bf 8f6f isb sy
  45830. 80131a6: f3bf 8f4f dsb sy
  45831. 80131aa: 603b str r3, [r7, #0]
  45832. }
  45833. 80131ac: bf00 nop
  45834. 80131ae: bf00 nop
  45835. 80131b0: e7fd b.n 80131ae <xTaskResumeAll+0x2a>
  45836. /* It is possible that an ISR caused a task to be removed from an event
  45837. list while the scheduler was suspended. If this was the case then the
  45838. removed task will have been added to the xPendingReadyList. Once the
  45839. scheduler has been resumed it is safe to move all the pending ready
  45840. tasks from this list into their appropriate ready list. */
  45841. taskENTER_CRITICAL();
  45842. 80131b2: f001 fcc1 bl 8014b38 <vPortEnterCritical>
  45843. {
  45844. --uxSchedulerSuspended;
  45845. 80131b6: 4b39 ldr r3, [pc, #228] @ (801329c <xTaskResumeAll+0x118>)
  45846. 80131b8: 681b ldr r3, [r3, #0]
  45847. 80131ba: 3b01 subs r3, #1
  45848. 80131bc: 4a37 ldr r2, [pc, #220] @ (801329c <xTaskResumeAll+0x118>)
  45849. 80131be: 6013 str r3, [r2, #0]
  45850. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  45851. 80131c0: 4b36 ldr r3, [pc, #216] @ (801329c <xTaskResumeAll+0x118>)
  45852. 80131c2: 681b ldr r3, [r3, #0]
  45853. 80131c4: 2b00 cmp r3, #0
  45854. 80131c6: d162 bne.n 801328e <xTaskResumeAll+0x10a>
  45855. {
  45856. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  45857. 80131c8: 4b35 ldr r3, [pc, #212] @ (80132a0 <xTaskResumeAll+0x11c>)
  45858. 80131ca: 681b ldr r3, [r3, #0]
  45859. 80131cc: 2b00 cmp r3, #0
  45860. 80131ce: d05e beq.n 801328e <xTaskResumeAll+0x10a>
  45861. {
  45862. /* Move any readied tasks from the pending list into the
  45863. appropriate ready list. */
  45864. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  45865. 80131d0: e02f b.n 8013232 <xTaskResumeAll+0xae>
  45866. {
  45867. 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. */
  45868. 80131d2: 4b34 ldr r3, [pc, #208] @ (80132a4 <xTaskResumeAll+0x120>)
  45869. 80131d4: 68db ldr r3, [r3, #12]
  45870. 80131d6: 68db ldr r3, [r3, #12]
  45871. 80131d8: 60fb str r3, [r7, #12]
  45872. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  45873. 80131da: 68fb ldr r3, [r7, #12]
  45874. 80131dc: 3318 adds r3, #24
  45875. 80131de: 4618 mov r0, r3
  45876. 80131e0: f7fe f87a bl 80112d8 <uxListRemove>
  45877. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  45878. 80131e4: 68fb ldr r3, [r7, #12]
  45879. 80131e6: 3304 adds r3, #4
  45880. 80131e8: 4618 mov r0, r3
  45881. 80131ea: f7fe f875 bl 80112d8 <uxListRemove>
  45882. prvAddTaskToReadyList( pxTCB );
  45883. 80131ee: 68fb ldr r3, [r7, #12]
  45884. 80131f0: 6ada ldr r2, [r3, #44] @ 0x2c
  45885. 80131f2: 4b2d ldr r3, [pc, #180] @ (80132a8 <xTaskResumeAll+0x124>)
  45886. 80131f4: 681b ldr r3, [r3, #0]
  45887. 80131f6: 429a cmp r2, r3
  45888. 80131f8: d903 bls.n 8013202 <xTaskResumeAll+0x7e>
  45889. 80131fa: 68fb ldr r3, [r7, #12]
  45890. 80131fc: 6adb ldr r3, [r3, #44] @ 0x2c
  45891. 80131fe: 4a2a ldr r2, [pc, #168] @ (80132a8 <xTaskResumeAll+0x124>)
  45892. 8013200: 6013 str r3, [r2, #0]
  45893. 8013202: 68fb ldr r3, [r7, #12]
  45894. 8013204: 6ada ldr r2, [r3, #44] @ 0x2c
  45895. 8013206: 4613 mov r3, r2
  45896. 8013208: 009b lsls r3, r3, #2
  45897. 801320a: 4413 add r3, r2
  45898. 801320c: 009b lsls r3, r3, #2
  45899. 801320e: 4a27 ldr r2, [pc, #156] @ (80132ac <xTaskResumeAll+0x128>)
  45900. 8013210: 441a add r2, r3
  45901. 8013212: 68fb ldr r3, [r7, #12]
  45902. 8013214: 3304 adds r3, #4
  45903. 8013216: 4619 mov r1, r3
  45904. 8013218: 4610 mov r0, r2
  45905. 801321a: f7fe f800 bl 801121e <vListInsertEnd>
  45906. /* If the moved task has a priority higher than the current
  45907. task then a yield must be performed. */
  45908. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  45909. 801321e: 68fb ldr r3, [r7, #12]
  45910. 8013220: 6ada ldr r2, [r3, #44] @ 0x2c
  45911. 8013222: 4b23 ldr r3, [pc, #140] @ (80132b0 <xTaskResumeAll+0x12c>)
  45912. 8013224: 681b ldr r3, [r3, #0]
  45913. 8013226: 6adb ldr r3, [r3, #44] @ 0x2c
  45914. 8013228: 429a cmp r2, r3
  45915. 801322a: d302 bcc.n 8013232 <xTaskResumeAll+0xae>
  45916. {
  45917. xYieldPending = pdTRUE;
  45918. 801322c: 4b21 ldr r3, [pc, #132] @ (80132b4 <xTaskResumeAll+0x130>)
  45919. 801322e: 2201 movs r2, #1
  45920. 8013230: 601a str r2, [r3, #0]
  45921. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  45922. 8013232: 4b1c ldr r3, [pc, #112] @ (80132a4 <xTaskResumeAll+0x120>)
  45923. 8013234: 681b ldr r3, [r3, #0]
  45924. 8013236: 2b00 cmp r3, #0
  45925. 8013238: d1cb bne.n 80131d2 <xTaskResumeAll+0x4e>
  45926. {
  45927. mtCOVERAGE_TEST_MARKER();
  45928. }
  45929. }
  45930. if( pxTCB != NULL )
  45931. 801323a: 68fb ldr r3, [r7, #12]
  45932. 801323c: 2b00 cmp r3, #0
  45933. 801323e: d001 beq.n 8013244 <xTaskResumeAll+0xc0>
  45934. which may have prevented the next unblock time from being
  45935. re-calculated, in which case re-calculate it now. Mainly
  45936. important for low power tickless implementations, where
  45937. this can prevent an unnecessary exit from low power
  45938. state. */
  45939. prvResetNextTaskUnblockTime();
  45940. 8013240: f000 fbae bl 80139a0 <prvResetNextTaskUnblockTime>
  45941. /* If any ticks occurred while the scheduler was suspended then
  45942. they should be processed now. This ensures the tick count does
  45943. not slip, and that any delayed tasks are resumed at the correct
  45944. time. */
  45945. {
  45946. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  45947. 8013244: 4b1c ldr r3, [pc, #112] @ (80132b8 <xTaskResumeAll+0x134>)
  45948. 8013246: 681b ldr r3, [r3, #0]
  45949. 8013248: 607b str r3, [r7, #4]
  45950. if( xPendedCounts > ( TickType_t ) 0U )
  45951. 801324a: 687b ldr r3, [r7, #4]
  45952. 801324c: 2b00 cmp r3, #0
  45953. 801324e: d010 beq.n 8013272 <xTaskResumeAll+0xee>
  45954. {
  45955. do
  45956. {
  45957. if( xTaskIncrementTick() != pdFALSE )
  45958. 8013250: f000 f858 bl 8013304 <xTaskIncrementTick>
  45959. 8013254: 4603 mov r3, r0
  45960. 8013256: 2b00 cmp r3, #0
  45961. 8013258: d002 beq.n 8013260 <xTaskResumeAll+0xdc>
  45962. {
  45963. xYieldPending = pdTRUE;
  45964. 801325a: 4b16 ldr r3, [pc, #88] @ (80132b4 <xTaskResumeAll+0x130>)
  45965. 801325c: 2201 movs r2, #1
  45966. 801325e: 601a str r2, [r3, #0]
  45967. }
  45968. else
  45969. {
  45970. mtCOVERAGE_TEST_MARKER();
  45971. }
  45972. --xPendedCounts;
  45973. 8013260: 687b ldr r3, [r7, #4]
  45974. 8013262: 3b01 subs r3, #1
  45975. 8013264: 607b str r3, [r7, #4]
  45976. } while( xPendedCounts > ( TickType_t ) 0U );
  45977. 8013266: 687b ldr r3, [r7, #4]
  45978. 8013268: 2b00 cmp r3, #0
  45979. 801326a: d1f1 bne.n 8013250 <xTaskResumeAll+0xcc>
  45980. xPendedTicks = 0;
  45981. 801326c: 4b12 ldr r3, [pc, #72] @ (80132b8 <xTaskResumeAll+0x134>)
  45982. 801326e: 2200 movs r2, #0
  45983. 8013270: 601a str r2, [r3, #0]
  45984. {
  45985. mtCOVERAGE_TEST_MARKER();
  45986. }
  45987. }
  45988. if( xYieldPending != pdFALSE )
  45989. 8013272: 4b10 ldr r3, [pc, #64] @ (80132b4 <xTaskResumeAll+0x130>)
  45990. 8013274: 681b ldr r3, [r3, #0]
  45991. 8013276: 2b00 cmp r3, #0
  45992. 8013278: d009 beq.n 801328e <xTaskResumeAll+0x10a>
  45993. {
  45994. #if( configUSE_PREEMPTION != 0 )
  45995. {
  45996. xAlreadyYielded = pdTRUE;
  45997. 801327a: 2301 movs r3, #1
  45998. 801327c: 60bb str r3, [r7, #8]
  45999. }
  46000. #endif
  46001. taskYIELD_IF_USING_PREEMPTION();
  46002. 801327e: 4b0f ldr r3, [pc, #60] @ (80132bc <xTaskResumeAll+0x138>)
  46003. 8013280: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46004. 8013284: 601a str r2, [r3, #0]
  46005. 8013286: f3bf 8f4f dsb sy
  46006. 801328a: f3bf 8f6f isb sy
  46007. else
  46008. {
  46009. mtCOVERAGE_TEST_MARKER();
  46010. }
  46011. }
  46012. taskEXIT_CRITICAL();
  46013. 801328e: f001 fc85 bl 8014b9c <vPortExitCritical>
  46014. return xAlreadyYielded;
  46015. 8013292: 68bb ldr r3, [r7, #8]
  46016. }
  46017. 8013294: 4618 mov r0, r3
  46018. 8013296: 3710 adds r7, #16
  46019. 8013298: 46bd mov sp, r7
  46020. 801329a: bd80 pop {r7, pc}
  46021. 801329c: 2400418c .word 0x2400418c
  46022. 80132a0: 24004164 .word 0x24004164
  46023. 80132a4: 24004124 .word 0x24004124
  46024. 80132a8: 2400416c .word 0x2400416c
  46025. 80132ac: 24003c94 .word 0x24003c94
  46026. 80132b0: 24003c90 .word 0x24003c90
  46027. 80132b4: 24004178 .word 0x24004178
  46028. 80132b8: 24004174 .word 0x24004174
  46029. 80132bc: e000ed04 .word 0xe000ed04
  46030. 080132c0 <xTaskGetTickCount>:
  46031. /*-----------------------------------------------------------*/
  46032. TickType_t xTaskGetTickCount( void )
  46033. {
  46034. 80132c0: b480 push {r7}
  46035. 80132c2: b083 sub sp, #12
  46036. 80132c4: af00 add r7, sp, #0
  46037. TickType_t xTicks;
  46038. /* Critical section required if running on a 16 bit processor. */
  46039. portTICK_TYPE_ENTER_CRITICAL();
  46040. {
  46041. xTicks = xTickCount;
  46042. 80132c6: 4b05 ldr r3, [pc, #20] @ (80132dc <xTaskGetTickCount+0x1c>)
  46043. 80132c8: 681b ldr r3, [r3, #0]
  46044. 80132ca: 607b str r3, [r7, #4]
  46045. }
  46046. portTICK_TYPE_EXIT_CRITICAL();
  46047. return xTicks;
  46048. 80132cc: 687b ldr r3, [r7, #4]
  46049. }
  46050. 80132ce: 4618 mov r0, r3
  46051. 80132d0: 370c adds r7, #12
  46052. 80132d2: 46bd mov sp, r7
  46053. 80132d4: f85d 7b04 ldr.w r7, [sp], #4
  46054. 80132d8: 4770 bx lr
  46055. 80132da: bf00 nop
  46056. 80132dc: 24004168 .word 0x24004168
  46057. 080132e0 <xTaskGetTickCountFromISR>:
  46058. /*-----------------------------------------------------------*/
  46059. TickType_t xTaskGetTickCountFromISR( void )
  46060. {
  46061. 80132e0: b580 push {r7, lr}
  46062. 80132e2: b082 sub sp, #8
  46063. 80132e4: af00 add r7, sp, #0
  46064. that have been assigned a priority at or (logically) below the maximum
  46065. system call interrupt priority. FreeRTOS maintains a separate interrupt
  46066. safe API to ensure interrupt entry is as fast and as simple as possible.
  46067. More information (albeit Cortex-M specific) is provided on the following
  46068. link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */
  46069. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  46070. 80132e6: f001 fd07 bl 8014cf8 <vPortValidateInterruptPriority>
  46071. uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR();
  46072. 80132ea: 2300 movs r3, #0
  46073. 80132ec: 607b str r3, [r7, #4]
  46074. {
  46075. xReturn = xTickCount;
  46076. 80132ee: 4b04 ldr r3, [pc, #16] @ (8013300 <xTaskGetTickCountFromISR+0x20>)
  46077. 80132f0: 681b ldr r3, [r3, #0]
  46078. 80132f2: 603b str r3, [r7, #0]
  46079. }
  46080. portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  46081. return xReturn;
  46082. 80132f4: 683b ldr r3, [r7, #0]
  46083. }
  46084. 80132f6: 4618 mov r0, r3
  46085. 80132f8: 3708 adds r7, #8
  46086. 80132fa: 46bd mov sp, r7
  46087. 80132fc: bd80 pop {r7, pc}
  46088. 80132fe: bf00 nop
  46089. 8013300: 24004168 .word 0x24004168
  46090. 08013304 <xTaskIncrementTick>:
  46091. #endif /* INCLUDE_xTaskAbortDelay */
  46092. /*----------------------------------------------------------*/
  46093. BaseType_t xTaskIncrementTick( void )
  46094. {
  46095. 8013304: b580 push {r7, lr}
  46096. 8013306: b086 sub sp, #24
  46097. 8013308: af00 add r7, sp, #0
  46098. TCB_t * pxTCB;
  46099. TickType_t xItemValue;
  46100. BaseType_t xSwitchRequired = pdFALSE;
  46101. 801330a: 2300 movs r3, #0
  46102. 801330c: 617b str r3, [r7, #20]
  46103. /* Called by the portable layer each time a tick interrupt occurs.
  46104. Increments the tick then checks to see if the new tick value will cause any
  46105. tasks to be unblocked. */
  46106. traceTASK_INCREMENT_TICK( xTickCount );
  46107. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  46108. 801330e: 4b4f ldr r3, [pc, #316] @ (801344c <xTaskIncrementTick+0x148>)
  46109. 8013310: 681b ldr r3, [r3, #0]
  46110. 8013312: 2b00 cmp r3, #0
  46111. 8013314: f040 8090 bne.w 8013438 <xTaskIncrementTick+0x134>
  46112. {
  46113. /* Minor optimisation. The tick count cannot change in this
  46114. block. */
  46115. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  46116. 8013318: 4b4d ldr r3, [pc, #308] @ (8013450 <xTaskIncrementTick+0x14c>)
  46117. 801331a: 681b ldr r3, [r3, #0]
  46118. 801331c: 3301 adds r3, #1
  46119. 801331e: 613b str r3, [r7, #16]
  46120. /* Increment the RTOS tick, switching the delayed and overflowed
  46121. delayed lists if it wraps to 0. */
  46122. xTickCount = xConstTickCount;
  46123. 8013320: 4a4b ldr r2, [pc, #300] @ (8013450 <xTaskIncrementTick+0x14c>)
  46124. 8013322: 693b ldr r3, [r7, #16]
  46125. 8013324: 6013 str r3, [r2, #0]
  46126. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  46127. 8013326: 693b ldr r3, [r7, #16]
  46128. 8013328: 2b00 cmp r3, #0
  46129. 801332a: d121 bne.n 8013370 <xTaskIncrementTick+0x6c>
  46130. {
  46131. taskSWITCH_DELAYED_LISTS();
  46132. 801332c: 4b49 ldr r3, [pc, #292] @ (8013454 <xTaskIncrementTick+0x150>)
  46133. 801332e: 681b ldr r3, [r3, #0]
  46134. 8013330: 681b ldr r3, [r3, #0]
  46135. 8013332: 2b00 cmp r3, #0
  46136. 8013334: d00b beq.n 801334e <xTaskIncrementTick+0x4a>
  46137. __asm volatile
  46138. 8013336: f04f 0350 mov.w r3, #80 @ 0x50
  46139. 801333a: f383 8811 msr BASEPRI, r3
  46140. 801333e: f3bf 8f6f isb sy
  46141. 8013342: f3bf 8f4f dsb sy
  46142. 8013346: 603b str r3, [r7, #0]
  46143. }
  46144. 8013348: bf00 nop
  46145. 801334a: bf00 nop
  46146. 801334c: e7fd b.n 801334a <xTaskIncrementTick+0x46>
  46147. 801334e: 4b41 ldr r3, [pc, #260] @ (8013454 <xTaskIncrementTick+0x150>)
  46148. 8013350: 681b ldr r3, [r3, #0]
  46149. 8013352: 60fb str r3, [r7, #12]
  46150. 8013354: 4b40 ldr r3, [pc, #256] @ (8013458 <xTaskIncrementTick+0x154>)
  46151. 8013356: 681b ldr r3, [r3, #0]
  46152. 8013358: 4a3e ldr r2, [pc, #248] @ (8013454 <xTaskIncrementTick+0x150>)
  46153. 801335a: 6013 str r3, [r2, #0]
  46154. 801335c: 4a3e ldr r2, [pc, #248] @ (8013458 <xTaskIncrementTick+0x154>)
  46155. 801335e: 68fb ldr r3, [r7, #12]
  46156. 8013360: 6013 str r3, [r2, #0]
  46157. 8013362: 4b3e ldr r3, [pc, #248] @ (801345c <xTaskIncrementTick+0x158>)
  46158. 8013364: 681b ldr r3, [r3, #0]
  46159. 8013366: 3301 adds r3, #1
  46160. 8013368: 4a3c ldr r2, [pc, #240] @ (801345c <xTaskIncrementTick+0x158>)
  46161. 801336a: 6013 str r3, [r2, #0]
  46162. 801336c: f000 fb18 bl 80139a0 <prvResetNextTaskUnblockTime>
  46163. /* See if this tick has made a timeout expire. Tasks are stored in
  46164. the queue in the order of their wake time - meaning once one task
  46165. has been found whose block time has not expired there is no need to
  46166. look any further down the list. */
  46167. if( xConstTickCount >= xNextTaskUnblockTime )
  46168. 8013370: 4b3b ldr r3, [pc, #236] @ (8013460 <xTaskIncrementTick+0x15c>)
  46169. 8013372: 681b ldr r3, [r3, #0]
  46170. 8013374: 693a ldr r2, [r7, #16]
  46171. 8013376: 429a cmp r2, r3
  46172. 8013378: d349 bcc.n 801340e <xTaskIncrementTick+0x10a>
  46173. {
  46174. for( ;; )
  46175. {
  46176. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  46177. 801337a: 4b36 ldr r3, [pc, #216] @ (8013454 <xTaskIncrementTick+0x150>)
  46178. 801337c: 681b ldr r3, [r3, #0]
  46179. 801337e: 681b ldr r3, [r3, #0]
  46180. 8013380: 2b00 cmp r3, #0
  46181. 8013382: d104 bne.n 801338e <xTaskIncrementTick+0x8a>
  46182. /* The delayed list is empty. Set xNextTaskUnblockTime
  46183. to the maximum possible value so it is extremely
  46184. unlikely that the
  46185. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  46186. next time through. */
  46187. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  46188. 8013384: 4b36 ldr r3, [pc, #216] @ (8013460 <xTaskIncrementTick+0x15c>)
  46189. 8013386: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  46190. 801338a: 601a str r2, [r3, #0]
  46191. break;
  46192. 801338c: e03f b.n 801340e <xTaskIncrementTick+0x10a>
  46193. {
  46194. /* The delayed list is not empty, get the value of the
  46195. item at the head of the delayed list. This is the time
  46196. at which the task at the head of the delayed list must
  46197. be removed from the Blocked state. */
  46198. 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. */
  46199. 801338e: 4b31 ldr r3, [pc, #196] @ (8013454 <xTaskIncrementTick+0x150>)
  46200. 8013390: 681b ldr r3, [r3, #0]
  46201. 8013392: 68db ldr r3, [r3, #12]
  46202. 8013394: 68db ldr r3, [r3, #12]
  46203. 8013396: 60bb str r3, [r7, #8]
  46204. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  46205. 8013398: 68bb ldr r3, [r7, #8]
  46206. 801339a: 685b ldr r3, [r3, #4]
  46207. 801339c: 607b str r3, [r7, #4]
  46208. if( xConstTickCount < xItemValue )
  46209. 801339e: 693a ldr r2, [r7, #16]
  46210. 80133a0: 687b ldr r3, [r7, #4]
  46211. 80133a2: 429a cmp r2, r3
  46212. 80133a4: d203 bcs.n 80133ae <xTaskIncrementTick+0xaa>
  46213. /* It is not time to unblock this item yet, but the
  46214. item value is the time at which the task at the head
  46215. of the blocked list must be removed from the Blocked
  46216. state - so record the item value in
  46217. xNextTaskUnblockTime. */
  46218. xNextTaskUnblockTime = xItemValue;
  46219. 80133a6: 4a2e ldr r2, [pc, #184] @ (8013460 <xTaskIncrementTick+0x15c>)
  46220. 80133a8: 687b ldr r3, [r7, #4]
  46221. 80133aa: 6013 str r3, [r2, #0]
  46222. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  46223. 80133ac: e02f b.n 801340e <xTaskIncrementTick+0x10a>
  46224. {
  46225. mtCOVERAGE_TEST_MARKER();
  46226. }
  46227. /* It is time to remove the item from the Blocked state. */
  46228. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  46229. 80133ae: 68bb ldr r3, [r7, #8]
  46230. 80133b0: 3304 adds r3, #4
  46231. 80133b2: 4618 mov r0, r3
  46232. 80133b4: f7fd ff90 bl 80112d8 <uxListRemove>
  46233. /* Is the task waiting on an event also? If so remove
  46234. it from the event list. */
  46235. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  46236. 80133b8: 68bb ldr r3, [r7, #8]
  46237. 80133ba: 6a9b ldr r3, [r3, #40] @ 0x28
  46238. 80133bc: 2b00 cmp r3, #0
  46239. 80133be: d004 beq.n 80133ca <xTaskIncrementTick+0xc6>
  46240. {
  46241. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  46242. 80133c0: 68bb ldr r3, [r7, #8]
  46243. 80133c2: 3318 adds r3, #24
  46244. 80133c4: 4618 mov r0, r3
  46245. 80133c6: f7fd ff87 bl 80112d8 <uxListRemove>
  46246. mtCOVERAGE_TEST_MARKER();
  46247. }
  46248. /* Place the unblocked task into the appropriate ready
  46249. list. */
  46250. prvAddTaskToReadyList( pxTCB );
  46251. 80133ca: 68bb ldr r3, [r7, #8]
  46252. 80133cc: 6ada ldr r2, [r3, #44] @ 0x2c
  46253. 80133ce: 4b25 ldr r3, [pc, #148] @ (8013464 <xTaskIncrementTick+0x160>)
  46254. 80133d0: 681b ldr r3, [r3, #0]
  46255. 80133d2: 429a cmp r2, r3
  46256. 80133d4: d903 bls.n 80133de <xTaskIncrementTick+0xda>
  46257. 80133d6: 68bb ldr r3, [r7, #8]
  46258. 80133d8: 6adb ldr r3, [r3, #44] @ 0x2c
  46259. 80133da: 4a22 ldr r2, [pc, #136] @ (8013464 <xTaskIncrementTick+0x160>)
  46260. 80133dc: 6013 str r3, [r2, #0]
  46261. 80133de: 68bb ldr r3, [r7, #8]
  46262. 80133e0: 6ada ldr r2, [r3, #44] @ 0x2c
  46263. 80133e2: 4613 mov r3, r2
  46264. 80133e4: 009b lsls r3, r3, #2
  46265. 80133e6: 4413 add r3, r2
  46266. 80133e8: 009b lsls r3, r3, #2
  46267. 80133ea: 4a1f ldr r2, [pc, #124] @ (8013468 <xTaskIncrementTick+0x164>)
  46268. 80133ec: 441a add r2, r3
  46269. 80133ee: 68bb ldr r3, [r7, #8]
  46270. 80133f0: 3304 adds r3, #4
  46271. 80133f2: 4619 mov r1, r3
  46272. 80133f4: 4610 mov r0, r2
  46273. 80133f6: f7fd ff12 bl 801121e <vListInsertEnd>
  46274. {
  46275. /* Preemption is on, but a context switch should
  46276. only be performed if the unblocked task has a
  46277. priority that is equal to or higher than the
  46278. currently executing task. */
  46279. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  46280. 80133fa: 68bb ldr r3, [r7, #8]
  46281. 80133fc: 6ada ldr r2, [r3, #44] @ 0x2c
  46282. 80133fe: 4b1b ldr r3, [pc, #108] @ (801346c <xTaskIncrementTick+0x168>)
  46283. 8013400: 681b ldr r3, [r3, #0]
  46284. 8013402: 6adb ldr r3, [r3, #44] @ 0x2c
  46285. 8013404: 429a cmp r2, r3
  46286. 8013406: d3b8 bcc.n 801337a <xTaskIncrementTick+0x76>
  46287. {
  46288. xSwitchRequired = pdTRUE;
  46289. 8013408: 2301 movs r3, #1
  46290. 801340a: 617b str r3, [r7, #20]
  46291. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  46292. 801340c: e7b5 b.n 801337a <xTaskIncrementTick+0x76>
  46293. /* Tasks of equal priority to the currently running task will share
  46294. processing time (time slice) if preemption is on, and the application
  46295. writer has not explicitly turned time slicing off. */
  46296. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  46297. {
  46298. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  46299. 801340e: 4b17 ldr r3, [pc, #92] @ (801346c <xTaskIncrementTick+0x168>)
  46300. 8013410: 681b ldr r3, [r3, #0]
  46301. 8013412: 6ada ldr r2, [r3, #44] @ 0x2c
  46302. 8013414: 4914 ldr r1, [pc, #80] @ (8013468 <xTaskIncrementTick+0x164>)
  46303. 8013416: 4613 mov r3, r2
  46304. 8013418: 009b lsls r3, r3, #2
  46305. 801341a: 4413 add r3, r2
  46306. 801341c: 009b lsls r3, r3, #2
  46307. 801341e: 440b add r3, r1
  46308. 8013420: 681b ldr r3, [r3, #0]
  46309. 8013422: 2b01 cmp r3, #1
  46310. 8013424: d901 bls.n 801342a <xTaskIncrementTick+0x126>
  46311. {
  46312. xSwitchRequired = pdTRUE;
  46313. 8013426: 2301 movs r3, #1
  46314. 8013428: 617b str r3, [r7, #20]
  46315. }
  46316. #endif /* configUSE_TICK_HOOK */
  46317. #if ( configUSE_PREEMPTION == 1 )
  46318. {
  46319. if( xYieldPending != pdFALSE )
  46320. 801342a: 4b11 ldr r3, [pc, #68] @ (8013470 <xTaskIncrementTick+0x16c>)
  46321. 801342c: 681b ldr r3, [r3, #0]
  46322. 801342e: 2b00 cmp r3, #0
  46323. 8013430: d007 beq.n 8013442 <xTaskIncrementTick+0x13e>
  46324. {
  46325. xSwitchRequired = pdTRUE;
  46326. 8013432: 2301 movs r3, #1
  46327. 8013434: 617b str r3, [r7, #20]
  46328. 8013436: e004 b.n 8013442 <xTaskIncrementTick+0x13e>
  46329. }
  46330. #endif /* configUSE_PREEMPTION */
  46331. }
  46332. else
  46333. {
  46334. ++xPendedTicks;
  46335. 8013438: 4b0e ldr r3, [pc, #56] @ (8013474 <xTaskIncrementTick+0x170>)
  46336. 801343a: 681b ldr r3, [r3, #0]
  46337. 801343c: 3301 adds r3, #1
  46338. 801343e: 4a0d ldr r2, [pc, #52] @ (8013474 <xTaskIncrementTick+0x170>)
  46339. 8013440: 6013 str r3, [r2, #0]
  46340. vApplicationTickHook();
  46341. }
  46342. #endif
  46343. }
  46344. return xSwitchRequired;
  46345. 8013442: 697b ldr r3, [r7, #20]
  46346. }
  46347. 8013444: 4618 mov r0, r3
  46348. 8013446: 3718 adds r7, #24
  46349. 8013448: 46bd mov sp, r7
  46350. 801344a: bd80 pop {r7, pc}
  46351. 801344c: 2400418c .word 0x2400418c
  46352. 8013450: 24004168 .word 0x24004168
  46353. 8013454: 2400411c .word 0x2400411c
  46354. 8013458: 24004120 .word 0x24004120
  46355. 801345c: 2400417c .word 0x2400417c
  46356. 8013460: 24004184 .word 0x24004184
  46357. 8013464: 2400416c .word 0x2400416c
  46358. 8013468: 24003c94 .word 0x24003c94
  46359. 801346c: 24003c90 .word 0x24003c90
  46360. 8013470: 24004178 .word 0x24004178
  46361. 8013474: 24004174 .word 0x24004174
  46362. 08013478 <vTaskSwitchContext>:
  46363. #endif /* configUSE_APPLICATION_TASK_TAG */
  46364. /*-----------------------------------------------------------*/
  46365. void vTaskSwitchContext( void )
  46366. {
  46367. 8013478: b580 push {r7, lr}
  46368. 801347a: b084 sub sp, #16
  46369. 801347c: af00 add r7, sp, #0
  46370. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  46371. 801347e: 4b32 ldr r3, [pc, #200] @ (8013548 <vTaskSwitchContext+0xd0>)
  46372. 8013480: 681b ldr r3, [r3, #0]
  46373. 8013482: 2b00 cmp r3, #0
  46374. 8013484: d003 beq.n 801348e <vTaskSwitchContext+0x16>
  46375. {
  46376. /* The scheduler is currently suspended - do not allow a context
  46377. switch. */
  46378. xYieldPending = pdTRUE;
  46379. 8013486: 4b31 ldr r3, [pc, #196] @ (801354c <vTaskSwitchContext+0xd4>)
  46380. 8013488: 2201 movs r2, #1
  46381. 801348a: 601a str r2, [r3, #0]
  46382. for additional information. */
  46383. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  46384. }
  46385. #endif /* configUSE_NEWLIB_REENTRANT */
  46386. }
  46387. }
  46388. 801348c: e058 b.n 8013540 <vTaskSwitchContext+0xc8>
  46389. xYieldPending = pdFALSE;
  46390. 801348e: 4b2f ldr r3, [pc, #188] @ (801354c <vTaskSwitchContext+0xd4>)
  46391. 8013490: 2200 movs r2, #0
  46392. 8013492: 601a str r2, [r3, #0]
  46393. taskCHECK_FOR_STACK_OVERFLOW();
  46394. 8013494: 4b2e ldr r3, [pc, #184] @ (8013550 <vTaskSwitchContext+0xd8>)
  46395. 8013496: 681b ldr r3, [r3, #0]
  46396. 8013498: 681a ldr r2, [r3, #0]
  46397. 801349a: 4b2d ldr r3, [pc, #180] @ (8013550 <vTaskSwitchContext+0xd8>)
  46398. 801349c: 681b ldr r3, [r3, #0]
  46399. 801349e: 6b1b ldr r3, [r3, #48] @ 0x30
  46400. 80134a0: 429a cmp r2, r3
  46401. 80134a2: d808 bhi.n 80134b6 <vTaskSwitchContext+0x3e>
  46402. 80134a4: 4b2a ldr r3, [pc, #168] @ (8013550 <vTaskSwitchContext+0xd8>)
  46403. 80134a6: 681a ldr r2, [r3, #0]
  46404. 80134a8: 4b29 ldr r3, [pc, #164] @ (8013550 <vTaskSwitchContext+0xd8>)
  46405. 80134aa: 681b ldr r3, [r3, #0]
  46406. 80134ac: 3334 adds r3, #52 @ 0x34
  46407. 80134ae: 4619 mov r1, r3
  46408. 80134b0: 4610 mov r0, r2
  46409. 80134b2: f7ee fbf6 bl 8001ca2 <vApplicationStackOverflowHook>
  46410. 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. */
  46411. 80134b6: 4b27 ldr r3, [pc, #156] @ (8013554 <vTaskSwitchContext+0xdc>)
  46412. 80134b8: 681b ldr r3, [r3, #0]
  46413. 80134ba: 60fb str r3, [r7, #12]
  46414. 80134bc: e011 b.n 80134e2 <vTaskSwitchContext+0x6a>
  46415. 80134be: 68fb ldr r3, [r7, #12]
  46416. 80134c0: 2b00 cmp r3, #0
  46417. 80134c2: d10b bne.n 80134dc <vTaskSwitchContext+0x64>
  46418. __asm volatile
  46419. 80134c4: f04f 0350 mov.w r3, #80 @ 0x50
  46420. 80134c8: f383 8811 msr BASEPRI, r3
  46421. 80134cc: f3bf 8f6f isb sy
  46422. 80134d0: f3bf 8f4f dsb sy
  46423. 80134d4: 607b str r3, [r7, #4]
  46424. }
  46425. 80134d6: bf00 nop
  46426. 80134d8: bf00 nop
  46427. 80134da: e7fd b.n 80134d8 <vTaskSwitchContext+0x60>
  46428. 80134dc: 68fb ldr r3, [r7, #12]
  46429. 80134de: 3b01 subs r3, #1
  46430. 80134e0: 60fb str r3, [r7, #12]
  46431. 80134e2: 491d ldr r1, [pc, #116] @ (8013558 <vTaskSwitchContext+0xe0>)
  46432. 80134e4: 68fa ldr r2, [r7, #12]
  46433. 80134e6: 4613 mov r3, r2
  46434. 80134e8: 009b lsls r3, r3, #2
  46435. 80134ea: 4413 add r3, r2
  46436. 80134ec: 009b lsls r3, r3, #2
  46437. 80134ee: 440b add r3, r1
  46438. 80134f0: 681b ldr r3, [r3, #0]
  46439. 80134f2: 2b00 cmp r3, #0
  46440. 80134f4: d0e3 beq.n 80134be <vTaskSwitchContext+0x46>
  46441. 80134f6: 68fa ldr r2, [r7, #12]
  46442. 80134f8: 4613 mov r3, r2
  46443. 80134fa: 009b lsls r3, r3, #2
  46444. 80134fc: 4413 add r3, r2
  46445. 80134fe: 009b lsls r3, r3, #2
  46446. 8013500: 4a15 ldr r2, [pc, #84] @ (8013558 <vTaskSwitchContext+0xe0>)
  46447. 8013502: 4413 add r3, r2
  46448. 8013504: 60bb str r3, [r7, #8]
  46449. 8013506: 68bb ldr r3, [r7, #8]
  46450. 8013508: 685b ldr r3, [r3, #4]
  46451. 801350a: 685a ldr r2, [r3, #4]
  46452. 801350c: 68bb ldr r3, [r7, #8]
  46453. 801350e: 605a str r2, [r3, #4]
  46454. 8013510: 68bb ldr r3, [r7, #8]
  46455. 8013512: 685a ldr r2, [r3, #4]
  46456. 8013514: 68bb ldr r3, [r7, #8]
  46457. 8013516: 3308 adds r3, #8
  46458. 8013518: 429a cmp r2, r3
  46459. 801351a: d104 bne.n 8013526 <vTaskSwitchContext+0xae>
  46460. 801351c: 68bb ldr r3, [r7, #8]
  46461. 801351e: 685b ldr r3, [r3, #4]
  46462. 8013520: 685a ldr r2, [r3, #4]
  46463. 8013522: 68bb ldr r3, [r7, #8]
  46464. 8013524: 605a str r2, [r3, #4]
  46465. 8013526: 68bb ldr r3, [r7, #8]
  46466. 8013528: 685b ldr r3, [r3, #4]
  46467. 801352a: 68db ldr r3, [r3, #12]
  46468. 801352c: 4a08 ldr r2, [pc, #32] @ (8013550 <vTaskSwitchContext+0xd8>)
  46469. 801352e: 6013 str r3, [r2, #0]
  46470. 8013530: 4a08 ldr r2, [pc, #32] @ (8013554 <vTaskSwitchContext+0xdc>)
  46471. 8013532: 68fb ldr r3, [r7, #12]
  46472. 8013534: 6013 str r3, [r2, #0]
  46473. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  46474. 8013536: 4b06 ldr r3, [pc, #24] @ (8013550 <vTaskSwitchContext+0xd8>)
  46475. 8013538: 681b ldr r3, [r3, #0]
  46476. 801353a: 3354 adds r3, #84 @ 0x54
  46477. 801353c: 4a07 ldr r2, [pc, #28] @ (801355c <vTaskSwitchContext+0xe4>)
  46478. 801353e: 6013 str r3, [r2, #0]
  46479. }
  46480. 8013540: bf00 nop
  46481. 8013542: 3710 adds r7, #16
  46482. 8013544: 46bd mov sp, r7
  46483. 8013546: bd80 pop {r7, pc}
  46484. 8013548: 2400418c .word 0x2400418c
  46485. 801354c: 24004178 .word 0x24004178
  46486. 8013550: 24003c90 .word 0x24003c90
  46487. 8013554: 2400416c .word 0x2400416c
  46488. 8013558: 24003c94 .word 0x24003c94
  46489. 801355c: 240001d4 .word 0x240001d4
  46490. 08013560 <vTaskPlaceOnEventList>:
  46491. /*-----------------------------------------------------------*/
  46492. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  46493. {
  46494. 8013560: b580 push {r7, lr}
  46495. 8013562: b084 sub sp, #16
  46496. 8013564: af00 add r7, sp, #0
  46497. 8013566: 6078 str r0, [r7, #4]
  46498. 8013568: 6039 str r1, [r7, #0]
  46499. configASSERT( pxEventList );
  46500. 801356a: 687b ldr r3, [r7, #4]
  46501. 801356c: 2b00 cmp r3, #0
  46502. 801356e: d10b bne.n 8013588 <vTaskPlaceOnEventList+0x28>
  46503. __asm volatile
  46504. 8013570: f04f 0350 mov.w r3, #80 @ 0x50
  46505. 8013574: f383 8811 msr BASEPRI, r3
  46506. 8013578: f3bf 8f6f isb sy
  46507. 801357c: f3bf 8f4f dsb sy
  46508. 8013580: 60fb str r3, [r7, #12]
  46509. }
  46510. 8013582: bf00 nop
  46511. 8013584: bf00 nop
  46512. 8013586: e7fd b.n 8013584 <vTaskPlaceOnEventList+0x24>
  46513. /* Place the event list item of the TCB in the appropriate event list.
  46514. This is placed in the list in priority order so the highest priority task
  46515. is the first to be woken by the event. The queue that contains the event
  46516. list is locked, preventing simultaneous access from interrupts. */
  46517. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  46518. 8013588: 4b07 ldr r3, [pc, #28] @ (80135a8 <vTaskPlaceOnEventList+0x48>)
  46519. 801358a: 681b ldr r3, [r3, #0]
  46520. 801358c: 3318 adds r3, #24
  46521. 801358e: 4619 mov r1, r3
  46522. 8013590: 6878 ldr r0, [r7, #4]
  46523. 8013592: f7fd fe68 bl 8011266 <vListInsert>
  46524. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  46525. 8013596: 2101 movs r1, #1
  46526. 8013598: 6838 ldr r0, [r7, #0]
  46527. 801359a: f000 fded bl 8014178 <prvAddCurrentTaskToDelayedList>
  46528. }
  46529. 801359e: bf00 nop
  46530. 80135a0: 3710 adds r7, #16
  46531. 80135a2: 46bd mov sp, r7
  46532. 80135a4: bd80 pop {r7, pc}
  46533. 80135a6: bf00 nop
  46534. 80135a8: 24003c90 .word 0x24003c90
  46535. 080135ac <vTaskPlaceOnEventListRestricted>:
  46536. /*-----------------------------------------------------------*/
  46537. #if( configUSE_TIMERS == 1 )
  46538. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  46539. {
  46540. 80135ac: b580 push {r7, lr}
  46541. 80135ae: b086 sub sp, #24
  46542. 80135b0: af00 add r7, sp, #0
  46543. 80135b2: 60f8 str r0, [r7, #12]
  46544. 80135b4: 60b9 str r1, [r7, #8]
  46545. 80135b6: 607a str r2, [r7, #4]
  46546. configASSERT( pxEventList );
  46547. 80135b8: 68fb ldr r3, [r7, #12]
  46548. 80135ba: 2b00 cmp r3, #0
  46549. 80135bc: d10b bne.n 80135d6 <vTaskPlaceOnEventListRestricted+0x2a>
  46550. __asm volatile
  46551. 80135be: f04f 0350 mov.w r3, #80 @ 0x50
  46552. 80135c2: f383 8811 msr BASEPRI, r3
  46553. 80135c6: f3bf 8f6f isb sy
  46554. 80135ca: f3bf 8f4f dsb sy
  46555. 80135ce: 617b str r3, [r7, #20]
  46556. }
  46557. 80135d0: bf00 nop
  46558. 80135d2: bf00 nop
  46559. 80135d4: e7fd b.n 80135d2 <vTaskPlaceOnEventListRestricted+0x26>
  46560. /* Place the event list item of the TCB in the appropriate event list.
  46561. In this case it is assume that this is the only task that is going to
  46562. be waiting on this event list, so the faster vListInsertEnd() function
  46563. can be used in place of vListInsert. */
  46564. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  46565. 80135d6: 4b0a ldr r3, [pc, #40] @ (8013600 <vTaskPlaceOnEventListRestricted+0x54>)
  46566. 80135d8: 681b ldr r3, [r3, #0]
  46567. 80135da: 3318 adds r3, #24
  46568. 80135dc: 4619 mov r1, r3
  46569. 80135de: 68f8 ldr r0, [r7, #12]
  46570. 80135e0: f7fd fe1d bl 801121e <vListInsertEnd>
  46571. /* If the task should block indefinitely then set the block time to a
  46572. value that will be recognised as an indefinite delay inside the
  46573. prvAddCurrentTaskToDelayedList() function. */
  46574. if( xWaitIndefinitely != pdFALSE )
  46575. 80135e4: 687b ldr r3, [r7, #4]
  46576. 80135e6: 2b00 cmp r3, #0
  46577. 80135e8: d002 beq.n 80135f0 <vTaskPlaceOnEventListRestricted+0x44>
  46578. {
  46579. xTicksToWait = portMAX_DELAY;
  46580. 80135ea: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46581. 80135ee: 60bb str r3, [r7, #8]
  46582. }
  46583. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  46584. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  46585. 80135f0: 6879 ldr r1, [r7, #4]
  46586. 80135f2: 68b8 ldr r0, [r7, #8]
  46587. 80135f4: f000 fdc0 bl 8014178 <prvAddCurrentTaskToDelayedList>
  46588. }
  46589. 80135f8: bf00 nop
  46590. 80135fa: 3718 adds r7, #24
  46591. 80135fc: 46bd mov sp, r7
  46592. 80135fe: bd80 pop {r7, pc}
  46593. 8013600: 24003c90 .word 0x24003c90
  46594. 08013604 <xTaskRemoveFromEventList>:
  46595. #endif /* configUSE_TIMERS */
  46596. /*-----------------------------------------------------------*/
  46597. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  46598. {
  46599. 8013604: b580 push {r7, lr}
  46600. 8013606: b086 sub sp, #24
  46601. 8013608: af00 add r7, sp, #0
  46602. 801360a: 6078 str r0, [r7, #4]
  46603. get called - the lock count on the queue will get modified instead. This
  46604. means exclusive access to the event list is guaranteed here.
  46605. This function assumes that a check has already been made to ensure that
  46606. pxEventList is not empty. */
  46607. 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. */
  46608. 801360c: 687b ldr r3, [r7, #4]
  46609. 801360e: 68db ldr r3, [r3, #12]
  46610. 8013610: 68db ldr r3, [r3, #12]
  46611. 8013612: 613b str r3, [r7, #16]
  46612. configASSERT( pxUnblockedTCB );
  46613. 8013614: 693b ldr r3, [r7, #16]
  46614. 8013616: 2b00 cmp r3, #0
  46615. 8013618: d10b bne.n 8013632 <xTaskRemoveFromEventList+0x2e>
  46616. __asm volatile
  46617. 801361a: f04f 0350 mov.w r3, #80 @ 0x50
  46618. 801361e: f383 8811 msr BASEPRI, r3
  46619. 8013622: f3bf 8f6f isb sy
  46620. 8013626: f3bf 8f4f dsb sy
  46621. 801362a: 60fb str r3, [r7, #12]
  46622. }
  46623. 801362c: bf00 nop
  46624. 801362e: bf00 nop
  46625. 8013630: e7fd b.n 801362e <xTaskRemoveFromEventList+0x2a>
  46626. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  46627. 8013632: 693b ldr r3, [r7, #16]
  46628. 8013634: 3318 adds r3, #24
  46629. 8013636: 4618 mov r0, r3
  46630. 8013638: f7fd fe4e bl 80112d8 <uxListRemove>
  46631. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  46632. 801363c: 4b1d ldr r3, [pc, #116] @ (80136b4 <xTaskRemoveFromEventList+0xb0>)
  46633. 801363e: 681b ldr r3, [r3, #0]
  46634. 8013640: 2b00 cmp r3, #0
  46635. 8013642: d11d bne.n 8013680 <xTaskRemoveFromEventList+0x7c>
  46636. {
  46637. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  46638. 8013644: 693b ldr r3, [r7, #16]
  46639. 8013646: 3304 adds r3, #4
  46640. 8013648: 4618 mov r0, r3
  46641. 801364a: f7fd fe45 bl 80112d8 <uxListRemove>
  46642. prvAddTaskToReadyList( pxUnblockedTCB );
  46643. 801364e: 693b ldr r3, [r7, #16]
  46644. 8013650: 6ada ldr r2, [r3, #44] @ 0x2c
  46645. 8013652: 4b19 ldr r3, [pc, #100] @ (80136b8 <xTaskRemoveFromEventList+0xb4>)
  46646. 8013654: 681b ldr r3, [r3, #0]
  46647. 8013656: 429a cmp r2, r3
  46648. 8013658: d903 bls.n 8013662 <xTaskRemoveFromEventList+0x5e>
  46649. 801365a: 693b ldr r3, [r7, #16]
  46650. 801365c: 6adb ldr r3, [r3, #44] @ 0x2c
  46651. 801365e: 4a16 ldr r2, [pc, #88] @ (80136b8 <xTaskRemoveFromEventList+0xb4>)
  46652. 8013660: 6013 str r3, [r2, #0]
  46653. 8013662: 693b ldr r3, [r7, #16]
  46654. 8013664: 6ada ldr r2, [r3, #44] @ 0x2c
  46655. 8013666: 4613 mov r3, r2
  46656. 8013668: 009b lsls r3, r3, #2
  46657. 801366a: 4413 add r3, r2
  46658. 801366c: 009b lsls r3, r3, #2
  46659. 801366e: 4a13 ldr r2, [pc, #76] @ (80136bc <xTaskRemoveFromEventList+0xb8>)
  46660. 8013670: 441a add r2, r3
  46661. 8013672: 693b ldr r3, [r7, #16]
  46662. 8013674: 3304 adds r3, #4
  46663. 8013676: 4619 mov r1, r3
  46664. 8013678: 4610 mov r0, r2
  46665. 801367a: f7fd fdd0 bl 801121e <vListInsertEnd>
  46666. 801367e: e005 b.n 801368c <xTaskRemoveFromEventList+0x88>
  46667. }
  46668. else
  46669. {
  46670. /* The delayed and ready lists cannot be accessed, so hold this task
  46671. pending until the scheduler is resumed. */
  46672. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  46673. 8013680: 693b ldr r3, [r7, #16]
  46674. 8013682: 3318 adds r3, #24
  46675. 8013684: 4619 mov r1, r3
  46676. 8013686: 480e ldr r0, [pc, #56] @ (80136c0 <xTaskRemoveFromEventList+0xbc>)
  46677. 8013688: f7fd fdc9 bl 801121e <vListInsertEnd>
  46678. }
  46679. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  46680. 801368c: 693b ldr r3, [r7, #16]
  46681. 801368e: 6ada ldr r2, [r3, #44] @ 0x2c
  46682. 8013690: 4b0c ldr r3, [pc, #48] @ (80136c4 <xTaskRemoveFromEventList+0xc0>)
  46683. 8013692: 681b ldr r3, [r3, #0]
  46684. 8013694: 6adb ldr r3, [r3, #44] @ 0x2c
  46685. 8013696: 429a cmp r2, r3
  46686. 8013698: d905 bls.n 80136a6 <xTaskRemoveFromEventList+0xa2>
  46687. {
  46688. /* Return true if the task removed from the event list has a higher
  46689. priority than the calling task. This allows the calling task to know if
  46690. it should force a context switch now. */
  46691. xReturn = pdTRUE;
  46692. 801369a: 2301 movs r3, #1
  46693. 801369c: 617b str r3, [r7, #20]
  46694. /* Mark that a yield is pending in case the user is not using the
  46695. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  46696. xYieldPending = pdTRUE;
  46697. 801369e: 4b0a ldr r3, [pc, #40] @ (80136c8 <xTaskRemoveFromEventList+0xc4>)
  46698. 80136a0: 2201 movs r2, #1
  46699. 80136a2: 601a str r2, [r3, #0]
  46700. 80136a4: e001 b.n 80136aa <xTaskRemoveFromEventList+0xa6>
  46701. }
  46702. else
  46703. {
  46704. xReturn = pdFALSE;
  46705. 80136a6: 2300 movs r3, #0
  46706. 80136a8: 617b str r3, [r7, #20]
  46707. }
  46708. return xReturn;
  46709. 80136aa: 697b ldr r3, [r7, #20]
  46710. }
  46711. 80136ac: 4618 mov r0, r3
  46712. 80136ae: 3718 adds r7, #24
  46713. 80136b0: 46bd mov sp, r7
  46714. 80136b2: bd80 pop {r7, pc}
  46715. 80136b4: 2400418c .word 0x2400418c
  46716. 80136b8: 2400416c .word 0x2400416c
  46717. 80136bc: 24003c94 .word 0x24003c94
  46718. 80136c0: 24004124 .word 0x24004124
  46719. 80136c4: 24003c90 .word 0x24003c90
  46720. 80136c8: 24004178 .word 0x24004178
  46721. 080136cc <vTaskSetTimeOutState>:
  46722. }
  46723. }
  46724. /*-----------------------------------------------------------*/
  46725. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  46726. {
  46727. 80136cc: b580 push {r7, lr}
  46728. 80136ce: b084 sub sp, #16
  46729. 80136d0: af00 add r7, sp, #0
  46730. 80136d2: 6078 str r0, [r7, #4]
  46731. configASSERT( pxTimeOut );
  46732. 80136d4: 687b ldr r3, [r7, #4]
  46733. 80136d6: 2b00 cmp r3, #0
  46734. 80136d8: d10b bne.n 80136f2 <vTaskSetTimeOutState+0x26>
  46735. __asm volatile
  46736. 80136da: f04f 0350 mov.w r3, #80 @ 0x50
  46737. 80136de: f383 8811 msr BASEPRI, r3
  46738. 80136e2: f3bf 8f6f isb sy
  46739. 80136e6: f3bf 8f4f dsb sy
  46740. 80136ea: 60fb str r3, [r7, #12]
  46741. }
  46742. 80136ec: bf00 nop
  46743. 80136ee: bf00 nop
  46744. 80136f0: e7fd b.n 80136ee <vTaskSetTimeOutState+0x22>
  46745. taskENTER_CRITICAL();
  46746. 80136f2: f001 fa21 bl 8014b38 <vPortEnterCritical>
  46747. {
  46748. pxTimeOut->xOverflowCount = xNumOfOverflows;
  46749. 80136f6: 4b07 ldr r3, [pc, #28] @ (8013714 <vTaskSetTimeOutState+0x48>)
  46750. 80136f8: 681a ldr r2, [r3, #0]
  46751. 80136fa: 687b ldr r3, [r7, #4]
  46752. 80136fc: 601a str r2, [r3, #0]
  46753. pxTimeOut->xTimeOnEntering = xTickCount;
  46754. 80136fe: 4b06 ldr r3, [pc, #24] @ (8013718 <vTaskSetTimeOutState+0x4c>)
  46755. 8013700: 681a ldr r2, [r3, #0]
  46756. 8013702: 687b ldr r3, [r7, #4]
  46757. 8013704: 605a str r2, [r3, #4]
  46758. }
  46759. taskEXIT_CRITICAL();
  46760. 8013706: f001 fa49 bl 8014b9c <vPortExitCritical>
  46761. }
  46762. 801370a: bf00 nop
  46763. 801370c: 3710 adds r7, #16
  46764. 801370e: 46bd mov sp, r7
  46765. 8013710: bd80 pop {r7, pc}
  46766. 8013712: bf00 nop
  46767. 8013714: 2400417c .word 0x2400417c
  46768. 8013718: 24004168 .word 0x24004168
  46769. 0801371c <vTaskInternalSetTimeOutState>:
  46770. /*-----------------------------------------------------------*/
  46771. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  46772. {
  46773. 801371c: b480 push {r7}
  46774. 801371e: b083 sub sp, #12
  46775. 8013720: af00 add r7, sp, #0
  46776. 8013722: 6078 str r0, [r7, #4]
  46777. /* For internal use only as it does not use a critical section. */
  46778. pxTimeOut->xOverflowCount = xNumOfOverflows;
  46779. 8013724: 4b06 ldr r3, [pc, #24] @ (8013740 <vTaskInternalSetTimeOutState+0x24>)
  46780. 8013726: 681a ldr r2, [r3, #0]
  46781. 8013728: 687b ldr r3, [r7, #4]
  46782. 801372a: 601a str r2, [r3, #0]
  46783. pxTimeOut->xTimeOnEntering = xTickCount;
  46784. 801372c: 4b05 ldr r3, [pc, #20] @ (8013744 <vTaskInternalSetTimeOutState+0x28>)
  46785. 801372e: 681a ldr r2, [r3, #0]
  46786. 8013730: 687b ldr r3, [r7, #4]
  46787. 8013732: 605a str r2, [r3, #4]
  46788. }
  46789. 8013734: bf00 nop
  46790. 8013736: 370c adds r7, #12
  46791. 8013738: 46bd mov sp, r7
  46792. 801373a: f85d 7b04 ldr.w r7, [sp], #4
  46793. 801373e: 4770 bx lr
  46794. 8013740: 2400417c .word 0x2400417c
  46795. 8013744: 24004168 .word 0x24004168
  46796. 08013748 <xTaskCheckForTimeOut>:
  46797. /*-----------------------------------------------------------*/
  46798. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  46799. {
  46800. 8013748: b580 push {r7, lr}
  46801. 801374a: b088 sub sp, #32
  46802. 801374c: af00 add r7, sp, #0
  46803. 801374e: 6078 str r0, [r7, #4]
  46804. 8013750: 6039 str r1, [r7, #0]
  46805. BaseType_t xReturn;
  46806. configASSERT( pxTimeOut );
  46807. 8013752: 687b ldr r3, [r7, #4]
  46808. 8013754: 2b00 cmp r3, #0
  46809. 8013756: d10b bne.n 8013770 <xTaskCheckForTimeOut+0x28>
  46810. __asm volatile
  46811. 8013758: f04f 0350 mov.w r3, #80 @ 0x50
  46812. 801375c: f383 8811 msr BASEPRI, r3
  46813. 8013760: f3bf 8f6f isb sy
  46814. 8013764: f3bf 8f4f dsb sy
  46815. 8013768: 613b str r3, [r7, #16]
  46816. }
  46817. 801376a: bf00 nop
  46818. 801376c: bf00 nop
  46819. 801376e: e7fd b.n 801376c <xTaskCheckForTimeOut+0x24>
  46820. configASSERT( pxTicksToWait );
  46821. 8013770: 683b ldr r3, [r7, #0]
  46822. 8013772: 2b00 cmp r3, #0
  46823. 8013774: d10b bne.n 801378e <xTaskCheckForTimeOut+0x46>
  46824. __asm volatile
  46825. 8013776: f04f 0350 mov.w r3, #80 @ 0x50
  46826. 801377a: f383 8811 msr BASEPRI, r3
  46827. 801377e: f3bf 8f6f isb sy
  46828. 8013782: f3bf 8f4f dsb sy
  46829. 8013786: 60fb str r3, [r7, #12]
  46830. }
  46831. 8013788: bf00 nop
  46832. 801378a: bf00 nop
  46833. 801378c: e7fd b.n 801378a <xTaskCheckForTimeOut+0x42>
  46834. taskENTER_CRITICAL();
  46835. 801378e: f001 f9d3 bl 8014b38 <vPortEnterCritical>
  46836. {
  46837. /* Minor optimisation. The tick count cannot change in this block. */
  46838. const TickType_t xConstTickCount = xTickCount;
  46839. 8013792: 4b1d ldr r3, [pc, #116] @ (8013808 <xTaskCheckForTimeOut+0xc0>)
  46840. 8013794: 681b ldr r3, [r3, #0]
  46841. 8013796: 61bb str r3, [r7, #24]
  46842. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  46843. 8013798: 687b ldr r3, [r7, #4]
  46844. 801379a: 685b ldr r3, [r3, #4]
  46845. 801379c: 69ba ldr r2, [r7, #24]
  46846. 801379e: 1ad3 subs r3, r2, r3
  46847. 80137a0: 617b str r3, [r7, #20]
  46848. }
  46849. else
  46850. #endif
  46851. #if ( INCLUDE_vTaskSuspend == 1 )
  46852. if( *pxTicksToWait == portMAX_DELAY )
  46853. 80137a2: 683b ldr r3, [r7, #0]
  46854. 80137a4: 681b ldr r3, [r3, #0]
  46855. 80137a6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  46856. 80137aa: d102 bne.n 80137b2 <xTaskCheckForTimeOut+0x6a>
  46857. {
  46858. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  46859. specified is the maximum block time then the task should block
  46860. indefinitely, and therefore never time out. */
  46861. xReturn = pdFALSE;
  46862. 80137ac: 2300 movs r3, #0
  46863. 80137ae: 61fb str r3, [r7, #28]
  46864. 80137b0: e023 b.n 80137fa <xTaskCheckForTimeOut+0xb2>
  46865. }
  46866. else
  46867. #endif
  46868. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  46869. 80137b2: 687b ldr r3, [r7, #4]
  46870. 80137b4: 681a ldr r2, [r3, #0]
  46871. 80137b6: 4b15 ldr r3, [pc, #84] @ (801380c <xTaskCheckForTimeOut+0xc4>)
  46872. 80137b8: 681b ldr r3, [r3, #0]
  46873. 80137ba: 429a cmp r2, r3
  46874. 80137bc: d007 beq.n 80137ce <xTaskCheckForTimeOut+0x86>
  46875. 80137be: 687b ldr r3, [r7, #4]
  46876. 80137c0: 685b ldr r3, [r3, #4]
  46877. 80137c2: 69ba ldr r2, [r7, #24]
  46878. 80137c4: 429a cmp r2, r3
  46879. 80137c6: d302 bcc.n 80137ce <xTaskCheckForTimeOut+0x86>
  46880. /* The tick count is greater than the time at which
  46881. vTaskSetTimeout() was called, but has also overflowed since
  46882. vTaskSetTimeOut() was called. It must have wrapped all the way
  46883. around and gone past again. This passed since vTaskSetTimeout()
  46884. was called. */
  46885. xReturn = pdTRUE;
  46886. 80137c8: 2301 movs r3, #1
  46887. 80137ca: 61fb str r3, [r7, #28]
  46888. 80137cc: e015 b.n 80137fa <xTaskCheckForTimeOut+0xb2>
  46889. }
  46890. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  46891. 80137ce: 683b ldr r3, [r7, #0]
  46892. 80137d0: 681b ldr r3, [r3, #0]
  46893. 80137d2: 697a ldr r2, [r7, #20]
  46894. 80137d4: 429a cmp r2, r3
  46895. 80137d6: d20b bcs.n 80137f0 <xTaskCheckForTimeOut+0xa8>
  46896. {
  46897. /* Not a genuine timeout. Adjust parameters for time remaining. */
  46898. *pxTicksToWait -= xElapsedTime;
  46899. 80137d8: 683b ldr r3, [r7, #0]
  46900. 80137da: 681a ldr r2, [r3, #0]
  46901. 80137dc: 697b ldr r3, [r7, #20]
  46902. 80137de: 1ad2 subs r2, r2, r3
  46903. 80137e0: 683b ldr r3, [r7, #0]
  46904. 80137e2: 601a str r2, [r3, #0]
  46905. vTaskInternalSetTimeOutState( pxTimeOut );
  46906. 80137e4: 6878 ldr r0, [r7, #4]
  46907. 80137e6: f7ff ff99 bl 801371c <vTaskInternalSetTimeOutState>
  46908. xReturn = pdFALSE;
  46909. 80137ea: 2300 movs r3, #0
  46910. 80137ec: 61fb str r3, [r7, #28]
  46911. 80137ee: e004 b.n 80137fa <xTaskCheckForTimeOut+0xb2>
  46912. }
  46913. else
  46914. {
  46915. *pxTicksToWait = 0;
  46916. 80137f0: 683b ldr r3, [r7, #0]
  46917. 80137f2: 2200 movs r2, #0
  46918. 80137f4: 601a str r2, [r3, #0]
  46919. xReturn = pdTRUE;
  46920. 80137f6: 2301 movs r3, #1
  46921. 80137f8: 61fb str r3, [r7, #28]
  46922. }
  46923. }
  46924. taskEXIT_CRITICAL();
  46925. 80137fa: f001 f9cf bl 8014b9c <vPortExitCritical>
  46926. return xReturn;
  46927. 80137fe: 69fb ldr r3, [r7, #28]
  46928. }
  46929. 8013800: 4618 mov r0, r3
  46930. 8013802: 3720 adds r7, #32
  46931. 8013804: 46bd mov sp, r7
  46932. 8013806: bd80 pop {r7, pc}
  46933. 8013808: 24004168 .word 0x24004168
  46934. 801380c: 2400417c .word 0x2400417c
  46935. 08013810 <vTaskMissedYield>:
  46936. /*-----------------------------------------------------------*/
  46937. void vTaskMissedYield( void )
  46938. {
  46939. 8013810: b480 push {r7}
  46940. 8013812: af00 add r7, sp, #0
  46941. xYieldPending = pdTRUE;
  46942. 8013814: 4b03 ldr r3, [pc, #12] @ (8013824 <vTaskMissedYield+0x14>)
  46943. 8013816: 2201 movs r2, #1
  46944. 8013818: 601a str r2, [r3, #0]
  46945. }
  46946. 801381a: bf00 nop
  46947. 801381c: 46bd mov sp, r7
  46948. 801381e: f85d 7b04 ldr.w r7, [sp], #4
  46949. 8013822: 4770 bx lr
  46950. 8013824: 24004178 .word 0x24004178
  46951. 08013828 <prvIdleTask>:
  46952. *
  46953. * void prvIdleTask( void *pvParameters );
  46954. *
  46955. */
  46956. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  46957. {
  46958. 8013828: b580 push {r7, lr}
  46959. 801382a: b082 sub sp, #8
  46960. 801382c: af00 add r7, sp, #0
  46961. 801382e: 6078 str r0, [r7, #4]
  46962. for( ;; )
  46963. {
  46964. /* See if any tasks have deleted themselves - if so then the idle task
  46965. is responsible for freeing the deleted task's TCB and stack. */
  46966. prvCheckTasksWaitingTermination();
  46967. 8013830: f000 f852 bl 80138d8 <prvCheckTasksWaitingTermination>
  46968. A critical region is not required here as we are just reading from
  46969. the list, and an occasional incorrect value will not matter. If
  46970. the ready list at the idle priority contains more than one task
  46971. then a task other than the idle task is ready to execute. */
  46972. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  46973. 8013834: 4b06 ldr r3, [pc, #24] @ (8013850 <prvIdleTask+0x28>)
  46974. 8013836: 681b ldr r3, [r3, #0]
  46975. 8013838: 2b01 cmp r3, #1
  46976. 801383a: d9f9 bls.n 8013830 <prvIdleTask+0x8>
  46977. {
  46978. taskYIELD();
  46979. 801383c: 4b05 ldr r3, [pc, #20] @ (8013854 <prvIdleTask+0x2c>)
  46980. 801383e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46981. 8013842: 601a str r2, [r3, #0]
  46982. 8013844: f3bf 8f4f dsb sy
  46983. 8013848: f3bf 8f6f isb sy
  46984. prvCheckTasksWaitingTermination();
  46985. 801384c: e7f0 b.n 8013830 <prvIdleTask+0x8>
  46986. 801384e: bf00 nop
  46987. 8013850: 24003c94 .word 0x24003c94
  46988. 8013854: e000ed04 .word 0xe000ed04
  46989. 08013858 <prvInitialiseTaskLists>:
  46990. #endif /* portUSING_MPU_WRAPPERS */
  46991. /*-----------------------------------------------------------*/
  46992. static void prvInitialiseTaskLists( void )
  46993. {
  46994. 8013858: b580 push {r7, lr}
  46995. 801385a: b082 sub sp, #8
  46996. 801385c: af00 add r7, sp, #0
  46997. UBaseType_t uxPriority;
  46998. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  46999. 801385e: 2300 movs r3, #0
  47000. 8013860: 607b str r3, [r7, #4]
  47001. 8013862: e00c b.n 801387e <prvInitialiseTaskLists+0x26>
  47002. {
  47003. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  47004. 8013864: 687a ldr r2, [r7, #4]
  47005. 8013866: 4613 mov r3, r2
  47006. 8013868: 009b lsls r3, r3, #2
  47007. 801386a: 4413 add r3, r2
  47008. 801386c: 009b lsls r3, r3, #2
  47009. 801386e: 4a12 ldr r2, [pc, #72] @ (80138b8 <prvInitialiseTaskLists+0x60>)
  47010. 8013870: 4413 add r3, r2
  47011. 8013872: 4618 mov r0, r3
  47012. 8013874: f7fd fca6 bl 80111c4 <vListInitialise>
  47013. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  47014. 8013878: 687b ldr r3, [r7, #4]
  47015. 801387a: 3301 adds r3, #1
  47016. 801387c: 607b str r3, [r7, #4]
  47017. 801387e: 687b ldr r3, [r7, #4]
  47018. 8013880: 2b37 cmp r3, #55 @ 0x37
  47019. 8013882: d9ef bls.n 8013864 <prvInitialiseTaskLists+0xc>
  47020. }
  47021. vListInitialise( &xDelayedTaskList1 );
  47022. 8013884: 480d ldr r0, [pc, #52] @ (80138bc <prvInitialiseTaskLists+0x64>)
  47023. 8013886: f7fd fc9d bl 80111c4 <vListInitialise>
  47024. vListInitialise( &xDelayedTaskList2 );
  47025. 801388a: 480d ldr r0, [pc, #52] @ (80138c0 <prvInitialiseTaskLists+0x68>)
  47026. 801388c: f7fd fc9a bl 80111c4 <vListInitialise>
  47027. vListInitialise( &xPendingReadyList );
  47028. 8013890: 480c ldr r0, [pc, #48] @ (80138c4 <prvInitialiseTaskLists+0x6c>)
  47029. 8013892: f7fd fc97 bl 80111c4 <vListInitialise>
  47030. #if ( INCLUDE_vTaskDelete == 1 )
  47031. {
  47032. vListInitialise( &xTasksWaitingTermination );
  47033. 8013896: 480c ldr r0, [pc, #48] @ (80138c8 <prvInitialiseTaskLists+0x70>)
  47034. 8013898: f7fd fc94 bl 80111c4 <vListInitialise>
  47035. }
  47036. #endif /* INCLUDE_vTaskDelete */
  47037. #if ( INCLUDE_vTaskSuspend == 1 )
  47038. {
  47039. vListInitialise( &xSuspendedTaskList );
  47040. 801389c: 480b ldr r0, [pc, #44] @ (80138cc <prvInitialiseTaskLists+0x74>)
  47041. 801389e: f7fd fc91 bl 80111c4 <vListInitialise>
  47042. }
  47043. #endif /* INCLUDE_vTaskSuspend */
  47044. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  47045. using list2. */
  47046. pxDelayedTaskList = &xDelayedTaskList1;
  47047. 80138a2: 4b0b ldr r3, [pc, #44] @ (80138d0 <prvInitialiseTaskLists+0x78>)
  47048. 80138a4: 4a05 ldr r2, [pc, #20] @ (80138bc <prvInitialiseTaskLists+0x64>)
  47049. 80138a6: 601a str r2, [r3, #0]
  47050. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  47051. 80138a8: 4b0a ldr r3, [pc, #40] @ (80138d4 <prvInitialiseTaskLists+0x7c>)
  47052. 80138aa: 4a05 ldr r2, [pc, #20] @ (80138c0 <prvInitialiseTaskLists+0x68>)
  47053. 80138ac: 601a str r2, [r3, #0]
  47054. }
  47055. 80138ae: bf00 nop
  47056. 80138b0: 3708 adds r7, #8
  47057. 80138b2: 46bd mov sp, r7
  47058. 80138b4: bd80 pop {r7, pc}
  47059. 80138b6: bf00 nop
  47060. 80138b8: 24003c94 .word 0x24003c94
  47061. 80138bc: 240040f4 .word 0x240040f4
  47062. 80138c0: 24004108 .word 0x24004108
  47063. 80138c4: 24004124 .word 0x24004124
  47064. 80138c8: 24004138 .word 0x24004138
  47065. 80138cc: 24004150 .word 0x24004150
  47066. 80138d0: 2400411c .word 0x2400411c
  47067. 80138d4: 24004120 .word 0x24004120
  47068. 080138d8 <prvCheckTasksWaitingTermination>:
  47069. /*-----------------------------------------------------------*/
  47070. static void prvCheckTasksWaitingTermination( void )
  47071. {
  47072. 80138d8: b580 push {r7, lr}
  47073. 80138da: b082 sub sp, #8
  47074. 80138dc: af00 add r7, sp, #0
  47075. {
  47076. TCB_t *pxTCB;
  47077. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  47078. being called too often in the idle task. */
  47079. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  47080. 80138de: e019 b.n 8013914 <prvCheckTasksWaitingTermination+0x3c>
  47081. {
  47082. taskENTER_CRITICAL();
  47083. 80138e0: f001 f92a bl 8014b38 <vPortEnterCritical>
  47084. {
  47085. 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. */
  47086. 80138e4: 4b10 ldr r3, [pc, #64] @ (8013928 <prvCheckTasksWaitingTermination+0x50>)
  47087. 80138e6: 68db ldr r3, [r3, #12]
  47088. 80138e8: 68db ldr r3, [r3, #12]
  47089. 80138ea: 607b str r3, [r7, #4]
  47090. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  47091. 80138ec: 687b ldr r3, [r7, #4]
  47092. 80138ee: 3304 adds r3, #4
  47093. 80138f0: 4618 mov r0, r3
  47094. 80138f2: f7fd fcf1 bl 80112d8 <uxListRemove>
  47095. --uxCurrentNumberOfTasks;
  47096. 80138f6: 4b0d ldr r3, [pc, #52] @ (801392c <prvCheckTasksWaitingTermination+0x54>)
  47097. 80138f8: 681b ldr r3, [r3, #0]
  47098. 80138fa: 3b01 subs r3, #1
  47099. 80138fc: 4a0b ldr r2, [pc, #44] @ (801392c <prvCheckTasksWaitingTermination+0x54>)
  47100. 80138fe: 6013 str r3, [r2, #0]
  47101. --uxDeletedTasksWaitingCleanUp;
  47102. 8013900: 4b0b ldr r3, [pc, #44] @ (8013930 <prvCheckTasksWaitingTermination+0x58>)
  47103. 8013902: 681b ldr r3, [r3, #0]
  47104. 8013904: 3b01 subs r3, #1
  47105. 8013906: 4a0a ldr r2, [pc, #40] @ (8013930 <prvCheckTasksWaitingTermination+0x58>)
  47106. 8013908: 6013 str r3, [r2, #0]
  47107. }
  47108. taskEXIT_CRITICAL();
  47109. 801390a: f001 f947 bl 8014b9c <vPortExitCritical>
  47110. prvDeleteTCB( pxTCB );
  47111. 801390e: 6878 ldr r0, [r7, #4]
  47112. 8013910: f000 f810 bl 8013934 <prvDeleteTCB>
  47113. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  47114. 8013914: 4b06 ldr r3, [pc, #24] @ (8013930 <prvCheckTasksWaitingTermination+0x58>)
  47115. 8013916: 681b ldr r3, [r3, #0]
  47116. 8013918: 2b00 cmp r3, #0
  47117. 801391a: d1e1 bne.n 80138e0 <prvCheckTasksWaitingTermination+0x8>
  47118. }
  47119. }
  47120. #endif /* INCLUDE_vTaskDelete */
  47121. }
  47122. 801391c: bf00 nop
  47123. 801391e: bf00 nop
  47124. 8013920: 3708 adds r7, #8
  47125. 8013922: 46bd mov sp, r7
  47126. 8013924: bd80 pop {r7, pc}
  47127. 8013926: bf00 nop
  47128. 8013928: 24004138 .word 0x24004138
  47129. 801392c: 24004164 .word 0x24004164
  47130. 8013930: 2400414c .word 0x2400414c
  47131. 08013934 <prvDeleteTCB>:
  47132. /*-----------------------------------------------------------*/
  47133. #if ( INCLUDE_vTaskDelete == 1 )
  47134. static void prvDeleteTCB( TCB_t *pxTCB )
  47135. {
  47136. 8013934: b580 push {r7, lr}
  47137. 8013936: b084 sub sp, #16
  47138. 8013938: af00 add r7, sp, #0
  47139. 801393a: 6078 str r0, [r7, #4]
  47140. to the task to free any memory allocated at the application level.
  47141. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  47142. for additional information. */
  47143. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  47144. {
  47145. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  47146. 801393c: 687b ldr r3, [r7, #4]
  47147. 801393e: 3354 adds r3, #84 @ 0x54
  47148. 8013940: 4618 mov r0, r3
  47149. 8013942: f016 fa0b bl 8029d5c <_reclaim_reent>
  47150. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  47151. {
  47152. /* The task could have been allocated statically or dynamically, so
  47153. check what was statically allocated before trying to free the
  47154. memory. */
  47155. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  47156. 8013946: 687b ldr r3, [r7, #4]
  47157. 8013948: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  47158. 801394c: 2b00 cmp r3, #0
  47159. 801394e: d108 bne.n 8013962 <prvDeleteTCB+0x2e>
  47160. {
  47161. /* Both the stack and TCB were allocated dynamically, so both
  47162. must be freed. */
  47163. vPortFree( pxTCB->pxStack );
  47164. 8013950: 687b ldr r3, [r7, #4]
  47165. 8013952: 6b1b ldr r3, [r3, #48] @ 0x30
  47166. 8013954: 4618 mov r0, r3
  47167. 8013956: f001 fadf bl 8014f18 <vPortFree>
  47168. vPortFree( pxTCB );
  47169. 801395a: 6878 ldr r0, [r7, #4]
  47170. 801395c: f001 fadc bl 8014f18 <vPortFree>
  47171. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  47172. mtCOVERAGE_TEST_MARKER();
  47173. }
  47174. }
  47175. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  47176. }
  47177. 8013960: e019 b.n 8013996 <prvDeleteTCB+0x62>
  47178. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  47179. 8013962: 687b ldr r3, [r7, #4]
  47180. 8013964: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  47181. 8013968: 2b01 cmp r3, #1
  47182. 801396a: d103 bne.n 8013974 <prvDeleteTCB+0x40>
  47183. vPortFree( pxTCB );
  47184. 801396c: 6878 ldr r0, [r7, #4]
  47185. 801396e: f001 fad3 bl 8014f18 <vPortFree>
  47186. }
  47187. 8013972: e010 b.n 8013996 <prvDeleteTCB+0x62>
  47188. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  47189. 8013974: 687b ldr r3, [r7, #4]
  47190. 8013976: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  47191. 801397a: 2b02 cmp r3, #2
  47192. 801397c: d00b beq.n 8013996 <prvDeleteTCB+0x62>
  47193. __asm volatile
  47194. 801397e: f04f 0350 mov.w r3, #80 @ 0x50
  47195. 8013982: f383 8811 msr BASEPRI, r3
  47196. 8013986: f3bf 8f6f isb sy
  47197. 801398a: f3bf 8f4f dsb sy
  47198. 801398e: 60fb str r3, [r7, #12]
  47199. }
  47200. 8013990: bf00 nop
  47201. 8013992: bf00 nop
  47202. 8013994: e7fd b.n 8013992 <prvDeleteTCB+0x5e>
  47203. }
  47204. 8013996: bf00 nop
  47205. 8013998: 3710 adds r7, #16
  47206. 801399a: 46bd mov sp, r7
  47207. 801399c: bd80 pop {r7, pc}
  47208. ...
  47209. 080139a0 <prvResetNextTaskUnblockTime>:
  47210. #endif /* INCLUDE_vTaskDelete */
  47211. /*-----------------------------------------------------------*/
  47212. static void prvResetNextTaskUnblockTime( void )
  47213. {
  47214. 80139a0: b480 push {r7}
  47215. 80139a2: b083 sub sp, #12
  47216. 80139a4: af00 add r7, sp, #0
  47217. TCB_t *pxTCB;
  47218. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  47219. 80139a6: 4b0c ldr r3, [pc, #48] @ (80139d8 <prvResetNextTaskUnblockTime+0x38>)
  47220. 80139a8: 681b ldr r3, [r3, #0]
  47221. 80139aa: 681b ldr r3, [r3, #0]
  47222. 80139ac: 2b00 cmp r3, #0
  47223. 80139ae: d104 bne.n 80139ba <prvResetNextTaskUnblockTime+0x1a>
  47224. {
  47225. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  47226. the maximum possible value so it is extremely unlikely that the
  47227. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  47228. there is an item in the delayed list. */
  47229. xNextTaskUnblockTime = portMAX_DELAY;
  47230. 80139b0: 4b0a ldr r3, [pc, #40] @ (80139dc <prvResetNextTaskUnblockTime+0x3c>)
  47231. 80139b2: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  47232. 80139b6: 601a str r2, [r3, #0]
  47233. which the task at the head of the delayed list should be removed
  47234. from the Blocked state. */
  47235. ( 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. */
  47236. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  47237. }
  47238. }
  47239. 80139b8: e008 b.n 80139cc <prvResetNextTaskUnblockTime+0x2c>
  47240. ( 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. */
  47241. 80139ba: 4b07 ldr r3, [pc, #28] @ (80139d8 <prvResetNextTaskUnblockTime+0x38>)
  47242. 80139bc: 681b ldr r3, [r3, #0]
  47243. 80139be: 68db ldr r3, [r3, #12]
  47244. 80139c0: 68db ldr r3, [r3, #12]
  47245. 80139c2: 607b str r3, [r7, #4]
  47246. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  47247. 80139c4: 687b ldr r3, [r7, #4]
  47248. 80139c6: 685b ldr r3, [r3, #4]
  47249. 80139c8: 4a04 ldr r2, [pc, #16] @ (80139dc <prvResetNextTaskUnblockTime+0x3c>)
  47250. 80139ca: 6013 str r3, [r2, #0]
  47251. }
  47252. 80139cc: bf00 nop
  47253. 80139ce: 370c adds r7, #12
  47254. 80139d0: 46bd mov sp, r7
  47255. 80139d2: f85d 7b04 ldr.w r7, [sp], #4
  47256. 80139d6: 4770 bx lr
  47257. 80139d8: 2400411c .word 0x2400411c
  47258. 80139dc: 24004184 .word 0x24004184
  47259. 080139e0 <xTaskGetCurrentTaskHandle>:
  47260. /*-----------------------------------------------------------*/
  47261. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  47262. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  47263. {
  47264. 80139e0: b480 push {r7}
  47265. 80139e2: b083 sub sp, #12
  47266. 80139e4: af00 add r7, sp, #0
  47267. TaskHandle_t xReturn;
  47268. /* A critical section is not required as this is not called from
  47269. an interrupt and the current TCB will always be the same for any
  47270. individual execution thread. */
  47271. xReturn = pxCurrentTCB;
  47272. 80139e6: 4b05 ldr r3, [pc, #20] @ (80139fc <xTaskGetCurrentTaskHandle+0x1c>)
  47273. 80139e8: 681b ldr r3, [r3, #0]
  47274. 80139ea: 607b str r3, [r7, #4]
  47275. return xReturn;
  47276. 80139ec: 687b ldr r3, [r7, #4]
  47277. }
  47278. 80139ee: 4618 mov r0, r3
  47279. 80139f0: 370c adds r7, #12
  47280. 80139f2: 46bd mov sp, r7
  47281. 80139f4: f85d 7b04 ldr.w r7, [sp], #4
  47282. 80139f8: 4770 bx lr
  47283. 80139fa: bf00 nop
  47284. 80139fc: 24003c90 .word 0x24003c90
  47285. 08013a00 <xTaskGetSchedulerState>:
  47286. /*-----------------------------------------------------------*/
  47287. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  47288. BaseType_t xTaskGetSchedulerState( void )
  47289. {
  47290. 8013a00: b480 push {r7}
  47291. 8013a02: b083 sub sp, #12
  47292. 8013a04: af00 add r7, sp, #0
  47293. BaseType_t xReturn;
  47294. if( xSchedulerRunning == pdFALSE )
  47295. 8013a06: 4b0b ldr r3, [pc, #44] @ (8013a34 <xTaskGetSchedulerState+0x34>)
  47296. 8013a08: 681b ldr r3, [r3, #0]
  47297. 8013a0a: 2b00 cmp r3, #0
  47298. 8013a0c: d102 bne.n 8013a14 <xTaskGetSchedulerState+0x14>
  47299. {
  47300. xReturn = taskSCHEDULER_NOT_STARTED;
  47301. 8013a0e: 2301 movs r3, #1
  47302. 8013a10: 607b str r3, [r7, #4]
  47303. 8013a12: e008 b.n 8013a26 <xTaskGetSchedulerState+0x26>
  47304. }
  47305. else
  47306. {
  47307. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  47308. 8013a14: 4b08 ldr r3, [pc, #32] @ (8013a38 <xTaskGetSchedulerState+0x38>)
  47309. 8013a16: 681b ldr r3, [r3, #0]
  47310. 8013a18: 2b00 cmp r3, #0
  47311. 8013a1a: d102 bne.n 8013a22 <xTaskGetSchedulerState+0x22>
  47312. {
  47313. xReturn = taskSCHEDULER_RUNNING;
  47314. 8013a1c: 2302 movs r3, #2
  47315. 8013a1e: 607b str r3, [r7, #4]
  47316. 8013a20: e001 b.n 8013a26 <xTaskGetSchedulerState+0x26>
  47317. }
  47318. else
  47319. {
  47320. xReturn = taskSCHEDULER_SUSPENDED;
  47321. 8013a22: 2300 movs r3, #0
  47322. 8013a24: 607b str r3, [r7, #4]
  47323. }
  47324. }
  47325. return xReturn;
  47326. 8013a26: 687b ldr r3, [r7, #4]
  47327. }
  47328. 8013a28: 4618 mov r0, r3
  47329. 8013a2a: 370c adds r7, #12
  47330. 8013a2c: 46bd mov sp, r7
  47331. 8013a2e: f85d 7b04 ldr.w r7, [sp], #4
  47332. 8013a32: 4770 bx lr
  47333. 8013a34: 24004170 .word 0x24004170
  47334. 8013a38: 2400418c .word 0x2400418c
  47335. 08013a3c <xTaskPriorityInherit>:
  47336. /*-----------------------------------------------------------*/
  47337. #if ( configUSE_MUTEXES == 1 )
  47338. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  47339. {
  47340. 8013a3c: b580 push {r7, lr}
  47341. 8013a3e: b084 sub sp, #16
  47342. 8013a40: af00 add r7, sp, #0
  47343. 8013a42: 6078 str r0, [r7, #4]
  47344. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  47345. 8013a44: 687b ldr r3, [r7, #4]
  47346. 8013a46: 60bb str r3, [r7, #8]
  47347. BaseType_t xReturn = pdFALSE;
  47348. 8013a48: 2300 movs r3, #0
  47349. 8013a4a: 60fb str r3, [r7, #12]
  47350. /* If the mutex was given back by an interrupt while the queue was
  47351. locked then the mutex holder might now be NULL. _RB_ Is this still
  47352. needed as interrupts can no longer use mutexes? */
  47353. if( pxMutexHolder != NULL )
  47354. 8013a4c: 687b ldr r3, [r7, #4]
  47355. 8013a4e: 2b00 cmp r3, #0
  47356. 8013a50: d051 beq.n 8013af6 <xTaskPriorityInherit+0xba>
  47357. {
  47358. /* If the holder of the mutex has a priority below the priority of
  47359. the task attempting to obtain the mutex then it will temporarily
  47360. inherit the priority of the task attempting to obtain the mutex. */
  47361. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  47362. 8013a52: 68bb ldr r3, [r7, #8]
  47363. 8013a54: 6ada ldr r2, [r3, #44] @ 0x2c
  47364. 8013a56: 4b2a ldr r3, [pc, #168] @ (8013b00 <xTaskPriorityInherit+0xc4>)
  47365. 8013a58: 681b ldr r3, [r3, #0]
  47366. 8013a5a: 6adb ldr r3, [r3, #44] @ 0x2c
  47367. 8013a5c: 429a cmp r2, r3
  47368. 8013a5e: d241 bcs.n 8013ae4 <xTaskPriorityInherit+0xa8>
  47369. {
  47370. /* Adjust the mutex holder state to account for its new
  47371. priority. Only reset the event list item value if the value is
  47372. not being used for anything else. */
  47373. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  47374. 8013a60: 68bb ldr r3, [r7, #8]
  47375. 8013a62: 699b ldr r3, [r3, #24]
  47376. 8013a64: 2b00 cmp r3, #0
  47377. 8013a66: db06 blt.n 8013a76 <xTaskPriorityInherit+0x3a>
  47378. {
  47379. 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. */
  47380. 8013a68: 4b25 ldr r3, [pc, #148] @ (8013b00 <xTaskPriorityInherit+0xc4>)
  47381. 8013a6a: 681b ldr r3, [r3, #0]
  47382. 8013a6c: 6adb ldr r3, [r3, #44] @ 0x2c
  47383. 8013a6e: f1c3 0238 rsb r2, r3, #56 @ 0x38
  47384. 8013a72: 68bb ldr r3, [r7, #8]
  47385. 8013a74: 619a str r2, [r3, #24]
  47386. mtCOVERAGE_TEST_MARKER();
  47387. }
  47388. /* If the task being modified is in the ready state it will need
  47389. to be moved into a new list. */
  47390. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  47391. 8013a76: 68bb ldr r3, [r7, #8]
  47392. 8013a78: 6959 ldr r1, [r3, #20]
  47393. 8013a7a: 68bb ldr r3, [r7, #8]
  47394. 8013a7c: 6ada ldr r2, [r3, #44] @ 0x2c
  47395. 8013a7e: 4613 mov r3, r2
  47396. 8013a80: 009b lsls r3, r3, #2
  47397. 8013a82: 4413 add r3, r2
  47398. 8013a84: 009b lsls r3, r3, #2
  47399. 8013a86: 4a1f ldr r2, [pc, #124] @ (8013b04 <xTaskPriorityInherit+0xc8>)
  47400. 8013a88: 4413 add r3, r2
  47401. 8013a8a: 4299 cmp r1, r3
  47402. 8013a8c: d122 bne.n 8013ad4 <xTaskPriorityInherit+0x98>
  47403. {
  47404. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  47405. 8013a8e: 68bb ldr r3, [r7, #8]
  47406. 8013a90: 3304 adds r3, #4
  47407. 8013a92: 4618 mov r0, r3
  47408. 8013a94: f7fd fc20 bl 80112d8 <uxListRemove>
  47409. {
  47410. mtCOVERAGE_TEST_MARKER();
  47411. }
  47412. /* Inherit the priority before being moved into the new list. */
  47413. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  47414. 8013a98: 4b19 ldr r3, [pc, #100] @ (8013b00 <xTaskPriorityInherit+0xc4>)
  47415. 8013a9a: 681b ldr r3, [r3, #0]
  47416. 8013a9c: 6ada ldr r2, [r3, #44] @ 0x2c
  47417. 8013a9e: 68bb ldr r3, [r7, #8]
  47418. 8013aa0: 62da str r2, [r3, #44] @ 0x2c
  47419. prvAddTaskToReadyList( pxMutexHolderTCB );
  47420. 8013aa2: 68bb ldr r3, [r7, #8]
  47421. 8013aa4: 6ada ldr r2, [r3, #44] @ 0x2c
  47422. 8013aa6: 4b18 ldr r3, [pc, #96] @ (8013b08 <xTaskPriorityInherit+0xcc>)
  47423. 8013aa8: 681b ldr r3, [r3, #0]
  47424. 8013aaa: 429a cmp r2, r3
  47425. 8013aac: d903 bls.n 8013ab6 <xTaskPriorityInherit+0x7a>
  47426. 8013aae: 68bb ldr r3, [r7, #8]
  47427. 8013ab0: 6adb ldr r3, [r3, #44] @ 0x2c
  47428. 8013ab2: 4a15 ldr r2, [pc, #84] @ (8013b08 <xTaskPriorityInherit+0xcc>)
  47429. 8013ab4: 6013 str r3, [r2, #0]
  47430. 8013ab6: 68bb ldr r3, [r7, #8]
  47431. 8013ab8: 6ada ldr r2, [r3, #44] @ 0x2c
  47432. 8013aba: 4613 mov r3, r2
  47433. 8013abc: 009b lsls r3, r3, #2
  47434. 8013abe: 4413 add r3, r2
  47435. 8013ac0: 009b lsls r3, r3, #2
  47436. 8013ac2: 4a10 ldr r2, [pc, #64] @ (8013b04 <xTaskPriorityInherit+0xc8>)
  47437. 8013ac4: 441a add r2, r3
  47438. 8013ac6: 68bb ldr r3, [r7, #8]
  47439. 8013ac8: 3304 adds r3, #4
  47440. 8013aca: 4619 mov r1, r3
  47441. 8013acc: 4610 mov r0, r2
  47442. 8013ace: f7fd fba6 bl 801121e <vListInsertEnd>
  47443. 8013ad2: e004 b.n 8013ade <xTaskPriorityInherit+0xa2>
  47444. }
  47445. else
  47446. {
  47447. /* Just inherit the priority. */
  47448. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  47449. 8013ad4: 4b0a ldr r3, [pc, #40] @ (8013b00 <xTaskPriorityInherit+0xc4>)
  47450. 8013ad6: 681b ldr r3, [r3, #0]
  47451. 8013ad8: 6ada ldr r2, [r3, #44] @ 0x2c
  47452. 8013ada: 68bb ldr r3, [r7, #8]
  47453. 8013adc: 62da str r2, [r3, #44] @ 0x2c
  47454. }
  47455. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  47456. /* Inheritance occurred. */
  47457. xReturn = pdTRUE;
  47458. 8013ade: 2301 movs r3, #1
  47459. 8013ae0: 60fb str r3, [r7, #12]
  47460. 8013ae2: e008 b.n 8013af6 <xTaskPriorityInherit+0xba>
  47461. }
  47462. else
  47463. {
  47464. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  47465. 8013ae4: 68bb ldr r3, [r7, #8]
  47466. 8013ae6: 6cda ldr r2, [r3, #76] @ 0x4c
  47467. 8013ae8: 4b05 ldr r3, [pc, #20] @ (8013b00 <xTaskPriorityInherit+0xc4>)
  47468. 8013aea: 681b ldr r3, [r3, #0]
  47469. 8013aec: 6adb ldr r3, [r3, #44] @ 0x2c
  47470. 8013aee: 429a cmp r2, r3
  47471. 8013af0: d201 bcs.n 8013af6 <xTaskPriorityInherit+0xba>
  47472. current priority of the mutex holder is not lower than the
  47473. priority of the task attempting to take the mutex.
  47474. Therefore the mutex holder must have already inherited a
  47475. priority, but inheritance would have occurred if that had
  47476. not been the case. */
  47477. xReturn = pdTRUE;
  47478. 8013af2: 2301 movs r3, #1
  47479. 8013af4: 60fb str r3, [r7, #12]
  47480. else
  47481. {
  47482. mtCOVERAGE_TEST_MARKER();
  47483. }
  47484. return xReturn;
  47485. 8013af6: 68fb ldr r3, [r7, #12]
  47486. }
  47487. 8013af8: 4618 mov r0, r3
  47488. 8013afa: 3710 adds r7, #16
  47489. 8013afc: 46bd mov sp, r7
  47490. 8013afe: bd80 pop {r7, pc}
  47491. 8013b00: 24003c90 .word 0x24003c90
  47492. 8013b04: 24003c94 .word 0x24003c94
  47493. 8013b08: 2400416c .word 0x2400416c
  47494. 08013b0c <xTaskPriorityDisinherit>:
  47495. /*-----------------------------------------------------------*/
  47496. #if ( configUSE_MUTEXES == 1 )
  47497. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  47498. {
  47499. 8013b0c: b580 push {r7, lr}
  47500. 8013b0e: b086 sub sp, #24
  47501. 8013b10: af00 add r7, sp, #0
  47502. 8013b12: 6078 str r0, [r7, #4]
  47503. TCB_t * const pxTCB = pxMutexHolder;
  47504. 8013b14: 687b ldr r3, [r7, #4]
  47505. 8013b16: 613b str r3, [r7, #16]
  47506. BaseType_t xReturn = pdFALSE;
  47507. 8013b18: 2300 movs r3, #0
  47508. 8013b1a: 617b str r3, [r7, #20]
  47509. if( pxMutexHolder != NULL )
  47510. 8013b1c: 687b ldr r3, [r7, #4]
  47511. 8013b1e: 2b00 cmp r3, #0
  47512. 8013b20: d058 beq.n 8013bd4 <xTaskPriorityDisinherit+0xc8>
  47513. {
  47514. /* A task can only have an inherited priority if it holds the mutex.
  47515. If the mutex is held by a task then it cannot be given from an
  47516. interrupt, and if a mutex is given by the holding task then it must
  47517. be the running state task. */
  47518. configASSERT( pxTCB == pxCurrentTCB );
  47519. 8013b22: 4b2f ldr r3, [pc, #188] @ (8013be0 <xTaskPriorityDisinherit+0xd4>)
  47520. 8013b24: 681b ldr r3, [r3, #0]
  47521. 8013b26: 693a ldr r2, [r7, #16]
  47522. 8013b28: 429a cmp r2, r3
  47523. 8013b2a: d00b beq.n 8013b44 <xTaskPriorityDisinherit+0x38>
  47524. __asm volatile
  47525. 8013b2c: f04f 0350 mov.w r3, #80 @ 0x50
  47526. 8013b30: f383 8811 msr BASEPRI, r3
  47527. 8013b34: f3bf 8f6f isb sy
  47528. 8013b38: f3bf 8f4f dsb sy
  47529. 8013b3c: 60fb str r3, [r7, #12]
  47530. }
  47531. 8013b3e: bf00 nop
  47532. 8013b40: bf00 nop
  47533. 8013b42: e7fd b.n 8013b40 <xTaskPriorityDisinherit+0x34>
  47534. configASSERT( pxTCB->uxMutexesHeld );
  47535. 8013b44: 693b ldr r3, [r7, #16]
  47536. 8013b46: 6d1b ldr r3, [r3, #80] @ 0x50
  47537. 8013b48: 2b00 cmp r3, #0
  47538. 8013b4a: d10b bne.n 8013b64 <xTaskPriorityDisinherit+0x58>
  47539. __asm volatile
  47540. 8013b4c: f04f 0350 mov.w r3, #80 @ 0x50
  47541. 8013b50: f383 8811 msr BASEPRI, r3
  47542. 8013b54: f3bf 8f6f isb sy
  47543. 8013b58: f3bf 8f4f dsb sy
  47544. 8013b5c: 60bb str r3, [r7, #8]
  47545. }
  47546. 8013b5e: bf00 nop
  47547. 8013b60: bf00 nop
  47548. 8013b62: e7fd b.n 8013b60 <xTaskPriorityDisinherit+0x54>
  47549. ( pxTCB->uxMutexesHeld )--;
  47550. 8013b64: 693b ldr r3, [r7, #16]
  47551. 8013b66: 6d1b ldr r3, [r3, #80] @ 0x50
  47552. 8013b68: 1e5a subs r2, r3, #1
  47553. 8013b6a: 693b ldr r3, [r7, #16]
  47554. 8013b6c: 651a str r2, [r3, #80] @ 0x50
  47555. /* Has the holder of the mutex inherited the priority of another
  47556. task? */
  47557. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  47558. 8013b6e: 693b ldr r3, [r7, #16]
  47559. 8013b70: 6ada ldr r2, [r3, #44] @ 0x2c
  47560. 8013b72: 693b ldr r3, [r7, #16]
  47561. 8013b74: 6cdb ldr r3, [r3, #76] @ 0x4c
  47562. 8013b76: 429a cmp r2, r3
  47563. 8013b78: d02c beq.n 8013bd4 <xTaskPriorityDisinherit+0xc8>
  47564. {
  47565. /* Only disinherit if no other mutexes are held. */
  47566. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  47567. 8013b7a: 693b ldr r3, [r7, #16]
  47568. 8013b7c: 6d1b ldr r3, [r3, #80] @ 0x50
  47569. 8013b7e: 2b00 cmp r3, #0
  47570. 8013b80: d128 bne.n 8013bd4 <xTaskPriorityDisinherit+0xc8>
  47571. /* A task can only have an inherited priority if it holds
  47572. the mutex. If the mutex is held by a task then it cannot be
  47573. given from an interrupt, and if a mutex is given by the
  47574. holding task then it must be the running state task. Remove
  47575. the holding task from the ready/delayed list. */
  47576. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  47577. 8013b82: 693b ldr r3, [r7, #16]
  47578. 8013b84: 3304 adds r3, #4
  47579. 8013b86: 4618 mov r0, r3
  47580. 8013b88: f7fd fba6 bl 80112d8 <uxListRemove>
  47581. }
  47582. /* Disinherit the priority before adding the task into the
  47583. new ready list. */
  47584. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  47585. pxTCB->uxPriority = pxTCB->uxBasePriority;
  47586. 8013b8c: 693b ldr r3, [r7, #16]
  47587. 8013b8e: 6cda ldr r2, [r3, #76] @ 0x4c
  47588. 8013b90: 693b ldr r3, [r7, #16]
  47589. 8013b92: 62da str r2, [r3, #44] @ 0x2c
  47590. /* Reset the event list item value. It cannot be in use for
  47591. any other purpose if this task is running, and it must be
  47592. running to give back the mutex. */
  47593. 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. */
  47594. 8013b94: 693b ldr r3, [r7, #16]
  47595. 8013b96: 6adb ldr r3, [r3, #44] @ 0x2c
  47596. 8013b98: f1c3 0238 rsb r2, r3, #56 @ 0x38
  47597. 8013b9c: 693b ldr r3, [r7, #16]
  47598. 8013b9e: 619a str r2, [r3, #24]
  47599. prvAddTaskToReadyList( pxTCB );
  47600. 8013ba0: 693b ldr r3, [r7, #16]
  47601. 8013ba2: 6ada ldr r2, [r3, #44] @ 0x2c
  47602. 8013ba4: 4b0f ldr r3, [pc, #60] @ (8013be4 <xTaskPriorityDisinherit+0xd8>)
  47603. 8013ba6: 681b ldr r3, [r3, #0]
  47604. 8013ba8: 429a cmp r2, r3
  47605. 8013baa: d903 bls.n 8013bb4 <xTaskPriorityDisinherit+0xa8>
  47606. 8013bac: 693b ldr r3, [r7, #16]
  47607. 8013bae: 6adb ldr r3, [r3, #44] @ 0x2c
  47608. 8013bb0: 4a0c ldr r2, [pc, #48] @ (8013be4 <xTaskPriorityDisinherit+0xd8>)
  47609. 8013bb2: 6013 str r3, [r2, #0]
  47610. 8013bb4: 693b ldr r3, [r7, #16]
  47611. 8013bb6: 6ada ldr r2, [r3, #44] @ 0x2c
  47612. 8013bb8: 4613 mov r3, r2
  47613. 8013bba: 009b lsls r3, r3, #2
  47614. 8013bbc: 4413 add r3, r2
  47615. 8013bbe: 009b lsls r3, r3, #2
  47616. 8013bc0: 4a09 ldr r2, [pc, #36] @ (8013be8 <xTaskPriorityDisinherit+0xdc>)
  47617. 8013bc2: 441a add r2, r3
  47618. 8013bc4: 693b ldr r3, [r7, #16]
  47619. 8013bc6: 3304 adds r3, #4
  47620. 8013bc8: 4619 mov r1, r3
  47621. 8013bca: 4610 mov r0, r2
  47622. 8013bcc: f7fd fb27 bl 801121e <vListInsertEnd>
  47623. in an order different to that in which they were taken.
  47624. If a context switch did not occur when the first mutex was
  47625. returned, even if a task was waiting on it, then a context
  47626. switch should occur when the last mutex is returned whether
  47627. a task is waiting on it or not. */
  47628. xReturn = pdTRUE;
  47629. 8013bd0: 2301 movs r3, #1
  47630. 8013bd2: 617b str r3, [r7, #20]
  47631. else
  47632. {
  47633. mtCOVERAGE_TEST_MARKER();
  47634. }
  47635. return xReturn;
  47636. 8013bd4: 697b ldr r3, [r7, #20]
  47637. }
  47638. 8013bd6: 4618 mov r0, r3
  47639. 8013bd8: 3718 adds r7, #24
  47640. 8013bda: 46bd mov sp, r7
  47641. 8013bdc: bd80 pop {r7, pc}
  47642. 8013bde: bf00 nop
  47643. 8013be0: 24003c90 .word 0x24003c90
  47644. 8013be4: 2400416c .word 0x2400416c
  47645. 8013be8: 24003c94 .word 0x24003c94
  47646. 08013bec <vTaskPriorityDisinheritAfterTimeout>:
  47647. /*-----------------------------------------------------------*/
  47648. #if ( configUSE_MUTEXES == 1 )
  47649. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  47650. {
  47651. 8013bec: b580 push {r7, lr}
  47652. 8013bee: b088 sub sp, #32
  47653. 8013bf0: af00 add r7, sp, #0
  47654. 8013bf2: 6078 str r0, [r7, #4]
  47655. 8013bf4: 6039 str r1, [r7, #0]
  47656. TCB_t * const pxTCB = pxMutexHolder;
  47657. 8013bf6: 687b ldr r3, [r7, #4]
  47658. 8013bf8: 61bb str r3, [r7, #24]
  47659. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  47660. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  47661. 8013bfa: 2301 movs r3, #1
  47662. 8013bfc: 617b str r3, [r7, #20]
  47663. if( pxMutexHolder != NULL )
  47664. 8013bfe: 687b ldr r3, [r7, #4]
  47665. 8013c00: 2b00 cmp r3, #0
  47666. 8013c02: d06c beq.n 8013cde <vTaskPriorityDisinheritAfterTimeout+0xf2>
  47667. {
  47668. /* If pxMutexHolder is not NULL then the holder must hold at least
  47669. one mutex. */
  47670. configASSERT( pxTCB->uxMutexesHeld );
  47671. 8013c04: 69bb ldr r3, [r7, #24]
  47672. 8013c06: 6d1b ldr r3, [r3, #80] @ 0x50
  47673. 8013c08: 2b00 cmp r3, #0
  47674. 8013c0a: d10b bne.n 8013c24 <vTaskPriorityDisinheritAfterTimeout+0x38>
  47675. __asm volatile
  47676. 8013c0c: f04f 0350 mov.w r3, #80 @ 0x50
  47677. 8013c10: f383 8811 msr BASEPRI, r3
  47678. 8013c14: f3bf 8f6f isb sy
  47679. 8013c18: f3bf 8f4f dsb sy
  47680. 8013c1c: 60fb str r3, [r7, #12]
  47681. }
  47682. 8013c1e: bf00 nop
  47683. 8013c20: bf00 nop
  47684. 8013c22: e7fd b.n 8013c20 <vTaskPriorityDisinheritAfterTimeout+0x34>
  47685. /* Determine the priority to which the priority of the task that
  47686. holds the mutex should be set. This will be the greater of the
  47687. holding task's base priority and the priority of the highest
  47688. priority task that is waiting to obtain the mutex. */
  47689. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  47690. 8013c24: 69bb ldr r3, [r7, #24]
  47691. 8013c26: 6cdb ldr r3, [r3, #76] @ 0x4c
  47692. 8013c28: 683a ldr r2, [r7, #0]
  47693. 8013c2a: 429a cmp r2, r3
  47694. 8013c2c: d902 bls.n 8013c34 <vTaskPriorityDisinheritAfterTimeout+0x48>
  47695. {
  47696. uxPriorityToUse = uxHighestPriorityWaitingTask;
  47697. 8013c2e: 683b ldr r3, [r7, #0]
  47698. 8013c30: 61fb str r3, [r7, #28]
  47699. 8013c32: e002 b.n 8013c3a <vTaskPriorityDisinheritAfterTimeout+0x4e>
  47700. }
  47701. else
  47702. {
  47703. uxPriorityToUse = pxTCB->uxBasePriority;
  47704. 8013c34: 69bb ldr r3, [r7, #24]
  47705. 8013c36: 6cdb ldr r3, [r3, #76] @ 0x4c
  47706. 8013c38: 61fb str r3, [r7, #28]
  47707. }
  47708. /* Does the priority need to change? */
  47709. if( pxTCB->uxPriority != uxPriorityToUse )
  47710. 8013c3a: 69bb ldr r3, [r7, #24]
  47711. 8013c3c: 6adb ldr r3, [r3, #44] @ 0x2c
  47712. 8013c3e: 69fa ldr r2, [r7, #28]
  47713. 8013c40: 429a cmp r2, r3
  47714. 8013c42: d04c beq.n 8013cde <vTaskPriorityDisinheritAfterTimeout+0xf2>
  47715. {
  47716. /* Only disinherit if no other mutexes are held. This is a
  47717. simplification in the priority inheritance implementation. If
  47718. the task that holds the mutex is also holding other mutexes then
  47719. the other mutexes may have caused the priority inheritance. */
  47720. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  47721. 8013c44: 69bb ldr r3, [r7, #24]
  47722. 8013c46: 6d1b ldr r3, [r3, #80] @ 0x50
  47723. 8013c48: 697a ldr r2, [r7, #20]
  47724. 8013c4a: 429a cmp r2, r3
  47725. 8013c4c: d147 bne.n 8013cde <vTaskPriorityDisinheritAfterTimeout+0xf2>
  47726. {
  47727. /* If a task has timed out because it already holds the
  47728. mutex it was trying to obtain then it cannot of inherited
  47729. its own priority. */
  47730. configASSERT( pxTCB != pxCurrentTCB );
  47731. 8013c4e: 4b26 ldr r3, [pc, #152] @ (8013ce8 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  47732. 8013c50: 681b ldr r3, [r3, #0]
  47733. 8013c52: 69ba ldr r2, [r7, #24]
  47734. 8013c54: 429a cmp r2, r3
  47735. 8013c56: d10b bne.n 8013c70 <vTaskPriorityDisinheritAfterTimeout+0x84>
  47736. __asm volatile
  47737. 8013c58: f04f 0350 mov.w r3, #80 @ 0x50
  47738. 8013c5c: f383 8811 msr BASEPRI, r3
  47739. 8013c60: f3bf 8f6f isb sy
  47740. 8013c64: f3bf 8f4f dsb sy
  47741. 8013c68: 60bb str r3, [r7, #8]
  47742. }
  47743. 8013c6a: bf00 nop
  47744. 8013c6c: bf00 nop
  47745. 8013c6e: e7fd b.n 8013c6c <vTaskPriorityDisinheritAfterTimeout+0x80>
  47746. /* Disinherit the priority, remembering the previous
  47747. priority to facilitate determining the subject task's
  47748. state. */
  47749. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  47750. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  47751. 8013c70: 69bb ldr r3, [r7, #24]
  47752. 8013c72: 6adb ldr r3, [r3, #44] @ 0x2c
  47753. 8013c74: 613b str r3, [r7, #16]
  47754. pxTCB->uxPriority = uxPriorityToUse;
  47755. 8013c76: 69bb ldr r3, [r7, #24]
  47756. 8013c78: 69fa ldr r2, [r7, #28]
  47757. 8013c7a: 62da str r2, [r3, #44] @ 0x2c
  47758. /* Only reset the event list item value if the value is not
  47759. being used for anything else. */
  47760. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  47761. 8013c7c: 69bb ldr r3, [r7, #24]
  47762. 8013c7e: 699b ldr r3, [r3, #24]
  47763. 8013c80: 2b00 cmp r3, #0
  47764. 8013c82: db04 blt.n 8013c8e <vTaskPriorityDisinheritAfterTimeout+0xa2>
  47765. {
  47766. 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. */
  47767. 8013c84: 69fb ldr r3, [r7, #28]
  47768. 8013c86: f1c3 0238 rsb r2, r3, #56 @ 0x38
  47769. 8013c8a: 69bb ldr r3, [r7, #24]
  47770. 8013c8c: 619a str r2, [r3, #24]
  47771. then the task that holds the mutex could be in either the
  47772. Ready, Blocked or Suspended states. Only remove the task
  47773. from its current state list if it is in the Ready state as
  47774. the task's priority is going to change and there is one
  47775. Ready list per priority. */
  47776. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  47777. 8013c8e: 69bb ldr r3, [r7, #24]
  47778. 8013c90: 6959 ldr r1, [r3, #20]
  47779. 8013c92: 693a ldr r2, [r7, #16]
  47780. 8013c94: 4613 mov r3, r2
  47781. 8013c96: 009b lsls r3, r3, #2
  47782. 8013c98: 4413 add r3, r2
  47783. 8013c9a: 009b lsls r3, r3, #2
  47784. 8013c9c: 4a13 ldr r2, [pc, #76] @ (8013cec <vTaskPriorityDisinheritAfterTimeout+0x100>)
  47785. 8013c9e: 4413 add r3, r2
  47786. 8013ca0: 4299 cmp r1, r3
  47787. 8013ca2: d11c bne.n 8013cde <vTaskPriorityDisinheritAfterTimeout+0xf2>
  47788. {
  47789. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  47790. 8013ca4: 69bb ldr r3, [r7, #24]
  47791. 8013ca6: 3304 adds r3, #4
  47792. 8013ca8: 4618 mov r0, r3
  47793. 8013caa: f7fd fb15 bl 80112d8 <uxListRemove>
  47794. else
  47795. {
  47796. mtCOVERAGE_TEST_MARKER();
  47797. }
  47798. prvAddTaskToReadyList( pxTCB );
  47799. 8013cae: 69bb ldr r3, [r7, #24]
  47800. 8013cb0: 6ada ldr r2, [r3, #44] @ 0x2c
  47801. 8013cb2: 4b0f ldr r3, [pc, #60] @ (8013cf0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  47802. 8013cb4: 681b ldr r3, [r3, #0]
  47803. 8013cb6: 429a cmp r2, r3
  47804. 8013cb8: d903 bls.n 8013cc2 <vTaskPriorityDisinheritAfterTimeout+0xd6>
  47805. 8013cba: 69bb ldr r3, [r7, #24]
  47806. 8013cbc: 6adb ldr r3, [r3, #44] @ 0x2c
  47807. 8013cbe: 4a0c ldr r2, [pc, #48] @ (8013cf0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  47808. 8013cc0: 6013 str r3, [r2, #0]
  47809. 8013cc2: 69bb ldr r3, [r7, #24]
  47810. 8013cc4: 6ada ldr r2, [r3, #44] @ 0x2c
  47811. 8013cc6: 4613 mov r3, r2
  47812. 8013cc8: 009b lsls r3, r3, #2
  47813. 8013cca: 4413 add r3, r2
  47814. 8013ccc: 009b lsls r3, r3, #2
  47815. 8013cce: 4a07 ldr r2, [pc, #28] @ (8013cec <vTaskPriorityDisinheritAfterTimeout+0x100>)
  47816. 8013cd0: 441a add r2, r3
  47817. 8013cd2: 69bb ldr r3, [r7, #24]
  47818. 8013cd4: 3304 adds r3, #4
  47819. 8013cd6: 4619 mov r1, r3
  47820. 8013cd8: 4610 mov r0, r2
  47821. 8013cda: f7fd faa0 bl 801121e <vListInsertEnd>
  47822. }
  47823. else
  47824. {
  47825. mtCOVERAGE_TEST_MARKER();
  47826. }
  47827. }
  47828. 8013cde: bf00 nop
  47829. 8013ce0: 3720 adds r7, #32
  47830. 8013ce2: 46bd mov sp, r7
  47831. 8013ce4: bd80 pop {r7, pc}
  47832. 8013ce6: bf00 nop
  47833. 8013ce8: 24003c90 .word 0x24003c90
  47834. 8013cec: 24003c94 .word 0x24003c94
  47835. 8013cf0: 2400416c .word 0x2400416c
  47836. 08013cf4 <pvTaskIncrementMutexHeldCount>:
  47837. /*-----------------------------------------------------------*/
  47838. #if ( configUSE_MUTEXES == 1 )
  47839. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  47840. {
  47841. 8013cf4: b480 push {r7}
  47842. 8013cf6: af00 add r7, sp, #0
  47843. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  47844. then pxCurrentTCB will be NULL. */
  47845. if( pxCurrentTCB != NULL )
  47846. 8013cf8: 4b07 ldr r3, [pc, #28] @ (8013d18 <pvTaskIncrementMutexHeldCount+0x24>)
  47847. 8013cfa: 681b ldr r3, [r3, #0]
  47848. 8013cfc: 2b00 cmp r3, #0
  47849. 8013cfe: d004 beq.n 8013d0a <pvTaskIncrementMutexHeldCount+0x16>
  47850. {
  47851. ( pxCurrentTCB->uxMutexesHeld )++;
  47852. 8013d00: 4b05 ldr r3, [pc, #20] @ (8013d18 <pvTaskIncrementMutexHeldCount+0x24>)
  47853. 8013d02: 681b ldr r3, [r3, #0]
  47854. 8013d04: 6d1a ldr r2, [r3, #80] @ 0x50
  47855. 8013d06: 3201 adds r2, #1
  47856. 8013d08: 651a str r2, [r3, #80] @ 0x50
  47857. }
  47858. return pxCurrentTCB;
  47859. 8013d0a: 4b03 ldr r3, [pc, #12] @ (8013d18 <pvTaskIncrementMutexHeldCount+0x24>)
  47860. 8013d0c: 681b ldr r3, [r3, #0]
  47861. }
  47862. 8013d0e: 4618 mov r0, r3
  47863. 8013d10: 46bd mov sp, r7
  47864. 8013d12: f85d 7b04 ldr.w r7, [sp], #4
  47865. 8013d16: 4770 bx lr
  47866. 8013d18: 24003c90 .word 0x24003c90
  47867. 08013d1c <xTaskNotifyWait>:
  47868. /*-----------------------------------------------------------*/
  47869. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  47870. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  47871. {
  47872. 8013d1c: b580 push {r7, lr}
  47873. 8013d1e: b086 sub sp, #24
  47874. 8013d20: af00 add r7, sp, #0
  47875. 8013d22: 60f8 str r0, [r7, #12]
  47876. 8013d24: 60b9 str r1, [r7, #8]
  47877. 8013d26: 607a str r2, [r7, #4]
  47878. 8013d28: 603b str r3, [r7, #0]
  47879. BaseType_t xReturn;
  47880. taskENTER_CRITICAL();
  47881. 8013d2a: f000 ff05 bl 8014b38 <vPortEnterCritical>
  47882. {
  47883. /* Only block if a notification is not already pending. */
  47884. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  47885. 8013d2e: 4b29 ldr r3, [pc, #164] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47886. 8013d30: 681b ldr r3, [r3, #0]
  47887. 8013d32: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47888. 8013d36: b2db uxtb r3, r3
  47889. 8013d38: 2b02 cmp r3, #2
  47890. 8013d3a: d01c beq.n 8013d76 <xTaskNotifyWait+0x5a>
  47891. {
  47892. /* Clear bits in the task's notification value as bits may get
  47893. set by the notifying task or interrupt. This can be used to
  47894. clear the value to zero. */
  47895. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  47896. 8013d3c: 4b25 ldr r3, [pc, #148] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47897. 8013d3e: 681b ldr r3, [r3, #0]
  47898. 8013d40: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  47899. 8013d44: 68fa ldr r2, [r7, #12]
  47900. 8013d46: 43d2 mvns r2, r2
  47901. 8013d48: 400a ands r2, r1
  47902. 8013d4a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47903. /* Mark this task as waiting for a notification. */
  47904. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  47905. 8013d4e: 4b21 ldr r3, [pc, #132] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47906. 8013d50: 681b ldr r3, [r3, #0]
  47907. 8013d52: 2201 movs r2, #1
  47908. 8013d54: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47909. if( xTicksToWait > ( TickType_t ) 0 )
  47910. 8013d58: 683b ldr r3, [r7, #0]
  47911. 8013d5a: 2b00 cmp r3, #0
  47912. 8013d5c: d00b beq.n 8013d76 <xTaskNotifyWait+0x5a>
  47913. {
  47914. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  47915. 8013d5e: 2101 movs r1, #1
  47916. 8013d60: 6838 ldr r0, [r7, #0]
  47917. 8013d62: f000 fa09 bl 8014178 <prvAddCurrentTaskToDelayedList>
  47918. /* All ports are written to allow a yield in a critical
  47919. section (some will yield immediately, others wait until the
  47920. critical section exits) - but it is not something that
  47921. application code should ever do. */
  47922. portYIELD_WITHIN_API();
  47923. 8013d66: 4b1c ldr r3, [pc, #112] @ (8013dd8 <xTaskNotifyWait+0xbc>)
  47924. 8013d68: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47925. 8013d6c: 601a str r2, [r3, #0]
  47926. 8013d6e: f3bf 8f4f dsb sy
  47927. 8013d72: f3bf 8f6f isb sy
  47928. else
  47929. {
  47930. mtCOVERAGE_TEST_MARKER();
  47931. }
  47932. }
  47933. taskEXIT_CRITICAL();
  47934. 8013d76: f000 ff11 bl 8014b9c <vPortExitCritical>
  47935. taskENTER_CRITICAL();
  47936. 8013d7a: f000 fedd bl 8014b38 <vPortEnterCritical>
  47937. {
  47938. traceTASK_NOTIFY_WAIT();
  47939. if( pulNotificationValue != NULL )
  47940. 8013d7e: 687b ldr r3, [r7, #4]
  47941. 8013d80: 2b00 cmp r3, #0
  47942. 8013d82: d005 beq.n 8013d90 <xTaskNotifyWait+0x74>
  47943. {
  47944. /* Output the current notification value, which may or may not
  47945. have changed. */
  47946. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  47947. 8013d84: 4b13 ldr r3, [pc, #76] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47948. 8013d86: 681b ldr r3, [r3, #0]
  47949. 8013d88: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  47950. 8013d8c: 687b ldr r3, [r7, #4]
  47951. 8013d8e: 601a str r2, [r3, #0]
  47952. /* If ucNotifyValue is set then either the task never entered the
  47953. blocked state (because a notification was already pending) or the
  47954. task unblocked because of a notification. Otherwise the task
  47955. unblocked because of a timeout. */
  47956. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  47957. 8013d90: 4b10 ldr r3, [pc, #64] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47958. 8013d92: 681b ldr r3, [r3, #0]
  47959. 8013d94: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  47960. 8013d98: b2db uxtb r3, r3
  47961. 8013d9a: 2b02 cmp r3, #2
  47962. 8013d9c: d002 beq.n 8013da4 <xTaskNotifyWait+0x88>
  47963. {
  47964. /* A notification was not received. */
  47965. xReturn = pdFALSE;
  47966. 8013d9e: 2300 movs r3, #0
  47967. 8013da0: 617b str r3, [r7, #20]
  47968. 8013da2: e00a b.n 8013dba <xTaskNotifyWait+0x9e>
  47969. }
  47970. else
  47971. {
  47972. /* A notification was already pending or a notification was
  47973. received while the task was waiting. */
  47974. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  47975. 8013da4: 4b0b ldr r3, [pc, #44] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47976. 8013da6: 681b ldr r3, [r3, #0]
  47977. 8013da8: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  47978. 8013dac: 68ba ldr r2, [r7, #8]
  47979. 8013dae: 43d2 mvns r2, r2
  47980. 8013db0: 400a ands r2, r1
  47981. 8013db2: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  47982. xReturn = pdTRUE;
  47983. 8013db6: 2301 movs r3, #1
  47984. 8013db8: 617b str r3, [r7, #20]
  47985. }
  47986. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  47987. 8013dba: 4b06 ldr r3, [pc, #24] @ (8013dd4 <xTaskNotifyWait+0xb8>)
  47988. 8013dbc: 681b ldr r3, [r3, #0]
  47989. 8013dbe: 2200 movs r2, #0
  47990. 8013dc0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47991. }
  47992. taskEXIT_CRITICAL();
  47993. 8013dc4: f000 feea bl 8014b9c <vPortExitCritical>
  47994. return xReturn;
  47995. 8013dc8: 697b ldr r3, [r7, #20]
  47996. }
  47997. 8013dca: 4618 mov r0, r3
  47998. 8013dcc: 3718 adds r7, #24
  47999. 8013dce: 46bd mov sp, r7
  48000. 8013dd0: bd80 pop {r7, pc}
  48001. 8013dd2: bf00 nop
  48002. 8013dd4: 24003c90 .word 0x24003c90
  48003. 8013dd8: e000ed04 .word 0xe000ed04
  48004. 08013ddc <xTaskGenericNotify>:
  48005. /*-----------------------------------------------------------*/
  48006. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  48007. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  48008. {
  48009. 8013ddc: b580 push {r7, lr}
  48010. 8013dde: b08a sub sp, #40 @ 0x28
  48011. 8013de0: af00 add r7, sp, #0
  48012. 8013de2: 60f8 str r0, [r7, #12]
  48013. 8013de4: 60b9 str r1, [r7, #8]
  48014. 8013de6: 603b str r3, [r7, #0]
  48015. 8013de8: 4613 mov r3, r2
  48016. 8013dea: 71fb strb r3, [r7, #7]
  48017. TCB_t * pxTCB;
  48018. BaseType_t xReturn = pdPASS;
  48019. 8013dec: 2301 movs r3, #1
  48020. 8013dee: 627b str r3, [r7, #36] @ 0x24
  48021. uint8_t ucOriginalNotifyState;
  48022. configASSERT( xTaskToNotify );
  48023. 8013df0: 68fb ldr r3, [r7, #12]
  48024. 8013df2: 2b00 cmp r3, #0
  48025. 8013df4: d10b bne.n 8013e0e <xTaskGenericNotify+0x32>
  48026. __asm volatile
  48027. 8013df6: f04f 0350 mov.w r3, #80 @ 0x50
  48028. 8013dfa: f383 8811 msr BASEPRI, r3
  48029. 8013dfe: f3bf 8f6f isb sy
  48030. 8013e02: f3bf 8f4f dsb sy
  48031. 8013e06: 61bb str r3, [r7, #24]
  48032. }
  48033. 8013e08: bf00 nop
  48034. 8013e0a: bf00 nop
  48035. 8013e0c: e7fd b.n 8013e0a <xTaskGenericNotify+0x2e>
  48036. pxTCB = xTaskToNotify;
  48037. 8013e0e: 68fb ldr r3, [r7, #12]
  48038. 8013e10: 623b str r3, [r7, #32]
  48039. taskENTER_CRITICAL();
  48040. 8013e12: f000 fe91 bl 8014b38 <vPortEnterCritical>
  48041. {
  48042. if( pulPreviousNotificationValue != NULL )
  48043. 8013e16: 683b ldr r3, [r7, #0]
  48044. 8013e18: 2b00 cmp r3, #0
  48045. 8013e1a: d004 beq.n 8013e26 <xTaskGenericNotify+0x4a>
  48046. {
  48047. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  48048. 8013e1c: 6a3b ldr r3, [r7, #32]
  48049. 8013e1e: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  48050. 8013e22: 683b ldr r3, [r7, #0]
  48051. 8013e24: 601a str r2, [r3, #0]
  48052. }
  48053. ucOriginalNotifyState = pxTCB->ucNotifyState;
  48054. 8013e26: 6a3b ldr r3, [r7, #32]
  48055. 8013e28: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  48056. 8013e2c: 77fb strb r3, [r7, #31]
  48057. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  48058. 8013e2e: 6a3b ldr r3, [r7, #32]
  48059. 8013e30: 2202 movs r2, #2
  48060. 8013e32: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  48061. switch( eAction )
  48062. 8013e36: 79fb ldrb r3, [r7, #7]
  48063. 8013e38: 2b04 cmp r3, #4
  48064. 8013e3a: d82e bhi.n 8013e9a <xTaskGenericNotify+0xbe>
  48065. 8013e3c: a201 add r2, pc, #4 @ (adr r2, 8013e44 <xTaskGenericNotify+0x68>)
  48066. 8013e3e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  48067. 8013e42: bf00 nop
  48068. 8013e44: 08013ebf .word 0x08013ebf
  48069. 8013e48: 08013e59 .word 0x08013e59
  48070. 8013e4c: 08013e6b .word 0x08013e6b
  48071. 8013e50: 08013e7b .word 0x08013e7b
  48072. 8013e54: 08013e85 .word 0x08013e85
  48073. {
  48074. case eSetBits :
  48075. pxTCB->ulNotifiedValue |= ulValue;
  48076. 8013e58: 6a3b ldr r3, [r7, #32]
  48077. 8013e5a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  48078. 8013e5e: 68bb ldr r3, [r7, #8]
  48079. 8013e60: 431a orrs r2, r3
  48080. 8013e62: 6a3b ldr r3, [r7, #32]
  48081. 8013e64: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48082. break;
  48083. 8013e68: e02c b.n 8013ec4 <xTaskGenericNotify+0xe8>
  48084. case eIncrement :
  48085. ( pxTCB->ulNotifiedValue )++;
  48086. 8013e6a: 6a3b ldr r3, [r7, #32]
  48087. 8013e6c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  48088. 8013e70: 1c5a adds r2, r3, #1
  48089. 8013e72: 6a3b ldr r3, [r7, #32]
  48090. 8013e74: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48091. break;
  48092. 8013e78: e024 b.n 8013ec4 <xTaskGenericNotify+0xe8>
  48093. case eSetValueWithOverwrite :
  48094. pxTCB->ulNotifiedValue = ulValue;
  48095. 8013e7a: 6a3b ldr r3, [r7, #32]
  48096. 8013e7c: 68ba ldr r2, [r7, #8]
  48097. 8013e7e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48098. break;
  48099. 8013e82: e01f b.n 8013ec4 <xTaskGenericNotify+0xe8>
  48100. case eSetValueWithoutOverwrite :
  48101. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  48102. 8013e84: 7ffb ldrb r3, [r7, #31]
  48103. 8013e86: 2b02 cmp r3, #2
  48104. 8013e88: d004 beq.n 8013e94 <xTaskGenericNotify+0xb8>
  48105. {
  48106. pxTCB->ulNotifiedValue = ulValue;
  48107. 8013e8a: 6a3b ldr r3, [r7, #32]
  48108. 8013e8c: 68ba ldr r2, [r7, #8]
  48109. 8013e8e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48110. else
  48111. {
  48112. /* The value could not be written to the task. */
  48113. xReturn = pdFAIL;
  48114. }
  48115. break;
  48116. 8013e92: e017 b.n 8013ec4 <xTaskGenericNotify+0xe8>
  48117. xReturn = pdFAIL;
  48118. 8013e94: 2300 movs r3, #0
  48119. 8013e96: 627b str r3, [r7, #36] @ 0x24
  48120. break;
  48121. 8013e98: e014 b.n 8013ec4 <xTaskGenericNotify+0xe8>
  48122. default:
  48123. /* Should not get here if all enums are handled.
  48124. Artificially force an assert by testing a value the
  48125. compiler can't assume is const. */
  48126. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  48127. 8013e9a: 6a3b ldr r3, [r7, #32]
  48128. 8013e9c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  48129. 8013ea0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48130. 8013ea4: d00d beq.n 8013ec2 <xTaskGenericNotify+0xe6>
  48131. __asm volatile
  48132. 8013ea6: f04f 0350 mov.w r3, #80 @ 0x50
  48133. 8013eaa: f383 8811 msr BASEPRI, r3
  48134. 8013eae: f3bf 8f6f isb sy
  48135. 8013eb2: f3bf 8f4f dsb sy
  48136. 8013eb6: 617b str r3, [r7, #20]
  48137. }
  48138. 8013eb8: bf00 nop
  48139. 8013eba: bf00 nop
  48140. 8013ebc: e7fd b.n 8013eba <xTaskGenericNotify+0xde>
  48141. break;
  48142. 8013ebe: bf00 nop
  48143. 8013ec0: e000 b.n 8013ec4 <xTaskGenericNotify+0xe8>
  48144. break;
  48145. 8013ec2: bf00 nop
  48146. traceTASK_NOTIFY();
  48147. /* If the task is in the blocked state specifically to wait for a
  48148. notification then unblock it now. */
  48149. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  48150. 8013ec4: 7ffb ldrb r3, [r7, #31]
  48151. 8013ec6: 2b01 cmp r3, #1
  48152. 8013ec8: d13b bne.n 8013f42 <xTaskGenericNotify+0x166>
  48153. {
  48154. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  48155. 8013eca: 6a3b ldr r3, [r7, #32]
  48156. 8013ecc: 3304 adds r3, #4
  48157. 8013ece: 4618 mov r0, r3
  48158. 8013ed0: f7fd fa02 bl 80112d8 <uxListRemove>
  48159. prvAddTaskToReadyList( pxTCB );
  48160. 8013ed4: 6a3b ldr r3, [r7, #32]
  48161. 8013ed6: 6ada ldr r2, [r3, #44] @ 0x2c
  48162. 8013ed8: 4b1d ldr r3, [pc, #116] @ (8013f50 <xTaskGenericNotify+0x174>)
  48163. 8013eda: 681b ldr r3, [r3, #0]
  48164. 8013edc: 429a cmp r2, r3
  48165. 8013ede: d903 bls.n 8013ee8 <xTaskGenericNotify+0x10c>
  48166. 8013ee0: 6a3b ldr r3, [r7, #32]
  48167. 8013ee2: 6adb ldr r3, [r3, #44] @ 0x2c
  48168. 8013ee4: 4a1a ldr r2, [pc, #104] @ (8013f50 <xTaskGenericNotify+0x174>)
  48169. 8013ee6: 6013 str r3, [r2, #0]
  48170. 8013ee8: 6a3b ldr r3, [r7, #32]
  48171. 8013eea: 6ada ldr r2, [r3, #44] @ 0x2c
  48172. 8013eec: 4613 mov r3, r2
  48173. 8013eee: 009b lsls r3, r3, #2
  48174. 8013ef0: 4413 add r3, r2
  48175. 8013ef2: 009b lsls r3, r3, #2
  48176. 8013ef4: 4a17 ldr r2, [pc, #92] @ (8013f54 <xTaskGenericNotify+0x178>)
  48177. 8013ef6: 441a add r2, r3
  48178. 8013ef8: 6a3b ldr r3, [r7, #32]
  48179. 8013efa: 3304 adds r3, #4
  48180. 8013efc: 4619 mov r1, r3
  48181. 8013efe: 4610 mov r0, r2
  48182. 8013f00: f7fd f98d bl 801121e <vListInsertEnd>
  48183. /* The task should not have been on an event list. */
  48184. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  48185. 8013f04: 6a3b ldr r3, [r7, #32]
  48186. 8013f06: 6a9b ldr r3, [r3, #40] @ 0x28
  48187. 8013f08: 2b00 cmp r3, #0
  48188. 8013f0a: d00b beq.n 8013f24 <xTaskGenericNotify+0x148>
  48189. __asm volatile
  48190. 8013f0c: f04f 0350 mov.w r3, #80 @ 0x50
  48191. 8013f10: f383 8811 msr BASEPRI, r3
  48192. 8013f14: f3bf 8f6f isb sy
  48193. 8013f18: f3bf 8f4f dsb sy
  48194. 8013f1c: 613b str r3, [r7, #16]
  48195. }
  48196. 8013f1e: bf00 nop
  48197. 8013f20: bf00 nop
  48198. 8013f22: e7fd b.n 8013f20 <xTaskGenericNotify+0x144>
  48199. earliest possible time. */
  48200. prvResetNextTaskUnblockTime();
  48201. }
  48202. #endif
  48203. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  48204. 8013f24: 6a3b ldr r3, [r7, #32]
  48205. 8013f26: 6ada ldr r2, [r3, #44] @ 0x2c
  48206. 8013f28: 4b0b ldr r3, [pc, #44] @ (8013f58 <xTaskGenericNotify+0x17c>)
  48207. 8013f2a: 681b ldr r3, [r3, #0]
  48208. 8013f2c: 6adb ldr r3, [r3, #44] @ 0x2c
  48209. 8013f2e: 429a cmp r2, r3
  48210. 8013f30: d907 bls.n 8013f42 <xTaskGenericNotify+0x166>
  48211. {
  48212. /* The notified task has a priority above the currently
  48213. executing task so a yield is required. */
  48214. taskYIELD_IF_USING_PREEMPTION();
  48215. 8013f32: 4b0a ldr r3, [pc, #40] @ (8013f5c <xTaskGenericNotify+0x180>)
  48216. 8013f34: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48217. 8013f38: 601a str r2, [r3, #0]
  48218. 8013f3a: f3bf 8f4f dsb sy
  48219. 8013f3e: f3bf 8f6f isb sy
  48220. else
  48221. {
  48222. mtCOVERAGE_TEST_MARKER();
  48223. }
  48224. }
  48225. taskEXIT_CRITICAL();
  48226. 8013f42: f000 fe2b bl 8014b9c <vPortExitCritical>
  48227. return xReturn;
  48228. 8013f46: 6a7b ldr r3, [r7, #36] @ 0x24
  48229. }
  48230. 8013f48: 4618 mov r0, r3
  48231. 8013f4a: 3728 adds r7, #40 @ 0x28
  48232. 8013f4c: 46bd mov sp, r7
  48233. 8013f4e: bd80 pop {r7, pc}
  48234. 8013f50: 2400416c .word 0x2400416c
  48235. 8013f54: 24003c94 .word 0x24003c94
  48236. 8013f58: 24003c90 .word 0x24003c90
  48237. 8013f5c: e000ed04 .word 0xe000ed04
  48238. 08013f60 <xTaskGenericNotifyFromISR>:
  48239. /*-----------------------------------------------------------*/
  48240. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  48241. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  48242. {
  48243. 8013f60: b580 push {r7, lr}
  48244. 8013f62: b08e sub sp, #56 @ 0x38
  48245. 8013f64: af00 add r7, sp, #0
  48246. 8013f66: 60f8 str r0, [r7, #12]
  48247. 8013f68: 60b9 str r1, [r7, #8]
  48248. 8013f6a: 603b str r3, [r7, #0]
  48249. 8013f6c: 4613 mov r3, r2
  48250. 8013f6e: 71fb strb r3, [r7, #7]
  48251. TCB_t * pxTCB;
  48252. uint8_t ucOriginalNotifyState;
  48253. BaseType_t xReturn = pdPASS;
  48254. 8013f70: 2301 movs r3, #1
  48255. 8013f72: 637b str r3, [r7, #52] @ 0x34
  48256. UBaseType_t uxSavedInterruptStatus;
  48257. configASSERT( xTaskToNotify );
  48258. 8013f74: 68fb ldr r3, [r7, #12]
  48259. 8013f76: 2b00 cmp r3, #0
  48260. 8013f78: d10b bne.n 8013f92 <xTaskGenericNotifyFromISR+0x32>
  48261. __asm volatile
  48262. 8013f7a: f04f 0350 mov.w r3, #80 @ 0x50
  48263. 8013f7e: f383 8811 msr BASEPRI, r3
  48264. 8013f82: f3bf 8f6f isb sy
  48265. 8013f86: f3bf 8f4f dsb sy
  48266. 8013f8a: 627b str r3, [r7, #36] @ 0x24
  48267. }
  48268. 8013f8c: bf00 nop
  48269. 8013f8e: bf00 nop
  48270. 8013f90: e7fd b.n 8013f8e <xTaskGenericNotifyFromISR+0x2e>
  48271. below the maximum system call interrupt priority. FreeRTOS maintains a
  48272. separate interrupt safe API to ensure interrupt entry is as fast and as
  48273. simple as possible. More information (albeit Cortex-M specific) is
  48274. provided on the following link:
  48275. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  48276. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  48277. 8013f92: f000 feb1 bl 8014cf8 <vPortValidateInterruptPriority>
  48278. pxTCB = xTaskToNotify;
  48279. 8013f96: 68fb ldr r3, [r7, #12]
  48280. 8013f98: 633b str r3, [r7, #48] @ 0x30
  48281. __asm volatile
  48282. 8013f9a: f3ef 8211 mrs r2, BASEPRI
  48283. 8013f9e: f04f 0350 mov.w r3, #80 @ 0x50
  48284. 8013fa2: f383 8811 msr BASEPRI, r3
  48285. 8013fa6: f3bf 8f6f isb sy
  48286. 8013faa: f3bf 8f4f dsb sy
  48287. 8013fae: 623a str r2, [r7, #32]
  48288. 8013fb0: 61fb str r3, [r7, #28]
  48289. return ulOriginalBASEPRI;
  48290. 8013fb2: 6a3b ldr r3, [r7, #32]
  48291. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  48292. 8013fb4: 62fb str r3, [r7, #44] @ 0x2c
  48293. {
  48294. if( pulPreviousNotificationValue != NULL )
  48295. 8013fb6: 683b ldr r3, [r7, #0]
  48296. 8013fb8: 2b00 cmp r3, #0
  48297. 8013fba: d004 beq.n 8013fc6 <xTaskGenericNotifyFromISR+0x66>
  48298. {
  48299. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  48300. 8013fbc: 6b3b ldr r3, [r7, #48] @ 0x30
  48301. 8013fbe: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  48302. 8013fc2: 683b ldr r3, [r7, #0]
  48303. 8013fc4: 601a str r2, [r3, #0]
  48304. }
  48305. ucOriginalNotifyState = pxTCB->ucNotifyState;
  48306. 8013fc6: 6b3b ldr r3, [r7, #48] @ 0x30
  48307. 8013fc8: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  48308. 8013fcc: f887 302b strb.w r3, [r7, #43] @ 0x2b
  48309. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  48310. 8013fd0: 6b3b ldr r3, [r7, #48] @ 0x30
  48311. 8013fd2: 2202 movs r2, #2
  48312. 8013fd4: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  48313. switch( eAction )
  48314. 8013fd8: 79fb ldrb r3, [r7, #7]
  48315. 8013fda: 2b04 cmp r3, #4
  48316. 8013fdc: d82e bhi.n 801403c <xTaskGenericNotifyFromISR+0xdc>
  48317. 8013fde: a201 add r2, pc, #4 @ (adr r2, 8013fe4 <xTaskGenericNotifyFromISR+0x84>)
  48318. 8013fe0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  48319. 8013fe4: 08014061 .word 0x08014061
  48320. 8013fe8: 08013ff9 .word 0x08013ff9
  48321. 8013fec: 0801400b .word 0x0801400b
  48322. 8013ff0: 0801401b .word 0x0801401b
  48323. 8013ff4: 08014025 .word 0x08014025
  48324. {
  48325. case eSetBits :
  48326. pxTCB->ulNotifiedValue |= ulValue;
  48327. 8013ff8: 6b3b ldr r3, [r7, #48] @ 0x30
  48328. 8013ffa: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  48329. 8013ffe: 68bb ldr r3, [r7, #8]
  48330. 8014000: 431a orrs r2, r3
  48331. 8014002: 6b3b ldr r3, [r7, #48] @ 0x30
  48332. 8014004: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48333. break;
  48334. 8014008: e02d b.n 8014066 <xTaskGenericNotifyFromISR+0x106>
  48335. case eIncrement :
  48336. ( pxTCB->ulNotifiedValue )++;
  48337. 801400a: 6b3b ldr r3, [r7, #48] @ 0x30
  48338. 801400c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  48339. 8014010: 1c5a adds r2, r3, #1
  48340. 8014012: 6b3b ldr r3, [r7, #48] @ 0x30
  48341. 8014014: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48342. break;
  48343. 8014018: e025 b.n 8014066 <xTaskGenericNotifyFromISR+0x106>
  48344. case eSetValueWithOverwrite :
  48345. pxTCB->ulNotifiedValue = ulValue;
  48346. 801401a: 6b3b ldr r3, [r7, #48] @ 0x30
  48347. 801401c: 68ba ldr r2, [r7, #8]
  48348. 801401e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48349. break;
  48350. 8014022: e020 b.n 8014066 <xTaskGenericNotifyFromISR+0x106>
  48351. case eSetValueWithoutOverwrite :
  48352. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  48353. 8014024: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  48354. 8014028: 2b02 cmp r3, #2
  48355. 801402a: d004 beq.n 8014036 <xTaskGenericNotifyFromISR+0xd6>
  48356. {
  48357. pxTCB->ulNotifiedValue = ulValue;
  48358. 801402c: 6b3b ldr r3, [r7, #48] @ 0x30
  48359. 801402e: 68ba ldr r2, [r7, #8]
  48360. 8014030: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48361. else
  48362. {
  48363. /* The value could not be written to the task. */
  48364. xReturn = pdFAIL;
  48365. }
  48366. break;
  48367. 8014034: e017 b.n 8014066 <xTaskGenericNotifyFromISR+0x106>
  48368. xReturn = pdFAIL;
  48369. 8014036: 2300 movs r3, #0
  48370. 8014038: 637b str r3, [r7, #52] @ 0x34
  48371. break;
  48372. 801403a: e014 b.n 8014066 <xTaskGenericNotifyFromISR+0x106>
  48373. default:
  48374. /* Should not get here if all enums are handled.
  48375. Artificially force an assert by testing a value the
  48376. compiler can't assume is const. */
  48377. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  48378. 801403c: 6b3b ldr r3, [r7, #48] @ 0x30
  48379. 801403e: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  48380. 8014042: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48381. 8014046: d00d beq.n 8014064 <xTaskGenericNotifyFromISR+0x104>
  48382. __asm volatile
  48383. 8014048: f04f 0350 mov.w r3, #80 @ 0x50
  48384. 801404c: f383 8811 msr BASEPRI, r3
  48385. 8014050: f3bf 8f6f isb sy
  48386. 8014054: f3bf 8f4f dsb sy
  48387. 8014058: 61bb str r3, [r7, #24]
  48388. }
  48389. 801405a: bf00 nop
  48390. 801405c: bf00 nop
  48391. 801405e: e7fd b.n 801405c <xTaskGenericNotifyFromISR+0xfc>
  48392. break;
  48393. 8014060: bf00 nop
  48394. 8014062: e000 b.n 8014066 <xTaskGenericNotifyFromISR+0x106>
  48395. break;
  48396. 8014064: bf00 nop
  48397. traceTASK_NOTIFY_FROM_ISR();
  48398. /* If the task is in the blocked state specifically to wait for a
  48399. notification then unblock it now. */
  48400. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  48401. 8014066: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  48402. 801406a: 2b01 cmp r3, #1
  48403. 801406c: d147 bne.n 80140fe <xTaskGenericNotifyFromISR+0x19e>
  48404. {
  48405. /* The task should not have been on an event list. */
  48406. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  48407. 801406e: 6b3b ldr r3, [r7, #48] @ 0x30
  48408. 8014070: 6a9b ldr r3, [r3, #40] @ 0x28
  48409. 8014072: 2b00 cmp r3, #0
  48410. 8014074: d00b beq.n 801408e <xTaskGenericNotifyFromISR+0x12e>
  48411. __asm volatile
  48412. 8014076: f04f 0350 mov.w r3, #80 @ 0x50
  48413. 801407a: f383 8811 msr BASEPRI, r3
  48414. 801407e: f3bf 8f6f isb sy
  48415. 8014082: f3bf 8f4f dsb sy
  48416. 8014086: 617b str r3, [r7, #20]
  48417. }
  48418. 8014088: bf00 nop
  48419. 801408a: bf00 nop
  48420. 801408c: e7fd b.n 801408a <xTaskGenericNotifyFromISR+0x12a>
  48421. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  48422. 801408e: 4b21 ldr r3, [pc, #132] @ (8014114 <xTaskGenericNotifyFromISR+0x1b4>)
  48423. 8014090: 681b ldr r3, [r3, #0]
  48424. 8014092: 2b00 cmp r3, #0
  48425. 8014094: d11d bne.n 80140d2 <xTaskGenericNotifyFromISR+0x172>
  48426. {
  48427. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  48428. 8014096: 6b3b ldr r3, [r7, #48] @ 0x30
  48429. 8014098: 3304 adds r3, #4
  48430. 801409a: 4618 mov r0, r3
  48431. 801409c: f7fd f91c bl 80112d8 <uxListRemove>
  48432. prvAddTaskToReadyList( pxTCB );
  48433. 80140a0: 6b3b ldr r3, [r7, #48] @ 0x30
  48434. 80140a2: 6ada ldr r2, [r3, #44] @ 0x2c
  48435. 80140a4: 4b1c ldr r3, [pc, #112] @ (8014118 <xTaskGenericNotifyFromISR+0x1b8>)
  48436. 80140a6: 681b ldr r3, [r3, #0]
  48437. 80140a8: 429a cmp r2, r3
  48438. 80140aa: d903 bls.n 80140b4 <xTaskGenericNotifyFromISR+0x154>
  48439. 80140ac: 6b3b ldr r3, [r7, #48] @ 0x30
  48440. 80140ae: 6adb ldr r3, [r3, #44] @ 0x2c
  48441. 80140b0: 4a19 ldr r2, [pc, #100] @ (8014118 <xTaskGenericNotifyFromISR+0x1b8>)
  48442. 80140b2: 6013 str r3, [r2, #0]
  48443. 80140b4: 6b3b ldr r3, [r7, #48] @ 0x30
  48444. 80140b6: 6ada ldr r2, [r3, #44] @ 0x2c
  48445. 80140b8: 4613 mov r3, r2
  48446. 80140ba: 009b lsls r3, r3, #2
  48447. 80140bc: 4413 add r3, r2
  48448. 80140be: 009b lsls r3, r3, #2
  48449. 80140c0: 4a16 ldr r2, [pc, #88] @ (801411c <xTaskGenericNotifyFromISR+0x1bc>)
  48450. 80140c2: 441a add r2, r3
  48451. 80140c4: 6b3b ldr r3, [r7, #48] @ 0x30
  48452. 80140c6: 3304 adds r3, #4
  48453. 80140c8: 4619 mov r1, r3
  48454. 80140ca: 4610 mov r0, r2
  48455. 80140cc: f7fd f8a7 bl 801121e <vListInsertEnd>
  48456. 80140d0: e005 b.n 80140de <xTaskGenericNotifyFromISR+0x17e>
  48457. }
  48458. else
  48459. {
  48460. /* The delayed and ready lists cannot be accessed, so hold
  48461. this task pending until the scheduler is resumed. */
  48462. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  48463. 80140d2: 6b3b ldr r3, [r7, #48] @ 0x30
  48464. 80140d4: 3318 adds r3, #24
  48465. 80140d6: 4619 mov r1, r3
  48466. 80140d8: 4811 ldr r0, [pc, #68] @ (8014120 <xTaskGenericNotifyFromISR+0x1c0>)
  48467. 80140da: f7fd f8a0 bl 801121e <vListInsertEnd>
  48468. }
  48469. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  48470. 80140de: 6b3b ldr r3, [r7, #48] @ 0x30
  48471. 80140e0: 6ada ldr r2, [r3, #44] @ 0x2c
  48472. 80140e2: 4b10 ldr r3, [pc, #64] @ (8014124 <xTaskGenericNotifyFromISR+0x1c4>)
  48473. 80140e4: 681b ldr r3, [r3, #0]
  48474. 80140e6: 6adb ldr r3, [r3, #44] @ 0x2c
  48475. 80140e8: 429a cmp r2, r3
  48476. 80140ea: d908 bls.n 80140fe <xTaskGenericNotifyFromISR+0x19e>
  48477. {
  48478. /* The notified task has a priority above the currently
  48479. executing task so a yield is required. */
  48480. if( pxHigherPriorityTaskWoken != NULL )
  48481. 80140ec: 6c3b ldr r3, [r7, #64] @ 0x40
  48482. 80140ee: 2b00 cmp r3, #0
  48483. 80140f0: d002 beq.n 80140f8 <xTaskGenericNotifyFromISR+0x198>
  48484. {
  48485. *pxHigherPriorityTaskWoken = pdTRUE;
  48486. 80140f2: 6c3b ldr r3, [r7, #64] @ 0x40
  48487. 80140f4: 2201 movs r2, #1
  48488. 80140f6: 601a str r2, [r3, #0]
  48489. }
  48490. /* Mark that a yield is pending in case the user is not
  48491. using the "xHigherPriorityTaskWoken" parameter to an ISR
  48492. safe FreeRTOS function. */
  48493. xYieldPending = pdTRUE;
  48494. 80140f8: 4b0b ldr r3, [pc, #44] @ (8014128 <xTaskGenericNotifyFromISR+0x1c8>)
  48495. 80140fa: 2201 movs r2, #1
  48496. 80140fc: 601a str r2, [r3, #0]
  48497. 80140fe: 6afb ldr r3, [r7, #44] @ 0x2c
  48498. 8014100: 613b str r3, [r7, #16]
  48499. __asm volatile
  48500. 8014102: 693b ldr r3, [r7, #16]
  48501. 8014104: f383 8811 msr BASEPRI, r3
  48502. }
  48503. 8014108: bf00 nop
  48504. }
  48505. }
  48506. }
  48507. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  48508. return xReturn;
  48509. 801410a: 6b7b ldr r3, [r7, #52] @ 0x34
  48510. }
  48511. 801410c: 4618 mov r0, r3
  48512. 801410e: 3738 adds r7, #56 @ 0x38
  48513. 8014110: 46bd mov sp, r7
  48514. 8014112: bd80 pop {r7, pc}
  48515. 8014114: 2400418c .word 0x2400418c
  48516. 8014118: 2400416c .word 0x2400416c
  48517. 801411c: 24003c94 .word 0x24003c94
  48518. 8014120: 24004124 .word 0x24004124
  48519. 8014124: 24003c90 .word 0x24003c90
  48520. 8014128: 24004178 .word 0x24004178
  48521. 0801412c <xTaskNotifyStateClear>:
  48522. /*-----------------------------------------------------------*/
  48523. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  48524. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  48525. {
  48526. 801412c: b580 push {r7, lr}
  48527. 801412e: b084 sub sp, #16
  48528. 8014130: af00 add r7, sp, #0
  48529. 8014132: 6078 str r0, [r7, #4]
  48530. TCB_t *pxTCB;
  48531. BaseType_t xReturn;
  48532. /* If null is passed in here then it is the calling task that is having
  48533. its notification state cleared. */
  48534. pxTCB = prvGetTCBFromHandle( xTask );
  48535. 8014134: 687b ldr r3, [r7, #4]
  48536. 8014136: 2b00 cmp r3, #0
  48537. 8014138: d102 bne.n 8014140 <xTaskNotifyStateClear+0x14>
  48538. 801413a: 4b0e ldr r3, [pc, #56] @ (8014174 <xTaskNotifyStateClear+0x48>)
  48539. 801413c: 681b ldr r3, [r3, #0]
  48540. 801413e: e000 b.n 8014142 <xTaskNotifyStateClear+0x16>
  48541. 8014140: 687b ldr r3, [r7, #4]
  48542. 8014142: 60bb str r3, [r7, #8]
  48543. taskENTER_CRITICAL();
  48544. 8014144: f000 fcf8 bl 8014b38 <vPortEnterCritical>
  48545. {
  48546. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  48547. 8014148: 68bb ldr r3, [r7, #8]
  48548. 801414a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  48549. 801414e: b2db uxtb r3, r3
  48550. 8014150: 2b02 cmp r3, #2
  48551. 8014152: d106 bne.n 8014162 <xTaskNotifyStateClear+0x36>
  48552. {
  48553. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  48554. 8014154: 68bb ldr r3, [r7, #8]
  48555. 8014156: 2200 movs r2, #0
  48556. 8014158: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  48557. xReturn = pdPASS;
  48558. 801415c: 2301 movs r3, #1
  48559. 801415e: 60fb str r3, [r7, #12]
  48560. 8014160: e001 b.n 8014166 <xTaskNotifyStateClear+0x3a>
  48561. }
  48562. else
  48563. {
  48564. xReturn = pdFAIL;
  48565. 8014162: 2300 movs r3, #0
  48566. 8014164: 60fb str r3, [r7, #12]
  48567. }
  48568. }
  48569. taskEXIT_CRITICAL();
  48570. 8014166: f000 fd19 bl 8014b9c <vPortExitCritical>
  48571. return xReturn;
  48572. 801416a: 68fb ldr r3, [r7, #12]
  48573. }
  48574. 801416c: 4618 mov r0, r3
  48575. 801416e: 3710 adds r7, #16
  48576. 8014170: 46bd mov sp, r7
  48577. 8014172: bd80 pop {r7, pc}
  48578. 8014174: 24003c90 .word 0x24003c90
  48579. 08014178 <prvAddCurrentTaskToDelayedList>:
  48580. #endif
  48581. /*-----------------------------------------------------------*/
  48582. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  48583. {
  48584. 8014178: b580 push {r7, lr}
  48585. 801417a: b084 sub sp, #16
  48586. 801417c: af00 add r7, sp, #0
  48587. 801417e: 6078 str r0, [r7, #4]
  48588. 8014180: 6039 str r1, [r7, #0]
  48589. TickType_t xTimeToWake;
  48590. const TickType_t xConstTickCount = xTickCount;
  48591. 8014182: 4b21 ldr r3, [pc, #132] @ (8014208 <prvAddCurrentTaskToDelayedList+0x90>)
  48592. 8014184: 681b ldr r3, [r3, #0]
  48593. 8014186: 60fb str r3, [r7, #12]
  48594. }
  48595. #endif
  48596. /* Remove the task from the ready list before adding it to the blocked list
  48597. as the same list item is used for both lists. */
  48598. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  48599. 8014188: 4b20 ldr r3, [pc, #128] @ (801420c <prvAddCurrentTaskToDelayedList+0x94>)
  48600. 801418a: 681b ldr r3, [r3, #0]
  48601. 801418c: 3304 adds r3, #4
  48602. 801418e: 4618 mov r0, r3
  48603. 8014190: f7fd f8a2 bl 80112d8 <uxListRemove>
  48604. mtCOVERAGE_TEST_MARKER();
  48605. }
  48606. #if ( INCLUDE_vTaskSuspend == 1 )
  48607. {
  48608. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  48609. 8014194: 687b ldr r3, [r7, #4]
  48610. 8014196: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48611. 801419a: d10a bne.n 80141b2 <prvAddCurrentTaskToDelayedList+0x3a>
  48612. 801419c: 683b ldr r3, [r7, #0]
  48613. 801419e: 2b00 cmp r3, #0
  48614. 80141a0: d007 beq.n 80141b2 <prvAddCurrentTaskToDelayedList+0x3a>
  48615. {
  48616. /* Add the task to the suspended task list instead of a delayed task
  48617. list to ensure it is not woken by a timing event. It will block
  48618. indefinitely. */
  48619. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  48620. 80141a2: 4b1a ldr r3, [pc, #104] @ (801420c <prvAddCurrentTaskToDelayedList+0x94>)
  48621. 80141a4: 681b ldr r3, [r3, #0]
  48622. 80141a6: 3304 adds r3, #4
  48623. 80141a8: 4619 mov r1, r3
  48624. 80141aa: 4819 ldr r0, [pc, #100] @ (8014210 <prvAddCurrentTaskToDelayedList+0x98>)
  48625. 80141ac: f7fd f837 bl 801121e <vListInsertEnd>
  48626. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  48627. ( void ) xCanBlockIndefinitely;
  48628. }
  48629. #endif /* INCLUDE_vTaskSuspend */
  48630. }
  48631. 80141b0: e026 b.n 8014200 <prvAddCurrentTaskToDelayedList+0x88>
  48632. xTimeToWake = xConstTickCount + xTicksToWait;
  48633. 80141b2: 68fa ldr r2, [r7, #12]
  48634. 80141b4: 687b ldr r3, [r7, #4]
  48635. 80141b6: 4413 add r3, r2
  48636. 80141b8: 60bb str r3, [r7, #8]
  48637. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  48638. 80141ba: 4b14 ldr r3, [pc, #80] @ (801420c <prvAddCurrentTaskToDelayedList+0x94>)
  48639. 80141bc: 681b ldr r3, [r3, #0]
  48640. 80141be: 68ba ldr r2, [r7, #8]
  48641. 80141c0: 605a str r2, [r3, #4]
  48642. if( xTimeToWake < xConstTickCount )
  48643. 80141c2: 68ba ldr r2, [r7, #8]
  48644. 80141c4: 68fb ldr r3, [r7, #12]
  48645. 80141c6: 429a cmp r2, r3
  48646. 80141c8: d209 bcs.n 80141de <prvAddCurrentTaskToDelayedList+0x66>
  48647. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  48648. 80141ca: 4b12 ldr r3, [pc, #72] @ (8014214 <prvAddCurrentTaskToDelayedList+0x9c>)
  48649. 80141cc: 681a ldr r2, [r3, #0]
  48650. 80141ce: 4b0f ldr r3, [pc, #60] @ (801420c <prvAddCurrentTaskToDelayedList+0x94>)
  48651. 80141d0: 681b ldr r3, [r3, #0]
  48652. 80141d2: 3304 adds r3, #4
  48653. 80141d4: 4619 mov r1, r3
  48654. 80141d6: 4610 mov r0, r2
  48655. 80141d8: f7fd f845 bl 8011266 <vListInsert>
  48656. }
  48657. 80141dc: e010 b.n 8014200 <prvAddCurrentTaskToDelayedList+0x88>
  48658. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  48659. 80141de: 4b0e ldr r3, [pc, #56] @ (8014218 <prvAddCurrentTaskToDelayedList+0xa0>)
  48660. 80141e0: 681a ldr r2, [r3, #0]
  48661. 80141e2: 4b0a ldr r3, [pc, #40] @ (801420c <prvAddCurrentTaskToDelayedList+0x94>)
  48662. 80141e4: 681b ldr r3, [r3, #0]
  48663. 80141e6: 3304 adds r3, #4
  48664. 80141e8: 4619 mov r1, r3
  48665. 80141ea: 4610 mov r0, r2
  48666. 80141ec: f7fd f83b bl 8011266 <vListInsert>
  48667. if( xTimeToWake < xNextTaskUnblockTime )
  48668. 80141f0: 4b0a ldr r3, [pc, #40] @ (801421c <prvAddCurrentTaskToDelayedList+0xa4>)
  48669. 80141f2: 681b ldr r3, [r3, #0]
  48670. 80141f4: 68ba ldr r2, [r7, #8]
  48671. 80141f6: 429a cmp r2, r3
  48672. 80141f8: d202 bcs.n 8014200 <prvAddCurrentTaskToDelayedList+0x88>
  48673. xNextTaskUnblockTime = xTimeToWake;
  48674. 80141fa: 4a08 ldr r2, [pc, #32] @ (801421c <prvAddCurrentTaskToDelayedList+0xa4>)
  48675. 80141fc: 68bb ldr r3, [r7, #8]
  48676. 80141fe: 6013 str r3, [r2, #0]
  48677. }
  48678. 8014200: bf00 nop
  48679. 8014202: 3710 adds r7, #16
  48680. 8014204: 46bd mov sp, r7
  48681. 8014206: bd80 pop {r7, pc}
  48682. 8014208: 24004168 .word 0x24004168
  48683. 801420c: 24003c90 .word 0x24003c90
  48684. 8014210: 24004150 .word 0x24004150
  48685. 8014214: 24004120 .word 0x24004120
  48686. 8014218: 2400411c .word 0x2400411c
  48687. 801421c: 24004184 .word 0x24004184
  48688. 08014220 <xTimerCreateTimerTask>:
  48689. TimerCallbackFunction_t pxCallbackFunction,
  48690. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  48691. /*-----------------------------------------------------------*/
  48692. BaseType_t xTimerCreateTimerTask( void )
  48693. {
  48694. 8014220: b580 push {r7, lr}
  48695. 8014222: b08a sub sp, #40 @ 0x28
  48696. 8014224: af04 add r7, sp, #16
  48697. BaseType_t xReturn = pdFAIL;
  48698. 8014226: 2300 movs r3, #0
  48699. 8014228: 617b str r3, [r7, #20]
  48700. /* This function is called when the scheduler is started if
  48701. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  48702. timer service task has been created/initialised. If timers have already
  48703. been created then the initialisation will already have been performed. */
  48704. prvCheckForValidListAndQueue();
  48705. 801422a: f000 fb13 bl 8014854 <prvCheckForValidListAndQueue>
  48706. if( xTimerQueue != NULL )
  48707. 801422e: 4b1d ldr r3, [pc, #116] @ (80142a4 <xTimerCreateTimerTask+0x84>)
  48708. 8014230: 681b ldr r3, [r3, #0]
  48709. 8014232: 2b00 cmp r3, #0
  48710. 8014234: d021 beq.n 801427a <xTimerCreateTimerTask+0x5a>
  48711. {
  48712. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48713. {
  48714. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  48715. 8014236: 2300 movs r3, #0
  48716. 8014238: 60fb str r3, [r7, #12]
  48717. StackType_t *pxTimerTaskStackBuffer = NULL;
  48718. 801423a: 2300 movs r3, #0
  48719. 801423c: 60bb str r3, [r7, #8]
  48720. uint32_t ulTimerTaskStackSize;
  48721. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  48722. 801423e: 1d3a adds r2, r7, #4
  48723. 8014240: f107 0108 add.w r1, r7, #8
  48724. 8014244: f107 030c add.w r3, r7, #12
  48725. 8014248: 4618 mov r0, r3
  48726. 801424a: f7fc ffa1 bl 8011190 <vApplicationGetTimerTaskMemory>
  48727. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  48728. 801424e: 6879 ldr r1, [r7, #4]
  48729. 8014250: 68bb ldr r3, [r7, #8]
  48730. 8014252: 68fa ldr r2, [r7, #12]
  48731. 8014254: 9202 str r2, [sp, #8]
  48732. 8014256: 9301 str r3, [sp, #4]
  48733. 8014258: 2302 movs r3, #2
  48734. 801425a: 9300 str r3, [sp, #0]
  48735. 801425c: 2300 movs r3, #0
  48736. 801425e: 460a mov r2, r1
  48737. 8014260: 4911 ldr r1, [pc, #68] @ (80142a8 <xTimerCreateTimerTask+0x88>)
  48738. 8014262: 4812 ldr r0, [pc, #72] @ (80142ac <xTimerCreateTimerTask+0x8c>)
  48739. 8014264: f7fe fd1c bl 8012ca0 <xTaskCreateStatic>
  48740. 8014268: 4603 mov r3, r0
  48741. 801426a: 4a11 ldr r2, [pc, #68] @ (80142b0 <xTimerCreateTimerTask+0x90>)
  48742. 801426c: 6013 str r3, [r2, #0]
  48743. NULL,
  48744. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  48745. pxTimerTaskStackBuffer,
  48746. pxTimerTaskTCBBuffer );
  48747. if( xTimerTaskHandle != NULL )
  48748. 801426e: 4b10 ldr r3, [pc, #64] @ (80142b0 <xTimerCreateTimerTask+0x90>)
  48749. 8014270: 681b ldr r3, [r3, #0]
  48750. 8014272: 2b00 cmp r3, #0
  48751. 8014274: d001 beq.n 801427a <xTimerCreateTimerTask+0x5a>
  48752. {
  48753. xReturn = pdPASS;
  48754. 8014276: 2301 movs r3, #1
  48755. 8014278: 617b str r3, [r7, #20]
  48756. else
  48757. {
  48758. mtCOVERAGE_TEST_MARKER();
  48759. }
  48760. configASSERT( xReturn );
  48761. 801427a: 697b ldr r3, [r7, #20]
  48762. 801427c: 2b00 cmp r3, #0
  48763. 801427e: d10b bne.n 8014298 <xTimerCreateTimerTask+0x78>
  48764. __asm volatile
  48765. 8014280: f04f 0350 mov.w r3, #80 @ 0x50
  48766. 8014284: f383 8811 msr BASEPRI, r3
  48767. 8014288: f3bf 8f6f isb sy
  48768. 801428c: f3bf 8f4f dsb sy
  48769. 8014290: 613b str r3, [r7, #16]
  48770. }
  48771. 8014292: bf00 nop
  48772. 8014294: bf00 nop
  48773. 8014296: e7fd b.n 8014294 <xTimerCreateTimerTask+0x74>
  48774. return xReturn;
  48775. 8014298: 697b ldr r3, [r7, #20]
  48776. }
  48777. 801429a: 4618 mov r0, r3
  48778. 801429c: 3718 adds r7, #24
  48779. 801429e: 46bd mov sp, r7
  48780. 80142a0: bd80 pop {r7, pc}
  48781. 80142a2: bf00 nop
  48782. 80142a4: 240041c0 .word 0x240041c0
  48783. 80142a8: 0802cbbc .word 0x0802cbbc
  48784. 80142ac: 080143ed .word 0x080143ed
  48785. 80142b0: 240041c4 .word 0x240041c4
  48786. 080142b4 <xTimerGenericCommand>:
  48787. }
  48788. }
  48789. /*-----------------------------------------------------------*/
  48790. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  48791. {
  48792. 80142b4: b580 push {r7, lr}
  48793. 80142b6: b08a sub sp, #40 @ 0x28
  48794. 80142b8: af00 add r7, sp, #0
  48795. 80142ba: 60f8 str r0, [r7, #12]
  48796. 80142bc: 60b9 str r1, [r7, #8]
  48797. 80142be: 607a str r2, [r7, #4]
  48798. 80142c0: 603b str r3, [r7, #0]
  48799. BaseType_t xReturn = pdFAIL;
  48800. 80142c2: 2300 movs r3, #0
  48801. 80142c4: 627b str r3, [r7, #36] @ 0x24
  48802. DaemonTaskMessage_t xMessage;
  48803. configASSERT( xTimer );
  48804. 80142c6: 68fb ldr r3, [r7, #12]
  48805. 80142c8: 2b00 cmp r3, #0
  48806. 80142ca: d10b bne.n 80142e4 <xTimerGenericCommand+0x30>
  48807. __asm volatile
  48808. 80142cc: f04f 0350 mov.w r3, #80 @ 0x50
  48809. 80142d0: f383 8811 msr BASEPRI, r3
  48810. 80142d4: f3bf 8f6f isb sy
  48811. 80142d8: f3bf 8f4f dsb sy
  48812. 80142dc: 623b str r3, [r7, #32]
  48813. }
  48814. 80142de: bf00 nop
  48815. 80142e0: bf00 nop
  48816. 80142e2: e7fd b.n 80142e0 <xTimerGenericCommand+0x2c>
  48817. /* Send a message to the timer service task to perform a particular action
  48818. on a particular timer definition. */
  48819. if( xTimerQueue != NULL )
  48820. 80142e4: 4b19 ldr r3, [pc, #100] @ (801434c <xTimerGenericCommand+0x98>)
  48821. 80142e6: 681b ldr r3, [r3, #0]
  48822. 80142e8: 2b00 cmp r3, #0
  48823. 80142ea: d02a beq.n 8014342 <xTimerGenericCommand+0x8e>
  48824. {
  48825. /* Send a command to the timer service task to start the xTimer timer. */
  48826. xMessage.xMessageID = xCommandID;
  48827. 80142ec: 68bb ldr r3, [r7, #8]
  48828. 80142ee: 613b str r3, [r7, #16]
  48829. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  48830. 80142f0: 687b ldr r3, [r7, #4]
  48831. 80142f2: 617b str r3, [r7, #20]
  48832. xMessage.u.xTimerParameters.pxTimer = xTimer;
  48833. 80142f4: 68fb ldr r3, [r7, #12]
  48834. 80142f6: 61bb str r3, [r7, #24]
  48835. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  48836. 80142f8: 68bb ldr r3, [r7, #8]
  48837. 80142fa: 2b05 cmp r3, #5
  48838. 80142fc: dc18 bgt.n 8014330 <xTimerGenericCommand+0x7c>
  48839. {
  48840. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  48841. 80142fe: f7ff fb7f bl 8013a00 <xTaskGetSchedulerState>
  48842. 8014302: 4603 mov r3, r0
  48843. 8014304: 2b02 cmp r3, #2
  48844. 8014306: d109 bne.n 801431c <xTimerGenericCommand+0x68>
  48845. {
  48846. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  48847. 8014308: 4b10 ldr r3, [pc, #64] @ (801434c <xTimerGenericCommand+0x98>)
  48848. 801430a: 6818 ldr r0, [r3, #0]
  48849. 801430c: f107 0110 add.w r1, r7, #16
  48850. 8014310: 2300 movs r3, #0
  48851. 8014312: 6b3a ldr r2, [r7, #48] @ 0x30
  48852. 8014314: f7fd fa76 bl 8011804 <xQueueGenericSend>
  48853. 8014318: 6278 str r0, [r7, #36] @ 0x24
  48854. 801431a: e012 b.n 8014342 <xTimerGenericCommand+0x8e>
  48855. }
  48856. else
  48857. {
  48858. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  48859. 801431c: 4b0b ldr r3, [pc, #44] @ (801434c <xTimerGenericCommand+0x98>)
  48860. 801431e: 6818 ldr r0, [r3, #0]
  48861. 8014320: f107 0110 add.w r1, r7, #16
  48862. 8014324: 2300 movs r3, #0
  48863. 8014326: 2200 movs r2, #0
  48864. 8014328: f7fd fa6c bl 8011804 <xQueueGenericSend>
  48865. 801432c: 6278 str r0, [r7, #36] @ 0x24
  48866. 801432e: e008 b.n 8014342 <xTimerGenericCommand+0x8e>
  48867. }
  48868. }
  48869. else
  48870. {
  48871. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  48872. 8014330: 4b06 ldr r3, [pc, #24] @ (801434c <xTimerGenericCommand+0x98>)
  48873. 8014332: 6818 ldr r0, [r3, #0]
  48874. 8014334: f107 0110 add.w r1, r7, #16
  48875. 8014338: 2300 movs r3, #0
  48876. 801433a: 683a ldr r2, [r7, #0]
  48877. 801433c: f7fd fb64 bl 8011a08 <xQueueGenericSendFromISR>
  48878. 8014340: 6278 str r0, [r7, #36] @ 0x24
  48879. else
  48880. {
  48881. mtCOVERAGE_TEST_MARKER();
  48882. }
  48883. return xReturn;
  48884. 8014342: 6a7b ldr r3, [r7, #36] @ 0x24
  48885. }
  48886. 8014344: 4618 mov r0, r3
  48887. 8014346: 3728 adds r7, #40 @ 0x28
  48888. 8014348: 46bd mov sp, r7
  48889. 801434a: bd80 pop {r7, pc}
  48890. 801434c: 240041c0 .word 0x240041c0
  48891. 08014350 <prvProcessExpiredTimer>:
  48892. return pxTimer->pcTimerName;
  48893. }
  48894. /*-----------------------------------------------------------*/
  48895. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  48896. {
  48897. 8014350: b580 push {r7, lr}
  48898. 8014352: b088 sub sp, #32
  48899. 8014354: af02 add r7, sp, #8
  48900. 8014356: 6078 str r0, [r7, #4]
  48901. 8014358: 6039 str r1, [r7, #0]
  48902. BaseType_t xResult;
  48903. 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. */
  48904. 801435a: 4b23 ldr r3, [pc, #140] @ (80143e8 <prvProcessExpiredTimer+0x98>)
  48905. 801435c: 681b ldr r3, [r3, #0]
  48906. 801435e: 68db ldr r3, [r3, #12]
  48907. 8014360: 68db ldr r3, [r3, #12]
  48908. 8014362: 617b str r3, [r7, #20]
  48909. /* Remove the timer from the list of active timers. A check has already
  48910. been performed to ensure the list is not empty. */
  48911. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  48912. 8014364: 697b ldr r3, [r7, #20]
  48913. 8014366: 3304 adds r3, #4
  48914. 8014368: 4618 mov r0, r3
  48915. 801436a: f7fc ffb5 bl 80112d8 <uxListRemove>
  48916. traceTIMER_EXPIRED( pxTimer );
  48917. /* If the timer is an auto-reload timer then calculate the next
  48918. expiry time and re-insert the timer in the list of active timers. */
  48919. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  48920. 801436e: 697b ldr r3, [r7, #20]
  48921. 8014370: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48922. 8014374: f003 0304 and.w r3, r3, #4
  48923. 8014378: 2b00 cmp r3, #0
  48924. 801437a: d023 beq.n 80143c4 <prvProcessExpiredTimer+0x74>
  48925. {
  48926. /* The timer is inserted into a list using a time relative to anything
  48927. other than the current time. It will therefore be inserted into the
  48928. correct list relative to the time this task thinks it is now. */
  48929. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  48930. 801437c: 697b ldr r3, [r7, #20]
  48931. 801437e: 699a ldr r2, [r3, #24]
  48932. 8014380: 687b ldr r3, [r7, #4]
  48933. 8014382: 18d1 adds r1, r2, r3
  48934. 8014384: 687b ldr r3, [r7, #4]
  48935. 8014386: 683a ldr r2, [r7, #0]
  48936. 8014388: 6978 ldr r0, [r7, #20]
  48937. 801438a: f000 f8d5 bl 8014538 <prvInsertTimerInActiveList>
  48938. 801438e: 4603 mov r3, r0
  48939. 8014390: 2b00 cmp r3, #0
  48940. 8014392: d020 beq.n 80143d6 <prvProcessExpiredTimer+0x86>
  48941. {
  48942. /* The timer expired before it was added to the active timer
  48943. list. Reload it now. */
  48944. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  48945. 8014394: 2300 movs r3, #0
  48946. 8014396: 9300 str r3, [sp, #0]
  48947. 8014398: 2300 movs r3, #0
  48948. 801439a: 687a ldr r2, [r7, #4]
  48949. 801439c: 2100 movs r1, #0
  48950. 801439e: 6978 ldr r0, [r7, #20]
  48951. 80143a0: f7ff ff88 bl 80142b4 <xTimerGenericCommand>
  48952. 80143a4: 6138 str r0, [r7, #16]
  48953. configASSERT( xResult );
  48954. 80143a6: 693b ldr r3, [r7, #16]
  48955. 80143a8: 2b00 cmp r3, #0
  48956. 80143aa: d114 bne.n 80143d6 <prvProcessExpiredTimer+0x86>
  48957. __asm volatile
  48958. 80143ac: f04f 0350 mov.w r3, #80 @ 0x50
  48959. 80143b0: f383 8811 msr BASEPRI, r3
  48960. 80143b4: f3bf 8f6f isb sy
  48961. 80143b8: f3bf 8f4f dsb sy
  48962. 80143bc: 60fb str r3, [r7, #12]
  48963. }
  48964. 80143be: bf00 nop
  48965. 80143c0: bf00 nop
  48966. 80143c2: e7fd b.n 80143c0 <prvProcessExpiredTimer+0x70>
  48967. mtCOVERAGE_TEST_MARKER();
  48968. }
  48969. }
  48970. else
  48971. {
  48972. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  48973. 80143c4: 697b ldr r3, [r7, #20]
  48974. 80143c6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  48975. 80143ca: f023 0301 bic.w r3, r3, #1
  48976. 80143ce: b2da uxtb r2, r3
  48977. 80143d0: 697b ldr r3, [r7, #20]
  48978. 80143d2: f883 2028 strb.w r2, [r3, #40] @ 0x28
  48979. mtCOVERAGE_TEST_MARKER();
  48980. }
  48981. /* Call the timer callback. */
  48982. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  48983. 80143d6: 697b ldr r3, [r7, #20]
  48984. 80143d8: 6a1b ldr r3, [r3, #32]
  48985. 80143da: 6978 ldr r0, [r7, #20]
  48986. 80143dc: 4798 blx r3
  48987. }
  48988. 80143de: bf00 nop
  48989. 80143e0: 3718 adds r7, #24
  48990. 80143e2: 46bd mov sp, r7
  48991. 80143e4: bd80 pop {r7, pc}
  48992. 80143e6: bf00 nop
  48993. 80143e8: 240041b8 .word 0x240041b8
  48994. 080143ec <prvTimerTask>:
  48995. /*-----------------------------------------------------------*/
  48996. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  48997. {
  48998. 80143ec: b580 push {r7, lr}
  48999. 80143ee: b084 sub sp, #16
  49000. 80143f0: af00 add r7, sp, #0
  49001. 80143f2: 6078 str r0, [r7, #4]
  49002. for( ;; )
  49003. {
  49004. /* Query the timers list to see if it contains any timers, and if so,
  49005. obtain the time at which the next timer will expire. */
  49006. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  49007. 80143f4: f107 0308 add.w r3, r7, #8
  49008. 80143f8: 4618 mov r0, r3
  49009. 80143fa: f000 f859 bl 80144b0 <prvGetNextExpireTime>
  49010. 80143fe: 60f8 str r0, [r7, #12]
  49011. /* If a timer has expired, process it. Otherwise, block this task
  49012. until either a timer does expire, or a command is received. */
  49013. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  49014. 8014400: 68bb ldr r3, [r7, #8]
  49015. 8014402: 4619 mov r1, r3
  49016. 8014404: 68f8 ldr r0, [r7, #12]
  49017. 8014406: f000 f805 bl 8014414 <prvProcessTimerOrBlockTask>
  49018. /* Empty the command queue. */
  49019. prvProcessReceivedCommands();
  49020. 801440a: f000 f8d7 bl 80145bc <prvProcessReceivedCommands>
  49021. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  49022. 801440e: bf00 nop
  49023. 8014410: e7f0 b.n 80143f4 <prvTimerTask+0x8>
  49024. ...
  49025. 08014414 <prvProcessTimerOrBlockTask>:
  49026. }
  49027. }
  49028. /*-----------------------------------------------------------*/
  49029. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  49030. {
  49031. 8014414: b580 push {r7, lr}
  49032. 8014416: b084 sub sp, #16
  49033. 8014418: af00 add r7, sp, #0
  49034. 801441a: 6078 str r0, [r7, #4]
  49035. 801441c: 6039 str r1, [r7, #0]
  49036. TickType_t xTimeNow;
  49037. BaseType_t xTimerListsWereSwitched;
  49038. vTaskSuspendAll();
  49039. 801441e: f7fe fea3 bl 8013168 <vTaskSuspendAll>
  49040. /* Obtain the time now to make an assessment as to whether the timer
  49041. has expired or not. If obtaining the time causes the lists to switch
  49042. then don't process this timer as any timers that remained in the list
  49043. when the lists were switched will have been processed within the
  49044. prvSampleTimeNow() function. */
  49045. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  49046. 8014422: f107 0308 add.w r3, r7, #8
  49047. 8014426: 4618 mov r0, r3
  49048. 8014428: f000 f866 bl 80144f8 <prvSampleTimeNow>
  49049. 801442c: 60f8 str r0, [r7, #12]
  49050. if( xTimerListsWereSwitched == pdFALSE )
  49051. 801442e: 68bb ldr r3, [r7, #8]
  49052. 8014430: 2b00 cmp r3, #0
  49053. 8014432: d130 bne.n 8014496 <prvProcessTimerOrBlockTask+0x82>
  49054. {
  49055. /* The tick count has not overflowed, has the timer expired? */
  49056. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  49057. 8014434: 683b ldr r3, [r7, #0]
  49058. 8014436: 2b00 cmp r3, #0
  49059. 8014438: d10a bne.n 8014450 <prvProcessTimerOrBlockTask+0x3c>
  49060. 801443a: 687a ldr r2, [r7, #4]
  49061. 801443c: 68fb ldr r3, [r7, #12]
  49062. 801443e: 429a cmp r2, r3
  49063. 8014440: d806 bhi.n 8014450 <prvProcessTimerOrBlockTask+0x3c>
  49064. {
  49065. ( void ) xTaskResumeAll();
  49066. 8014442: f7fe fe9f bl 8013184 <xTaskResumeAll>
  49067. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  49068. 8014446: 68f9 ldr r1, [r7, #12]
  49069. 8014448: 6878 ldr r0, [r7, #4]
  49070. 801444a: f7ff ff81 bl 8014350 <prvProcessExpiredTimer>
  49071. else
  49072. {
  49073. ( void ) xTaskResumeAll();
  49074. }
  49075. }
  49076. }
  49077. 801444e: e024 b.n 801449a <prvProcessTimerOrBlockTask+0x86>
  49078. if( xListWasEmpty != pdFALSE )
  49079. 8014450: 683b ldr r3, [r7, #0]
  49080. 8014452: 2b00 cmp r3, #0
  49081. 8014454: d008 beq.n 8014468 <prvProcessTimerOrBlockTask+0x54>
  49082. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  49083. 8014456: 4b13 ldr r3, [pc, #76] @ (80144a4 <prvProcessTimerOrBlockTask+0x90>)
  49084. 8014458: 681b ldr r3, [r3, #0]
  49085. 801445a: 681b ldr r3, [r3, #0]
  49086. 801445c: 2b00 cmp r3, #0
  49087. 801445e: d101 bne.n 8014464 <prvProcessTimerOrBlockTask+0x50>
  49088. 8014460: 2301 movs r3, #1
  49089. 8014462: e000 b.n 8014466 <prvProcessTimerOrBlockTask+0x52>
  49090. 8014464: 2300 movs r3, #0
  49091. 8014466: 603b str r3, [r7, #0]
  49092. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  49093. 8014468: 4b0f ldr r3, [pc, #60] @ (80144a8 <prvProcessTimerOrBlockTask+0x94>)
  49094. 801446a: 6818 ldr r0, [r3, #0]
  49095. 801446c: 687a ldr r2, [r7, #4]
  49096. 801446e: 68fb ldr r3, [r7, #12]
  49097. 8014470: 1ad3 subs r3, r2, r3
  49098. 8014472: 683a ldr r2, [r7, #0]
  49099. 8014474: 4619 mov r1, r3
  49100. 8014476: f7fe f847 bl 8012508 <vQueueWaitForMessageRestricted>
  49101. if( xTaskResumeAll() == pdFALSE )
  49102. 801447a: f7fe fe83 bl 8013184 <xTaskResumeAll>
  49103. 801447e: 4603 mov r3, r0
  49104. 8014480: 2b00 cmp r3, #0
  49105. 8014482: d10a bne.n 801449a <prvProcessTimerOrBlockTask+0x86>
  49106. portYIELD_WITHIN_API();
  49107. 8014484: 4b09 ldr r3, [pc, #36] @ (80144ac <prvProcessTimerOrBlockTask+0x98>)
  49108. 8014486: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49109. 801448a: 601a str r2, [r3, #0]
  49110. 801448c: f3bf 8f4f dsb sy
  49111. 8014490: f3bf 8f6f isb sy
  49112. }
  49113. 8014494: e001 b.n 801449a <prvProcessTimerOrBlockTask+0x86>
  49114. ( void ) xTaskResumeAll();
  49115. 8014496: f7fe fe75 bl 8013184 <xTaskResumeAll>
  49116. }
  49117. 801449a: bf00 nop
  49118. 801449c: 3710 adds r7, #16
  49119. 801449e: 46bd mov sp, r7
  49120. 80144a0: bd80 pop {r7, pc}
  49121. 80144a2: bf00 nop
  49122. 80144a4: 240041bc .word 0x240041bc
  49123. 80144a8: 240041c0 .word 0x240041c0
  49124. 80144ac: e000ed04 .word 0xe000ed04
  49125. 080144b0 <prvGetNextExpireTime>:
  49126. /*-----------------------------------------------------------*/
  49127. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  49128. {
  49129. 80144b0: b480 push {r7}
  49130. 80144b2: b085 sub sp, #20
  49131. 80144b4: af00 add r7, sp, #0
  49132. 80144b6: 6078 str r0, [r7, #4]
  49133. the timer with the nearest expiry time will expire. If there are no
  49134. active timers then just set the next expire time to 0. That will cause
  49135. this task to unblock when the tick count overflows, at which point the
  49136. timer lists will be switched and the next expiry time can be
  49137. re-assessed. */
  49138. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  49139. 80144b8: 4b0e ldr r3, [pc, #56] @ (80144f4 <prvGetNextExpireTime+0x44>)
  49140. 80144ba: 681b ldr r3, [r3, #0]
  49141. 80144bc: 681b ldr r3, [r3, #0]
  49142. 80144be: 2b00 cmp r3, #0
  49143. 80144c0: d101 bne.n 80144c6 <prvGetNextExpireTime+0x16>
  49144. 80144c2: 2201 movs r2, #1
  49145. 80144c4: e000 b.n 80144c8 <prvGetNextExpireTime+0x18>
  49146. 80144c6: 2200 movs r2, #0
  49147. 80144c8: 687b ldr r3, [r7, #4]
  49148. 80144ca: 601a str r2, [r3, #0]
  49149. if( *pxListWasEmpty == pdFALSE )
  49150. 80144cc: 687b ldr r3, [r7, #4]
  49151. 80144ce: 681b ldr r3, [r3, #0]
  49152. 80144d0: 2b00 cmp r3, #0
  49153. 80144d2: d105 bne.n 80144e0 <prvGetNextExpireTime+0x30>
  49154. {
  49155. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  49156. 80144d4: 4b07 ldr r3, [pc, #28] @ (80144f4 <prvGetNextExpireTime+0x44>)
  49157. 80144d6: 681b ldr r3, [r3, #0]
  49158. 80144d8: 68db ldr r3, [r3, #12]
  49159. 80144da: 681b ldr r3, [r3, #0]
  49160. 80144dc: 60fb str r3, [r7, #12]
  49161. 80144de: e001 b.n 80144e4 <prvGetNextExpireTime+0x34>
  49162. }
  49163. else
  49164. {
  49165. /* Ensure the task unblocks when the tick count rolls over. */
  49166. xNextExpireTime = ( TickType_t ) 0U;
  49167. 80144e0: 2300 movs r3, #0
  49168. 80144e2: 60fb str r3, [r7, #12]
  49169. }
  49170. return xNextExpireTime;
  49171. 80144e4: 68fb ldr r3, [r7, #12]
  49172. }
  49173. 80144e6: 4618 mov r0, r3
  49174. 80144e8: 3714 adds r7, #20
  49175. 80144ea: 46bd mov sp, r7
  49176. 80144ec: f85d 7b04 ldr.w r7, [sp], #4
  49177. 80144f0: 4770 bx lr
  49178. 80144f2: bf00 nop
  49179. 80144f4: 240041b8 .word 0x240041b8
  49180. 080144f8 <prvSampleTimeNow>:
  49181. /*-----------------------------------------------------------*/
  49182. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  49183. {
  49184. 80144f8: b580 push {r7, lr}
  49185. 80144fa: b084 sub sp, #16
  49186. 80144fc: af00 add r7, sp, #0
  49187. 80144fe: 6078 str r0, [r7, #4]
  49188. TickType_t xTimeNow;
  49189. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  49190. xTimeNow = xTaskGetTickCount();
  49191. 8014500: f7fe fede bl 80132c0 <xTaskGetTickCount>
  49192. 8014504: 60f8 str r0, [r7, #12]
  49193. if( xTimeNow < xLastTime )
  49194. 8014506: 4b0b ldr r3, [pc, #44] @ (8014534 <prvSampleTimeNow+0x3c>)
  49195. 8014508: 681b ldr r3, [r3, #0]
  49196. 801450a: 68fa ldr r2, [r7, #12]
  49197. 801450c: 429a cmp r2, r3
  49198. 801450e: d205 bcs.n 801451c <prvSampleTimeNow+0x24>
  49199. {
  49200. prvSwitchTimerLists();
  49201. 8014510: f000 f93a bl 8014788 <prvSwitchTimerLists>
  49202. *pxTimerListsWereSwitched = pdTRUE;
  49203. 8014514: 687b ldr r3, [r7, #4]
  49204. 8014516: 2201 movs r2, #1
  49205. 8014518: 601a str r2, [r3, #0]
  49206. 801451a: e002 b.n 8014522 <prvSampleTimeNow+0x2a>
  49207. }
  49208. else
  49209. {
  49210. *pxTimerListsWereSwitched = pdFALSE;
  49211. 801451c: 687b ldr r3, [r7, #4]
  49212. 801451e: 2200 movs r2, #0
  49213. 8014520: 601a str r2, [r3, #0]
  49214. }
  49215. xLastTime = xTimeNow;
  49216. 8014522: 4a04 ldr r2, [pc, #16] @ (8014534 <prvSampleTimeNow+0x3c>)
  49217. 8014524: 68fb ldr r3, [r7, #12]
  49218. 8014526: 6013 str r3, [r2, #0]
  49219. return xTimeNow;
  49220. 8014528: 68fb ldr r3, [r7, #12]
  49221. }
  49222. 801452a: 4618 mov r0, r3
  49223. 801452c: 3710 adds r7, #16
  49224. 801452e: 46bd mov sp, r7
  49225. 8014530: bd80 pop {r7, pc}
  49226. 8014532: bf00 nop
  49227. 8014534: 240041c8 .word 0x240041c8
  49228. 08014538 <prvInsertTimerInActiveList>:
  49229. /*-----------------------------------------------------------*/
  49230. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  49231. {
  49232. 8014538: b580 push {r7, lr}
  49233. 801453a: b086 sub sp, #24
  49234. 801453c: af00 add r7, sp, #0
  49235. 801453e: 60f8 str r0, [r7, #12]
  49236. 8014540: 60b9 str r1, [r7, #8]
  49237. 8014542: 607a str r2, [r7, #4]
  49238. 8014544: 603b str r3, [r7, #0]
  49239. BaseType_t xProcessTimerNow = pdFALSE;
  49240. 8014546: 2300 movs r3, #0
  49241. 8014548: 617b str r3, [r7, #20]
  49242. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  49243. 801454a: 68fb ldr r3, [r7, #12]
  49244. 801454c: 68ba ldr r2, [r7, #8]
  49245. 801454e: 605a str r2, [r3, #4]
  49246. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  49247. 8014550: 68fb ldr r3, [r7, #12]
  49248. 8014552: 68fa ldr r2, [r7, #12]
  49249. 8014554: 611a str r2, [r3, #16]
  49250. if( xNextExpiryTime <= xTimeNow )
  49251. 8014556: 68ba ldr r2, [r7, #8]
  49252. 8014558: 687b ldr r3, [r7, #4]
  49253. 801455a: 429a cmp r2, r3
  49254. 801455c: d812 bhi.n 8014584 <prvInsertTimerInActiveList+0x4c>
  49255. {
  49256. /* Has the expiry time elapsed between the command to start/reset a
  49257. timer was issued, and the time the command was processed? */
  49258. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  49259. 801455e: 687a ldr r2, [r7, #4]
  49260. 8014560: 683b ldr r3, [r7, #0]
  49261. 8014562: 1ad2 subs r2, r2, r3
  49262. 8014564: 68fb ldr r3, [r7, #12]
  49263. 8014566: 699b ldr r3, [r3, #24]
  49264. 8014568: 429a cmp r2, r3
  49265. 801456a: d302 bcc.n 8014572 <prvInsertTimerInActiveList+0x3a>
  49266. {
  49267. /* The time between a command being issued and the command being
  49268. processed actually exceeds the timers period. */
  49269. xProcessTimerNow = pdTRUE;
  49270. 801456c: 2301 movs r3, #1
  49271. 801456e: 617b str r3, [r7, #20]
  49272. 8014570: e01b b.n 80145aa <prvInsertTimerInActiveList+0x72>
  49273. }
  49274. else
  49275. {
  49276. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  49277. 8014572: 4b10 ldr r3, [pc, #64] @ (80145b4 <prvInsertTimerInActiveList+0x7c>)
  49278. 8014574: 681a ldr r2, [r3, #0]
  49279. 8014576: 68fb ldr r3, [r7, #12]
  49280. 8014578: 3304 adds r3, #4
  49281. 801457a: 4619 mov r1, r3
  49282. 801457c: 4610 mov r0, r2
  49283. 801457e: f7fc fe72 bl 8011266 <vListInsert>
  49284. 8014582: e012 b.n 80145aa <prvInsertTimerInActiveList+0x72>
  49285. }
  49286. }
  49287. else
  49288. {
  49289. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  49290. 8014584: 687a ldr r2, [r7, #4]
  49291. 8014586: 683b ldr r3, [r7, #0]
  49292. 8014588: 429a cmp r2, r3
  49293. 801458a: d206 bcs.n 801459a <prvInsertTimerInActiveList+0x62>
  49294. 801458c: 68ba ldr r2, [r7, #8]
  49295. 801458e: 683b ldr r3, [r7, #0]
  49296. 8014590: 429a cmp r2, r3
  49297. 8014592: d302 bcc.n 801459a <prvInsertTimerInActiveList+0x62>
  49298. {
  49299. /* If, since the command was issued, the tick count has overflowed
  49300. but the expiry time has not, then the timer must have already passed
  49301. its expiry time and should be processed immediately. */
  49302. xProcessTimerNow = pdTRUE;
  49303. 8014594: 2301 movs r3, #1
  49304. 8014596: 617b str r3, [r7, #20]
  49305. 8014598: e007 b.n 80145aa <prvInsertTimerInActiveList+0x72>
  49306. }
  49307. else
  49308. {
  49309. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  49310. 801459a: 4b07 ldr r3, [pc, #28] @ (80145b8 <prvInsertTimerInActiveList+0x80>)
  49311. 801459c: 681a ldr r2, [r3, #0]
  49312. 801459e: 68fb ldr r3, [r7, #12]
  49313. 80145a0: 3304 adds r3, #4
  49314. 80145a2: 4619 mov r1, r3
  49315. 80145a4: 4610 mov r0, r2
  49316. 80145a6: f7fc fe5e bl 8011266 <vListInsert>
  49317. }
  49318. }
  49319. return xProcessTimerNow;
  49320. 80145aa: 697b ldr r3, [r7, #20]
  49321. }
  49322. 80145ac: 4618 mov r0, r3
  49323. 80145ae: 3718 adds r7, #24
  49324. 80145b0: 46bd mov sp, r7
  49325. 80145b2: bd80 pop {r7, pc}
  49326. 80145b4: 240041bc .word 0x240041bc
  49327. 80145b8: 240041b8 .word 0x240041b8
  49328. 080145bc <prvProcessReceivedCommands>:
  49329. /*-----------------------------------------------------------*/
  49330. static void prvProcessReceivedCommands( void )
  49331. {
  49332. 80145bc: b580 push {r7, lr}
  49333. 80145be: b08e sub sp, #56 @ 0x38
  49334. 80145c0: af02 add r7, sp, #8
  49335. DaemonTaskMessage_t xMessage;
  49336. Timer_t *pxTimer;
  49337. BaseType_t xTimerListsWereSwitched, xResult;
  49338. TickType_t xTimeNow;
  49339. 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. */
  49340. 80145c2: e0ce b.n 8014762 <prvProcessReceivedCommands+0x1a6>
  49341. {
  49342. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  49343. {
  49344. /* Negative commands are pended function calls rather than timer
  49345. commands. */
  49346. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  49347. 80145c4: 687b ldr r3, [r7, #4]
  49348. 80145c6: 2b00 cmp r3, #0
  49349. 80145c8: da19 bge.n 80145fe <prvProcessReceivedCommands+0x42>
  49350. {
  49351. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  49352. 80145ca: 1d3b adds r3, r7, #4
  49353. 80145cc: 3304 adds r3, #4
  49354. 80145ce: 62fb str r3, [r7, #44] @ 0x2c
  49355. /* The timer uses the xCallbackParameters member to request a
  49356. callback be executed. Check the callback is not NULL. */
  49357. configASSERT( pxCallback );
  49358. 80145d0: 6afb ldr r3, [r7, #44] @ 0x2c
  49359. 80145d2: 2b00 cmp r3, #0
  49360. 80145d4: d10b bne.n 80145ee <prvProcessReceivedCommands+0x32>
  49361. __asm volatile
  49362. 80145d6: f04f 0350 mov.w r3, #80 @ 0x50
  49363. 80145da: f383 8811 msr BASEPRI, r3
  49364. 80145de: f3bf 8f6f isb sy
  49365. 80145e2: f3bf 8f4f dsb sy
  49366. 80145e6: 61fb str r3, [r7, #28]
  49367. }
  49368. 80145e8: bf00 nop
  49369. 80145ea: bf00 nop
  49370. 80145ec: e7fd b.n 80145ea <prvProcessReceivedCommands+0x2e>
  49371. /* Call the function. */
  49372. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  49373. 80145ee: 6afb ldr r3, [r7, #44] @ 0x2c
  49374. 80145f0: 681b ldr r3, [r3, #0]
  49375. 80145f2: 6afa ldr r2, [r7, #44] @ 0x2c
  49376. 80145f4: 6850 ldr r0, [r2, #4]
  49377. 80145f6: 6afa ldr r2, [r7, #44] @ 0x2c
  49378. 80145f8: 6892 ldr r2, [r2, #8]
  49379. 80145fa: 4611 mov r1, r2
  49380. 80145fc: 4798 blx r3
  49381. }
  49382. #endif /* INCLUDE_xTimerPendFunctionCall */
  49383. /* Commands that are positive are timer commands rather than pended
  49384. function calls. */
  49385. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  49386. 80145fe: 687b ldr r3, [r7, #4]
  49387. 8014600: 2b00 cmp r3, #0
  49388. 8014602: f2c0 80ae blt.w 8014762 <prvProcessReceivedCommands+0x1a6>
  49389. {
  49390. /* The messages uses the xTimerParameters member to work on a
  49391. software timer. */
  49392. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  49393. 8014606: 68fb ldr r3, [r7, #12]
  49394. 8014608: 62bb str r3, [r7, #40] @ 0x28
  49395. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  49396. 801460a: 6abb ldr r3, [r7, #40] @ 0x28
  49397. 801460c: 695b ldr r3, [r3, #20]
  49398. 801460e: 2b00 cmp r3, #0
  49399. 8014610: d004 beq.n 801461c <prvProcessReceivedCommands+0x60>
  49400. {
  49401. /* The timer is in a list, remove it. */
  49402. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  49403. 8014612: 6abb ldr r3, [r7, #40] @ 0x28
  49404. 8014614: 3304 adds r3, #4
  49405. 8014616: 4618 mov r0, r3
  49406. 8014618: f7fc fe5e bl 80112d8 <uxListRemove>
  49407. it must be present in the function call. prvSampleTimeNow() must be
  49408. called after the message is received from xTimerQueue so there is no
  49409. possibility of a higher priority task adding a message to the message
  49410. queue with a time that is ahead of the timer daemon task (because it
  49411. pre-empted the timer daemon task after the xTimeNow value was set). */
  49412. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  49413. 801461c: 463b mov r3, r7
  49414. 801461e: 4618 mov r0, r3
  49415. 8014620: f7ff ff6a bl 80144f8 <prvSampleTimeNow>
  49416. 8014624: 6278 str r0, [r7, #36] @ 0x24
  49417. switch( xMessage.xMessageID )
  49418. 8014626: 687b ldr r3, [r7, #4]
  49419. 8014628: 2b09 cmp r3, #9
  49420. 801462a: f200 8097 bhi.w 801475c <prvProcessReceivedCommands+0x1a0>
  49421. 801462e: a201 add r2, pc, #4 @ (adr r2, 8014634 <prvProcessReceivedCommands+0x78>)
  49422. 8014630: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  49423. 8014634: 0801465d .word 0x0801465d
  49424. 8014638: 0801465d .word 0x0801465d
  49425. 801463c: 0801465d .word 0x0801465d
  49426. 8014640: 080146d3 .word 0x080146d3
  49427. 8014644: 080146e7 .word 0x080146e7
  49428. 8014648: 08014733 .word 0x08014733
  49429. 801464c: 0801465d .word 0x0801465d
  49430. 8014650: 0801465d .word 0x0801465d
  49431. 8014654: 080146d3 .word 0x080146d3
  49432. 8014658: 080146e7 .word 0x080146e7
  49433. case tmrCOMMAND_START_FROM_ISR :
  49434. case tmrCOMMAND_RESET :
  49435. case tmrCOMMAND_RESET_FROM_ISR :
  49436. case tmrCOMMAND_START_DONT_TRACE :
  49437. /* Start or restart a timer. */
  49438. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  49439. 801465c: 6abb ldr r3, [r7, #40] @ 0x28
  49440. 801465e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49441. 8014662: f043 0301 orr.w r3, r3, #1
  49442. 8014666: b2da uxtb r2, r3
  49443. 8014668: 6abb ldr r3, [r7, #40] @ 0x28
  49444. 801466a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49445. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  49446. 801466e: 68ba ldr r2, [r7, #8]
  49447. 8014670: 6abb ldr r3, [r7, #40] @ 0x28
  49448. 8014672: 699b ldr r3, [r3, #24]
  49449. 8014674: 18d1 adds r1, r2, r3
  49450. 8014676: 68bb ldr r3, [r7, #8]
  49451. 8014678: 6a7a ldr r2, [r7, #36] @ 0x24
  49452. 801467a: 6ab8 ldr r0, [r7, #40] @ 0x28
  49453. 801467c: f7ff ff5c bl 8014538 <prvInsertTimerInActiveList>
  49454. 8014680: 4603 mov r3, r0
  49455. 8014682: 2b00 cmp r3, #0
  49456. 8014684: d06c beq.n 8014760 <prvProcessReceivedCommands+0x1a4>
  49457. {
  49458. /* The timer expired before it was added to the active
  49459. timer list. Process it now. */
  49460. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  49461. 8014686: 6abb ldr r3, [r7, #40] @ 0x28
  49462. 8014688: 6a1b ldr r3, [r3, #32]
  49463. 801468a: 6ab8 ldr r0, [r7, #40] @ 0x28
  49464. 801468c: 4798 blx r3
  49465. traceTIMER_EXPIRED( pxTimer );
  49466. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  49467. 801468e: 6abb ldr r3, [r7, #40] @ 0x28
  49468. 8014690: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49469. 8014694: f003 0304 and.w r3, r3, #4
  49470. 8014698: 2b00 cmp r3, #0
  49471. 801469a: d061 beq.n 8014760 <prvProcessReceivedCommands+0x1a4>
  49472. {
  49473. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  49474. 801469c: 68ba ldr r2, [r7, #8]
  49475. 801469e: 6abb ldr r3, [r7, #40] @ 0x28
  49476. 80146a0: 699b ldr r3, [r3, #24]
  49477. 80146a2: 441a add r2, r3
  49478. 80146a4: 2300 movs r3, #0
  49479. 80146a6: 9300 str r3, [sp, #0]
  49480. 80146a8: 2300 movs r3, #0
  49481. 80146aa: 2100 movs r1, #0
  49482. 80146ac: 6ab8 ldr r0, [r7, #40] @ 0x28
  49483. 80146ae: f7ff fe01 bl 80142b4 <xTimerGenericCommand>
  49484. 80146b2: 6238 str r0, [r7, #32]
  49485. configASSERT( xResult );
  49486. 80146b4: 6a3b ldr r3, [r7, #32]
  49487. 80146b6: 2b00 cmp r3, #0
  49488. 80146b8: d152 bne.n 8014760 <prvProcessReceivedCommands+0x1a4>
  49489. __asm volatile
  49490. 80146ba: f04f 0350 mov.w r3, #80 @ 0x50
  49491. 80146be: f383 8811 msr BASEPRI, r3
  49492. 80146c2: f3bf 8f6f isb sy
  49493. 80146c6: f3bf 8f4f dsb sy
  49494. 80146ca: 61bb str r3, [r7, #24]
  49495. }
  49496. 80146cc: bf00 nop
  49497. 80146ce: bf00 nop
  49498. 80146d0: e7fd b.n 80146ce <prvProcessReceivedCommands+0x112>
  49499. break;
  49500. case tmrCOMMAND_STOP :
  49501. case tmrCOMMAND_STOP_FROM_ISR :
  49502. /* The timer has already been removed from the active list. */
  49503. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  49504. 80146d2: 6abb ldr r3, [r7, #40] @ 0x28
  49505. 80146d4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49506. 80146d8: f023 0301 bic.w r3, r3, #1
  49507. 80146dc: b2da uxtb r2, r3
  49508. 80146de: 6abb ldr r3, [r7, #40] @ 0x28
  49509. 80146e0: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49510. break;
  49511. 80146e4: e03d b.n 8014762 <prvProcessReceivedCommands+0x1a6>
  49512. case tmrCOMMAND_CHANGE_PERIOD :
  49513. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  49514. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  49515. 80146e6: 6abb ldr r3, [r7, #40] @ 0x28
  49516. 80146e8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49517. 80146ec: f043 0301 orr.w r3, r3, #1
  49518. 80146f0: b2da uxtb r2, r3
  49519. 80146f2: 6abb ldr r3, [r7, #40] @ 0x28
  49520. 80146f4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49521. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  49522. 80146f8: 68ba ldr r2, [r7, #8]
  49523. 80146fa: 6abb ldr r3, [r7, #40] @ 0x28
  49524. 80146fc: 619a str r2, [r3, #24]
  49525. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  49526. 80146fe: 6abb ldr r3, [r7, #40] @ 0x28
  49527. 8014700: 699b ldr r3, [r3, #24]
  49528. 8014702: 2b00 cmp r3, #0
  49529. 8014704: d10b bne.n 801471e <prvProcessReceivedCommands+0x162>
  49530. __asm volatile
  49531. 8014706: f04f 0350 mov.w r3, #80 @ 0x50
  49532. 801470a: f383 8811 msr BASEPRI, r3
  49533. 801470e: f3bf 8f6f isb sy
  49534. 8014712: f3bf 8f4f dsb sy
  49535. 8014716: 617b str r3, [r7, #20]
  49536. }
  49537. 8014718: bf00 nop
  49538. 801471a: bf00 nop
  49539. 801471c: e7fd b.n 801471a <prvProcessReceivedCommands+0x15e>
  49540. be longer or shorter than the old one. The command time is
  49541. therefore set to the current time, and as the period cannot
  49542. be zero the next expiry time can only be in the future,
  49543. meaning (unlike for the xTimerStart() case above) there is
  49544. no fail case that needs to be handled here. */
  49545. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  49546. 801471e: 6abb ldr r3, [r7, #40] @ 0x28
  49547. 8014720: 699a ldr r2, [r3, #24]
  49548. 8014722: 6a7b ldr r3, [r7, #36] @ 0x24
  49549. 8014724: 18d1 adds r1, r2, r3
  49550. 8014726: 6a7b ldr r3, [r7, #36] @ 0x24
  49551. 8014728: 6a7a ldr r2, [r7, #36] @ 0x24
  49552. 801472a: 6ab8 ldr r0, [r7, #40] @ 0x28
  49553. 801472c: f7ff ff04 bl 8014538 <prvInsertTimerInActiveList>
  49554. break;
  49555. 8014730: e017 b.n 8014762 <prvProcessReceivedCommands+0x1a6>
  49556. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  49557. {
  49558. /* The timer has already been removed from the active list,
  49559. just free up the memory if the memory was dynamically
  49560. allocated. */
  49561. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  49562. 8014732: 6abb ldr r3, [r7, #40] @ 0x28
  49563. 8014734: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49564. 8014738: f003 0302 and.w r3, r3, #2
  49565. 801473c: 2b00 cmp r3, #0
  49566. 801473e: d103 bne.n 8014748 <prvProcessReceivedCommands+0x18c>
  49567. {
  49568. vPortFree( pxTimer );
  49569. 8014740: 6ab8 ldr r0, [r7, #40] @ 0x28
  49570. 8014742: f000 fbe9 bl 8014f18 <vPortFree>
  49571. no need to free the memory - just mark the timer as
  49572. "not active". */
  49573. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  49574. }
  49575. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  49576. break;
  49577. 8014746: e00c b.n 8014762 <prvProcessReceivedCommands+0x1a6>
  49578. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  49579. 8014748: 6abb ldr r3, [r7, #40] @ 0x28
  49580. 801474a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49581. 801474e: f023 0301 bic.w r3, r3, #1
  49582. 8014752: b2da uxtb r2, r3
  49583. 8014754: 6abb ldr r3, [r7, #40] @ 0x28
  49584. 8014756: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49585. break;
  49586. 801475a: e002 b.n 8014762 <prvProcessReceivedCommands+0x1a6>
  49587. default :
  49588. /* Don't expect to get here. */
  49589. break;
  49590. 801475c: bf00 nop
  49591. 801475e: e000 b.n 8014762 <prvProcessReceivedCommands+0x1a6>
  49592. break;
  49593. 8014760: bf00 nop
  49594. 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. */
  49595. 8014762: 4b08 ldr r3, [pc, #32] @ (8014784 <prvProcessReceivedCommands+0x1c8>)
  49596. 8014764: 681b ldr r3, [r3, #0]
  49597. 8014766: 1d39 adds r1, r7, #4
  49598. 8014768: 2200 movs r2, #0
  49599. 801476a: 4618 mov r0, r3
  49600. 801476c: f7fd fa7a bl 8011c64 <xQueueReceive>
  49601. 8014770: 4603 mov r3, r0
  49602. 8014772: 2b00 cmp r3, #0
  49603. 8014774: f47f af26 bne.w 80145c4 <prvProcessReceivedCommands+0x8>
  49604. }
  49605. }
  49606. }
  49607. }
  49608. 8014778: bf00 nop
  49609. 801477a: bf00 nop
  49610. 801477c: 3730 adds r7, #48 @ 0x30
  49611. 801477e: 46bd mov sp, r7
  49612. 8014780: bd80 pop {r7, pc}
  49613. 8014782: bf00 nop
  49614. 8014784: 240041c0 .word 0x240041c0
  49615. 08014788 <prvSwitchTimerLists>:
  49616. /*-----------------------------------------------------------*/
  49617. static void prvSwitchTimerLists( void )
  49618. {
  49619. 8014788: b580 push {r7, lr}
  49620. 801478a: b088 sub sp, #32
  49621. 801478c: af02 add r7, sp, #8
  49622. /* The tick count has overflowed. The timer lists must be switched.
  49623. If there are any timers still referenced from the current timer list
  49624. then they must have expired and should be processed before the lists
  49625. are switched. */
  49626. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  49627. 801478e: e049 b.n 8014824 <prvSwitchTimerLists+0x9c>
  49628. {
  49629. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  49630. 8014790: 4b2e ldr r3, [pc, #184] @ (801484c <prvSwitchTimerLists+0xc4>)
  49631. 8014792: 681b ldr r3, [r3, #0]
  49632. 8014794: 68db ldr r3, [r3, #12]
  49633. 8014796: 681b ldr r3, [r3, #0]
  49634. 8014798: 613b str r3, [r7, #16]
  49635. /* Remove the timer from the list. */
  49636. 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. */
  49637. 801479a: 4b2c ldr r3, [pc, #176] @ (801484c <prvSwitchTimerLists+0xc4>)
  49638. 801479c: 681b ldr r3, [r3, #0]
  49639. 801479e: 68db ldr r3, [r3, #12]
  49640. 80147a0: 68db ldr r3, [r3, #12]
  49641. 80147a2: 60fb str r3, [r7, #12]
  49642. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  49643. 80147a4: 68fb ldr r3, [r7, #12]
  49644. 80147a6: 3304 adds r3, #4
  49645. 80147a8: 4618 mov r0, r3
  49646. 80147aa: f7fc fd95 bl 80112d8 <uxListRemove>
  49647. traceTIMER_EXPIRED( pxTimer );
  49648. /* Execute its callback, then send a command to restart the timer if
  49649. it is an auto-reload timer. It cannot be restarted here as the lists
  49650. have not yet been switched. */
  49651. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  49652. 80147ae: 68fb ldr r3, [r7, #12]
  49653. 80147b0: 6a1b ldr r3, [r3, #32]
  49654. 80147b2: 68f8 ldr r0, [r7, #12]
  49655. 80147b4: 4798 blx r3
  49656. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  49657. 80147b6: 68fb ldr r3, [r7, #12]
  49658. 80147b8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49659. 80147bc: f003 0304 and.w r3, r3, #4
  49660. 80147c0: 2b00 cmp r3, #0
  49661. 80147c2: d02f beq.n 8014824 <prvSwitchTimerLists+0x9c>
  49662. the timer going into the same timer list then it has already expired
  49663. and the timer should be re-inserted into the current list so it is
  49664. processed again within this loop. Otherwise a command should be sent
  49665. to restart the timer to ensure it is only inserted into a list after
  49666. the lists have been swapped. */
  49667. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  49668. 80147c4: 68fb ldr r3, [r7, #12]
  49669. 80147c6: 699b ldr r3, [r3, #24]
  49670. 80147c8: 693a ldr r2, [r7, #16]
  49671. 80147ca: 4413 add r3, r2
  49672. 80147cc: 60bb str r3, [r7, #8]
  49673. if( xReloadTime > xNextExpireTime )
  49674. 80147ce: 68ba ldr r2, [r7, #8]
  49675. 80147d0: 693b ldr r3, [r7, #16]
  49676. 80147d2: 429a cmp r2, r3
  49677. 80147d4: d90e bls.n 80147f4 <prvSwitchTimerLists+0x6c>
  49678. {
  49679. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  49680. 80147d6: 68fb ldr r3, [r7, #12]
  49681. 80147d8: 68ba ldr r2, [r7, #8]
  49682. 80147da: 605a str r2, [r3, #4]
  49683. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  49684. 80147dc: 68fb ldr r3, [r7, #12]
  49685. 80147de: 68fa ldr r2, [r7, #12]
  49686. 80147e0: 611a str r2, [r3, #16]
  49687. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  49688. 80147e2: 4b1a ldr r3, [pc, #104] @ (801484c <prvSwitchTimerLists+0xc4>)
  49689. 80147e4: 681a ldr r2, [r3, #0]
  49690. 80147e6: 68fb ldr r3, [r7, #12]
  49691. 80147e8: 3304 adds r3, #4
  49692. 80147ea: 4619 mov r1, r3
  49693. 80147ec: 4610 mov r0, r2
  49694. 80147ee: f7fc fd3a bl 8011266 <vListInsert>
  49695. 80147f2: e017 b.n 8014824 <prvSwitchTimerLists+0x9c>
  49696. }
  49697. else
  49698. {
  49699. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  49700. 80147f4: 2300 movs r3, #0
  49701. 80147f6: 9300 str r3, [sp, #0]
  49702. 80147f8: 2300 movs r3, #0
  49703. 80147fa: 693a ldr r2, [r7, #16]
  49704. 80147fc: 2100 movs r1, #0
  49705. 80147fe: 68f8 ldr r0, [r7, #12]
  49706. 8014800: f7ff fd58 bl 80142b4 <xTimerGenericCommand>
  49707. 8014804: 6078 str r0, [r7, #4]
  49708. configASSERT( xResult );
  49709. 8014806: 687b ldr r3, [r7, #4]
  49710. 8014808: 2b00 cmp r3, #0
  49711. 801480a: d10b bne.n 8014824 <prvSwitchTimerLists+0x9c>
  49712. __asm volatile
  49713. 801480c: f04f 0350 mov.w r3, #80 @ 0x50
  49714. 8014810: f383 8811 msr BASEPRI, r3
  49715. 8014814: f3bf 8f6f isb sy
  49716. 8014818: f3bf 8f4f dsb sy
  49717. 801481c: 603b str r3, [r7, #0]
  49718. }
  49719. 801481e: bf00 nop
  49720. 8014820: bf00 nop
  49721. 8014822: e7fd b.n 8014820 <prvSwitchTimerLists+0x98>
  49722. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  49723. 8014824: 4b09 ldr r3, [pc, #36] @ (801484c <prvSwitchTimerLists+0xc4>)
  49724. 8014826: 681b ldr r3, [r3, #0]
  49725. 8014828: 681b ldr r3, [r3, #0]
  49726. 801482a: 2b00 cmp r3, #0
  49727. 801482c: d1b0 bne.n 8014790 <prvSwitchTimerLists+0x8>
  49728. {
  49729. mtCOVERAGE_TEST_MARKER();
  49730. }
  49731. }
  49732. pxTemp = pxCurrentTimerList;
  49733. 801482e: 4b07 ldr r3, [pc, #28] @ (801484c <prvSwitchTimerLists+0xc4>)
  49734. 8014830: 681b ldr r3, [r3, #0]
  49735. 8014832: 617b str r3, [r7, #20]
  49736. pxCurrentTimerList = pxOverflowTimerList;
  49737. 8014834: 4b06 ldr r3, [pc, #24] @ (8014850 <prvSwitchTimerLists+0xc8>)
  49738. 8014836: 681b ldr r3, [r3, #0]
  49739. 8014838: 4a04 ldr r2, [pc, #16] @ (801484c <prvSwitchTimerLists+0xc4>)
  49740. 801483a: 6013 str r3, [r2, #0]
  49741. pxOverflowTimerList = pxTemp;
  49742. 801483c: 4a04 ldr r2, [pc, #16] @ (8014850 <prvSwitchTimerLists+0xc8>)
  49743. 801483e: 697b ldr r3, [r7, #20]
  49744. 8014840: 6013 str r3, [r2, #0]
  49745. }
  49746. 8014842: bf00 nop
  49747. 8014844: 3718 adds r7, #24
  49748. 8014846: 46bd mov sp, r7
  49749. 8014848: bd80 pop {r7, pc}
  49750. 801484a: bf00 nop
  49751. 801484c: 240041b8 .word 0x240041b8
  49752. 8014850: 240041bc .word 0x240041bc
  49753. 08014854 <prvCheckForValidListAndQueue>:
  49754. /*-----------------------------------------------------------*/
  49755. static void prvCheckForValidListAndQueue( void )
  49756. {
  49757. 8014854: b580 push {r7, lr}
  49758. 8014856: b082 sub sp, #8
  49759. 8014858: af02 add r7, sp, #8
  49760. /* Check that the list from which active timers are referenced, and the
  49761. queue used to communicate with the timer service, have been
  49762. initialised. */
  49763. taskENTER_CRITICAL();
  49764. 801485a: f000 f96d bl 8014b38 <vPortEnterCritical>
  49765. {
  49766. if( xTimerQueue == NULL )
  49767. 801485e: 4b15 ldr r3, [pc, #84] @ (80148b4 <prvCheckForValidListAndQueue+0x60>)
  49768. 8014860: 681b ldr r3, [r3, #0]
  49769. 8014862: 2b00 cmp r3, #0
  49770. 8014864: d120 bne.n 80148a8 <prvCheckForValidListAndQueue+0x54>
  49771. {
  49772. vListInitialise( &xActiveTimerList1 );
  49773. 8014866: 4814 ldr r0, [pc, #80] @ (80148b8 <prvCheckForValidListAndQueue+0x64>)
  49774. 8014868: f7fc fcac bl 80111c4 <vListInitialise>
  49775. vListInitialise( &xActiveTimerList2 );
  49776. 801486c: 4813 ldr r0, [pc, #76] @ (80148bc <prvCheckForValidListAndQueue+0x68>)
  49777. 801486e: f7fc fca9 bl 80111c4 <vListInitialise>
  49778. pxCurrentTimerList = &xActiveTimerList1;
  49779. 8014872: 4b13 ldr r3, [pc, #76] @ (80148c0 <prvCheckForValidListAndQueue+0x6c>)
  49780. 8014874: 4a10 ldr r2, [pc, #64] @ (80148b8 <prvCheckForValidListAndQueue+0x64>)
  49781. 8014876: 601a str r2, [r3, #0]
  49782. pxOverflowTimerList = &xActiveTimerList2;
  49783. 8014878: 4b12 ldr r3, [pc, #72] @ (80148c4 <prvCheckForValidListAndQueue+0x70>)
  49784. 801487a: 4a10 ldr r2, [pc, #64] @ (80148bc <prvCheckForValidListAndQueue+0x68>)
  49785. 801487c: 601a str r2, [r3, #0]
  49786. /* The timer queue is allocated statically in case
  49787. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  49788. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  49789. 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. */
  49790. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  49791. 801487e: 2300 movs r3, #0
  49792. 8014880: 9300 str r3, [sp, #0]
  49793. 8014882: 4b11 ldr r3, [pc, #68] @ (80148c8 <prvCheckForValidListAndQueue+0x74>)
  49794. 8014884: 4a11 ldr r2, [pc, #68] @ (80148cc <prvCheckForValidListAndQueue+0x78>)
  49795. 8014886: 2110 movs r1, #16
  49796. 8014888: 200a movs r0, #10
  49797. 801488a: f7fc fdb9 bl 8011400 <xQueueGenericCreateStatic>
  49798. 801488e: 4603 mov r3, r0
  49799. 8014890: 4a08 ldr r2, [pc, #32] @ (80148b4 <prvCheckForValidListAndQueue+0x60>)
  49800. 8014892: 6013 str r3, [r2, #0]
  49801. }
  49802. #endif
  49803. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  49804. {
  49805. if( xTimerQueue != NULL )
  49806. 8014894: 4b07 ldr r3, [pc, #28] @ (80148b4 <prvCheckForValidListAndQueue+0x60>)
  49807. 8014896: 681b ldr r3, [r3, #0]
  49808. 8014898: 2b00 cmp r3, #0
  49809. 801489a: d005 beq.n 80148a8 <prvCheckForValidListAndQueue+0x54>
  49810. {
  49811. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  49812. 801489c: 4b05 ldr r3, [pc, #20] @ (80148b4 <prvCheckForValidListAndQueue+0x60>)
  49813. 801489e: 681b ldr r3, [r3, #0]
  49814. 80148a0: 490b ldr r1, [pc, #44] @ (80148d0 <prvCheckForValidListAndQueue+0x7c>)
  49815. 80148a2: 4618 mov r0, r3
  49816. 80148a4: f7fd fddc bl 8012460 <vQueueAddToRegistry>
  49817. else
  49818. {
  49819. mtCOVERAGE_TEST_MARKER();
  49820. }
  49821. }
  49822. taskEXIT_CRITICAL();
  49823. 80148a8: f000 f978 bl 8014b9c <vPortExitCritical>
  49824. }
  49825. 80148ac: bf00 nop
  49826. 80148ae: 46bd mov sp, r7
  49827. 80148b0: bd80 pop {r7, pc}
  49828. 80148b2: bf00 nop
  49829. 80148b4: 240041c0 .word 0x240041c0
  49830. 80148b8: 24004190 .word 0x24004190
  49831. 80148bc: 240041a4 .word 0x240041a4
  49832. 80148c0: 240041b8 .word 0x240041b8
  49833. 80148c4: 240041bc .word 0x240041bc
  49834. 80148c8: 2400426c .word 0x2400426c
  49835. 80148cc: 240041cc .word 0x240041cc
  49836. 80148d0: 0802cbc4 .word 0x0802cbc4
  49837. 080148d4 <pxPortInitialiseStack>:
  49838. /*
  49839. * See header file for description.
  49840. */
  49841. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  49842. {
  49843. 80148d4: b480 push {r7}
  49844. 80148d6: b085 sub sp, #20
  49845. 80148d8: af00 add r7, sp, #0
  49846. 80148da: 60f8 str r0, [r7, #12]
  49847. 80148dc: 60b9 str r1, [r7, #8]
  49848. 80148de: 607a str r2, [r7, #4]
  49849. /* Simulate the stack frame as it would be created by a context switch
  49850. interrupt. */
  49851. /* Offset added to account for the way the MCU uses the stack on entry/exit
  49852. of interrupts, and to ensure alignment. */
  49853. pxTopOfStack--;
  49854. 80148e0: 68fb ldr r3, [r7, #12]
  49855. 80148e2: 3b04 subs r3, #4
  49856. 80148e4: 60fb str r3, [r7, #12]
  49857. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  49858. 80148e6: 68fb ldr r3, [r7, #12]
  49859. 80148e8: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  49860. 80148ec: 601a str r2, [r3, #0]
  49861. pxTopOfStack--;
  49862. 80148ee: 68fb ldr r3, [r7, #12]
  49863. 80148f0: 3b04 subs r3, #4
  49864. 80148f2: 60fb str r3, [r7, #12]
  49865. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  49866. 80148f4: 68bb ldr r3, [r7, #8]
  49867. 80148f6: f023 0201 bic.w r2, r3, #1
  49868. 80148fa: 68fb ldr r3, [r7, #12]
  49869. 80148fc: 601a str r2, [r3, #0]
  49870. pxTopOfStack--;
  49871. 80148fe: 68fb ldr r3, [r7, #12]
  49872. 8014900: 3b04 subs r3, #4
  49873. 8014902: 60fb str r3, [r7, #12]
  49874. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  49875. 8014904: 4a0c ldr r2, [pc, #48] @ (8014938 <pxPortInitialiseStack+0x64>)
  49876. 8014906: 68fb ldr r3, [r7, #12]
  49877. 8014908: 601a str r2, [r3, #0]
  49878. /* Save code space by skipping register initialisation. */
  49879. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  49880. 801490a: 68fb ldr r3, [r7, #12]
  49881. 801490c: 3b14 subs r3, #20
  49882. 801490e: 60fb str r3, [r7, #12]
  49883. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  49884. 8014910: 687a ldr r2, [r7, #4]
  49885. 8014912: 68fb ldr r3, [r7, #12]
  49886. 8014914: 601a str r2, [r3, #0]
  49887. /* A save method is being used that requires each task to maintain its
  49888. own exec return value. */
  49889. pxTopOfStack--;
  49890. 8014916: 68fb ldr r3, [r7, #12]
  49891. 8014918: 3b04 subs r3, #4
  49892. 801491a: 60fb str r3, [r7, #12]
  49893. *pxTopOfStack = portINITIAL_EXC_RETURN;
  49894. 801491c: 68fb ldr r3, [r7, #12]
  49895. 801491e: f06f 0202 mvn.w r2, #2
  49896. 8014922: 601a str r2, [r3, #0]
  49897. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  49898. 8014924: 68fb ldr r3, [r7, #12]
  49899. 8014926: 3b20 subs r3, #32
  49900. 8014928: 60fb str r3, [r7, #12]
  49901. return pxTopOfStack;
  49902. 801492a: 68fb ldr r3, [r7, #12]
  49903. }
  49904. 801492c: 4618 mov r0, r3
  49905. 801492e: 3714 adds r7, #20
  49906. 8014930: 46bd mov sp, r7
  49907. 8014932: f85d 7b04 ldr.w r7, [sp], #4
  49908. 8014936: 4770 bx lr
  49909. 8014938: 0801493d .word 0x0801493d
  49910. 0801493c <prvTaskExitError>:
  49911. /*-----------------------------------------------------------*/
  49912. static void prvTaskExitError( void )
  49913. {
  49914. 801493c: b480 push {r7}
  49915. 801493e: b085 sub sp, #20
  49916. 8014940: af00 add r7, sp, #0
  49917. volatile uint32_t ulDummy = 0;
  49918. 8014942: 2300 movs r3, #0
  49919. 8014944: 607b str r3, [r7, #4]
  49920. its caller as there is nothing to return to. If a task wants to exit it
  49921. should instead call vTaskDelete( NULL ).
  49922. Artificially force an assert() to be triggered if configASSERT() is
  49923. defined, then stop here so application writers can catch the error. */
  49924. configASSERT( uxCriticalNesting == ~0UL );
  49925. 8014946: 4b13 ldr r3, [pc, #76] @ (8014994 <prvTaskExitError+0x58>)
  49926. 8014948: 681b ldr r3, [r3, #0]
  49927. 801494a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49928. 801494e: d00b beq.n 8014968 <prvTaskExitError+0x2c>
  49929. __asm volatile
  49930. 8014950: f04f 0350 mov.w r3, #80 @ 0x50
  49931. 8014954: f383 8811 msr BASEPRI, r3
  49932. 8014958: f3bf 8f6f isb sy
  49933. 801495c: f3bf 8f4f dsb sy
  49934. 8014960: 60fb str r3, [r7, #12]
  49935. }
  49936. 8014962: bf00 nop
  49937. 8014964: bf00 nop
  49938. 8014966: e7fd b.n 8014964 <prvTaskExitError+0x28>
  49939. __asm volatile
  49940. 8014968: f04f 0350 mov.w r3, #80 @ 0x50
  49941. 801496c: f383 8811 msr BASEPRI, r3
  49942. 8014970: f3bf 8f6f isb sy
  49943. 8014974: f3bf 8f4f dsb sy
  49944. 8014978: 60bb str r3, [r7, #8]
  49945. }
  49946. 801497a: bf00 nop
  49947. portDISABLE_INTERRUPTS();
  49948. while( ulDummy == 0 )
  49949. 801497c: bf00 nop
  49950. 801497e: 687b ldr r3, [r7, #4]
  49951. 8014980: 2b00 cmp r3, #0
  49952. 8014982: d0fc beq.n 801497e <prvTaskExitError+0x42>
  49953. about code appearing after this function is called - making ulDummy
  49954. volatile makes the compiler think the function could return and
  49955. therefore not output an 'unreachable code' warning for code that appears
  49956. after it. */
  49957. }
  49958. }
  49959. 8014984: bf00 nop
  49960. 8014986: bf00 nop
  49961. 8014988: 3714 adds r7, #20
  49962. 801498a: 46bd mov sp, r7
  49963. 801498c: f85d 7b04 ldr.w r7, [sp], #4
  49964. 8014990: 4770 bx lr
  49965. 8014992: bf00 nop
  49966. 8014994: 24000048 .word 0x24000048
  49967. ...
  49968. 080149a0 <SVC_Handler>:
  49969. /*-----------------------------------------------------------*/
  49970. void vPortSVCHandler( void )
  49971. {
  49972. __asm volatile (
  49973. 80149a0: 4b07 ldr r3, [pc, #28] @ (80149c0 <pxCurrentTCBConst2>)
  49974. 80149a2: 6819 ldr r1, [r3, #0]
  49975. 80149a4: 6808 ldr r0, [r1, #0]
  49976. 80149a6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  49977. 80149aa: f380 8809 msr PSP, r0
  49978. 80149ae: f3bf 8f6f isb sy
  49979. 80149b2: f04f 0000 mov.w r0, #0
  49980. 80149b6: f380 8811 msr BASEPRI, r0
  49981. 80149ba: 4770 bx lr
  49982. 80149bc: f3af 8000 nop.w
  49983. 080149c0 <pxCurrentTCBConst2>:
  49984. 80149c0: 24003c90 .word 0x24003c90
  49985. " bx r14 \n"
  49986. " \n"
  49987. " .align 4 \n"
  49988. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  49989. );
  49990. }
  49991. 80149c4: bf00 nop
  49992. 80149c6: bf00 nop
  49993. 080149c8 <prvPortStartFirstTask>:
  49994. {
  49995. /* Start the first task. This also clears the bit that indicates the FPU is
  49996. in use in case the FPU was used before the scheduler was started - which
  49997. would otherwise result in the unnecessary leaving of space in the SVC stack
  49998. for lazy saving of FPU registers. */
  49999. __asm volatile(
  50000. 80149c8: 4808 ldr r0, [pc, #32] @ (80149ec <prvPortStartFirstTask+0x24>)
  50001. 80149ca: 6800 ldr r0, [r0, #0]
  50002. 80149cc: 6800 ldr r0, [r0, #0]
  50003. 80149ce: f380 8808 msr MSP, r0
  50004. 80149d2: f04f 0000 mov.w r0, #0
  50005. 80149d6: f380 8814 msr CONTROL, r0
  50006. 80149da: b662 cpsie i
  50007. 80149dc: b661 cpsie f
  50008. 80149de: f3bf 8f4f dsb sy
  50009. 80149e2: f3bf 8f6f isb sy
  50010. 80149e6: df00 svc 0
  50011. 80149e8: bf00 nop
  50012. " dsb \n"
  50013. " isb \n"
  50014. " svc 0 \n" /* System call to start first task. */
  50015. " nop \n"
  50016. );
  50017. }
  50018. 80149ea: bf00 nop
  50019. 80149ec: e000ed08 .word 0xe000ed08
  50020. 080149f0 <xPortStartScheduler>:
  50021. /*
  50022. * See header file for description.
  50023. */
  50024. BaseType_t xPortStartScheduler( void )
  50025. {
  50026. 80149f0: b580 push {r7, lr}
  50027. 80149f2: b086 sub sp, #24
  50028. 80149f4: af00 add r7, sp, #0
  50029. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  50030. /* This port can be used on all revisions of the Cortex-M7 core other than
  50031. the r0p1 parts. r0p1 parts should use the port from the
  50032. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  50033. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  50034. 80149f6: 4b47 ldr r3, [pc, #284] @ (8014b14 <xPortStartScheduler+0x124>)
  50035. 80149f8: 681b ldr r3, [r3, #0]
  50036. 80149fa: 4a47 ldr r2, [pc, #284] @ (8014b18 <xPortStartScheduler+0x128>)
  50037. 80149fc: 4293 cmp r3, r2
  50038. 80149fe: d10b bne.n 8014a18 <xPortStartScheduler+0x28>
  50039. __asm volatile
  50040. 8014a00: f04f 0350 mov.w r3, #80 @ 0x50
  50041. 8014a04: f383 8811 msr BASEPRI, r3
  50042. 8014a08: f3bf 8f6f isb sy
  50043. 8014a0c: f3bf 8f4f dsb sy
  50044. 8014a10: 613b str r3, [r7, #16]
  50045. }
  50046. 8014a12: bf00 nop
  50047. 8014a14: bf00 nop
  50048. 8014a16: e7fd b.n 8014a14 <xPortStartScheduler+0x24>
  50049. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  50050. 8014a18: 4b3e ldr r3, [pc, #248] @ (8014b14 <xPortStartScheduler+0x124>)
  50051. 8014a1a: 681b ldr r3, [r3, #0]
  50052. 8014a1c: 4a3f ldr r2, [pc, #252] @ (8014b1c <xPortStartScheduler+0x12c>)
  50053. 8014a1e: 4293 cmp r3, r2
  50054. 8014a20: d10b bne.n 8014a3a <xPortStartScheduler+0x4a>
  50055. __asm volatile
  50056. 8014a22: f04f 0350 mov.w r3, #80 @ 0x50
  50057. 8014a26: f383 8811 msr BASEPRI, r3
  50058. 8014a2a: f3bf 8f6f isb sy
  50059. 8014a2e: f3bf 8f4f dsb sy
  50060. 8014a32: 60fb str r3, [r7, #12]
  50061. }
  50062. 8014a34: bf00 nop
  50063. 8014a36: bf00 nop
  50064. 8014a38: e7fd b.n 8014a36 <xPortStartScheduler+0x46>
  50065. #if( configASSERT_DEFINED == 1 )
  50066. {
  50067. volatile uint32_t ulOriginalPriority;
  50068. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  50069. 8014a3a: 4b39 ldr r3, [pc, #228] @ (8014b20 <xPortStartScheduler+0x130>)
  50070. 8014a3c: 617b str r3, [r7, #20]
  50071. functions can be called. ISR safe functions are those that end in
  50072. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  50073. ensure interrupt entry is as fast and simple as possible.
  50074. Save the interrupt priority value that is about to be clobbered. */
  50075. ulOriginalPriority = *pucFirstUserPriorityRegister;
  50076. 8014a3e: 697b ldr r3, [r7, #20]
  50077. 8014a40: 781b ldrb r3, [r3, #0]
  50078. 8014a42: b2db uxtb r3, r3
  50079. 8014a44: 607b str r3, [r7, #4]
  50080. /* Determine the number of priority bits available. First write to all
  50081. possible bits. */
  50082. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  50083. 8014a46: 697b ldr r3, [r7, #20]
  50084. 8014a48: 22ff movs r2, #255 @ 0xff
  50085. 8014a4a: 701a strb r2, [r3, #0]
  50086. /* Read the value back to see how many bits stuck. */
  50087. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  50088. 8014a4c: 697b ldr r3, [r7, #20]
  50089. 8014a4e: 781b ldrb r3, [r3, #0]
  50090. 8014a50: b2db uxtb r3, r3
  50091. 8014a52: 70fb strb r3, [r7, #3]
  50092. /* Use the same mask on the maximum system call priority. */
  50093. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  50094. 8014a54: 78fb ldrb r3, [r7, #3]
  50095. 8014a56: b2db uxtb r3, r3
  50096. 8014a58: f003 0350 and.w r3, r3, #80 @ 0x50
  50097. 8014a5c: b2da uxtb r2, r3
  50098. 8014a5e: 4b31 ldr r3, [pc, #196] @ (8014b24 <xPortStartScheduler+0x134>)
  50099. 8014a60: 701a strb r2, [r3, #0]
  50100. /* Calculate the maximum acceptable priority group value for the number
  50101. of bits read back. */
  50102. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  50103. 8014a62: 4b31 ldr r3, [pc, #196] @ (8014b28 <xPortStartScheduler+0x138>)
  50104. 8014a64: 2207 movs r2, #7
  50105. 8014a66: 601a str r2, [r3, #0]
  50106. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  50107. 8014a68: e009 b.n 8014a7e <xPortStartScheduler+0x8e>
  50108. {
  50109. ulMaxPRIGROUPValue--;
  50110. 8014a6a: 4b2f ldr r3, [pc, #188] @ (8014b28 <xPortStartScheduler+0x138>)
  50111. 8014a6c: 681b ldr r3, [r3, #0]
  50112. 8014a6e: 3b01 subs r3, #1
  50113. 8014a70: 4a2d ldr r2, [pc, #180] @ (8014b28 <xPortStartScheduler+0x138>)
  50114. 8014a72: 6013 str r3, [r2, #0]
  50115. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  50116. 8014a74: 78fb ldrb r3, [r7, #3]
  50117. 8014a76: b2db uxtb r3, r3
  50118. 8014a78: 005b lsls r3, r3, #1
  50119. 8014a7a: b2db uxtb r3, r3
  50120. 8014a7c: 70fb strb r3, [r7, #3]
  50121. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  50122. 8014a7e: 78fb ldrb r3, [r7, #3]
  50123. 8014a80: b2db uxtb r3, r3
  50124. 8014a82: f003 0380 and.w r3, r3, #128 @ 0x80
  50125. 8014a86: 2b80 cmp r3, #128 @ 0x80
  50126. 8014a88: d0ef beq.n 8014a6a <xPortStartScheduler+0x7a>
  50127. #ifdef configPRIO_BITS
  50128. {
  50129. /* Check the FreeRTOS configuration that defines the number of
  50130. priority bits matches the number of priority bits actually queried
  50131. from the hardware. */
  50132. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  50133. 8014a8a: 4b27 ldr r3, [pc, #156] @ (8014b28 <xPortStartScheduler+0x138>)
  50134. 8014a8c: 681b ldr r3, [r3, #0]
  50135. 8014a8e: f1c3 0307 rsb r3, r3, #7
  50136. 8014a92: 2b04 cmp r3, #4
  50137. 8014a94: d00b beq.n 8014aae <xPortStartScheduler+0xbe>
  50138. __asm volatile
  50139. 8014a96: f04f 0350 mov.w r3, #80 @ 0x50
  50140. 8014a9a: f383 8811 msr BASEPRI, r3
  50141. 8014a9e: f3bf 8f6f isb sy
  50142. 8014aa2: f3bf 8f4f dsb sy
  50143. 8014aa6: 60bb str r3, [r7, #8]
  50144. }
  50145. 8014aa8: bf00 nop
  50146. 8014aaa: bf00 nop
  50147. 8014aac: e7fd b.n 8014aaa <xPortStartScheduler+0xba>
  50148. }
  50149. #endif
  50150. /* Shift the priority group value back to its position within the AIRCR
  50151. register. */
  50152. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  50153. 8014aae: 4b1e ldr r3, [pc, #120] @ (8014b28 <xPortStartScheduler+0x138>)
  50154. 8014ab0: 681b ldr r3, [r3, #0]
  50155. 8014ab2: 021b lsls r3, r3, #8
  50156. 8014ab4: 4a1c ldr r2, [pc, #112] @ (8014b28 <xPortStartScheduler+0x138>)
  50157. 8014ab6: 6013 str r3, [r2, #0]
  50158. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  50159. 8014ab8: 4b1b ldr r3, [pc, #108] @ (8014b28 <xPortStartScheduler+0x138>)
  50160. 8014aba: 681b ldr r3, [r3, #0]
  50161. 8014abc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  50162. 8014ac0: 4a19 ldr r2, [pc, #100] @ (8014b28 <xPortStartScheduler+0x138>)
  50163. 8014ac2: 6013 str r3, [r2, #0]
  50164. /* Restore the clobbered interrupt priority register to its original
  50165. value. */
  50166. *pucFirstUserPriorityRegister = ulOriginalPriority;
  50167. 8014ac4: 687b ldr r3, [r7, #4]
  50168. 8014ac6: b2da uxtb r2, r3
  50169. 8014ac8: 697b ldr r3, [r7, #20]
  50170. 8014aca: 701a strb r2, [r3, #0]
  50171. }
  50172. #endif /* conifgASSERT_DEFINED */
  50173. /* Make PendSV and SysTick the lowest priority interrupts. */
  50174. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  50175. 8014acc: 4b17 ldr r3, [pc, #92] @ (8014b2c <xPortStartScheduler+0x13c>)
  50176. 8014ace: 681b ldr r3, [r3, #0]
  50177. 8014ad0: 4a16 ldr r2, [pc, #88] @ (8014b2c <xPortStartScheduler+0x13c>)
  50178. 8014ad2: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  50179. 8014ad6: 6013 str r3, [r2, #0]
  50180. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  50181. 8014ad8: 4b14 ldr r3, [pc, #80] @ (8014b2c <xPortStartScheduler+0x13c>)
  50182. 8014ada: 681b ldr r3, [r3, #0]
  50183. 8014adc: 4a13 ldr r2, [pc, #76] @ (8014b2c <xPortStartScheduler+0x13c>)
  50184. 8014ade: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  50185. 8014ae2: 6013 str r3, [r2, #0]
  50186. /* Start the timer that generates the tick ISR. Interrupts are disabled
  50187. here already. */
  50188. vPortSetupTimerInterrupt();
  50189. 8014ae4: f000 f8da bl 8014c9c <vPortSetupTimerInterrupt>
  50190. /* Initialise the critical nesting count ready for the first task. */
  50191. uxCriticalNesting = 0;
  50192. 8014ae8: 4b11 ldr r3, [pc, #68] @ (8014b30 <xPortStartScheduler+0x140>)
  50193. 8014aea: 2200 movs r2, #0
  50194. 8014aec: 601a str r2, [r3, #0]
  50195. /* Ensure the VFP is enabled - it should be anyway. */
  50196. vPortEnableVFP();
  50197. 8014aee: f000 f8f9 bl 8014ce4 <vPortEnableVFP>
  50198. /* Lazy save always. */
  50199. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  50200. 8014af2: 4b10 ldr r3, [pc, #64] @ (8014b34 <xPortStartScheduler+0x144>)
  50201. 8014af4: 681b ldr r3, [r3, #0]
  50202. 8014af6: 4a0f ldr r2, [pc, #60] @ (8014b34 <xPortStartScheduler+0x144>)
  50203. 8014af8: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  50204. 8014afc: 6013 str r3, [r2, #0]
  50205. /* Start the first task. */
  50206. prvPortStartFirstTask();
  50207. 8014afe: f7ff ff63 bl 80149c8 <prvPortStartFirstTask>
  50208. exit error function to prevent compiler warnings about a static function
  50209. not being called in the case that the application writer overrides this
  50210. functionality by defining configTASK_RETURN_ADDRESS. Call
  50211. vTaskSwitchContext() so link time optimisation does not remove the
  50212. symbol. */
  50213. vTaskSwitchContext();
  50214. 8014b02: f7fe fcb9 bl 8013478 <vTaskSwitchContext>
  50215. prvTaskExitError();
  50216. 8014b06: f7ff ff19 bl 801493c <prvTaskExitError>
  50217. /* Should not get here! */
  50218. return 0;
  50219. 8014b0a: 2300 movs r3, #0
  50220. }
  50221. 8014b0c: 4618 mov r0, r3
  50222. 8014b0e: 3718 adds r7, #24
  50223. 8014b10: 46bd mov sp, r7
  50224. 8014b12: bd80 pop {r7, pc}
  50225. 8014b14: e000ed00 .word 0xe000ed00
  50226. 8014b18: 410fc271 .word 0x410fc271
  50227. 8014b1c: 410fc270 .word 0x410fc270
  50228. 8014b20: e000e400 .word 0xe000e400
  50229. 8014b24: 240042bc .word 0x240042bc
  50230. 8014b28: 240042c0 .word 0x240042c0
  50231. 8014b2c: e000ed20 .word 0xe000ed20
  50232. 8014b30: 24000048 .word 0x24000048
  50233. 8014b34: e000ef34 .word 0xe000ef34
  50234. 08014b38 <vPortEnterCritical>:
  50235. configASSERT( uxCriticalNesting == 1000UL );
  50236. }
  50237. /*-----------------------------------------------------------*/
  50238. void vPortEnterCritical( void )
  50239. {
  50240. 8014b38: b480 push {r7}
  50241. 8014b3a: b083 sub sp, #12
  50242. 8014b3c: af00 add r7, sp, #0
  50243. __asm volatile
  50244. 8014b3e: f04f 0350 mov.w r3, #80 @ 0x50
  50245. 8014b42: f383 8811 msr BASEPRI, r3
  50246. 8014b46: f3bf 8f6f isb sy
  50247. 8014b4a: f3bf 8f4f dsb sy
  50248. 8014b4e: 607b str r3, [r7, #4]
  50249. }
  50250. 8014b50: bf00 nop
  50251. portDISABLE_INTERRUPTS();
  50252. uxCriticalNesting++;
  50253. 8014b52: 4b10 ldr r3, [pc, #64] @ (8014b94 <vPortEnterCritical+0x5c>)
  50254. 8014b54: 681b ldr r3, [r3, #0]
  50255. 8014b56: 3301 adds r3, #1
  50256. 8014b58: 4a0e ldr r2, [pc, #56] @ (8014b94 <vPortEnterCritical+0x5c>)
  50257. 8014b5a: 6013 str r3, [r2, #0]
  50258. /* This is not the interrupt safe version of the enter critical function so
  50259. assert() if it is being called from an interrupt context. Only API
  50260. functions that end in "FromISR" can be used in an interrupt. Only assert if
  50261. the critical nesting count is 1 to protect against recursive calls if the
  50262. assert function also uses a critical section. */
  50263. if( uxCriticalNesting == 1 )
  50264. 8014b5c: 4b0d ldr r3, [pc, #52] @ (8014b94 <vPortEnterCritical+0x5c>)
  50265. 8014b5e: 681b ldr r3, [r3, #0]
  50266. 8014b60: 2b01 cmp r3, #1
  50267. 8014b62: d110 bne.n 8014b86 <vPortEnterCritical+0x4e>
  50268. {
  50269. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  50270. 8014b64: 4b0c ldr r3, [pc, #48] @ (8014b98 <vPortEnterCritical+0x60>)
  50271. 8014b66: 681b ldr r3, [r3, #0]
  50272. 8014b68: b2db uxtb r3, r3
  50273. 8014b6a: 2b00 cmp r3, #0
  50274. 8014b6c: d00b beq.n 8014b86 <vPortEnterCritical+0x4e>
  50275. __asm volatile
  50276. 8014b6e: f04f 0350 mov.w r3, #80 @ 0x50
  50277. 8014b72: f383 8811 msr BASEPRI, r3
  50278. 8014b76: f3bf 8f6f isb sy
  50279. 8014b7a: f3bf 8f4f dsb sy
  50280. 8014b7e: 603b str r3, [r7, #0]
  50281. }
  50282. 8014b80: bf00 nop
  50283. 8014b82: bf00 nop
  50284. 8014b84: e7fd b.n 8014b82 <vPortEnterCritical+0x4a>
  50285. }
  50286. }
  50287. 8014b86: bf00 nop
  50288. 8014b88: 370c adds r7, #12
  50289. 8014b8a: 46bd mov sp, r7
  50290. 8014b8c: f85d 7b04 ldr.w r7, [sp], #4
  50291. 8014b90: 4770 bx lr
  50292. 8014b92: bf00 nop
  50293. 8014b94: 24000048 .word 0x24000048
  50294. 8014b98: e000ed04 .word 0xe000ed04
  50295. 08014b9c <vPortExitCritical>:
  50296. /*-----------------------------------------------------------*/
  50297. void vPortExitCritical( void )
  50298. {
  50299. 8014b9c: b480 push {r7}
  50300. 8014b9e: b083 sub sp, #12
  50301. 8014ba0: af00 add r7, sp, #0
  50302. configASSERT( uxCriticalNesting );
  50303. 8014ba2: 4b12 ldr r3, [pc, #72] @ (8014bec <vPortExitCritical+0x50>)
  50304. 8014ba4: 681b ldr r3, [r3, #0]
  50305. 8014ba6: 2b00 cmp r3, #0
  50306. 8014ba8: d10b bne.n 8014bc2 <vPortExitCritical+0x26>
  50307. __asm volatile
  50308. 8014baa: f04f 0350 mov.w r3, #80 @ 0x50
  50309. 8014bae: f383 8811 msr BASEPRI, r3
  50310. 8014bb2: f3bf 8f6f isb sy
  50311. 8014bb6: f3bf 8f4f dsb sy
  50312. 8014bba: 607b str r3, [r7, #4]
  50313. }
  50314. 8014bbc: bf00 nop
  50315. 8014bbe: bf00 nop
  50316. 8014bc0: e7fd b.n 8014bbe <vPortExitCritical+0x22>
  50317. uxCriticalNesting--;
  50318. 8014bc2: 4b0a ldr r3, [pc, #40] @ (8014bec <vPortExitCritical+0x50>)
  50319. 8014bc4: 681b ldr r3, [r3, #0]
  50320. 8014bc6: 3b01 subs r3, #1
  50321. 8014bc8: 4a08 ldr r2, [pc, #32] @ (8014bec <vPortExitCritical+0x50>)
  50322. 8014bca: 6013 str r3, [r2, #0]
  50323. if( uxCriticalNesting == 0 )
  50324. 8014bcc: 4b07 ldr r3, [pc, #28] @ (8014bec <vPortExitCritical+0x50>)
  50325. 8014bce: 681b ldr r3, [r3, #0]
  50326. 8014bd0: 2b00 cmp r3, #0
  50327. 8014bd2: d105 bne.n 8014be0 <vPortExitCritical+0x44>
  50328. 8014bd4: 2300 movs r3, #0
  50329. 8014bd6: 603b str r3, [r7, #0]
  50330. __asm volatile
  50331. 8014bd8: 683b ldr r3, [r7, #0]
  50332. 8014bda: f383 8811 msr BASEPRI, r3
  50333. }
  50334. 8014bde: bf00 nop
  50335. {
  50336. portENABLE_INTERRUPTS();
  50337. }
  50338. }
  50339. 8014be0: bf00 nop
  50340. 8014be2: 370c adds r7, #12
  50341. 8014be4: 46bd mov sp, r7
  50342. 8014be6: f85d 7b04 ldr.w r7, [sp], #4
  50343. 8014bea: 4770 bx lr
  50344. 8014bec: 24000048 .word 0x24000048
  50345. 08014bf0 <PendSV_Handler>:
  50346. void xPortPendSVHandler( void )
  50347. {
  50348. /* This is a naked function. */
  50349. __asm volatile
  50350. 8014bf0: f3ef 8009 mrs r0, PSP
  50351. 8014bf4: f3bf 8f6f isb sy
  50352. 8014bf8: 4b15 ldr r3, [pc, #84] @ (8014c50 <pxCurrentTCBConst>)
  50353. 8014bfa: 681a ldr r2, [r3, #0]
  50354. 8014bfc: f01e 0f10 tst.w lr, #16
  50355. 8014c00: bf08 it eq
  50356. 8014c02: ed20 8a10 vstmdbeq r0!, {s16-s31}
  50357. 8014c06: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  50358. 8014c0a: 6010 str r0, [r2, #0]
  50359. 8014c0c: e92d 0009 stmdb sp!, {r0, r3}
  50360. 8014c10: f04f 0050 mov.w r0, #80 @ 0x50
  50361. 8014c14: f380 8811 msr BASEPRI, r0
  50362. 8014c18: f3bf 8f4f dsb sy
  50363. 8014c1c: f3bf 8f6f isb sy
  50364. 8014c20: f7fe fc2a bl 8013478 <vTaskSwitchContext>
  50365. 8014c24: f04f 0000 mov.w r0, #0
  50366. 8014c28: f380 8811 msr BASEPRI, r0
  50367. 8014c2c: bc09 pop {r0, r3}
  50368. 8014c2e: 6819 ldr r1, [r3, #0]
  50369. 8014c30: 6808 ldr r0, [r1, #0]
  50370. 8014c32: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  50371. 8014c36: f01e 0f10 tst.w lr, #16
  50372. 8014c3a: bf08 it eq
  50373. 8014c3c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  50374. 8014c40: f380 8809 msr PSP, r0
  50375. 8014c44: f3bf 8f6f isb sy
  50376. 8014c48: 4770 bx lr
  50377. 8014c4a: bf00 nop
  50378. 8014c4c: f3af 8000 nop.w
  50379. 08014c50 <pxCurrentTCBConst>:
  50380. 8014c50: 24003c90 .word 0x24003c90
  50381. " \n"
  50382. " .align 4 \n"
  50383. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  50384. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  50385. );
  50386. }
  50387. 8014c54: bf00 nop
  50388. 8014c56: bf00 nop
  50389. 08014c58 <xPortSysTickHandler>:
  50390. /*-----------------------------------------------------------*/
  50391. void xPortSysTickHandler( void )
  50392. {
  50393. 8014c58: b580 push {r7, lr}
  50394. 8014c5a: b082 sub sp, #8
  50395. 8014c5c: af00 add r7, sp, #0
  50396. __asm volatile
  50397. 8014c5e: f04f 0350 mov.w r3, #80 @ 0x50
  50398. 8014c62: f383 8811 msr BASEPRI, r3
  50399. 8014c66: f3bf 8f6f isb sy
  50400. 8014c6a: f3bf 8f4f dsb sy
  50401. 8014c6e: 607b str r3, [r7, #4]
  50402. }
  50403. 8014c70: bf00 nop
  50404. save and then restore the interrupt mask value as its value is already
  50405. known. */
  50406. portDISABLE_INTERRUPTS();
  50407. {
  50408. /* Increment the RTOS tick. */
  50409. if( xTaskIncrementTick() != pdFALSE )
  50410. 8014c72: f7fe fb47 bl 8013304 <xTaskIncrementTick>
  50411. 8014c76: 4603 mov r3, r0
  50412. 8014c78: 2b00 cmp r3, #0
  50413. 8014c7a: d003 beq.n 8014c84 <xPortSysTickHandler+0x2c>
  50414. {
  50415. /* A context switch is required. Context switching is performed in
  50416. the PendSV interrupt. Pend the PendSV interrupt. */
  50417. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  50418. 8014c7c: 4b06 ldr r3, [pc, #24] @ (8014c98 <xPortSysTickHandler+0x40>)
  50419. 8014c7e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50420. 8014c82: 601a str r2, [r3, #0]
  50421. 8014c84: 2300 movs r3, #0
  50422. 8014c86: 603b str r3, [r7, #0]
  50423. __asm volatile
  50424. 8014c88: 683b ldr r3, [r7, #0]
  50425. 8014c8a: f383 8811 msr BASEPRI, r3
  50426. }
  50427. 8014c8e: bf00 nop
  50428. }
  50429. }
  50430. portENABLE_INTERRUPTS();
  50431. }
  50432. 8014c90: bf00 nop
  50433. 8014c92: 3708 adds r7, #8
  50434. 8014c94: 46bd mov sp, r7
  50435. 8014c96: bd80 pop {r7, pc}
  50436. 8014c98: e000ed04 .word 0xe000ed04
  50437. 08014c9c <vPortSetupTimerInterrupt>:
  50438. /*
  50439. * Setup the systick timer to generate the tick interrupts at the required
  50440. * frequency.
  50441. */
  50442. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  50443. {
  50444. 8014c9c: b480 push {r7}
  50445. 8014c9e: af00 add r7, sp, #0
  50446. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  50447. }
  50448. #endif /* configUSE_TICKLESS_IDLE */
  50449. /* Stop and clear the SysTick. */
  50450. portNVIC_SYSTICK_CTRL_REG = 0UL;
  50451. 8014ca0: 4b0b ldr r3, [pc, #44] @ (8014cd0 <vPortSetupTimerInterrupt+0x34>)
  50452. 8014ca2: 2200 movs r2, #0
  50453. 8014ca4: 601a str r2, [r3, #0]
  50454. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  50455. 8014ca6: 4b0b ldr r3, [pc, #44] @ (8014cd4 <vPortSetupTimerInterrupt+0x38>)
  50456. 8014ca8: 2200 movs r2, #0
  50457. 8014caa: 601a str r2, [r3, #0]
  50458. /* Configure SysTick to interrupt at the requested rate. */
  50459. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  50460. 8014cac: 4b0a ldr r3, [pc, #40] @ (8014cd8 <vPortSetupTimerInterrupt+0x3c>)
  50461. 8014cae: 681b ldr r3, [r3, #0]
  50462. 8014cb0: 4a0a ldr r2, [pc, #40] @ (8014cdc <vPortSetupTimerInterrupt+0x40>)
  50463. 8014cb2: fba2 2303 umull r2, r3, r2, r3
  50464. 8014cb6: 099b lsrs r3, r3, #6
  50465. 8014cb8: 4a09 ldr r2, [pc, #36] @ (8014ce0 <vPortSetupTimerInterrupt+0x44>)
  50466. 8014cba: 3b01 subs r3, #1
  50467. 8014cbc: 6013 str r3, [r2, #0]
  50468. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  50469. 8014cbe: 4b04 ldr r3, [pc, #16] @ (8014cd0 <vPortSetupTimerInterrupt+0x34>)
  50470. 8014cc0: 2207 movs r2, #7
  50471. 8014cc2: 601a str r2, [r3, #0]
  50472. }
  50473. 8014cc4: bf00 nop
  50474. 8014cc6: 46bd mov sp, r7
  50475. 8014cc8: f85d 7b04 ldr.w r7, [sp], #4
  50476. 8014ccc: 4770 bx lr
  50477. 8014cce: bf00 nop
  50478. 8014cd0: e000e010 .word 0xe000e010
  50479. 8014cd4: e000e018 .word 0xe000e018
  50480. 8014cd8: 2400000c .word 0x2400000c
  50481. 8014cdc: 10624dd3 .word 0x10624dd3
  50482. 8014ce0: e000e014 .word 0xe000e014
  50483. 08014ce4 <vPortEnableVFP>:
  50484. /*-----------------------------------------------------------*/
  50485. /* This is a naked function. */
  50486. static void vPortEnableVFP( void )
  50487. {
  50488. __asm volatile
  50489. 8014ce4: f8df 000c ldr.w r0, [pc, #12] @ 8014cf4 <vPortEnableVFP+0x10>
  50490. 8014ce8: 6801 ldr r1, [r0, #0]
  50491. 8014cea: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  50492. 8014cee: 6001 str r1, [r0, #0]
  50493. 8014cf0: 4770 bx lr
  50494. " \n"
  50495. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  50496. " str r1, [r0] \n"
  50497. " bx r14 "
  50498. );
  50499. }
  50500. 8014cf2: bf00 nop
  50501. 8014cf4: e000ed88 .word 0xe000ed88
  50502. 08014cf8 <vPortValidateInterruptPriority>:
  50503. /*-----------------------------------------------------------*/
  50504. #if( configASSERT_DEFINED == 1 )
  50505. void vPortValidateInterruptPriority( void )
  50506. {
  50507. 8014cf8: b480 push {r7}
  50508. 8014cfa: b085 sub sp, #20
  50509. 8014cfc: af00 add r7, sp, #0
  50510. uint32_t ulCurrentInterrupt;
  50511. uint8_t ucCurrentPriority;
  50512. /* Obtain the number of the currently executing interrupt. */
  50513. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  50514. 8014cfe: f3ef 8305 mrs r3, IPSR
  50515. 8014d02: 60fb str r3, [r7, #12]
  50516. /* Is the interrupt number a user defined interrupt? */
  50517. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  50518. 8014d04: 68fb ldr r3, [r7, #12]
  50519. 8014d06: 2b0f cmp r3, #15
  50520. 8014d08: d915 bls.n 8014d36 <vPortValidateInterruptPriority+0x3e>
  50521. {
  50522. /* Look up the interrupt's priority. */
  50523. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  50524. 8014d0a: 4a18 ldr r2, [pc, #96] @ (8014d6c <vPortValidateInterruptPriority+0x74>)
  50525. 8014d0c: 68fb ldr r3, [r7, #12]
  50526. 8014d0e: 4413 add r3, r2
  50527. 8014d10: 781b ldrb r3, [r3, #0]
  50528. 8014d12: 72fb strb r3, [r7, #11]
  50529. interrupt entry is as fast and simple as possible.
  50530. The following links provide detailed information:
  50531. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  50532. http://www.freertos.org/FAQHelp.html */
  50533. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  50534. 8014d14: 4b16 ldr r3, [pc, #88] @ (8014d70 <vPortValidateInterruptPriority+0x78>)
  50535. 8014d16: 781b ldrb r3, [r3, #0]
  50536. 8014d18: 7afa ldrb r2, [r7, #11]
  50537. 8014d1a: 429a cmp r2, r3
  50538. 8014d1c: d20b bcs.n 8014d36 <vPortValidateInterruptPriority+0x3e>
  50539. __asm volatile
  50540. 8014d1e: f04f 0350 mov.w r3, #80 @ 0x50
  50541. 8014d22: f383 8811 msr BASEPRI, r3
  50542. 8014d26: f3bf 8f6f isb sy
  50543. 8014d2a: f3bf 8f4f dsb sy
  50544. 8014d2e: 607b str r3, [r7, #4]
  50545. }
  50546. 8014d30: bf00 nop
  50547. 8014d32: bf00 nop
  50548. 8014d34: e7fd b.n 8014d32 <vPortValidateInterruptPriority+0x3a>
  50549. configuration then the correct setting can be achieved on all Cortex-M
  50550. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  50551. scheduler. Note however that some vendor specific peripheral libraries
  50552. assume a non-zero priority group setting, in which cases using a value
  50553. of zero will result in unpredictable behaviour. */
  50554. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  50555. 8014d36: 4b0f ldr r3, [pc, #60] @ (8014d74 <vPortValidateInterruptPriority+0x7c>)
  50556. 8014d38: 681b ldr r3, [r3, #0]
  50557. 8014d3a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  50558. 8014d3e: 4b0e ldr r3, [pc, #56] @ (8014d78 <vPortValidateInterruptPriority+0x80>)
  50559. 8014d40: 681b ldr r3, [r3, #0]
  50560. 8014d42: 429a cmp r2, r3
  50561. 8014d44: d90b bls.n 8014d5e <vPortValidateInterruptPriority+0x66>
  50562. __asm volatile
  50563. 8014d46: f04f 0350 mov.w r3, #80 @ 0x50
  50564. 8014d4a: f383 8811 msr BASEPRI, r3
  50565. 8014d4e: f3bf 8f6f isb sy
  50566. 8014d52: f3bf 8f4f dsb sy
  50567. 8014d56: 603b str r3, [r7, #0]
  50568. }
  50569. 8014d58: bf00 nop
  50570. 8014d5a: bf00 nop
  50571. 8014d5c: e7fd b.n 8014d5a <vPortValidateInterruptPriority+0x62>
  50572. }
  50573. 8014d5e: bf00 nop
  50574. 8014d60: 3714 adds r7, #20
  50575. 8014d62: 46bd mov sp, r7
  50576. 8014d64: f85d 7b04 ldr.w r7, [sp], #4
  50577. 8014d68: 4770 bx lr
  50578. 8014d6a: bf00 nop
  50579. 8014d6c: e000e3f0 .word 0xe000e3f0
  50580. 8014d70: 240042bc .word 0x240042bc
  50581. 8014d74: e000ed0c .word 0xe000ed0c
  50582. 8014d78: 240042c0 .word 0x240042c0
  50583. 08014d7c <pvPortMalloc>:
  50584. static size_t xBlockAllocatedBit = 0;
  50585. /*-----------------------------------------------------------*/
  50586. void *pvPortMalloc( size_t xWantedSize )
  50587. {
  50588. 8014d7c: b580 push {r7, lr}
  50589. 8014d7e: b08a sub sp, #40 @ 0x28
  50590. 8014d80: af00 add r7, sp, #0
  50591. 8014d82: 6078 str r0, [r7, #4]
  50592. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  50593. void *pvReturn = NULL;
  50594. 8014d84: 2300 movs r3, #0
  50595. 8014d86: 61fb str r3, [r7, #28]
  50596. vTaskSuspendAll();
  50597. 8014d88: f7fe f9ee bl 8013168 <vTaskSuspendAll>
  50598. {
  50599. /* If this is the first call to malloc then the heap will require
  50600. initialisation to setup the list of free blocks. */
  50601. if( pxEnd == NULL )
  50602. 8014d8c: 4b5c ldr r3, [pc, #368] @ (8014f00 <pvPortMalloc+0x184>)
  50603. 8014d8e: 681b ldr r3, [r3, #0]
  50604. 8014d90: 2b00 cmp r3, #0
  50605. 8014d92: d101 bne.n 8014d98 <pvPortMalloc+0x1c>
  50606. {
  50607. prvHeapInit();
  50608. 8014d94: f000 f924 bl 8014fe0 <prvHeapInit>
  50609. /* Check the requested block size is not so large that the top bit is
  50610. set. The top bit of the block size member of the BlockLink_t structure
  50611. is used to determine who owns the block - the application or the
  50612. kernel, so it must be free. */
  50613. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  50614. 8014d98: 4b5a ldr r3, [pc, #360] @ (8014f04 <pvPortMalloc+0x188>)
  50615. 8014d9a: 681a ldr r2, [r3, #0]
  50616. 8014d9c: 687b ldr r3, [r7, #4]
  50617. 8014d9e: 4013 ands r3, r2
  50618. 8014da0: 2b00 cmp r3, #0
  50619. 8014da2: f040 8095 bne.w 8014ed0 <pvPortMalloc+0x154>
  50620. {
  50621. /* The wanted size is increased so it can contain a BlockLink_t
  50622. structure in addition to the requested amount of bytes. */
  50623. if( xWantedSize > 0 )
  50624. 8014da6: 687b ldr r3, [r7, #4]
  50625. 8014da8: 2b00 cmp r3, #0
  50626. 8014daa: d01e beq.n 8014dea <pvPortMalloc+0x6e>
  50627. {
  50628. xWantedSize += xHeapStructSize;
  50629. 8014dac: 2208 movs r2, #8
  50630. 8014dae: 687b ldr r3, [r7, #4]
  50631. 8014db0: 4413 add r3, r2
  50632. 8014db2: 607b str r3, [r7, #4]
  50633. /* Ensure that blocks are always aligned to the required number
  50634. of bytes. */
  50635. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  50636. 8014db4: 687b ldr r3, [r7, #4]
  50637. 8014db6: f003 0307 and.w r3, r3, #7
  50638. 8014dba: 2b00 cmp r3, #0
  50639. 8014dbc: d015 beq.n 8014dea <pvPortMalloc+0x6e>
  50640. {
  50641. /* Byte alignment required. */
  50642. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  50643. 8014dbe: 687b ldr r3, [r7, #4]
  50644. 8014dc0: f023 0307 bic.w r3, r3, #7
  50645. 8014dc4: 3308 adds r3, #8
  50646. 8014dc6: 607b str r3, [r7, #4]
  50647. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  50648. 8014dc8: 687b ldr r3, [r7, #4]
  50649. 8014dca: f003 0307 and.w r3, r3, #7
  50650. 8014dce: 2b00 cmp r3, #0
  50651. 8014dd0: d00b beq.n 8014dea <pvPortMalloc+0x6e>
  50652. __asm volatile
  50653. 8014dd2: f04f 0350 mov.w r3, #80 @ 0x50
  50654. 8014dd6: f383 8811 msr BASEPRI, r3
  50655. 8014dda: f3bf 8f6f isb sy
  50656. 8014dde: f3bf 8f4f dsb sy
  50657. 8014de2: 617b str r3, [r7, #20]
  50658. }
  50659. 8014de4: bf00 nop
  50660. 8014de6: bf00 nop
  50661. 8014de8: e7fd b.n 8014de6 <pvPortMalloc+0x6a>
  50662. else
  50663. {
  50664. mtCOVERAGE_TEST_MARKER();
  50665. }
  50666. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  50667. 8014dea: 687b ldr r3, [r7, #4]
  50668. 8014dec: 2b00 cmp r3, #0
  50669. 8014dee: d06f beq.n 8014ed0 <pvPortMalloc+0x154>
  50670. 8014df0: 4b45 ldr r3, [pc, #276] @ (8014f08 <pvPortMalloc+0x18c>)
  50671. 8014df2: 681b ldr r3, [r3, #0]
  50672. 8014df4: 687a ldr r2, [r7, #4]
  50673. 8014df6: 429a cmp r2, r3
  50674. 8014df8: d86a bhi.n 8014ed0 <pvPortMalloc+0x154>
  50675. {
  50676. /* Traverse the list from the start (lowest address) block until
  50677. one of adequate size is found. */
  50678. pxPreviousBlock = &xStart;
  50679. 8014dfa: 4b44 ldr r3, [pc, #272] @ (8014f0c <pvPortMalloc+0x190>)
  50680. 8014dfc: 623b str r3, [r7, #32]
  50681. pxBlock = xStart.pxNextFreeBlock;
  50682. 8014dfe: 4b43 ldr r3, [pc, #268] @ (8014f0c <pvPortMalloc+0x190>)
  50683. 8014e00: 681b ldr r3, [r3, #0]
  50684. 8014e02: 627b str r3, [r7, #36] @ 0x24
  50685. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  50686. 8014e04: e004 b.n 8014e10 <pvPortMalloc+0x94>
  50687. {
  50688. pxPreviousBlock = pxBlock;
  50689. 8014e06: 6a7b ldr r3, [r7, #36] @ 0x24
  50690. 8014e08: 623b str r3, [r7, #32]
  50691. pxBlock = pxBlock->pxNextFreeBlock;
  50692. 8014e0a: 6a7b ldr r3, [r7, #36] @ 0x24
  50693. 8014e0c: 681b ldr r3, [r3, #0]
  50694. 8014e0e: 627b str r3, [r7, #36] @ 0x24
  50695. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  50696. 8014e10: 6a7b ldr r3, [r7, #36] @ 0x24
  50697. 8014e12: 685b ldr r3, [r3, #4]
  50698. 8014e14: 687a ldr r2, [r7, #4]
  50699. 8014e16: 429a cmp r2, r3
  50700. 8014e18: d903 bls.n 8014e22 <pvPortMalloc+0xa6>
  50701. 8014e1a: 6a7b ldr r3, [r7, #36] @ 0x24
  50702. 8014e1c: 681b ldr r3, [r3, #0]
  50703. 8014e1e: 2b00 cmp r3, #0
  50704. 8014e20: d1f1 bne.n 8014e06 <pvPortMalloc+0x8a>
  50705. }
  50706. /* If the end marker was reached then a block of adequate size
  50707. was not found. */
  50708. if( pxBlock != pxEnd )
  50709. 8014e22: 4b37 ldr r3, [pc, #220] @ (8014f00 <pvPortMalloc+0x184>)
  50710. 8014e24: 681b ldr r3, [r3, #0]
  50711. 8014e26: 6a7a ldr r2, [r7, #36] @ 0x24
  50712. 8014e28: 429a cmp r2, r3
  50713. 8014e2a: d051 beq.n 8014ed0 <pvPortMalloc+0x154>
  50714. {
  50715. /* Return the memory space pointed to - jumping over the
  50716. BlockLink_t structure at its start. */
  50717. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  50718. 8014e2c: 6a3b ldr r3, [r7, #32]
  50719. 8014e2e: 681b ldr r3, [r3, #0]
  50720. 8014e30: 2208 movs r2, #8
  50721. 8014e32: 4413 add r3, r2
  50722. 8014e34: 61fb str r3, [r7, #28]
  50723. /* This block is being returned for use so must be taken out
  50724. of the list of free blocks. */
  50725. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  50726. 8014e36: 6a7b ldr r3, [r7, #36] @ 0x24
  50727. 8014e38: 681a ldr r2, [r3, #0]
  50728. 8014e3a: 6a3b ldr r3, [r7, #32]
  50729. 8014e3c: 601a str r2, [r3, #0]
  50730. /* If the block is larger than required it can be split into
  50731. two. */
  50732. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  50733. 8014e3e: 6a7b ldr r3, [r7, #36] @ 0x24
  50734. 8014e40: 685a ldr r2, [r3, #4]
  50735. 8014e42: 687b ldr r3, [r7, #4]
  50736. 8014e44: 1ad2 subs r2, r2, r3
  50737. 8014e46: 2308 movs r3, #8
  50738. 8014e48: 005b lsls r3, r3, #1
  50739. 8014e4a: 429a cmp r2, r3
  50740. 8014e4c: d920 bls.n 8014e90 <pvPortMalloc+0x114>
  50741. {
  50742. /* This block is to be split into two. Create a new
  50743. block following the number of bytes requested. The void
  50744. cast is used to prevent byte alignment warnings from the
  50745. compiler. */
  50746. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  50747. 8014e4e: 6a7a ldr r2, [r7, #36] @ 0x24
  50748. 8014e50: 687b ldr r3, [r7, #4]
  50749. 8014e52: 4413 add r3, r2
  50750. 8014e54: 61bb str r3, [r7, #24]
  50751. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  50752. 8014e56: 69bb ldr r3, [r7, #24]
  50753. 8014e58: f003 0307 and.w r3, r3, #7
  50754. 8014e5c: 2b00 cmp r3, #0
  50755. 8014e5e: d00b beq.n 8014e78 <pvPortMalloc+0xfc>
  50756. __asm volatile
  50757. 8014e60: f04f 0350 mov.w r3, #80 @ 0x50
  50758. 8014e64: f383 8811 msr BASEPRI, r3
  50759. 8014e68: f3bf 8f6f isb sy
  50760. 8014e6c: f3bf 8f4f dsb sy
  50761. 8014e70: 613b str r3, [r7, #16]
  50762. }
  50763. 8014e72: bf00 nop
  50764. 8014e74: bf00 nop
  50765. 8014e76: e7fd b.n 8014e74 <pvPortMalloc+0xf8>
  50766. /* Calculate the sizes of two blocks split from the
  50767. single block. */
  50768. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  50769. 8014e78: 6a7b ldr r3, [r7, #36] @ 0x24
  50770. 8014e7a: 685a ldr r2, [r3, #4]
  50771. 8014e7c: 687b ldr r3, [r7, #4]
  50772. 8014e7e: 1ad2 subs r2, r2, r3
  50773. 8014e80: 69bb ldr r3, [r7, #24]
  50774. 8014e82: 605a str r2, [r3, #4]
  50775. pxBlock->xBlockSize = xWantedSize;
  50776. 8014e84: 6a7b ldr r3, [r7, #36] @ 0x24
  50777. 8014e86: 687a ldr r2, [r7, #4]
  50778. 8014e88: 605a str r2, [r3, #4]
  50779. /* Insert the new block into the list of free blocks. */
  50780. prvInsertBlockIntoFreeList( pxNewBlockLink );
  50781. 8014e8a: 69b8 ldr r0, [r7, #24]
  50782. 8014e8c: f000 f90a bl 80150a4 <prvInsertBlockIntoFreeList>
  50783. else
  50784. {
  50785. mtCOVERAGE_TEST_MARKER();
  50786. }
  50787. xFreeBytesRemaining -= pxBlock->xBlockSize;
  50788. 8014e90: 4b1d ldr r3, [pc, #116] @ (8014f08 <pvPortMalloc+0x18c>)
  50789. 8014e92: 681a ldr r2, [r3, #0]
  50790. 8014e94: 6a7b ldr r3, [r7, #36] @ 0x24
  50791. 8014e96: 685b ldr r3, [r3, #4]
  50792. 8014e98: 1ad3 subs r3, r2, r3
  50793. 8014e9a: 4a1b ldr r2, [pc, #108] @ (8014f08 <pvPortMalloc+0x18c>)
  50794. 8014e9c: 6013 str r3, [r2, #0]
  50795. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  50796. 8014e9e: 4b1a ldr r3, [pc, #104] @ (8014f08 <pvPortMalloc+0x18c>)
  50797. 8014ea0: 681a ldr r2, [r3, #0]
  50798. 8014ea2: 4b1b ldr r3, [pc, #108] @ (8014f10 <pvPortMalloc+0x194>)
  50799. 8014ea4: 681b ldr r3, [r3, #0]
  50800. 8014ea6: 429a cmp r2, r3
  50801. 8014ea8: d203 bcs.n 8014eb2 <pvPortMalloc+0x136>
  50802. {
  50803. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  50804. 8014eaa: 4b17 ldr r3, [pc, #92] @ (8014f08 <pvPortMalloc+0x18c>)
  50805. 8014eac: 681b ldr r3, [r3, #0]
  50806. 8014eae: 4a18 ldr r2, [pc, #96] @ (8014f10 <pvPortMalloc+0x194>)
  50807. 8014eb0: 6013 str r3, [r2, #0]
  50808. mtCOVERAGE_TEST_MARKER();
  50809. }
  50810. /* The block is being returned - it is allocated and owned
  50811. by the application and has no "next" block. */
  50812. pxBlock->xBlockSize |= xBlockAllocatedBit;
  50813. 8014eb2: 6a7b ldr r3, [r7, #36] @ 0x24
  50814. 8014eb4: 685a ldr r2, [r3, #4]
  50815. 8014eb6: 4b13 ldr r3, [pc, #76] @ (8014f04 <pvPortMalloc+0x188>)
  50816. 8014eb8: 681b ldr r3, [r3, #0]
  50817. 8014eba: 431a orrs r2, r3
  50818. 8014ebc: 6a7b ldr r3, [r7, #36] @ 0x24
  50819. 8014ebe: 605a str r2, [r3, #4]
  50820. pxBlock->pxNextFreeBlock = NULL;
  50821. 8014ec0: 6a7b ldr r3, [r7, #36] @ 0x24
  50822. 8014ec2: 2200 movs r2, #0
  50823. 8014ec4: 601a str r2, [r3, #0]
  50824. xNumberOfSuccessfulAllocations++;
  50825. 8014ec6: 4b13 ldr r3, [pc, #76] @ (8014f14 <pvPortMalloc+0x198>)
  50826. 8014ec8: 681b ldr r3, [r3, #0]
  50827. 8014eca: 3301 adds r3, #1
  50828. 8014ecc: 4a11 ldr r2, [pc, #68] @ (8014f14 <pvPortMalloc+0x198>)
  50829. 8014ece: 6013 str r3, [r2, #0]
  50830. mtCOVERAGE_TEST_MARKER();
  50831. }
  50832. traceMALLOC( pvReturn, xWantedSize );
  50833. }
  50834. ( void ) xTaskResumeAll();
  50835. 8014ed0: f7fe f958 bl 8013184 <xTaskResumeAll>
  50836. mtCOVERAGE_TEST_MARKER();
  50837. }
  50838. }
  50839. #endif
  50840. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  50841. 8014ed4: 69fb ldr r3, [r7, #28]
  50842. 8014ed6: f003 0307 and.w r3, r3, #7
  50843. 8014eda: 2b00 cmp r3, #0
  50844. 8014edc: d00b beq.n 8014ef6 <pvPortMalloc+0x17a>
  50845. __asm volatile
  50846. 8014ede: f04f 0350 mov.w r3, #80 @ 0x50
  50847. 8014ee2: f383 8811 msr BASEPRI, r3
  50848. 8014ee6: f3bf 8f6f isb sy
  50849. 8014eea: f3bf 8f4f dsb sy
  50850. 8014eee: 60fb str r3, [r7, #12]
  50851. }
  50852. 8014ef0: bf00 nop
  50853. 8014ef2: bf00 nop
  50854. 8014ef4: e7fd b.n 8014ef2 <pvPortMalloc+0x176>
  50855. return pvReturn;
  50856. 8014ef6: 69fb ldr r3, [r7, #28]
  50857. }
  50858. 8014ef8: 4618 mov r0, r3
  50859. 8014efa: 3728 adds r7, #40 @ 0x28
  50860. 8014efc: 46bd mov sp, r7
  50861. 8014efe: bd80 pop {r7, pc}
  50862. 8014f00: 240242cc .word 0x240242cc
  50863. 8014f04: 240242e0 .word 0x240242e0
  50864. 8014f08: 240242d0 .word 0x240242d0
  50865. 8014f0c: 240242c4 .word 0x240242c4
  50866. 8014f10: 240242d4 .word 0x240242d4
  50867. 8014f14: 240242d8 .word 0x240242d8
  50868. 08014f18 <vPortFree>:
  50869. /*-----------------------------------------------------------*/
  50870. void vPortFree( void *pv )
  50871. {
  50872. 8014f18: b580 push {r7, lr}
  50873. 8014f1a: b086 sub sp, #24
  50874. 8014f1c: af00 add r7, sp, #0
  50875. 8014f1e: 6078 str r0, [r7, #4]
  50876. uint8_t *puc = ( uint8_t * ) pv;
  50877. 8014f20: 687b ldr r3, [r7, #4]
  50878. 8014f22: 617b str r3, [r7, #20]
  50879. BlockLink_t *pxLink;
  50880. if( pv != NULL )
  50881. 8014f24: 687b ldr r3, [r7, #4]
  50882. 8014f26: 2b00 cmp r3, #0
  50883. 8014f28: d04f beq.n 8014fca <vPortFree+0xb2>
  50884. {
  50885. /* The memory being freed will have an BlockLink_t structure immediately
  50886. before it. */
  50887. puc -= xHeapStructSize;
  50888. 8014f2a: 2308 movs r3, #8
  50889. 8014f2c: 425b negs r3, r3
  50890. 8014f2e: 697a ldr r2, [r7, #20]
  50891. 8014f30: 4413 add r3, r2
  50892. 8014f32: 617b str r3, [r7, #20]
  50893. /* This casting is to keep the compiler from issuing warnings. */
  50894. pxLink = ( void * ) puc;
  50895. 8014f34: 697b ldr r3, [r7, #20]
  50896. 8014f36: 613b str r3, [r7, #16]
  50897. /* Check the block is actually allocated. */
  50898. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  50899. 8014f38: 693b ldr r3, [r7, #16]
  50900. 8014f3a: 685a ldr r2, [r3, #4]
  50901. 8014f3c: 4b25 ldr r3, [pc, #148] @ (8014fd4 <vPortFree+0xbc>)
  50902. 8014f3e: 681b ldr r3, [r3, #0]
  50903. 8014f40: 4013 ands r3, r2
  50904. 8014f42: 2b00 cmp r3, #0
  50905. 8014f44: d10b bne.n 8014f5e <vPortFree+0x46>
  50906. __asm volatile
  50907. 8014f46: f04f 0350 mov.w r3, #80 @ 0x50
  50908. 8014f4a: f383 8811 msr BASEPRI, r3
  50909. 8014f4e: f3bf 8f6f isb sy
  50910. 8014f52: f3bf 8f4f dsb sy
  50911. 8014f56: 60fb str r3, [r7, #12]
  50912. }
  50913. 8014f58: bf00 nop
  50914. 8014f5a: bf00 nop
  50915. 8014f5c: e7fd b.n 8014f5a <vPortFree+0x42>
  50916. configASSERT( pxLink->pxNextFreeBlock == NULL );
  50917. 8014f5e: 693b ldr r3, [r7, #16]
  50918. 8014f60: 681b ldr r3, [r3, #0]
  50919. 8014f62: 2b00 cmp r3, #0
  50920. 8014f64: d00b beq.n 8014f7e <vPortFree+0x66>
  50921. __asm volatile
  50922. 8014f66: f04f 0350 mov.w r3, #80 @ 0x50
  50923. 8014f6a: f383 8811 msr BASEPRI, r3
  50924. 8014f6e: f3bf 8f6f isb sy
  50925. 8014f72: f3bf 8f4f dsb sy
  50926. 8014f76: 60bb str r3, [r7, #8]
  50927. }
  50928. 8014f78: bf00 nop
  50929. 8014f7a: bf00 nop
  50930. 8014f7c: e7fd b.n 8014f7a <vPortFree+0x62>
  50931. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  50932. 8014f7e: 693b ldr r3, [r7, #16]
  50933. 8014f80: 685a ldr r2, [r3, #4]
  50934. 8014f82: 4b14 ldr r3, [pc, #80] @ (8014fd4 <vPortFree+0xbc>)
  50935. 8014f84: 681b ldr r3, [r3, #0]
  50936. 8014f86: 4013 ands r3, r2
  50937. 8014f88: 2b00 cmp r3, #0
  50938. 8014f8a: d01e beq.n 8014fca <vPortFree+0xb2>
  50939. {
  50940. if( pxLink->pxNextFreeBlock == NULL )
  50941. 8014f8c: 693b ldr r3, [r7, #16]
  50942. 8014f8e: 681b ldr r3, [r3, #0]
  50943. 8014f90: 2b00 cmp r3, #0
  50944. 8014f92: d11a bne.n 8014fca <vPortFree+0xb2>
  50945. {
  50946. /* The block is being returned to the heap - it is no longer
  50947. allocated. */
  50948. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  50949. 8014f94: 693b ldr r3, [r7, #16]
  50950. 8014f96: 685a ldr r2, [r3, #4]
  50951. 8014f98: 4b0e ldr r3, [pc, #56] @ (8014fd4 <vPortFree+0xbc>)
  50952. 8014f9a: 681b ldr r3, [r3, #0]
  50953. 8014f9c: 43db mvns r3, r3
  50954. 8014f9e: 401a ands r2, r3
  50955. 8014fa0: 693b ldr r3, [r7, #16]
  50956. 8014fa2: 605a str r2, [r3, #4]
  50957. vTaskSuspendAll();
  50958. 8014fa4: f7fe f8e0 bl 8013168 <vTaskSuspendAll>
  50959. {
  50960. /* Add this block to the list of free blocks. */
  50961. xFreeBytesRemaining += pxLink->xBlockSize;
  50962. 8014fa8: 693b ldr r3, [r7, #16]
  50963. 8014faa: 685a ldr r2, [r3, #4]
  50964. 8014fac: 4b0a ldr r3, [pc, #40] @ (8014fd8 <vPortFree+0xc0>)
  50965. 8014fae: 681b ldr r3, [r3, #0]
  50966. 8014fb0: 4413 add r3, r2
  50967. 8014fb2: 4a09 ldr r2, [pc, #36] @ (8014fd8 <vPortFree+0xc0>)
  50968. 8014fb4: 6013 str r3, [r2, #0]
  50969. traceFREE( pv, pxLink->xBlockSize );
  50970. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  50971. 8014fb6: 6938 ldr r0, [r7, #16]
  50972. 8014fb8: f000 f874 bl 80150a4 <prvInsertBlockIntoFreeList>
  50973. xNumberOfSuccessfulFrees++;
  50974. 8014fbc: 4b07 ldr r3, [pc, #28] @ (8014fdc <vPortFree+0xc4>)
  50975. 8014fbe: 681b ldr r3, [r3, #0]
  50976. 8014fc0: 3301 adds r3, #1
  50977. 8014fc2: 4a06 ldr r2, [pc, #24] @ (8014fdc <vPortFree+0xc4>)
  50978. 8014fc4: 6013 str r3, [r2, #0]
  50979. }
  50980. ( void ) xTaskResumeAll();
  50981. 8014fc6: f7fe f8dd bl 8013184 <xTaskResumeAll>
  50982. else
  50983. {
  50984. mtCOVERAGE_TEST_MARKER();
  50985. }
  50986. }
  50987. }
  50988. 8014fca: bf00 nop
  50989. 8014fcc: 3718 adds r7, #24
  50990. 8014fce: 46bd mov sp, r7
  50991. 8014fd0: bd80 pop {r7, pc}
  50992. 8014fd2: bf00 nop
  50993. 8014fd4: 240242e0 .word 0x240242e0
  50994. 8014fd8: 240242d0 .word 0x240242d0
  50995. 8014fdc: 240242dc .word 0x240242dc
  50996. 08014fe0 <prvHeapInit>:
  50997. /* This just exists to keep the linker quiet. */
  50998. }
  50999. /*-----------------------------------------------------------*/
  51000. static void prvHeapInit( void )
  51001. {
  51002. 8014fe0: b480 push {r7}
  51003. 8014fe2: b085 sub sp, #20
  51004. 8014fe4: af00 add r7, sp, #0
  51005. BlockLink_t *pxFirstFreeBlock;
  51006. uint8_t *pucAlignedHeap;
  51007. size_t uxAddress;
  51008. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  51009. 8014fe6: f44f 3300 mov.w r3, #131072 @ 0x20000
  51010. 8014fea: 60bb str r3, [r7, #8]
  51011. /* Ensure the heap starts on a correctly aligned boundary. */
  51012. uxAddress = ( size_t ) ucHeap;
  51013. 8014fec: 4b27 ldr r3, [pc, #156] @ (801508c <prvHeapInit+0xac>)
  51014. 8014fee: 60fb str r3, [r7, #12]
  51015. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  51016. 8014ff0: 68fb ldr r3, [r7, #12]
  51017. 8014ff2: f003 0307 and.w r3, r3, #7
  51018. 8014ff6: 2b00 cmp r3, #0
  51019. 8014ff8: d00c beq.n 8015014 <prvHeapInit+0x34>
  51020. {
  51021. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  51022. 8014ffa: 68fb ldr r3, [r7, #12]
  51023. 8014ffc: 3307 adds r3, #7
  51024. 8014ffe: 60fb str r3, [r7, #12]
  51025. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  51026. 8015000: 68fb ldr r3, [r7, #12]
  51027. 8015002: f023 0307 bic.w r3, r3, #7
  51028. 8015006: 60fb str r3, [r7, #12]
  51029. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  51030. 8015008: 68ba ldr r2, [r7, #8]
  51031. 801500a: 68fb ldr r3, [r7, #12]
  51032. 801500c: 1ad3 subs r3, r2, r3
  51033. 801500e: 4a1f ldr r2, [pc, #124] @ (801508c <prvHeapInit+0xac>)
  51034. 8015010: 4413 add r3, r2
  51035. 8015012: 60bb str r3, [r7, #8]
  51036. }
  51037. pucAlignedHeap = ( uint8_t * ) uxAddress;
  51038. 8015014: 68fb ldr r3, [r7, #12]
  51039. 8015016: 607b str r3, [r7, #4]
  51040. /* xStart is used to hold a pointer to the first item in the list of free
  51041. blocks. The void cast is used to prevent compiler warnings. */
  51042. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  51043. 8015018: 4a1d ldr r2, [pc, #116] @ (8015090 <prvHeapInit+0xb0>)
  51044. 801501a: 687b ldr r3, [r7, #4]
  51045. 801501c: 6013 str r3, [r2, #0]
  51046. xStart.xBlockSize = ( size_t ) 0;
  51047. 801501e: 4b1c ldr r3, [pc, #112] @ (8015090 <prvHeapInit+0xb0>)
  51048. 8015020: 2200 movs r2, #0
  51049. 8015022: 605a str r2, [r3, #4]
  51050. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  51051. at the end of the heap space. */
  51052. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  51053. 8015024: 687b ldr r3, [r7, #4]
  51054. 8015026: 68ba ldr r2, [r7, #8]
  51055. 8015028: 4413 add r3, r2
  51056. 801502a: 60fb str r3, [r7, #12]
  51057. uxAddress -= xHeapStructSize;
  51058. 801502c: 2208 movs r2, #8
  51059. 801502e: 68fb ldr r3, [r7, #12]
  51060. 8015030: 1a9b subs r3, r3, r2
  51061. 8015032: 60fb str r3, [r7, #12]
  51062. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  51063. 8015034: 68fb ldr r3, [r7, #12]
  51064. 8015036: f023 0307 bic.w r3, r3, #7
  51065. 801503a: 60fb str r3, [r7, #12]
  51066. pxEnd = ( void * ) uxAddress;
  51067. 801503c: 68fb ldr r3, [r7, #12]
  51068. 801503e: 4a15 ldr r2, [pc, #84] @ (8015094 <prvHeapInit+0xb4>)
  51069. 8015040: 6013 str r3, [r2, #0]
  51070. pxEnd->xBlockSize = 0;
  51071. 8015042: 4b14 ldr r3, [pc, #80] @ (8015094 <prvHeapInit+0xb4>)
  51072. 8015044: 681b ldr r3, [r3, #0]
  51073. 8015046: 2200 movs r2, #0
  51074. 8015048: 605a str r2, [r3, #4]
  51075. pxEnd->pxNextFreeBlock = NULL;
  51076. 801504a: 4b12 ldr r3, [pc, #72] @ (8015094 <prvHeapInit+0xb4>)
  51077. 801504c: 681b ldr r3, [r3, #0]
  51078. 801504e: 2200 movs r2, #0
  51079. 8015050: 601a str r2, [r3, #0]
  51080. /* To start with there is a single free block that is sized to take up the
  51081. entire heap space, minus the space taken by pxEnd. */
  51082. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  51083. 8015052: 687b ldr r3, [r7, #4]
  51084. 8015054: 603b str r3, [r7, #0]
  51085. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  51086. 8015056: 683b ldr r3, [r7, #0]
  51087. 8015058: 68fa ldr r2, [r7, #12]
  51088. 801505a: 1ad2 subs r2, r2, r3
  51089. 801505c: 683b ldr r3, [r7, #0]
  51090. 801505e: 605a str r2, [r3, #4]
  51091. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  51092. 8015060: 4b0c ldr r3, [pc, #48] @ (8015094 <prvHeapInit+0xb4>)
  51093. 8015062: 681a ldr r2, [r3, #0]
  51094. 8015064: 683b ldr r3, [r7, #0]
  51095. 8015066: 601a str r2, [r3, #0]
  51096. /* Only one block exists - and it covers the entire usable heap space. */
  51097. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  51098. 8015068: 683b ldr r3, [r7, #0]
  51099. 801506a: 685b ldr r3, [r3, #4]
  51100. 801506c: 4a0a ldr r2, [pc, #40] @ (8015098 <prvHeapInit+0xb8>)
  51101. 801506e: 6013 str r3, [r2, #0]
  51102. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  51103. 8015070: 683b ldr r3, [r7, #0]
  51104. 8015072: 685b ldr r3, [r3, #4]
  51105. 8015074: 4a09 ldr r2, [pc, #36] @ (801509c <prvHeapInit+0xbc>)
  51106. 8015076: 6013 str r3, [r2, #0]
  51107. /* Work out the position of the top bit in a size_t variable. */
  51108. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  51109. 8015078: 4b09 ldr r3, [pc, #36] @ (80150a0 <prvHeapInit+0xc0>)
  51110. 801507a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  51111. 801507e: 601a str r2, [r3, #0]
  51112. }
  51113. 8015080: bf00 nop
  51114. 8015082: 3714 adds r7, #20
  51115. 8015084: 46bd mov sp, r7
  51116. 8015086: f85d 7b04 ldr.w r7, [sp], #4
  51117. 801508a: 4770 bx lr
  51118. 801508c: 240042c4 .word 0x240042c4
  51119. 8015090: 240242c4 .word 0x240242c4
  51120. 8015094: 240242cc .word 0x240242cc
  51121. 8015098: 240242d4 .word 0x240242d4
  51122. 801509c: 240242d0 .word 0x240242d0
  51123. 80150a0: 240242e0 .word 0x240242e0
  51124. 080150a4 <prvInsertBlockIntoFreeList>:
  51125. /*-----------------------------------------------------------*/
  51126. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  51127. {
  51128. 80150a4: b480 push {r7}
  51129. 80150a6: b085 sub sp, #20
  51130. 80150a8: af00 add r7, sp, #0
  51131. 80150aa: 6078 str r0, [r7, #4]
  51132. BlockLink_t *pxIterator;
  51133. uint8_t *puc;
  51134. /* Iterate through the list until a block is found that has a higher address
  51135. than the block being inserted. */
  51136. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  51137. 80150ac: 4b28 ldr r3, [pc, #160] @ (8015150 <prvInsertBlockIntoFreeList+0xac>)
  51138. 80150ae: 60fb str r3, [r7, #12]
  51139. 80150b0: e002 b.n 80150b8 <prvInsertBlockIntoFreeList+0x14>
  51140. 80150b2: 68fb ldr r3, [r7, #12]
  51141. 80150b4: 681b ldr r3, [r3, #0]
  51142. 80150b6: 60fb str r3, [r7, #12]
  51143. 80150b8: 68fb ldr r3, [r7, #12]
  51144. 80150ba: 681b ldr r3, [r3, #0]
  51145. 80150bc: 687a ldr r2, [r7, #4]
  51146. 80150be: 429a cmp r2, r3
  51147. 80150c0: d8f7 bhi.n 80150b2 <prvInsertBlockIntoFreeList+0xe>
  51148. /* Nothing to do here, just iterate to the right position. */
  51149. }
  51150. /* Do the block being inserted, and the block it is being inserted after
  51151. make a contiguous block of memory? */
  51152. puc = ( uint8_t * ) pxIterator;
  51153. 80150c2: 68fb ldr r3, [r7, #12]
  51154. 80150c4: 60bb str r3, [r7, #8]
  51155. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  51156. 80150c6: 68fb ldr r3, [r7, #12]
  51157. 80150c8: 685b ldr r3, [r3, #4]
  51158. 80150ca: 68ba ldr r2, [r7, #8]
  51159. 80150cc: 4413 add r3, r2
  51160. 80150ce: 687a ldr r2, [r7, #4]
  51161. 80150d0: 429a cmp r2, r3
  51162. 80150d2: d108 bne.n 80150e6 <prvInsertBlockIntoFreeList+0x42>
  51163. {
  51164. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  51165. 80150d4: 68fb ldr r3, [r7, #12]
  51166. 80150d6: 685a ldr r2, [r3, #4]
  51167. 80150d8: 687b ldr r3, [r7, #4]
  51168. 80150da: 685b ldr r3, [r3, #4]
  51169. 80150dc: 441a add r2, r3
  51170. 80150de: 68fb ldr r3, [r7, #12]
  51171. 80150e0: 605a str r2, [r3, #4]
  51172. pxBlockToInsert = pxIterator;
  51173. 80150e2: 68fb ldr r3, [r7, #12]
  51174. 80150e4: 607b str r3, [r7, #4]
  51175. mtCOVERAGE_TEST_MARKER();
  51176. }
  51177. /* Do the block being inserted, and the block it is being inserted before
  51178. make a contiguous block of memory? */
  51179. puc = ( uint8_t * ) pxBlockToInsert;
  51180. 80150e6: 687b ldr r3, [r7, #4]
  51181. 80150e8: 60bb str r3, [r7, #8]
  51182. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  51183. 80150ea: 687b ldr r3, [r7, #4]
  51184. 80150ec: 685b ldr r3, [r3, #4]
  51185. 80150ee: 68ba ldr r2, [r7, #8]
  51186. 80150f0: 441a add r2, r3
  51187. 80150f2: 68fb ldr r3, [r7, #12]
  51188. 80150f4: 681b ldr r3, [r3, #0]
  51189. 80150f6: 429a cmp r2, r3
  51190. 80150f8: d118 bne.n 801512c <prvInsertBlockIntoFreeList+0x88>
  51191. {
  51192. if( pxIterator->pxNextFreeBlock != pxEnd )
  51193. 80150fa: 68fb ldr r3, [r7, #12]
  51194. 80150fc: 681a ldr r2, [r3, #0]
  51195. 80150fe: 4b15 ldr r3, [pc, #84] @ (8015154 <prvInsertBlockIntoFreeList+0xb0>)
  51196. 8015100: 681b ldr r3, [r3, #0]
  51197. 8015102: 429a cmp r2, r3
  51198. 8015104: d00d beq.n 8015122 <prvInsertBlockIntoFreeList+0x7e>
  51199. {
  51200. /* Form one big block from the two blocks. */
  51201. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  51202. 8015106: 687b ldr r3, [r7, #4]
  51203. 8015108: 685a ldr r2, [r3, #4]
  51204. 801510a: 68fb ldr r3, [r7, #12]
  51205. 801510c: 681b ldr r3, [r3, #0]
  51206. 801510e: 685b ldr r3, [r3, #4]
  51207. 8015110: 441a add r2, r3
  51208. 8015112: 687b ldr r3, [r7, #4]
  51209. 8015114: 605a str r2, [r3, #4]
  51210. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  51211. 8015116: 68fb ldr r3, [r7, #12]
  51212. 8015118: 681b ldr r3, [r3, #0]
  51213. 801511a: 681a ldr r2, [r3, #0]
  51214. 801511c: 687b ldr r3, [r7, #4]
  51215. 801511e: 601a str r2, [r3, #0]
  51216. 8015120: e008 b.n 8015134 <prvInsertBlockIntoFreeList+0x90>
  51217. }
  51218. else
  51219. {
  51220. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  51221. 8015122: 4b0c ldr r3, [pc, #48] @ (8015154 <prvInsertBlockIntoFreeList+0xb0>)
  51222. 8015124: 681a ldr r2, [r3, #0]
  51223. 8015126: 687b ldr r3, [r7, #4]
  51224. 8015128: 601a str r2, [r3, #0]
  51225. 801512a: e003 b.n 8015134 <prvInsertBlockIntoFreeList+0x90>
  51226. }
  51227. }
  51228. else
  51229. {
  51230. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  51231. 801512c: 68fb ldr r3, [r7, #12]
  51232. 801512e: 681a ldr r2, [r3, #0]
  51233. 8015130: 687b ldr r3, [r7, #4]
  51234. 8015132: 601a str r2, [r3, #0]
  51235. /* If the block being inserted plugged a gab, so was merged with the block
  51236. before and the block after, then it's pxNextFreeBlock pointer will have
  51237. already been set, and should not be set here as that would make it point
  51238. to itself. */
  51239. if( pxIterator != pxBlockToInsert )
  51240. 8015134: 68fa ldr r2, [r7, #12]
  51241. 8015136: 687b ldr r3, [r7, #4]
  51242. 8015138: 429a cmp r2, r3
  51243. 801513a: d002 beq.n 8015142 <prvInsertBlockIntoFreeList+0x9e>
  51244. {
  51245. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  51246. 801513c: 68fb ldr r3, [r7, #12]
  51247. 801513e: 687a ldr r2, [r7, #4]
  51248. 8015140: 601a str r2, [r3, #0]
  51249. }
  51250. else
  51251. {
  51252. mtCOVERAGE_TEST_MARKER();
  51253. }
  51254. }
  51255. 8015142: bf00 nop
  51256. 8015144: 3714 adds r7, #20
  51257. 8015146: 46bd mov sp, r7
  51258. 8015148: f85d 7b04 ldr.w r7, [sp], #4
  51259. 801514c: 4770 bx lr
  51260. 801514e: bf00 nop
  51261. 8015150: 240242c4 .word 0x240242c4
  51262. 8015154: 240242cc .word 0x240242cc
  51263. 08015158 <netconn_apimsg>:
  51264. * @param apimsg a struct containing the function to call and its parameters
  51265. * @return ERR_OK if the function was called, another err_t if not
  51266. */
  51267. static err_t
  51268. netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg)
  51269. {
  51270. 8015158: b580 push {r7, lr}
  51271. 801515a: b084 sub sp, #16
  51272. 801515c: af00 add r7, sp, #0
  51273. 801515e: 6078 str r0, [r7, #4]
  51274. 8015160: 6039 str r1, [r7, #0]
  51275. err_t err;
  51276. #ifdef LWIP_DEBUG
  51277. /* catch functions that don't set err */
  51278. apimsg->err = ERR_VAL;
  51279. 8015162: 683b ldr r3, [r7, #0]
  51280. 8015164: 22fa movs r2, #250 @ 0xfa
  51281. 8015166: 711a strb r2, [r3, #4]
  51282. #if LWIP_NETCONN_SEM_PER_THREAD
  51283. apimsg->op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET();
  51284. #endif /* LWIP_NETCONN_SEM_PER_THREAD */
  51285. err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg));
  51286. 8015168: 683b ldr r3, [r7, #0]
  51287. 801516a: 681b ldr r3, [r3, #0]
  51288. 801516c: 330c adds r3, #12
  51289. 801516e: 461a mov r2, r3
  51290. 8015170: 6839 ldr r1, [r7, #0]
  51291. 8015172: 6878 ldr r0, [r7, #4]
  51292. 8015174: f003 fc7c bl 8018a70 <tcpip_send_msg_wait_sem>
  51293. 8015178: 4603 mov r3, r0
  51294. 801517a: 73fb strb r3, [r7, #15]
  51295. if (err == ERR_OK) {
  51296. 801517c: f997 300f ldrsb.w r3, [r7, #15]
  51297. 8015180: 2b00 cmp r3, #0
  51298. 8015182: d103 bne.n 801518c <netconn_apimsg+0x34>
  51299. return apimsg->err;
  51300. 8015184: 683b ldr r3, [r7, #0]
  51301. 8015186: f993 3004 ldrsb.w r3, [r3, #4]
  51302. 801518a: e001 b.n 8015190 <netconn_apimsg+0x38>
  51303. }
  51304. return err;
  51305. 801518c: f997 300f ldrsb.w r3, [r7, #15]
  51306. }
  51307. 8015190: 4618 mov r0, r3
  51308. 8015192: 3710 adds r7, #16
  51309. 8015194: 46bd mov sp, r7
  51310. 8015196: bd80 pop {r7, pc}
  51311. 08015198 <netconn_new_with_proto_and_callback>:
  51312. * @return a newly allocated struct netconn or
  51313. * NULL on memory error
  51314. */
  51315. struct netconn *
  51316. netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback)
  51317. {
  51318. 8015198: b580 push {r7, lr}
  51319. 801519a: b08c sub sp, #48 @ 0x30
  51320. 801519c: af00 add r7, sp, #0
  51321. 801519e: 4603 mov r3, r0
  51322. 80151a0: 603a str r2, [r7, #0]
  51323. 80151a2: 71fb strb r3, [r7, #7]
  51324. 80151a4: 460b mov r3, r1
  51325. 80151a6: 71bb strb r3, [r7, #6]
  51326. struct netconn *conn;
  51327. API_MSG_VAR_DECLARE(msg);
  51328. API_MSG_VAR_ALLOC_RETURN_NULL(msg);
  51329. conn = netconn_alloc(t, callback);
  51330. 80151a8: 79fb ldrb r3, [r7, #7]
  51331. 80151aa: 6839 ldr r1, [r7, #0]
  51332. 80151ac: 4618 mov r0, r3
  51333. 80151ae: f001 f8ad bl 801630c <netconn_alloc>
  51334. 80151b2: 62f8 str r0, [r7, #44] @ 0x2c
  51335. if (conn != NULL) {
  51336. 80151b4: 6afb ldr r3, [r7, #44] @ 0x2c
  51337. 80151b6: 2b00 cmp r3, #0
  51338. 80151b8: d054 beq.n 8015264 <netconn_new_with_proto_and_callback+0xcc>
  51339. err_t err;
  51340. API_MSG_VAR_REF(msg).msg.n.proto = proto;
  51341. 80151ba: 79bb ldrb r3, [r7, #6]
  51342. 80151bc: 743b strb r3, [r7, #16]
  51343. API_MSG_VAR_REF(msg).conn = conn;
  51344. 80151be: 6afb ldr r3, [r7, #44] @ 0x2c
  51345. 80151c0: 60bb str r3, [r7, #8]
  51346. err = netconn_apimsg(lwip_netconn_do_newconn, &API_MSG_VAR_REF(msg));
  51347. 80151c2: f107 0308 add.w r3, r7, #8
  51348. 80151c6: 4619 mov r1, r3
  51349. 80151c8: 4829 ldr r0, [pc, #164] @ (8015270 <netconn_new_with_proto_and_callback+0xd8>)
  51350. 80151ca: f7ff ffc5 bl 8015158 <netconn_apimsg>
  51351. 80151ce: 4603 mov r3, r0
  51352. 80151d0: f887 302b strb.w r3, [r7, #43] @ 0x2b
  51353. if (err != ERR_OK) {
  51354. 80151d4: f997 302b ldrsb.w r3, [r7, #43] @ 0x2b
  51355. 80151d8: 2b00 cmp r3, #0
  51356. 80151da: d043 beq.n 8015264 <netconn_new_with_proto_and_callback+0xcc>
  51357. LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL);
  51358. 80151dc: 6afb ldr r3, [r7, #44] @ 0x2c
  51359. 80151de: 685b ldr r3, [r3, #4]
  51360. 80151e0: 2b00 cmp r3, #0
  51361. 80151e2: d005 beq.n 80151f0 <netconn_new_with_proto_and_callback+0x58>
  51362. 80151e4: 4b23 ldr r3, [pc, #140] @ (8015274 <netconn_new_with_proto_and_callback+0xdc>)
  51363. 80151e6: 22a3 movs r2, #163 @ 0xa3
  51364. 80151e8: 4923 ldr r1, [pc, #140] @ (8015278 <netconn_new_with_proto_and_callback+0xe0>)
  51365. 80151ea: 4824 ldr r0, [pc, #144] @ (801527c <netconn_new_with_proto_and_callback+0xe4>)
  51366. 80151ec: f014 fbf6 bl 80299dc <iprintf>
  51367. LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox));
  51368. 80151f0: 6afb ldr r3, [r7, #44] @ 0x2c
  51369. 80151f2: 3310 adds r3, #16
  51370. 80151f4: 4618 mov r0, r3
  51371. 80151f6: f011 f851 bl 802629c <sys_mbox_valid>
  51372. 80151fa: 4603 mov r3, r0
  51373. 80151fc: 2b00 cmp r3, #0
  51374. 80151fe: d105 bne.n 801520c <netconn_new_with_proto_and_callback+0x74>
  51375. 8015200: 4b1c ldr r3, [pc, #112] @ (8015274 <netconn_new_with_proto_and_callback+0xdc>)
  51376. 8015202: 22a4 movs r2, #164 @ 0xa4
  51377. 8015204: 491e ldr r1, [pc, #120] @ (8015280 <netconn_new_with_proto_and_callback+0xe8>)
  51378. 8015206: 481d ldr r0, [pc, #116] @ (801527c <netconn_new_with_proto_and_callback+0xe4>)
  51379. 8015208: f014 fbe8 bl 80299dc <iprintf>
  51380. #if LWIP_TCP
  51381. LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox));
  51382. 801520c: 6afb ldr r3, [r7, #44] @ 0x2c
  51383. 801520e: 3314 adds r3, #20
  51384. 8015210: 4618 mov r0, r3
  51385. 8015212: f011 f843 bl 802629c <sys_mbox_valid>
  51386. 8015216: 4603 mov r3, r0
  51387. 8015218: 2b00 cmp r3, #0
  51388. 801521a: d005 beq.n 8015228 <netconn_new_with_proto_and_callback+0x90>
  51389. 801521c: 4b15 ldr r3, [pc, #84] @ (8015274 <netconn_new_with_proto_and_callback+0xdc>)
  51390. 801521e: 22a6 movs r2, #166 @ 0xa6
  51391. 8015220: 4918 ldr r1, [pc, #96] @ (8015284 <netconn_new_with_proto_and_callback+0xec>)
  51392. 8015222: 4816 ldr r0, [pc, #88] @ (801527c <netconn_new_with_proto_and_callback+0xe4>)
  51393. 8015224: f014 fbda bl 80299dc <iprintf>
  51394. #endif /* LWIP_TCP */
  51395. #if !LWIP_NETCONN_SEM_PER_THREAD
  51396. LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed));
  51397. 8015228: 6afb ldr r3, [r7, #44] @ 0x2c
  51398. 801522a: 330c adds r3, #12
  51399. 801522c: 4618 mov r0, r3
  51400. 801522e: f011 f8c3 bl 80263b8 <sys_sem_valid>
  51401. 8015232: 4603 mov r3, r0
  51402. 8015234: 2b00 cmp r3, #0
  51403. 8015236: d105 bne.n 8015244 <netconn_new_with_proto_and_callback+0xac>
  51404. 8015238: 4b0e ldr r3, [pc, #56] @ (8015274 <netconn_new_with_proto_and_callback+0xdc>)
  51405. 801523a: 22a9 movs r2, #169 @ 0xa9
  51406. 801523c: 4912 ldr r1, [pc, #72] @ (8015288 <netconn_new_with_proto_and_callback+0xf0>)
  51407. 801523e: 480f ldr r0, [pc, #60] @ (801527c <netconn_new_with_proto_and_callback+0xe4>)
  51408. 8015240: f014 fbcc bl 80299dc <iprintf>
  51409. sys_sem_free(&conn->op_completed);
  51410. 8015244: 6afb ldr r3, [r7, #44] @ 0x2c
  51411. 8015246: 330c adds r3, #12
  51412. 8015248: 4618 mov r0, r3
  51413. 801524a: f011 f8a8 bl 802639e <sys_sem_free>
  51414. #endif /* !LWIP_NETCONN_SEM_PER_THREAD */
  51415. sys_mbox_free(&conn->recvmbox);
  51416. 801524e: 6afb ldr r3, [r7, #44] @ 0x2c
  51417. 8015250: 3310 adds r3, #16
  51418. 8015252: 4618 mov r0, r3
  51419. 8015254: f010 ffae bl 80261b4 <sys_mbox_free>
  51420. memp_free(MEMP_NETCONN, conn);
  51421. 8015258: 6af9 ldr r1, [r7, #44] @ 0x2c
  51422. 801525a: 2007 movs r0, #7
  51423. 801525c: f004 fa58 bl 8019710 <memp_free>
  51424. API_MSG_VAR_FREE(msg);
  51425. return NULL;
  51426. 8015260: 2300 movs r3, #0
  51427. 8015262: e000 b.n 8015266 <netconn_new_with_proto_and_callback+0xce>
  51428. }
  51429. }
  51430. API_MSG_VAR_FREE(msg);
  51431. return conn;
  51432. 8015264: 6afb ldr r3, [r7, #44] @ 0x2c
  51433. }
  51434. 8015266: 4618 mov r0, r3
  51435. 8015268: 3730 adds r7, #48 @ 0x30
  51436. 801526a: 46bd mov sp, r7
  51437. 801526c: bd80 pop {r7, pc}
  51438. 801526e: bf00 nop
  51439. 8015270: 080162e1 .word 0x080162e1
  51440. 8015274: 0802cbcc .word 0x0802cbcc
  51441. 8015278: 0802cc00 .word 0x0802cc00
  51442. 801527c: 0802cc24 .word 0x0802cc24
  51443. 8015280: 0802cc4c .word 0x0802cc4c
  51444. 8015284: 0802cc64 .word 0x0802cc64
  51445. 8015288: 0802cc88 .word 0x0802cc88
  51446. 0801528c <netconn_prepare_delete>:
  51447. * @param conn the netconn to delete
  51448. * @return ERR_OK if the connection was deleted
  51449. */
  51450. err_t
  51451. netconn_prepare_delete(struct netconn *conn)
  51452. {
  51453. 801528c: b580 push {r7, lr}
  51454. 801528e: b08c sub sp, #48 @ 0x30
  51455. 8015290: af00 add r7, sp, #0
  51456. 8015292: 6078 str r0, [r7, #4]
  51457. err_t err;
  51458. API_MSG_VAR_DECLARE(msg);
  51459. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  51460. if (conn == NULL) {
  51461. 8015294: 687b ldr r3, [r7, #4]
  51462. 8015296: 2b00 cmp r3, #0
  51463. 8015298: d101 bne.n 801529e <netconn_prepare_delete+0x12>
  51464. return ERR_OK;
  51465. 801529a: 2300 movs r3, #0
  51466. 801529c: e014 b.n 80152c8 <netconn_prepare_delete+0x3c>
  51467. }
  51468. API_MSG_VAR_ALLOC(msg);
  51469. API_MSG_VAR_REF(msg).conn = conn;
  51470. 801529e: 687b ldr r3, [r7, #4]
  51471. 80152a0: 60fb str r3, [r7, #12]
  51472. /* get the time we started, which is later compared to
  51473. sys_now() + conn->send_timeout */
  51474. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  51475. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  51476. #if LWIP_TCP
  51477. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  51478. 80152a2: 2329 movs r3, #41 @ 0x29
  51479. 80152a4: 757b strb r3, [r7, #21]
  51480. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  51481. #endif /* LWIP_TCP */
  51482. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  51483. err = netconn_apimsg(lwip_netconn_do_delconn, &API_MSG_VAR_REF(msg));
  51484. 80152a6: f107 030c add.w r3, r7, #12
  51485. 80152aa: 4619 mov r1, r3
  51486. 80152ac: 4808 ldr r0, [pc, #32] @ (80152d0 <netconn_prepare_delete+0x44>)
  51487. 80152ae: f7ff ff53 bl 8015158 <netconn_apimsg>
  51488. 80152b2: 4603 mov r3, r0
  51489. 80152b4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  51490. API_MSG_VAR_FREE(msg);
  51491. if (err != ERR_OK) {
  51492. 80152b8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  51493. 80152bc: 2b00 cmp r3, #0
  51494. 80152be: d002 beq.n 80152c6 <netconn_prepare_delete+0x3a>
  51495. return err;
  51496. 80152c0: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  51497. 80152c4: e000 b.n 80152c8 <netconn_prepare_delete+0x3c>
  51498. }
  51499. return ERR_OK;
  51500. 80152c6: 2300 movs r3, #0
  51501. }
  51502. 80152c8: 4618 mov r0, r3
  51503. 80152ca: 3730 adds r7, #48 @ 0x30
  51504. 80152cc: 46bd mov sp, r7
  51505. 80152ce: bd80 pop {r7, pc}
  51506. 80152d0: 08016865 .word 0x08016865
  51507. 080152d4 <netconn_delete>:
  51508. * @param conn the netconn to delete
  51509. * @return ERR_OK if the connection was deleted
  51510. */
  51511. err_t
  51512. netconn_delete(struct netconn *conn)
  51513. {
  51514. 80152d4: b580 push {r7, lr}
  51515. 80152d6: b084 sub sp, #16
  51516. 80152d8: af00 add r7, sp, #0
  51517. 80152da: 6078 str r0, [r7, #4]
  51518. err_t err;
  51519. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  51520. if (conn == NULL) {
  51521. 80152dc: 687b ldr r3, [r7, #4]
  51522. 80152de: 2b00 cmp r3, #0
  51523. 80152e0: d101 bne.n 80152e6 <netconn_delete+0x12>
  51524. return ERR_OK;
  51525. 80152e2: 2300 movs r3, #0
  51526. 80152e4: e00d b.n 8015302 <netconn_delete+0x2e>
  51527. /* Already called netconn_prepare_delete() before */
  51528. err = ERR_OK;
  51529. } else
  51530. #endif /* LWIP_NETCONN_FULLDUPLEX */
  51531. {
  51532. err = netconn_prepare_delete(conn);
  51533. 80152e6: 6878 ldr r0, [r7, #4]
  51534. 80152e8: f7ff ffd0 bl 801528c <netconn_prepare_delete>
  51535. 80152ec: 4603 mov r3, r0
  51536. 80152ee: 73fb strb r3, [r7, #15]
  51537. }
  51538. if (err == ERR_OK) {
  51539. 80152f0: f997 300f ldrsb.w r3, [r7, #15]
  51540. 80152f4: 2b00 cmp r3, #0
  51541. 80152f6: d102 bne.n 80152fe <netconn_delete+0x2a>
  51542. netconn_free(conn);
  51543. 80152f8: 6878 ldr r0, [r7, #4]
  51544. 80152fa: f001 f881 bl 8016400 <netconn_free>
  51545. }
  51546. return err;
  51547. 80152fe: f997 300f ldrsb.w r3, [r7, #15]
  51548. }
  51549. 8015302: 4618 mov r0, r3
  51550. 8015304: 3710 adds r7, #16
  51551. 8015306: 46bd mov sp, r7
  51552. 8015308: bd80 pop {r7, pc}
  51553. ...
  51554. 0801530c <netconn_getaddr>:
  51555. * @return ERR_CONN for invalid connections
  51556. * ERR_OK if the information was retrieved
  51557. */
  51558. err_t
  51559. netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
  51560. {
  51561. 801530c: b580 push {r7, lr}
  51562. 801530e: b08e sub sp, #56 @ 0x38
  51563. 8015310: af00 add r7, sp, #0
  51564. 8015312: 60f8 str r0, [r7, #12]
  51565. 8015314: 60b9 str r1, [r7, #8]
  51566. 8015316: 607a str r2, [r7, #4]
  51567. 8015318: 70fb strb r3, [r7, #3]
  51568. API_MSG_VAR_DECLARE(msg);
  51569. err_t err;
  51570. LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;);
  51571. 801531a: 68fb ldr r3, [r7, #12]
  51572. 801531c: 2b00 cmp r3, #0
  51573. 801531e: d109 bne.n 8015334 <netconn_getaddr+0x28>
  51574. 8015320: 4b1d ldr r3, [pc, #116] @ (8015398 <netconn_getaddr+0x8c>)
  51575. 8015322: f44f 7289 mov.w r2, #274 @ 0x112
  51576. 8015326: 491d ldr r1, [pc, #116] @ (801539c <netconn_getaddr+0x90>)
  51577. 8015328: 481d ldr r0, [pc, #116] @ (80153a0 <netconn_getaddr+0x94>)
  51578. 801532a: f014 fb57 bl 80299dc <iprintf>
  51579. 801532e: f06f 030f mvn.w r3, #15
  51580. 8015332: e02d b.n 8015390 <netconn_getaddr+0x84>
  51581. LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;);
  51582. 8015334: 68bb ldr r3, [r7, #8]
  51583. 8015336: 2b00 cmp r3, #0
  51584. 8015338: d109 bne.n 801534e <netconn_getaddr+0x42>
  51585. 801533a: 4b17 ldr r3, [pc, #92] @ (8015398 <netconn_getaddr+0x8c>)
  51586. 801533c: f240 1213 movw r2, #275 @ 0x113
  51587. 8015340: 4918 ldr r1, [pc, #96] @ (80153a4 <netconn_getaddr+0x98>)
  51588. 8015342: 4817 ldr r0, [pc, #92] @ (80153a0 <netconn_getaddr+0x94>)
  51589. 8015344: f014 fb4a bl 80299dc <iprintf>
  51590. 8015348: f06f 030f mvn.w r3, #15
  51591. 801534c: e020 b.n 8015390 <netconn_getaddr+0x84>
  51592. LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;);
  51593. 801534e: 687b ldr r3, [r7, #4]
  51594. 8015350: 2b00 cmp r3, #0
  51595. 8015352: d109 bne.n 8015368 <netconn_getaddr+0x5c>
  51596. 8015354: 4b10 ldr r3, [pc, #64] @ (8015398 <netconn_getaddr+0x8c>)
  51597. 8015356: f44f 728a mov.w r2, #276 @ 0x114
  51598. 801535a: 4913 ldr r1, [pc, #76] @ (80153a8 <netconn_getaddr+0x9c>)
  51599. 801535c: 4810 ldr r0, [pc, #64] @ (80153a0 <netconn_getaddr+0x94>)
  51600. 801535e: f014 fb3d bl 80299dc <iprintf>
  51601. 8015362: f06f 030f mvn.w r3, #15
  51602. 8015366: e013 b.n 8015390 <netconn_getaddr+0x84>
  51603. API_MSG_VAR_ALLOC(msg);
  51604. API_MSG_VAR_REF(msg).conn = conn;
  51605. 8015368: 68fb ldr r3, [r7, #12]
  51606. 801536a: 617b str r3, [r7, #20]
  51607. API_MSG_VAR_REF(msg).msg.ad.local = local;
  51608. 801536c: 78fb ldrb r3, [r7, #3]
  51609. 801536e: f887 3024 strb.w r3, [r7, #36] @ 0x24
  51610. #if LWIP_MPU_COMPATIBLE
  51611. err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg));
  51612. *addr = msg->msg.ad.ipaddr;
  51613. *port = msg->msg.ad.port;
  51614. #else /* LWIP_MPU_COMPATIBLE */
  51615. msg.msg.ad.ipaddr = addr;
  51616. 8015372: 68bb ldr r3, [r7, #8]
  51617. 8015374: 61fb str r3, [r7, #28]
  51618. msg.msg.ad.port = port;
  51619. 8015376: 687b ldr r3, [r7, #4]
  51620. 8015378: 623b str r3, [r7, #32]
  51621. err = netconn_apimsg(lwip_netconn_do_getaddr, &msg);
  51622. 801537a: f107 0314 add.w r3, r7, #20
  51623. 801537e: 4619 mov r1, r3
  51624. 8015380: 480a ldr r0, [pc, #40] @ (80153ac <netconn_getaddr+0xa0>)
  51625. 8015382: f7ff fee9 bl 8015158 <netconn_apimsg>
  51626. 8015386: 4603 mov r3, r0
  51627. 8015388: f887 3037 strb.w r3, [r7, #55] @ 0x37
  51628. #endif /* LWIP_MPU_COMPATIBLE */
  51629. API_MSG_VAR_FREE(msg);
  51630. return err;
  51631. 801538c: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  51632. }
  51633. 8015390: 4618 mov r0, r3
  51634. 8015392: 3738 adds r7, #56 @ 0x38
  51635. 8015394: 46bd mov sp, r7
  51636. 8015396: bd80 pop {r7, pc}
  51637. 8015398: 0802cbcc .word 0x0802cbcc
  51638. 801539c: 0802cca4 .word 0x0802cca4
  51639. 80153a0: 0802cc24 .word 0x0802cc24
  51640. 80153a4: 0802ccc4 .word 0x0802ccc4
  51641. 80153a8: 0802cce4 .word 0x0802cce4
  51642. 80153ac: 080172c1 .word 0x080172c1
  51643. 080153b0 <netconn_connect>:
  51644. * @param port the remote port to connect to (no used for RAW)
  51645. * @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise
  51646. */
  51647. err_t
  51648. netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
  51649. {
  51650. 80153b0: b580 push {r7, lr}
  51651. 80153b2: b08e sub sp, #56 @ 0x38
  51652. 80153b4: af00 add r7, sp, #0
  51653. 80153b6: 60f8 str r0, [r7, #12]
  51654. 80153b8: 60b9 str r1, [r7, #8]
  51655. 80153ba: 4613 mov r3, r2
  51656. 80153bc: 80fb strh r3, [r7, #6]
  51657. API_MSG_VAR_DECLARE(msg);
  51658. err_t err;
  51659. LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;);
  51660. 80153be: 68fb ldr r3, [r7, #12]
  51661. 80153c0: 2b00 cmp r3, #0
  51662. 80153c2: d109 bne.n 80153d8 <netconn_connect+0x28>
  51663. 80153c4: 4b11 ldr r3, [pc, #68] @ (801540c <netconn_connect+0x5c>)
  51664. 80153c6: f44f 72bf mov.w r2, #382 @ 0x17e
  51665. 80153ca: 4911 ldr r1, [pc, #68] @ (8015410 <netconn_connect+0x60>)
  51666. 80153cc: 4811 ldr r0, [pc, #68] @ (8015414 <netconn_connect+0x64>)
  51667. 80153ce: f014 fb05 bl 80299dc <iprintf>
  51668. 80153d2: f06f 030f mvn.w r3, #15
  51669. 80153d6: e015 b.n 8015404 <netconn_connect+0x54>
  51670. #if LWIP_IPV4
  51671. /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */
  51672. if (addr == NULL) {
  51673. 80153d8: 68bb ldr r3, [r7, #8]
  51674. 80153da: 2b00 cmp r3, #0
  51675. 80153dc: d101 bne.n 80153e2 <netconn_connect+0x32>
  51676. addr = IP4_ADDR_ANY;
  51677. 80153de: 4b0e ldr r3, [pc, #56] @ (8015418 <netconn_connect+0x68>)
  51678. 80153e0: 60bb str r3, [r7, #8]
  51679. }
  51680. #endif /* LWIP_IPV4 */
  51681. API_MSG_VAR_ALLOC(msg);
  51682. API_MSG_VAR_REF(msg).conn = conn;
  51683. 80153e2: 68fb ldr r3, [r7, #12]
  51684. 80153e4: 617b str r3, [r7, #20]
  51685. API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr);
  51686. 80153e6: 68bb ldr r3, [r7, #8]
  51687. 80153e8: 61fb str r3, [r7, #28]
  51688. API_MSG_VAR_REF(msg).msg.bc.port = port;
  51689. 80153ea: 88fb ldrh r3, [r7, #6]
  51690. 80153ec: 843b strh r3, [r7, #32]
  51691. err = netconn_apimsg(lwip_netconn_do_connect, &API_MSG_VAR_REF(msg));
  51692. 80153ee: f107 0314 add.w r3, r7, #20
  51693. 80153f2: 4619 mov r1, r3
  51694. 80153f4: 4809 ldr r0, [pc, #36] @ (801541c <netconn_connect+0x6c>)
  51695. 80153f6: f7ff feaf bl 8015158 <netconn_apimsg>
  51696. 80153fa: 4603 mov r3, r0
  51697. 80153fc: f887 3037 strb.w r3, [r7, #55] @ 0x37
  51698. API_MSG_VAR_FREE(msg);
  51699. return err;
  51700. 8015400: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  51701. }
  51702. 8015404: 4618 mov r0, r3
  51703. 8015406: 3738 adds r7, #56 @ 0x38
  51704. 8015408: 46bd mov sp, r7
  51705. 801540a: bd80 pop {r7, pc}
  51706. 801540c: 0802cbcc .word 0x0802cbcc
  51707. 8015410: 0802cd40 .word 0x0802cd40
  51708. 8015414: 0802cc24 .word 0x0802cc24
  51709. 8015418: 08030c68 .word 0x08030c68
  51710. 801541c: 08016b51 .word 0x08016b51
  51711. 08015420 <netconn_disconnect>:
  51712. * @param conn the netconn to disconnect
  51713. * @return See @ref err_t
  51714. */
  51715. err_t
  51716. netconn_disconnect(struct netconn *conn)
  51717. {
  51718. 8015420: b580 push {r7, lr}
  51719. 8015422: b08c sub sp, #48 @ 0x30
  51720. 8015424: af00 add r7, sp, #0
  51721. 8015426: 6078 str r0, [r7, #4]
  51722. API_MSG_VAR_DECLARE(msg);
  51723. err_t err;
  51724. LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;);
  51725. 8015428: 687b ldr r3, [r7, #4]
  51726. 801542a: 2b00 cmp r3, #0
  51727. 801542c: d109 bne.n 8015442 <netconn_disconnect+0x22>
  51728. 801542e: 4b0d ldr r3, [pc, #52] @ (8015464 <netconn_disconnect+0x44>)
  51729. 8015430: f44f 72cf mov.w r2, #414 @ 0x19e
  51730. 8015434: 490c ldr r1, [pc, #48] @ (8015468 <netconn_disconnect+0x48>)
  51731. 8015436: 480d ldr r0, [pc, #52] @ (801546c <netconn_disconnect+0x4c>)
  51732. 8015438: f014 fad0 bl 80299dc <iprintf>
  51733. 801543c: f06f 030f mvn.w r3, #15
  51734. 8015440: e00c b.n 801545c <netconn_disconnect+0x3c>
  51735. API_MSG_VAR_ALLOC(msg);
  51736. API_MSG_VAR_REF(msg).conn = conn;
  51737. 8015442: 687b ldr r3, [r7, #4]
  51738. 8015444: 60fb str r3, [r7, #12]
  51739. err = netconn_apimsg(lwip_netconn_do_disconnect, &API_MSG_VAR_REF(msg));
  51740. 8015446: f107 030c add.w r3, r7, #12
  51741. 801544a: 4619 mov r1, r3
  51742. 801544c: 4808 ldr r0, [pc, #32] @ (8015470 <netconn_disconnect+0x50>)
  51743. 801544e: f7ff fe83 bl 8015158 <netconn_apimsg>
  51744. 8015452: 4603 mov r3, r0
  51745. 8015454: f887 302f strb.w r3, [r7, #47] @ 0x2f
  51746. API_MSG_VAR_FREE(msg);
  51747. return err;
  51748. 8015458: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  51749. }
  51750. 801545c: 4618 mov r0, r3
  51751. 801545e: 3730 adds r7, #48 @ 0x30
  51752. 8015460: 46bd mov sp, r7
  51753. 8015462: bd80 pop {r7, pc}
  51754. 8015464: 0802cbcc .word 0x0802cbcc
  51755. 8015468: 0802cd60 .word 0x0802cd60
  51756. 801546c: 0802cc24 .word 0x0802cc24
  51757. 8015470: 08016cd1 .word 0x08016cd1
  51758. 08015474 <netconn_recv_data>:
  51759. * ERR_WOULDBLOCK if the netconn is nonblocking but would block to wait for data
  51760. * ERR_TIMEOUT if the netconn has a receive timeout and no data was received
  51761. */
  51762. static err_t
  51763. netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags)
  51764. {
  51765. 8015474: b580 push {r7, lr}
  51766. 8015476: b08a sub sp, #40 @ 0x28
  51767. 8015478: af00 add r7, sp, #0
  51768. 801547a: 60f8 str r0, [r7, #12]
  51769. 801547c: 60b9 str r1, [r7, #8]
  51770. 801547e: 4613 mov r3, r2
  51771. 8015480: 71fb strb r3, [r7, #7]
  51772. void *buf = NULL;
  51773. 8015482: 2300 movs r3, #0
  51774. 8015484: 61bb str r3, [r7, #24]
  51775. u16_t len;
  51776. LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;);
  51777. 8015486: 68bb ldr r3, [r7, #8]
  51778. 8015488: 2b00 cmp r3, #0
  51779. 801548a: d109 bne.n 80154a0 <netconn_recv_data+0x2c>
  51780. 801548c: 4b64 ldr r3, [pc, #400] @ (8015620 <netconn_recv_data+0x1ac>)
  51781. 801548e: f44f 7212 mov.w r2, #584 @ 0x248
  51782. 8015492: 4964 ldr r1, [pc, #400] @ (8015624 <netconn_recv_data+0x1b0>)
  51783. 8015494: 4864 ldr r0, [pc, #400] @ (8015628 <netconn_recv_data+0x1b4>)
  51784. 8015496: f014 faa1 bl 80299dc <iprintf>
  51785. 801549a: f06f 030f mvn.w r3, #15
  51786. 801549e: e0bb b.n 8015618 <netconn_recv_data+0x1a4>
  51787. *new_buf = NULL;
  51788. 80154a0: 68bb ldr r3, [r7, #8]
  51789. 80154a2: 2200 movs r2, #0
  51790. 80154a4: 601a str r2, [r3, #0]
  51791. LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;);
  51792. 80154a6: 68fb ldr r3, [r7, #12]
  51793. 80154a8: 2b00 cmp r3, #0
  51794. 80154aa: d109 bne.n 80154c0 <netconn_recv_data+0x4c>
  51795. 80154ac: 4b5c ldr r3, [pc, #368] @ (8015620 <netconn_recv_data+0x1ac>)
  51796. 80154ae: f240 224a movw r2, #586 @ 0x24a
  51797. 80154b2: 495e ldr r1, [pc, #376] @ (801562c <netconn_recv_data+0x1b8>)
  51798. 80154b4: 485c ldr r0, [pc, #368] @ (8015628 <netconn_recv_data+0x1b4>)
  51799. 80154b6: f014 fa91 bl 80299dc <iprintf>
  51800. 80154ba: f06f 030f mvn.w r3, #15
  51801. 80154be: e0ab b.n 8015618 <netconn_recv_data+0x1a4>
  51802. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  51803. 80154c0: 68fb ldr r3, [r7, #12]
  51804. 80154c2: 3310 adds r3, #16
  51805. 80154c4: 4618 mov r0, r3
  51806. 80154c6: f010 fee9 bl 802629c <sys_mbox_valid>
  51807. 80154ca: 4603 mov r3, r0
  51808. 80154cc: 2b00 cmp r3, #0
  51809. 80154ce: d10e bne.n 80154ee <netconn_recv_data+0x7a>
  51810. err_t err = netconn_err(conn);
  51811. 80154d0: 68f8 ldr r0, [r7, #12]
  51812. 80154d2: f000 fb1f bl 8015b14 <netconn_err>
  51813. 80154d6: 4603 mov r3, r0
  51814. 80154d8: 77fb strb r3, [r7, #31]
  51815. if (err != ERR_OK) {
  51816. 80154da: f997 301f ldrsb.w r3, [r7, #31]
  51817. 80154de: 2b00 cmp r3, #0
  51818. 80154e0: d002 beq.n 80154e8 <netconn_recv_data+0x74>
  51819. /* return pending error */
  51820. return err;
  51821. 80154e2: f997 301f ldrsb.w r3, [r7, #31]
  51822. 80154e6: e097 b.n 8015618 <netconn_recv_data+0x1a4>
  51823. }
  51824. return ERR_CONN;
  51825. 80154e8: f06f 030a mvn.w r3, #10
  51826. 80154ec: e094 b.n 8015618 <netconn_recv_data+0x1a4>
  51827. }
  51828. NETCONN_MBOX_WAITING_INC(conn);
  51829. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  51830. 80154ee: 68fb ldr r3, [r7, #12]
  51831. 80154f0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51832. 80154f4: f003 0302 and.w r3, r3, #2
  51833. 80154f8: 2b00 cmp r3, #0
  51834. 80154fa: d110 bne.n 801551e <netconn_recv_data+0xaa>
  51835. 80154fc: 79fb ldrb r3, [r7, #7]
  51836. 80154fe: f003 0304 and.w r3, r3, #4
  51837. 8015502: 2b00 cmp r3, #0
  51838. 8015504: d10b bne.n 801551e <netconn_recv_data+0xaa>
  51839. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  51840. 8015506: 68fb ldr r3, [r7, #12]
  51841. 8015508: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51842. 801550c: f003 0301 and.w r3, r3, #1
  51843. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  51844. 8015510: 2b00 cmp r3, #0
  51845. 8015512: d104 bne.n 801551e <netconn_recv_data+0xaa>
  51846. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  51847. 8015514: 68fb ldr r3, [r7, #12]
  51848. 8015516: f993 3008 ldrsb.w r3, [r3, #8]
  51849. 801551a: 2b00 cmp r3, #0
  51850. 801551c: d025 beq.n 801556a <netconn_recv_data+0xf6>
  51851. if (sys_arch_mbox_tryfetch(&conn->recvmbox, &buf) == SYS_ARCH_TIMEOUT) {
  51852. 801551e: 68fb ldr r3, [r7, #12]
  51853. 8015520: 3310 adds r3, #16
  51854. 8015522: f107 0218 add.w r2, r7, #24
  51855. 8015526: 4611 mov r1, r2
  51856. 8015528: 4618 mov r0, r3
  51857. 801552a: f010 fea0 bl 802626e <sys_arch_mbox_tryfetch>
  51858. 801552e: 4603 mov r3, r0
  51859. 8015530: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51860. 8015534: d12a bne.n 801558c <netconn_recv_data+0x118>
  51861. err_t err;
  51862. NETCONN_MBOX_WAITING_DEC(conn);
  51863. err = netconn_err(conn);
  51864. 8015536: 68f8 ldr r0, [r7, #12]
  51865. 8015538: f000 faec bl 8015b14 <netconn_err>
  51866. 801553c: 4603 mov r3, r0
  51867. 801553e: f887 3025 strb.w r3, [r7, #37] @ 0x25
  51868. if (err != ERR_OK) {
  51869. 8015542: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  51870. 8015546: 2b00 cmp r3, #0
  51871. 8015548: d002 beq.n 8015550 <netconn_recv_data+0xdc>
  51872. /* return pending error */
  51873. return err;
  51874. 801554a: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  51875. 801554e: e063 b.n 8015618 <netconn_recv_data+0x1a4>
  51876. }
  51877. if (conn->flags & NETCONN_FLAG_MBOXCLOSED) {
  51878. 8015550: 68fb ldr r3, [r7, #12]
  51879. 8015552: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51880. 8015556: f003 0301 and.w r3, r3, #1
  51881. 801555a: 2b00 cmp r3, #0
  51882. 801555c: d002 beq.n 8015564 <netconn_recv_data+0xf0>
  51883. return ERR_CONN;
  51884. 801555e: f06f 030a mvn.w r3, #10
  51885. 8015562: e059 b.n 8015618 <netconn_recv_data+0x1a4>
  51886. }
  51887. return ERR_WOULDBLOCK;
  51888. 8015564: f06f 0306 mvn.w r3, #6
  51889. 8015568: e056 b.n 8015618 <netconn_recv_data+0x1a4>
  51890. }
  51891. } else {
  51892. #if LWIP_SO_RCVTIMEO
  51893. if (sys_arch_mbox_fetch(&conn->recvmbox, &buf, conn->recv_timeout) == SYS_ARCH_TIMEOUT) {
  51894. 801556a: 68fb ldr r3, [r7, #12]
  51895. 801556c: f103 0010 add.w r0, r3, #16
  51896. 8015570: 68fb ldr r3, [r7, #12]
  51897. 8015572: 69da ldr r2, [r3, #28]
  51898. 8015574: f107 0318 add.w r3, r7, #24
  51899. 8015578: 4619 mov r1, r3
  51900. 801557a: f010 fe47 bl 802620c <sys_arch_mbox_fetch>
  51901. 801557e: 4603 mov r3, r0
  51902. 8015580: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51903. 8015584: d102 bne.n 801558c <netconn_recv_data+0x118>
  51904. NETCONN_MBOX_WAITING_DEC(conn);
  51905. return ERR_TIMEOUT;
  51906. 8015586: f06f 0302 mvn.w r3, #2
  51907. 801558a: e045 b.n 8015618 <netconn_recv_data+0x1a4>
  51908. }
  51909. #endif
  51910. #if LWIP_TCP
  51911. #if (LWIP_UDP || LWIP_RAW)
  51912. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP)
  51913. 801558c: 68fb ldr r3, [r7, #12]
  51914. 801558e: 781b ldrb r3, [r3, #0]
  51915. 8015590: f003 03f0 and.w r3, r3, #240 @ 0xf0
  51916. 8015594: 2b10 cmp r3, #16
  51917. 8015596: d117 bne.n 80155c8 <netconn_recv_data+0x154>
  51918. #endif /* (LWIP_UDP || LWIP_RAW) */
  51919. {
  51920. err_t err;
  51921. /* Check if this is an error message or a pbuf */
  51922. if (lwip_netconn_is_err_msg(buf, &err)) {
  51923. 8015598: 69bb ldr r3, [r7, #24]
  51924. 801559a: f107 0217 add.w r2, r7, #23
  51925. 801559e: 4611 mov r1, r2
  51926. 80155a0: 4618 mov r0, r3
  51927. 80155a2: f000 fb09 bl 8015bb8 <lwip_netconn_is_err_msg>
  51928. 80155a6: 4603 mov r3, r0
  51929. 80155a8: 2b00 cmp r3, #0
  51930. 80155aa: d009 beq.n 80155c0 <netconn_recv_data+0x14c>
  51931. /* new_buf has been zeroed above already */
  51932. if (err == ERR_CLSD) {
  51933. 80155ac: f997 3017 ldrsb.w r3, [r7, #23]
  51934. 80155b0: f113 0f0f cmn.w r3, #15
  51935. 80155b4: d101 bne.n 80155ba <netconn_recv_data+0x146>
  51936. /* connection closed translates to ERR_OK with *new_buf == NULL */
  51937. return ERR_OK;
  51938. 80155b6: 2300 movs r3, #0
  51939. 80155b8: e02e b.n 8015618 <netconn_recv_data+0x1a4>
  51940. }
  51941. return err;
  51942. 80155ba: f997 3017 ldrsb.w r3, [r7, #23]
  51943. 80155be: e02b b.n 8015618 <netconn_recv_data+0x1a4>
  51944. }
  51945. len = ((struct pbuf *)buf)->tot_len;
  51946. 80155c0: 69bb ldr r3, [r7, #24]
  51947. 80155c2: 891b ldrh r3, [r3, #8]
  51948. 80155c4: 84fb strh r3, [r7, #38] @ 0x26
  51949. 80155c6: e00d b.n 80155e4 <netconn_recv_data+0x170>
  51950. #if LWIP_TCP && (LWIP_UDP || LWIP_RAW)
  51951. else
  51952. #endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */
  51953. #if (LWIP_UDP || LWIP_RAW)
  51954. {
  51955. LWIP_ASSERT("buf != NULL", buf != NULL);
  51956. 80155c8: 69bb ldr r3, [r7, #24]
  51957. 80155ca: 2b00 cmp r3, #0
  51958. 80155cc: d106 bne.n 80155dc <netconn_recv_data+0x168>
  51959. 80155ce: 4b14 ldr r3, [pc, #80] @ (8015620 <netconn_recv_data+0x1ac>)
  51960. 80155d0: f240 2291 movw r2, #657 @ 0x291
  51961. 80155d4: 4916 ldr r1, [pc, #88] @ (8015630 <netconn_recv_data+0x1bc>)
  51962. 80155d6: 4814 ldr r0, [pc, #80] @ (8015628 <netconn_recv_data+0x1b4>)
  51963. 80155d8: f014 fa00 bl 80299dc <iprintf>
  51964. len = netbuf_len((struct netbuf *)buf);
  51965. 80155dc: 69bb ldr r3, [r7, #24]
  51966. 80155de: 681b ldr r3, [r3, #0]
  51967. 80155e0: 891b ldrh r3, [r3, #8]
  51968. 80155e2: 84fb strh r3, [r7, #38] @ 0x26
  51969. }
  51970. #endif /* (LWIP_UDP || LWIP_RAW) */
  51971. #if LWIP_SO_RCVBUF
  51972. SYS_ARCH_DEC(conn->recv_avail, len);
  51973. 80155e4: f010 ff64 bl 80264b0 <sys_arch_protect>
  51974. 80155e8: 6238 str r0, [r7, #32]
  51975. 80155ea: 68fb ldr r3, [r7, #12]
  51976. 80155ec: 6a5a ldr r2, [r3, #36] @ 0x24
  51977. 80155ee: 8cfb ldrh r3, [r7, #38] @ 0x26
  51978. 80155f0: 1ad2 subs r2, r2, r3
  51979. 80155f2: 68fb ldr r3, [r7, #12]
  51980. 80155f4: 625a str r2, [r3, #36] @ 0x24
  51981. 80155f6: 6a38 ldr r0, [r7, #32]
  51982. 80155f8: f010 ff68 bl 80264cc <sys_arch_unprotect>
  51983. #endif /* LWIP_SO_RCVBUF */
  51984. /* Register event with callback */
  51985. API_EVENT(conn, NETCONN_EVT_RCVMINUS, len);
  51986. 80155fc: 68fb ldr r3, [r7, #12]
  51987. 80155fe: 6b1b ldr r3, [r3, #48] @ 0x30
  51988. 8015600: 2b00 cmp r3, #0
  51989. 8015602: d005 beq.n 8015610 <netconn_recv_data+0x19c>
  51990. 8015604: 68fb ldr r3, [r7, #12]
  51991. 8015606: 6b1b ldr r3, [r3, #48] @ 0x30
  51992. 8015608: 8cfa ldrh r2, [r7, #38] @ 0x26
  51993. 801560a: 2101 movs r1, #1
  51994. 801560c: 68f8 ldr r0, [r7, #12]
  51995. 801560e: 4798 blx r3
  51996. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len));
  51997. *new_buf = buf;
  51998. 8015610: 69ba ldr r2, [r7, #24]
  51999. 8015612: 68bb ldr r3, [r7, #8]
  52000. 8015614: 601a str r2, [r3, #0]
  52001. /* don't set conn->last_err: it's only ERR_OK, anyway */
  52002. return ERR_OK;
  52003. 8015616: 2300 movs r3, #0
  52004. }
  52005. 8015618: 4618 mov r0, r3
  52006. 801561a: 3728 adds r7, #40 @ 0x28
  52007. 801561c: 46bd mov sp, r7
  52008. 801561e: bd80 pop {r7, pc}
  52009. 8015620: 0802cbcc .word 0x0802cbcc
  52010. 8015624: 0802cde4 .word 0x0802cde4
  52011. 8015628: 0802cc24 .word 0x0802cc24
  52012. 801562c: 0802ce04 .word 0x0802ce04
  52013. 8015630: 0802ce20 .word 0x0802ce20
  52014. 08015634 <netconn_tcp_recvd_msg>:
  52015. #if LWIP_TCP
  52016. static err_t
  52017. netconn_tcp_recvd_msg(struct netconn *conn, size_t len, struct api_msg *msg)
  52018. {
  52019. 8015634: b580 push {r7, lr}
  52020. 8015636: b084 sub sp, #16
  52021. 8015638: af00 add r7, sp, #0
  52022. 801563a: 60f8 str r0, [r7, #12]
  52023. 801563c: 60b9 str r1, [r7, #8]
  52024. 801563e: 607a str r2, [r7, #4]
  52025. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  52026. 8015640: 68fb ldr r3, [r7, #12]
  52027. 8015642: 2b00 cmp r3, #0
  52028. 8015644: d005 beq.n 8015652 <netconn_tcp_recvd_msg+0x1e>
  52029. 8015646: 68fb ldr r3, [r7, #12]
  52030. 8015648: 781b ldrb r3, [r3, #0]
  52031. 801564a: f003 03f0 and.w r3, r3, #240 @ 0xf0
  52032. 801564e: 2b10 cmp r3, #16
  52033. 8015650: d009 beq.n 8015666 <netconn_tcp_recvd_msg+0x32>
  52034. 8015652: 4b0c ldr r3, [pc, #48] @ (8015684 <netconn_tcp_recvd_msg+0x50>)
  52035. 8015654: f240 22a7 movw r2, #679 @ 0x2a7
  52036. 8015658: 490b ldr r1, [pc, #44] @ (8015688 <netconn_tcp_recvd_msg+0x54>)
  52037. 801565a: 480c ldr r0, [pc, #48] @ (801568c <netconn_tcp_recvd_msg+0x58>)
  52038. 801565c: f014 f9be bl 80299dc <iprintf>
  52039. 8015660: f06f 030f mvn.w r3, #15
  52040. 8015664: e00a b.n 801567c <netconn_tcp_recvd_msg+0x48>
  52041. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  52042. msg->conn = conn;
  52043. 8015666: 687b ldr r3, [r7, #4]
  52044. 8015668: 68fa ldr r2, [r7, #12]
  52045. 801566a: 601a str r2, [r3, #0]
  52046. msg->msg.r.len = len;
  52047. 801566c: 687b ldr r3, [r7, #4]
  52048. 801566e: 68ba ldr r2, [r7, #8]
  52049. 8015670: 609a str r2, [r3, #8]
  52050. return netconn_apimsg(lwip_netconn_do_recv, msg);
  52051. 8015672: 6879 ldr r1, [r7, #4]
  52052. 8015674: 4806 ldr r0, [pc, #24] @ (8015690 <netconn_tcp_recvd_msg+0x5c>)
  52053. 8015676: f7ff fd6f bl 8015158 <netconn_apimsg>
  52054. 801567a: 4603 mov r3, r0
  52055. }
  52056. 801567c: 4618 mov r0, r3
  52057. 801567e: 3710 adds r7, #16
  52058. 8015680: 46bd mov sp, r7
  52059. 8015682: bd80 pop {r7, pc}
  52060. 8015684: 0802cbcc .word 0x0802cbcc
  52061. 8015688: 0802ce2c .word 0x0802ce2c
  52062. 801568c: 0802cc24 .word 0x0802cc24
  52063. 8015690: 08016da7 .word 0x08016da7
  52064. 08015694 <netconn_tcp_recvd>:
  52065. err_t
  52066. netconn_tcp_recvd(struct netconn *conn, size_t len)
  52067. {
  52068. 8015694: b580 push {r7, lr}
  52069. 8015696: b08c sub sp, #48 @ 0x30
  52070. 8015698: af00 add r7, sp, #0
  52071. 801569a: 6078 str r0, [r7, #4]
  52072. 801569c: 6039 str r1, [r7, #0]
  52073. err_t err;
  52074. API_MSG_VAR_DECLARE(msg);
  52075. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  52076. 801569e: 687b ldr r3, [r7, #4]
  52077. 80156a0: 2b00 cmp r3, #0
  52078. 80156a2: d005 beq.n 80156b0 <netconn_tcp_recvd+0x1c>
  52079. 80156a4: 687b ldr r3, [r7, #4]
  52080. 80156a6: 781b ldrb r3, [r3, #0]
  52081. 80156a8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  52082. 80156ac: 2b10 cmp r3, #16
  52083. 80156ae: d009 beq.n 80156c4 <netconn_tcp_recvd+0x30>
  52084. 80156b0: 4b0c ldr r3, [pc, #48] @ (80156e4 <netconn_tcp_recvd+0x50>)
  52085. 80156b2: f240 22b5 movw r2, #693 @ 0x2b5
  52086. 80156b6: 490c ldr r1, [pc, #48] @ (80156e8 <netconn_tcp_recvd+0x54>)
  52087. 80156b8: 480c ldr r0, [pc, #48] @ (80156ec <netconn_tcp_recvd+0x58>)
  52088. 80156ba: f014 f98f bl 80299dc <iprintf>
  52089. 80156be: f06f 030f mvn.w r3, #15
  52090. 80156c2: e00b b.n 80156dc <netconn_tcp_recvd+0x48>
  52091. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  52092. API_MSG_VAR_ALLOC(msg);
  52093. err = netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  52094. 80156c4: f107 030c add.w r3, r7, #12
  52095. 80156c8: 461a mov r2, r3
  52096. 80156ca: 6839 ldr r1, [r7, #0]
  52097. 80156cc: 6878 ldr r0, [r7, #4]
  52098. 80156ce: f7ff ffb1 bl 8015634 <netconn_tcp_recvd_msg>
  52099. 80156d2: 4603 mov r3, r0
  52100. 80156d4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  52101. API_MSG_VAR_FREE(msg);
  52102. return err;
  52103. 80156d8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  52104. }
  52105. 80156dc: 4618 mov r0, r3
  52106. 80156de: 3730 adds r7, #48 @ 0x30
  52107. 80156e0: 46bd mov sp, r7
  52108. 80156e2: bd80 pop {r7, pc}
  52109. 80156e4: 0802cbcc .word 0x0802cbcc
  52110. 80156e8: 0802ce2c .word 0x0802ce2c
  52111. 80156ec: 0802cc24 .word 0x0802cc24
  52112. 080156f0 <netconn_recv_data_tcp>:
  52113. static err_t
  52114. netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  52115. {
  52116. 80156f0: b580 push {r7, lr}
  52117. 80156f2: b090 sub sp, #64 @ 0x40
  52118. 80156f4: af00 add r7, sp, #0
  52119. 80156f6: 60f8 str r0, [r7, #12]
  52120. 80156f8: 60b9 str r1, [r7, #8]
  52121. 80156fa: 4613 mov r3, r2
  52122. 80156fc: 71fb strb r3, [r7, #7]
  52123. API_MSG_VAR_DECLARE(msg);
  52124. #if LWIP_MPU_COMPATIBLE
  52125. msg = NULL;
  52126. #endif
  52127. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  52128. 80156fe: 68fb ldr r3, [r7, #12]
  52129. 8015700: 3310 adds r3, #16
  52130. 8015702: 4618 mov r0, r3
  52131. 8015704: f010 fdca bl 802629c <sys_mbox_valid>
  52132. 8015708: 4603 mov r3, r0
  52133. 801570a: 2b00 cmp r3, #0
  52134. 801570c: d102 bne.n 8015714 <netconn_recv_data_tcp+0x24>
  52135. /* This only happens when calling this function more than once *after* receiving FIN */
  52136. return ERR_CONN;
  52137. 801570e: f06f 030a mvn.w r3, #10
  52138. 8015712: e072 b.n 80157fa <netconn_recv_data_tcp+0x10a>
  52139. }
  52140. if (netconn_is_flag_set(conn, NETCONN_FIN_RX_PENDING)) {
  52141. 8015714: 68fb ldr r3, [r7, #12]
  52142. 8015716: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52143. 801571a: b25b sxtb r3, r3
  52144. 801571c: 2b00 cmp r3, #0
  52145. 801571e: da09 bge.n 8015734 <netconn_recv_data_tcp+0x44>
  52146. netconn_clear_flags(conn, NETCONN_FIN_RX_PENDING);
  52147. 8015720: 68fb ldr r3, [r7, #12]
  52148. 8015722: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52149. 8015726: f003 037f and.w r3, r3, #127 @ 0x7f
  52150. 801572a: b2da uxtb r2, r3
  52151. 801572c: 68fb ldr r3, [r7, #12]
  52152. 801572e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  52153. goto handle_fin;
  52154. 8015732: e03b b.n 80157ac <netconn_recv_data_tcp+0xbc>
  52155. /* need to allocate API message here so empty message pool does not result in event loss
  52156. * see bug #47512: MPU_COMPATIBLE may fail on empty pool */
  52157. API_MSG_VAR_ALLOC(msg);
  52158. }
  52159. err = netconn_recv_data(conn, (void **)new_buf, apiflags);
  52160. 8015734: 79fb ldrb r3, [r7, #7]
  52161. 8015736: 461a mov r2, r3
  52162. 8015738: 68b9 ldr r1, [r7, #8]
  52163. 801573a: 68f8 ldr r0, [r7, #12]
  52164. 801573c: f7ff fe9a bl 8015474 <netconn_recv_data>
  52165. 8015740: 4603 mov r3, r0
  52166. 8015742: f887 303f strb.w r3, [r7, #63] @ 0x3f
  52167. if (err != ERR_OK) {
  52168. 8015746: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  52169. 801574a: 2b00 cmp r3, #0
  52170. 801574c: d002 beq.n 8015754 <netconn_recv_data_tcp+0x64>
  52171. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  52172. API_MSG_VAR_FREE(msg);
  52173. }
  52174. return err;
  52175. 801574e: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  52176. 8015752: e052 b.n 80157fa <netconn_recv_data_tcp+0x10a>
  52177. }
  52178. buf = *new_buf;
  52179. 8015754: 68bb ldr r3, [r7, #8]
  52180. 8015756: 681b ldr r3, [r3, #0]
  52181. 8015758: 63bb str r3, [r7, #56] @ 0x38
  52182. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  52183. 801575a: 79fb ldrb r3, [r7, #7]
  52184. 801575c: f003 0308 and.w r3, r3, #8
  52185. 8015760: 2b00 cmp r3, #0
  52186. 8015762: d10e bne.n 8015782 <netconn_recv_data_tcp+0x92>
  52187. /* Let the stack know that we have taken the data. */
  52188. u16_t len = buf ? buf->tot_len : 1;
  52189. 8015764: 6bbb ldr r3, [r7, #56] @ 0x38
  52190. 8015766: 2b00 cmp r3, #0
  52191. 8015768: d002 beq.n 8015770 <netconn_recv_data_tcp+0x80>
  52192. 801576a: 6bbb ldr r3, [r7, #56] @ 0x38
  52193. 801576c: 891b ldrh r3, [r3, #8]
  52194. 801576e: e000 b.n 8015772 <netconn_recv_data_tcp+0x82>
  52195. 8015770: 2301 movs r3, #1
  52196. 8015772: 86fb strh r3, [r7, #54] @ 0x36
  52197. /* don't care for the return value of lwip_netconn_do_recv */
  52198. /* @todo: this should really be fixed, e.g. by retrying in poll on error */
  52199. netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  52200. 8015774: 8efb ldrh r3, [r7, #54] @ 0x36
  52201. 8015776: f107 0214 add.w r2, r7, #20
  52202. 801577a: 4619 mov r1, r3
  52203. 801577c: 68f8 ldr r0, [r7, #12]
  52204. 801577e: f7ff ff59 bl 8015634 <netconn_tcp_recvd_msg>
  52205. API_MSG_VAR_FREE(msg);
  52206. }
  52207. /* If we are closed, we indicate that we no longer wish to use the socket */
  52208. if (buf == NULL) {
  52209. 8015782: 6bbb ldr r3, [r7, #56] @ 0x38
  52210. 8015784: 2b00 cmp r3, #0
  52211. 8015786: d136 bne.n 80157f6 <netconn_recv_data_tcp+0x106>
  52212. if (apiflags & NETCONN_NOFIN) {
  52213. 8015788: 79fb ldrb r3, [r7, #7]
  52214. 801578a: f003 0310 and.w r3, r3, #16
  52215. 801578e: 2b00 cmp r3, #0
  52216. 8015790: d00b beq.n 80157aa <netconn_recv_data_tcp+0xba>
  52217. /* received a FIN but the caller cannot handle it right now:
  52218. re-enqueue it and return "no data" */
  52219. netconn_set_flags(conn, NETCONN_FIN_RX_PENDING);
  52220. 8015792: 68fb ldr r3, [r7, #12]
  52221. 8015794: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52222. 8015798: f063 037f orn r3, r3, #127 @ 0x7f
  52223. 801579c: b2da uxtb r2, r3
  52224. 801579e: 68fb ldr r3, [r7, #12]
  52225. 80157a0: f883 2028 strb.w r2, [r3, #40] @ 0x28
  52226. return ERR_WOULDBLOCK;
  52227. 80157a4: f06f 0306 mvn.w r3, #6
  52228. 80157a8: e027 b.n 80157fa <netconn_recv_data_tcp+0x10a>
  52229. } else {
  52230. handle_fin:
  52231. 80157aa: bf00 nop
  52232. API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0);
  52233. 80157ac: 68fb ldr r3, [r7, #12]
  52234. 80157ae: 6b1b ldr r3, [r3, #48] @ 0x30
  52235. 80157b0: 2b00 cmp r3, #0
  52236. 80157b2: d005 beq.n 80157c0 <netconn_recv_data_tcp+0xd0>
  52237. 80157b4: 68fb ldr r3, [r7, #12]
  52238. 80157b6: 6b1b ldr r3, [r3, #48] @ 0x30
  52239. 80157b8: 2200 movs r2, #0
  52240. 80157ba: 2101 movs r1, #1
  52241. 80157bc: 68f8 ldr r0, [r7, #12]
  52242. 80157be: 4798 blx r3
  52243. if (conn->pcb.ip == NULL) {
  52244. 80157c0: 68fb ldr r3, [r7, #12]
  52245. 80157c2: 685b ldr r3, [r3, #4]
  52246. 80157c4: 2b00 cmp r3, #0
  52247. 80157c6: d10f bne.n 80157e8 <netconn_recv_data_tcp+0xf8>
  52248. /* race condition: RST during recv */
  52249. err = netconn_err(conn);
  52250. 80157c8: 68f8 ldr r0, [r7, #12]
  52251. 80157ca: f000 f9a3 bl 8015b14 <netconn_err>
  52252. 80157ce: 4603 mov r3, r0
  52253. 80157d0: f887 303f strb.w r3, [r7, #63] @ 0x3f
  52254. if (err != ERR_OK) {
  52255. 80157d4: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  52256. 80157d8: 2b00 cmp r3, #0
  52257. 80157da: d002 beq.n 80157e2 <netconn_recv_data_tcp+0xf2>
  52258. return err;
  52259. 80157dc: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  52260. 80157e0: e00b b.n 80157fa <netconn_recv_data_tcp+0x10a>
  52261. }
  52262. return ERR_RST;
  52263. 80157e2: f06f 030d mvn.w r3, #13
  52264. 80157e6: e008 b.n 80157fa <netconn_recv_data_tcp+0x10a>
  52265. }
  52266. /* RX side is closed, so deallocate the recvmbox */
  52267. netconn_close_shutdown(conn, NETCONN_SHUT_RD);
  52268. 80157e8: 2101 movs r1, #1
  52269. 80157ea: 68f8 ldr r0, [r7, #12]
  52270. 80157ec: f000 f962 bl 8015ab4 <netconn_close_shutdown>
  52271. /* Don' store ERR_CLSD as conn->err since we are only half-closed */
  52272. return ERR_CLSD;
  52273. 80157f0: f06f 030e mvn.w r3, #14
  52274. 80157f4: e001 b.n 80157fa <netconn_recv_data_tcp+0x10a>
  52275. }
  52276. }
  52277. return err;
  52278. 80157f6: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  52279. }
  52280. 80157fa: 4618 mov r0, r3
  52281. 80157fc: 3740 adds r7, #64 @ 0x40
  52282. 80157fe: 46bd mov sp, r7
  52283. 8015800: bd80 pop {r7, pc}
  52284. ...
  52285. 08015804 <netconn_recv_tcp_pbuf_flags>:
  52286. * memory error or another error, @see netconn_recv_data)
  52287. * ERR_ARG if conn is not a TCP netconn
  52288. */
  52289. err_t
  52290. netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  52291. {
  52292. 8015804: b580 push {r7, lr}
  52293. 8015806: b084 sub sp, #16
  52294. 8015808: af00 add r7, sp, #0
  52295. 801580a: 60f8 str r0, [r7, #12]
  52296. 801580c: 60b9 str r1, [r7, #8]
  52297. 801580e: 4613 mov r3, r2
  52298. 8015810: 71fb strb r3, [r7, #7]
  52299. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  52300. 8015812: 68fb ldr r3, [r7, #12]
  52301. 8015814: 2b00 cmp r3, #0
  52302. 8015816: d005 beq.n 8015824 <netconn_recv_tcp_pbuf_flags+0x20>
  52303. 8015818: 68fb ldr r3, [r7, #12]
  52304. 801581a: 781b ldrb r3, [r3, #0]
  52305. 801581c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  52306. 8015820: 2b10 cmp r3, #16
  52307. 8015822: d009 beq.n 8015838 <netconn_recv_tcp_pbuf_flags+0x34>
  52308. 8015824: 4b0a ldr r3, [pc, #40] @ (8015850 <netconn_recv_tcp_pbuf_flags+0x4c>)
  52309. 8015826: f240 3225 movw r2, #805 @ 0x325
  52310. 801582a: 490a ldr r1, [pc, #40] @ (8015854 <netconn_recv_tcp_pbuf_flags+0x50>)
  52311. 801582c: 480a ldr r0, [pc, #40] @ (8015858 <netconn_recv_tcp_pbuf_flags+0x54>)
  52312. 801582e: f014 f8d5 bl 80299dc <iprintf>
  52313. 8015832: f06f 030f mvn.w r3, #15
  52314. 8015836: e006 b.n 8015846 <netconn_recv_tcp_pbuf_flags+0x42>
  52315. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  52316. return netconn_recv_data_tcp(conn, new_buf, apiflags);
  52317. 8015838: 79fb ldrb r3, [r7, #7]
  52318. 801583a: 461a mov r2, r3
  52319. 801583c: 68b9 ldr r1, [r7, #8]
  52320. 801583e: 68f8 ldr r0, [r7, #12]
  52321. 8015840: f7ff ff56 bl 80156f0 <netconn_recv_data_tcp>
  52322. 8015844: 4603 mov r3, r0
  52323. }
  52324. 8015846: 4618 mov r0, r3
  52325. 8015848: 3710 adds r7, #16
  52326. 801584a: 46bd mov sp, r7
  52327. 801584c: bd80 pop {r7, pc}
  52328. 801584e: bf00 nop
  52329. 8015850: 0802cbcc .word 0x0802cbcc
  52330. 8015854: 0802ce2c .word 0x0802ce2c
  52331. 8015858: 0802cc24 .word 0x0802cc24
  52332. 0801585c <netconn_recv_udp_raw_netbuf_flags>:
  52333. * memory error or another error)
  52334. * ERR_ARG if conn is not a UDP/RAW netconn
  52335. */
  52336. err_t
  52337. netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apiflags)
  52338. {
  52339. 801585c: b580 push {r7, lr}
  52340. 801585e: b084 sub sp, #16
  52341. 8015860: af00 add r7, sp, #0
  52342. 8015862: 60f8 str r0, [r7, #12]
  52343. 8015864: 60b9 str r1, [r7, #8]
  52344. 8015866: 4613 mov r3, r2
  52345. 8015868: 71fb strb r3, [r7, #7]
  52346. LWIP_ERROR("netconn_recv_udp_raw_netbuf: invalid conn", (conn != NULL) &&
  52347. 801586a: 68fb ldr r3, [r7, #12]
  52348. 801586c: 2b00 cmp r3, #0
  52349. 801586e: d005 beq.n 801587c <netconn_recv_udp_raw_netbuf_flags+0x20>
  52350. 8015870: 68fb ldr r3, [r7, #12]
  52351. 8015872: 781b ldrb r3, [r3, #0]
  52352. 8015874: f003 03f0 and.w r3, r3, #240 @ 0xf0
  52353. 8015878: 2b10 cmp r3, #16
  52354. 801587a: d109 bne.n 8015890 <netconn_recv_udp_raw_netbuf_flags+0x34>
  52355. 801587c: 4b0a ldr r3, [pc, #40] @ (80158a8 <netconn_recv_udp_raw_netbuf_flags+0x4c>)
  52356. 801587e: f44f 7253 mov.w r2, #844 @ 0x34c
  52357. 8015882: 490a ldr r1, [pc, #40] @ (80158ac <netconn_recv_udp_raw_netbuf_flags+0x50>)
  52358. 8015884: 480a ldr r0, [pc, #40] @ (80158b0 <netconn_recv_udp_raw_netbuf_flags+0x54>)
  52359. 8015886: f014 f8a9 bl 80299dc <iprintf>
  52360. 801588a: f06f 030f mvn.w r3, #15
  52361. 801588e: e006 b.n 801589e <netconn_recv_udp_raw_netbuf_flags+0x42>
  52362. NETCONNTYPE_GROUP(netconn_type(conn)) != NETCONN_TCP, return ERR_ARG;);
  52363. return netconn_recv_data(conn, (void **)new_buf, apiflags);
  52364. 8015890: 79fb ldrb r3, [r7, #7]
  52365. 8015892: 461a mov r2, r3
  52366. 8015894: 68b9 ldr r1, [r7, #8]
  52367. 8015896: 68f8 ldr r0, [r7, #12]
  52368. 8015898: f7ff fdec bl 8015474 <netconn_recv_data>
  52369. 801589c: 4603 mov r3, r0
  52370. }
  52371. 801589e: 4618 mov r0, r3
  52372. 80158a0: 3710 adds r7, #16
  52373. 80158a2: 46bd mov sp, r7
  52374. 80158a4: bd80 pop {r7, pc}
  52375. 80158a6: bf00 nop
  52376. 80158a8: 0802cbcc .word 0x0802cbcc
  52377. 80158ac: 0802ce50 .word 0x0802ce50
  52378. 80158b0: 0802cc24 .word 0x0802cc24
  52379. 080158b4 <netconn_send>:
  52380. * @param buf a netbuf containing the data to send
  52381. * @return ERR_OK if data was sent, any other err_t on error
  52382. */
  52383. err_t
  52384. netconn_send(struct netconn *conn, struct netbuf *buf)
  52385. {
  52386. 80158b4: b580 push {r7, lr}
  52387. 80158b6: b08c sub sp, #48 @ 0x30
  52388. 80158b8: af00 add r7, sp, #0
  52389. 80158ba: 6078 str r0, [r7, #4]
  52390. 80158bc: 6039 str r1, [r7, #0]
  52391. API_MSG_VAR_DECLARE(msg);
  52392. err_t err;
  52393. LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;);
  52394. 80158be: 687b ldr r3, [r7, #4]
  52395. 80158c0: 2b00 cmp r3, #0
  52396. 80158c2: d109 bne.n 80158d8 <netconn_send+0x24>
  52397. 80158c4: 4b0e ldr r3, [pc, #56] @ (8015900 <netconn_send+0x4c>)
  52398. 80158c6: f240 32b2 movw r2, #946 @ 0x3b2
  52399. 80158ca: 490e ldr r1, [pc, #56] @ (8015904 <netconn_send+0x50>)
  52400. 80158cc: 480e ldr r0, [pc, #56] @ (8015908 <netconn_send+0x54>)
  52401. 80158ce: f014 f885 bl 80299dc <iprintf>
  52402. 80158d2: f06f 030f mvn.w r3, #15
  52403. 80158d6: e00e b.n 80158f6 <netconn_send+0x42>
  52404. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len));
  52405. API_MSG_VAR_ALLOC(msg);
  52406. API_MSG_VAR_REF(msg).conn = conn;
  52407. 80158d8: 687b ldr r3, [r7, #4]
  52408. 80158da: 60fb str r3, [r7, #12]
  52409. API_MSG_VAR_REF(msg).msg.b = buf;
  52410. 80158dc: 683b ldr r3, [r7, #0]
  52411. 80158de: 617b str r3, [r7, #20]
  52412. err = netconn_apimsg(lwip_netconn_do_send, &API_MSG_VAR_REF(msg));
  52413. 80158e0: f107 030c add.w r3, r7, #12
  52414. 80158e4: 4619 mov r1, r3
  52415. 80158e6: 4809 ldr r0, [pc, #36] @ (801590c <netconn_send+0x58>)
  52416. 80158e8: f7ff fc36 bl 8015158 <netconn_apimsg>
  52417. 80158ec: 4603 mov r3, r0
  52418. 80158ee: f887 302f strb.w r3, [r7, #47] @ 0x2f
  52419. API_MSG_VAR_FREE(msg);
  52420. return err;
  52421. 80158f2: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  52422. }
  52423. 80158f6: 4618 mov r0, r3
  52424. 80158f8: 3730 adds r7, #48 @ 0x30
  52425. 80158fa: 46bd mov sp, r7
  52426. 80158fc: bd80 pop {r7, pc}
  52427. 80158fe: bf00 nop
  52428. 8015900: 0802cbcc .word 0x0802cbcc
  52429. 8015904: 0802ce88 .word 0x0802ce88
  52430. 8015908: 0802cc24 .word 0x0802cc24
  52431. 801590c: 08016d0d .word 0x08016d0d
  52432. 08015910 <netconn_write_partly>:
  52433. * @return ERR_OK if data was sent, any other err_t on error
  52434. */
  52435. err_t
  52436. netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
  52437. u8_t apiflags, size_t *bytes_written)
  52438. {
  52439. 8015910: b580 push {r7, lr}
  52440. 8015912: b088 sub sp, #32
  52441. 8015914: af02 add r7, sp, #8
  52442. 8015916: 60f8 str r0, [r7, #12]
  52443. 8015918: 60b9 str r1, [r7, #8]
  52444. 801591a: 607a str r2, [r7, #4]
  52445. 801591c: 70fb strb r3, [r7, #3]
  52446. struct netvector vector;
  52447. vector.ptr = dataptr;
  52448. 801591e: 68bb ldr r3, [r7, #8]
  52449. 8015920: 613b str r3, [r7, #16]
  52450. vector.len = size;
  52451. 8015922: 687b ldr r3, [r7, #4]
  52452. 8015924: 617b str r3, [r7, #20]
  52453. return netconn_write_vectors_partly(conn, &vector, 1, apiflags, bytes_written);
  52454. 8015926: 78fa ldrb r2, [r7, #3]
  52455. 8015928: f107 0110 add.w r1, r7, #16
  52456. 801592c: 6a3b ldr r3, [r7, #32]
  52457. 801592e: 9300 str r3, [sp, #0]
  52458. 8015930: 4613 mov r3, r2
  52459. 8015932: 2201 movs r2, #1
  52460. 8015934: 68f8 ldr r0, [r7, #12]
  52461. 8015936: f000 f805 bl 8015944 <netconn_write_vectors_partly>
  52462. 801593a: 4603 mov r3, r0
  52463. }
  52464. 801593c: 4618 mov r0, r3
  52465. 801593e: 3718 adds r7, #24
  52466. 8015940: 46bd mov sp, r7
  52467. 8015942: bd80 pop {r7, pc}
  52468. 08015944 <netconn_write_vectors_partly>:
  52469. * @return ERR_OK if data was sent, any other err_t on error
  52470. */
  52471. err_t
  52472. netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt,
  52473. u8_t apiflags, size_t *bytes_written)
  52474. {
  52475. 8015944: b580 push {r7, lr}
  52476. 8015946: b092 sub sp, #72 @ 0x48
  52477. 8015948: af00 add r7, sp, #0
  52478. 801594a: 60f8 str r0, [r7, #12]
  52479. 801594c: 60b9 str r1, [r7, #8]
  52480. 801594e: 4611 mov r1, r2
  52481. 8015950: 461a mov r2, r3
  52482. 8015952: 460b mov r3, r1
  52483. 8015954: 80fb strh r3, [r7, #6]
  52484. 8015956: 4613 mov r3, r2
  52485. 8015958: 717b strb r3, [r7, #5]
  52486. err_t err;
  52487. u8_t dontblock;
  52488. size_t size;
  52489. int i;
  52490. LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;);
  52491. 801595a: 68fb ldr r3, [r7, #12]
  52492. 801595c: 2b00 cmp r3, #0
  52493. 801595e: d109 bne.n 8015974 <netconn_write_vectors_partly+0x30>
  52494. 8015960: 4b4e ldr r3, [pc, #312] @ (8015a9c <netconn_write_vectors_partly+0x158>)
  52495. 8015962: f240 32ee movw r2, #1006 @ 0x3ee
  52496. 8015966: 494e ldr r1, [pc, #312] @ (8015aa0 <netconn_write_vectors_partly+0x15c>)
  52497. 8015968: 484e ldr r0, [pc, #312] @ (8015aa4 <netconn_write_vectors_partly+0x160>)
  52498. 801596a: f014 f837 bl 80299dc <iprintf>
  52499. 801596e: f06f 030f mvn.w r3, #15
  52500. 8015972: e08f b.n 8015a94 <netconn_write_vectors_partly+0x150>
  52501. LWIP_ERROR("netconn_write: invalid conn->type", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP), return ERR_VAL;);
  52502. 8015974: 68fb ldr r3, [r7, #12]
  52503. 8015976: 781b ldrb r3, [r3, #0]
  52504. 8015978: f003 03f0 and.w r3, r3, #240 @ 0xf0
  52505. 801597c: 2b10 cmp r3, #16
  52506. 801597e: d009 beq.n 8015994 <netconn_write_vectors_partly+0x50>
  52507. 8015980: 4b46 ldr r3, [pc, #280] @ (8015a9c <netconn_write_vectors_partly+0x158>)
  52508. 8015982: f240 32ef movw r2, #1007 @ 0x3ef
  52509. 8015986: 4948 ldr r1, [pc, #288] @ (8015aa8 <netconn_write_vectors_partly+0x164>)
  52510. 8015988: 4846 ldr r0, [pc, #280] @ (8015aa4 <netconn_write_vectors_partly+0x160>)
  52511. 801598a: f014 f827 bl 80299dc <iprintf>
  52512. 801598e: f06f 0305 mvn.w r3, #5
  52513. 8015992: e07f b.n 8015a94 <netconn_write_vectors_partly+0x150>
  52514. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  52515. 8015994: 68fb ldr r3, [r7, #12]
  52516. 8015996: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  52517. 801599a: f003 0302 and.w r3, r3, #2
  52518. 801599e: 2b00 cmp r3, #0
  52519. 80159a0: d104 bne.n 80159ac <netconn_write_vectors_partly+0x68>
  52520. 80159a2: 797b ldrb r3, [r7, #5]
  52521. 80159a4: f003 0304 and.w r3, r3, #4
  52522. 80159a8: 2b00 cmp r3, #0
  52523. 80159aa: d001 beq.n 80159b0 <netconn_write_vectors_partly+0x6c>
  52524. 80159ac: 2301 movs r3, #1
  52525. 80159ae: e000 b.n 80159b2 <netconn_write_vectors_partly+0x6e>
  52526. 80159b0: 2300 movs r3, #0
  52527. 80159b2: f887 303f strb.w r3, [r7, #63] @ 0x3f
  52528. #if LWIP_SO_SNDTIMEO
  52529. if (conn->send_timeout != 0) {
  52530. dontblock = 1;
  52531. }
  52532. #endif /* LWIP_SO_SNDTIMEO */
  52533. if (dontblock && !bytes_written) {
  52534. 80159b6: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  52535. 80159ba: 2b00 cmp r3, #0
  52536. 80159bc: d005 beq.n 80159ca <netconn_write_vectors_partly+0x86>
  52537. 80159be: 6d3b ldr r3, [r7, #80] @ 0x50
  52538. 80159c0: 2b00 cmp r3, #0
  52539. 80159c2: d102 bne.n 80159ca <netconn_write_vectors_partly+0x86>
  52540. /* This implies netconn_write() cannot be used for non-blocking send, since
  52541. it has no way to return the number of bytes written. */
  52542. return ERR_VAL;
  52543. 80159c4: f06f 0305 mvn.w r3, #5
  52544. 80159c8: e064 b.n 8015a94 <netconn_write_vectors_partly+0x150>
  52545. }
  52546. /* sum up the total size */
  52547. size = 0;
  52548. 80159ca: 2300 movs r3, #0
  52549. 80159cc: 647b str r3, [r7, #68] @ 0x44
  52550. for (i = 0; i < vectorcnt; i++) {
  52551. 80159ce: 2300 movs r3, #0
  52552. 80159d0: 643b str r3, [r7, #64] @ 0x40
  52553. 80159d2: e015 b.n 8015a00 <netconn_write_vectors_partly+0xbc>
  52554. size += vectors[i].len;
  52555. 80159d4: 6c3b ldr r3, [r7, #64] @ 0x40
  52556. 80159d6: 00db lsls r3, r3, #3
  52557. 80159d8: 68ba ldr r2, [r7, #8]
  52558. 80159da: 4413 add r3, r2
  52559. 80159dc: 685b ldr r3, [r3, #4]
  52560. 80159de: 6c7a ldr r2, [r7, #68] @ 0x44
  52561. 80159e0: 4413 add r3, r2
  52562. 80159e2: 647b str r3, [r7, #68] @ 0x44
  52563. if (size < vectors[i].len) {
  52564. 80159e4: 6c3b ldr r3, [r7, #64] @ 0x40
  52565. 80159e6: 00db lsls r3, r3, #3
  52566. 80159e8: 68ba ldr r2, [r7, #8]
  52567. 80159ea: 4413 add r3, r2
  52568. 80159ec: 685b ldr r3, [r3, #4]
  52569. 80159ee: 6c7a ldr r2, [r7, #68] @ 0x44
  52570. 80159f0: 429a cmp r2, r3
  52571. 80159f2: d202 bcs.n 80159fa <netconn_write_vectors_partly+0xb6>
  52572. /* overflow */
  52573. return ERR_VAL;
  52574. 80159f4: f06f 0305 mvn.w r3, #5
  52575. 80159f8: e04c b.n 8015a94 <netconn_write_vectors_partly+0x150>
  52576. for (i = 0; i < vectorcnt; i++) {
  52577. 80159fa: 6c3b ldr r3, [r7, #64] @ 0x40
  52578. 80159fc: 3301 adds r3, #1
  52579. 80159fe: 643b str r3, [r7, #64] @ 0x40
  52580. 8015a00: 88fb ldrh r3, [r7, #6]
  52581. 8015a02: 6c3a ldr r2, [r7, #64] @ 0x40
  52582. 8015a04: 429a cmp r2, r3
  52583. 8015a06: dbe5 blt.n 80159d4 <netconn_write_vectors_partly+0x90>
  52584. }
  52585. }
  52586. if (size == 0) {
  52587. 8015a08: 6c7b ldr r3, [r7, #68] @ 0x44
  52588. 8015a0a: 2b00 cmp r3, #0
  52589. 8015a0c: d101 bne.n 8015a12 <netconn_write_vectors_partly+0xce>
  52590. return ERR_OK;
  52591. 8015a0e: 2300 movs r3, #0
  52592. 8015a10: e040 b.n 8015a94 <netconn_write_vectors_partly+0x150>
  52593. } else if (size > SSIZE_MAX) {
  52594. 8015a12: 6c7b ldr r3, [r7, #68] @ 0x44
  52595. 8015a14: 2b00 cmp r3, #0
  52596. 8015a16: da0a bge.n 8015a2e <netconn_write_vectors_partly+0xea>
  52597. ssize_t limited;
  52598. /* this is required by the socket layer (cannot send full size_t range) */
  52599. if (!bytes_written) {
  52600. 8015a18: 6d3b ldr r3, [r7, #80] @ 0x50
  52601. 8015a1a: 2b00 cmp r3, #0
  52602. 8015a1c: d102 bne.n 8015a24 <netconn_write_vectors_partly+0xe0>
  52603. return ERR_VAL;
  52604. 8015a1e: f06f 0305 mvn.w r3, #5
  52605. 8015a22: e037 b.n 8015a94 <netconn_write_vectors_partly+0x150>
  52606. }
  52607. /* limit the amount of data to send */
  52608. limited = SSIZE_MAX;
  52609. 8015a24: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  52610. 8015a28: 63bb str r3, [r7, #56] @ 0x38
  52611. size = (size_t)limited;
  52612. 8015a2a: 6bbb ldr r3, [r7, #56] @ 0x38
  52613. 8015a2c: 647b str r3, [r7, #68] @ 0x44
  52614. }
  52615. API_MSG_VAR_ALLOC(msg);
  52616. /* non-blocking write sends as much */
  52617. API_MSG_VAR_REF(msg).conn = conn;
  52618. 8015a2e: 68fb ldr r3, [r7, #12]
  52619. 8015a30: 617b str r3, [r7, #20]
  52620. API_MSG_VAR_REF(msg).msg.w.vector = vectors;
  52621. 8015a32: 68bb ldr r3, [r7, #8]
  52622. 8015a34: 61fb str r3, [r7, #28]
  52623. API_MSG_VAR_REF(msg).msg.w.vector_cnt = vectorcnt;
  52624. 8015a36: 88fb ldrh r3, [r7, #6]
  52625. 8015a38: 843b strh r3, [r7, #32]
  52626. API_MSG_VAR_REF(msg).msg.w.vector_off = 0;
  52627. 8015a3a: 2300 movs r3, #0
  52628. 8015a3c: 627b str r3, [r7, #36] @ 0x24
  52629. API_MSG_VAR_REF(msg).msg.w.apiflags = apiflags;
  52630. 8015a3e: 797b ldrb r3, [r7, #5]
  52631. 8015a40: f887 3030 strb.w r3, [r7, #48] @ 0x30
  52632. API_MSG_VAR_REF(msg).msg.w.len = size;
  52633. 8015a44: 6c7b ldr r3, [r7, #68] @ 0x44
  52634. 8015a46: 62bb str r3, [r7, #40] @ 0x28
  52635. API_MSG_VAR_REF(msg).msg.w.offset = 0;
  52636. 8015a48: 2300 movs r3, #0
  52637. 8015a4a: 62fb str r3, [r7, #44] @ 0x2c
  52638. #endif /* LWIP_SO_SNDTIMEO */
  52639. /* For locking the core: this _can_ be delayed on low memory/low send buffer,
  52640. but if it is, this is done inside api_msg.c:do_write(), so we can use the
  52641. non-blocking version here. */
  52642. err = netconn_apimsg(lwip_netconn_do_write, &API_MSG_VAR_REF(msg));
  52643. 8015a4c: f107 0314 add.w r3, r7, #20
  52644. 8015a50: 4619 mov r1, r3
  52645. 8015a52: 4816 ldr r0, [pc, #88] @ (8015aac <netconn_write_vectors_partly+0x168>)
  52646. 8015a54: f7ff fb80 bl 8015158 <netconn_apimsg>
  52647. 8015a58: 4603 mov r3, r0
  52648. 8015a5a: f887 3037 strb.w r3, [r7, #55] @ 0x37
  52649. if (err == ERR_OK) {
  52650. 8015a5e: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  52651. 8015a62: 2b00 cmp r3, #0
  52652. 8015a64: d114 bne.n 8015a90 <netconn_write_vectors_partly+0x14c>
  52653. if (bytes_written != NULL) {
  52654. 8015a66: 6d3b ldr r3, [r7, #80] @ 0x50
  52655. 8015a68: 2b00 cmp r3, #0
  52656. 8015a6a: d002 beq.n 8015a72 <netconn_write_vectors_partly+0x12e>
  52657. *bytes_written = API_MSG_VAR_REF(msg).msg.w.offset;
  52658. 8015a6c: 6afa ldr r2, [r7, #44] @ 0x2c
  52659. 8015a6e: 6d3b ldr r3, [r7, #80] @ 0x50
  52660. 8015a70: 601a str r2, [r3, #0]
  52661. }
  52662. /* for blocking, check all requested bytes were written, NOTE: send_timeout is
  52663. treated as dontblock (see dontblock assignment above) */
  52664. if (!dontblock) {
  52665. 8015a72: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  52666. 8015a76: 2b00 cmp r3, #0
  52667. 8015a78: d10a bne.n 8015a90 <netconn_write_vectors_partly+0x14c>
  52668. LWIP_ASSERT("do_write failed to write all bytes", API_MSG_VAR_REF(msg).msg.w.offset == size);
  52669. 8015a7a: 6afb ldr r3, [r7, #44] @ 0x2c
  52670. 8015a7c: 6c7a ldr r2, [r7, #68] @ 0x44
  52671. 8015a7e: 429a cmp r2, r3
  52672. 8015a80: d006 beq.n 8015a90 <netconn_write_vectors_partly+0x14c>
  52673. 8015a82: 4b06 ldr r3, [pc, #24] @ (8015a9c <netconn_write_vectors_partly+0x158>)
  52674. 8015a84: f44f 6286 mov.w r2, #1072 @ 0x430
  52675. 8015a88: 4909 ldr r1, [pc, #36] @ (8015ab0 <netconn_write_vectors_partly+0x16c>)
  52676. 8015a8a: 4806 ldr r0, [pc, #24] @ (8015aa4 <netconn_write_vectors_partly+0x160>)
  52677. 8015a8c: f013 ffa6 bl 80299dc <iprintf>
  52678. }
  52679. }
  52680. API_MSG_VAR_FREE(msg);
  52681. return err;
  52682. 8015a90: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  52683. }
  52684. 8015a94: 4618 mov r0, r3
  52685. 8015a96: 3748 adds r7, #72 @ 0x48
  52686. 8015a98: 46bd mov sp, r7
  52687. 8015a9a: bd80 pop {r7, pc}
  52688. 8015a9c: 0802cbcc .word 0x0802cbcc
  52689. 8015aa0: 0802cea4 .word 0x0802cea4
  52690. 8015aa4: 0802cc24 .word 0x0802cc24
  52691. 8015aa8: 0802cec0 .word 0x0802cec0
  52692. 8015aac: 080171b1 .word 0x080171b1
  52693. 8015ab0: 0802cee4 .word 0x0802cee4
  52694. 08015ab4 <netconn_close_shutdown>:
  52695. * @param how fully close or only shutdown one side?
  52696. * @return ERR_OK if the netconn was closed, any other err_t on error
  52697. */
  52698. static err_t
  52699. netconn_close_shutdown(struct netconn *conn, u8_t how)
  52700. {
  52701. 8015ab4: b580 push {r7, lr}
  52702. 8015ab6: b08c sub sp, #48 @ 0x30
  52703. 8015ab8: af00 add r7, sp, #0
  52704. 8015aba: 6078 str r0, [r7, #4]
  52705. 8015abc: 460b mov r3, r1
  52706. 8015abe: 70fb strb r3, [r7, #3]
  52707. API_MSG_VAR_DECLARE(msg);
  52708. err_t err;
  52709. LWIP_UNUSED_ARG(how);
  52710. LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;);
  52711. 8015ac0: 687b ldr r3, [r7, #4]
  52712. 8015ac2: 2b00 cmp r3, #0
  52713. 8015ac4: d109 bne.n 8015ada <netconn_close_shutdown+0x26>
  52714. 8015ac6: 4b0f ldr r3, [pc, #60] @ (8015b04 <netconn_close_shutdown+0x50>)
  52715. 8015ac8: f240 4247 movw r2, #1095 @ 0x447
  52716. 8015acc: 490e ldr r1, [pc, #56] @ (8015b08 <netconn_close_shutdown+0x54>)
  52717. 8015ace: 480f ldr r0, [pc, #60] @ (8015b0c <netconn_close_shutdown+0x58>)
  52718. 8015ad0: f013 ff84 bl 80299dc <iprintf>
  52719. 8015ad4: f06f 030f mvn.w r3, #15
  52720. 8015ad8: e010 b.n 8015afc <netconn_close_shutdown+0x48>
  52721. API_MSG_VAR_ALLOC(msg);
  52722. API_MSG_VAR_REF(msg).conn = conn;
  52723. 8015ada: 687b ldr r3, [r7, #4]
  52724. 8015adc: 60fb str r3, [r7, #12]
  52725. #if LWIP_TCP
  52726. /* shutting down both ends is the same as closing */
  52727. API_MSG_VAR_REF(msg).msg.sd.shut = how;
  52728. 8015ade: 78fb ldrb r3, [r7, #3]
  52729. 8015ae0: 753b strb r3, [r7, #20]
  52730. #if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER
  52731. /* get the time we started, which is later compared to
  52732. sys_now() + conn->send_timeout */
  52733. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  52734. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  52735. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  52736. 8015ae2: 2329 movs r3, #41 @ 0x29
  52737. 8015ae4: 757b strb r3, [r7, #21]
  52738. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  52739. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  52740. #endif /* LWIP_TCP */
  52741. err = netconn_apimsg(lwip_netconn_do_close, &API_MSG_VAR_REF(msg));
  52742. 8015ae6: f107 030c add.w r3, r7, #12
  52743. 8015aea: 4619 mov r1, r3
  52744. 8015aec: 4808 ldr r0, [pc, #32] @ (8015b10 <netconn_close_shutdown+0x5c>)
  52745. 8015aee: f7ff fb33 bl 8015158 <netconn_apimsg>
  52746. 8015af2: 4603 mov r3, r0
  52747. 8015af4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  52748. API_MSG_VAR_FREE(msg);
  52749. return err;
  52750. 8015af8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  52751. }
  52752. 8015afc: 4618 mov r0, r3
  52753. 8015afe: 3730 adds r7, #48 @ 0x30
  52754. 8015b00: 46bd mov sp, r7
  52755. 8015b02: bd80 pop {r7, pc}
  52756. 8015b04: 0802cbcc .word 0x0802cbcc
  52757. 8015b08: 0802cf08 .word 0x0802cf08
  52758. 8015b0c: 0802cc24 .word 0x0802cc24
  52759. 8015b10: 080173cd .word 0x080173cd
  52760. 08015b14 <netconn_err>:
  52761. * @param conn the netconn to get the error from
  52762. * @return and pending error or ERR_OK if no error was pending
  52763. */
  52764. err_t
  52765. netconn_err(struct netconn *conn)
  52766. {
  52767. 8015b14: b580 push {r7, lr}
  52768. 8015b16: b084 sub sp, #16
  52769. 8015b18: af00 add r7, sp, #0
  52770. 8015b1a: 6078 str r0, [r7, #4]
  52771. err_t err;
  52772. SYS_ARCH_DECL_PROTECT(lev);
  52773. if (conn == NULL) {
  52774. 8015b1c: 687b ldr r3, [r7, #4]
  52775. 8015b1e: 2b00 cmp r3, #0
  52776. 8015b20: d101 bne.n 8015b26 <netconn_err+0x12>
  52777. return ERR_OK;
  52778. 8015b22: 2300 movs r3, #0
  52779. 8015b24: e00d b.n 8015b42 <netconn_err+0x2e>
  52780. }
  52781. SYS_ARCH_PROTECT(lev);
  52782. 8015b26: f010 fcc3 bl 80264b0 <sys_arch_protect>
  52783. 8015b2a: 60f8 str r0, [r7, #12]
  52784. err = conn->pending_err;
  52785. 8015b2c: 687b ldr r3, [r7, #4]
  52786. 8015b2e: 7a1b ldrb r3, [r3, #8]
  52787. 8015b30: 72fb strb r3, [r7, #11]
  52788. conn->pending_err = ERR_OK;
  52789. 8015b32: 687b ldr r3, [r7, #4]
  52790. 8015b34: 2200 movs r2, #0
  52791. 8015b36: 721a strb r2, [r3, #8]
  52792. SYS_ARCH_UNPROTECT(lev);
  52793. 8015b38: 68f8 ldr r0, [r7, #12]
  52794. 8015b3a: f010 fcc7 bl 80264cc <sys_arch_unprotect>
  52795. return err;
  52796. 8015b3e: f997 300b ldrsb.w r3, [r7, #11]
  52797. }
  52798. 8015b42: 4618 mov r0, r3
  52799. 8015b44: 3710 adds r7, #16
  52800. 8015b46: 46bd mov sp, r7
  52801. 8015b48: bd80 pop {r7, pc}
  52802. ...
  52803. 08015b4c <lwip_netconn_err_to_msg>:
  52804. const u8_t netconn_closed = 0;
  52805. /** Translate an error to a unique void* passed via an mbox */
  52806. static void *
  52807. lwip_netconn_err_to_msg(err_t err)
  52808. {
  52809. 8015b4c: b580 push {r7, lr}
  52810. 8015b4e: b082 sub sp, #8
  52811. 8015b50: af00 add r7, sp, #0
  52812. 8015b52: 4603 mov r3, r0
  52813. 8015b54: 71fb strb r3, [r7, #7]
  52814. switch (err) {
  52815. 8015b56: f997 3007 ldrsb.w r3, [r7, #7]
  52816. 8015b5a: f113 0f0d cmn.w r3, #13
  52817. 8015b5e: d009 beq.n 8015b74 <lwip_netconn_err_to_msg+0x28>
  52818. 8015b60: f113 0f0d cmn.w r3, #13
  52819. 8015b64: dc0c bgt.n 8015b80 <lwip_netconn_err_to_msg+0x34>
  52820. 8015b66: f113 0f0f cmn.w r3, #15
  52821. 8015b6a: d007 beq.n 8015b7c <lwip_netconn_err_to_msg+0x30>
  52822. 8015b6c: f113 0f0e cmn.w r3, #14
  52823. 8015b70: d002 beq.n 8015b78 <lwip_netconn_err_to_msg+0x2c>
  52824. 8015b72: e005 b.n 8015b80 <lwip_netconn_err_to_msg+0x34>
  52825. case ERR_ABRT:
  52826. return LWIP_CONST_CAST(void *, &netconn_aborted);
  52827. 8015b74: 4b0a ldr r3, [pc, #40] @ (8015ba0 <lwip_netconn_err_to_msg+0x54>)
  52828. 8015b76: e00e b.n 8015b96 <lwip_netconn_err_to_msg+0x4a>
  52829. case ERR_RST:
  52830. return LWIP_CONST_CAST(void *, &netconn_reset);
  52831. 8015b78: 4b0a ldr r3, [pc, #40] @ (8015ba4 <lwip_netconn_err_to_msg+0x58>)
  52832. 8015b7a: e00c b.n 8015b96 <lwip_netconn_err_to_msg+0x4a>
  52833. case ERR_CLSD:
  52834. return LWIP_CONST_CAST(void *, &netconn_closed);
  52835. 8015b7c: 4b0a ldr r3, [pc, #40] @ (8015ba8 <lwip_netconn_err_to_msg+0x5c>)
  52836. 8015b7e: e00a b.n 8015b96 <lwip_netconn_err_to_msg+0x4a>
  52837. default:
  52838. LWIP_ASSERT("unhandled error", err == ERR_OK);
  52839. 8015b80: f997 3007 ldrsb.w r3, [r7, #7]
  52840. 8015b84: 2b00 cmp r3, #0
  52841. 8015b86: d005 beq.n 8015b94 <lwip_netconn_err_to_msg+0x48>
  52842. 8015b88: 4b08 ldr r3, [pc, #32] @ (8015bac <lwip_netconn_err_to_msg+0x60>)
  52843. 8015b8a: 227d movs r2, #125 @ 0x7d
  52844. 8015b8c: 4908 ldr r1, [pc, #32] @ (8015bb0 <lwip_netconn_err_to_msg+0x64>)
  52845. 8015b8e: 4809 ldr r0, [pc, #36] @ (8015bb4 <lwip_netconn_err_to_msg+0x68>)
  52846. 8015b90: f013 ff24 bl 80299dc <iprintf>
  52847. return NULL;
  52848. 8015b94: 2300 movs r3, #0
  52849. }
  52850. }
  52851. 8015b96: 4618 mov r0, r3
  52852. 8015b98: 3708 adds r7, #8
  52853. 8015b9a: 46bd mov sp, r7
  52854. 8015b9c: bd80 pop {r7, pc}
  52855. 8015b9e: bf00 nop
  52856. 8015ba0: 08030acc .word 0x08030acc
  52857. 8015ba4: 08030acd .word 0x08030acd
  52858. 8015ba8: 08030ace .word 0x08030ace
  52859. 8015bac: 0802cf24 .word 0x0802cf24
  52860. 8015bb0: 0802cf58 .word 0x0802cf58
  52861. 8015bb4: 0802cf68 .word 0x0802cf68
  52862. 08015bb8 <lwip_netconn_is_err_msg>:
  52863. int
  52864. lwip_netconn_is_err_msg(void *msg, err_t *err)
  52865. {
  52866. 8015bb8: b580 push {r7, lr}
  52867. 8015bba: b082 sub sp, #8
  52868. 8015bbc: af00 add r7, sp, #0
  52869. 8015bbe: 6078 str r0, [r7, #4]
  52870. 8015bc0: 6039 str r1, [r7, #0]
  52871. LWIP_ASSERT("err != NULL", err != NULL);
  52872. 8015bc2: 683b ldr r3, [r7, #0]
  52873. 8015bc4: 2b00 cmp r3, #0
  52874. 8015bc6: d105 bne.n 8015bd4 <lwip_netconn_is_err_msg+0x1c>
  52875. 8015bc8: 4b12 ldr r3, [pc, #72] @ (8015c14 <lwip_netconn_is_err_msg+0x5c>)
  52876. 8015bca: 2285 movs r2, #133 @ 0x85
  52877. 8015bcc: 4912 ldr r1, [pc, #72] @ (8015c18 <lwip_netconn_is_err_msg+0x60>)
  52878. 8015bce: 4813 ldr r0, [pc, #76] @ (8015c1c <lwip_netconn_is_err_msg+0x64>)
  52879. 8015bd0: f013 ff04 bl 80299dc <iprintf>
  52880. if (msg == &netconn_aborted) {
  52881. 8015bd4: 687b ldr r3, [r7, #4]
  52882. 8015bd6: 4a12 ldr r2, [pc, #72] @ (8015c20 <lwip_netconn_is_err_msg+0x68>)
  52883. 8015bd8: 4293 cmp r3, r2
  52884. 8015bda: d104 bne.n 8015be6 <lwip_netconn_is_err_msg+0x2e>
  52885. *err = ERR_ABRT;
  52886. 8015bdc: 683b ldr r3, [r7, #0]
  52887. 8015bde: 22f3 movs r2, #243 @ 0xf3
  52888. 8015be0: 701a strb r2, [r3, #0]
  52889. return 1;
  52890. 8015be2: 2301 movs r3, #1
  52891. 8015be4: e012 b.n 8015c0c <lwip_netconn_is_err_msg+0x54>
  52892. } else if (msg == &netconn_reset) {
  52893. 8015be6: 687b ldr r3, [r7, #4]
  52894. 8015be8: 4a0e ldr r2, [pc, #56] @ (8015c24 <lwip_netconn_is_err_msg+0x6c>)
  52895. 8015bea: 4293 cmp r3, r2
  52896. 8015bec: d104 bne.n 8015bf8 <lwip_netconn_is_err_msg+0x40>
  52897. *err = ERR_RST;
  52898. 8015bee: 683b ldr r3, [r7, #0]
  52899. 8015bf0: 22f2 movs r2, #242 @ 0xf2
  52900. 8015bf2: 701a strb r2, [r3, #0]
  52901. return 1;
  52902. 8015bf4: 2301 movs r3, #1
  52903. 8015bf6: e009 b.n 8015c0c <lwip_netconn_is_err_msg+0x54>
  52904. } else if (msg == &netconn_closed) {
  52905. 8015bf8: 687b ldr r3, [r7, #4]
  52906. 8015bfa: 4a0b ldr r2, [pc, #44] @ (8015c28 <lwip_netconn_is_err_msg+0x70>)
  52907. 8015bfc: 4293 cmp r3, r2
  52908. 8015bfe: d104 bne.n 8015c0a <lwip_netconn_is_err_msg+0x52>
  52909. *err = ERR_CLSD;
  52910. 8015c00: 683b ldr r3, [r7, #0]
  52911. 8015c02: 22f1 movs r2, #241 @ 0xf1
  52912. 8015c04: 701a strb r2, [r3, #0]
  52913. return 1;
  52914. 8015c06: 2301 movs r3, #1
  52915. 8015c08: e000 b.n 8015c0c <lwip_netconn_is_err_msg+0x54>
  52916. }
  52917. return 0;
  52918. 8015c0a: 2300 movs r3, #0
  52919. }
  52920. 8015c0c: 4618 mov r0, r3
  52921. 8015c0e: 3708 adds r7, #8
  52922. 8015c10: 46bd mov sp, r7
  52923. 8015c12: bd80 pop {r7, pc}
  52924. 8015c14: 0802cf24 .word 0x0802cf24
  52925. 8015c18: 0802cf90 .word 0x0802cf90
  52926. 8015c1c: 0802cf68 .word 0x0802cf68
  52927. 8015c20: 08030acc .word 0x08030acc
  52928. 8015c24: 08030acd .word 0x08030acd
  52929. 8015c28: 08030ace .word 0x08030ace
  52930. 08015c2c <recv_udp>:
  52931. * @see udp.h (struct udp_pcb.recv) for parameters
  52932. */
  52933. static void
  52934. recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p,
  52935. const ip_addr_t *addr, u16_t port)
  52936. {
  52937. 8015c2c: b580 push {r7, lr}
  52938. 8015c2e: b08a sub sp, #40 @ 0x28
  52939. 8015c30: af00 add r7, sp, #0
  52940. 8015c32: 60f8 str r0, [r7, #12]
  52941. 8015c34: 60b9 str r1, [r7, #8]
  52942. 8015c36: 607a str r2, [r7, #4]
  52943. 8015c38: 603b str r3, [r7, #0]
  52944. #if LWIP_SO_RCVBUF
  52945. int recv_avail;
  52946. #endif /* LWIP_SO_RCVBUF */
  52947. LWIP_UNUSED_ARG(pcb); /* only used for asserts... */
  52948. LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL);
  52949. 8015c3a: 68bb ldr r3, [r7, #8]
  52950. 8015c3c: 2b00 cmp r3, #0
  52951. 8015c3e: d105 bne.n 8015c4c <recv_udp+0x20>
  52952. 8015c40: 4b43 ldr r3, [pc, #268] @ (8015d50 <recv_udp+0x124>)
  52953. 8015c42: 22e5 movs r2, #229 @ 0xe5
  52954. 8015c44: 4943 ldr r1, [pc, #268] @ (8015d54 <recv_udp+0x128>)
  52955. 8015c46: 4844 ldr r0, [pc, #272] @ (8015d58 <recv_udp+0x12c>)
  52956. 8015c48: f013 fec8 bl 80299dc <iprintf>
  52957. LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
  52958. 8015c4c: 68fb ldr r3, [r7, #12]
  52959. 8015c4e: 2b00 cmp r3, #0
  52960. 8015c50: d105 bne.n 8015c5e <recv_udp+0x32>
  52961. 8015c52: 4b3f ldr r3, [pc, #252] @ (8015d50 <recv_udp+0x124>)
  52962. 8015c54: 22e6 movs r2, #230 @ 0xe6
  52963. 8015c56: 4941 ldr r1, [pc, #260] @ (8015d5c <recv_udp+0x130>)
  52964. 8015c58: 483f ldr r0, [pc, #252] @ (8015d58 <recv_udp+0x12c>)
  52965. 8015c5a: f013 febf bl 80299dc <iprintf>
  52966. conn = (struct netconn *)arg;
  52967. 8015c5e: 68fb ldr r3, [r7, #12]
  52968. 8015c60: 627b str r3, [r7, #36] @ 0x24
  52969. if (conn == NULL) {
  52970. 8015c62: 6a7b ldr r3, [r7, #36] @ 0x24
  52971. 8015c64: 2b00 cmp r3, #0
  52972. 8015c66: d103 bne.n 8015c70 <recv_udp+0x44>
  52973. pbuf_free(p);
  52974. 8015c68: 6878 ldr r0, [r7, #4]
  52975. 8015c6a: f004 fc3f bl 801a4ec <pbuf_free>
  52976. return;
  52977. 8015c6e: e06b b.n 8015d48 <recv_udp+0x11c>
  52978. }
  52979. LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb);
  52980. 8015c70: 6a7b ldr r3, [r7, #36] @ 0x24
  52981. 8015c72: 685b ldr r3, [r3, #4]
  52982. 8015c74: 68ba ldr r2, [r7, #8]
  52983. 8015c76: 429a cmp r2, r3
  52984. 8015c78: d005 beq.n 8015c86 <recv_udp+0x5a>
  52985. 8015c7a: 4b35 ldr r3, [pc, #212] @ (8015d50 <recv_udp+0x124>)
  52986. 8015c7c: 22ee movs r2, #238 @ 0xee
  52987. 8015c7e: 4938 ldr r1, [pc, #224] @ (8015d60 <recv_udp+0x134>)
  52988. 8015c80: 4835 ldr r0, [pc, #212] @ (8015d58 <recv_udp+0x12c>)
  52989. 8015c82: f013 feab bl 80299dc <iprintf>
  52990. #if LWIP_SO_RCVBUF
  52991. SYS_ARCH_GET(conn->recv_avail, recv_avail);
  52992. 8015c86: f010 fc13 bl 80264b0 <sys_arch_protect>
  52993. 8015c8a: 6238 str r0, [r7, #32]
  52994. 8015c8c: 6a7b ldr r3, [r7, #36] @ 0x24
  52995. 8015c8e: 6a5b ldr r3, [r3, #36] @ 0x24
  52996. 8015c90: 61fb str r3, [r7, #28]
  52997. 8015c92: 6a38 ldr r0, [r7, #32]
  52998. 8015c94: f010 fc1a bl 80264cc <sys_arch_unprotect>
  52999. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  53000. 8015c98: 6a7b ldr r3, [r7, #36] @ 0x24
  53001. 8015c9a: 3310 adds r3, #16
  53002. 8015c9c: 4618 mov r0, r3
  53003. 8015c9e: f010 fafd bl 802629c <sys_mbox_valid>
  53004. 8015ca2: 4603 mov r3, r0
  53005. 8015ca4: 2b00 cmp r3, #0
  53006. 8015ca6: d008 beq.n 8015cba <recv_udp+0x8e>
  53007. ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) {
  53008. 8015ca8: 687b ldr r3, [r7, #4]
  53009. 8015caa: 891b ldrh r3, [r3, #8]
  53010. 8015cac: 461a mov r2, r3
  53011. 8015cae: 69fb ldr r3, [r7, #28]
  53012. 8015cb0: 441a add r2, r3
  53013. 8015cb2: 6a7b ldr r3, [r7, #36] @ 0x24
  53014. 8015cb4: 6a1b ldr r3, [r3, #32]
  53015. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  53016. 8015cb6: 429a cmp r2, r3
  53017. 8015cb8: dd03 ble.n 8015cc2 <recv_udp+0x96>
  53018. #else /* LWIP_SO_RCVBUF */
  53019. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  53020. #endif /* LWIP_SO_RCVBUF */
  53021. pbuf_free(p);
  53022. 8015cba: 6878 ldr r0, [r7, #4]
  53023. 8015cbc: f004 fc16 bl 801a4ec <pbuf_free>
  53024. return;
  53025. 8015cc0: e042 b.n 8015d48 <recv_udp+0x11c>
  53026. }
  53027. buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
  53028. 8015cc2: 2006 movs r0, #6
  53029. 8015cc4: f003 fcae bl 8019624 <memp_malloc>
  53030. 8015cc8: 61b8 str r0, [r7, #24]
  53031. if (buf == NULL) {
  53032. 8015cca: 69bb ldr r3, [r7, #24]
  53033. 8015ccc: 2b00 cmp r3, #0
  53034. 8015cce: d103 bne.n 8015cd8 <recv_udp+0xac>
  53035. pbuf_free(p);
  53036. 8015cd0: 6878 ldr r0, [r7, #4]
  53037. 8015cd2: f004 fc0b bl 801a4ec <pbuf_free>
  53038. return;
  53039. 8015cd6: e037 b.n 8015d48 <recv_udp+0x11c>
  53040. } else {
  53041. buf->p = p;
  53042. 8015cd8: 69bb ldr r3, [r7, #24]
  53043. 8015cda: 687a ldr r2, [r7, #4]
  53044. 8015cdc: 601a str r2, [r3, #0]
  53045. buf->ptr = p;
  53046. 8015cde: 69bb ldr r3, [r7, #24]
  53047. 8015ce0: 687a ldr r2, [r7, #4]
  53048. 8015ce2: 605a str r2, [r3, #4]
  53049. ip_addr_set(&buf->addr, addr);
  53050. 8015ce4: 683b ldr r3, [r7, #0]
  53051. 8015ce6: 2b00 cmp r3, #0
  53052. 8015ce8: d002 beq.n 8015cf0 <recv_udp+0xc4>
  53053. 8015cea: 683b ldr r3, [r7, #0]
  53054. 8015cec: 681b ldr r3, [r3, #0]
  53055. 8015cee: e000 b.n 8015cf2 <recv_udp+0xc6>
  53056. 8015cf0: 2300 movs r3, #0
  53057. 8015cf2: 69ba ldr r2, [r7, #24]
  53058. 8015cf4: 6093 str r3, [r2, #8]
  53059. buf->port = port;
  53060. 8015cf6: 69bb ldr r3, [r7, #24]
  53061. 8015cf8: 8e3a ldrh r2, [r7, #48] @ 0x30
  53062. 8015cfa: 819a strh r2, [r3, #12]
  53063. buf->toport_chksum = udphdr->dest;
  53064. }
  53065. #endif /* LWIP_NETBUF_RECVINFO */
  53066. }
  53067. len = p->tot_len;
  53068. 8015cfc: 687b ldr r3, [r7, #4]
  53069. 8015cfe: 891b ldrh r3, [r3, #8]
  53070. 8015d00: 82fb strh r3, [r7, #22]
  53071. if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) {
  53072. 8015d02: 6a7b ldr r3, [r7, #36] @ 0x24
  53073. 8015d04: 3310 adds r3, #16
  53074. 8015d06: 69b9 ldr r1, [r7, #24]
  53075. 8015d08: 4618 mov r0, r3
  53076. 8015d0a: f010 fa65 bl 80261d8 <sys_mbox_trypost>
  53077. 8015d0e: 4603 mov r3, r0
  53078. 8015d10: 2b00 cmp r3, #0
  53079. 8015d12: d003 beq.n 8015d1c <recv_udp+0xf0>
  53080. netbuf_delete(buf);
  53081. 8015d14: 69b8 ldr r0, [r7, #24]
  53082. 8015d16: f001 fbff bl 8017518 <netbuf_delete>
  53083. return;
  53084. 8015d1a: e015 b.n 8015d48 <recv_udp+0x11c>
  53085. } else {
  53086. #if LWIP_SO_RCVBUF
  53087. SYS_ARCH_INC(conn->recv_avail, len);
  53088. 8015d1c: f010 fbc8 bl 80264b0 <sys_arch_protect>
  53089. 8015d20: 6138 str r0, [r7, #16]
  53090. 8015d22: 6a7b ldr r3, [r7, #36] @ 0x24
  53091. 8015d24: 6a5a ldr r2, [r3, #36] @ 0x24
  53092. 8015d26: 8afb ldrh r3, [r7, #22]
  53093. 8015d28: 441a add r2, r3
  53094. 8015d2a: 6a7b ldr r3, [r7, #36] @ 0x24
  53095. 8015d2c: 625a str r2, [r3, #36] @ 0x24
  53096. 8015d2e: 6938 ldr r0, [r7, #16]
  53097. 8015d30: f010 fbcc bl 80264cc <sys_arch_unprotect>
  53098. #endif /* LWIP_SO_RCVBUF */
  53099. /* Register event with callback */
  53100. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  53101. 8015d34: 6a7b ldr r3, [r7, #36] @ 0x24
  53102. 8015d36: 6b1b ldr r3, [r3, #48] @ 0x30
  53103. 8015d38: 2b00 cmp r3, #0
  53104. 8015d3a: d005 beq.n 8015d48 <recv_udp+0x11c>
  53105. 8015d3c: 6a7b ldr r3, [r7, #36] @ 0x24
  53106. 8015d3e: 6b1b ldr r3, [r3, #48] @ 0x30
  53107. 8015d40: 8afa ldrh r2, [r7, #22]
  53108. 8015d42: 2100 movs r1, #0
  53109. 8015d44: 6a78 ldr r0, [r7, #36] @ 0x24
  53110. 8015d46: 4798 blx r3
  53111. }
  53112. }
  53113. 8015d48: 3728 adds r7, #40 @ 0x28
  53114. 8015d4a: 46bd mov sp, r7
  53115. 8015d4c: bd80 pop {r7, pc}
  53116. 8015d4e: bf00 nop
  53117. 8015d50: 0802cf24 .word 0x0802cf24
  53118. 8015d54: 0802cf9c .word 0x0802cf9c
  53119. 8015d58: 0802cf68 .word 0x0802cf68
  53120. 8015d5c: 0802cfc0 .word 0x0802cfc0
  53121. 8015d60: 0802cfe0 .word 0x0802cfe0
  53122. 08015d64 <recv_tcp>:
  53123. *
  53124. * @see tcp.h (struct tcp_pcb.recv) for parameters and return value
  53125. */
  53126. static err_t
  53127. recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  53128. {
  53129. 8015d64: b580 push {r7, lr}
  53130. 8015d66: b088 sub sp, #32
  53131. 8015d68: af00 add r7, sp, #0
  53132. 8015d6a: 60f8 str r0, [r7, #12]
  53133. 8015d6c: 60b9 str r1, [r7, #8]
  53134. 8015d6e: 607a str r2, [r7, #4]
  53135. 8015d70: 70fb strb r3, [r7, #3]
  53136. struct netconn *conn;
  53137. u16_t len;
  53138. void *msg;
  53139. LWIP_UNUSED_ARG(pcb);
  53140. LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL);
  53141. 8015d72: 68bb ldr r3, [r7, #8]
  53142. 8015d74: 2b00 cmp r3, #0
  53143. 8015d76: d106 bne.n 8015d86 <recv_tcp+0x22>
  53144. 8015d78: 4b3c ldr r3, [pc, #240] @ (8015e6c <recv_tcp+0x108>)
  53145. 8015d7a: f44f 7296 mov.w r2, #300 @ 0x12c
  53146. 8015d7e: 493c ldr r1, [pc, #240] @ (8015e70 <recv_tcp+0x10c>)
  53147. 8015d80: 483c ldr r0, [pc, #240] @ (8015e74 <recv_tcp+0x110>)
  53148. 8015d82: f013 fe2b bl 80299dc <iprintf>
  53149. LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
  53150. 8015d86: 68fb ldr r3, [r7, #12]
  53151. 8015d88: 2b00 cmp r3, #0
  53152. 8015d8a: d106 bne.n 8015d9a <recv_tcp+0x36>
  53153. 8015d8c: 4b37 ldr r3, [pc, #220] @ (8015e6c <recv_tcp+0x108>)
  53154. 8015d8e: f240 122d movw r2, #301 @ 0x12d
  53155. 8015d92: 4939 ldr r1, [pc, #228] @ (8015e78 <recv_tcp+0x114>)
  53156. 8015d94: 4837 ldr r0, [pc, #220] @ (8015e74 <recv_tcp+0x110>)
  53157. 8015d96: f013 fe21 bl 80299dc <iprintf>
  53158. LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK);
  53159. 8015d9a: f997 3003 ldrsb.w r3, [r7, #3]
  53160. 8015d9e: 2b00 cmp r3, #0
  53161. 8015da0: d006 beq.n 8015db0 <recv_tcp+0x4c>
  53162. 8015da2: 4b32 ldr r3, [pc, #200] @ (8015e6c <recv_tcp+0x108>)
  53163. 8015da4: f44f 7297 mov.w r2, #302 @ 0x12e
  53164. 8015da8: 4934 ldr r1, [pc, #208] @ (8015e7c <recv_tcp+0x118>)
  53165. 8015daa: 4832 ldr r0, [pc, #200] @ (8015e74 <recv_tcp+0x110>)
  53166. 8015dac: f013 fe16 bl 80299dc <iprintf>
  53167. LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */
  53168. conn = (struct netconn *)arg;
  53169. 8015db0: 68fb ldr r3, [r7, #12]
  53170. 8015db2: 617b str r3, [r7, #20]
  53171. if (conn == NULL) {
  53172. 8015db4: 697b ldr r3, [r7, #20]
  53173. 8015db6: 2b00 cmp r3, #0
  53174. 8015db8: d102 bne.n 8015dc0 <recv_tcp+0x5c>
  53175. return ERR_VAL;
  53176. 8015dba: f06f 0305 mvn.w r3, #5
  53177. 8015dbe: e051 b.n 8015e64 <recv_tcp+0x100>
  53178. }
  53179. LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb);
  53180. 8015dc0: 697b ldr r3, [r7, #20]
  53181. 8015dc2: 685b ldr r3, [r3, #4]
  53182. 8015dc4: 68ba ldr r2, [r7, #8]
  53183. 8015dc6: 429a cmp r2, r3
  53184. 8015dc8: d006 beq.n 8015dd8 <recv_tcp+0x74>
  53185. 8015dca: 4b28 ldr r3, [pc, #160] @ (8015e6c <recv_tcp+0x108>)
  53186. 8015dcc: f240 1235 movw r2, #309 @ 0x135
  53187. 8015dd0: 492b ldr r1, [pc, #172] @ (8015e80 <recv_tcp+0x11c>)
  53188. 8015dd2: 4828 ldr r0, [pc, #160] @ (8015e74 <recv_tcp+0x110>)
  53189. 8015dd4: f013 fe02 bl 80299dc <iprintf>
  53190. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  53191. 8015dd8: 697b ldr r3, [r7, #20]
  53192. 8015dda: 3310 adds r3, #16
  53193. 8015ddc: 4618 mov r0, r3
  53194. 8015dde: f010 fa5d bl 802629c <sys_mbox_valid>
  53195. 8015de2: 4603 mov r3, r0
  53196. 8015de4: 2b00 cmp r3, #0
  53197. 8015de6: d10d bne.n 8015e04 <recv_tcp+0xa0>
  53198. /* recvmbox already deleted */
  53199. if (p != NULL) {
  53200. 8015de8: 687b ldr r3, [r7, #4]
  53201. 8015dea: 2b00 cmp r3, #0
  53202. 8015dec: d008 beq.n 8015e00 <recv_tcp+0x9c>
  53203. tcp_recved(pcb, p->tot_len);
  53204. 8015dee: 687b ldr r3, [r7, #4]
  53205. 8015df0: 891b ldrh r3, [r3, #8]
  53206. 8015df2: 4619 mov r1, r3
  53207. 8015df4: 68b8 ldr r0, [r7, #8]
  53208. 8015df6: f005 f9e5 bl 801b1c4 <tcp_recved>
  53209. pbuf_free(p);
  53210. 8015dfa: 6878 ldr r0, [r7, #4]
  53211. 8015dfc: f004 fb76 bl 801a4ec <pbuf_free>
  53212. }
  53213. return ERR_OK;
  53214. 8015e00: 2300 movs r3, #0
  53215. 8015e02: e02f b.n 8015e64 <recv_tcp+0x100>
  53216. }
  53217. /* Unlike for UDP or RAW pcbs, don't check for available space
  53218. using recv_avail since that could break the connection
  53219. (data is already ACKed) */
  53220. if (p != NULL) {
  53221. 8015e04: 687b ldr r3, [r7, #4]
  53222. 8015e06: 2b00 cmp r3, #0
  53223. 8015e08: d005 beq.n 8015e16 <recv_tcp+0xb2>
  53224. msg = p;
  53225. 8015e0a: 687b ldr r3, [r7, #4]
  53226. 8015e0c: 61bb str r3, [r7, #24]
  53227. len = p->tot_len;
  53228. 8015e0e: 687b ldr r3, [r7, #4]
  53229. 8015e10: 891b ldrh r3, [r3, #8]
  53230. 8015e12: 83fb strh r3, [r7, #30]
  53231. 8015e14: e003 b.n 8015e1e <recv_tcp+0xba>
  53232. } else {
  53233. msg = LWIP_CONST_CAST(void *, &netconn_closed);
  53234. 8015e16: 4b1b ldr r3, [pc, #108] @ (8015e84 <recv_tcp+0x120>)
  53235. 8015e18: 61bb str r3, [r7, #24]
  53236. len = 0;
  53237. 8015e1a: 2300 movs r3, #0
  53238. 8015e1c: 83fb strh r3, [r7, #30]
  53239. }
  53240. if (sys_mbox_trypost(&conn->recvmbox, msg) != ERR_OK) {
  53241. 8015e1e: 697b ldr r3, [r7, #20]
  53242. 8015e20: 3310 adds r3, #16
  53243. 8015e22: 69b9 ldr r1, [r7, #24]
  53244. 8015e24: 4618 mov r0, r3
  53245. 8015e26: f010 f9d7 bl 80261d8 <sys_mbox_trypost>
  53246. 8015e2a: 4603 mov r3, r0
  53247. 8015e2c: 2b00 cmp r3, #0
  53248. 8015e2e: d002 beq.n 8015e36 <recv_tcp+0xd2>
  53249. /* don't deallocate p: it is presented to us later again from tcp_fasttmr! */
  53250. return ERR_MEM;
  53251. 8015e30: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  53252. 8015e34: e016 b.n 8015e64 <recv_tcp+0x100>
  53253. } else {
  53254. #if LWIP_SO_RCVBUF
  53255. SYS_ARCH_INC(conn->recv_avail, len);
  53256. 8015e36: f010 fb3b bl 80264b0 <sys_arch_protect>
  53257. 8015e3a: 6138 str r0, [r7, #16]
  53258. 8015e3c: 697b ldr r3, [r7, #20]
  53259. 8015e3e: 6a5a ldr r2, [r3, #36] @ 0x24
  53260. 8015e40: 8bfb ldrh r3, [r7, #30]
  53261. 8015e42: 441a add r2, r3
  53262. 8015e44: 697b ldr r3, [r7, #20]
  53263. 8015e46: 625a str r2, [r3, #36] @ 0x24
  53264. 8015e48: 6938 ldr r0, [r7, #16]
  53265. 8015e4a: f010 fb3f bl 80264cc <sys_arch_unprotect>
  53266. #endif /* LWIP_SO_RCVBUF */
  53267. /* Register event with callback */
  53268. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  53269. 8015e4e: 697b ldr r3, [r7, #20]
  53270. 8015e50: 6b1b ldr r3, [r3, #48] @ 0x30
  53271. 8015e52: 2b00 cmp r3, #0
  53272. 8015e54: d005 beq.n 8015e62 <recv_tcp+0xfe>
  53273. 8015e56: 697b ldr r3, [r7, #20]
  53274. 8015e58: 6b1b ldr r3, [r3, #48] @ 0x30
  53275. 8015e5a: 8bfa ldrh r2, [r7, #30]
  53276. 8015e5c: 2100 movs r1, #0
  53277. 8015e5e: 6978 ldr r0, [r7, #20]
  53278. 8015e60: 4798 blx r3
  53279. }
  53280. return ERR_OK;
  53281. 8015e62: 2300 movs r3, #0
  53282. }
  53283. 8015e64: 4618 mov r0, r3
  53284. 8015e66: 3720 adds r7, #32
  53285. 8015e68: 46bd mov sp, r7
  53286. 8015e6a: bd80 pop {r7, pc}
  53287. 8015e6c: 0802cf24 .word 0x0802cf24
  53288. 8015e70: 0802d000 .word 0x0802d000
  53289. 8015e74: 0802cf68 .word 0x0802cf68
  53290. 8015e78: 0802d024 .word 0x0802d024
  53291. 8015e7c: 0802d044 .word 0x0802d044
  53292. 8015e80: 0802d05c .word 0x0802d05c
  53293. 8015e84: 08030ace .word 0x08030ace
  53294. 08015e88 <poll_tcp>:
  53295. *
  53296. * @see tcp.h (struct tcp_pcb.poll) for parameters and return value
  53297. */
  53298. static err_t
  53299. poll_tcp(void *arg, struct tcp_pcb *pcb)
  53300. {
  53301. 8015e88: b580 push {r7, lr}
  53302. 8015e8a: b084 sub sp, #16
  53303. 8015e8c: af00 add r7, sp, #0
  53304. 8015e8e: 6078 str r0, [r7, #4]
  53305. 8015e90: 6039 str r1, [r7, #0]
  53306. struct netconn *conn = (struct netconn *)arg;
  53307. 8015e92: 687b ldr r3, [r7, #4]
  53308. 8015e94: 60fb str r3, [r7, #12]
  53309. LWIP_UNUSED_ARG(pcb);
  53310. LWIP_ASSERT("conn != NULL", (conn != NULL));
  53311. 8015e96: 68fb ldr r3, [r7, #12]
  53312. 8015e98: 2b00 cmp r3, #0
  53313. 8015e9a: d106 bne.n 8015eaa <poll_tcp+0x22>
  53314. 8015e9c: 4b2b ldr r3, [pc, #172] @ (8015f4c <poll_tcp+0xc4>)
  53315. 8015e9e: f44f 72b5 mov.w r2, #362 @ 0x16a
  53316. 8015ea2: 492b ldr r1, [pc, #172] @ (8015f50 <poll_tcp+0xc8>)
  53317. 8015ea4: 482b ldr r0, [pc, #172] @ (8015f54 <poll_tcp+0xcc>)
  53318. 8015ea6: f013 fd99 bl 80299dc <iprintf>
  53319. if (conn->state == NETCONN_WRITE) {
  53320. 8015eaa: 68fb ldr r3, [r7, #12]
  53321. 8015eac: 785b ldrb r3, [r3, #1]
  53322. 8015eae: 2b01 cmp r3, #1
  53323. 8015eb0: d104 bne.n 8015ebc <poll_tcp+0x34>
  53324. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  53325. 8015eb2: 2101 movs r1, #1
  53326. 8015eb4: 68f8 ldr r0, [r7, #12]
  53327. 8015eb6: f000 ffab bl 8016e10 <lwip_netconn_do_writemore>
  53328. 8015eba: e016 b.n 8015eea <poll_tcp+0x62>
  53329. } else if (conn->state == NETCONN_CLOSE) {
  53330. 8015ebc: 68fb ldr r3, [r7, #12]
  53331. 8015ebe: 785b ldrb r3, [r3, #1]
  53332. 8015ec0: 2b04 cmp r3, #4
  53333. 8015ec2: d112 bne.n 8015eea <poll_tcp+0x62>
  53334. #if !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER
  53335. if (conn->current_msg && conn->current_msg->msg.sd.polls_left) {
  53336. 8015ec4: 68fb ldr r3, [r7, #12]
  53337. 8015ec6: 6adb ldr r3, [r3, #44] @ 0x2c
  53338. 8015ec8: 2b00 cmp r3, #0
  53339. 8015eca: d00a beq.n 8015ee2 <poll_tcp+0x5a>
  53340. 8015ecc: 68fb ldr r3, [r7, #12]
  53341. 8015ece: 6adb ldr r3, [r3, #44] @ 0x2c
  53342. 8015ed0: 7a5b ldrb r3, [r3, #9]
  53343. 8015ed2: 2b00 cmp r3, #0
  53344. 8015ed4: d005 beq.n 8015ee2 <poll_tcp+0x5a>
  53345. conn->current_msg->msg.sd.polls_left--;
  53346. 8015ed6: 68fb ldr r3, [r7, #12]
  53347. 8015ed8: 6adb ldr r3, [r3, #44] @ 0x2c
  53348. 8015eda: 7a5a ldrb r2, [r3, #9]
  53349. 8015edc: 3a01 subs r2, #1
  53350. 8015ede: b2d2 uxtb r2, r2
  53351. 8015ee0: 725a strb r2, [r3, #9]
  53352. }
  53353. #endif /* !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER */
  53354. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  53355. 8015ee2: 2101 movs r1, #1
  53356. 8015ee4: 68f8 ldr r0, [r7, #12]
  53357. 8015ee6: f000 fb53 bl 8016590 <lwip_netconn_do_close_internal>
  53358. }
  53359. /* @todo: implement connect timeout here? */
  53360. /* Did a nonblocking write fail before? Then check available write-space. */
  53361. if (conn->flags & NETCONN_FLAG_CHECK_WRITESPACE) {
  53362. 8015eea: 68fb ldr r3, [r7, #12]
  53363. 8015eec: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53364. 8015ef0: f003 0310 and.w r3, r3, #16
  53365. 8015ef4: 2b00 cmp r3, #0
  53366. 8015ef6: d024 beq.n 8015f42 <poll_tcp+0xba>
  53367. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  53368. let select mark this pcb as writable again. */
  53369. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  53370. 8015ef8: 68fb ldr r3, [r7, #12]
  53371. 8015efa: 685b ldr r3, [r3, #4]
  53372. 8015efc: 2b00 cmp r3, #0
  53373. 8015efe: d020 beq.n 8015f42 <poll_tcp+0xba>
  53374. 8015f00: 68fb ldr r3, [r7, #12]
  53375. 8015f02: 685b ldr r3, [r3, #4]
  53376. 8015f04: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  53377. 8015f08: f640 3269 movw r2, #2921 @ 0xb69
  53378. 8015f0c: 4293 cmp r3, r2
  53379. 8015f0e: d918 bls.n 8015f42 <poll_tcp+0xba>
  53380. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  53381. 8015f10: 68fb ldr r3, [r7, #12]
  53382. 8015f12: 685b ldr r3, [r3, #4]
  53383. 8015f14: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  53384. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  53385. 8015f18: 2b07 cmp r3, #7
  53386. 8015f1a: d812 bhi.n 8015f42 <poll_tcp+0xba>
  53387. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  53388. 8015f1c: 68fb ldr r3, [r7, #12]
  53389. 8015f1e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53390. 8015f22: f023 0310 bic.w r3, r3, #16
  53391. 8015f26: b2da uxtb r2, r3
  53392. 8015f28: 68fb ldr r3, [r7, #12]
  53393. 8015f2a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53394. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  53395. 8015f2e: 68fb ldr r3, [r7, #12]
  53396. 8015f30: 6b1b ldr r3, [r3, #48] @ 0x30
  53397. 8015f32: 2b00 cmp r3, #0
  53398. 8015f34: d005 beq.n 8015f42 <poll_tcp+0xba>
  53399. 8015f36: 68fb ldr r3, [r7, #12]
  53400. 8015f38: 6b1b ldr r3, [r3, #48] @ 0x30
  53401. 8015f3a: 2200 movs r2, #0
  53402. 8015f3c: 2102 movs r1, #2
  53403. 8015f3e: 68f8 ldr r0, [r7, #12]
  53404. 8015f40: 4798 blx r3
  53405. }
  53406. }
  53407. return ERR_OK;
  53408. 8015f42: 2300 movs r3, #0
  53409. }
  53410. 8015f44: 4618 mov r0, r3
  53411. 8015f46: 3710 adds r7, #16
  53412. 8015f48: 46bd mov sp, r7
  53413. 8015f4a: bd80 pop {r7, pc}
  53414. 8015f4c: 0802cf24 .word 0x0802cf24
  53415. 8015f50: 0802d07c .word 0x0802d07c
  53416. 8015f54: 0802cf68 .word 0x0802cf68
  53417. 08015f58 <sent_tcp>:
  53418. *
  53419. * @see tcp.h (struct tcp_pcb.sent) for parameters and return value
  53420. */
  53421. static err_t
  53422. sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
  53423. {
  53424. 8015f58: b580 push {r7, lr}
  53425. 8015f5a: b086 sub sp, #24
  53426. 8015f5c: af00 add r7, sp, #0
  53427. 8015f5e: 60f8 str r0, [r7, #12]
  53428. 8015f60: 60b9 str r1, [r7, #8]
  53429. 8015f62: 4613 mov r3, r2
  53430. 8015f64: 80fb strh r3, [r7, #6]
  53431. struct netconn *conn = (struct netconn *)arg;
  53432. 8015f66: 68fb ldr r3, [r7, #12]
  53433. 8015f68: 617b str r3, [r7, #20]
  53434. LWIP_UNUSED_ARG(pcb);
  53435. LWIP_ASSERT("conn != NULL", (conn != NULL));
  53436. 8015f6a: 697b ldr r3, [r7, #20]
  53437. 8015f6c: 2b00 cmp r3, #0
  53438. 8015f6e: d106 bne.n 8015f7e <sent_tcp+0x26>
  53439. 8015f70: 4b22 ldr r3, [pc, #136] @ (8015ffc <sent_tcp+0xa4>)
  53440. 8015f72: f240 1293 movw r2, #403 @ 0x193
  53441. 8015f76: 4922 ldr r1, [pc, #136] @ (8016000 <sent_tcp+0xa8>)
  53442. 8015f78: 4822 ldr r0, [pc, #136] @ (8016004 <sent_tcp+0xac>)
  53443. 8015f7a: f013 fd2f bl 80299dc <iprintf>
  53444. if (conn) {
  53445. 8015f7e: 697b ldr r3, [r7, #20]
  53446. 8015f80: 2b00 cmp r3, #0
  53447. 8015f82: d035 beq.n 8015ff0 <sent_tcp+0x98>
  53448. if (conn->state == NETCONN_WRITE) {
  53449. 8015f84: 697b ldr r3, [r7, #20]
  53450. 8015f86: 785b ldrb r3, [r3, #1]
  53451. 8015f88: 2b01 cmp r3, #1
  53452. 8015f8a: d104 bne.n 8015f96 <sent_tcp+0x3e>
  53453. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  53454. 8015f8c: 2101 movs r1, #1
  53455. 8015f8e: 6978 ldr r0, [r7, #20]
  53456. 8015f90: f000 ff3e bl 8016e10 <lwip_netconn_do_writemore>
  53457. 8015f94: e007 b.n 8015fa6 <sent_tcp+0x4e>
  53458. } else if (conn->state == NETCONN_CLOSE) {
  53459. 8015f96: 697b ldr r3, [r7, #20]
  53460. 8015f98: 785b ldrb r3, [r3, #1]
  53461. 8015f9a: 2b04 cmp r3, #4
  53462. 8015f9c: d103 bne.n 8015fa6 <sent_tcp+0x4e>
  53463. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  53464. 8015f9e: 2101 movs r1, #1
  53465. 8015fa0: 6978 ldr r0, [r7, #20]
  53466. 8015fa2: f000 faf5 bl 8016590 <lwip_netconn_do_close_internal>
  53467. }
  53468. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  53469. let select mark this pcb as writable again. */
  53470. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  53471. 8015fa6: 697b ldr r3, [r7, #20]
  53472. 8015fa8: 685b ldr r3, [r3, #4]
  53473. 8015faa: 2b00 cmp r3, #0
  53474. 8015fac: d020 beq.n 8015ff0 <sent_tcp+0x98>
  53475. 8015fae: 697b ldr r3, [r7, #20]
  53476. 8015fb0: 685b ldr r3, [r3, #4]
  53477. 8015fb2: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  53478. 8015fb6: f640 3269 movw r2, #2921 @ 0xb69
  53479. 8015fba: 4293 cmp r3, r2
  53480. 8015fbc: d918 bls.n 8015ff0 <sent_tcp+0x98>
  53481. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  53482. 8015fbe: 697b ldr r3, [r7, #20]
  53483. 8015fc0: 685b ldr r3, [r3, #4]
  53484. 8015fc2: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  53485. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  53486. 8015fc6: 2b07 cmp r3, #7
  53487. 8015fc8: d812 bhi.n 8015ff0 <sent_tcp+0x98>
  53488. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  53489. 8015fca: 697b ldr r3, [r7, #20]
  53490. 8015fcc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53491. 8015fd0: f023 0310 bic.w r3, r3, #16
  53492. 8015fd4: b2da uxtb r2, r3
  53493. 8015fd6: 697b ldr r3, [r7, #20]
  53494. 8015fd8: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53495. API_EVENT(conn, NETCONN_EVT_SENDPLUS, len);
  53496. 8015fdc: 697b ldr r3, [r7, #20]
  53497. 8015fde: 6b1b ldr r3, [r3, #48] @ 0x30
  53498. 8015fe0: 2b00 cmp r3, #0
  53499. 8015fe2: d005 beq.n 8015ff0 <sent_tcp+0x98>
  53500. 8015fe4: 697b ldr r3, [r7, #20]
  53501. 8015fe6: 6b1b ldr r3, [r3, #48] @ 0x30
  53502. 8015fe8: 88fa ldrh r2, [r7, #6]
  53503. 8015fea: 2102 movs r1, #2
  53504. 8015fec: 6978 ldr r0, [r7, #20]
  53505. 8015fee: 4798 blx r3
  53506. }
  53507. }
  53508. return ERR_OK;
  53509. 8015ff0: 2300 movs r3, #0
  53510. }
  53511. 8015ff2: 4618 mov r0, r3
  53512. 8015ff4: 3718 adds r7, #24
  53513. 8015ff6: 46bd mov sp, r7
  53514. 8015ff8: bd80 pop {r7, pc}
  53515. 8015ffa: bf00 nop
  53516. 8015ffc: 0802cf24 .word 0x0802cf24
  53517. 8016000: 0802d07c .word 0x0802d07c
  53518. 8016004: 0802cf68 .word 0x0802cf68
  53519. 08016008 <err_tcp>:
  53520. *
  53521. * @see tcp.h (struct tcp_pcb.err) for parameters
  53522. */
  53523. static void
  53524. err_tcp(void *arg, err_t err)
  53525. {
  53526. 8016008: b580 push {r7, lr}
  53527. 801600a: b088 sub sp, #32
  53528. 801600c: af00 add r7, sp, #0
  53529. 801600e: 6078 str r0, [r7, #4]
  53530. 8016010: 460b mov r3, r1
  53531. 8016012: 70fb strb r3, [r7, #3]
  53532. struct netconn *conn;
  53533. enum netconn_state old_state;
  53534. void *mbox_msg;
  53535. SYS_ARCH_DECL_PROTECT(lev);
  53536. conn = (struct netconn *)arg;
  53537. 8016014: 687b ldr r3, [r7, #4]
  53538. 8016016: 61fb str r3, [r7, #28]
  53539. LWIP_ASSERT("conn != NULL", (conn != NULL));
  53540. 8016018: 69fb ldr r3, [r7, #28]
  53541. 801601a: 2b00 cmp r3, #0
  53542. 801601c: d106 bne.n 801602c <err_tcp+0x24>
  53543. 801601e: 4b61 ldr r3, [pc, #388] @ (80161a4 <err_tcp+0x19c>)
  53544. 8016020: f44f 72dc mov.w r2, #440 @ 0x1b8
  53545. 8016024: 4960 ldr r1, [pc, #384] @ (80161a8 <err_tcp+0x1a0>)
  53546. 8016026: 4861 ldr r0, [pc, #388] @ (80161ac <err_tcp+0x1a4>)
  53547. 8016028: f013 fcd8 bl 80299dc <iprintf>
  53548. SYS_ARCH_PROTECT(lev);
  53549. 801602c: f010 fa40 bl 80264b0 <sys_arch_protect>
  53550. 8016030: 61b8 str r0, [r7, #24]
  53551. /* when err is called, the pcb is deallocated, so delete the reference */
  53552. conn->pcb.tcp = NULL;
  53553. 8016032: 69fb ldr r3, [r7, #28]
  53554. 8016034: 2200 movs r2, #0
  53555. 8016036: 605a str r2, [r3, #4]
  53556. /* store pending error */
  53557. conn->pending_err = err;
  53558. 8016038: 69fb ldr r3, [r7, #28]
  53559. 801603a: 78fa ldrb r2, [r7, #3]
  53560. 801603c: 721a strb r2, [r3, #8]
  53561. /* prevent application threads from blocking on 'recvmbox'/'acceptmbox' */
  53562. conn->flags |= NETCONN_FLAG_MBOXCLOSED;
  53563. 801603e: 69fb ldr r3, [r7, #28]
  53564. 8016040: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53565. 8016044: f043 0301 orr.w r3, r3, #1
  53566. 8016048: b2da uxtb r2, r3
  53567. 801604a: 69fb ldr r3, [r7, #28]
  53568. 801604c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53569. /* reset conn->state now before waking up other threads */
  53570. old_state = conn->state;
  53571. 8016050: 69fb ldr r3, [r7, #28]
  53572. 8016052: 785b ldrb r3, [r3, #1]
  53573. 8016054: 75fb strb r3, [r7, #23]
  53574. conn->state = NETCONN_NONE;
  53575. 8016056: 69fb ldr r3, [r7, #28]
  53576. 8016058: 2200 movs r2, #0
  53577. 801605a: 705a strb r2, [r3, #1]
  53578. SYS_ARCH_UNPROTECT(lev);
  53579. 801605c: 69b8 ldr r0, [r7, #24]
  53580. 801605e: f010 fa35 bl 80264cc <sys_arch_unprotect>
  53581. /* Notify the user layer about a connection error. Used to signal select. */
  53582. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  53583. 8016062: 69fb ldr r3, [r7, #28]
  53584. 8016064: 6b1b ldr r3, [r3, #48] @ 0x30
  53585. 8016066: 2b00 cmp r3, #0
  53586. 8016068: d005 beq.n 8016076 <err_tcp+0x6e>
  53587. 801606a: 69fb ldr r3, [r7, #28]
  53588. 801606c: 6b1b ldr r3, [r3, #48] @ 0x30
  53589. 801606e: 2200 movs r2, #0
  53590. 8016070: 2104 movs r1, #4
  53591. 8016072: 69f8 ldr r0, [r7, #28]
  53592. 8016074: 4798 blx r3
  53593. /* Try to release selects pending on 'read' or 'write', too.
  53594. They will get an error if they actually try to read or write. */
  53595. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  53596. 8016076: 69fb ldr r3, [r7, #28]
  53597. 8016078: 6b1b ldr r3, [r3, #48] @ 0x30
  53598. 801607a: 2b00 cmp r3, #0
  53599. 801607c: d005 beq.n 801608a <err_tcp+0x82>
  53600. 801607e: 69fb ldr r3, [r7, #28]
  53601. 8016080: 6b1b ldr r3, [r3, #48] @ 0x30
  53602. 8016082: 2200 movs r2, #0
  53603. 8016084: 2100 movs r1, #0
  53604. 8016086: 69f8 ldr r0, [r7, #28]
  53605. 8016088: 4798 blx r3
  53606. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  53607. 801608a: 69fb ldr r3, [r7, #28]
  53608. 801608c: 6b1b ldr r3, [r3, #48] @ 0x30
  53609. 801608e: 2b00 cmp r3, #0
  53610. 8016090: d005 beq.n 801609e <err_tcp+0x96>
  53611. 8016092: 69fb ldr r3, [r7, #28]
  53612. 8016094: 6b1b ldr r3, [r3, #48] @ 0x30
  53613. 8016096: 2200 movs r2, #0
  53614. 8016098: 2102 movs r1, #2
  53615. 801609a: 69f8 ldr r0, [r7, #28]
  53616. 801609c: 4798 blx r3
  53617. mbox_msg = lwip_netconn_err_to_msg(err);
  53618. 801609e: f997 3003 ldrsb.w r3, [r7, #3]
  53619. 80160a2: 4618 mov r0, r3
  53620. 80160a4: f7ff fd52 bl 8015b4c <lwip_netconn_err_to_msg>
  53621. 80160a8: 6138 str r0, [r7, #16]
  53622. /* pass error message to recvmbox to wake up pending recv */
  53623. if (NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  53624. 80160aa: 69fb ldr r3, [r7, #28]
  53625. 80160ac: 3310 adds r3, #16
  53626. 80160ae: 4618 mov r0, r3
  53627. 80160b0: f010 f8f4 bl 802629c <sys_mbox_valid>
  53628. 80160b4: 4603 mov r3, r0
  53629. 80160b6: 2b00 cmp r3, #0
  53630. 80160b8: d005 beq.n 80160c6 <err_tcp+0xbe>
  53631. /* use trypost to prevent deadlock */
  53632. sys_mbox_trypost(&conn->recvmbox, mbox_msg);
  53633. 80160ba: 69fb ldr r3, [r7, #28]
  53634. 80160bc: 3310 adds r3, #16
  53635. 80160be: 6939 ldr r1, [r7, #16]
  53636. 80160c0: 4618 mov r0, r3
  53637. 80160c2: f010 f889 bl 80261d8 <sys_mbox_trypost>
  53638. }
  53639. /* pass error message to acceptmbox to wake up pending accept */
  53640. if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) {
  53641. 80160c6: 69fb ldr r3, [r7, #28]
  53642. 80160c8: 3314 adds r3, #20
  53643. 80160ca: 4618 mov r0, r3
  53644. 80160cc: f010 f8e6 bl 802629c <sys_mbox_valid>
  53645. 80160d0: 4603 mov r3, r0
  53646. 80160d2: 2b00 cmp r3, #0
  53647. 80160d4: d005 beq.n 80160e2 <err_tcp+0xda>
  53648. /* use trypost to preven deadlock */
  53649. sys_mbox_trypost(&conn->acceptmbox, mbox_msg);
  53650. 80160d6: 69fb ldr r3, [r7, #28]
  53651. 80160d8: 3314 adds r3, #20
  53652. 80160da: 6939 ldr r1, [r7, #16]
  53653. 80160dc: 4618 mov r0, r3
  53654. 80160de: f010 f87b bl 80261d8 <sys_mbox_trypost>
  53655. }
  53656. if ((old_state == NETCONN_WRITE) || (old_state == NETCONN_CLOSE) ||
  53657. 80160e2: 7dfb ldrb r3, [r7, #23]
  53658. 80160e4: 2b01 cmp r3, #1
  53659. 80160e6: d005 beq.n 80160f4 <err_tcp+0xec>
  53660. 80160e8: 7dfb ldrb r3, [r7, #23]
  53661. 80160ea: 2b04 cmp r3, #4
  53662. 80160ec: d002 beq.n 80160f4 <err_tcp+0xec>
  53663. 80160ee: 7dfb ldrb r3, [r7, #23]
  53664. 80160f0: 2b03 cmp r3, #3
  53665. 80160f2: d146 bne.n 8016182 <err_tcp+0x17a>
  53666. (old_state == NETCONN_CONNECT)) {
  53667. /* calling lwip_netconn_do_writemore/lwip_netconn_do_close_internal is not necessary
  53668. since the pcb has already been deleted! */
  53669. int was_nonblocking_connect = IN_NONBLOCKING_CONNECT(conn);
  53670. 80160f4: 69fb ldr r3, [r7, #28]
  53671. 80160f6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53672. 80160fa: f003 0304 and.w r3, r3, #4
  53673. 80160fe: 2b00 cmp r3, #0
  53674. 8016100: bf14 ite ne
  53675. 8016102: 2301 movne r3, #1
  53676. 8016104: 2300 moveq r3, #0
  53677. 8016106: b2db uxtb r3, r3
  53678. 8016108: 60fb str r3, [r7, #12]
  53679. SET_NONBLOCKING_CONNECT(conn, 0);
  53680. 801610a: 69fb ldr r3, [r7, #28]
  53681. 801610c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53682. 8016110: f023 0304 bic.w r3, r3, #4
  53683. 8016114: b2da uxtb r2, r3
  53684. 8016116: 69fb ldr r3, [r7, #28]
  53685. 8016118: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53686. if (!was_nonblocking_connect) {
  53687. 801611c: 68fb ldr r3, [r7, #12]
  53688. 801611e: 2b00 cmp r3, #0
  53689. 8016120: d13b bne.n 801619a <err_tcp+0x192>
  53690. sys_sem_t *op_completed_sem;
  53691. /* set error return code */
  53692. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  53693. 8016122: 69fb ldr r3, [r7, #28]
  53694. 8016124: 6adb ldr r3, [r3, #44] @ 0x2c
  53695. 8016126: 2b00 cmp r3, #0
  53696. 8016128: d106 bne.n 8016138 <err_tcp+0x130>
  53697. 801612a: 4b1e ldr r3, [pc, #120] @ (80161a4 <err_tcp+0x19c>)
  53698. 801612c: f44f 72f3 mov.w r2, #486 @ 0x1e6
  53699. 8016130: 491f ldr r1, [pc, #124] @ (80161b0 <err_tcp+0x1a8>)
  53700. 8016132: 481e ldr r0, [pc, #120] @ (80161ac <err_tcp+0x1a4>)
  53701. 8016134: f013 fc52 bl 80299dc <iprintf>
  53702. if (old_state == NETCONN_CLOSE) {
  53703. 8016138: 7dfb ldrb r3, [r7, #23]
  53704. 801613a: 2b04 cmp r3, #4
  53705. 801613c: d104 bne.n 8016148 <err_tcp+0x140>
  53706. /* let close succeed: the connection is closed after all... */
  53707. conn->current_msg->err = ERR_OK;
  53708. 801613e: 69fb ldr r3, [r7, #28]
  53709. 8016140: 6adb ldr r3, [r3, #44] @ 0x2c
  53710. 8016142: 2200 movs r2, #0
  53711. 8016144: 711a strb r2, [r3, #4]
  53712. 8016146: e003 b.n 8016150 <err_tcp+0x148>
  53713. } else {
  53714. /* Write and connect fail */
  53715. conn->current_msg->err = err;
  53716. 8016148: 69fb ldr r3, [r7, #28]
  53717. 801614a: 6adb ldr r3, [r3, #44] @ 0x2c
  53718. 801614c: 78fa ldrb r2, [r7, #3]
  53719. 801614e: 711a strb r2, [r3, #4]
  53720. }
  53721. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  53722. 8016150: 69fb ldr r3, [r7, #28]
  53723. 8016152: 6adb ldr r3, [r3, #44] @ 0x2c
  53724. 8016154: 681b ldr r3, [r3, #0]
  53725. 8016156: 330c adds r3, #12
  53726. 8016158: 60bb str r3, [r7, #8]
  53727. LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem));
  53728. 801615a: 68b8 ldr r0, [r7, #8]
  53729. 801615c: f010 f92c bl 80263b8 <sys_sem_valid>
  53730. 8016160: 4603 mov r3, r0
  53731. 8016162: 2b00 cmp r3, #0
  53732. 8016164: d106 bne.n 8016174 <err_tcp+0x16c>
  53733. 8016166: 4b0f ldr r3, [pc, #60] @ (80161a4 <err_tcp+0x19c>)
  53734. 8016168: f240 12ef movw r2, #495 @ 0x1ef
  53735. 801616c: 4911 ldr r1, [pc, #68] @ (80161b4 <err_tcp+0x1ac>)
  53736. 801616e: 480f ldr r0, [pc, #60] @ (80161ac <err_tcp+0x1a4>)
  53737. 8016170: f013 fc34 bl 80299dc <iprintf>
  53738. conn->current_msg = NULL;
  53739. 8016174: 69fb ldr r3, [r7, #28]
  53740. 8016176: 2200 movs r2, #0
  53741. 8016178: 62da str r2, [r3, #44] @ 0x2c
  53742. /* wake up the waiting task */
  53743. sys_sem_signal(op_completed_sem);
  53744. 801617a: 68b8 ldr r0, [r7, #8]
  53745. 801617c: f010 f902 bl 8026384 <sys_sem_signal>
  53746. (old_state == NETCONN_CONNECT)) {
  53747. 8016180: e00b b.n 801619a <err_tcp+0x192>
  53748. } else {
  53749. /* @todo: test what happens for error on nonblocking connect */
  53750. }
  53751. } else {
  53752. LWIP_ASSERT("conn->current_msg == NULL", conn->current_msg == NULL);
  53753. 8016182: 69fb ldr r3, [r7, #28]
  53754. 8016184: 6adb ldr r3, [r3, #44] @ 0x2c
  53755. 8016186: 2b00 cmp r3, #0
  53756. 8016188: d008 beq.n 801619c <err_tcp+0x194>
  53757. 801618a: 4b06 ldr r3, [pc, #24] @ (80161a4 <err_tcp+0x19c>)
  53758. 801618c: f240 12f7 movw r2, #503 @ 0x1f7
  53759. 8016190: 4909 ldr r1, [pc, #36] @ (80161b8 <err_tcp+0x1b0>)
  53760. 8016192: 4806 ldr r0, [pc, #24] @ (80161ac <err_tcp+0x1a4>)
  53761. 8016194: f013 fc22 bl 80299dc <iprintf>
  53762. }
  53763. }
  53764. 8016198: e000 b.n 801619c <err_tcp+0x194>
  53765. (old_state == NETCONN_CONNECT)) {
  53766. 801619a: bf00 nop
  53767. }
  53768. 801619c: bf00 nop
  53769. 801619e: 3720 adds r7, #32
  53770. 80161a0: 46bd mov sp, r7
  53771. 80161a2: bd80 pop {r7, pc}
  53772. 80161a4: 0802cf24 .word 0x0802cf24
  53773. 80161a8: 0802d07c .word 0x0802d07c
  53774. 80161ac: 0802cf68 .word 0x0802cf68
  53775. 80161b0: 0802d08c .word 0x0802d08c
  53776. 80161b4: 0802d0a8 .word 0x0802d0a8
  53777. 80161b8: 0802d0c4 .word 0x0802d0c4
  53778. 080161bc <setup_tcp>:
  53779. *
  53780. * @param conn the TCP netconn to setup
  53781. */
  53782. static void
  53783. setup_tcp(struct netconn *conn)
  53784. {
  53785. 80161bc: b580 push {r7, lr}
  53786. 80161be: b084 sub sp, #16
  53787. 80161c0: af00 add r7, sp, #0
  53788. 80161c2: 6078 str r0, [r7, #4]
  53789. struct tcp_pcb *pcb;
  53790. pcb = conn->pcb.tcp;
  53791. 80161c4: 687b ldr r3, [r7, #4]
  53792. 80161c6: 685b ldr r3, [r3, #4]
  53793. 80161c8: 60fb str r3, [r7, #12]
  53794. tcp_arg(pcb, conn);
  53795. 80161ca: 6879 ldr r1, [r7, #4]
  53796. 80161cc: 68f8 ldr r0, [r7, #12]
  53797. 80161ce: f005 ffe3 bl 801c198 <tcp_arg>
  53798. tcp_recv(pcb, recv_tcp);
  53799. 80161d2: 490a ldr r1, [pc, #40] @ (80161fc <setup_tcp+0x40>)
  53800. 80161d4: 68f8 ldr r0, [r7, #12]
  53801. 80161d6: f005 fff1 bl 801c1bc <tcp_recv>
  53802. tcp_sent(pcb, sent_tcp);
  53803. 80161da: 4909 ldr r1, [pc, #36] @ (8016200 <setup_tcp+0x44>)
  53804. 80161dc: 68f8 ldr r0, [r7, #12]
  53805. 80161de: f006 f811 bl 801c204 <tcp_sent>
  53806. tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL);
  53807. 80161e2: 2202 movs r2, #2
  53808. 80161e4: 4907 ldr r1, [pc, #28] @ (8016204 <setup_tcp+0x48>)
  53809. 80161e6: 68f8 ldr r0, [r7, #12]
  53810. 80161e8: f006 f86c bl 801c2c4 <tcp_poll>
  53811. tcp_err(pcb, err_tcp);
  53812. 80161ec: 4906 ldr r1, [pc, #24] @ (8016208 <setup_tcp+0x4c>)
  53813. 80161ee: 68f8 ldr r0, [r7, #12]
  53814. 80161f0: f006 f82c bl 801c24c <tcp_err>
  53815. }
  53816. 80161f4: bf00 nop
  53817. 80161f6: 3710 adds r7, #16
  53818. 80161f8: 46bd mov sp, r7
  53819. 80161fa: bd80 pop {r7, pc}
  53820. 80161fc: 08015d65 .word 0x08015d65
  53821. 8016200: 08015f59 .word 0x08015f59
  53822. 8016204: 08015e89 .word 0x08015e89
  53823. 8016208: 08016009 .word 0x08016009
  53824. 0801620c <pcb_new>:
  53825. *
  53826. * @param msg the api_msg describing the connection type
  53827. */
  53828. static void
  53829. pcb_new(struct api_msg *msg)
  53830. {
  53831. 801620c: b590 push {r4, r7, lr}
  53832. 801620e: b085 sub sp, #20
  53833. 8016210: af00 add r7, sp, #0
  53834. 8016212: 6078 str r0, [r7, #4]
  53835. enum lwip_ip_addr_type iptype = IPADDR_TYPE_V4;
  53836. 8016214: 2300 movs r3, #0
  53837. 8016216: 73fb strb r3, [r7, #15]
  53838. LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL);
  53839. 8016218: 687b ldr r3, [r7, #4]
  53840. 801621a: 681b ldr r3, [r3, #0]
  53841. 801621c: 685b ldr r3, [r3, #4]
  53842. 801621e: 2b00 cmp r3, #0
  53843. 8016220: d006 beq.n 8016230 <pcb_new+0x24>
  53844. 8016222: 4b2b ldr r3, [pc, #172] @ (80162d0 <pcb_new+0xc4>)
  53845. 8016224: f240 2265 movw r2, #613 @ 0x265
  53846. 8016228: 492a ldr r1, [pc, #168] @ (80162d4 <pcb_new+0xc8>)
  53847. 801622a: 482b ldr r0, [pc, #172] @ (80162d8 <pcb_new+0xcc>)
  53848. 801622c: f013 fbd6 bl 80299dc <iprintf>
  53849. iptype = IPADDR_TYPE_ANY;
  53850. }
  53851. #endif
  53852. /* Allocate a PCB for this connection */
  53853. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  53854. 8016230: 687b ldr r3, [r7, #4]
  53855. 8016232: 681b ldr r3, [r3, #0]
  53856. 8016234: 781b ldrb r3, [r3, #0]
  53857. 8016236: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53858. 801623a: 2b10 cmp r3, #16
  53859. 801623c: d022 beq.n 8016284 <pcb_new+0x78>
  53860. 801623e: 2b20 cmp r3, #32
  53861. 8016240: d133 bne.n 80162aa <pcb_new+0x9e>
  53862. }
  53863. break;
  53864. #endif /* LWIP_RAW */
  53865. #if LWIP_UDP
  53866. case NETCONN_UDP:
  53867. msg->conn->pcb.udp = udp_new_ip_type(iptype);
  53868. 8016242: 687b ldr r3, [r7, #4]
  53869. 8016244: 681c ldr r4, [r3, #0]
  53870. 8016246: 7bfb ldrb r3, [r7, #15]
  53871. 8016248: 4618 mov r0, r3
  53872. 801624a: f00b fb94 bl 8021976 <udp_new_ip_type>
  53873. 801624e: 4603 mov r3, r0
  53874. 8016250: 6063 str r3, [r4, #4]
  53875. if (msg->conn->pcb.udp != NULL) {
  53876. 8016252: 687b ldr r3, [r7, #4]
  53877. 8016254: 681b ldr r3, [r3, #0]
  53878. 8016256: 685b ldr r3, [r3, #4]
  53879. 8016258: 2b00 cmp r3, #0
  53880. 801625a: d02a beq.n 80162b2 <pcb_new+0xa6>
  53881. #if LWIP_UDPLITE
  53882. if (NETCONNTYPE_ISUDPLITE(msg->conn->type)) {
  53883. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_UDPLITE);
  53884. }
  53885. #endif /* LWIP_UDPLITE */
  53886. if (NETCONNTYPE_ISUDPNOCHKSUM(msg->conn->type)) {
  53887. 801625c: 687b ldr r3, [r7, #4]
  53888. 801625e: 681b ldr r3, [r3, #0]
  53889. 8016260: 781b ldrb r3, [r3, #0]
  53890. 8016262: 2b22 cmp r3, #34 @ 0x22
  53891. 8016264: d104 bne.n 8016270 <pcb_new+0x64>
  53892. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_NOCHKSUM);
  53893. 8016266: 687b ldr r3, [r7, #4]
  53894. 8016268: 681b ldr r3, [r3, #0]
  53895. 801626a: 685b ldr r3, [r3, #4]
  53896. 801626c: 2201 movs r2, #1
  53897. 801626e: 741a strb r2, [r3, #16]
  53898. }
  53899. udp_recv(msg->conn->pcb.udp, recv_udp, msg->conn);
  53900. 8016270: 687b ldr r3, [r7, #4]
  53901. 8016272: 681b ldr r3, [r3, #0]
  53902. 8016274: 6858 ldr r0, [r3, #4]
  53903. 8016276: 687b ldr r3, [r7, #4]
  53904. 8016278: 681b ldr r3, [r3, #0]
  53905. 801627a: 461a mov r2, r3
  53906. 801627c: 4917 ldr r1, [pc, #92] @ (80162dc <pcb_new+0xd0>)
  53907. 801627e: f00b fafb bl 8021878 <udp_recv>
  53908. }
  53909. break;
  53910. 8016282: e016 b.n 80162b2 <pcb_new+0xa6>
  53911. #endif /* LWIP_UDP */
  53912. #if LWIP_TCP
  53913. case NETCONN_TCP:
  53914. msg->conn->pcb.tcp = tcp_new_ip_type(iptype);
  53915. 8016284: 687b ldr r3, [r7, #4]
  53916. 8016286: 681c ldr r4, [r3, #0]
  53917. 8016288: 7bfb ldrb r3, [r7, #15]
  53918. 801628a: 4618 mov r0, r3
  53919. 801628c: f005 ff76 bl 801c17c <tcp_new_ip_type>
  53920. 8016290: 4603 mov r3, r0
  53921. 8016292: 6063 str r3, [r4, #4]
  53922. if (msg->conn->pcb.tcp != NULL) {
  53923. 8016294: 687b ldr r3, [r7, #4]
  53924. 8016296: 681b ldr r3, [r3, #0]
  53925. 8016298: 685b ldr r3, [r3, #4]
  53926. 801629a: 2b00 cmp r3, #0
  53927. 801629c: d00b beq.n 80162b6 <pcb_new+0xaa>
  53928. setup_tcp(msg->conn);
  53929. 801629e: 687b ldr r3, [r7, #4]
  53930. 80162a0: 681b ldr r3, [r3, #0]
  53931. 80162a2: 4618 mov r0, r3
  53932. 80162a4: f7ff ff8a bl 80161bc <setup_tcp>
  53933. }
  53934. break;
  53935. 80162a8: e005 b.n 80162b6 <pcb_new+0xaa>
  53936. #endif /* LWIP_TCP */
  53937. default:
  53938. /* Unsupported netconn type, e.g. protocol disabled */
  53939. msg->err = ERR_VAL;
  53940. 80162aa: 687b ldr r3, [r7, #4]
  53941. 80162ac: 22fa movs r2, #250 @ 0xfa
  53942. 80162ae: 711a strb r2, [r3, #4]
  53943. return;
  53944. 80162b0: e00a b.n 80162c8 <pcb_new+0xbc>
  53945. break;
  53946. 80162b2: bf00 nop
  53947. 80162b4: e000 b.n 80162b8 <pcb_new+0xac>
  53948. break;
  53949. 80162b6: bf00 nop
  53950. }
  53951. if (msg->conn->pcb.ip == NULL) {
  53952. 80162b8: 687b ldr r3, [r7, #4]
  53953. 80162ba: 681b ldr r3, [r3, #0]
  53954. 80162bc: 685b ldr r3, [r3, #4]
  53955. 80162be: 2b00 cmp r3, #0
  53956. 80162c0: d102 bne.n 80162c8 <pcb_new+0xbc>
  53957. msg->err = ERR_MEM;
  53958. 80162c2: 687b ldr r3, [r7, #4]
  53959. 80162c4: 22ff movs r2, #255 @ 0xff
  53960. 80162c6: 711a strb r2, [r3, #4]
  53961. }
  53962. }
  53963. 80162c8: 3714 adds r7, #20
  53964. 80162ca: 46bd mov sp, r7
  53965. 80162cc: bd90 pop {r4, r7, pc}
  53966. 80162ce: bf00 nop
  53967. 80162d0: 0802cf24 .word 0x0802cf24
  53968. 80162d4: 0802d108 .word 0x0802d108
  53969. 80162d8: 0802cf68 .word 0x0802cf68
  53970. 80162dc: 08015c2d .word 0x08015c2d
  53971. 080162e0 <lwip_netconn_do_newconn>:
  53972. *
  53973. * @param m the api_msg describing the connection type
  53974. */
  53975. void
  53976. lwip_netconn_do_newconn(void *m)
  53977. {
  53978. 80162e0: b580 push {r7, lr}
  53979. 80162e2: b084 sub sp, #16
  53980. 80162e4: af00 add r7, sp, #0
  53981. 80162e6: 6078 str r0, [r7, #4]
  53982. struct api_msg *msg = (struct api_msg *)m;
  53983. 80162e8: 687b ldr r3, [r7, #4]
  53984. 80162ea: 60fb str r3, [r7, #12]
  53985. msg->err = ERR_OK;
  53986. 80162ec: 68fb ldr r3, [r7, #12]
  53987. 80162ee: 2200 movs r2, #0
  53988. 80162f0: 711a strb r2, [r3, #4]
  53989. if (msg->conn->pcb.tcp == NULL) {
  53990. 80162f2: 68fb ldr r3, [r7, #12]
  53991. 80162f4: 681b ldr r3, [r3, #0]
  53992. 80162f6: 685b ldr r3, [r3, #4]
  53993. 80162f8: 2b00 cmp r3, #0
  53994. 80162fa: d102 bne.n 8016302 <lwip_netconn_do_newconn+0x22>
  53995. pcb_new(msg);
  53996. 80162fc: 68f8 ldr r0, [r7, #12]
  53997. 80162fe: f7ff ff85 bl 801620c <pcb_new>
  53998. /* Else? This "new" connection already has a PCB allocated. */
  53999. /* Is this an error condition? Should it be deleted? */
  54000. /* We currently just are happy and return. */
  54001. TCPIP_APIMSG_ACK(msg);
  54002. }
  54003. 8016302: bf00 nop
  54004. 8016304: 3710 adds r7, #16
  54005. 8016306: 46bd mov sp, r7
  54006. 8016308: bd80 pop {r7, pc}
  54007. ...
  54008. 0801630c <netconn_alloc>:
  54009. * @return a newly allocated struct netconn or
  54010. * NULL on memory error
  54011. */
  54012. struct netconn *
  54013. netconn_alloc(enum netconn_type t, netconn_callback callback)
  54014. {
  54015. 801630c: b580 push {r7, lr}
  54016. 801630e: b086 sub sp, #24
  54017. 8016310: af00 add r7, sp, #0
  54018. 8016312: 4603 mov r3, r0
  54019. 8016314: 6039 str r1, [r7, #0]
  54020. 8016316: 71fb strb r3, [r7, #7]
  54021. struct netconn *conn;
  54022. int size;
  54023. u8_t init_flags = 0;
  54024. 8016318: 2300 movs r3, #0
  54025. 801631a: 74fb strb r3, [r7, #19]
  54026. conn = (struct netconn *)memp_malloc(MEMP_NETCONN);
  54027. 801631c: 2007 movs r0, #7
  54028. 801631e: f003 f981 bl 8019624 <memp_malloc>
  54029. 8016322: 60f8 str r0, [r7, #12]
  54030. if (conn == NULL) {
  54031. 8016324: 68fb ldr r3, [r7, #12]
  54032. 8016326: 2b00 cmp r3, #0
  54033. 8016328: d101 bne.n 801632e <netconn_alloc+0x22>
  54034. return NULL;
  54035. 801632a: 2300 movs r3, #0
  54036. 801632c: e05c b.n 80163e8 <netconn_alloc+0xdc>
  54037. }
  54038. conn->pending_err = ERR_OK;
  54039. 801632e: 68fb ldr r3, [r7, #12]
  54040. 8016330: 2200 movs r2, #0
  54041. 8016332: 721a strb r2, [r3, #8]
  54042. conn->type = t;
  54043. 8016334: 68fb ldr r3, [r7, #12]
  54044. 8016336: 79fa ldrb r2, [r7, #7]
  54045. 8016338: 701a strb r2, [r3, #0]
  54046. conn->pcb.tcp = NULL;
  54047. 801633a: 68fb ldr r3, [r7, #12]
  54048. 801633c: 2200 movs r2, #0
  54049. 801633e: 605a str r2, [r3, #4]
  54050. /* If all sizes are the same, every compiler should optimize this switch to nothing */
  54051. switch (NETCONNTYPE_GROUP(t)) {
  54052. 8016340: 79fb ldrb r3, [r7, #7]
  54053. 8016342: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54054. 8016346: 2b10 cmp r3, #16
  54055. 8016348: d004 beq.n 8016354 <netconn_alloc+0x48>
  54056. 801634a: 2b20 cmp r3, #32
  54057. 801634c: d105 bne.n 801635a <netconn_alloc+0x4e>
  54058. size = DEFAULT_RAW_RECVMBOX_SIZE;
  54059. break;
  54060. #endif /* LWIP_RAW */
  54061. #if LWIP_UDP
  54062. case NETCONN_UDP:
  54063. size = DEFAULT_UDP_RECVMBOX_SIZE;
  54064. 801634e: 2306 movs r3, #6
  54065. 8016350: 617b str r3, [r7, #20]
  54066. #if LWIP_NETBUF_RECVINFO
  54067. init_flags |= NETCONN_FLAG_PKTINFO;
  54068. #endif /* LWIP_NETBUF_RECVINFO */
  54069. break;
  54070. 8016352: e00a b.n 801636a <netconn_alloc+0x5e>
  54071. #endif /* LWIP_UDP */
  54072. #if LWIP_TCP
  54073. case NETCONN_TCP:
  54074. size = DEFAULT_TCP_RECVMBOX_SIZE;
  54075. 8016354: 2306 movs r3, #6
  54076. 8016356: 617b str r3, [r7, #20]
  54077. break;
  54078. 8016358: e007 b.n 801636a <netconn_alloc+0x5e>
  54079. #endif /* LWIP_TCP */
  54080. default:
  54081. LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0);
  54082. 801635a: 4b25 ldr r3, [pc, #148] @ (80163f0 <netconn_alloc+0xe4>)
  54083. 801635c: f240 22e5 movw r2, #741 @ 0x2e5
  54084. 8016360: 4924 ldr r1, [pc, #144] @ (80163f4 <netconn_alloc+0xe8>)
  54085. 8016362: 4825 ldr r0, [pc, #148] @ (80163f8 <netconn_alloc+0xec>)
  54086. 8016364: f013 fb3a bl 80299dc <iprintf>
  54087. goto free_and_return;
  54088. 8016368: e039 b.n 80163de <netconn_alloc+0xd2>
  54089. }
  54090. if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) {
  54091. 801636a: 68fb ldr r3, [r7, #12]
  54092. 801636c: 3310 adds r3, #16
  54093. 801636e: 6979 ldr r1, [r7, #20]
  54094. 8016370: 4618 mov r0, r3
  54095. 8016372: f00f ff05 bl 8026180 <sys_mbox_new>
  54096. 8016376: 4603 mov r3, r0
  54097. 8016378: 2b00 cmp r3, #0
  54098. 801637a: d12f bne.n 80163dc <netconn_alloc+0xd0>
  54099. goto free_and_return;
  54100. }
  54101. #if !LWIP_NETCONN_SEM_PER_THREAD
  54102. if (sys_sem_new(&conn->op_completed, 0) != ERR_OK) {
  54103. 801637c: 68fb ldr r3, [r7, #12]
  54104. 801637e: 330c adds r3, #12
  54105. 8016380: 2100 movs r1, #0
  54106. 8016382: 4618 mov r0, r3
  54107. 8016384: f00f ffa8 bl 80262d8 <sys_sem_new>
  54108. 8016388: 4603 mov r3, r0
  54109. 801638a: 2b00 cmp r3, #0
  54110. 801638c: d005 beq.n 801639a <netconn_alloc+0x8e>
  54111. sys_mbox_free(&conn->recvmbox);
  54112. 801638e: 68fb ldr r3, [r7, #12]
  54113. 8016390: 3310 adds r3, #16
  54114. 8016392: 4618 mov r0, r3
  54115. 8016394: f00f ff0e bl 80261b4 <sys_mbox_free>
  54116. goto free_and_return;
  54117. 8016398: e021 b.n 80163de <netconn_alloc+0xd2>
  54118. }
  54119. #endif
  54120. #if LWIP_TCP
  54121. sys_mbox_set_invalid(&conn->acceptmbox);
  54122. 801639a: 68fb ldr r3, [r7, #12]
  54123. 801639c: 3314 adds r3, #20
  54124. 801639e: 4618 mov r0, r3
  54125. 80163a0: f00f ff8d bl 80262be <sys_mbox_set_invalid>
  54126. #endif
  54127. conn->state = NETCONN_NONE;
  54128. 80163a4: 68fb ldr r3, [r7, #12]
  54129. 80163a6: 2200 movs r2, #0
  54130. 80163a8: 705a strb r2, [r3, #1]
  54131. #if LWIP_SOCKET
  54132. /* initialize socket to -1 since 0 is a valid socket */
  54133. conn->socket = -1;
  54134. 80163aa: 68fb ldr r3, [r7, #12]
  54135. 80163ac: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  54136. 80163b0: 619a str r2, [r3, #24]
  54137. #endif /* LWIP_SOCKET */
  54138. conn->callback = callback;
  54139. 80163b2: 68fb ldr r3, [r7, #12]
  54140. 80163b4: 683a ldr r2, [r7, #0]
  54141. 80163b6: 631a str r2, [r3, #48] @ 0x30
  54142. #if LWIP_TCP
  54143. conn->current_msg = NULL;
  54144. 80163b8: 68fb ldr r3, [r7, #12]
  54145. 80163ba: 2200 movs r2, #0
  54146. 80163bc: 62da str r2, [r3, #44] @ 0x2c
  54147. #endif /* LWIP_TCP */
  54148. #if LWIP_SO_SNDTIMEO
  54149. conn->send_timeout = 0;
  54150. #endif /* LWIP_SO_SNDTIMEO */
  54151. #if LWIP_SO_RCVTIMEO
  54152. conn->recv_timeout = 0;
  54153. 80163be: 68fb ldr r3, [r7, #12]
  54154. 80163c0: 2200 movs r2, #0
  54155. 80163c2: 61da str r2, [r3, #28]
  54156. #endif /* LWIP_SO_RCVTIMEO */
  54157. #if LWIP_SO_RCVBUF
  54158. conn->recv_bufsize = RECV_BUFSIZE_DEFAULT;
  54159. 80163c4: 68fb ldr r3, [r7, #12]
  54160. 80163c6: 4a0d ldr r2, [pc, #52] @ (80163fc <netconn_alloc+0xf0>)
  54161. 80163c8: 621a str r2, [r3, #32]
  54162. conn->recv_avail = 0;
  54163. 80163ca: 68fb ldr r3, [r7, #12]
  54164. 80163cc: 2200 movs r2, #0
  54165. 80163ce: 625a str r2, [r3, #36] @ 0x24
  54166. #endif /* LWIP_SO_RCVBUF */
  54167. #if LWIP_SO_LINGER
  54168. conn->linger = -1;
  54169. #endif /* LWIP_SO_LINGER */
  54170. conn->flags = init_flags;
  54171. 80163d0: 68fb ldr r3, [r7, #12]
  54172. 80163d2: 7cfa ldrb r2, [r7, #19]
  54173. 80163d4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54174. return conn;
  54175. 80163d8: 68fb ldr r3, [r7, #12]
  54176. 80163da: e005 b.n 80163e8 <netconn_alloc+0xdc>
  54177. goto free_and_return;
  54178. 80163dc: bf00 nop
  54179. free_and_return:
  54180. memp_free(MEMP_NETCONN, conn);
  54181. 80163de: 68f9 ldr r1, [r7, #12]
  54182. 80163e0: 2007 movs r0, #7
  54183. 80163e2: f003 f995 bl 8019710 <memp_free>
  54184. return NULL;
  54185. 80163e6: 2300 movs r3, #0
  54186. }
  54187. 80163e8: 4618 mov r0, r3
  54188. 80163ea: 3718 adds r7, #24
  54189. 80163ec: 46bd mov sp, r7
  54190. 80163ee: bd80 pop {r7, pc}
  54191. 80163f0: 0802cf24 .word 0x0802cf24
  54192. 80163f4: 0802d128 .word 0x0802d128
  54193. 80163f8: 0802cf68 .word 0x0802cf68
  54194. 80163fc: 77359400 .word 0x77359400
  54195. 08016400 <netconn_free>:
  54196. *
  54197. * @param conn the netconn to free
  54198. */
  54199. void
  54200. netconn_free(struct netconn *conn)
  54201. {
  54202. 8016400: b580 push {r7, lr}
  54203. 8016402: b082 sub sp, #8
  54204. 8016404: af00 add r7, sp, #0
  54205. 8016406: 6078 str r0, [r7, #4]
  54206. LWIP_ASSERT("PCB must be deallocated outside this function", conn->pcb.tcp == NULL);
  54207. 8016408: 687b ldr r3, [r7, #4]
  54208. 801640a: 685b ldr r3, [r3, #4]
  54209. 801640c: 2b00 cmp r3, #0
  54210. 801640e: d006 beq.n 801641e <netconn_free+0x1e>
  54211. 8016410: 4b1b ldr r3, [pc, #108] @ (8016480 <netconn_free+0x80>)
  54212. 8016412: f44f 7247 mov.w r2, #796 @ 0x31c
  54213. 8016416: 491b ldr r1, [pc, #108] @ (8016484 <netconn_free+0x84>)
  54214. 8016418: 481b ldr r0, [pc, #108] @ (8016488 <netconn_free+0x88>)
  54215. 801641a: f013 fadf bl 80299dc <iprintf>
  54216. #if LWIP_NETCONN_FULLDUPLEX
  54217. /* in fullduplex, netconn is drained here */
  54218. netconn_drain(conn);
  54219. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54220. LWIP_ASSERT("recvmbox must be deallocated before calling this function",
  54221. 801641e: 687b ldr r3, [r7, #4]
  54222. 8016420: 3310 adds r3, #16
  54223. 8016422: 4618 mov r0, r3
  54224. 8016424: f00f ff3a bl 802629c <sys_mbox_valid>
  54225. 8016428: 4603 mov r3, r0
  54226. 801642a: 2b00 cmp r3, #0
  54227. 801642c: d006 beq.n 801643c <netconn_free+0x3c>
  54228. 801642e: 4b14 ldr r3, [pc, #80] @ (8016480 <netconn_free+0x80>)
  54229. 8016430: f240 3223 movw r2, #803 @ 0x323
  54230. 8016434: 4915 ldr r1, [pc, #84] @ (801648c <netconn_free+0x8c>)
  54231. 8016436: 4814 ldr r0, [pc, #80] @ (8016488 <netconn_free+0x88>)
  54232. 8016438: f013 fad0 bl 80299dc <iprintf>
  54233. !sys_mbox_valid(&conn->recvmbox));
  54234. #if LWIP_TCP
  54235. LWIP_ASSERT("acceptmbox must be deallocated before calling this function",
  54236. 801643c: 687b ldr r3, [r7, #4]
  54237. 801643e: 3314 adds r3, #20
  54238. 8016440: 4618 mov r0, r3
  54239. 8016442: f00f ff2b bl 802629c <sys_mbox_valid>
  54240. 8016446: 4603 mov r3, r0
  54241. 8016448: 2b00 cmp r3, #0
  54242. 801644a: d006 beq.n 801645a <netconn_free+0x5a>
  54243. 801644c: 4b0c ldr r3, [pc, #48] @ (8016480 <netconn_free+0x80>)
  54244. 801644e: f240 3226 movw r2, #806 @ 0x326
  54245. 8016452: 490f ldr r1, [pc, #60] @ (8016490 <netconn_free+0x90>)
  54246. 8016454: 480c ldr r0, [pc, #48] @ (8016488 <netconn_free+0x88>)
  54247. 8016456: f013 fac1 bl 80299dc <iprintf>
  54248. !sys_mbox_valid(&conn->acceptmbox));
  54249. #endif /* LWIP_TCP */
  54250. #if !LWIP_NETCONN_SEM_PER_THREAD
  54251. sys_sem_free(&conn->op_completed);
  54252. 801645a: 687b ldr r3, [r7, #4]
  54253. 801645c: 330c adds r3, #12
  54254. 801645e: 4618 mov r0, r3
  54255. 8016460: f00f ff9d bl 802639e <sys_sem_free>
  54256. sys_sem_set_invalid(&conn->op_completed);
  54257. 8016464: 687b ldr r3, [r7, #4]
  54258. 8016466: 330c adds r3, #12
  54259. 8016468: 4618 mov r0, r3
  54260. 801646a: f00f ffb6 bl 80263da <sys_sem_set_invalid>
  54261. #endif
  54262. memp_free(MEMP_NETCONN, conn);
  54263. 801646e: 6879 ldr r1, [r7, #4]
  54264. 8016470: 2007 movs r0, #7
  54265. 8016472: f003 f94d bl 8019710 <memp_free>
  54266. }
  54267. 8016476: bf00 nop
  54268. 8016478: 3708 adds r7, #8
  54269. 801647a: 46bd mov sp, r7
  54270. 801647c: bd80 pop {r7, pc}
  54271. 801647e: bf00 nop
  54272. 8016480: 0802cf24 .word 0x0802cf24
  54273. 8016484: 0802d150 .word 0x0802d150
  54274. 8016488: 0802cf68 .word 0x0802cf68
  54275. 801648c: 0802d180 .word 0x0802d180
  54276. 8016490: 0802d1bc .word 0x0802d1bc
  54277. 08016494 <netconn_drain>:
  54278. * @bytes_drained bytes drained from recvmbox
  54279. * @accepts_drained pending connections drained from acceptmbox
  54280. */
  54281. static void
  54282. netconn_drain(struct netconn *conn)
  54283. {
  54284. 8016494: b580 push {r7, lr}
  54285. 8016496: b086 sub sp, #24
  54286. 8016498: af00 add r7, sp, #0
  54287. 801649a: 6078 str r0, [r7, #4]
  54288. #if LWIP_NETCONN_FULLDUPLEX
  54289. LWIP_ASSERT("netconn marked closed", conn->flags & NETCONN_FLAG_MBOXINVALID);
  54290. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54291. /* Delete and drain the recvmbox. */
  54292. if (sys_mbox_valid(&conn->recvmbox)) {
  54293. 801649c: 687b ldr r3, [r7, #4]
  54294. 801649e: 3310 adds r3, #16
  54295. 80164a0: 4618 mov r0, r3
  54296. 80164a2: f00f fefb bl 802629c <sys_mbox_valid>
  54297. 80164a6: 4603 mov r3, r0
  54298. 80164a8: 2b00 cmp r3, #0
  54299. 80164aa: d02f beq.n 801650c <netconn_drain+0x78>
  54300. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  54301. 80164ac: e018 b.n 80164e0 <netconn_drain+0x4c>
  54302. #if LWIP_NETCONN_FULLDUPLEX
  54303. if (!lwip_netconn_is_deallocated_msg(mem))
  54304. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54305. {
  54306. #if LWIP_TCP
  54307. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) {
  54308. 80164ae: 687b ldr r3, [r7, #4]
  54309. 80164b0: 781b ldrb r3, [r3, #0]
  54310. 80164b2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54311. 80164b6: 2b10 cmp r3, #16
  54312. 80164b8: d10e bne.n 80164d8 <netconn_drain+0x44>
  54313. err_t err;
  54314. if (!lwip_netconn_is_err_msg(mem, &err)) {
  54315. 80164ba: 693b ldr r3, [r7, #16]
  54316. 80164bc: f107 020f add.w r2, r7, #15
  54317. 80164c0: 4611 mov r1, r2
  54318. 80164c2: 4618 mov r0, r3
  54319. 80164c4: f7ff fb78 bl 8015bb8 <lwip_netconn_is_err_msg>
  54320. 80164c8: 4603 mov r3, r0
  54321. 80164ca: 2b00 cmp r3, #0
  54322. 80164cc: d108 bne.n 80164e0 <netconn_drain+0x4c>
  54323. pbuf_free((struct pbuf *)mem);
  54324. 80164ce: 693b ldr r3, [r7, #16]
  54325. 80164d0: 4618 mov r0, r3
  54326. 80164d2: f004 f80b bl 801a4ec <pbuf_free>
  54327. 80164d6: e003 b.n 80164e0 <netconn_drain+0x4c>
  54328. }
  54329. } else
  54330. #endif /* LWIP_TCP */
  54331. {
  54332. netbuf_delete((struct netbuf *)mem);
  54333. 80164d8: 693b ldr r3, [r7, #16]
  54334. 80164da: 4618 mov r0, r3
  54335. 80164dc: f001 f81c bl 8017518 <netbuf_delete>
  54336. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  54337. 80164e0: 687b ldr r3, [r7, #4]
  54338. 80164e2: 3310 adds r3, #16
  54339. 80164e4: f107 0210 add.w r2, r7, #16
  54340. 80164e8: 4611 mov r1, r2
  54341. 80164ea: 4618 mov r0, r3
  54342. 80164ec: f00f febf bl 802626e <sys_arch_mbox_tryfetch>
  54343. 80164f0: 4603 mov r3, r0
  54344. 80164f2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54345. 80164f6: d1da bne.n 80164ae <netconn_drain+0x1a>
  54346. }
  54347. }
  54348. }
  54349. sys_mbox_free(&conn->recvmbox);
  54350. 80164f8: 687b ldr r3, [r7, #4]
  54351. 80164fa: 3310 adds r3, #16
  54352. 80164fc: 4618 mov r0, r3
  54353. 80164fe: f00f fe59 bl 80261b4 <sys_mbox_free>
  54354. sys_mbox_set_invalid(&conn->recvmbox);
  54355. 8016502: 687b ldr r3, [r7, #4]
  54356. 8016504: 3310 adds r3, #16
  54357. 8016506: 4618 mov r0, r3
  54358. 8016508: f00f fed9 bl 80262be <sys_mbox_set_invalid>
  54359. }
  54360. /* Delete and drain the acceptmbox. */
  54361. #if LWIP_TCP
  54362. if (sys_mbox_valid(&conn->acceptmbox)) {
  54363. 801650c: 687b ldr r3, [r7, #4]
  54364. 801650e: 3314 adds r3, #20
  54365. 8016510: 4618 mov r0, r3
  54366. 8016512: f00f fec3 bl 802629c <sys_mbox_valid>
  54367. 8016516: 4603 mov r3, r0
  54368. 8016518: 2b00 cmp r3, #0
  54369. 801651a: d034 beq.n 8016586 <netconn_drain+0xf2>
  54370. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  54371. 801651c: e01d b.n 801655a <netconn_drain+0xc6>
  54372. #if LWIP_NETCONN_FULLDUPLEX
  54373. if (!lwip_netconn_is_deallocated_msg(mem))
  54374. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54375. {
  54376. err_t err;
  54377. if (!lwip_netconn_is_err_msg(mem, &err)) {
  54378. 801651e: 693b ldr r3, [r7, #16]
  54379. 8016520: f107 020e add.w r2, r7, #14
  54380. 8016524: 4611 mov r1, r2
  54381. 8016526: 4618 mov r0, r3
  54382. 8016528: f7ff fb46 bl 8015bb8 <lwip_netconn_is_err_msg>
  54383. 801652c: 4603 mov r3, r0
  54384. 801652e: 2b00 cmp r3, #0
  54385. 8016530: d113 bne.n 801655a <netconn_drain+0xc6>
  54386. struct netconn *newconn = (struct netconn *)mem;
  54387. 8016532: 693b ldr r3, [r7, #16]
  54388. 8016534: 617b str r3, [r7, #20]
  54389. /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
  54390. /* pcb might be set to NULL already by err_tcp() */
  54391. /* drain recvmbox */
  54392. netconn_drain(newconn);
  54393. 8016536: 6978 ldr r0, [r7, #20]
  54394. 8016538: f7ff ffac bl 8016494 <netconn_drain>
  54395. if (newconn->pcb.tcp != NULL) {
  54396. 801653c: 697b ldr r3, [r7, #20]
  54397. 801653e: 685b ldr r3, [r3, #4]
  54398. 8016540: 2b00 cmp r3, #0
  54399. 8016542: d007 beq.n 8016554 <netconn_drain+0xc0>
  54400. tcp_abort(newconn->pcb.tcp);
  54401. 8016544: 697b ldr r3, [r7, #20]
  54402. 8016546: 685b ldr r3, [r3, #4]
  54403. 8016548: 4618 mov r0, r3
  54404. 801654a: f004 fdd5 bl 801b0f8 <tcp_abort>
  54405. newconn->pcb.tcp = NULL;
  54406. 801654e: 697b ldr r3, [r7, #20]
  54407. 8016550: 2200 movs r2, #0
  54408. 8016552: 605a str r2, [r3, #4]
  54409. }
  54410. netconn_free(newconn);
  54411. 8016554: 6978 ldr r0, [r7, #20]
  54412. 8016556: f7ff ff53 bl 8016400 <netconn_free>
  54413. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  54414. 801655a: 687b ldr r3, [r7, #4]
  54415. 801655c: 3314 adds r3, #20
  54416. 801655e: f107 0210 add.w r2, r7, #16
  54417. 8016562: 4611 mov r1, r2
  54418. 8016564: 4618 mov r0, r3
  54419. 8016566: f00f fe82 bl 802626e <sys_arch_mbox_tryfetch>
  54420. 801656a: 4603 mov r3, r0
  54421. 801656c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54422. 8016570: d1d5 bne.n 801651e <netconn_drain+0x8a>
  54423. }
  54424. }
  54425. }
  54426. sys_mbox_free(&conn->acceptmbox);
  54427. 8016572: 687b ldr r3, [r7, #4]
  54428. 8016574: 3314 adds r3, #20
  54429. 8016576: 4618 mov r0, r3
  54430. 8016578: f00f fe1c bl 80261b4 <sys_mbox_free>
  54431. sys_mbox_set_invalid(&conn->acceptmbox);
  54432. 801657c: 687b ldr r3, [r7, #4]
  54433. 801657e: 3314 adds r3, #20
  54434. 8016580: 4618 mov r0, r3
  54435. 8016582: f00f fe9c bl 80262be <sys_mbox_set_invalid>
  54436. }
  54437. #endif /* LWIP_TCP */
  54438. }
  54439. 8016586: bf00 nop
  54440. 8016588: 3718 adds r7, #24
  54441. 801658a: 46bd mov sp, r7
  54442. 801658c: bd80 pop {r7, pc}
  54443. ...
  54444. 08016590 <lwip_netconn_do_close_internal>:
  54445. *
  54446. * @param conn the TCP netconn to close
  54447. */
  54448. static err_t
  54449. lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM)
  54450. {
  54451. 8016590: b580 push {r7, lr}
  54452. 8016592: b086 sub sp, #24
  54453. 8016594: af00 add r7, sp, #0
  54454. 8016596: 6078 str r0, [r7, #4]
  54455. 8016598: 460b mov r3, r1
  54456. 801659a: 70fb strb r3, [r7, #3]
  54457. err_t err;
  54458. u8_t shut, shut_rx, shut_tx, shut_close;
  54459. u8_t close_finished = 0;
  54460. 801659c: 2300 movs r3, #0
  54461. 801659e: 757b strb r3, [r7, #21]
  54462. struct tcp_pcb *tpcb;
  54463. #if LWIP_SO_LINGER
  54464. u8_t linger_wait_required = 0;
  54465. #endif /* LWIP_SO_LINGER */
  54466. LWIP_ASSERT("invalid conn", (conn != NULL));
  54467. 80165a0: 687b ldr r3, [r7, #4]
  54468. 80165a2: 2b00 cmp r3, #0
  54469. 80165a4: d106 bne.n 80165b4 <lwip_netconn_do_close_internal+0x24>
  54470. 80165a6: 4b87 ldr r3, [pc, #540] @ (80167c4 <lwip_netconn_do_close_internal+0x234>)
  54471. 80165a8: f240 32a2 movw r2, #930 @ 0x3a2
  54472. 80165ac: 4986 ldr r1, [pc, #536] @ (80167c8 <lwip_netconn_do_close_internal+0x238>)
  54473. 80165ae: 4887 ldr r0, [pc, #540] @ (80167cc <lwip_netconn_do_close_internal+0x23c>)
  54474. 80165b0: f013 fa14 bl 80299dc <iprintf>
  54475. LWIP_ASSERT("this is for tcp netconns only", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP));
  54476. 80165b4: 687b ldr r3, [r7, #4]
  54477. 80165b6: 781b ldrb r3, [r3, #0]
  54478. 80165b8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54479. 80165bc: 2b10 cmp r3, #16
  54480. 80165be: d006 beq.n 80165ce <lwip_netconn_do_close_internal+0x3e>
  54481. 80165c0: 4b80 ldr r3, [pc, #512] @ (80167c4 <lwip_netconn_do_close_internal+0x234>)
  54482. 80165c2: f240 32a3 movw r2, #931 @ 0x3a3
  54483. 80165c6: 4982 ldr r1, [pc, #520] @ (80167d0 <lwip_netconn_do_close_internal+0x240>)
  54484. 80165c8: 4880 ldr r0, [pc, #512] @ (80167cc <lwip_netconn_do_close_internal+0x23c>)
  54485. 80165ca: f013 fa07 bl 80299dc <iprintf>
  54486. LWIP_ASSERT("conn must be in state NETCONN_CLOSE", (conn->state == NETCONN_CLOSE));
  54487. 80165ce: 687b ldr r3, [r7, #4]
  54488. 80165d0: 785b ldrb r3, [r3, #1]
  54489. 80165d2: 2b04 cmp r3, #4
  54490. 80165d4: d006 beq.n 80165e4 <lwip_netconn_do_close_internal+0x54>
  54491. 80165d6: 4b7b ldr r3, [pc, #492] @ (80167c4 <lwip_netconn_do_close_internal+0x234>)
  54492. 80165d8: f44f 7269 mov.w r2, #932 @ 0x3a4
  54493. 80165dc: 497d ldr r1, [pc, #500] @ (80167d4 <lwip_netconn_do_close_internal+0x244>)
  54494. 80165de: 487b ldr r0, [pc, #492] @ (80167cc <lwip_netconn_do_close_internal+0x23c>)
  54495. 80165e0: f013 f9fc bl 80299dc <iprintf>
  54496. LWIP_ASSERT("pcb already closed", (conn->pcb.tcp != NULL));
  54497. 80165e4: 687b ldr r3, [r7, #4]
  54498. 80165e6: 685b ldr r3, [r3, #4]
  54499. 80165e8: 2b00 cmp r3, #0
  54500. 80165ea: d106 bne.n 80165fa <lwip_netconn_do_close_internal+0x6a>
  54501. 80165ec: 4b75 ldr r3, [pc, #468] @ (80167c4 <lwip_netconn_do_close_internal+0x234>)
  54502. 80165ee: f240 32a5 movw r2, #933 @ 0x3a5
  54503. 80165f2: 4979 ldr r1, [pc, #484] @ (80167d8 <lwip_netconn_do_close_internal+0x248>)
  54504. 80165f4: 4875 ldr r0, [pc, #468] @ (80167cc <lwip_netconn_do_close_internal+0x23c>)
  54505. 80165f6: f013 f9f1 bl 80299dc <iprintf>
  54506. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  54507. 80165fa: 687b ldr r3, [r7, #4]
  54508. 80165fc: 6adb ldr r3, [r3, #44] @ 0x2c
  54509. 80165fe: 2b00 cmp r3, #0
  54510. 8016600: d106 bne.n 8016610 <lwip_netconn_do_close_internal+0x80>
  54511. 8016602: 4b70 ldr r3, [pc, #448] @ (80167c4 <lwip_netconn_do_close_internal+0x234>)
  54512. 8016604: f240 32a6 movw r2, #934 @ 0x3a6
  54513. 8016608: 4974 ldr r1, [pc, #464] @ (80167dc <lwip_netconn_do_close_internal+0x24c>)
  54514. 801660a: 4870 ldr r0, [pc, #448] @ (80167cc <lwip_netconn_do_close_internal+0x23c>)
  54515. 801660c: f013 f9e6 bl 80299dc <iprintf>
  54516. tpcb = conn->pcb.tcp;
  54517. 8016610: 687b ldr r3, [r7, #4]
  54518. 8016612: 685b ldr r3, [r3, #4]
  54519. 8016614: 613b str r3, [r7, #16]
  54520. shut = conn->current_msg->msg.sd.shut;
  54521. 8016616: 687b ldr r3, [r7, #4]
  54522. 8016618: 6adb ldr r3, [r3, #44] @ 0x2c
  54523. 801661a: 7a1b ldrb r3, [r3, #8]
  54524. 801661c: 73fb strb r3, [r7, #15]
  54525. shut_rx = shut & NETCONN_SHUT_RD;
  54526. 801661e: 7bfb ldrb r3, [r7, #15]
  54527. 8016620: f003 0301 and.w r3, r3, #1
  54528. 8016624: 73bb strb r3, [r7, #14]
  54529. shut_tx = shut & NETCONN_SHUT_WR;
  54530. 8016626: 7bfb ldrb r3, [r7, #15]
  54531. 8016628: f003 0302 and.w r3, r3, #2
  54532. 801662c: 737b strb r3, [r7, #13]
  54533. /* shutting down both ends is the same as closing
  54534. (also if RD or WR side was shut down before already) */
  54535. if (shut == NETCONN_SHUT_RDWR) {
  54536. 801662e: 7bfb ldrb r3, [r7, #15]
  54537. 8016630: 2b03 cmp r3, #3
  54538. 8016632: d102 bne.n 801663a <lwip_netconn_do_close_internal+0xaa>
  54539. shut_close = 1;
  54540. 8016634: 2301 movs r3, #1
  54541. 8016636: 75bb strb r3, [r7, #22]
  54542. 8016638: e01f b.n 801667a <lwip_netconn_do_close_internal+0xea>
  54543. } else if (shut_rx &&
  54544. 801663a: 7bbb ldrb r3, [r7, #14]
  54545. 801663c: 2b00 cmp r3, #0
  54546. 801663e: d00e beq.n 801665e <lwip_netconn_do_close_internal+0xce>
  54547. ((tpcb->state == FIN_WAIT_1) ||
  54548. 8016640: 693b ldr r3, [r7, #16]
  54549. 8016642: 7d1b ldrb r3, [r3, #20]
  54550. } else if (shut_rx &&
  54551. 8016644: 2b05 cmp r3, #5
  54552. 8016646: d007 beq.n 8016658 <lwip_netconn_do_close_internal+0xc8>
  54553. (tpcb->state == FIN_WAIT_2) ||
  54554. 8016648: 693b ldr r3, [r7, #16]
  54555. 801664a: 7d1b ldrb r3, [r3, #20]
  54556. ((tpcb->state == FIN_WAIT_1) ||
  54557. 801664c: 2b06 cmp r3, #6
  54558. 801664e: d003 beq.n 8016658 <lwip_netconn_do_close_internal+0xc8>
  54559. (tpcb->state == CLOSING))) {
  54560. 8016650: 693b ldr r3, [r7, #16]
  54561. 8016652: 7d1b ldrb r3, [r3, #20]
  54562. (tpcb->state == FIN_WAIT_2) ||
  54563. 8016654: 2b08 cmp r3, #8
  54564. 8016656: d102 bne.n 801665e <lwip_netconn_do_close_internal+0xce>
  54565. shut_close = 1;
  54566. 8016658: 2301 movs r3, #1
  54567. 801665a: 75bb strb r3, [r7, #22]
  54568. 801665c: e00d b.n 801667a <lwip_netconn_do_close_internal+0xea>
  54569. } else if (shut_tx && ((tpcb->flags & TF_RXCLOSED) != 0)) {
  54570. 801665e: 7b7b ldrb r3, [r7, #13]
  54571. 8016660: 2b00 cmp r3, #0
  54572. 8016662: d008 beq.n 8016676 <lwip_netconn_do_close_internal+0xe6>
  54573. 8016664: 693b ldr r3, [r7, #16]
  54574. 8016666: 8b5b ldrh r3, [r3, #26]
  54575. 8016668: f003 0310 and.w r3, r3, #16
  54576. 801666c: 2b00 cmp r3, #0
  54577. 801666e: d002 beq.n 8016676 <lwip_netconn_do_close_internal+0xe6>
  54578. shut_close = 1;
  54579. 8016670: 2301 movs r3, #1
  54580. 8016672: 75bb strb r3, [r7, #22]
  54581. 8016674: e001 b.n 801667a <lwip_netconn_do_close_internal+0xea>
  54582. } else {
  54583. shut_close = 0;
  54584. 8016676: 2300 movs r3, #0
  54585. 8016678: 75bb strb r3, [r7, #22]
  54586. }
  54587. /* Set back some callback pointers */
  54588. if (shut_close) {
  54589. 801667a: 7dbb ldrb r3, [r7, #22]
  54590. 801667c: 2b00 cmp r3, #0
  54591. 801667e: d003 beq.n 8016688 <lwip_netconn_do_close_internal+0xf8>
  54592. tcp_arg(tpcb, NULL);
  54593. 8016680: 2100 movs r1, #0
  54594. 8016682: 6938 ldr r0, [r7, #16]
  54595. 8016684: f005 fd88 bl 801c198 <tcp_arg>
  54596. }
  54597. if (tpcb->state == LISTEN) {
  54598. 8016688: 693b ldr r3, [r7, #16]
  54599. 801668a: 7d1b ldrb r3, [r3, #20]
  54600. 801668c: 2b01 cmp r3, #1
  54601. 801668e: d104 bne.n 801669a <lwip_netconn_do_close_internal+0x10a>
  54602. tcp_accept(tpcb, NULL);
  54603. 8016690: 2100 movs r1, #0
  54604. 8016692: 6938 ldr r0, [r7, #16]
  54605. 8016694: f005 fdfe bl 801c294 <tcp_accept>
  54606. 8016698: e01d b.n 80166d6 <lwip_netconn_do_close_internal+0x146>
  54607. } else {
  54608. /* some callbacks have to be reset if tcp_close is not successful */
  54609. if (shut_rx) {
  54610. 801669a: 7bbb ldrb r3, [r7, #14]
  54611. 801669c: 2b00 cmp r3, #0
  54612. 801669e: d007 beq.n 80166b0 <lwip_netconn_do_close_internal+0x120>
  54613. tcp_recv(tpcb, NULL);
  54614. 80166a0: 2100 movs r1, #0
  54615. 80166a2: 6938 ldr r0, [r7, #16]
  54616. 80166a4: f005 fd8a bl 801c1bc <tcp_recv>
  54617. tcp_accept(tpcb, NULL);
  54618. 80166a8: 2100 movs r1, #0
  54619. 80166aa: 6938 ldr r0, [r7, #16]
  54620. 80166ac: f005 fdf2 bl 801c294 <tcp_accept>
  54621. }
  54622. if (shut_tx) {
  54623. 80166b0: 7b7b ldrb r3, [r7, #13]
  54624. 80166b2: 2b00 cmp r3, #0
  54625. 80166b4: d003 beq.n 80166be <lwip_netconn_do_close_internal+0x12e>
  54626. tcp_sent(tpcb, NULL);
  54627. 80166b6: 2100 movs r1, #0
  54628. 80166b8: 6938 ldr r0, [r7, #16]
  54629. 80166ba: f005 fda3 bl 801c204 <tcp_sent>
  54630. }
  54631. if (shut_close) {
  54632. 80166be: 7dbb ldrb r3, [r7, #22]
  54633. 80166c0: 2b00 cmp r3, #0
  54634. 80166c2: d008 beq.n 80166d6 <lwip_netconn_do_close_internal+0x146>
  54635. tcp_poll(tpcb, NULL, 0);
  54636. 80166c4: 2200 movs r2, #0
  54637. 80166c6: 2100 movs r1, #0
  54638. 80166c8: 6938 ldr r0, [r7, #16]
  54639. 80166ca: f005 fdfb bl 801c2c4 <tcp_poll>
  54640. tcp_err(tpcb, NULL);
  54641. 80166ce: 2100 movs r1, #0
  54642. 80166d0: 6938 ldr r0, [r7, #16]
  54643. 80166d2: f005 fdbb bl 801c24c <tcp_err>
  54644. }
  54645. }
  54646. /* Try to close the connection */
  54647. if (shut_close) {
  54648. 80166d6: 7dbb ldrb r3, [r7, #22]
  54649. 80166d8: 2b00 cmp r3, #0
  54650. 80166da: d005 beq.n 80166e8 <lwip_netconn_do_close_internal+0x158>
  54651. }
  54652. }
  54653. if ((err == ERR_OK) && (tpcb != NULL))
  54654. #endif /* LWIP_SO_LINGER */
  54655. {
  54656. err = tcp_close(tpcb);
  54657. 80166dc: 6938 ldr r0, [r7, #16]
  54658. 80166de: f004 fbbf bl 801ae60 <tcp_close>
  54659. 80166e2: 4603 mov r3, r0
  54660. 80166e4: 75fb strb r3, [r7, #23]
  54661. 80166e6: e007 b.n 80166f8 <lwip_netconn_do_close_internal+0x168>
  54662. }
  54663. } else {
  54664. err = tcp_shutdown(tpcb, shut_rx, shut_tx);
  54665. 80166e8: 7bbb ldrb r3, [r7, #14]
  54666. 80166ea: 7b7a ldrb r2, [r7, #13]
  54667. 80166ec: 4619 mov r1, r3
  54668. 80166ee: 6938 ldr r0, [r7, #16]
  54669. 80166f0: f004 fbe4 bl 801aebc <tcp_shutdown>
  54670. 80166f4: 4603 mov r3, r0
  54671. 80166f6: 75fb strb r3, [r7, #23]
  54672. }
  54673. if (err == ERR_OK) {
  54674. 80166f8: f997 3017 ldrsb.w r3, [r7, #23]
  54675. 80166fc: 2b00 cmp r3, #0
  54676. 80166fe: d102 bne.n 8016706 <lwip_netconn_do_close_internal+0x176>
  54677. close_finished = 1;
  54678. 8016700: 2301 movs r3, #1
  54679. 8016702: 757b strb r3, [r7, #21]
  54680. 8016704: e016 b.n 8016734 <lwip_netconn_do_close_internal+0x1a4>
  54681. close_finished = 0;
  54682. err = ERR_INPROGRESS;
  54683. }
  54684. #endif /* LWIP_SO_LINGER */
  54685. } else {
  54686. if (err == ERR_MEM) {
  54687. 8016706: f997 3017 ldrsb.w r3, [r7, #23]
  54688. 801670a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54689. 801670e: d10f bne.n 8016730 <lwip_netconn_do_close_internal+0x1a0>
  54690. close_timeout = conn->linger * 1000U;
  54691. }
  54692. #endif
  54693. if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= close_timeout) {
  54694. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  54695. if (conn->current_msg->msg.sd.polls_left == 0) {
  54696. 8016710: 687b ldr r3, [r7, #4]
  54697. 8016712: 6adb ldr r3, [r3, #44] @ 0x2c
  54698. 8016714: 7a5b ldrb r3, [r3, #9]
  54699. 8016716: 2b00 cmp r3, #0
  54700. 8016718: d10c bne.n 8016734 <lwip_netconn_do_close_internal+0x1a4>
  54701. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  54702. close_finished = 1;
  54703. 801671a: 2301 movs r3, #1
  54704. 801671c: 757b strb r3, [r7, #21]
  54705. if (shut_close) {
  54706. 801671e: 7dbb ldrb r3, [r7, #22]
  54707. 8016720: 2b00 cmp r3, #0
  54708. 8016722: d007 beq.n 8016734 <lwip_netconn_do_close_internal+0x1a4>
  54709. /* in this case, we want to RST the connection */
  54710. tcp_abort(tpcb);
  54711. 8016724: 6938 ldr r0, [r7, #16]
  54712. 8016726: f004 fce7 bl 801b0f8 <tcp_abort>
  54713. err = ERR_OK;
  54714. 801672a: 2300 movs r3, #0
  54715. 801672c: 75fb strb r3, [r7, #23]
  54716. 801672e: e001 b.n 8016734 <lwip_netconn_do_close_internal+0x1a4>
  54717. }
  54718. }
  54719. } else {
  54720. /* Closing failed for a non-memory error: give up */
  54721. close_finished = 1;
  54722. 8016730: 2301 movs r3, #1
  54723. 8016732: 757b strb r3, [r7, #21]
  54724. }
  54725. }
  54726. if (close_finished) {
  54727. 8016734: 7d7b ldrb r3, [r7, #21]
  54728. 8016736: 2b00 cmp r3, #0
  54729. 8016738: d052 beq.n 80167e0 <lwip_netconn_do_close_internal+0x250>
  54730. /* Closing done (succeeded, non-memory error, nonblocking error or timeout) */
  54731. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  54732. 801673a: 687b ldr r3, [r7, #4]
  54733. 801673c: 6adb ldr r3, [r3, #44] @ 0x2c
  54734. 801673e: 681b ldr r3, [r3, #0]
  54735. 8016740: 330c adds r3, #12
  54736. 8016742: 60bb str r3, [r7, #8]
  54737. conn->current_msg->err = err;
  54738. 8016744: 687b ldr r3, [r7, #4]
  54739. 8016746: 6adb ldr r3, [r3, #44] @ 0x2c
  54740. 8016748: 7dfa ldrb r2, [r7, #23]
  54741. 801674a: 711a strb r2, [r3, #4]
  54742. conn->current_msg = NULL;
  54743. 801674c: 687b ldr r3, [r7, #4]
  54744. 801674e: 2200 movs r2, #0
  54745. 8016750: 62da str r2, [r3, #44] @ 0x2c
  54746. conn->state = NETCONN_NONE;
  54747. 8016752: 687b ldr r3, [r7, #4]
  54748. 8016754: 2200 movs r2, #0
  54749. 8016756: 705a strb r2, [r3, #1]
  54750. if (err == ERR_OK) {
  54751. 8016758: f997 3017 ldrsb.w r3, [r7, #23]
  54752. 801675c: 2b00 cmp r3, #0
  54753. 801675e: d129 bne.n 80167b4 <lwip_netconn_do_close_internal+0x224>
  54754. if (shut_close) {
  54755. 8016760: 7dbb ldrb r3, [r7, #22]
  54756. 8016762: 2b00 cmp r3, #0
  54757. 8016764: d00c beq.n 8016780 <lwip_netconn_do_close_internal+0x1f0>
  54758. /* Set back some callback pointers as conn is going away */
  54759. conn->pcb.tcp = NULL;
  54760. 8016766: 687b ldr r3, [r7, #4]
  54761. 8016768: 2200 movs r2, #0
  54762. 801676a: 605a str r2, [r3, #4]
  54763. /* Trigger select() in socket layer. Make sure everybody notices activity
  54764. on the connection, error first! */
  54765. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  54766. 801676c: 687b ldr r3, [r7, #4]
  54767. 801676e: 6b1b ldr r3, [r3, #48] @ 0x30
  54768. 8016770: 2b00 cmp r3, #0
  54769. 8016772: d005 beq.n 8016780 <lwip_netconn_do_close_internal+0x1f0>
  54770. 8016774: 687b ldr r3, [r7, #4]
  54771. 8016776: 6b1b ldr r3, [r3, #48] @ 0x30
  54772. 8016778: 2200 movs r2, #0
  54773. 801677a: 2104 movs r1, #4
  54774. 801677c: 6878 ldr r0, [r7, #4]
  54775. 801677e: 4798 blx r3
  54776. }
  54777. if (shut_rx) {
  54778. 8016780: 7bbb ldrb r3, [r7, #14]
  54779. 8016782: 2b00 cmp r3, #0
  54780. 8016784: d009 beq.n 801679a <lwip_netconn_do_close_internal+0x20a>
  54781. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  54782. 8016786: 687b ldr r3, [r7, #4]
  54783. 8016788: 6b1b ldr r3, [r3, #48] @ 0x30
  54784. 801678a: 2b00 cmp r3, #0
  54785. 801678c: d005 beq.n 801679a <lwip_netconn_do_close_internal+0x20a>
  54786. 801678e: 687b ldr r3, [r7, #4]
  54787. 8016790: 6b1b ldr r3, [r3, #48] @ 0x30
  54788. 8016792: 2200 movs r2, #0
  54789. 8016794: 2100 movs r1, #0
  54790. 8016796: 6878 ldr r0, [r7, #4]
  54791. 8016798: 4798 blx r3
  54792. }
  54793. if (shut_tx) {
  54794. 801679a: 7b7b ldrb r3, [r7, #13]
  54795. 801679c: 2b00 cmp r3, #0
  54796. 801679e: d009 beq.n 80167b4 <lwip_netconn_do_close_internal+0x224>
  54797. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  54798. 80167a0: 687b ldr r3, [r7, #4]
  54799. 80167a2: 6b1b ldr r3, [r3, #48] @ 0x30
  54800. 80167a4: 2b00 cmp r3, #0
  54801. 80167a6: d005 beq.n 80167b4 <lwip_netconn_do_close_internal+0x224>
  54802. 80167a8: 687b ldr r3, [r7, #4]
  54803. 80167aa: 6b1b ldr r3, [r3, #48] @ 0x30
  54804. 80167ac: 2200 movs r2, #0
  54805. 80167ae: 2102 movs r1, #2
  54806. 80167b0: 6878 ldr r0, [r7, #4]
  54807. 80167b2: 4798 blx r3
  54808. }
  54809. }
  54810. #if LWIP_TCPIP_CORE_LOCKING
  54811. if (delayed)
  54812. 80167b4: 78fb ldrb r3, [r7, #3]
  54813. 80167b6: 2b00 cmp r3, #0
  54814. 80167b8: d002 beq.n 80167c0 <lwip_netconn_do_close_internal+0x230>
  54815. #endif
  54816. {
  54817. /* wake up the application task */
  54818. sys_sem_signal(op_completed_sem);
  54819. 80167ba: 68b8 ldr r0, [r7, #8]
  54820. 80167bc: f00f fde2 bl 8026384 <sys_sem_signal>
  54821. }
  54822. return ERR_OK;
  54823. 80167c0: 2300 movs r3, #0
  54824. 80167c2: e03c b.n 801683e <lwip_netconn_do_close_internal+0x2ae>
  54825. 80167c4: 0802cf24 .word 0x0802cf24
  54826. 80167c8: 0802d1f8 .word 0x0802d1f8
  54827. 80167cc: 0802cf68 .word 0x0802cf68
  54828. 80167d0: 0802d208 .word 0x0802d208
  54829. 80167d4: 0802d228 .word 0x0802d228
  54830. 80167d8: 0802d24c .word 0x0802d24c
  54831. 80167dc: 0802d08c .word 0x0802d08c
  54832. }
  54833. if (!close_finished) {
  54834. 80167e0: 7d7b ldrb r3, [r7, #21]
  54835. 80167e2: 2b00 cmp r3, #0
  54836. 80167e4: d11e bne.n 8016824 <lwip_netconn_do_close_internal+0x294>
  54837. /* Closing failed and we want to wait: restore some of the callbacks */
  54838. /* Closing of listen pcb will never fail! */
  54839. LWIP_ASSERT("Closing a listen pcb may not fail!", (tpcb->state != LISTEN));
  54840. 80167e6: 693b ldr r3, [r7, #16]
  54841. 80167e8: 7d1b ldrb r3, [r3, #20]
  54842. 80167ea: 2b01 cmp r3, #1
  54843. 80167ec: d106 bne.n 80167fc <lwip_netconn_do_close_internal+0x26c>
  54844. 80167ee: 4b16 ldr r3, [pc, #88] @ (8016848 <lwip_netconn_do_close_internal+0x2b8>)
  54845. 80167f0: f240 4241 movw r2, #1089 @ 0x441
  54846. 80167f4: 4915 ldr r1, [pc, #84] @ (801684c <lwip_netconn_do_close_internal+0x2bc>)
  54847. 80167f6: 4816 ldr r0, [pc, #88] @ (8016850 <lwip_netconn_do_close_internal+0x2c0>)
  54848. 80167f8: f013 f8f0 bl 80299dc <iprintf>
  54849. if (shut_tx) {
  54850. 80167fc: 7b7b ldrb r3, [r7, #13]
  54851. 80167fe: 2b00 cmp r3, #0
  54852. 8016800: d003 beq.n 801680a <lwip_netconn_do_close_internal+0x27a>
  54853. tcp_sent(tpcb, sent_tcp);
  54854. 8016802: 4914 ldr r1, [pc, #80] @ (8016854 <lwip_netconn_do_close_internal+0x2c4>)
  54855. 8016804: 6938 ldr r0, [r7, #16]
  54856. 8016806: f005 fcfd bl 801c204 <tcp_sent>
  54857. }
  54858. /* when waiting for close, set up poll interval to 500ms */
  54859. tcp_poll(tpcb, poll_tcp, 1);
  54860. 801680a: 2201 movs r2, #1
  54861. 801680c: 4912 ldr r1, [pc, #72] @ (8016858 <lwip_netconn_do_close_internal+0x2c8>)
  54862. 801680e: 6938 ldr r0, [r7, #16]
  54863. 8016810: f005 fd58 bl 801c2c4 <tcp_poll>
  54864. tcp_err(tpcb, err_tcp);
  54865. 8016814: 4911 ldr r1, [pc, #68] @ (801685c <lwip_netconn_do_close_internal+0x2cc>)
  54866. 8016816: 6938 ldr r0, [r7, #16]
  54867. 8016818: f005 fd18 bl 801c24c <tcp_err>
  54868. tcp_arg(tpcb, conn);
  54869. 801681c: 6879 ldr r1, [r7, #4]
  54870. 801681e: 6938 ldr r0, [r7, #16]
  54871. 8016820: f005 fcba bl 801c198 <tcp_arg>
  54872. /* don't restore recv callback: we don't want to receive any more data */
  54873. }
  54874. /* If closing didn't succeed, we get called again either
  54875. from poll_tcp or from sent_tcp */
  54876. LWIP_ASSERT("err != ERR_OK", err != ERR_OK);
  54877. 8016824: f997 3017 ldrsb.w r3, [r7, #23]
  54878. 8016828: 2b00 cmp r3, #0
  54879. 801682a: d106 bne.n 801683a <lwip_netconn_do_close_internal+0x2aa>
  54880. 801682c: 4b06 ldr r3, [pc, #24] @ (8016848 <lwip_netconn_do_close_internal+0x2b8>)
  54881. 801682e: f240 424d movw r2, #1101 @ 0x44d
  54882. 8016832: 490b ldr r1, [pc, #44] @ (8016860 <lwip_netconn_do_close_internal+0x2d0>)
  54883. 8016834: 4806 ldr r0, [pc, #24] @ (8016850 <lwip_netconn_do_close_internal+0x2c0>)
  54884. 8016836: f013 f8d1 bl 80299dc <iprintf>
  54885. return err;
  54886. 801683a: f997 3017 ldrsb.w r3, [r7, #23]
  54887. }
  54888. 801683e: 4618 mov r0, r3
  54889. 8016840: 3718 adds r7, #24
  54890. 8016842: 46bd mov sp, r7
  54891. 8016844: bd80 pop {r7, pc}
  54892. 8016846: bf00 nop
  54893. 8016848: 0802cf24 .word 0x0802cf24
  54894. 801684c: 0802d260 .word 0x0802d260
  54895. 8016850: 0802cf68 .word 0x0802cf68
  54896. 8016854: 08015f59 .word 0x08015f59
  54897. 8016858: 08015e89 .word 0x08015e89
  54898. 801685c: 08016009 .word 0x08016009
  54899. 8016860: 0802d284 .word 0x0802d284
  54900. 08016864 <lwip_netconn_do_delconn>:
  54901. *
  54902. * @param m the api_msg pointing to the connection
  54903. */
  54904. void
  54905. lwip_netconn_do_delconn(void *m)
  54906. {
  54907. 8016864: b580 push {r7, lr}
  54908. 8016866: b084 sub sp, #16
  54909. 8016868: af00 add r7, sp, #0
  54910. 801686a: 6078 str r0, [r7, #4]
  54911. struct api_msg *msg = (struct api_msg *)m;
  54912. 801686c: 687b ldr r3, [r7, #4]
  54913. 801686e: 60fb str r3, [r7, #12]
  54914. enum netconn_state state = msg->conn->state;
  54915. 8016870: 68fb ldr r3, [r7, #12]
  54916. 8016872: 681b ldr r3, [r3, #0]
  54917. 8016874: 785b ldrb r3, [r3, #1]
  54918. 8016876: 72fb strb r3, [r7, #11]
  54919. LWIP_ASSERT("netconn state error", /* this only happens for TCP netconns */
  54920. 8016878: 7afb ldrb r3, [r7, #11]
  54921. 801687a: 2b00 cmp r3, #0
  54922. 801687c: d00d beq.n 801689a <lwip_netconn_do_delconn+0x36>
  54923. 801687e: 68fb ldr r3, [r7, #12]
  54924. 8016880: 681b ldr r3, [r3, #0]
  54925. 8016882: 781b ldrb r3, [r3, #0]
  54926. 8016884: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54927. 8016888: 2b10 cmp r3, #16
  54928. 801688a: d006 beq.n 801689a <lwip_netconn_do_delconn+0x36>
  54929. 801688c: 4b60 ldr r3, [pc, #384] @ (8016a10 <lwip_netconn_do_delconn+0x1ac>)
  54930. 801688e: f240 425e movw r2, #1118 @ 0x45e
  54931. 8016892: 4960 ldr r1, [pc, #384] @ (8016a14 <lwip_netconn_do_delconn+0x1b0>)
  54932. 8016894: 4860 ldr r0, [pc, #384] @ (8016a18 <lwip_netconn_do_delconn+0x1b4>)
  54933. 8016896: f013 f8a1 bl 80299dc <iprintf>
  54934. msg->conn->state = NETCONN_NONE;
  54935. sys_sem_signal(op_completed_sem);
  54936. }
  54937. }
  54938. #else /* LWIP_NETCONN_FULLDUPLEX */
  54939. if (((state != NETCONN_NONE) &&
  54940. 801689a: 7afb ldrb r3, [r7, #11]
  54941. 801689c: 2b00 cmp r3, #0
  54942. 801689e: d005 beq.n 80168ac <lwip_netconn_do_delconn+0x48>
  54943. 80168a0: 7afb ldrb r3, [r7, #11]
  54944. 80168a2: 2b02 cmp r3, #2
  54945. 80168a4: d002 beq.n 80168ac <lwip_netconn_do_delconn+0x48>
  54946. (state != NETCONN_LISTEN) &&
  54947. 80168a6: 7afb ldrb r3, [r7, #11]
  54948. 80168a8: 2b03 cmp r3, #3
  54949. 80168aa: d10a bne.n 80168c2 <lwip_netconn_do_delconn+0x5e>
  54950. (state != NETCONN_CONNECT)) ||
  54951. 80168ac: 7afb ldrb r3, [r7, #11]
  54952. 80168ae: 2b03 cmp r3, #3
  54953. 80168b0: d10b bne.n 80168ca <lwip_netconn_do_delconn+0x66>
  54954. ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) {
  54955. 80168b2: 68fb ldr r3, [r7, #12]
  54956. 80168b4: 681b ldr r3, [r3, #0]
  54957. 80168b6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54958. 80168ba: f003 0304 and.w r3, r3, #4
  54959. 80168be: 2b00 cmp r3, #0
  54960. 80168c0: d103 bne.n 80168ca <lwip_netconn_do_delconn+0x66>
  54961. /* This means either a blocking write or blocking connect is running
  54962. (nonblocking write returns and sets state to NONE) */
  54963. msg->err = ERR_INPROGRESS;
  54964. 80168c2: 68fb ldr r3, [r7, #12]
  54965. 80168c4: 22fb movs r2, #251 @ 0xfb
  54966. 80168c6: 711a strb r2, [r3, #4]
  54967. 80168c8: e096 b.n 80169f8 <lwip_netconn_do_delconn+0x194>
  54968. } else
  54969. #endif /* LWIP_NETCONN_FULLDUPLEX */
  54970. {
  54971. LWIP_ASSERT("blocking connect in progress",
  54972. 80168ca: 7afb ldrb r3, [r7, #11]
  54973. 80168cc: 2b03 cmp r3, #3
  54974. 80168ce: d10e bne.n 80168ee <lwip_netconn_do_delconn+0x8a>
  54975. 80168d0: 68fb ldr r3, [r7, #12]
  54976. 80168d2: 681b ldr r3, [r3, #0]
  54977. 80168d4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54978. 80168d8: f003 0304 and.w r3, r3, #4
  54979. 80168dc: 2b00 cmp r3, #0
  54980. 80168de: d106 bne.n 80168ee <lwip_netconn_do_delconn+0x8a>
  54981. 80168e0: 4b4b ldr r3, [pc, #300] @ (8016a10 <lwip_netconn_do_delconn+0x1ac>)
  54982. 80168e2: f240 427a movw r2, #1146 @ 0x47a
  54983. 80168e6: 494d ldr r1, [pc, #308] @ (8016a1c <lwip_netconn_do_delconn+0x1b8>)
  54984. 80168e8: 484b ldr r0, [pc, #300] @ (8016a18 <lwip_netconn_do_delconn+0x1b4>)
  54985. 80168ea: f013 f877 bl 80299dc <iprintf>
  54986. (state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
  54987. msg->err = ERR_OK;
  54988. 80168ee: 68fb ldr r3, [r7, #12]
  54989. 80168f0: 2200 movs r2, #0
  54990. 80168f2: 711a strb r2, [r3, #4]
  54991. #if LWIP_NETCONN_FULLDUPLEX
  54992. /* Mark mboxes invalid */
  54993. netconn_mark_mbox_invalid(msg->conn);
  54994. #else /* LWIP_NETCONN_FULLDUPLEX */
  54995. netconn_drain(msg->conn);
  54996. 80168f4: 68fb ldr r3, [r7, #12]
  54997. 80168f6: 681b ldr r3, [r3, #0]
  54998. 80168f8: 4618 mov r0, r3
  54999. 80168fa: f7ff fdcb bl 8016494 <netconn_drain>
  55000. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55001. if (msg->conn->pcb.tcp != NULL) {
  55002. 80168fe: 68fb ldr r3, [r7, #12]
  55003. 8016900: 681b ldr r3, [r3, #0]
  55004. 8016902: 685b ldr r3, [r3, #4]
  55005. 8016904: 2b00 cmp r3, #0
  55006. 8016906: d05d beq.n 80169c4 <lwip_netconn_do_delconn+0x160>
  55007. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  55008. 8016908: 68fb ldr r3, [r7, #12]
  55009. 801690a: 681b ldr r3, [r3, #0]
  55010. 801690c: 781b ldrb r3, [r3, #0]
  55011. 801690e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55012. 8016912: 2b10 cmp r3, #16
  55013. 8016914: d00d beq.n 8016932 <lwip_netconn_do_delconn+0xce>
  55014. 8016916: 2b20 cmp r3, #32
  55015. 8016918: d14f bne.n 80169ba <lwip_netconn_do_delconn+0x156>
  55016. raw_remove(msg->conn->pcb.raw);
  55017. break;
  55018. #endif /* LWIP_RAW */
  55019. #if LWIP_UDP
  55020. case NETCONN_UDP:
  55021. msg->conn->pcb.udp->recv_arg = NULL;
  55022. 801691a: 68fb ldr r3, [r7, #12]
  55023. 801691c: 681b ldr r3, [r3, #0]
  55024. 801691e: 685b ldr r3, [r3, #4]
  55025. 8016920: 2200 movs r2, #0
  55026. 8016922: 61da str r2, [r3, #28]
  55027. udp_remove(msg->conn->pcb.udp);
  55028. 8016924: 68fb ldr r3, [r7, #12]
  55029. 8016926: 681b ldr r3, [r3, #0]
  55030. 8016928: 685b ldr r3, [r3, #4]
  55031. 801692a: 4618 mov r0, r3
  55032. 801692c: f00a ffc6 bl 80218bc <udp_remove>
  55033. break;
  55034. 8016930: e044 b.n 80169bc <lwip_netconn_do_delconn+0x158>
  55035. #endif /* LWIP_UDP */
  55036. #if LWIP_TCP
  55037. case NETCONN_TCP:
  55038. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  55039. 8016932: 68fb ldr r3, [r7, #12]
  55040. 8016934: 681b ldr r3, [r3, #0]
  55041. 8016936: 6adb ldr r3, [r3, #44] @ 0x2c
  55042. 8016938: 2b00 cmp r3, #0
  55043. 801693a: d006 beq.n 801694a <lwip_netconn_do_delconn+0xe6>
  55044. 801693c: 4b34 ldr r3, [pc, #208] @ (8016a10 <lwip_netconn_do_delconn+0x1ac>)
  55045. 801693e: f240 4294 movw r2, #1172 @ 0x494
  55046. 8016942: 4937 ldr r1, [pc, #220] @ (8016a20 <lwip_netconn_do_delconn+0x1bc>)
  55047. 8016944: 4834 ldr r0, [pc, #208] @ (8016a18 <lwip_netconn_do_delconn+0x1b4>)
  55048. 8016946: f013 f849 bl 80299dc <iprintf>
  55049. msg->conn->state = NETCONN_CLOSE;
  55050. 801694a: 68fb ldr r3, [r7, #12]
  55051. 801694c: 681b ldr r3, [r3, #0]
  55052. 801694e: 2204 movs r2, #4
  55053. 8016950: 705a strb r2, [r3, #1]
  55054. msg->msg.sd.shut = NETCONN_SHUT_RDWR;
  55055. 8016952: 68fb ldr r3, [r7, #12]
  55056. 8016954: 2203 movs r2, #3
  55057. 8016956: 721a strb r2, [r3, #8]
  55058. msg->conn->current_msg = msg;
  55059. 8016958: 68fb ldr r3, [r7, #12]
  55060. 801695a: 681b ldr r3, [r3, #0]
  55061. 801695c: 68fa ldr r2, [r7, #12]
  55062. 801695e: 62da str r2, [r3, #44] @ 0x2c
  55063. #if LWIP_TCPIP_CORE_LOCKING
  55064. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  55065. 8016960: 68fb ldr r3, [r7, #12]
  55066. 8016962: 681b ldr r3, [r3, #0]
  55067. 8016964: 2100 movs r1, #0
  55068. 8016966: 4618 mov r0, r3
  55069. 8016968: f7ff fe12 bl 8016590 <lwip_netconn_do_close_internal>
  55070. 801696c: 4603 mov r3, r0
  55071. 801696e: 2b00 cmp r3, #0
  55072. 8016970: d049 beq.n 8016a06 <lwip_netconn_do_delconn+0x1a2>
  55073. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  55074. 8016972: 68fb ldr r3, [r7, #12]
  55075. 8016974: 681b ldr r3, [r3, #0]
  55076. 8016976: 785b ldrb r3, [r3, #1]
  55077. 8016978: 2b04 cmp r3, #4
  55078. 801697a: d006 beq.n 801698a <lwip_netconn_do_delconn+0x126>
  55079. 801697c: 4b24 ldr r3, [pc, #144] @ (8016a10 <lwip_netconn_do_delconn+0x1ac>)
  55080. 801697e: f240 429a movw r2, #1178 @ 0x49a
  55081. 8016982: 4928 ldr r1, [pc, #160] @ (8016a24 <lwip_netconn_do_delconn+0x1c0>)
  55082. 8016984: 4824 ldr r0, [pc, #144] @ (8016a18 <lwip_netconn_do_delconn+0x1b4>)
  55083. 8016986: f013 f829 bl 80299dc <iprintf>
  55084. UNLOCK_TCPIP_CORE();
  55085. 801698a: f7f9 fdcd bl 8010528 <sys_unlock_tcpip_core>
  55086. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  55087. 801698e: 68fb ldr r3, [r7, #12]
  55088. 8016990: 681b ldr r3, [r3, #0]
  55089. 8016992: 330c adds r3, #12
  55090. 8016994: 2100 movs r1, #0
  55091. 8016996: 4618 mov r0, r3
  55092. 8016998: f00f fcc3 bl 8026322 <sys_arch_sem_wait>
  55093. LOCK_TCPIP_CORE();
  55094. 801699c: f7f9 fdb4 bl 8010508 <sys_lock_tcpip_core>
  55095. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  55096. 80169a0: 68fb ldr r3, [r7, #12]
  55097. 80169a2: 681b ldr r3, [r3, #0]
  55098. 80169a4: 785b ldrb r3, [r3, #1]
  55099. 80169a6: 2b00 cmp r3, #0
  55100. 80169a8: d02d beq.n 8016a06 <lwip_netconn_do_delconn+0x1a2>
  55101. 80169aa: 4b19 ldr r3, [pc, #100] @ (8016a10 <lwip_netconn_do_delconn+0x1ac>)
  55102. 80169ac: f240 429e movw r2, #1182 @ 0x49e
  55103. 80169b0: 491c ldr r1, [pc, #112] @ (8016a24 <lwip_netconn_do_delconn+0x1c0>)
  55104. 80169b2: 4819 ldr r0, [pc, #100] @ (8016a18 <lwip_netconn_do_delconn+0x1b4>)
  55105. 80169b4: f013 f812 bl 80299dc <iprintf>
  55106. #else /* LWIP_TCPIP_CORE_LOCKING */
  55107. lwip_netconn_do_close_internal(msg->conn);
  55108. #endif /* LWIP_TCPIP_CORE_LOCKING */
  55109. /* API_EVENT is called inside lwip_netconn_do_close_internal, before releasing
  55110. the application thread, so we can return at this point! */
  55111. return;
  55112. 80169b8: e025 b.n 8016a06 <lwip_netconn_do_delconn+0x1a2>
  55113. #endif /* LWIP_TCP */
  55114. default:
  55115. break;
  55116. 80169ba: bf00 nop
  55117. }
  55118. msg->conn->pcb.tcp = NULL;
  55119. 80169bc: 68fb ldr r3, [r7, #12]
  55120. 80169be: 681b ldr r3, [r3, #0]
  55121. 80169c0: 2200 movs r2, #0
  55122. 80169c2: 605a str r2, [r3, #4]
  55123. }
  55124. /* tcp netconns don't come here! */
  55125. /* @todo: this lets select make the socket readable and writable,
  55126. which is wrong! errfd instead? */
  55127. API_EVENT(msg->conn, NETCONN_EVT_RCVPLUS, 0);
  55128. 80169c4: 68fb ldr r3, [r7, #12]
  55129. 80169c6: 681b ldr r3, [r3, #0]
  55130. 80169c8: 6b1b ldr r3, [r3, #48] @ 0x30
  55131. 80169ca: 2b00 cmp r3, #0
  55132. 80169cc: d007 beq.n 80169de <lwip_netconn_do_delconn+0x17a>
  55133. 80169ce: 68fb ldr r3, [r7, #12]
  55134. 80169d0: 681b ldr r3, [r3, #0]
  55135. 80169d2: 6b1b ldr r3, [r3, #48] @ 0x30
  55136. 80169d4: 68fa ldr r2, [r7, #12]
  55137. 80169d6: 6810 ldr r0, [r2, #0]
  55138. 80169d8: 2200 movs r2, #0
  55139. 80169da: 2100 movs r1, #0
  55140. 80169dc: 4798 blx r3
  55141. API_EVENT(msg->conn, NETCONN_EVT_SENDPLUS, 0);
  55142. 80169de: 68fb ldr r3, [r7, #12]
  55143. 80169e0: 681b ldr r3, [r3, #0]
  55144. 80169e2: 6b1b ldr r3, [r3, #48] @ 0x30
  55145. 80169e4: 2b00 cmp r3, #0
  55146. 80169e6: d007 beq.n 80169f8 <lwip_netconn_do_delconn+0x194>
  55147. 80169e8: 68fb ldr r3, [r7, #12]
  55148. 80169ea: 681b ldr r3, [r3, #0]
  55149. 80169ec: 6b1b ldr r3, [r3, #48] @ 0x30
  55150. 80169ee: 68fa ldr r2, [r7, #12]
  55151. 80169f0: 6810 ldr r0, [r2, #0]
  55152. 80169f2: 2200 movs r2, #0
  55153. 80169f4: 2102 movs r1, #2
  55154. 80169f6: 4798 blx r3
  55155. }
  55156. if (sys_sem_valid(LWIP_API_MSG_SEM(msg))) {
  55157. 80169f8: 68fb ldr r3, [r7, #12]
  55158. 80169fa: 681b ldr r3, [r3, #0]
  55159. 80169fc: 330c adds r3, #12
  55160. 80169fe: 4618 mov r0, r3
  55161. 8016a00: f00f fcda bl 80263b8 <sys_sem_valid>
  55162. 8016a04: e000 b.n 8016a08 <lwip_netconn_do_delconn+0x1a4>
  55163. return;
  55164. 8016a06: bf00 nop
  55165. TCPIP_APIMSG_ACK(msg);
  55166. }
  55167. }
  55168. 8016a08: 3710 adds r7, #16
  55169. 8016a0a: 46bd mov sp, r7
  55170. 8016a0c: bd80 pop {r7, pc}
  55171. 8016a0e: bf00 nop
  55172. 8016a10: 0802cf24 .word 0x0802cf24
  55173. 8016a14: 0802d294 .word 0x0802d294
  55174. 8016a18: 0802cf68 .word 0x0802cf68
  55175. 8016a1c: 0802d2a8 .word 0x0802d2a8
  55176. 8016a20: 0802d2c8 .word 0x0802d2c8
  55177. 8016a24: 0802d2e4 .word 0x0802d2e4
  55178. 08016a28 <lwip_netconn_do_connected>:
  55179. *
  55180. * @see tcp.h (struct tcp_pcb.connected) for parameters and return values
  55181. */
  55182. static err_t
  55183. lwip_netconn_do_connected(void *arg, struct tcp_pcb *pcb, err_t err)
  55184. {
  55185. 8016a28: b580 push {r7, lr}
  55186. 8016a2a: b088 sub sp, #32
  55187. 8016a2c: af00 add r7, sp, #0
  55188. 8016a2e: 60f8 str r0, [r7, #12]
  55189. 8016a30: 60b9 str r1, [r7, #8]
  55190. 8016a32: 4613 mov r3, r2
  55191. 8016a34: 71fb strb r3, [r7, #7]
  55192. struct netconn *conn;
  55193. int was_blocking;
  55194. sys_sem_t *op_completed_sem = NULL;
  55195. 8016a36: 2300 movs r3, #0
  55196. 8016a38: 61fb str r3, [r7, #28]
  55197. LWIP_UNUSED_ARG(pcb);
  55198. conn = (struct netconn *)arg;
  55199. 8016a3a: 68fb ldr r3, [r7, #12]
  55200. 8016a3c: 61bb str r3, [r7, #24]
  55201. if (conn == NULL) {
  55202. 8016a3e: 69bb ldr r3, [r7, #24]
  55203. 8016a40: 2b00 cmp r3, #0
  55204. 8016a42: d102 bne.n 8016a4a <lwip_netconn_do_connected+0x22>
  55205. return ERR_VAL;
  55206. 8016a44: f06f 0305 mvn.w r3, #5
  55207. 8016a48: e074 b.n 8016b34 <lwip_netconn_do_connected+0x10c>
  55208. }
  55209. LWIP_ASSERT("conn->state == NETCONN_CONNECT", conn->state == NETCONN_CONNECT);
  55210. 8016a4a: 69bb ldr r3, [r7, #24]
  55211. 8016a4c: 785b ldrb r3, [r3, #1]
  55212. 8016a4e: 2b03 cmp r3, #3
  55213. 8016a50: d006 beq.n 8016a60 <lwip_netconn_do_connected+0x38>
  55214. 8016a52: 4b3a ldr r3, [pc, #232] @ (8016b3c <lwip_netconn_do_connected+0x114>)
  55215. 8016a54: f240 5223 movw r2, #1315 @ 0x523
  55216. 8016a58: 4939 ldr r1, [pc, #228] @ (8016b40 <lwip_netconn_do_connected+0x118>)
  55217. 8016a5a: 483a ldr r0, [pc, #232] @ (8016b44 <lwip_netconn_do_connected+0x11c>)
  55218. 8016a5c: f012 ffbe bl 80299dc <iprintf>
  55219. LWIP_ASSERT("(conn->current_msg != NULL) || conn->in_non_blocking_connect",
  55220. 8016a60: 69bb ldr r3, [r7, #24]
  55221. 8016a62: 6adb ldr r3, [r3, #44] @ 0x2c
  55222. 8016a64: 2b00 cmp r3, #0
  55223. 8016a66: d10d bne.n 8016a84 <lwip_netconn_do_connected+0x5c>
  55224. 8016a68: 69bb ldr r3, [r7, #24]
  55225. 8016a6a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55226. 8016a6e: f003 0304 and.w r3, r3, #4
  55227. 8016a72: 2b00 cmp r3, #0
  55228. 8016a74: d106 bne.n 8016a84 <lwip_netconn_do_connected+0x5c>
  55229. 8016a76: 4b31 ldr r3, [pc, #196] @ (8016b3c <lwip_netconn_do_connected+0x114>)
  55230. 8016a78: f240 5224 movw r2, #1316 @ 0x524
  55231. 8016a7c: 4932 ldr r1, [pc, #200] @ (8016b48 <lwip_netconn_do_connected+0x120>)
  55232. 8016a7e: 4831 ldr r0, [pc, #196] @ (8016b44 <lwip_netconn_do_connected+0x11c>)
  55233. 8016a80: f012 ffac bl 80299dc <iprintf>
  55234. (conn->current_msg != NULL) || IN_NONBLOCKING_CONNECT(conn));
  55235. if (conn->current_msg != NULL) {
  55236. 8016a84: 69bb ldr r3, [r7, #24]
  55237. 8016a86: 6adb ldr r3, [r3, #44] @ 0x2c
  55238. 8016a88: 2b00 cmp r3, #0
  55239. 8016a8a: d008 beq.n 8016a9e <lwip_netconn_do_connected+0x76>
  55240. conn->current_msg->err = err;
  55241. 8016a8c: 69bb ldr r3, [r7, #24]
  55242. 8016a8e: 6adb ldr r3, [r3, #44] @ 0x2c
  55243. 8016a90: 79fa ldrb r2, [r7, #7]
  55244. 8016a92: 711a strb r2, [r3, #4]
  55245. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  55246. 8016a94: 69bb ldr r3, [r7, #24]
  55247. 8016a96: 6adb ldr r3, [r3, #44] @ 0x2c
  55248. 8016a98: 681b ldr r3, [r3, #0]
  55249. 8016a9a: 330c adds r3, #12
  55250. 8016a9c: 61fb str r3, [r7, #28]
  55251. }
  55252. if ((NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) && (err == ERR_OK)) {
  55253. 8016a9e: 69bb ldr r3, [r7, #24]
  55254. 8016aa0: 781b ldrb r3, [r3, #0]
  55255. 8016aa2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55256. 8016aa6: 2b10 cmp r3, #16
  55257. 8016aa8: d106 bne.n 8016ab8 <lwip_netconn_do_connected+0x90>
  55258. 8016aaa: f997 3007 ldrsb.w r3, [r7, #7]
  55259. 8016aae: 2b00 cmp r3, #0
  55260. 8016ab0: d102 bne.n 8016ab8 <lwip_netconn_do_connected+0x90>
  55261. setup_tcp(conn);
  55262. 8016ab2: 69b8 ldr r0, [r7, #24]
  55263. 8016ab4: f7ff fb82 bl 80161bc <setup_tcp>
  55264. }
  55265. was_blocking = !IN_NONBLOCKING_CONNECT(conn);
  55266. 8016ab8: 69bb ldr r3, [r7, #24]
  55267. 8016aba: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55268. 8016abe: f003 0304 and.w r3, r3, #4
  55269. 8016ac2: 2b00 cmp r3, #0
  55270. 8016ac4: bf0c ite eq
  55271. 8016ac6: 2301 moveq r3, #1
  55272. 8016ac8: 2300 movne r3, #0
  55273. 8016aca: b2db uxtb r3, r3
  55274. 8016acc: 617b str r3, [r7, #20]
  55275. SET_NONBLOCKING_CONNECT(conn, 0);
  55276. 8016ace: 69bb ldr r3, [r7, #24]
  55277. 8016ad0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55278. 8016ad4: f023 0304 bic.w r3, r3, #4
  55279. 8016ad8: b2da uxtb r2, r3
  55280. 8016ada: 69bb ldr r3, [r7, #24]
  55281. 8016adc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55282. LWIP_ASSERT("blocking connect state error",
  55283. 8016ae0: 697b ldr r3, [r7, #20]
  55284. 8016ae2: 2b00 cmp r3, #0
  55285. 8016ae4: d002 beq.n 8016aec <lwip_netconn_do_connected+0xc4>
  55286. 8016ae6: 69fb ldr r3, [r7, #28]
  55287. 8016ae8: 2b00 cmp r3, #0
  55288. 8016aea: d10c bne.n 8016b06 <lwip_netconn_do_connected+0xde>
  55289. 8016aec: 697b ldr r3, [r7, #20]
  55290. 8016aee: 2b00 cmp r3, #0
  55291. 8016af0: d102 bne.n 8016af8 <lwip_netconn_do_connected+0xd0>
  55292. 8016af2: 69fb ldr r3, [r7, #28]
  55293. 8016af4: 2b00 cmp r3, #0
  55294. 8016af6: d006 beq.n 8016b06 <lwip_netconn_do_connected+0xde>
  55295. 8016af8: 4b10 ldr r3, [pc, #64] @ (8016b3c <lwip_netconn_do_connected+0x114>)
  55296. 8016afa: f44f 62a6 mov.w r2, #1328 @ 0x530
  55297. 8016afe: 4913 ldr r1, [pc, #76] @ (8016b4c <lwip_netconn_do_connected+0x124>)
  55298. 8016b00: 4810 ldr r0, [pc, #64] @ (8016b44 <lwip_netconn_do_connected+0x11c>)
  55299. 8016b02: f012 ff6b bl 80299dc <iprintf>
  55300. (was_blocking && op_completed_sem != NULL) ||
  55301. (!was_blocking && op_completed_sem == NULL));
  55302. conn->current_msg = NULL;
  55303. 8016b06: 69bb ldr r3, [r7, #24]
  55304. 8016b08: 2200 movs r2, #0
  55305. 8016b0a: 62da str r2, [r3, #44] @ 0x2c
  55306. conn->state = NETCONN_NONE;
  55307. 8016b0c: 69bb ldr r3, [r7, #24]
  55308. 8016b0e: 2200 movs r2, #0
  55309. 8016b10: 705a strb r2, [r3, #1]
  55310. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  55311. 8016b12: 69bb ldr r3, [r7, #24]
  55312. 8016b14: 6b1b ldr r3, [r3, #48] @ 0x30
  55313. 8016b16: 2b00 cmp r3, #0
  55314. 8016b18: d005 beq.n 8016b26 <lwip_netconn_do_connected+0xfe>
  55315. 8016b1a: 69bb ldr r3, [r7, #24]
  55316. 8016b1c: 6b1b ldr r3, [r3, #48] @ 0x30
  55317. 8016b1e: 2200 movs r2, #0
  55318. 8016b20: 2102 movs r1, #2
  55319. 8016b22: 69b8 ldr r0, [r7, #24]
  55320. 8016b24: 4798 blx r3
  55321. if (was_blocking) {
  55322. 8016b26: 697b ldr r3, [r7, #20]
  55323. 8016b28: 2b00 cmp r3, #0
  55324. 8016b2a: d002 beq.n 8016b32 <lwip_netconn_do_connected+0x10a>
  55325. sys_sem_signal(op_completed_sem);
  55326. 8016b2c: 69f8 ldr r0, [r7, #28]
  55327. 8016b2e: f00f fc29 bl 8026384 <sys_sem_signal>
  55328. }
  55329. return ERR_OK;
  55330. 8016b32: 2300 movs r3, #0
  55331. }
  55332. 8016b34: 4618 mov r0, r3
  55333. 8016b36: 3720 adds r7, #32
  55334. 8016b38: 46bd mov sp, r7
  55335. 8016b3a: bd80 pop {r7, pc}
  55336. 8016b3c: 0802cf24 .word 0x0802cf24
  55337. 8016b40: 0802d2ec .word 0x0802d2ec
  55338. 8016b44: 0802cf68 .word 0x0802cf68
  55339. 8016b48: 0802d30c .word 0x0802d30c
  55340. 8016b4c: 0802d34c .word 0x0802d34c
  55341. 08016b50 <lwip_netconn_do_connect>:
  55342. * @param m the api_msg pointing to the connection and containing
  55343. * the IP address and port to connect to
  55344. */
  55345. void
  55346. lwip_netconn_do_connect(void *m)
  55347. {
  55348. 8016b50: b580 push {r7, lr}
  55349. 8016b52: b086 sub sp, #24
  55350. 8016b54: af00 add r7, sp, #0
  55351. 8016b56: 6078 str r0, [r7, #4]
  55352. struct api_msg *msg = (struct api_msg *)m;
  55353. 8016b58: 687b ldr r3, [r7, #4]
  55354. 8016b5a: 613b str r3, [r7, #16]
  55355. err_t err;
  55356. if (msg->conn->pcb.tcp == NULL) {
  55357. 8016b5c: 693b ldr r3, [r7, #16]
  55358. 8016b5e: 681b ldr r3, [r3, #0]
  55359. 8016b60: 685b ldr r3, [r3, #4]
  55360. 8016b62: 2b00 cmp r3, #0
  55361. 8016b64: d102 bne.n 8016b6c <lwip_netconn_do_connect+0x1c>
  55362. /* This may happen when calling netconn_connect() a second time */
  55363. err = ERR_CLSD;
  55364. 8016b66: 23f1 movs r3, #241 @ 0xf1
  55365. 8016b68: 75fb strb r3, [r7, #23]
  55366. 8016b6a: e09e b.n 8016caa <lwip_netconn_do_connect+0x15a>
  55367. } else {
  55368. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  55369. 8016b6c: 693b ldr r3, [r7, #16]
  55370. 8016b6e: 681b ldr r3, [r3, #0]
  55371. 8016b70: 781b ldrb r3, [r3, #0]
  55372. 8016b72: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55373. 8016b76: 2b10 cmp r3, #16
  55374. 8016b78: d00f beq.n 8016b9a <lwip_netconn_do_connect+0x4a>
  55375. 8016b7a: 2b20 cmp r3, #32
  55376. 8016b7c: f040 808a bne.w 8016c94 <lwip_netconn_do_connect+0x144>
  55377. err = raw_connect(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr));
  55378. break;
  55379. #endif /* LWIP_RAW */
  55380. #if LWIP_UDP
  55381. case NETCONN_UDP:
  55382. err = udp_connect(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port);
  55383. 8016b80: 693b ldr r3, [r7, #16]
  55384. 8016b82: 681b ldr r3, [r3, #0]
  55385. 8016b84: 6858 ldr r0, [r3, #4]
  55386. 8016b86: 693b ldr r3, [r7, #16]
  55387. 8016b88: 6899 ldr r1, [r3, #8]
  55388. 8016b8a: 693b ldr r3, [r7, #16]
  55389. 8016b8c: 899b ldrh r3, [r3, #12]
  55390. 8016b8e: 461a mov r2, r3
  55391. 8016b90: f00a fdd8 bl 8021744 <udp_connect>
  55392. 8016b94: 4603 mov r3, r0
  55393. 8016b96: 75fb strb r3, [r7, #23]
  55394. break;
  55395. 8016b98: e087 b.n 8016caa <lwip_netconn_do_connect+0x15a>
  55396. #endif /* LWIP_UDP */
  55397. #if LWIP_TCP
  55398. case NETCONN_TCP:
  55399. /* Prevent connect while doing any other action. */
  55400. if (msg->conn->state == NETCONN_CONNECT) {
  55401. 8016b9a: 693b ldr r3, [r7, #16]
  55402. 8016b9c: 681b ldr r3, [r3, #0]
  55403. 8016b9e: 785b ldrb r3, [r3, #1]
  55404. 8016ba0: 2b03 cmp r3, #3
  55405. 8016ba2: d102 bne.n 8016baa <lwip_netconn_do_connect+0x5a>
  55406. err = ERR_ALREADY;
  55407. 8016ba4: 23f7 movs r3, #247 @ 0xf7
  55408. 8016ba6: 75fb strb r3, [r7, #23]
  55409. #endif /* LWIP_TCPIP_CORE_LOCKING */
  55410. return;
  55411. }
  55412. }
  55413. }
  55414. break;
  55415. 8016ba8: e07e b.n 8016ca8 <lwip_netconn_do_connect+0x158>
  55416. } else if (msg->conn->state != NETCONN_NONE) {
  55417. 8016baa: 693b ldr r3, [r7, #16]
  55418. 8016bac: 681b ldr r3, [r3, #0]
  55419. 8016bae: 785b ldrb r3, [r3, #1]
  55420. 8016bb0: 2b00 cmp r3, #0
  55421. 8016bb2: d002 beq.n 8016bba <lwip_netconn_do_connect+0x6a>
  55422. err = ERR_ISCONN;
  55423. 8016bb4: 23f6 movs r3, #246 @ 0xf6
  55424. 8016bb6: 75fb strb r3, [r7, #23]
  55425. break;
  55426. 8016bb8: e076 b.n 8016ca8 <lwip_netconn_do_connect+0x158>
  55427. setup_tcp(msg->conn);
  55428. 8016bba: 693b ldr r3, [r7, #16]
  55429. 8016bbc: 681b ldr r3, [r3, #0]
  55430. 8016bbe: 4618 mov r0, r3
  55431. 8016bc0: f7ff fafc bl 80161bc <setup_tcp>
  55432. err = tcp_connect(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr),
  55433. 8016bc4: 693b ldr r3, [r7, #16]
  55434. 8016bc6: 681b ldr r3, [r3, #0]
  55435. 8016bc8: 6858 ldr r0, [r3, #4]
  55436. 8016bca: 693b ldr r3, [r7, #16]
  55437. 8016bcc: 6899 ldr r1, [r3, #8]
  55438. 8016bce: 693b ldr r3, [r7, #16]
  55439. 8016bd0: 899a ldrh r2, [r3, #12]
  55440. 8016bd2: 4b3a ldr r3, [pc, #232] @ (8016cbc <lwip_netconn_do_connect+0x16c>)
  55441. 8016bd4: f004 fb90 bl 801b2f8 <tcp_connect>
  55442. 8016bd8: 4603 mov r3, r0
  55443. 8016bda: 75fb strb r3, [r7, #23]
  55444. if (err == ERR_OK) {
  55445. 8016bdc: f997 3017 ldrsb.w r3, [r7, #23]
  55446. 8016be0: 2b00 cmp r3, #0
  55447. 8016be2: d161 bne.n 8016ca8 <lwip_netconn_do_connect+0x158>
  55448. u8_t non_blocking = netconn_is_nonblocking(msg->conn);
  55449. 8016be4: 693b ldr r3, [r7, #16]
  55450. 8016be6: 681b ldr r3, [r3, #0]
  55451. 8016be8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55452. 8016bec: f003 0302 and.w r3, r3, #2
  55453. 8016bf0: 2b00 cmp r3, #0
  55454. 8016bf2: bf14 ite ne
  55455. 8016bf4: 2301 movne r3, #1
  55456. 8016bf6: 2300 moveq r3, #0
  55457. 8016bf8: b2db uxtb r3, r3
  55458. 8016bfa: 73fb strb r3, [r7, #15]
  55459. msg->conn->state = NETCONN_CONNECT;
  55460. 8016bfc: 693b ldr r3, [r7, #16]
  55461. 8016bfe: 681b ldr r3, [r3, #0]
  55462. 8016c00: 2203 movs r2, #3
  55463. 8016c02: 705a strb r2, [r3, #1]
  55464. SET_NONBLOCKING_CONNECT(msg->conn, non_blocking);
  55465. 8016c04: 7bfb ldrb r3, [r7, #15]
  55466. 8016c06: 2b00 cmp r3, #0
  55467. 8016c08: d00b beq.n 8016c22 <lwip_netconn_do_connect+0xd2>
  55468. 8016c0a: 693b ldr r3, [r7, #16]
  55469. 8016c0c: 681b ldr r3, [r3, #0]
  55470. 8016c0e: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  55471. 8016c12: 693b ldr r3, [r7, #16]
  55472. 8016c14: 681b ldr r3, [r3, #0]
  55473. 8016c16: f042 0204 orr.w r2, r2, #4
  55474. 8016c1a: b2d2 uxtb r2, r2
  55475. 8016c1c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55476. 8016c20: e00a b.n 8016c38 <lwip_netconn_do_connect+0xe8>
  55477. 8016c22: 693b ldr r3, [r7, #16]
  55478. 8016c24: 681b ldr r3, [r3, #0]
  55479. 8016c26: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  55480. 8016c2a: 693b ldr r3, [r7, #16]
  55481. 8016c2c: 681b ldr r3, [r3, #0]
  55482. 8016c2e: f022 0204 bic.w r2, r2, #4
  55483. 8016c32: b2d2 uxtb r2, r2
  55484. 8016c34: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55485. if (non_blocking) {
  55486. 8016c38: 7bfb ldrb r3, [r7, #15]
  55487. 8016c3a: 2b00 cmp r3, #0
  55488. 8016c3c: d002 beq.n 8016c44 <lwip_netconn_do_connect+0xf4>
  55489. err = ERR_INPROGRESS;
  55490. 8016c3e: 23fb movs r3, #251 @ 0xfb
  55491. 8016c40: 75fb strb r3, [r7, #23]
  55492. break;
  55493. 8016c42: e031 b.n 8016ca8 <lwip_netconn_do_connect+0x158>
  55494. msg->conn->current_msg = msg;
  55495. 8016c44: 693b ldr r3, [r7, #16]
  55496. 8016c46: 681b ldr r3, [r3, #0]
  55497. 8016c48: 693a ldr r2, [r7, #16]
  55498. 8016c4a: 62da str r2, [r3, #44] @ 0x2c
  55499. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CONNECT);
  55500. 8016c4c: 693b ldr r3, [r7, #16]
  55501. 8016c4e: 681b ldr r3, [r3, #0]
  55502. 8016c50: 785b ldrb r3, [r3, #1]
  55503. 8016c52: 2b03 cmp r3, #3
  55504. 8016c54: d006 beq.n 8016c64 <lwip_netconn_do_connect+0x114>
  55505. 8016c56: 4b1a ldr r3, [pc, #104] @ (8016cc0 <lwip_netconn_do_connect+0x170>)
  55506. 8016c58: f44f 62ae mov.w r2, #1392 @ 0x570
  55507. 8016c5c: 4919 ldr r1, [pc, #100] @ (8016cc4 <lwip_netconn_do_connect+0x174>)
  55508. 8016c5e: 481a ldr r0, [pc, #104] @ (8016cc8 <lwip_netconn_do_connect+0x178>)
  55509. 8016c60: f012 febc bl 80299dc <iprintf>
  55510. UNLOCK_TCPIP_CORE();
  55511. 8016c64: f7f9 fc60 bl 8010528 <sys_unlock_tcpip_core>
  55512. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  55513. 8016c68: 693b ldr r3, [r7, #16]
  55514. 8016c6a: 681b ldr r3, [r3, #0]
  55515. 8016c6c: 330c adds r3, #12
  55516. 8016c6e: 2100 movs r1, #0
  55517. 8016c70: 4618 mov r0, r3
  55518. 8016c72: f00f fb56 bl 8026322 <sys_arch_sem_wait>
  55519. LOCK_TCPIP_CORE();
  55520. 8016c76: f7f9 fc47 bl 8010508 <sys_lock_tcpip_core>
  55521. LWIP_ASSERT("state!", msg->conn->state != NETCONN_CONNECT);
  55522. 8016c7a: 693b ldr r3, [r7, #16]
  55523. 8016c7c: 681b ldr r3, [r3, #0]
  55524. 8016c7e: 785b ldrb r3, [r3, #1]
  55525. 8016c80: 2b03 cmp r3, #3
  55526. 8016c82: d116 bne.n 8016cb2 <lwip_netconn_do_connect+0x162>
  55527. 8016c84: 4b0e ldr r3, [pc, #56] @ (8016cc0 <lwip_netconn_do_connect+0x170>)
  55528. 8016c86: f240 5274 movw r2, #1396 @ 0x574
  55529. 8016c8a: 490e ldr r1, [pc, #56] @ (8016cc4 <lwip_netconn_do_connect+0x174>)
  55530. 8016c8c: 480e ldr r0, [pc, #56] @ (8016cc8 <lwip_netconn_do_connect+0x178>)
  55531. 8016c8e: f012 fea5 bl 80299dc <iprintf>
  55532. return;
  55533. 8016c92: e00e b.n 8016cb2 <lwip_netconn_do_connect+0x162>
  55534. #endif /* LWIP_TCP */
  55535. default:
  55536. LWIP_ERROR("Invalid netconn type", 0, do {
  55537. 8016c94: 4b0a ldr r3, [pc, #40] @ (8016cc0 <lwip_netconn_do_connect+0x170>)
  55538. 8016c96: f240 527d movw r2, #1405 @ 0x57d
  55539. 8016c9a: 490c ldr r1, [pc, #48] @ (8016ccc <lwip_netconn_do_connect+0x17c>)
  55540. 8016c9c: 480a ldr r0, [pc, #40] @ (8016cc8 <lwip_netconn_do_connect+0x178>)
  55541. 8016c9e: f012 fe9d bl 80299dc <iprintf>
  55542. 8016ca2: 23fa movs r3, #250 @ 0xfa
  55543. 8016ca4: 75fb strb r3, [r7, #23]
  55544. err = ERR_VAL;
  55545. } while (0));
  55546. break;
  55547. 8016ca6: e000 b.n 8016caa <lwip_netconn_do_connect+0x15a>
  55548. break;
  55549. 8016ca8: bf00 nop
  55550. }
  55551. }
  55552. msg->err = err;
  55553. 8016caa: 693b ldr r3, [r7, #16]
  55554. 8016cac: 7dfa ldrb r2, [r7, #23]
  55555. 8016cae: 711a strb r2, [r3, #4]
  55556. 8016cb0: e000 b.n 8016cb4 <lwip_netconn_do_connect+0x164>
  55557. return;
  55558. 8016cb2: bf00 nop
  55559. /* For all other protocols, netconn_connect() calls netconn_apimsg(),
  55560. so use TCPIP_APIMSG_ACK() here. */
  55561. TCPIP_APIMSG_ACK(msg);
  55562. }
  55563. 8016cb4: 3718 adds r7, #24
  55564. 8016cb6: 46bd mov sp, r7
  55565. 8016cb8: bd80 pop {r7, pc}
  55566. 8016cba: bf00 nop
  55567. 8016cbc: 08016a29 .word 0x08016a29
  55568. 8016cc0: 0802cf24 .word 0x0802cf24
  55569. 8016cc4: 0802d2e4 .word 0x0802d2e4
  55570. 8016cc8: 0802cf68 .word 0x0802cf68
  55571. 8016ccc: 0802d36c .word 0x0802d36c
  55572. 08016cd0 <lwip_netconn_do_disconnect>:
  55573. *
  55574. * @param m the api_msg pointing to the connection to disconnect
  55575. */
  55576. void
  55577. lwip_netconn_do_disconnect(void *m)
  55578. {
  55579. 8016cd0: b580 push {r7, lr}
  55580. 8016cd2: b084 sub sp, #16
  55581. 8016cd4: af00 add r7, sp, #0
  55582. 8016cd6: 6078 str r0, [r7, #4]
  55583. struct api_msg *msg = (struct api_msg *)m;
  55584. 8016cd8: 687b ldr r3, [r7, #4]
  55585. 8016cda: 60fb str r3, [r7, #12]
  55586. #if LWIP_UDP
  55587. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) {
  55588. 8016cdc: 68fb ldr r3, [r7, #12]
  55589. 8016cde: 681b ldr r3, [r3, #0]
  55590. 8016ce0: 781b ldrb r3, [r3, #0]
  55591. 8016ce2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55592. 8016ce6: 2b20 cmp r3, #32
  55593. 8016ce8: d109 bne.n 8016cfe <lwip_netconn_do_disconnect+0x2e>
  55594. udp_disconnect(msg->conn->pcb.udp);
  55595. 8016cea: 68fb ldr r3, [r7, #12]
  55596. 8016cec: 681b ldr r3, [r3, #0]
  55597. 8016cee: 685b ldr r3, [r3, #4]
  55598. 8016cf0: 4618 mov r0, r3
  55599. 8016cf2: f00a fd97 bl 8021824 <udp_disconnect>
  55600. msg->err = ERR_OK;
  55601. 8016cf6: 68fb ldr r3, [r7, #12]
  55602. 8016cf8: 2200 movs r2, #0
  55603. 8016cfa: 711a strb r2, [r3, #4]
  55604. #endif /* LWIP_UDP */
  55605. {
  55606. msg->err = ERR_VAL;
  55607. }
  55608. TCPIP_APIMSG_ACK(msg);
  55609. }
  55610. 8016cfc: e002 b.n 8016d04 <lwip_netconn_do_disconnect+0x34>
  55611. msg->err = ERR_VAL;
  55612. 8016cfe: 68fb ldr r3, [r7, #12]
  55613. 8016d00: 22fa movs r2, #250 @ 0xfa
  55614. 8016d02: 711a strb r2, [r3, #4]
  55615. }
  55616. 8016d04: bf00 nop
  55617. 8016d06: 3710 adds r7, #16
  55618. 8016d08: 46bd mov sp, r7
  55619. 8016d0a: bd80 pop {r7, pc}
  55620. 08016d0c <lwip_netconn_do_send>:
  55621. *
  55622. * @param m the api_msg pointing to the connection
  55623. */
  55624. void
  55625. lwip_netconn_do_send(void *m)
  55626. {
  55627. 8016d0c: b580 push {r7, lr}
  55628. 8016d0e: b084 sub sp, #16
  55629. 8016d10: af00 add r7, sp, #0
  55630. 8016d12: 6078 str r0, [r7, #4]
  55631. struct api_msg *msg = (struct api_msg *)m;
  55632. 8016d14: 687b ldr r3, [r7, #4]
  55633. 8016d16: 60bb str r3, [r7, #8]
  55634. err_t err = netconn_err(msg->conn);
  55635. 8016d18: 68bb ldr r3, [r7, #8]
  55636. 8016d1a: 681b ldr r3, [r3, #0]
  55637. 8016d1c: 4618 mov r0, r3
  55638. 8016d1e: f7fe fef9 bl 8015b14 <netconn_err>
  55639. 8016d22: 4603 mov r3, r0
  55640. 8016d24: 73fb strb r3, [r7, #15]
  55641. if (err == ERR_OK) {
  55642. 8016d26: f997 300f ldrsb.w r3, [r7, #15]
  55643. 8016d2a: 2b00 cmp r3, #0
  55644. 8016d2c: d134 bne.n 8016d98 <lwip_netconn_do_send+0x8c>
  55645. if (msg->conn->pcb.tcp != NULL) {
  55646. 8016d2e: 68bb ldr r3, [r7, #8]
  55647. 8016d30: 681b ldr r3, [r3, #0]
  55648. 8016d32: 685b ldr r3, [r3, #4]
  55649. 8016d34: 2b00 cmp r3, #0
  55650. 8016d36: d02d beq.n 8016d94 <lwip_netconn_do_send+0x88>
  55651. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  55652. 8016d38: 68bb ldr r3, [r7, #8]
  55653. 8016d3a: 681b ldr r3, [r3, #0]
  55654. 8016d3c: 781b ldrb r3, [r3, #0]
  55655. 8016d3e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55656. 8016d42: 2b20 cmp r3, #32
  55657. 8016d44: d123 bne.n 8016d8e <lwip_netconn_do_send+0x82>
  55658. err = udp_sendto_chksum(msg->conn->pcb.udp, msg->msg.b->p,
  55659. &msg->msg.b->addr, msg->msg.b->port,
  55660. msg->msg.b->flags & NETBUF_FLAG_CHKSUM, msg->msg.b->toport_chksum);
  55661. }
  55662. #else /* LWIP_CHECKSUM_ON_COPY */
  55663. if (ip_addr_isany_val(msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) {
  55664. 8016d46: 68bb ldr r3, [r7, #8]
  55665. 8016d48: 689b ldr r3, [r3, #8]
  55666. 8016d4a: 689b ldr r3, [r3, #8]
  55667. 8016d4c: 2b00 cmp r3, #0
  55668. 8016d4e: d10c bne.n 8016d6a <lwip_netconn_do_send+0x5e>
  55669. err = udp_send(msg->conn->pcb.udp, msg->msg.b->p);
  55670. 8016d50: 68bb ldr r3, [r7, #8]
  55671. 8016d52: 681b ldr r3, [r3, #0]
  55672. 8016d54: 685a ldr r2, [r3, #4]
  55673. 8016d56: 68bb ldr r3, [r7, #8]
  55674. 8016d58: 689b ldr r3, [r3, #8]
  55675. 8016d5a: 681b ldr r3, [r3, #0]
  55676. 8016d5c: 4619 mov r1, r3
  55677. 8016d5e: 4610 mov r0, r2
  55678. 8016d60: f00a fa7a bl 8021258 <udp_send>
  55679. 8016d64: 4603 mov r3, r0
  55680. 8016d66: 73fb strb r3, [r7, #15]
  55681. } else {
  55682. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  55683. }
  55684. #endif /* LWIP_CHECKSUM_ON_COPY */
  55685. break;
  55686. 8016d68: e016 b.n 8016d98 <lwip_netconn_do_send+0x8c>
  55687. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  55688. 8016d6a: 68bb ldr r3, [r7, #8]
  55689. 8016d6c: 681b ldr r3, [r3, #0]
  55690. 8016d6e: 6858 ldr r0, [r3, #4]
  55691. 8016d70: 68bb ldr r3, [r7, #8]
  55692. 8016d72: 689b ldr r3, [r3, #8]
  55693. 8016d74: 6819 ldr r1, [r3, #0]
  55694. 8016d76: 68bb ldr r3, [r7, #8]
  55695. 8016d78: 689b ldr r3, [r3, #8]
  55696. 8016d7a: f103 0208 add.w r2, r3, #8
  55697. 8016d7e: 68bb ldr r3, [r7, #8]
  55698. 8016d80: 689b ldr r3, [r3, #8]
  55699. 8016d82: 899b ldrh r3, [r3, #12]
  55700. 8016d84: f00a fa9c bl 80212c0 <udp_sendto>
  55701. 8016d88: 4603 mov r3, r0
  55702. 8016d8a: 73fb strb r3, [r7, #15]
  55703. break;
  55704. 8016d8c: e004 b.n 8016d98 <lwip_netconn_do_send+0x8c>
  55705. #endif /* LWIP_UDP */
  55706. default:
  55707. err = ERR_CONN;
  55708. 8016d8e: 23f5 movs r3, #245 @ 0xf5
  55709. 8016d90: 73fb strb r3, [r7, #15]
  55710. break;
  55711. 8016d92: e001 b.n 8016d98 <lwip_netconn_do_send+0x8c>
  55712. }
  55713. } else {
  55714. err = ERR_CONN;
  55715. 8016d94: 23f5 movs r3, #245 @ 0xf5
  55716. 8016d96: 73fb strb r3, [r7, #15]
  55717. }
  55718. }
  55719. msg->err = err;
  55720. 8016d98: 68bb ldr r3, [r7, #8]
  55721. 8016d9a: 7bfa ldrb r2, [r7, #15]
  55722. 8016d9c: 711a strb r2, [r3, #4]
  55723. TCPIP_APIMSG_ACK(msg);
  55724. }
  55725. 8016d9e: bf00 nop
  55726. 8016da0: 3710 adds r7, #16
  55727. 8016da2: 46bd mov sp, r7
  55728. 8016da4: bd80 pop {r7, pc}
  55729. 08016da6 <lwip_netconn_do_recv>:
  55730. *
  55731. * @param m the api_msg pointing to the connection
  55732. */
  55733. void
  55734. lwip_netconn_do_recv(void *m)
  55735. {
  55736. 8016da6: b580 push {r7, lr}
  55737. 8016da8: b086 sub sp, #24
  55738. 8016daa: af00 add r7, sp, #0
  55739. 8016dac: 6078 str r0, [r7, #4]
  55740. struct api_msg *msg = (struct api_msg *)m;
  55741. 8016dae: 687b ldr r3, [r7, #4]
  55742. 8016db0: 613b str r3, [r7, #16]
  55743. msg->err = ERR_OK;
  55744. 8016db2: 693b ldr r3, [r7, #16]
  55745. 8016db4: 2200 movs r2, #0
  55746. 8016db6: 711a strb r2, [r3, #4]
  55747. if (msg->conn->pcb.tcp != NULL) {
  55748. 8016db8: 693b ldr r3, [r7, #16]
  55749. 8016dba: 681b ldr r3, [r3, #0]
  55750. 8016dbc: 685b ldr r3, [r3, #4]
  55751. 8016dbe: 2b00 cmp r3, #0
  55752. 8016dc0: d022 beq.n 8016e08 <lwip_netconn_do_recv+0x62>
  55753. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  55754. 8016dc2: 693b ldr r3, [r7, #16]
  55755. 8016dc4: 681b ldr r3, [r3, #0]
  55756. 8016dc6: 781b ldrb r3, [r3, #0]
  55757. 8016dc8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55758. 8016dcc: 2b10 cmp r3, #16
  55759. 8016dce: d11b bne.n 8016e08 <lwip_netconn_do_recv+0x62>
  55760. size_t remaining = msg->msg.r.len;
  55761. 8016dd0: 693b ldr r3, [r7, #16]
  55762. 8016dd2: 689b ldr r3, [r3, #8]
  55763. 8016dd4: 617b str r3, [r7, #20]
  55764. do {
  55765. u16_t recved = (u16_t)((remaining > 0xffff) ? 0xffff : remaining);
  55766. 8016dd6: 697b ldr r3, [r7, #20]
  55767. 8016dd8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  55768. 8016ddc: d202 bcs.n 8016de4 <lwip_netconn_do_recv+0x3e>
  55769. 8016dde: 697b ldr r3, [r7, #20]
  55770. 8016de0: b29b uxth r3, r3
  55771. 8016de2: e001 b.n 8016de8 <lwip_netconn_do_recv+0x42>
  55772. 8016de4: f64f 73ff movw r3, #65535 @ 0xffff
  55773. 8016de8: 81fb strh r3, [r7, #14]
  55774. tcp_recved(msg->conn->pcb.tcp, recved);
  55775. 8016dea: 693b ldr r3, [r7, #16]
  55776. 8016dec: 681b ldr r3, [r3, #0]
  55777. 8016dee: 685b ldr r3, [r3, #4]
  55778. 8016df0: 89fa ldrh r2, [r7, #14]
  55779. 8016df2: 4611 mov r1, r2
  55780. 8016df4: 4618 mov r0, r3
  55781. 8016df6: f004 f9e5 bl 801b1c4 <tcp_recved>
  55782. remaining -= recved;
  55783. 8016dfa: 89fb ldrh r3, [r7, #14]
  55784. 8016dfc: 697a ldr r2, [r7, #20]
  55785. 8016dfe: 1ad3 subs r3, r2, r3
  55786. 8016e00: 617b str r3, [r7, #20]
  55787. } while (remaining != 0);
  55788. 8016e02: 697b ldr r3, [r7, #20]
  55789. 8016e04: 2b00 cmp r3, #0
  55790. 8016e06: d1e6 bne.n 8016dd6 <lwip_netconn_do_recv+0x30>
  55791. }
  55792. }
  55793. TCPIP_APIMSG_ACK(msg);
  55794. }
  55795. 8016e08: bf00 nop
  55796. 8016e0a: 3718 adds r7, #24
  55797. 8016e0c: 46bd mov sp, r7
  55798. 8016e0e: bd80 pop {r7, pc}
  55799. 08016e10 <lwip_netconn_do_writemore>:
  55800. * @return ERR_OK
  55801. * ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished
  55802. */
  55803. static err_t
  55804. lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM)
  55805. {
  55806. 8016e10: b580 push {r7, lr}
  55807. 8016e12: b088 sub sp, #32
  55808. 8016e14: af00 add r7, sp, #0
  55809. 8016e16: 6078 str r0, [r7, #4]
  55810. 8016e18: 460b mov r3, r1
  55811. 8016e1a: 70fb strb r3, [r7, #3]
  55812. err_t err;
  55813. const void *dataptr;
  55814. u16_t len, available;
  55815. u8_t write_finished = 0;
  55816. 8016e1c: 2300 movs r3, #0
  55817. 8016e1e: 76fb strb r3, [r7, #27]
  55818. size_t diff;
  55819. u8_t dontblock;
  55820. u8_t apiflags;
  55821. u8_t write_more;
  55822. LWIP_ASSERT("conn != NULL", conn != NULL);
  55823. 8016e20: 687b ldr r3, [r7, #4]
  55824. 8016e22: 2b00 cmp r3, #0
  55825. 8016e24: d106 bne.n 8016e34 <lwip_netconn_do_writemore+0x24>
  55826. 8016e26: 4b61 ldr r3, [pc, #388] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  55827. 8016e28: f240 6273 movw r2, #1651 @ 0x673
  55828. 8016e2c: 4960 ldr r1, [pc, #384] @ (8016fb0 <lwip_netconn_do_writemore+0x1a0>)
  55829. 8016e2e: 4861 ldr r0, [pc, #388] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  55830. 8016e30: f012 fdd4 bl 80299dc <iprintf>
  55831. LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
  55832. 8016e34: 687b ldr r3, [r7, #4]
  55833. 8016e36: 785b ldrb r3, [r3, #1]
  55834. 8016e38: 2b01 cmp r3, #1
  55835. 8016e3a: d006 beq.n 8016e4a <lwip_netconn_do_writemore+0x3a>
  55836. 8016e3c: 4b5b ldr r3, [pc, #364] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  55837. 8016e3e: f240 6274 movw r2, #1652 @ 0x674
  55838. 8016e42: 495d ldr r1, [pc, #372] @ (8016fb8 <lwip_netconn_do_writemore+0x1a8>)
  55839. 8016e44: 485b ldr r0, [pc, #364] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  55840. 8016e46: f012 fdc9 bl 80299dc <iprintf>
  55841. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  55842. 8016e4a: 687b ldr r3, [r7, #4]
  55843. 8016e4c: 6adb ldr r3, [r3, #44] @ 0x2c
  55844. 8016e4e: 2b00 cmp r3, #0
  55845. 8016e50: d106 bne.n 8016e60 <lwip_netconn_do_writemore+0x50>
  55846. 8016e52: 4b56 ldr r3, [pc, #344] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  55847. 8016e54: f240 6275 movw r2, #1653 @ 0x675
  55848. 8016e58: 4958 ldr r1, [pc, #352] @ (8016fbc <lwip_netconn_do_writemore+0x1ac>)
  55849. 8016e5a: 4856 ldr r0, [pc, #344] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  55850. 8016e5c: f012 fdbe bl 80299dc <iprintf>
  55851. LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL);
  55852. 8016e60: 687b ldr r3, [r7, #4]
  55853. 8016e62: 685b ldr r3, [r3, #4]
  55854. 8016e64: 2b00 cmp r3, #0
  55855. 8016e66: d106 bne.n 8016e76 <lwip_netconn_do_writemore+0x66>
  55856. 8016e68: 4b50 ldr r3, [pc, #320] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  55857. 8016e6a: f240 6276 movw r2, #1654 @ 0x676
  55858. 8016e6e: 4954 ldr r1, [pc, #336] @ (8016fc0 <lwip_netconn_do_writemore+0x1b0>)
  55859. 8016e70: 4850 ldr r0, [pc, #320] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  55860. 8016e72: f012 fdb3 bl 80299dc <iprintf>
  55861. LWIP_ASSERT("conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len",
  55862. 8016e76: 687b ldr r3, [r7, #4]
  55863. 8016e78: 6adb ldr r3, [r3, #44] @ 0x2c
  55864. 8016e7a: 699a ldr r2, [r3, #24]
  55865. 8016e7c: 687b ldr r3, [r7, #4]
  55866. 8016e7e: 6adb ldr r3, [r3, #44] @ 0x2c
  55867. 8016e80: 695b ldr r3, [r3, #20]
  55868. 8016e82: 429a cmp r2, r3
  55869. 8016e84: d306 bcc.n 8016e94 <lwip_netconn_do_writemore+0x84>
  55870. 8016e86: 4b49 ldr r3, [pc, #292] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  55871. 8016e88: f240 6277 movw r2, #1655 @ 0x677
  55872. 8016e8c: 494d ldr r1, [pc, #308] @ (8016fc4 <lwip_netconn_do_writemore+0x1b4>)
  55873. 8016e8e: 4849 ldr r0, [pc, #292] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  55874. 8016e90: f012 fda4 bl 80299dc <iprintf>
  55875. conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len);
  55876. LWIP_ASSERT("conn->current_msg->msg.w.vector_cnt > 0", conn->current_msg->msg.w.vector_cnt > 0);
  55877. 8016e94: 687b ldr r3, [r7, #4]
  55878. 8016e96: 6adb ldr r3, [r3, #44] @ 0x2c
  55879. 8016e98: 899b ldrh r3, [r3, #12]
  55880. 8016e9a: 2b00 cmp r3, #0
  55881. 8016e9c: d106 bne.n 8016eac <lwip_netconn_do_writemore+0x9c>
  55882. 8016e9e: 4b43 ldr r3, [pc, #268] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  55883. 8016ea0: f240 6279 movw r2, #1657 @ 0x679
  55884. 8016ea4: 4948 ldr r1, [pc, #288] @ (8016fc8 <lwip_netconn_do_writemore+0x1b8>)
  55885. 8016ea6: 4843 ldr r0, [pc, #268] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  55886. 8016ea8: f012 fd98 bl 80299dc <iprintf>
  55887. apiflags = conn->current_msg->msg.w.apiflags;
  55888. 8016eac: 687b ldr r3, [r7, #4]
  55889. 8016eae: 6adb ldr r3, [r3, #44] @ 0x2c
  55890. 8016eb0: 7f1b ldrb r3, [r3, #28]
  55891. 8016eb2: 76bb strb r3, [r7, #26]
  55892. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  55893. 8016eb4: 687b ldr r3, [r7, #4]
  55894. 8016eb6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55895. 8016eba: f003 0302 and.w r3, r3, #2
  55896. 8016ebe: 2b00 cmp r3, #0
  55897. 8016ec0: d104 bne.n 8016ecc <lwip_netconn_do_writemore+0xbc>
  55898. 8016ec2: 7ebb ldrb r3, [r7, #26]
  55899. 8016ec4: f003 0304 and.w r3, r3, #4
  55900. 8016ec8: 2b00 cmp r3, #0
  55901. 8016eca: d001 beq.n 8016ed0 <lwip_netconn_do_writemore+0xc0>
  55902. 8016ecc: 2301 movs r3, #1
  55903. 8016ece: e000 b.n 8016ed2 <lwip_netconn_do_writemore+0xc2>
  55904. 8016ed0: 2300 movs r3, #0
  55905. 8016ed2: 763b strb r3, [r7, #24]
  55906. }
  55907. } else
  55908. #endif /* LWIP_SO_SNDTIMEO */
  55909. {
  55910. do {
  55911. dataptr = (const u8_t *)conn->current_msg->msg.w.vector->ptr + conn->current_msg->msg.w.vector_off;
  55912. 8016ed4: 687b ldr r3, [r7, #4]
  55913. 8016ed6: 6adb ldr r3, [r3, #44] @ 0x2c
  55914. 8016ed8: 689b ldr r3, [r3, #8]
  55915. 8016eda: 681a ldr r2, [r3, #0]
  55916. 8016edc: 687b ldr r3, [r7, #4]
  55917. 8016ede: 6adb ldr r3, [r3, #44] @ 0x2c
  55918. 8016ee0: 691b ldr r3, [r3, #16]
  55919. 8016ee2: 4413 add r3, r2
  55920. 8016ee4: 617b str r3, [r7, #20]
  55921. diff = conn->current_msg->msg.w.vector->len - conn->current_msg->msg.w.vector_off;
  55922. 8016ee6: 687b ldr r3, [r7, #4]
  55923. 8016ee8: 6adb ldr r3, [r3, #44] @ 0x2c
  55924. 8016eea: 689b ldr r3, [r3, #8]
  55925. 8016eec: 685a ldr r2, [r3, #4]
  55926. 8016eee: 687b ldr r3, [r7, #4]
  55927. 8016ef0: 6adb ldr r3, [r3, #44] @ 0x2c
  55928. 8016ef2: 691b ldr r3, [r3, #16]
  55929. 8016ef4: 1ad3 subs r3, r2, r3
  55930. 8016ef6: 613b str r3, [r7, #16]
  55931. if (diff > 0xffffUL) { /* max_u16_t */
  55932. 8016ef8: 693b ldr r3, [r7, #16]
  55933. 8016efa: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  55934. 8016efe: d307 bcc.n 8016f10 <lwip_netconn_do_writemore+0x100>
  55935. len = 0xffff;
  55936. 8016f00: f64f 73ff movw r3, #65535 @ 0xffff
  55937. 8016f04: 83bb strh r3, [r7, #28]
  55938. apiflags |= TCP_WRITE_FLAG_MORE;
  55939. 8016f06: 7ebb ldrb r3, [r7, #26]
  55940. 8016f08: f043 0302 orr.w r3, r3, #2
  55941. 8016f0c: 76bb strb r3, [r7, #26]
  55942. 8016f0e: e001 b.n 8016f14 <lwip_netconn_do_writemore+0x104>
  55943. } else {
  55944. len = (u16_t)diff;
  55945. 8016f10: 693b ldr r3, [r7, #16]
  55946. 8016f12: 83bb strh r3, [r7, #28]
  55947. }
  55948. available = tcp_sndbuf(conn->pcb.tcp);
  55949. 8016f14: 687b ldr r3, [r7, #4]
  55950. 8016f16: 685b ldr r3, [r3, #4]
  55951. 8016f18: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  55952. 8016f1c: 81fb strh r3, [r7, #14]
  55953. if (available < len) {
  55954. 8016f1e: 89fa ldrh r2, [r7, #14]
  55955. 8016f20: 8bbb ldrh r3, [r7, #28]
  55956. 8016f22: 429a cmp r2, r3
  55957. 8016f24: d216 bcs.n 8016f54 <lwip_netconn_do_writemore+0x144>
  55958. /* don't try to write more than sendbuf */
  55959. len = available;
  55960. 8016f26: 89fb ldrh r3, [r7, #14]
  55961. 8016f28: 83bb strh r3, [r7, #28]
  55962. if (dontblock) {
  55963. 8016f2a: 7e3b ldrb r3, [r7, #24]
  55964. 8016f2c: 2b00 cmp r3, #0
  55965. 8016f2e: d00d beq.n 8016f4c <lwip_netconn_do_writemore+0x13c>
  55966. if (!len) {
  55967. 8016f30: 8bbb ldrh r3, [r7, #28]
  55968. 8016f32: 2b00 cmp r3, #0
  55969. 8016f34: d10e bne.n 8016f54 <lwip_netconn_do_writemore+0x144>
  55970. /* set error according to partial write or not */
  55971. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  55972. 8016f36: 687b ldr r3, [r7, #4]
  55973. 8016f38: 6adb ldr r3, [r3, #44] @ 0x2c
  55974. 8016f3a: 699b ldr r3, [r3, #24]
  55975. 8016f3c: 2b00 cmp r3, #0
  55976. 8016f3e: d102 bne.n 8016f46 <lwip_netconn_do_writemore+0x136>
  55977. 8016f40: f06f 0306 mvn.w r3, #6
  55978. 8016f44: e000 b.n 8016f48 <lwip_netconn_do_writemore+0x138>
  55979. 8016f46: 2300 movs r3, #0
  55980. 8016f48: 77fb strb r3, [r7, #31]
  55981. goto err_mem;
  55982. 8016f4a: e08f b.n 801706c <lwip_netconn_do_writemore+0x25c>
  55983. }
  55984. } else {
  55985. apiflags |= TCP_WRITE_FLAG_MORE;
  55986. 8016f4c: 7ebb ldrb r3, [r7, #26]
  55987. 8016f4e: f043 0302 orr.w r3, r3, #2
  55988. 8016f52: 76bb strb r3, [r7, #26]
  55989. }
  55990. }
  55991. LWIP_ASSERT("lwip_netconn_do_writemore: invalid length!",
  55992. 8016f54: 687b ldr r3, [r7, #4]
  55993. 8016f56: 6adb ldr r3, [r3, #44] @ 0x2c
  55994. 8016f58: 691a ldr r2, [r3, #16]
  55995. 8016f5a: 8bbb ldrh r3, [r7, #28]
  55996. 8016f5c: 441a add r2, r3
  55997. 8016f5e: 687b ldr r3, [r7, #4]
  55998. 8016f60: 6adb ldr r3, [r3, #44] @ 0x2c
  55999. 8016f62: 689b ldr r3, [r3, #8]
  56000. 8016f64: 685b ldr r3, [r3, #4]
  56001. 8016f66: 429a cmp r2, r3
  56002. 8016f68: d906 bls.n 8016f78 <lwip_netconn_do_writemore+0x168>
  56003. 8016f6a: 4b10 ldr r3, [pc, #64] @ (8016fac <lwip_netconn_do_writemore+0x19c>)
  56004. 8016f6c: f240 62a3 movw r2, #1699 @ 0x6a3
  56005. 8016f70: 4916 ldr r1, [pc, #88] @ (8016fcc <lwip_netconn_do_writemore+0x1bc>)
  56006. 8016f72: 4810 ldr r0, [pc, #64] @ (8016fb4 <lwip_netconn_do_writemore+0x1a4>)
  56007. 8016f74: f012 fd32 bl 80299dc <iprintf>
  56008. ((conn->current_msg->msg.w.vector_off + len) <= conn->current_msg->msg.w.vector->len));
  56009. /* we should loop around for more sending in the following cases:
  56010. 1) We couldn't finish the current vector because of 16-bit size limitations.
  56011. tcp_write() and tcp_sndbuf() both are limited to 16-bit sizes
  56012. 2) We are sending the remainder of the current vector and have more */
  56013. if ((len == 0xffff && diff > 0xffffUL) ||
  56014. 8016f78: 8bbb ldrh r3, [r7, #28]
  56015. 8016f7a: f64f 72ff movw r2, #65535 @ 0xffff
  56016. 8016f7e: 4293 cmp r3, r2
  56017. 8016f80: d103 bne.n 8016f8a <lwip_netconn_do_writemore+0x17a>
  56018. 8016f82: 693b ldr r3, [r7, #16]
  56019. 8016f84: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  56020. 8016f88: d209 bcs.n 8016f9e <lwip_netconn_do_writemore+0x18e>
  56021. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  56022. 8016f8a: 693b ldr r3, [r7, #16]
  56023. 8016f8c: b29b uxth r3, r3
  56024. if ((len == 0xffff && diff > 0xffffUL) ||
  56025. 8016f8e: 8bba ldrh r2, [r7, #28]
  56026. 8016f90: 429a cmp r2, r3
  56027. 8016f92: d11d bne.n 8016fd0 <lwip_netconn_do_writemore+0x1c0>
  56028. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  56029. 8016f94: 687b ldr r3, [r7, #4]
  56030. 8016f96: 6adb ldr r3, [r3, #44] @ 0x2c
  56031. 8016f98: 899b ldrh r3, [r3, #12]
  56032. 8016f9a: 2b01 cmp r3, #1
  56033. 8016f9c: d918 bls.n 8016fd0 <lwip_netconn_do_writemore+0x1c0>
  56034. write_more = 1;
  56035. 8016f9e: 2301 movs r3, #1
  56036. 8016fa0: 767b strb r3, [r7, #25]
  56037. apiflags |= TCP_WRITE_FLAG_MORE;
  56038. 8016fa2: 7ebb ldrb r3, [r7, #26]
  56039. 8016fa4: f043 0302 orr.w r3, r3, #2
  56040. 8016fa8: 76bb strb r3, [r7, #26]
  56041. 8016faa: e013 b.n 8016fd4 <lwip_netconn_do_writemore+0x1c4>
  56042. 8016fac: 0802cf24 .word 0x0802cf24
  56043. 8016fb0: 0802d07c .word 0x0802d07c
  56044. 8016fb4: 0802cf68 .word 0x0802cf68
  56045. 8016fb8: 0802d384 .word 0x0802d384
  56046. 8016fbc: 0802d08c .word 0x0802d08c
  56047. 8016fc0: 0802d3a4 .word 0x0802d3a4
  56048. 8016fc4: 0802d3bc .word 0x0802d3bc
  56049. 8016fc8: 0802d3fc .word 0x0802d3fc
  56050. 8016fcc: 0802d424 .word 0x0802d424
  56051. } else {
  56052. write_more = 0;
  56053. 8016fd0: 2300 movs r3, #0
  56054. 8016fd2: 767b strb r3, [r7, #25]
  56055. }
  56056. err = tcp_write(conn->pcb.tcp, dataptr, len, apiflags);
  56057. 8016fd4: 687b ldr r3, [r7, #4]
  56058. 8016fd6: 6858 ldr r0, [r3, #4]
  56059. 8016fd8: 7ebb ldrb r3, [r7, #26]
  56060. 8016fda: 8bba ldrh r2, [r7, #28]
  56061. 8016fdc: 6979 ldr r1, [r7, #20]
  56062. 8016fde: f008 f827 bl 801f030 <tcp_write>
  56063. 8016fe2: 4603 mov r3, r0
  56064. 8016fe4: 77fb strb r3, [r7, #31]
  56065. if (err == ERR_OK) {
  56066. 8016fe6: f997 301f ldrsb.w r3, [r7, #31]
  56067. 8016fea: 2b00 cmp r3, #0
  56068. 8016fec: d12c bne.n 8017048 <lwip_netconn_do_writemore+0x238>
  56069. conn->current_msg->msg.w.offset += len;
  56070. 8016fee: 687b ldr r3, [r7, #4]
  56071. 8016ff0: 6adb ldr r3, [r3, #44] @ 0x2c
  56072. 8016ff2: 6999 ldr r1, [r3, #24]
  56073. 8016ff4: 8bba ldrh r2, [r7, #28]
  56074. 8016ff6: 687b ldr r3, [r7, #4]
  56075. 8016ff8: 6adb ldr r3, [r3, #44] @ 0x2c
  56076. 8016ffa: 440a add r2, r1
  56077. 8016ffc: 619a str r2, [r3, #24]
  56078. conn->current_msg->msg.w.vector_off += len;
  56079. 8016ffe: 687b ldr r3, [r7, #4]
  56080. 8017000: 6adb ldr r3, [r3, #44] @ 0x2c
  56081. 8017002: 6919 ldr r1, [r3, #16]
  56082. 8017004: 8bba ldrh r2, [r7, #28]
  56083. 8017006: 687b ldr r3, [r7, #4]
  56084. 8017008: 6adb ldr r3, [r3, #44] @ 0x2c
  56085. 801700a: 440a add r2, r1
  56086. 801700c: 611a str r2, [r3, #16]
  56087. /* check if current vector is finished */
  56088. if (conn->current_msg->msg.w.vector_off == conn->current_msg->msg.w.vector->len) {
  56089. 801700e: 687b ldr r3, [r7, #4]
  56090. 8017010: 6adb ldr r3, [r3, #44] @ 0x2c
  56091. 8017012: 691a ldr r2, [r3, #16]
  56092. 8017014: 687b ldr r3, [r7, #4]
  56093. 8017016: 6adb ldr r3, [r3, #44] @ 0x2c
  56094. 8017018: 689b ldr r3, [r3, #8]
  56095. 801701a: 685b ldr r3, [r3, #4]
  56096. 801701c: 429a cmp r2, r3
  56097. 801701e: d113 bne.n 8017048 <lwip_netconn_do_writemore+0x238>
  56098. conn->current_msg->msg.w.vector_cnt--;
  56099. 8017020: 687b ldr r3, [r7, #4]
  56100. 8017022: 6adb ldr r3, [r3, #44] @ 0x2c
  56101. 8017024: 899a ldrh r2, [r3, #12]
  56102. 8017026: 3a01 subs r2, #1
  56103. 8017028: b292 uxth r2, r2
  56104. 801702a: 819a strh r2, [r3, #12]
  56105. /* if we have additional vectors, move on to them */
  56106. if (conn->current_msg->msg.w.vector_cnt > 0) {
  56107. 801702c: 687b ldr r3, [r7, #4]
  56108. 801702e: 6adb ldr r3, [r3, #44] @ 0x2c
  56109. 8017030: 899b ldrh r3, [r3, #12]
  56110. 8017032: 2b00 cmp r3, #0
  56111. 8017034: d008 beq.n 8017048 <lwip_netconn_do_writemore+0x238>
  56112. conn->current_msg->msg.w.vector++;
  56113. 8017036: 687b ldr r3, [r7, #4]
  56114. 8017038: 6adb ldr r3, [r3, #44] @ 0x2c
  56115. 801703a: 689a ldr r2, [r3, #8]
  56116. 801703c: 3208 adds r2, #8
  56117. 801703e: 609a str r2, [r3, #8]
  56118. conn->current_msg->msg.w.vector_off = 0;
  56119. 8017040: 687b ldr r3, [r7, #4]
  56120. 8017042: 6adb ldr r3, [r3, #44] @ 0x2c
  56121. 8017044: 2200 movs r2, #0
  56122. 8017046: 611a str r2, [r3, #16]
  56123. }
  56124. }
  56125. }
  56126. } while (write_more && err == ERR_OK);
  56127. 8017048: 7e7b ldrb r3, [r7, #25]
  56128. 801704a: 2b00 cmp r3, #0
  56129. 801704c: d004 beq.n 8017058 <lwip_netconn_do_writemore+0x248>
  56130. 801704e: f997 301f ldrsb.w r3, [r7, #31]
  56131. 8017052: 2b00 cmp r3, #0
  56132. 8017054: f43f af3e beq.w 8016ed4 <lwip_netconn_do_writemore+0xc4>
  56133. /* if OK or memory error, check available space */
  56134. if ((err == ERR_OK) || (err == ERR_MEM)) {
  56135. 8017058: f997 301f ldrsb.w r3, [r7, #31]
  56136. 801705c: 2b00 cmp r3, #0
  56137. 801705e: d004 beq.n 801706a <lwip_netconn_do_writemore+0x25a>
  56138. 8017060: f997 301f ldrsb.w r3, [r7, #31]
  56139. 8017064: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56140. 8017068: d137 bne.n 80170da <lwip_netconn_do_writemore+0x2ca>
  56141. err_mem:
  56142. 801706a: bf00 nop
  56143. if (dontblock && (conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len)) {
  56144. 801706c: 7e3b ldrb r3, [r7, #24]
  56145. 801706e: 2b00 cmp r3, #0
  56146. 8017070: d01b beq.n 80170aa <lwip_netconn_do_writemore+0x29a>
  56147. 8017072: 687b ldr r3, [r7, #4]
  56148. 8017074: 6adb ldr r3, [r3, #44] @ 0x2c
  56149. 8017076: 699a ldr r2, [r3, #24]
  56150. 8017078: 687b ldr r3, [r7, #4]
  56151. 801707a: 6adb ldr r3, [r3, #44] @ 0x2c
  56152. 801707c: 695b ldr r3, [r3, #20]
  56153. 801707e: 429a cmp r2, r3
  56154. 8017080: d213 bcs.n 80170aa <lwip_netconn_do_writemore+0x29a>
  56155. /* non-blocking write did not write everything: mark the pcb non-writable
  56156. and let poll_tcp check writable space to mark the pcb writable again */
  56157. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  56158. 8017082: 687b ldr r3, [r7, #4]
  56159. 8017084: 6b1b ldr r3, [r3, #48] @ 0x30
  56160. 8017086: 2b00 cmp r3, #0
  56161. 8017088: d005 beq.n 8017096 <lwip_netconn_do_writemore+0x286>
  56162. 801708a: 687b ldr r3, [r7, #4]
  56163. 801708c: 6b1b ldr r3, [r3, #48] @ 0x30
  56164. 801708e: 2200 movs r2, #0
  56165. 8017090: 2103 movs r1, #3
  56166. 8017092: 6878 ldr r0, [r7, #4]
  56167. 8017094: 4798 blx r3
  56168. conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE;
  56169. 8017096: 687b ldr r3, [r7, #4]
  56170. 8017098: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56171. 801709c: f043 0310 orr.w r3, r3, #16
  56172. 80170a0: b2da uxtb r2, r3
  56173. 80170a2: 687b ldr r3, [r7, #4]
  56174. 80170a4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56175. 80170a8: e017 b.n 80170da <lwip_netconn_do_writemore+0x2ca>
  56176. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  56177. 80170aa: 687b ldr r3, [r7, #4]
  56178. 80170ac: 685b ldr r3, [r3, #4]
  56179. 80170ae: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  56180. 80170b2: f640 3269 movw r2, #2921 @ 0xb69
  56181. 80170b6: 4293 cmp r3, r2
  56182. 80170b8: d905 bls.n 80170c6 <lwip_netconn_do_writemore+0x2b6>
  56183. (tcp_sndqueuelen(conn->pcb.tcp) >= TCP_SNDQUEUELOWAT)) {
  56184. 80170ba: 687b ldr r3, [r7, #4]
  56185. 80170bc: 685b ldr r3, [r3, #4]
  56186. 80170be: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  56187. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  56188. 80170c2: 2b07 cmp r3, #7
  56189. 80170c4: d909 bls.n 80170da <lwip_netconn_do_writemore+0x2ca>
  56190. /* The queued byte- or pbuf-count exceeds the configured low-water limit,
  56191. let select mark this pcb as non-writable. */
  56192. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  56193. 80170c6: 687b ldr r3, [r7, #4]
  56194. 80170c8: 6b1b ldr r3, [r3, #48] @ 0x30
  56195. 80170ca: 2b00 cmp r3, #0
  56196. 80170cc: d005 beq.n 80170da <lwip_netconn_do_writemore+0x2ca>
  56197. 80170ce: 687b ldr r3, [r7, #4]
  56198. 80170d0: 6b1b ldr r3, [r3, #48] @ 0x30
  56199. 80170d2: 2200 movs r2, #0
  56200. 80170d4: 2103 movs r1, #3
  56201. 80170d6: 6878 ldr r0, [r7, #4]
  56202. 80170d8: 4798 blx r3
  56203. }
  56204. }
  56205. if (err == ERR_OK) {
  56206. 80170da: f997 301f ldrsb.w r3, [r7, #31]
  56207. 80170de: 2b00 cmp r3, #0
  56208. 80170e0: d11d bne.n 801711e <lwip_netconn_do_writemore+0x30e>
  56209. err_t out_err;
  56210. if ((conn->current_msg->msg.w.offset == conn->current_msg->msg.w.len) || dontblock) {
  56211. 80170e2: 687b ldr r3, [r7, #4]
  56212. 80170e4: 6adb ldr r3, [r3, #44] @ 0x2c
  56213. 80170e6: 699a ldr r2, [r3, #24]
  56214. 80170e8: 687b ldr r3, [r7, #4]
  56215. 80170ea: 6adb ldr r3, [r3, #44] @ 0x2c
  56216. 80170ec: 695b ldr r3, [r3, #20]
  56217. 80170ee: 429a cmp r2, r3
  56218. 80170f0: d002 beq.n 80170f8 <lwip_netconn_do_writemore+0x2e8>
  56219. 80170f2: 7e3b ldrb r3, [r7, #24]
  56220. 80170f4: 2b00 cmp r3, #0
  56221. 80170f6: d001 beq.n 80170fc <lwip_netconn_do_writemore+0x2ec>
  56222. /* return sent length (caller reads length from msg.w.offset) */
  56223. write_finished = 1;
  56224. 80170f8: 2301 movs r3, #1
  56225. 80170fa: 76fb strb r3, [r7, #27]
  56226. }
  56227. out_err = tcp_output(conn->pcb.tcp);
  56228. 80170fc: 687b ldr r3, [r7, #4]
  56229. 80170fe: 685b ldr r3, [r3, #4]
  56230. 8017100: 4618 mov r0, r3
  56231. 8017102: f008 fddf bl 801fcc4 <tcp_output>
  56232. 8017106: 4603 mov r3, r0
  56233. 8017108: 733b strb r3, [r7, #12]
  56234. if (out_err == ERR_RTE) {
  56235. 801710a: f997 300c ldrsb.w r3, [r7, #12]
  56236. 801710e: f113 0f04 cmn.w r3, #4
  56237. 8017112: d12c bne.n 801716e <lwip_netconn_do_writemore+0x35e>
  56238. /* If tcp_output fails because no route is found,
  56239. don't try writing any more but return the error
  56240. to the application thread. */
  56241. err = out_err;
  56242. 8017114: 7b3b ldrb r3, [r7, #12]
  56243. 8017116: 77fb strb r3, [r7, #31]
  56244. write_finished = 1;
  56245. 8017118: 2301 movs r3, #1
  56246. 801711a: 76fb strb r3, [r7, #27]
  56247. 801711c: e027 b.n 801716e <lwip_netconn_do_writemore+0x35e>
  56248. }
  56249. } else if (err == ERR_MEM) {
  56250. 801711e: f997 301f ldrsb.w r3, [r7, #31]
  56251. 8017122: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56252. 8017126: d120 bne.n 801716a <lwip_netconn_do_writemore+0x35a>
  56253. For blocking sockets, we do NOT return to the application
  56254. thread, since ERR_MEM is only a temporary error! Non-blocking
  56255. will remain non-writable until sent_tcp/poll_tcp is called */
  56256. /* tcp_write returned ERR_MEM, try tcp_output anyway */
  56257. err_t out_err = tcp_output(conn->pcb.tcp);
  56258. 8017128: 687b ldr r3, [r7, #4]
  56259. 801712a: 685b ldr r3, [r3, #4]
  56260. 801712c: 4618 mov r0, r3
  56261. 801712e: f008 fdc9 bl 801fcc4 <tcp_output>
  56262. 8017132: 4603 mov r3, r0
  56263. 8017134: 737b strb r3, [r7, #13]
  56264. if (out_err == ERR_RTE) {
  56265. 8017136: f997 300d ldrsb.w r3, [r7, #13]
  56266. 801713a: f113 0f04 cmn.w r3, #4
  56267. 801713e: d104 bne.n 801714a <lwip_netconn_do_writemore+0x33a>
  56268. /* If tcp_output fails because no route is found,
  56269. don't try writing any more but return the error
  56270. to the application thread. */
  56271. err = out_err;
  56272. 8017140: 7b7b ldrb r3, [r7, #13]
  56273. 8017142: 77fb strb r3, [r7, #31]
  56274. write_finished = 1;
  56275. 8017144: 2301 movs r3, #1
  56276. 8017146: 76fb strb r3, [r7, #27]
  56277. 8017148: e011 b.n 801716e <lwip_netconn_do_writemore+0x35e>
  56278. } else if (dontblock) {
  56279. 801714a: 7e3b ldrb r3, [r7, #24]
  56280. 801714c: 2b00 cmp r3, #0
  56281. 801714e: d00e beq.n 801716e <lwip_netconn_do_writemore+0x35e>
  56282. /* non-blocking write is done on ERR_MEM, set error according
  56283. to partial write or not */
  56284. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  56285. 8017150: 687b ldr r3, [r7, #4]
  56286. 8017152: 6adb ldr r3, [r3, #44] @ 0x2c
  56287. 8017154: 699b ldr r3, [r3, #24]
  56288. 8017156: 2b00 cmp r3, #0
  56289. 8017158: d102 bne.n 8017160 <lwip_netconn_do_writemore+0x350>
  56290. 801715a: f06f 0306 mvn.w r3, #6
  56291. 801715e: e000 b.n 8017162 <lwip_netconn_do_writemore+0x352>
  56292. 8017160: 2300 movs r3, #0
  56293. 8017162: 77fb strb r3, [r7, #31]
  56294. write_finished = 1;
  56295. 8017164: 2301 movs r3, #1
  56296. 8017166: 76fb strb r3, [r7, #27]
  56297. 8017168: e001 b.n 801716e <lwip_netconn_do_writemore+0x35e>
  56298. }
  56299. } else {
  56300. /* On errors != ERR_MEM, we don't try writing any more but return
  56301. the error to the application thread. */
  56302. write_finished = 1;
  56303. 801716a: 2301 movs r3, #1
  56304. 801716c: 76fb strb r3, [r7, #27]
  56305. }
  56306. }
  56307. if (write_finished) {
  56308. 801716e: 7efb ldrb r3, [r7, #27]
  56309. 8017170: 2b00 cmp r3, #0
  56310. 8017172: d015 beq.n 80171a0 <lwip_netconn_do_writemore+0x390>
  56311. /* everything was written: set back connection state
  56312. and back to application task */
  56313. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  56314. 8017174: 687b ldr r3, [r7, #4]
  56315. 8017176: 6adb ldr r3, [r3, #44] @ 0x2c
  56316. 8017178: 681b ldr r3, [r3, #0]
  56317. 801717a: 330c adds r3, #12
  56318. 801717c: 60bb str r3, [r7, #8]
  56319. conn->current_msg->err = err;
  56320. 801717e: 687b ldr r3, [r7, #4]
  56321. 8017180: 6adb ldr r3, [r3, #44] @ 0x2c
  56322. 8017182: 7ffa ldrb r2, [r7, #31]
  56323. 8017184: 711a strb r2, [r3, #4]
  56324. conn->current_msg = NULL;
  56325. 8017186: 687b ldr r3, [r7, #4]
  56326. 8017188: 2200 movs r2, #0
  56327. 801718a: 62da str r2, [r3, #44] @ 0x2c
  56328. conn->state = NETCONN_NONE;
  56329. 801718c: 687b ldr r3, [r7, #4]
  56330. 801718e: 2200 movs r2, #0
  56331. 8017190: 705a strb r2, [r3, #1]
  56332. #if LWIP_TCPIP_CORE_LOCKING
  56333. if (delayed)
  56334. 8017192: 78fb ldrb r3, [r7, #3]
  56335. 8017194: 2b00 cmp r3, #0
  56336. 8017196: d006 beq.n 80171a6 <lwip_netconn_do_writemore+0x396>
  56337. #endif
  56338. {
  56339. sys_sem_signal(op_completed_sem);
  56340. 8017198: 68b8 ldr r0, [r7, #8]
  56341. 801719a: f00f f8f3 bl 8026384 <sys_sem_signal>
  56342. 801719e: e002 b.n 80171a6 <lwip_netconn_do_writemore+0x396>
  56343. }
  56344. }
  56345. #if LWIP_TCPIP_CORE_LOCKING
  56346. else {
  56347. return ERR_MEM;
  56348. 80171a0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  56349. 80171a4: e000 b.n 80171a8 <lwip_netconn_do_writemore+0x398>
  56350. }
  56351. #endif
  56352. return ERR_OK;
  56353. 80171a6: 2300 movs r3, #0
  56354. }
  56355. 80171a8: 4618 mov r0, r3
  56356. 80171aa: 3720 adds r7, #32
  56357. 80171ac: 46bd mov sp, r7
  56358. 80171ae: bd80 pop {r7, pc}
  56359. 080171b0 <lwip_netconn_do_write>:
  56360. *
  56361. * @param m the api_msg pointing to the connection
  56362. */
  56363. void
  56364. lwip_netconn_do_write(void *m)
  56365. {
  56366. 80171b0: b580 push {r7, lr}
  56367. 80171b2: b084 sub sp, #16
  56368. 80171b4: af00 add r7, sp, #0
  56369. 80171b6: 6078 str r0, [r7, #4]
  56370. struct api_msg *msg = (struct api_msg *)m;
  56371. 80171b8: 687b ldr r3, [r7, #4]
  56372. 80171ba: 60bb str r3, [r7, #8]
  56373. err_t err = netconn_err(msg->conn);
  56374. 80171bc: 68bb ldr r3, [r7, #8]
  56375. 80171be: 681b ldr r3, [r3, #0]
  56376. 80171c0: 4618 mov r0, r3
  56377. 80171c2: f7fe fca7 bl 8015b14 <netconn_err>
  56378. 80171c6: 4603 mov r3, r0
  56379. 80171c8: 73fb strb r3, [r7, #15]
  56380. if (err == ERR_OK) {
  56381. 80171ca: f997 300f ldrsb.w r3, [r7, #15]
  56382. 80171ce: 2b00 cmp r3, #0
  56383. 80171d0: d164 bne.n 801729c <lwip_netconn_do_write+0xec>
  56384. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  56385. 80171d2: 68bb ldr r3, [r7, #8]
  56386. 80171d4: 681b ldr r3, [r3, #0]
  56387. 80171d6: 781b ldrb r3, [r3, #0]
  56388. 80171d8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56389. 80171dc: 2b10 cmp r3, #16
  56390. 80171de: d15b bne.n 8017298 <lwip_netconn_do_write+0xe8>
  56391. #if LWIP_TCP
  56392. if (msg->conn->state != NETCONN_NONE) {
  56393. 80171e0: 68bb ldr r3, [r7, #8]
  56394. 80171e2: 681b ldr r3, [r3, #0]
  56395. 80171e4: 785b ldrb r3, [r3, #1]
  56396. 80171e6: 2b00 cmp r3, #0
  56397. 80171e8: d002 beq.n 80171f0 <lwip_netconn_do_write+0x40>
  56398. /* netconn is connecting, closing or in blocking write */
  56399. err = ERR_INPROGRESS;
  56400. 80171ea: 23fb movs r3, #251 @ 0xfb
  56401. 80171ec: 73fb strb r3, [r7, #15]
  56402. 80171ee: e055 b.n 801729c <lwip_netconn_do_write+0xec>
  56403. } else if (msg->conn->pcb.tcp != NULL) {
  56404. 80171f0: 68bb ldr r3, [r7, #8]
  56405. 80171f2: 681b ldr r3, [r3, #0]
  56406. 80171f4: 685b ldr r3, [r3, #4]
  56407. 80171f6: 2b00 cmp r3, #0
  56408. 80171f8: d04b beq.n 8017292 <lwip_netconn_do_write+0xe2>
  56409. msg->conn->state = NETCONN_WRITE;
  56410. 80171fa: 68bb ldr r3, [r7, #8]
  56411. 80171fc: 681b ldr r3, [r3, #0]
  56412. 80171fe: 2201 movs r2, #1
  56413. 8017200: 705a strb r2, [r3, #1]
  56414. /* set all the variables used by lwip_netconn_do_writemore */
  56415. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  56416. 8017202: 68bb ldr r3, [r7, #8]
  56417. 8017204: 681b ldr r3, [r3, #0]
  56418. 8017206: 6adb ldr r3, [r3, #44] @ 0x2c
  56419. 8017208: 2b00 cmp r3, #0
  56420. 801720a: d006 beq.n 801721a <lwip_netconn_do_write+0x6a>
  56421. 801720c: 4b27 ldr r3, [pc, #156] @ (80172ac <lwip_netconn_do_write+0xfc>)
  56422. 801720e: f240 7223 movw r2, #1827 @ 0x723
  56423. 8017212: 4927 ldr r1, [pc, #156] @ (80172b0 <lwip_netconn_do_write+0x100>)
  56424. 8017214: 4827 ldr r0, [pc, #156] @ (80172b4 <lwip_netconn_do_write+0x104>)
  56425. 8017216: f012 fbe1 bl 80299dc <iprintf>
  56426. LWIP_ASSERT("msg->msg.w.len != 0", msg->msg.w.len != 0);
  56427. 801721a: 68bb ldr r3, [r7, #8]
  56428. 801721c: 695b ldr r3, [r3, #20]
  56429. 801721e: 2b00 cmp r3, #0
  56430. 8017220: d106 bne.n 8017230 <lwip_netconn_do_write+0x80>
  56431. 8017222: 4b22 ldr r3, [pc, #136] @ (80172ac <lwip_netconn_do_write+0xfc>)
  56432. 8017224: f240 7224 movw r2, #1828 @ 0x724
  56433. 8017228: 4923 ldr r1, [pc, #140] @ (80172b8 <lwip_netconn_do_write+0x108>)
  56434. 801722a: 4822 ldr r0, [pc, #136] @ (80172b4 <lwip_netconn_do_write+0x104>)
  56435. 801722c: f012 fbd6 bl 80299dc <iprintf>
  56436. msg->conn->current_msg = msg;
  56437. 8017230: 68bb ldr r3, [r7, #8]
  56438. 8017232: 681b ldr r3, [r3, #0]
  56439. 8017234: 68ba ldr r2, [r7, #8]
  56440. 8017236: 62da str r2, [r3, #44] @ 0x2c
  56441. #if LWIP_TCPIP_CORE_LOCKING
  56442. if (lwip_netconn_do_writemore(msg->conn, 0) != ERR_OK) {
  56443. 8017238: 68bb ldr r3, [r7, #8]
  56444. 801723a: 681b ldr r3, [r3, #0]
  56445. 801723c: 2100 movs r1, #0
  56446. 801723e: 4618 mov r0, r3
  56447. 8017240: f7ff fde6 bl 8016e10 <lwip_netconn_do_writemore>
  56448. 8017244: 4603 mov r3, r0
  56449. 8017246: 2b00 cmp r3, #0
  56450. 8017248: d02c beq.n 80172a4 <lwip_netconn_do_write+0xf4>
  56451. LWIP_ASSERT("state!", msg->conn->state == NETCONN_WRITE);
  56452. 801724a: 68bb ldr r3, [r7, #8]
  56453. 801724c: 681b ldr r3, [r3, #0]
  56454. 801724e: 785b ldrb r3, [r3, #1]
  56455. 8017250: 2b01 cmp r3, #1
  56456. 8017252: d006 beq.n 8017262 <lwip_netconn_do_write+0xb2>
  56457. 8017254: 4b15 ldr r3, [pc, #84] @ (80172ac <lwip_netconn_do_write+0xfc>)
  56458. 8017256: f44f 62e5 mov.w r2, #1832 @ 0x728
  56459. 801725a: 4918 ldr r1, [pc, #96] @ (80172bc <lwip_netconn_do_write+0x10c>)
  56460. 801725c: 4815 ldr r0, [pc, #84] @ (80172b4 <lwip_netconn_do_write+0x104>)
  56461. 801725e: f012 fbbd bl 80299dc <iprintf>
  56462. UNLOCK_TCPIP_CORE();
  56463. 8017262: f7f9 f961 bl 8010528 <sys_unlock_tcpip_core>
  56464. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  56465. 8017266: 68bb ldr r3, [r7, #8]
  56466. 8017268: 681b ldr r3, [r3, #0]
  56467. 801726a: 330c adds r3, #12
  56468. 801726c: 2100 movs r1, #0
  56469. 801726e: 4618 mov r0, r3
  56470. 8017270: f00f f857 bl 8026322 <sys_arch_sem_wait>
  56471. LOCK_TCPIP_CORE();
  56472. 8017274: f7f9 f948 bl 8010508 <sys_lock_tcpip_core>
  56473. LWIP_ASSERT("state!", msg->conn->state != NETCONN_WRITE);
  56474. 8017278: 68bb ldr r3, [r7, #8]
  56475. 801727a: 681b ldr r3, [r3, #0]
  56476. 801727c: 785b ldrb r3, [r3, #1]
  56477. 801727e: 2b01 cmp r3, #1
  56478. 8017280: d110 bne.n 80172a4 <lwip_netconn_do_write+0xf4>
  56479. 8017282: 4b0a ldr r3, [pc, #40] @ (80172ac <lwip_netconn_do_write+0xfc>)
  56480. 8017284: f240 722c movw r2, #1836 @ 0x72c
  56481. 8017288: 490c ldr r1, [pc, #48] @ (80172bc <lwip_netconn_do_write+0x10c>)
  56482. 801728a: 480a ldr r0, [pc, #40] @ (80172b4 <lwip_netconn_do_write+0x104>)
  56483. 801728c: f012 fba6 bl 80299dc <iprintf>
  56484. #else /* LWIP_TCPIP_CORE_LOCKING */
  56485. lwip_netconn_do_writemore(msg->conn);
  56486. #endif /* LWIP_TCPIP_CORE_LOCKING */
  56487. /* for both cases: if lwip_netconn_do_writemore was called, don't ACK the APIMSG
  56488. since lwip_netconn_do_writemore ACKs it! */
  56489. return;
  56490. 8017290: e008 b.n 80172a4 <lwip_netconn_do_write+0xf4>
  56491. } else {
  56492. err = ERR_CONN;
  56493. 8017292: 23f5 movs r3, #245 @ 0xf5
  56494. 8017294: 73fb strb r3, [r7, #15]
  56495. 8017296: e001 b.n 801729c <lwip_netconn_do_write+0xec>
  56496. #else /* LWIP_TCP */
  56497. err = ERR_VAL;
  56498. #endif /* LWIP_TCP */
  56499. #if (LWIP_UDP || LWIP_RAW)
  56500. } else {
  56501. err = ERR_VAL;
  56502. 8017298: 23fa movs r3, #250 @ 0xfa
  56503. 801729a: 73fb strb r3, [r7, #15]
  56504. #endif /* (LWIP_UDP || LWIP_RAW) */
  56505. }
  56506. }
  56507. msg->err = err;
  56508. 801729c: 68bb ldr r3, [r7, #8]
  56509. 801729e: 7bfa ldrb r2, [r7, #15]
  56510. 80172a0: 711a strb r2, [r3, #4]
  56511. 80172a2: e000 b.n 80172a6 <lwip_netconn_do_write+0xf6>
  56512. return;
  56513. 80172a4: bf00 nop
  56514. TCPIP_APIMSG_ACK(msg);
  56515. }
  56516. 80172a6: 3710 adds r7, #16
  56517. 80172a8: 46bd mov sp, r7
  56518. 80172aa: bd80 pop {r7, pc}
  56519. 80172ac: 0802cf24 .word 0x0802cf24
  56520. 80172b0: 0802d2c8 .word 0x0802d2c8
  56521. 80172b4: 0802cf68 .word 0x0802cf68
  56522. 80172b8: 0802d450 .word 0x0802d450
  56523. 80172bc: 0802d2e4 .word 0x0802d2e4
  56524. 080172c0 <lwip_netconn_do_getaddr>:
  56525. *
  56526. * @param m the api_msg pointing to the connection
  56527. */
  56528. void
  56529. lwip_netconn_do_getaddr(void *m)
  56530. {
  56531. 80172c0: b580 push {r7, lr}
  56532. 80172c2: b084 sub sp, #16
  56533. 80172c4: af00 add r7, sp, #0
  56534. 80172c6: 6078 str r0, [r7, #4]
  56535. struct api_msg *msg = (struct api_msg *)m;
  56536. 80172c8: 687b ldr r3, [r7, #4]
  56537. 80172ca: 60fb str r3, [r7, #12]
  56538. if (msg->conn->pcb.ip != NULL) {
  56539. 80172cc: 68fb ldr r3, [r7, #12]
  56540. 80172ce: 681b ldr r3, [r3, #0]
  56541. 80172d0: 685b ldr r3, [r3, #4]
  56542. 80172d2: 2b00 cmp r3, #0
  56543. 80172d4: d06b beq.n 80173ae <lwip_netconn_do_getaddr+0xee>
  56544. if (msg->msg.ad.local) {
  56545. 80172d6: 68fb ldr r3, [r7, #12]
  56546. 80172d8: 7c1b ldrb r3, [r3, #16]
  56547. 80172da: 2b00 cmp r3, #0
  56548. 80172dc: d007 beq.n 80172ee <lwip_netconn_do_getaddr+0x2e>
  56549. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  56550. 80172de: 68fb ldr r3, [r7, #12]
  56551. 80172e0: 681b ldr r3, [r3, #0]
  56552. 80172e2: 685a ldr r2, [r3, #4]
  56553. 80172e4: 68fb ldr r3, [r7, #12]
  56554. 80172e6: 689b ldr r3, [r3, #8]
  56555. 80172e8: 6812 ldr r2, [r2, #0]
  56556. 80172ea: 601a str r2, [r3, #0]
  56557. 80172ec: e006 b.n 80172fc <lwip_netconn_do_getaddr+0x3c>
  56558. msg->conn->pcb.ip->local_ip);
  56559. } else {
  56560. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  56561. 80172ee: 68fb ldr r3, [r7, #12]
  56562. 80172f0: 681b ldr r3, [r3, #0]
  56563. 80172f2: 685a ldr r2, [r3, #4]
  56564. 80172f4: 68fb ldr r3, [r7, #12]
  56565. 80172f6: 689b ldr r3, [r3, #8]
  56566. 80172f8: 6852 ldr r2, [r2, #4]
  56567. 80172fa: 601a str r2, [r3, #0]
  56568. msg->conn->pcb.ip->remote_ip);
  56569. }
  56570. msg->err = ERR_OK;
  56571. 80172fc: 68fb ldr r3, [r7, #12]
  56572. 80172fe: 2200 movs r2, #0
  56573. 8017300: 711a strb r2, [r3, #4]
  56574. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  56575. 8017302: 68fb ldr r3, [r7, #12]
  56576. 8017304: 681b ldr r3, [r3, #0]
  56577. 8017306: 781b ldrb r3, [r3, #0]
  56578. 8017308: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56579. 801730c: 2b10 cmp r3, #16
  56580. 801730e: d021 beq.n 8017354 <lwip_netconn_do_getaddr+0x94>
  56581. 8017310: 2b20 cmp r3, #32
  56582. 8017312: d144 bne.n 801739e <lwip_netconn_do_getaddr+0xde>
  56583. }
  56584. break;
  56585. #endif /* LWIP_RAW */
  56586. #if LWIP_UDP
  56587. case NETCONN_UDP:
  56588. if (msg->msg.ad.local) {
  56589. 8017314: 68fb ldr r3, [r7, #12]
  56590. 8017316: 7c1b ldrb r3, [r3, #16]
  56591. 8017318: 2b00 cmp r3, #0
  56592. 801731a: d007 beq.n 801732c <lwip_netconn_do_getaddr+0x6c>
  56593. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->local_port;
  56594. 801731c: 68fb ldr r3, [r7, #12]
  56595. 801731e: 681b ldr r3, [r3, #0]
  56596. 8017320: 685a ldr r2, [r3, #4]
  56597. 8017322: 68fb ldr r3, [r7, #12]
  56598. 8017324: 68db ldr r3, [r3, #12]
  56599. 8017326: 8a52 ldrh r2, [r2, #18]
  56600. 8017328: 801a strh r2, [r3, #0]
  56601. msg->err = ERR_CONN;
  56602. } else {
  56603. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  56604. }
  56605. }
  56606. break;
  56607. 801732a: e044 b.n 80173b6 <lwip_netconn_do_getaddr+0xf6>
  56608. if ((msg->conn->pcb.udp->flags & UDP_FLAGS_CONNECTED) == 0) {
  56609. 801732c: 68fb ldr r3, [r7, #12]
  56610. 801732e: 681b ldr r3, [r3, #0]
  56611. 8017330: 685b ldr r3, [r3, #4]
  56612. 8017332: 7c1b ldrb r3, [r3, #16]
  56613. 8017334: f003 0304 and.w r3, r3, #4
  56614. 8017338: 2b00 cmp r3, #0
  56615. 801733a: d103 bne.n 8017344 <lwip_netconn_do_getaddr+0x84>
  56616. msg->err = ERR_CONN;
  56617. 801733c: 68fb ldr r3, [r7, #12]
  56618. 801733e: 22f5 movs r2, #245 @ 0xf5
  56619. 8017340: 711a strb r2, [r3, #4]
  56620. break;
  56621. 8017342: e038 b.n 80173b6 <lwip_netconn_do_getaddr+0xf6>
  56622. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  56623. 8017344: 68fb ldr r3, [r7, #12]
  56624. 8017346: 681b ldr r3, [r3, #0]
  56625. 8017348: 685a ldr r2, [r3, #4]
  56626. 801734a: 68fb ldr r3, [r7, #12]
  56627. 801734c: 68db ldr r3, [r3, #12]
  56628. 801734e: 8a92 ldrh r2, [r2, #20]
  56629. 8017350: 801a strh r2, [r3, #0]
  56630. break;
  56631. 8017352: e030 b.n 80173b6 <lwip_netconn_do_getaddr+0xf6>
  56632. #endif /* LWIP_UDP */
  56633. #if LWIP_TCP
  56634. case NETCONN_TCP:
  56635. if ((msg->msg.ad.local == 0) &&
  56636. 8017354: 68fb ldr r3, [r7, #12]
  56637. 8017356: 7c1b ldrb r3, [r3, #16]
  56638. 8017358: 2b00 cmp r3, #0
  56639. 801735a: d10f bne.n 801737c <lwip_netconn_do_getaddr+0xbc>
  56640. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  56641. 801735c: 68fb ldr r3, [r7, #12]
  56642. 801735e: 681b ldr r3, [r3, #0]
  56643. 8017360: 685b ldr r3, [r3, #4]
  56644. 8017362: 7d1b ldrb r3, [r3, #20]
  56645. if ((msg->msg.ad.local == 0) &&
  56646. 8017364: 2b00 cmp r3, #0
  56647. 8017366: d005 beq.n 8017374 <lwip_netconn_do_getaddr+0xb4>
  56648. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  56649. 8017368: 68fb ldr r3, [r7, #12]
  56650. 801736a: 681b ldr r3, [r3, #0]
  56651. 801736c: 685b ldr r3, [r3, #4]
  56652. 801736e: 7d1b ldrb r3, [r3, #20]
  56653. 8017370: 2b01 cmp r3, #1
  56654. 8017372: d103 bne.n 801737c <lwip_netconn_do_getaddr+0xbc>
  56655. /* pcb is not connected and remote name is requested */
  56656. msg->err = ERR_CONN;
  56657. 8017374: 68fb ldr r3, [r7, #12]
  56658. 8017376: 22f5 movs r2, #245 @ 0xf5
  56659. 8017378: 711a strb r2, [r3, #4]
  56660. } else {
  56661. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  56662. }
  56663. break;
  56664. 801737a: e01c b.n 80173b6 <lwip_netconn_do_getaddr+0xf6>
  56665. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  56666. 801737c: 68fb ldr r3, [r7, #12]
  56667. 801737e: 7c1b ldrb r3, [r3, #16]
  56668. 8017380: 2b00 cmp r3, #0
  56669. 8017382: d004 beq.n 801738e <lwip_netconn_do_getaddr+0xce>
  56670. 8017384: 68fb ldr r3, [r7, #12]
  56671. 8017386: 681b ldr r3, [r3, #0]
  56672. 8017388: 685b ldr r3, [r3, #4]
  56673. 801738a: 8adb ldrh r3, [r3, #22]
  56674. 801738c: e003 b.n 8017396 <lwip_netconn_do_getaddr+0xd6>
  56675. 801738e: 68fb ldr r3, [r7, #12]
  56676. 8017390: 681b ldr r3, [r3, #0]
  56677. 8017392: 685b ldr r3, [r3, #4]
  56678. 8017394: 8b1b ldrh r3, [r3, #24]
  56679. 8017396: 68fa ldr r2, [r7, #12]
  56680. 8017398: 68d2 ldr r2, [r2, #12]
  56681. 801739a: 8013 strh r3, [r2, #0]
  56682. break;
  56683. 801739c: e00b b.n 80173b6 <lwip_netconn_do_getaddr+0xf6>
  56684. #endif /* LWIP_TCP */
  56685. default:
  56686. LWIP_ASSERT("invalid netconn_type", 0);
  56687. 801739e: 4b08 ldr r3, [pc, #32] @ (80173c0 <lwip_netconn_do_getaddr+0x100>)
  56688. 80173a0: f240 727d movw r2, #1917 @ 0x77d
  56689. 80173a4: 4907 ldr r1, [pc, #28] @ (80173c4 <lwip_netconn_do_getaddr+0x104>)
  56690. 80173a6: 4808 ldr r0, [pc, #32] @ (80173c8 <lwip_netconn_do_getaddr+0x108>)
  56691. 80173a8: f012 fb18 bl 80299dc <iprintf>
  56692. break;
  56693. 80173ac: e003 b.n 80173b6 <lwip_netconn_do_getaddr+0xf6>
  56694. }
  56695. } else {
  56696. msg->err = ERR_CONN;
  56697. 80173ae: 68fb ldr r3, [r7, #12]
  56698. 80173b0: 22f5 movs r2, #245 @ 0xf5
  56699. 80173b2: 711a strb r2, [r3, #4]
  56700. }
  56701. TCPIP_APIMSG_ACK(msg);
  56702. }
  56703. 80173b4: bf00 nop
  56704. 80173b6: bf00 nop
  56705. 80173b8: 3710 adds r7, #16
  56706. 80173ba: 46bd mov sp, r7
  56707. 80173bc: bd80 pop {r7, pc}
  56708. 80173be: bf00 nop
  56709. 80173c0: 0802cf24 .word 0x0802cf24
  56710. 80173c4: 0802d464 .word 0x0802d464
  56711. 80173c8: 0802cf68 .word 0x0802cf68
  56712. 080173cc <lwip_netconn_do_close>:
  56713. *
  56714. * @param m the api_msg pointing to the connection
  56715. */
  56716. void
  56717. lwip_netconn_do_close(void *m)
  56718. {
  56719. 80173cc: b580 push {r7, lr}
  56720. 80173ce: b084 sub sp, #16
  56721. 80173d0: af00 add r7, sp, #0
  56722. 80173d2: 6078 str r0, [r7, #4]
  56723. struct api_msg *msg = (struct api_msg *)m;
  56724. 80173d4: 687b ldr r3, [r7, #4]
  56725. 80173d6: 60fb str r3, [r7, #12]
  56726. #if LWIP_TCP
  56727. enum netconn_state state = msg->conn->state;
  56728. 80173d8: 68fb ldr r3, [r7, #12]
  56729. 80173da: 681b ldr r3, [r3, #0]
  56730. 80173dc: 785b ldrb r3, [r3, #1]
  56731. 80173de: 72fb strb r3, [r7, #11]
  56732. /* First check if this is a TCP netconn and if it is in a correct state
  56733. (LISTEN doesn't support half shutdown) */
  56734. if ((msg->conn->pcb.tcp != NULL) &&
  56735. 80173e0: 68fb ldr r3, [r7, #12]
  56736. 80173e2: 681b ldr r3, [r3, #0]
  56737. 80173e4: 685b ldr r3, [r3, #4]
  56738. 80173e6: 2b00 cmp r3, #0
  56739. 80173e8: d067 beq.n 80174ba <lwip_netconn_do_close+0xee>
  56740. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  56741. 80173ea: 68fb ldr r3, [r7, #12]
  56742. 80173ec: 681b ldr r3, [r3, #0]
  56743. 80173ee: 781b ldrb r3, [r3, #0]
  56744. 80173f0: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56745. if ((msg->conn->pcb.tcp != NULL) &&
  56746. 80173f4: 2b10 cmp r3, #16
  56747. 80173f6: d160 bne.n 80174ba <lwip_netconn_do_close+0xee>
  56748. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  56749. 80173f8: 68fb ldr r3, [r7, #12]
  56750. 80173fa: 7a1b ldrb r3, [r3, #8]
  56751. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  56752. 80173fc: 2b03 cmp r3, #3
  56753. 80173fe: d002 beq.n 8017406 <lwip_netconn_do_close+0x3a>
  56754. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  56755. 8017400: 7afb ldrb r3, [r7, #11]
  56756. 8017402: 2b02 cmp r3, #2
  56757. 8017404: d059 beq.n 80174ba <lwip_netconn_do_close+0xee>
  56758. /* Check if we are in a connected state */
  56759. if (state == NETCONN_CONNECT) {
  56760. 8017406: 7afb ldrb r3, [r7, #11]
  56761. 8017408: 2b03 cmp r3, #3
  56762. 801740a: d103 bne.n 8017414 <lwip_netconn_do_close+0x48>
  56763. /* TCP connect in progress: cannot shutdown */
  56764. msg->err = ERR_CONN;
  56765. 801740c: 68fb ldr r3, [r7, #12]
  56766. 801740e: 22f5 movs r2, #245 @ 0xf5
  56767. 8017410: 711a strb r2, [r3, #4]
  56768. if (state == NETCONN_CONNECT) {
  56769. 8017412: e057 b.n 80174c4 <lwip_netconn_do_close+0xf8>
  56770. } else if (state == NETCONN_WRITE) {
  56771. 8017414: 7afb ldrb r3, [r7, #11]
  56772. 8017416: 2b01 cmp r3, #1
  56773. 8017418: d103 bne.n 8017422 <lwip_netconn_do_close+0x56>
  56774. msg->err = tcp_shutdown(msg->conn->pcb.tcp, 1, 0);
  56775. }
  56776. }
  56777. if (state == NETCONN_NONE) {
  56778. #else /* LWIP_NETCONN_FULLDUPLEX */
  56779. msg->err = ERR_INPROGRESS;
  56780. 801741a: 68fb ldr r3, [r7, #12]
  56781. 801741c: 22fb movs r2, #251 @ 0xfb
  56782. 801741e: 711a strb r2, [r3, #4]
  56783. if (state == NETCONN_CONNECT) {
  56784. 8017420: e050 b.n 80174c4 <lwip_netconn_do_close+0xf8>
  56785. } else {
  56786. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56787. if (msg->msg.sd.shut & NETCONN_SHUT_RD) {
  56788. 8017422: 68fb ldr r3, [r7, #12]
  56789. 8017424: 7a1b ldrb r3, [r3, #8]
  56790. 8017426: f003 0301 and.w r3, r3, #1
  56791. 801742a: 2b00 cmp r3, #0
  56792. 801742c: d004 beq.n 8017438 <lwip_netconn_do_close+0x6c>
  56793. #if LWIP_NETCONN_FULLDUPLEX
  56794. /* Mark mboxes invalid */
  56795. netconn_mark_mbox_invalid(msg->conn);
  56796. #else /* LWIP_NETCONN_FULLDUPLEX */
  56797. netconn_drain(msg->conn);
  56798. 801742e: 68fb ldr r3, [r7, #12]
  56799. 8017430: 681b ldr r3, [r3, #0]
  56800. 8017432: 4618 mov r0, r3
  56801. 8017434: f7ff f82e bl 8016494 <netconn_drain>
  56802. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56803. }
  56804. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  56805. 8017438: 68fb ldr r3, [r7, #12]
  56806. 801743a: 681b ldr r3, [r3, #0]
  56807. 801743c: 6adb ldr r3, [r3, #44] @ 0x2c
  56808. 801743e: 2b00 cmp r3, #0
  56809. 8017440: d006 beq.n 8017450 <lwip_netconn_do_close+0x84>
  56810. 8017442: 4b22 ldr r3, [pc, #136] @ (80174cc <lwip_netconn_do_close+0x100>)
  56811. 8017444: f240 72bd movw r2, #1981 @ 0x7bd
  56812. 8017448: 4921 ldr r1, [pc, #132] @ (80174d0 <lwip_netconn_do_close+0x104>)
  56813. 801744a: 4822 ldr r0, [pc, #136] @ (80174d4 <lwip_netconn_do_close+0x108>)
  56814. 801744c: f012 fac6 bl 80299dc <iprintf>
  56815. msg->conn->state = NETCONN_CLOSE;
  56816. 8017450: 68fb ldr r3, [r7, #12]
  56817. 8017452: 681b ldr r3, [r3, #0]
  56818. 8017454: 2204 movs r2, #4
  56819. 8017456: 705a strb r2, [r3, #1]
  56820. msg->conn->current_msg = msg;
  56821. 8017458: 68fb ldr r3, [r7, #12]
  56822. 801745a: 681b ldr r3, [r3, #0]
  56823. 801745c: 68fa ldr r2, [r7, #12]
  56824. 801745e: 62da str r2, [r3, #44] @ 0x2c
  56825. #if LWIP_TCPIP_CORE_LOCKING
  56826. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  56827. 8017460: 68fb ldr r3, [r7, #12]
  56828. 8017462: 681b ldr r3, [r3, #0]
  56829. 8017464: 2100 movs r1, #0
  56830. 8017466: 4618 mov r0, r3
  56831. 8017468: f7ff f892 bl 8016590 <lwip_netconn_do_close_internal>
  56832. 801746c: 4603 mov r3, r0
  56833. 801746e: 2b00 cmp r3, #0
  56834. 8017470: d027 beq.n 80174c2 <lwip_netconn_do_close+0xf6>
  56835. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  56836. 8017472: 68fb ldr r3, [r7, #12]
  56837. 8017474: 681b ldr r3, [r3, #0]
  56838. 8017476: 785b ldrb r3, [r3, #1]
  56839. 8017478: 2b04 cmp r3, #4
  56840. 801747a: d006 beq.n 801748a <lwip_netconn_do_close+0xbe>
  56841. 801747c: 4b13 ldr r3, [pc, #76] @ (80174cc <lwip_netconn_do_close+0x100>)
  56842. 801747e: f240 72c2 movw r2, #1986 @ 0x7c2
  56843. 8017482: 4915 ldr r1, [pc, #84] @ (80174d8 <lwip_netconn_do_close+0x10c>)
  56844. 8017484: 4813 ldr r0, [pc, #76] @ (80174d4 <lwip_netconn_do_close+0x108>)
  56845. 8017486: f012 faa9 bl 80299dc <iprintf>
  56846. UNLOCK_TCPIP_CORE();
  56847. 801748a: f7f9 f84d bl 8010528 <sys_unlock_tcpip_core>
  56848. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  56849. 801748e: 68fb ldr r3, [r7, #12]
  56850. 8017490: 681b ldr r3, [r3, #0]
  56851. 8017492: 330c adds r3, #12
  56852. 8017494: 2100 movs r1, #0
  56853. 8017496: 4618 mov r0, r3
  56854. 8017498: f00e ff43 bl 8026322 <sys_arch_sem_wait>
  56855. LOCK_TCPIP_CORE();
  56856. 801749c: f7f9 f834 bl 8010508 <sys_lock_tcpip_core>
  56857. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  56858. 80174a0: 68fb ldr r3, [r7, #12]
  56859. 80174a2: 681b ldr r3, [r3, #0]
  56860. 80174a4: 785b ldrb r3, [r3, #1]
  56861. 80174a6: 2b00 cmp r3, #0
  56862. 80174a8: d00b beq.n 80174c2 <lwip_netconn_do_close+0xf6>
  56863. 80174aa: 4b08 ldr r3, [pc, #32] @ (80174cc <lwip_netconn_do_close+0x100>)
  56864. 80174ac: f240 72c6 movw r2, #1990 @ 0x7c6
  56865. 80174b0: 4909 ldr r1, [pc, #36] @ (80174d8 <lwip_netconn_do_close+0x10c>)
  56866. 80174b2: 4808 ldr r0, [pc, #32] @ (80174d4 <lwip_netconn_do_close+0x108>)
  56867. 80174b4: f012 fa92 bl 80299dc <iprintf>
  56868. }
  56869. #else /* LWIP_TCPIP_CORE_LOCKING */
  56870. lwip_netconn_do_close_internal(msg->conn);
  56871. #endif /* LWIP_TCPIP_CORE_LOCKING */
  56872. /* for tcp netconns, lwip_netconn_do_close_internal ACKs the message */
  56873. return;
  56874. 80174b8: e003 b.n 80174c2 <lwip_netconn_do_close+0xf6>
  56875. }
  56876. } else
  56877. #endif /* LWIP_TCP */
  56878. {
  56879. msg->err = ERR_CONN;
  56880. 80174ba: 68fb ldr r3, [r7, #12]
  56881. 80174bc: 22f5 movs r2, #245 @ 0xf5
  56882. 80174be: 711a strb r2, [r3, #4]
  56883. 80174c0: e000 b.n 80174c4 <lwip_netconn_do_close+0xf8>
  56884. return;
  56885. 80174c2: bf00 nop
  56886. }
  56887. TCPIP_APIMSG_ACK(msg);
  56888. }
  56889. 80174c4: 3710 adds r7, #16
  56890. 80174c6: 46bd mov sp, r7
  56891. 80174c8: bd80 pop {r7, pc}
  56892. 80174ca: bf00 nop
  56893. 80174cc: 0802cf24 .word 0x0802cf24
  56894. 80174d0: 0802d2c8 .word 0x0802d2c8
  56895. 80174d4: 0802cf68 .word 0x0802cf68
  56896. 80174d8: 0802d2e4 .word 0x0802d2e4
  56897. 080174dc <err_to_errno>:
  56898. EIO /* ERR_ARG -16 Illegal argument. */
  56899. };
  56900. int
  56901. err_to_errno(err_t err)
  56902. {
  56903. 80174dc: b480 push {r7}
  56904. 80174de: b083 sub sp, #12
  56905. 80174e0: af00 add r7, sp, #0
  56906. 80174e2: 4603 mov r3, r0
  56907. 80174e4: 71fb strb r3, [r7, #7]
  56908. if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
  56909. 80174e6: f997 3007 ldrsb.w r3, [r7, #7]
  56910. 80174ea: 2b00 cmp r3, #0
  56911. 80174ec: dc04 bgt.n 80174f8 <err_to_errno+0x1c>
  56912. 80174ee: f997 3007 ldrsb.w r3, [r7, #7]
  56913. 80174f2: f113 0f10 cmn.w r3, #16
  56914. 80174f6: da01 bge.n 80174fc <err_to_errno+0x20>
  56915. return EIO;
  56916. 80174f8: 2305 movs r3, #5
  56917. 80174fa: e005 b.n 8017508 <err_to_errno+0x2c>
  56918. }
  56919. return err_to_errno_table[-err];
  56920. 80174fc: f997 3007 ldrsb.w r3, [r7, #7]
  56921. 8017500: 425b negs r3, r3
  56922. 8017502: 4a04 ldr r2, [pc, #16] @ (8017514 <err_to_errno+0x38>)
  56923. 8017504: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  56924. }
  56925. 8017508: 4618 mov r0, r3
  56926. 801750a: 370c adds r7, #12
  56927. 801750c: 46bd mov sp, r7
  56928. 801750e: f85d 7b04 ldr.w r7, [sp], #4
  56929. 8017512: 4770 bx lr
  56930. 8017514: 08030ad0 .word 0x08030ad0
  56931. 08017518 <netbuf_delete>:
  56932. *
  56933. * @param buf pointer to a netbuf allocated by netbuf_new()
  56934. */
  56935. void
  56936. netbuf_delete(struct netbuf *buf)
  56937. {
  56938. 8017518: b580 push {r7, lr}
  56939. 801751a: b082 sub sp, #8
  56940. 801751c: af00 add r7, sp, #0
  56941. 801751e: 6078 str r0, [r7, #4]
  56942. if (buf != NULL) {
  56943. 8017520: 687b ldr r3, [r7, #4]
  56944. 8017522: 2b00 cmp r3, #0
  56945. 8017524: d013 beq.n 801754e <netbuf_delete+0x36>
  56946. if (buf->p != NULL) {
  56947. 8017526: 687b ldr r3, [r7, #4]
  56948. 8017528: 681b ldr r3, [r3, #0]
  56949. 801752a: 2b00 cmp r3, #0
  56950. 801752c: d00b beq.n 8017546 <netbuf_delete+0x2e>
  56951. pbuf_free(buf->p);
  56952. 801752e: 687b ldr r3, [r7, #4]
  56953. 8017530: 681b ldr r3, [r3, #0]
  56954. 8017532: 4618 mov r0, r3
  56955. 8017534: f002 ffda bl 801a4ec <pbuf_free>
  56956. buf->p = buf->ptr = NULL;
  56957. 8017538: 687b ldr r3, [r7, #4]
  56958. 801753a: 2200 movs r2, #0
  56959. 801753c: 605a str r2, [r3, #4]
  56960. 801753e: 687b ldr r3, [r7, #4]
  56961. 8017540: 685a ldr r2, [r3, #4]
  56962. 8017542: 687b ldr r3, [r7, #4]
  56963. 8017544: 601a str r2, [r3, #0]
  56964. }
  56965. memp_free(MEMP_NETBUF, buf);
  56966. 8017546: 6879 ldr r1, [r7, #4]
  56967. 8017548: 2006 movs r0, #6
  56968. 801754a: f002 f8e1 bl 8019710 <memp_free>
  56969. }
  56970. }
  56971. 801754e: bf00 nop
  56972. 8017550: 3708 adds r7, #8
  56973. 8017552: 46bd mov sp, r7
  56974. 8017554: bd80 pop {r7, pc}
  56975. ...
  56976. 08017558 <netbuf_free>:
  56977. *
  56978. * @param buf pointer to the netbuf which contains the packet buffer to free
  56979. */
  56980. void
  56981. netbuf_free(struct netbuf *buf)
  56982. {
  56983. 8017558: b580 push {r7, lr}
  56984. 801755a: b082 sub sp, #8
  56985. 801755c: af00 add r7, sp, #0
  56986. 801755e: 6078 str r0, [r7, #4]
  56987. LWIP_ERROR("netbuf_free: invalid buf", (buf != NULL), return;);
  56988. 8017560: 687b ldr r3, [r7, #4]
  56989. 8017562: 2b00 cmp r3, #0
  56990. 8017564: d106 bne.n 8017574 <netbuf_free+0x1c>
  56991. 8017566: 4b0d ldr r3, [pc, #52] @ (801759c <netbuf_free+0x44>)
  56992. 8017568: 2281 movs r2, #129 @ 0x81
  56993. 801756a: 490d ldr r1, [pc, #52] @ (80175a0 <netbuf_free+0x48>)
  56994. 801756c: 480d ldr r0, [pc, #52] @ (80175a4 <netbuf_free+0x4c>)
  56995. 801756e: f012 fa35 bl 80299dc <iprintf>
  56996. 8017572: e00f b.n 8017594 <netbuf_free+0x3c>
  56997. if (buf->p != NULL) {
  56998. 8017574: 687b ldr r3, [r7, #4]
  56999. 8017576: 681b ldr r3, [r3, #0]
  57000. 8017578: 2b00 cmp r3, #0
  57001. 801757a: d004 beq.n 8017586 <netbuf_free+0x2e>
  57002. pbuf_free(buf->p);
  57003. 801757c: 687b ldr r3, [r7, #4]
  57004. 801757e: 681b ldr r3, [r3, #0]
  57005. 8017580: 4618 mov r0, r3
  57006. 8017582: f002 ffb3 bl 801a4ec <pbuf_free>
  57007. }
  57008. buf->p = buf->ptr = NULL;
  57009. 8017586: 687b ldr r3, [r7, #4]
  57010. 8017588: 2200 movs r2, #0
  57011. 801758a: 605a str r2, [r3, #4]
  57012. 801758c: 687b ldr r3, [r7, #4]
  57013. 801758e: 685a ldr r2, [r3, #4]
  57014. 8017590: 687b ldr r3, [r7, #4]
  57015. 8017592: 601a str r2, [r3, #0]
  57016. #if LWIP_CHECKSUM_ON_COPY
  57017. buf->flags = 0;
  57018. buf->toport_chksum = 0;
  57019. #endif /* LWIP_CHECKSUM_ON_COPY */
  57020. }
  57021. 8017594: 3708 adds r7, #8
  57022. 8017596: 46bd mov sp, r7
  57023. 8017598: bd80 pop {r7, pc}
  57024. 801759a: bf00 nop
  57025. 801759c: 0802d47c .word 0x0802d47c
  57026. 80175a0: 0802d518 .word 0x0802d518
  57027. 80175a4: 0802d4cc .word 0x0802d4cc
  57028. 080175a8 <netbuf_ref>:
  57029. * @return ERR_OK if data is referenced
  57030. * ERR_MEM if data couldn't be referenced due to lack of memory
  57031. */
  57032. err_t
  57033. netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size)
  57034. {
  57035. 80175a8: b580 push {r7, lr}
  57036. 80175aa: b084 sub sp, #16
  57037. 80175ac: af00 add r7, sp, #0
  57038. 80175ae: 60f8 str r0, [r7, #12]
  57039. 80175b0: 60b9 str r1, [r7, #8]
  57040. 80175b2: 4613 mov r3, r2
  57041. 80175b4: 80fb strh r3, [r7, #6]
  57042. LWIP_ERROR("netbuf_ref: invalid buf", (buf != NULL), return ERR_ARG;);
  57043. 80175b6: 68fb ldr r3, [r7, #12]
  57044. 80175b8: 2b00 cmp r3, #0
  57045. 80175ba: d108 bne.n 80175ce <netbuf_ref+0x26>
  57046. 80175bc: 4b1c ldr r3, [pc, #112] @ (8017630 <netbuf_ref+0x88>)
  57047. 80175be: 2299 movs r2, #153 @ 0x99
  57048. 80175c0: 491c ldr r1, [pc, #112] @ (8017634 <netbuf_ref+0x8c>)
  57049. 80175c2: 481d ldr r0, [pc, #116] @ (8017638 <netbuf_ref+0x90>)
  57050. 80175c4: f012 fa0a bl 80299dc <iprintf>
  57051. 80175c8: f06f 030f mvn.w r3, #15
  57052. 80175cc: e02b b.n 8017626 <netbuf_ref+0x7e>
  57053. if (buf->p != NULL) {
  57054. 80175ce: 68fb ldr r3, [r7, #12]
  57055. 80175d0: 681b ldr r3, [r3, #0]
  57056. 80175d2: 2b00 cmp r3, #0
  57057. 80175d4: d004 beq.n 80175e0 <netbuf_ref+0x38>
  57058. pbuf_free(buf->p);
  57059. 80175d6: 68fb ldr r3, [r7, #12]
  57060. 80175d8: 681b ldr r3, [r3, #0]
  57061. 80175da: 4618 mov r0, r3
  57062. 80175dc: f002 ff86 bl 801a4ec <pbuf_free>
  57063. }
  57064. buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF);
  57065. 80175e0: 2241 movs r2, #65 @ 0x41
  57066. 80175e2: 2100 movs r1, #0
  57067. 80175e4: 2036 movs r0, #54 @ 0x36
  57068. 80175e6: f002 fc6b bl 8019ec0 <pbuf_alloc>
  57069. 80175ea: 4602 mov r2, r0
  57070. 80175ec: 68fb ldr r3, [r7, #12]
  57071. 80175ee: 601a str r2, [r3, #0]
  57072. if (buf->p == NULL) {
  57073. 80175f0: 68fb ldr r3, [r7, #12]
  57074. 80175f2: 681b ldr r3, [r3, #0]
  57075. 80175f4: 2b00 cmp r3, #0
  57076. 80175f6: d105 bne.n 8017604 <netbuf_ref+0x5c>
  57077. buf->ptr = NULL;
  57078. 80175f8: 68fb ldr r3, [r7, #12]
  57079. 80175fa: 2200 movs r2, #0
  57080. 80175fc: 605a str r2, [r3, #4]
  57081. return ERR_MEM;
  57082. 80175fe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57083. 8017602: e010 b.n 8017626 <netbuf_ref+0x7e>
  57084. }
  57085. ((struct pbuf_rom *)buf->p)->payload = dataptr;
  57086. 8017604: 68fb ldr r3, [r7, #12]
  57087. 8017606: 681b ldr r3, [r3, #0]
  57088. 8017608: 68ba ldr r2, [r7, #8]
  57089. 801760a: 605a str r2, [r3, #4]
  57090. buf->p->len = buf->p->tot_len = size;
  57091. 801760c: 68fb ldr r3, [r7, #12]
  57092. 801760e: 681b ldr r3, [r3, #0]
  57093. 8017610: 88fa ldrh r2, [r7, #6]
  57094. 8017612: 811a strh r2, [r3, #8]
  57095. 8017614: 68fa ldr r2, [r7, #12]
  57096. 8017616: 6812 ldr r2, [r2, #0]
  57097. 8017618: 891b ldrh r3, [r3, #8]
  57098. 801761a: 8153 strh r3, [r2, #10]
  57099. buf->ptr = buf->p;
  57100. 801761c: 68fb ldr r3, [r7, #12]
  57101. 801761e: 681a ldr r2, [r3, #0]
  57102. 8017620: 68fb ldr r3, [r7, #12]
  57103. 8017622: 605a str r2, [r3, #4]
  57104. return ERR_OK;
  57105. 8017624: 2300 movs r3, #0
  57106. }
  57107. 8017626: 4618 mov r0, r3
  57108. 8017628: 3710 adds r7, #16
  57109. 801762a: 46bd mov sp, r7
  57110. 801762c: bd80 pop {r7, pc}
  57111. 801762e: bf00 nop
  57112. 8017630: 0802d47c .word 0x0802d47c
  57113. 8017634: 0802d534 .word 0x0802d534
  57114. 8017638: 0802d4cc .word 0x0802d4cc
  57115. 0801763c <tryget_socket_unconn_nouse>:
  57116. #endif /* LWIP_NETCONN_FULLDUPLEX */
  57117. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  57118. static struct lwip_sock *
  57119. tryget_socket_unconn_nouse(int fd)
  57120. {
  57121. 801763c: b480 push {r7}
  57122. 801763e: b085 sub sp, #20
  57123. 8017640: af00 add r7, sp, #0
  57124. 8017642: 6078 str r0, [r7, #4]
  57125. int s = fd - LWIP_SOCKET_OFFSET;
  57126. 8017644: 687b ldr r3, [r7, #4]
  57127. 8017646: 60fb str r3, [r7, #12]
  57128. if ((s < 0) || (s >= NUM_SOCKETS)) {
  57129. 8017648: 68fb ldr r3, [r7, #12]
  57130. 801764a: 2b00 cmp r3, #0
  57131. 801764c: db02 blt.n 8017654 <tryget_socket_unconn_nouse+0x18>
  57132. 801764e: 68fb ldr r3, [r7, #12]
  57133. 8017650: 2b03 cmp r3, #3
  57134. 8017652: dd01 ble.n 8017658 <tryget_socket_unconn_nouse+0x1c>
  57135. LWIP_DEBUGF(SOCKETS_DEBUG, ("tryget_socket_unconn(%d): invalid\n", fd));
  57136. return NULL;
  57137. 8017654: 2300 movs r3, #0
  57138. 8017656: e003 b.n 8017660 <tryget_socket_unconn_nouse+0x24>
  57139. }
  57140. return &sockets[s];
  57141. 8017658: 68fb ldr r3, [r7, #12]
  57142. 801765a: 011b lsls r3, r3, #4
  57143. 801765c: 4a03 ldr r2, [pc, #12] @ (801766c <tryget_socket_unconn_nouse+0x30>)
  57144. 801765e: 4413 add r3, r2
  57145. }
  57146. 8017660: 4618 mov r0, r3
  57147. 8017662: 3714 adds r7, #20
  57148. 8017664: 46bd mov sp, r7
  57149. 8017666: f85d 7b04 ldr.w r7, [sp], #4
  57150. 801766a: 4770 bx lr
  57151. 801766c: 240242e4 .word 0x240242e4
  57152. 08017670 <tryget_socket_unconn>:
  57153. }
  57154. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  57155. static struct lwip_sock *
  57156. tryget_socket_unconn(int fd)
  57157. {
  57158. 8017670: b580 push {r7, lr}
  57159. 8017672: b084 sub sp, #16
  57160. 8017674: af00 add r7, sp, #0
  57161. 8017676: 6078 str r0, [r7, #4]
  57162. struct lwip_sock *ret = tryget_socket_unconn_nouse(fd);
  57163. 8017678: 6878 ldr r0, [r7, #4]
  57164. 801767a: f7ff ffdf bl 801763c <tryget_socket_unconn_nouse>
  57165. 801767e: 60f8 str r0, [r7, #12]
  57166. if (ret != NULL) {
  57167. if (!sock_inc_used(ret)) {
  57168. return NULL;
  57169. }
  57170. }
  57171. return ret;
  57172. 8017680: 68fb ldr r3, [r7, #12]
  57173. }
  57174. 8017682: 4618 mov r0, r3
  57175. 8017684: 3710 adds r7, #16
  57176. 8017686: 46bd mov sp, r7
  57177. 8017688: bd80 pop {r7, pc}
  57178. 0801768a <tryget_socket>:
  57179. * @param fd externally used socket index
  57180. * @return struct lwip_sock for the socket or NULL if not found
  57181. */
  57182. static struct lwip_sock *
  57183. tryget_socket(int fd)
  57184. {
  57185. 801768a: b580 push {r7, lr}
  57186. 801768c: b084 sub sp, #16
  57187. 801768e: af00 add r7, sp, #0
  57188. 8017690: 6078 str r0, [r7, #4]
  57189. struct lwip_sock *sock = tryget_socket_unconn(fd);
  57190. 8017692: 6878 ldr r0, [r7, #4]
  57191. 8017694: f7ff ffec bl 8017670 <tryget_socket_unconn>
  57192. 8017698: 60f8 str r0, [r7, #12]
  57193. if (sock != NULL) {
  57194. 801769a: 68fb ldr r3, [r7, #12]
  57195. 801769c: 2b00 cmp r3, #0
  57196. 801769e: d005 beq.n 80176ac <tryget_socket+0x22>
  57197. if (sock->conn) {
  57198. 80176a0: 68fb ldr r3, [r7, #12]
  57199. 80176a2: 681b ldr r3, [r3, #0]
  57200. 80176a4: 2b00 cmp r3, #0
  57201. 80176a6: d001 beq.n 80176ac <tryget_socket+0x22>
  57202. return sock;
  57203. 80176a8: 68fb ldr r3, [r7, #12]
  57204. 80176aa: e000 b.n 80176ae <tryget_socket+0x24>
  57205. }
  57206. done_socket(sock);
  57207. }
  57208. return NULL;
  57209. 80176ac: 2300 movs r3, #0
  57210. }
  57211. 80176ae: 4618 mov r0, r3
  57212. 80176b0: 3710 adds r7, #16
  57213. 80176b2: 46bd mov sp, r7
  57214. 80176b4: bd80 pop {r7, pc}
  57215. ...
  57216. 080176b8 <get_socket>:
  57217. * @param fd externally used socket index
  57218. * @return struct lwip_sock for the socket or NULL if not found
  57219. */
  57220. static struct lwip_sock *
  57221. get_socket(int fd)
  57222. {
  57223. 80176b8: b580 push {r7, lr}
  57224. 80176ba: b084 sub sp, #16
  57225. 80176bc: af00 add r7, sp, #0
  57226. 80176be: 6078 str r0, [r7, #4]
  57227. struct lwip_sock *sock = tryget_socket(fd);
  57228. 80176c0: 6878 ldr r0, [r7, #4]
  57229. 80176c2: f7ff ffe2 bl 801768a <tryget_socket>
  57230. 80176c6: 60f8 str r0, [r7, #12]
  57231. if (!sock) {
  57232. 80176c8: 68fb ldr r3, [r7, #12]
  57233. 80176ca: 2b00 cmp r3, #0
  57234. 80176cc: d104 bne.n 80176d8 <get_socket+0x20>
  57235. if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) {
  57236. LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): invalid\n", fd));
  57237. }
  57238. set_errno(EBADF);
  57239. 80176ce: 4b05 ldr r3, [pc, #20] @ (80176e4 <get_socket+0x2c>)
  57240. 80176d0: 2209 movs r2, #9
  57241. 80176d2: 601a str r2, [r3, #0]
  57242. return NULL;
  57243. 80176d4: 2300 movs r3, #0
  57244. 80176d6: e000 b.n 80176da <get_socket+0x22>
  57245. }
  57246. return sock;
  57247. 80176d8: 68fb ldr r3, [r7, #12]
  57248. }
  57249. 80176da: 4618 mov r0, r3
  57250. 80176dc: 3710 adds r7, #16
  57251. 80176de: 46bd mov sp, r7
  57252. 80176e0: bd80 pop {r7, pc}
  57253. 80176e2: bf00 nop
  57254. 80176e4: 2402b180 .word 0x2402b180
  57255. 080176e8 <alloc_socket>:
  57256. * 0 if socket has been created by socket()
  57257. * @return the index of the new socket; -1 on error
  57258. */
  57259. static int
  57260. alloc_socket(struct netconn *newconn, int accepted)
  57261. {
  57262. 80176e8: b580 push {r7, lr}
  57263. 80176ea: b084 sub sp, #16
  57264. 80176ec: af00 add r7, sp, #0
  57265. 80176ee: 6078 str r0, [r7, #4]
  57266. 80176f0: 6039 str r1, [r7, #0]
  57267. int i;
  57268. SYS_ARCH_DECL_PROTECT(lev);
  57269. LWIP_UNUSED_ARG(accepted);
  57270. /* allocate a new socket identifier */
  57271. for (i = 0; i < NUM_SOCKETS; ++i) {
  57272. 80176f2: 2300 movs r3, #0
  57273. 80176f4: 60fb str r3, [r7, #12]
  57274. 80176f6: e052 b.n 801779e <alloc_socket+0xb6>
  57275. /* Protect socket array */
  57276. SYS_ARCH_PROTECT(lev);
  57277. 80176f8: f00e feda bl 80264b0 <sys_arch_protect>
  57278. 80176fc: 60b8 str r0, [r7, #8]
  57279. if (!sockets[i].conn) {
  57280. 80176fe: 4a2c ldr r2, [pc, #176] @ (80177b0 <alloc_socket+0xc8>)
  57281. 8017700: 68fb ldr r3, [r7, #12]
  57282. 8017702: 011b lsls r3, r3, #4
  57283. 8017704: 4413 add r3, r2
  57284. 8017706: 681b ldr r3, [r3, #0]
  57285. 8017708: 2b00 cmp r3, #0
  57286. 801770a: d142 bne.n 8017792 <alloc_socket+0xaa>
  57287. continue;
  57288. }
  57289. sockets[i].fd_used = 1;
  57290. sockets[i].fd_free_pending = 0;
  57291. #endif
  57292. sockets[i].conn = newconn;
  57293. 801770c: 4a28 ldr r2, [pc, #160] @ (80177b0 <alloc_socket+0xc8>)
  57294. 801770e: 68fb ldr r3, [r7, #12]
  57295. 8017710: 011b lsls r3, r3, #4
  57296. 8017712: 4413 add r3, r2
  57297. 8017714: 687a ldr r2, [r7, #4]
  57298. 8017716: 601a str r2, [r3, #0]
  57299. /* The socket is not yet known to anyone, so no need to protect
  57300. after having marked it as used. */
  57301. SYS_ARCH_UNPROTECT(lev);
  57302. 8017718: 68b8 ldr r0, [r7, #8]
  57303. 801771a: f00e fed7 bl 80264cc <sys_arch_unprotect>
  57304. sockets[i].lastdata.pbuf = NULL;
  57305. 801771e: 4a24 ldr r2, [pc, #144] @ (80177b0 <alloc_socket+0xc8>)
  57306. 8017720: 68fb ldr r3, [r7, #12]
  57307. 8017722: 011b lsls r3, r3, #4
  57308. 8017724: 4413 add r3, r2
  57309. 8017726: 3304 adds r3, #4
  57310. 8017728: 2200 movs r2, #0
  57311. 801772a: 601a str r2, [r3, #0]
  57312. #if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL
  57313. LWIP_ASSERT("sockets[i].select_waiting == 0", sockets[i].select_waiting == 0);
  57314. 801772c: 4a20 ldr r2, [pc, #128] @ (80177b0 <alloc_socket+0xc8>)
  57315. 801772e: 68fb ldr r3, [r7, #12]
  57316. 8017730: 011b lsls r3, r3, #4
  57317. 8017732: 4413 add r3, r2
  57318. 8017734: 330e adds r3, #14
  57319. 8017736: 781b ldrb r3, [r3, #0]
  57320. 8017738: 2b00 cmp r3, #0
  57321. 801773a: d006 beq.n 801774a <alloc_socket+0x62>
  57322. 801773c: 4b1d ldr r3, [pc, #116] @ (80177b4 <alloc_socket+0xcc>)
  57323. 801773e: f240 220e movw r2, #526 @ 0x20e
  57324. 8017742: 491d ldr r1, [pc, #116] @ (80177b8 <alloc_socket+0xd0>)
  57325. 8017744: 481d ldr r0, [pc, #116] @ (80177bc <alloc_socket+0xd4>)
  57326. 8017746: f012 f949 bl 80299dc <iprintf>
  57327. sockets[i].rcvevent = 0;
  57328. 801774a: 4a19 ldr r2, [pc, #100] @ (80177b0 <alloc_socket+0xc8>)
  57329. 801774c: 68fb ldr r3, [r7, #12]
  57330. 801774e: 011b lsls r3, r3, #4
  57331. 8017750: 4413 add r3, r2
  57332. 8017752: 3308 adds r3, #8
  57333. 8017754: 2200 movs r2, #0
  57334. 8017756: 801a strh r2, [r3, #0]
  57335. /* TCP sendbuf is empty, but the socket is not yet writable until connected
  57336. * (unless it has been created by accept()). */
  57337. sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1);
  57338. 8017758: 687b ldr r3, [r7, #4]
  57339. 801775a: 781b ldrb r3, [r3, #0]
  57340. 801775c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57341. 8017760: 2b10 cmp r3, #16
  57342. 8017762: d102 bne.n 801776a <alloc_socket+0x82>
  57343. 8017764: 683b ldr r3, [r7, #0]
  57344. 8017766: 2b00 cmp r3, #0
  57345. 8017768: d001 beq.n 801776e <alloc_socket+0x86>
  57346. 801776a: 2301 movs r3, #1
  57347. 801776c: e000 b.n 8017770 <alloc_socket+0x88>
  57348. 801776e: 2300 movs r3, #0
  57349. 8017770: b299 uxth r1, r3
  57350. 8017772: 4a0f ldr r2, [pc, #60] @ (80177b0 <alloc_socket+0xc8>)
  57351. 8017774: 68fb ldr r3, [r7, #12]
  57352. 8017776: 011b lsls r3, r3, #4
  57353. 8017778: 4413 add r3, r2
  57354. 801777a: 330a adds r3, #10
  57355. 801777c: 460a mov r2, r1
  57356. 801777e: 801a strh r2, [r3, #0]
  57357. sockets[i].errevent = 0;
  57358. 8017780: 4a0b ldr r2, [pc, #44] @ (80177b0 <alloc_socket+0xc8>)
  57359. 8017782: 68fb ldr r3, [r7, #12]
  57360. 8017784: 011b lsls r3, r3, #4
  57361. 8017786: 4413 add r3, r2
  57362. 8017788: 330c adds r3, #12
  57363. 801778a: 2200 movs r2, #0
  57364. 801778c: 801a strh r2, [r3, #0]
  57365. #endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */
  57366. return i + LWIP_SOCKET_OFFSET;
  57367. 801778e: 68fb ldr r3, [r7, #12]
  57368. 8017790: e00a b.n 80177a8 <alloc_socket+0xc0>
  57369. }
  57370. SYS_ARCH_UNPROTECT(lev);
  57371. 8017792: 68b8 ldr r0, [r7, #8]
  57372. 8017794: f00e fe9a bl 80264cc <sys_arch_unprotect>
  57373. for (i = 0; i < NUM_SOCKETS; ++i) {
  57374. 8017798: 68fb ldr r3, [r7, #12]
  57375. 801779a: 3301 adds r3, #1
  57376. 801779c: 60fb str r3, [r7, #12]
  57377. 801779e: 68fb ldr r3, [r7, #12]
  57378. 80177a0: 2b03 cmp r3, #3
  57379. 80177a2: dda9 ble.n 80176f8 <alloc_socket+0x10>
  57380. }
  57381. return -1;
  57382. 80177a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57383. }
  57384. 80177a8: 4618 mov r0, r3
  57385. 80177aa: 3710 adds r7, #16
  57386. 80177ac: 46bd mov sp, r7
  57387. 80177ae: bd80 pop {r7, pc}
  57388. 80177b0: 240242e4 .word 0x240242e4
  57389. 80177b4: 0802d614 .word 0x0802d614
  57390. 80177b8: 0802d648 .word 0x0802d648
  57391. 80177bc: 0802d668 .word 0x0802d668
  57392. 080177c0 <free_socket_locked>:
  57393. * @param lastdata lastdata is stored here, must be freed externally
  57394. */
  57395. static int
  57396. free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
  57397. union lwip_sock_lastdata *lastdata)
  57398. {
  57399. 80177c0: b480 push {r7}
  57400. 80177c2: b085 sub sp, #20
  57401. 80177c4: af00 add r7, sp, #0
  57402. 80177c6: 60f8 str r0, [r7, #12]
  57403. 80177c8: 60b9 str r1, [r7, #8]
  57404. 80177ca: 607a str r2, [r7, #4]
  57405. 80177cc: 603b str r3, [r7, #0]
  57406. }
  57407. #else /* LWIP_NETCONN_FULLDUPLEX */
  57408. LWIP_UNUSED_ARG(is_tcp);
  57409. #endif /* LWIP_NETCONN_FULLDUPLEX */
  57410. *lastdata = sock->lastdata;
  57411. 80177ce: 683b ldr r3, [r7, #0]
  57412. 80177d0: 68fa ldr r2, [r7, #12]
  57413. 80177d2: 6852 ldr r2, [r2, #4]
  57414. 80177d4: 601a str r2, [r3, #0]
  57415. sock->lastdata.pbuf = NULL;
  57416. 80177d6: 68fb ldr r3, [r7, #12]
  57417. 80177d8: 2200 movs r2, #0
  57418. 80177da: 605a str r2, [r3, #4]
  57419. *conn = sock->conn;
  57420. 80177dc: 68fb ldr r3, [r7, #12]
  57421. 80177de: 681a ldr r2, [r3, #0]
  57422. 80177e0: 687b ldr r3, [r7, #4]
  57423. 80177e2: 601a str r2, [r3, #0]
  57424. sock->conn = NULL;
  57425. 80177e4: 68fb ldr r3, [r7, #12]
  57426. 80177e6: 2200 movs r2, #0
  57427. 80177e8: 601a str r2, [r3, #0]
  57428. return 1;
  57429. 80177ea: 2301 movs r3, #1
  57430. }
  57431. 80177ec: 4618 mov r0, r3
  57432. 80177ee: 3714 adds r7, #20
  57433. 80177f0: 46bd mov sp, r7
  57434. 80177f2: f85d 7b04 ldr.w r7, [sp], #4
  57435. 80177f6: 4770 bx lr
  57436. 080177f8 <free_socket_free_elements>:
  57437. /** Free a socket's leftover members.
  57438. */
  57439. static void
  57440. free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata)
  57441. {
  57442. 80177f8: b580 push {r7, lr}
  57443. 80177fa: b084 sub sp, #16
  57444. 80177fc: af00 add r7, sp, #0
  57445. 80177fe: 60f8 str r0, [r7, #12]
  57446. 8017800: 60b9 str r1, [r7, #8]
  57447. 8017802: 607a str r2, [r7, #4]
  57448. if (lastdata->pbuf != NULL) {
  57449. 8017804: 687b ldr r3, [r7, #4]
  57450. 8017806: 681b ldr r3, [r3, #0]
  57451. 8017808: 2b00 cmp r3, #0
  57452. 801780a: d00d beq.n 8017828 <free_socket_free_elements+0x30>
  57453. if (is_tcp) {
  57454. 801780c: 68fb ldr r3, [r7, #12]
  57455. 801780e: 2b00 cmp r3, #0
  57456. 8017810: d005 beq.n 801781e <free_socket_free_elements+0x26>
  57457. pbuf_free(lastdata->pbuf);
  57458. 8017812: 687b ldr r3, [r7, #4]
  57459. 8017814: 681b ldr r3, [r3, #0]
  57460. 8017816: 4618 mov r0, r3
  57461. 8017818: f002 fe68 bl 801a4ec <pbuf_free>
  57462. 801781c: e004 b.n 8017828 <free_socket_free_elements+0x30>
  57463. } else {
  57464. netbuf_delete(lastdata->netbuf);
  57465. 801781e: 687b ldr r3, [r7, #4]
  57466. 8017820: 681b ldr r3, [r3, #0]
  57467. 8017822: 4618 mov r0, r3
  57468. 8017824: f7ff fe78 bl 8017518 <netbuf_delete>
  57469. }
  57470. }
  57471. if (conn != NULL) {
  57472. 8017828: 68bb ldr r3, [r7, #8]
  57473. 801782a: 2b00 cmp r3, #0
  57474. 801782c: d002 beq.n 8017834 <free_socket_free_elements+0x3c>
  57475. /* netconn_prepare_delete() has already been called, here we only free the conn */
  57476. netconn_delete(conn);
  57477. 801782e: 68b8 ldr r0, [r7, #8]
  57478. 8017830: f7fd fd50 bl 80152d4 <netconn_delete>
  57479. }
  57480. }
  57481. 8017834: bf00 nop
  57482. 8017836: 3710 adds r7, #16
  57483. 8017838: 46bd mov sp, r7
  57484. 801783a: bd80 pop {r7, pc}
  57485. 0801783c <free_socket>:
  57486. * @param sock the socket to free
  57487. * @param is_tcp != 0 for TCP sockets, used to free lastdata
  57488. */
  57489. static void
  57490. free_socket(struct lwip_sock *sock, int is_tcp)
  57491. {
  57492. 801783c: b580 push {r7, lr}
  57493. 801783e: b086 sub sp, #24
  57494. 8017840: af00 add r7, sp, #0
  57495. 8017842: 6078 str r0, [r7, #4]
  57496. 8017844: 6039 str r1, [r7, #0]
  57497. struct netconn *conn;
  57498. union lwip_sock_lastdata lastdata;
  57499. SYS_ARCH_DECL_PROTECT(lev);
  57500. /* Protect socket array */
  57501. SYS_ARCH_PROTECT(lev);
  57502. 8017846: f00e fe33 bl 80264b0 <sys_arch_protect>
  57503. 801784a: 6178 str r0, [r7, #20]
  57504. freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
  57505. 801784c: f107 0308 add.w r3, r7, #8
  57506. 8017850: f107 020c add.w r2, r7, #12
  57507. 8017854: 6839 ldr r1, [r7, #0]
  57508. 8017856: 6878 ldr r0, [r7, #4]
  57509. 8017858: f7ff ffb2 bl 80177c0 <free_socket_locked>
  57510. 801785c: 6138 str r0, [r7, #16]
  57511. SYS_ARCH_UNPROTECT(lev);
  57512. 801785e: 6978 ldr r0, [r7, #20]
  57513. 8017860: f00e fe34 bl 80264cc <sys_arch_unprotect>
  57514. /* don't use 'sock' after this line, as another task might have allocated it */
  57515. if (freed) {
  57516. 8017864: 693b ldr r3, [r7, #16]
  57517. 8017866: 2b00 cmp r3, #0
  57518. 8017868: d006 beq.n 8017878 <free_socket+0x3c>
  57519. free_socket_free_elements(is_tcp, conn, &lastdata);
  57520. 801786a: 68fb ldr r3, [r7, #12]
  57521. 801786c: f107 0208 add.w r2, r7, #8
  57522. 8017870: 4619 mov r1, r3
  57523. 8017872: 6838 ldr r0, [r7, #0]
  57524. 8017874: f7ff ffc0 bl 80177f8 <free_socket_free_elements>
  57525. }
  57526. }
  57527. 8017878: bf00 nop
  57528. 801787a: 3718 adds r7, #24
  57529. 801787c: 46bd mov sp, r7
  57530. 801787e: bd80 pop {r7, pc}
  57531. 08017880 <lwip_close>:
  57532. return 0;
  57533. }
  57534. int
  57535. lwip_close(int s)
  57536. {
  57537. 8017880: b580 push {r7, lr}
  57538. 8017882: b086 sub sp, #24
  57539. 8017884: af00 add r7, sp, #0
  57540. 8017886: 6078 str r0, [r7, #4]
  57541. struct lwip_sock *sock;
  57542. int is_tcp = 0;
  57543. 8017888: 2300 movs r3, #0
  57544. 801788a: 617b str r3, [r7, #20]
  57545. err_t err;
  57546. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_close(%d)\n", s));
  57547. sock = get_socket(s);
  57548. 801788c: 6878 ldr r0, [r7, #4]
  57549. 801788e: f7ff ff13 bl 80176b8 <get_socket>
  57550. 8017892: 6138 str r0, [r7, #16]
  57551. if (!sock) {
  57552. 8017894: 693b ldr r3, [r7, #16]
  57553. 8017896: 2b00 cmp r3, #0
  57554. 8017898: d102 bne.n 80178a0 <lwip_close+0x20>
  57555. return -1;
  57556. 801789a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57557. 801789e: e039 b.n 8017914 <lwip_close+0x94>
  57558. }
  57559. if (sock->conn != NULL) {
  57560. 80178a0: 693b ldr r3, [r7, #16]
  57561. 80178a2: 681b ldr r3, [r3, #0]
  57562. 80178a4: 2b00 cmp r3, #0
  57563. 80178a6: d00b beq.n 80178c0 <lwip_close+0x40>
  57564. is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
  57565. 80178a8: 693b ldr r3, [r7, #16]
  57566. 80178aa: 681b ldr r3, [r3, #0]
  57567. 80178ac: 781b ldrb r3, [r3, #0]
  57568. 80178ae: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57569. 80178b2: 2b10 cmp r3, #16
  57570. 80178b4: bf0c ite eq
  57571. 80178b6: 2301 moveq r3, #1
  57572. 80178b8: 2300 movne r3, #0
  57573. 80178ba: b2db uxtb r3, r3
  57574. 80178bc: 617b str r3, [r7, #20]
  57575. 80178be: e00a b.n 80178d6 <lwip_close+0x56>
  57576. } else {
  57577. LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL);
  57578. 80178c0: 693b ldr r3, [r7, #16]
  57579. 80178c2: 685b ldr r3, [r3, #4]
  57580. 80178c4: 2b00 cmp r3, #0
  57581. 80178c6: d006 beq.n 80178d6 <lwip_close+0x56>
  57582. 80178c8: 4b14 ldr r3, [pc, #80] @ (801791c <lwip_close+0x9c>)
  57583. 80178ca: f44f 7245 mov.w r2, #788 @ 0x314
  57584. 80178ce: 4914 ldr r1, [pc, #80] @ (8017920 <lwip_close+0xa0>)
  57585. 80178d0: 4814 ldr r0, [pc, #80] @ (8017924 <lwip_close+0xa4>)
  57586. 80178d2: f012 f883 bl 80299dc <iprintf>
  57587. #if LWIP_IPV6_MLD
  57588. /* drop all possibly joined MLD6 memberships */
  57589. lwip_socket_drop_registered_mld6_memberships(s);
  57590. #endif /* LWIP_IPV6_MLD */
  57591. err = netconn_prepare_delete(sock->conn);
  57592. 80178d6: 693b ldr r3, [r7, #16]
  57593. 80178d8: 681b ldr r3, [r3, #0]
  57594. 80178da: 4618 mov r0, r3
  57595. 80178dc: f7fd fcd6 bl 801528c <netconn_prepare_delete>
  57596. 80178e0: 4603 mov r3, r0
  57597. 80178e2: 73fb strb r3, [r7, #15]
  57598. if (err != ERR_OK) {
  57599. 80178e4: f997 300f ldrsb.w r3, [r7, #15]
  57600. 80178e8: 2b00 cmp r3, #0
  57601. 80178ea: d00e beq.n 801790a <lwip_close+0x8a>
  57602. sock_set_errno(sock, err_to_errno(err));
  57603. 80178ec: f997 300f ldrsb.w r3, [r7, #15]
  57604. 80178f0: 4618 mov r0, r3
  57605. 80178f2: f7ff fdf3 bl 80174dc <err_to_errno>
  57606. 80178f6: 60b8 str r0, [r7, #8]
  57607. 80178f8: 68bb ldr r3, [r7, #8]
  57608. 80178fa: 2b00 cmp r3, #0
  57609. 80178fc: d002 beq.n 8017904 <lwip_close+0x84>
  57610. 80178fe: 4a0a ldr r2, [pc, #40] @ (8017928 <lwip_close+0xa8>)
  57611. 8017900: 68bb ldr r3, [r7, #8]
  57612. 8017902: 6013 str r3, [r2, #0]
  57613. done_socket(sock);
  57614. return -1;
  57615. 8017904: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57616. 8017908: e004 b.n 8017914 <lwip_close+0x94>
  57617. }
  57618. free_socket(sock, is_tcp);
  57619. 801790a: 6979 ldr r1, [r7, #20]
  57620. 801790c: 6938 ldr r0, [r7, #16]
  57621. 801790e: f7ff ff95 bl 801783c <free_socket>
  57622. set_errno(0);
  57623. return 0;
  57624. 8017912: 2300 movs r3, #0
  57625. }
  57626. 8017914: 4618 mov r0, r3
  57627. 8017916: 3718 adds r7, #24
  57628. 8017918: 46bd mov sp, r7
  57629. 801791a: bd80 pop {r7, pc}
  57630. 801791c: 0802d614 .word 0x0802d614
  57631. 8017920: 0802d6d4 .word 0x0802d6d4
  57632. 8017924: 0802d668 .word 0x0802d668
  57633. 8017928: 2402b180 .word 0x2402b180
  57634. 0801792c <lwip_connect>:
  57635. int
  57636. lwip_connect(int s, const struct sockaddr *name, socklen_t namelen)
  57637. {
  57638. 801792c: b580 push {r7, lr}
  57639. 801792e: b08a sub sp, #40 @ 0x28
  57640. 8017930: af00 add r7, sp, #0
  57641. 8017932: 60f8 str r0, [r7, #12]
  57642. 8017934: 60b9 str r1, [r7, #8]
  57643. 8017936: 607a str r2, [r7, #4]
  57644. struct lwip_sock *sock;
  57645. err_t err;
  57646. sock = get_socket(s);
  57647. 8017938: 68f8 ldr r0, [r7, #12]
  57648. 801793a: f7ff febd bl 80176b8 <get_socket>
  57649. 801793e: 6278 str r0, [r7, #36] @ 0x24
  57650. if (!sock) {
  57651. 8017940: 6a7b ldr r3, [r7, #36] @ 0x24
  57652. 8017942: 2b00 cmp r3, #0
  57653. 8017944: d102 bne.n 801794c <lwip_connect+0x20>
  57654. return -1;
  57655. 8017946: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57656. 801794a: e062 b.n 8017a12 <lwip_connect+0xe6>
  57657. done_socket(sock);
  57658. return -1;
  57659. }
  57660. LWIP_UNUSED_ARG(namelen);
  57661. if (name->sa_family == AF_UNSPEC) {
  57662. 801794c: 68bb ldr r3, [r7, #8]
  57663. 801794e: 785b ldrb r3, [r3, #1]
  57664. 8017950: 2b00 cmp r3, #0
  57665. 8017952: d108 bne.n 8017966 <lwip_connect+0x3a>
  57666. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, AF_UNSPEC)\n", s));
  57667. err = netconn_disconnect(sock->conn);
  57668. 8017954: 6a7b ldr r3, [r7, #36] @ 0x24
  57669. 8017956: 681b ldr r3, [r3, #0]
  57670. 8017958: 4618 mov r0, r3
  57671. 801795a: f7fd fd61 bl 8015420 <netconn_disconnect>
  57672. 801795e: 4603 mov r3, r0
  57673. 8017960: f887 3021 strb.w r3, [r7, #33] @ 0x21
  57674. 8017964: e039 b.n 80179da <lwip_connect+0xae>
  57675. } else {
  57676. ip_addr_t remote_addr;
  57677. u16_t remote_port;
  57678. /* check size, family and alignment of 'name' */
  57679. LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) &&
  57680. 8017966: 687b ldr r3, [r7, #4]
  57681. 8017968: 2b10 cmp r3, #16
  57682. 801796a: d10c bne.n 8017986 <lwip_connect+0x5a>
  57683. 801796c: 68bb ldr r3, [r7, #8]
  57684. 801796e: 785b ldrb r3, [r3, #1]
  57685. 8017970: 2b00 cmp r3, #0
  57686. 8017972: d003 beq.n 801797c <lwip_connect+0x50>
  57687. 8017974: 68bb ldr r3, [r7, #8]
  57688. 8017976: 785b ldrb r3, [r3, #1]
  57689. 8017978: 2b02 cmp r3, #2
  57690. 801797a: d104 bne.n 8017986 <lwip_connect+0x5a>
  57691. 801797c: 68bb ldr r3, [r7, #8]
  57692. 801797e: f003 0303 and.w r3, r3, #3
  57693. 8017982: 2b00 cmp r3, #0
  57694. 8017984: d014 beq.n 80179b0 <lwip_connect+0x84>
  57695. 8017986: 4b25 ldr r3, [pc, #148] @ (8017a1c <lwip_connect+0xf0>)
  57696. 8017988: f240 3247 movw r2, #839 @ 0x347
  57697. 801798c: 4924 ldr r1, [pc, #144] @ (8017a20 <lwip_connect+0xf4>)
  57698. 801798e: 4825 ldr r0, [pc, #148] @ (8017a24 <lwip_connect+0xf8>)
  57699. 8017990: f012 f824 bl 80299dc <iprintf>
  57700. 8017994: f06f 000f mvn.w r0, #15
  57701. 8017998: f7ff fda0 bl 80174dc <err_to_errno>
  57702. 801799c: 61f8 str r0, [r7, #28]
  57703. 801799e: 69fb ldr r3, [r7, #28]
  57704. 80179a0: 2b00 cmp r3, #0
  57705. 80179a2: d002 beq.n 80179aa <lwip_connect+0x7e>
  57706. 80179a4: 4a20 ldr r2, [pc, #128] @ (8017a28 <lwip_connect+0xfc>)
  57707. 80179a6: 69fb ldr r3, [r7, #28]
  57708. 80179a8: 6013 str r3, [r2, #0]
  57709. 80179aa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57710. 80179ae: e030 b.n 8017a12 <lwip_connect+0xe6>
  57711. IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name),
  57712. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  57713. SOCKADDR_TO_IPADDR_PORT(name, &remote_addr, remote_port);
  57714. 80179b0: 68bb ldr r3, [r7, #8]
  57715. 80179b2: 685b ldr r3, [r3, #4]
  57716. 80179b4: 613b str r3, [r7, #16]
  57717. 80179b6: 68bb ldr r3, [r7, #8]
  57718. 80179b8: 885b ldrh r3, [r3, #2]
  57719. 80179ba: 4618 mov r0, r3
  57720. 80179bc: f001 f8b4 bl 8018b28 <lwip_htons>
  57721. 80179c0: 4603 mov r3, r0
  57722. 80179c2: 847b strh r3, [r7, #34] @ 0x22
  57723. unmap_ipv4_mapped_ipv6(ip_2_ip4(&remote_addr), ip_2_ip6(&remote_addr));
  57724. IP_SET_TYPE_VAL(remote_addr, IPADDR_TYPE_V4);
  57725. }
  57726. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  57727. err = netconn_connect(sock->conn, &remote_addr, remote_port);
  57728. 80179c4: 6a7b ldr r3, [r7, #36] @ 0x24
  57729. 80179c6: 681b ldr r3, [r3, #0]
  57730. 80179c8: 8c7a ldrh r2, [r7, #34] @ 0x22
  57731. 80179ca: f107 0110 add.w r1, r7, #16
  57732. 80179ce: 4618 mov r0, r3
  57733. 80179d0: f7fd fcee bl 80153b0 <netconn_connect>
  57734. 80179d4: 4603 mov r3, r0
  57735. 80179d6: f887 3021 strb.w r3, [r7, #33] @ 0x21
  57736. }
  57737. if (err != ERR_OK) {
  57738. 80179da: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  57739. 80179de: 2b00 cmp r3, #0
  57740. 80179e0: d00e beq.n 8017a00 <lwip_connect+0xd4>
  57741. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) failed, err=%d\n", s, err));
  57742. sock_set_errno(sock, err_to_errno(err));
  57743. 80179e2: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  57744. 80179e6: 4618 mov r0, r3
  57745. 80179e8: f7ff fd78 bl 80174dc <err_to_errno>
  57746. 80179ec: 6178 str r0, [r7, #20]
  57747. 80179ee: 697b ldr r3, [r7, #20]
  57748. 80179f0: 2b00 cmp r3, #0
  57749. 80179f2: d002 beq.n 80179fa <lwip_connect+0xce>
  57750. 80179f4: 4a0c ldr r2, [pc, #48] @ (8017a28 <lwip_connect+0xfc>)
  57751. 80179f6: 697b ldr r3, [r7, #20]
  57752. 80179f8: 6013 str r3, [r2, #0]
  57753. done_socket(sock);
  57754. return -1;
  57755. 80179fa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57756. 80179fe: e008 b.n 8017a12 <lwip_connect+0xe6>
  57757. }
  57758. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) succeeded\n", s));
  57759. sock_set_errno(sock, 0);
  57760. 8017a00: 2300 movs r3, #0
  57761. 8017a02: 61bb str r3, [r7, #24]
  57762. 8017a04: 69bb ldr r3, [r7, #24]
  57763. 8017a06: 2b00 cmp r3, #0
  57764. 8017a08: d002 beq.n 8017a10 <lwip_connect+0xe4>
  57765. 8017a0a: 4a07 ldr r2, [pc, #28] @ (8017a28 <lwip_connect+0xfc>)
  57766. 8017a0c: 69bb ldr r3, [r7, #24]
  57767. 8017a0e: 6013 str r3, [r2, #0]
  57768. done_socket(sock);
  57769. return 0;
  57770. 8017a10: 2300 movs r3, #0
  57771. }
  57772. 8017a12: 4618 mov r0, r3
  57773. 8017a14: 3728 adds r7, #40 @ 0x28
  57774. 8017a16: 46bd mov sp, r7
  57775. 8017a18: bd80 pop {r7, pc}
  57776. 8017a1a: bf00 nop
  57777. 8017a1c: 0802d614 .word 0x0802d614
  57778. 8017a20: 0802d6ec .word 0x0802d6ec
  57779. 8017a24: 0802d668 .word 0x0802d668
  57780. 8017a28: 2402b180 .word 0x2402b180
  57781. 08017a2c <lwip_recv_tcp>:
  57782. * until "len" bytes are received or we're otherwise done.
  57783. * Keeps sock->lastdata for peeking or partly copying.
  57784. */
  57785. static ssize_t
  57786. lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags)
  57787. {
  57788. 8017a2c: b580 push {r7, lr}
  57789. 8017a2e: b08c sub sp, #48 @ 0x30
  57790. 8017a30: af00 add r7, sp, #0
  57791. 8017a32: 60f8 str r0, [r7, #12]
  57792. 8017a34: 60b9 str r1, [r7, #8]
  57793. 8017a36: 607a str r2, [r7, #4]
  57794. 8017a38: 603b str r3, [r7, #0]
  57795. u8_t apiflags = NETCONN_NOAUTORCVD;
  57796. 8017a3a: 2308 movs r3, #8
  57797. 8017a3c: f887 3023 strb.w r3, [r7, #35] @ 0x23
  57798. ssize_t recvd = 0;
  57799. 8017a40: 2300 movs r3, #0
  57800. 8017a42: 62bb str r3, [r7, #40] @ 0x28
  57801. ssize_t recv_left = (len <= SSIZE_MAX) ? (ssize_t)len : SSIZE_MAX;
  57802. 8017a44: 687b ldr r3, [r7, #4]
  57803. 8017a46: 2b00 cmp r3, #0
  57804. 8017a48: db01 blt.n 8017a4e <lwip_recv_tcp+0x22>
  57805. 8017a4a: 687b ldr r3, [r7, #4]
  57806. 8017a4c: e001 b.n 8017a52 <lwip_recv_tcp+0x26>
  57807. 8017a4e: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  57808. 8017a52: 627b str r3, [r7, #36] @ 0x24
  57809. LWIP_ASSERT("no socket given", sock != NULL);
  57810. 8017a54: 68fb ldr r3, [r7, #12]
  57811. 8017a56: 2b00 cmp r3, #0
  57812. 8017a58: d106 bne.n 8017a68 <lwip_recv_tcp+0x3c>
  57813. 8017a5a: 4b74 ldr r3, [pc, #464] @ (8017c2c <lwip_recv_tcp+0x200>)
  57814. 8017a5c: f240 329e movw r2, #926 @ 0x39e
  57815. 8017a60: 4973 ldr r1, [pc, #460] @ (8017c30 <lwip_recv_tcp+0x204>)
  57816. 8017a62: 4874 ldr r0, [pc, #464] @ (8017c34 <lwip_recv_tcp+0x208>)
  57817. 8017a64: f011 ffba bl 80299dc <iprintf>
  57818. LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP);
  57819. 8017a68: 68fb ldr r3, [r7, #12]
  57820. 8017a6a: 681b ldr r3, [r3, #0]
  57821. 8017a6c: 781b ldrb r3, [r3, #0]
  57822. 8017a6e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57823. 8017a72: 2b10 cmp r3, #16
  57824. 8017a74: d006 beq.n 8017a84 <lwip_recv_tcp+0x58>
  57825. 8017a76: 4b6d ldr r3, [pc, #436] @ (8017c2c <lwip_recv_tcp+0x200>)
  57826. 8017a78: f240 329f movw r2, #927 @ 0x39f
  57827. 8017a7c: 496e ldr r1, [pc, #440] @ (8017c38 <lwip_recv_tcp+0x20c>)
  57828. 8017a7e: 486d ldr r0, [pc, #436] @ (8017c34 <lwip_recv_tcp+0x208>)
  57829. 8017a80: f011 ffac bl 80299dc <iprintf>
  57830. if (flags & MSG_DONTWAIT) {
  57831. 8017a84: 683b ldr r3, [r7, #0]
  57832. 8017a86: f003 0308 and.w r3, r3, #8
  57833. 8017a8a: 2b00 cmp r3, #0
  57834. 8017a8c: d005 beq.n 8017a9a <lwip_recv_tcp+0x6e>
  57835. apiflags |= NETCONN_DONTBLOCK;
  57836. 8017a8e: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  57837. 8017a92: f043 0304 orr.w r3, r3, #4
  57838. 8017a96: f887 3023 strb.w r3, [r7, #35] @ 0x23
  57839. err_t err;
  57840. u16_t copylen;
  57841. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf));
  57842. /* Check if there is data left from the last recv operation. */
  57843. if (sock->lastdata.pbuf) {
  57844. 8017a9a: 68fb ldr r3, [r7, #12]
  57845. 8017a9c: 685b ldr r3, [r3, #4]
  57846. 8017a9e: 2b00 cmp r3, #0
  57847. 8017aa0: d003 beq.n 8017aaa <lwip_recv_tcp+0x7e>
  57848. p = sock->lastdata.pbuf;
  57849. 8017aa2: 68fb ldr r3, [r7, #12]
  57850. 8017aa4: 685b ldr r3, [r3, #4]
  57851. 8017aa6: 617b str r3, [r7, #20]
  57852. 8017aa8: e036 b.n 8017b18 <lwip_recv_tcp+0xec>
  57853. } else {
  57854. /* No data was left from the previous operation, so we try to get
  57855. some from the network. */
  57856. err = netconn_recv_tcp_pbuf_flags(sock->conn, &p, apiflags);
  57857. 8017aaa: 68fb ldr r3, [r7, #12]
  57858. 8017aac: 681b ldr r3, [r3, #0]
  57859. 8017aae: f897 2023 ldrb.w r2, [r7, #35] @ 0x23
  57860. 8017ab2: f107 0114 add.w r1, r7, #20
  57861. 8017ab6: 4618 mov r0, r3
  57862. 8017ab8: f7fd fea4 bl 8015804 <netconn_recv_tcp_pbuf_flags>
  57863. 8017abc: 4603 mov r3, r0
  57864. 8017abe: f887 3022 strb.w r3, [r7, #34] @ 0x22
  57865. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: netconn_recv err=%d, pbuf=%p\n",
  57866. err, (void *)p));
  57867. if (err != ERR_OK) {
  57868. 8017ac2: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  57869. 8017ac6: 2b00 cmp r3, #0
  57870. 8017ac8: d019 beq.n 8017afe <lwip_recv_tcp+0xd2>
  57871. if (recvd > 0) {
  57872. 8017aca: 6abb ldr r3, [r7, #40] @ 0x28
  57873. 8017acc: 2b00 cmp r3, #0
  57874. 8017ace: f300 808d bgt.w 8017bec <lwip_recv_tcp+0x1c0>
  57875. goto lwip_recv_tcp_done;
  57876. }
  57877. /* We should really do some error checking here. */
  57878. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: p == NULL, error is \"%s\"!\n",
  57879. lwip_strerr(err)));
  57880. sock_set_errno(sock, err_to_errno(err));
  57881. 8017ad2: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  57882. 8017ad6: 4618 mov r0, r3
  57883. 8017ad8: f7ff fd00 bl 80174dc <err_to_errno>
  57884. 8017adc: 61f8 str r0, [r7, #28]
  57885. 8017ade: 69fb ldr r3, [r7, #28]
  57886. 8017ae0: 2b00 cmp r3, #0
  57887. 8017ae2: d002 beq.n 8017aea <lwip_recv_tcp+0xbe>
  57888. 8017ae4: 4a55 ldr r2, [pc, #340] @ (8017c3c <lwip_recv_tcp+0x210>)
  57889. 8017ae6: 69fb ldr r3, [r7, #28]
  57890. 8017ae8: 6013 str r3, [r2, #0]
  57891. if (err == ERR_CLSD) {
  57892. 8017aea: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  57893. 8017aee: f113 0f0f cmn.w r3, #15
  57894. 8017af2: d101 bne.n 8017af8 <lwip_recv_tcp+0xcc>
  57895. return 0;
  57896. 8017af4: 2300 movs r3, #0
  57897. 8017af6: e094 b.n 8017c22 <lwip_recv_tcp+0x1f6>
  57898. } else {
  57899. return -1;
  57900. 8017af8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57901. 8017afc: e091 b.n 8017c22 <lwip_recv_tcp+0x1f6>
  57902. }
  57903. }
  57904. LWIP_ASSERT("p != NULL", p != NULL);
  57905. 8017afe: 697b ldr r3, [r7, #20]
  57906. 8017b00: 2b00 cmp r3, #0
  57907. 8017b02: d106 bne.n 8017b12 <lwip_recv_tcp+0xe6>
  57908. 8017b04: 4b49 ldr r3, [pc, #292] @ (8017c2c <lwip_recv_tcp+0x200>)
  57909. 8017b06: f240 32c5 movw r2, #965 @ 0x3c5
  57910. 8017b0a: 494d ldr r1, [pc, #308] @ (8017c40 <lwip_recv_tcp+0x214>)
  57911. 8017b0c: 4849 ldr r0, [pc, #292] @ (8017c34 <lwip_recv_tcp+0x208>)
  57912. 8017b0e: f011 ff65 bl 80299dc <iprintf>
  57913. sock->lastdata.pbuf = p;
  57914. 8017b12: 697a ldr r2, [r7, #20]
  57915. 8017b14: 68fb ldr r3, [r7, #12]
  57916. 8017b16: 605a str r2, [r3, #4]
  57917. }
  57918. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: buflen=%"U16_F" recv_left=%d off=%d\n",
  57919. p->tot_len, (int)recv_left, (int)recvd));
  57920. if (recv_left > p->tot_len) {
  57921. 8017b18: 697b ldr r3, [r7, #20]
  57922. 8017b1a: 891b ldrh r3, [r3, #8]
  57923. 8017b1c: 461a mov r2, r3
  57924. 8017b1e: 6a7b ldr r3, [r7, #36] @ 0x24
  57925. 8017b20: 4293 cmp r3, r2
  57926. 8017b22: dd03 ble.n 8017b2c <lwip_recv_tcp+0x100>
  57927. copylen = p->tot_len;
  57928. 8017b24: 697b ldr r3, [r7, #20]
  57929. 8017b26: 891b ldrh r3, [r3, #8]
  57930. 8017b28: 85fb strh r3, [r7, #46] @ 0x2e
  57931. 8017b2a: e001 b.n 8017b30 <lwip_recv_tcp+0x104>
  57932. } else {
  57933. copylen = (u16_t)recv_left;
  57934. 8017b2c: 6a7b ldr r3, [r7, #36] @ 0x24
  57935. 8017b2e: 85fb strh r3, [r7, #46] @ 0x2e
  57936. }
  57937. if (recvd + copylen < recvd) {
  57938. 8017b30: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57939. 8017b32: 6abb ldr r3, [r7, #40] @ 0x28
  57940. 8017b34: 4413 add r3, r2
  57941. 8017b36: 6aba ldr r2, [r7, #40] @ 0x28
  57942. 8017b38: 429a cmp r2, r3
  57943. 8017b3a: dd03 ble.n 8017b44 <lwip_recv_tcp+0x118>
  57944. /* overflow */
  57945. copylen = (u16_t)(SSIZE_MAX - recvd);
  57946. 8017b3c: 6abb ldr r3, [r7, #40] @ 0x28
  57947. 8017b3e: b29b uxth r3, r3
  57948. 8017b40: 43db mvns r3, r3
  57949. 8017b42: 85fb strh r3, [r7, #46] @ 0x2e
  57950. }
  57951. /* copy the contents of the received buffer into
  57952. the supplied memory pointer mem */
  57953. pbuf_copy_partial(p, (u8_t *)mem + recvd, copylen, 0);
  57954. 8017b44: 6978 ldr r0, [r7, #20]
  57955. 8017b46: 6abb ldr r3, [r7, #40] @ 0x28
  57956. 8017b48: 68ba ldr r2, [r7, #8]
  57957. 8017b4a: 18d1 adds r1, r2, r3
  57958. 8017b4c: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57959. 8017b4e: 2300 movs r3, #0
  57960. 8017b50: f002 fed2 bl 801a8f8 <pbuf_copy_partial>
  57961. recvd += copylen;
  57962. 8017b54: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57963. 8017b56: 6aba ldr r2, [r7, #40] @ 0x28
  57964. 8017b58: 4413 add r3, r2
  57965. 8017b5a: 62bb str r3, [r7, #40] @ 0x28
  57966. /* TCP combines multiple pbufs for one recv */
  57967. LWIP_ASSERT("invalid copylen, len would underflow", recv_left >= copylen);
  57968. 8017b5c: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57969. 8017b5e: 6a7a ldr r2, [r7, #36] @ 0x24
  57970. 8017b60: 429a cmp r2, r3
  57971. 8017b62: da06 bge.n 8017b72 <lwip_recv_tcp+0x146>
  57972. 8017b64: 4b31 ldr r3, [pc, #196] @ (8017c2c <lwip_recv_tcp+0x200>)
  57973. 8017b66: f240 32dd movw r2, #989 @ 0x3dd
  57974. 8017b6a: 4936 ldr r1, [pc, #216] @ (8017c44 <lwip_recv_tcp+0x218>)
  57975. 8017b6c: 4831 ldr r0, [pc, #196] @ (8017c34 <lwip_recv_tcp+0x208>)
  57976. 8017b6e: f011 ff35 bl 80299dc <iprintf>
  57977. recv_left -= copylen;
  57978. 8017b72: 8dfb ldrh r3, [r7, #46] @ 0x2e
  57979. 8017b74: 6a7a ldr r2, [r7, #36] @ 0x24
  57980. 8017b76: 1ad3 subs r3, r2, r3
  57981. 8017b78: 627b str r3, [r7, #36] @ 0x24
  57982. /* Unless we peek the incoming message... */
  57983. if ((flags & MSG_PEEK) == 0) {
  57984. 8017b7a: 683b ldr r3, [r7, #0]
  57985. 8017b7c: f003 0301 and.w r3, r3, #1
  57986. 8017b80: 2b00 cmp r3, #0
  57987. 8017b82: d123 bne.n 8017bcc <lwip_recv_tcp+0x1a0>
  57988. /* ... check if there is data left in the pbuf */
  57989. LWIP_ASSERT("invalid copylen", p->tot_len >= copylen);
  57990. 8017b84: 697b ldr r3, [r7, #20]
  57991. 8017b86: 891b ldrh r3, [r3, #8]
  57992. 8017b88: 8dfa ldrh r2, [r7, #46] @ 0x2e
  57993. 8017b8a: 429a cmp r2, r3
  57994. 8017b8c: d906 bls.n 8017b9c <lwip_recv_tcp+0x170>
  57995. 8017b8e: 4b27 ldr r3, [pc, #156] @ (8017c2c <lwip_recv_tcp+0x200>)
  57996. 8017b90: f240 32e3 movw r2, #995 @ 0x3e3
  57997. 8017b94: 492c ldr r1, [pc, #176] @ (8017c48 <lwip_recv_tcp+0x21c>)
  57998. 8017b96: 4827 ldr r0, [pc, #156] @ (8017c34 <lwip_recv_tcp+0x208>)
  57999. 8017b98: f011 ff20 bl 80299dc <iprintf>
  58000. if (p->tot_len - copylen > 0) {
  58001. 8017b9c: 697b ldr r3, [r7, #20]
  58002. 8017b9e: 891b ldrh r3, [r3, #8]
  58003. 8017ba0: 461a mov r2, r3
  58004. 8017ba2: 8dfb ldrh r3, [r7, #46] @ 0x2e
  58005. 8017ba4: 1ad3 subs r3, r2, r3
  58006. 8017ba6: 2b00 cmp r3, #0
  58007. 8017ba8: dd09 ble.n 8017bbe <lwip_recv_tcp+0x192>
  58008. /* If so, it should be saved in the sock structure for the next recv call.
  58009. We store the pbuf but hide/free the consumed data: */
  58010. sock->lastdata.pbuf = pbuf_free_header(p, copylen);
  58011. 8017baa: 697b ldr r3, [r7, #20]
  58012. 8017bac: 8dfa ldrh r2, [r7, #46] @ 0x2e
  58013. 8017bae: 4611 mov r1, r2
  58014. 8017bb0: 4618 mov r0, r3
  58015. 8017bb2: f002 fc68 bl 801a486 <pbuf_free_header>
  58016. 8017bb6: 4602 mov r2, r0
  58017. 8017bb8: 68fb ldr r3, [r7, #12]
  58018. 8017bba: 605a str r2, [r3, #4]
  58019. 8017bbc: e006 b.n 8017bcc <lwip_recv_tcp+0x1a0>
  58020. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf));
  58021. } else {
  58022. sock->lastdata.pbuf = NULL;
  58023. 8017bbe: 68fb ldr r3, [r7, #12]
  58024. 8017bc0: 2200 movs r2, #0
  58025. 8017bc2: 605a str r2, [r3, #4]
  58026. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: deleting pbuf=%p\n", (void *)p));
  58027. pbuf_free(p);
  58028. 8017bc4: 697b ldr r3, [r7, #20]
  58029. 8017bc6: 4618 mov r0, r3
  58030. 8017bc8: f002 fc90 bl 801a4ec <pbuf_free>
  58031. }
  58032. }
  58033. /* once we have some data to return, only add more if we don't need to wait */
  58034. apiflags |= NETCONN_DONTBLOCK | NETCONN_NOFIN;
  58035. 8017bcc: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  58036. 8017bd0: f043 0314 orr.w r3, r3, #20
  58037. 8017bd4: f887 3023 strb.w r3, [r7, #35] @ 0x23
  58038. /* @todo: do we need to support peeking more than one pbuf? */
  58039. } while ((recv_left > 0) && !(flags & MSG_PEEK));
  58040. 8017bd8: 6a7b ldr r3, [r7, #36] @ 0x24
  58041. 8017bda: 2b00 cmp r3, #0
  58042. 8017bdc: dd08 ble.n 8017bf0 <lwip_recv_tcp+0x1c4>
  58043. 8017bde: 683b ldr r3, [r7, #0]
  58044. 8017be0: f003 0301 and.w r3, r3, #1
  58045. 8017be4: 2b00 cmp r3, #0
  58046. 8017be6: f43f af58 beq.w 8017a9a <lwip_recv_tcp+0x6e>
  58047. lwip_recv_tcp_done:
  58048. 8017bea: e001 b.n 8017bf0 <lwip_recv_tcp+0x1c4>
  58049. goto lwip_recv_tcp_done;
  58050. 8017bec: bf00 nop
  58051. 8017bee: e000 b.n 8017bf2 <lwip_recv_tcp+0x1c6>
  58052. lwip_recv_tcp_done:
  58053. 8017bf0: bf00 nop
  58054. if ((recvd > 0) && !(flags & MSG_PEEK)) {
  58055. 8017bf2: 6abb ldr r3, [r7, #40] @ 0x28
  58056. 8017bf4: 2b00 cmp r3, #0
  58057. 8017bf6: dd0b ble.n 8017c10 <lwip_recv_tcp+0x1e4>
  58058. 8017bf8: 683b ldr r3, [r7, #0]
  58059. 8017bfa: f003 0301 and.w r3, r3, #1
  58060. 8017bfe: 2b00 cmp r3, #0
  58061. 8017c00: d106 bne.n 8017c10 <lwip_recv_tcp+0x1e4>
  58062. /* ensure window update after copying all data */
  58063. netconn_tcp_recvd(sock->conn, (size_t)recvd);
  58064. 8017c02: 68fb ldr r3, [r7, #12]
  58065. 8017c04: 681b ldr r3, [r3, #0]
  58066. 8017c06: 6aba ldr r2, [r7, #40] @ 0x28
  58067. 8017c08: 4611 mov r1, r2
  58068. 8017c0a: 4618 mov r0, r3
  58069. 8017c0c: f7fd fd42 bl 8015694 <netconn_tcp_recvd>
  58070. }
  58071. sock_set_errno(sock, 0);
  58072. 8017c10: 2300 movs r3, #0
  58073. 8017c12: 61bb str r3, [r7, #24]
  58074. 8017c14: 69bb ldr r3, [r7, #24]
  58075. 8017c16: 2b00 cmp r3, #0
  58076. 8017c18: d002 beq.n 8017c20 <lwip_recv_tcp+0x1f4>
  58077. 8017c1a: 4a08 ldr r2, [pc, #32] @ (8017c3c <lwip_recv_tcp+0x210>)
  58078. 8017c1c: 69bb ldr r3, [r7, #24]
  58079. 8017c1e: 6013 str r3, [r2, #0]
  58080. return recvd;
  58081. 8017c20: 6abb ldr r3, [r7, #40] @ 0x28
  58082. }
  58083. 8017c22: 4618 mov r0, r3
  58084. 8017c24: 3730 adds r7, #48 @ 0x30
  58085. 8017c26: 46bd mov sp, r7
  58086. 8017c28: bd80 pop {r7, pc}
  58087. 8017c2a: bf00 nop
  58088. 8017c2c: 0802d614 .word 0x0802d614
  58089. 8017c30: 0802d70c .word 0x0802d70c
  58090. 8017c34: 0802d668 .word 0x0802d668
  58091. 8017c38: 0802d71c .word 0x0802d71c
  58092. 8017c3c: 2402b180 .word 0x2402b180
  58093. 8017c40: 0802d740 .word 0x0802d740
  58094. 8017c44: 0802d74c .word 0x0802d74c
  58095. 8017c48: 0802d774 .word 0x0802d774
  58096. 08017c4c <lwip_sock_make_addr>:
  58097. /* Convert a netbuf's address data to struct sockaddr */
  58098. static int
  58099. lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port,
  58100. struct sockaddr *from, socklen_t *fromlen)
  58101. {
  58102. 8017c4c: b590 push {r4, r7, lr}
  58103. 8017c4e: b08b sub sp, #44 @ 0x2c
  58104. 8017c50: af00 add r7, sp, #0
  58105. 8017c52: 60f8 str r0, [r7, #12]
  58106. 8017c54: 60b9 str r1, [r7, #8]
  58107. 8017c56: 603b str r3, [r7, #0]
  58108. 8017c58: 4613 mov r3, r2
  58109. 8017c5a: 80fb strh r3, [r7, #6]
  58110. int truncated = 0;
  58111. 8017c5c: 2300 movs r3, #0
  58112. 8017c5e: 627b str r3, [r7, #36] @ 0x24
  58113. union sockaddr_aligned saddr;
  58114. LWIP_UNUSED_ARG(conn);
  58115. LWIP_ASSERT("fromaddr != NULL", fromaddr != NULL);
  58116. 8017c60: 68bb ldr r3, [r7, #8]
  58117. 8017c62: 2b00 cmp r3, #0
  58118. 8017c64: d106 bne.n 8017c74 <lwip_sock_make_addr+0x28>
  58119. 8017c66: 4b2b ldr r3, [pc, #172] @ (8017d14 <lwip_sock_make_addr+0xc8>)
  58120. 8017c68: f240 4207 movw r2, #1031 @ 0x407
  58121. 8017c6c: 492a ldr r1, [pc, #168] @ (8017d18 <lwip_sock_make_addr+0xcc>)
  58122. 8017c6e: 482b ldr r0, [pc, #172] @ (8017d1c <lwip_sock_make_addr+0xd0>)
  58123. 8017c70: f011 feb4 bl 80299dc <iprintf>
  58124. LWIP_ASSERT("from != NULL", from != NULL);
  58125. 8017c74: 683b ldr r3, [r7, #0]
  58126. 8017c76: 2b00 cmp r3, #0
  58127. 8017c78: d106 bne.n 8017c88 <lwip_sock_make_addr+0x3c>
  58128. 8017c7a: 4b26 ldr r3, [pc, #152] @ (8017d14 <lwip_sock_make_addr+0xc8>)
  58129. 8017c7c: f44f 6281 mov.w r2, #1032 @ 0x408
  58130. 8017c80: 4927 ldr r1, [pc, #156] @ (8017d20 <lwip_sock_make_addr+0xd4>)
  58131. 8017c82: 4826 ldr r0, [pc, #152] @ (8017d1c <lwip_sock_make_addr+0xd0>)
  58132. 8017c84: f011 feaa bl 80299dc <iprintf>
  58133. LWIP_ASSERT("fromlen != NULL", fromlen != NULL);
  58134. 8017c88: 6bbb ldr r3, [r7, #56] @ 0x38
  58135. 8017c8a: 2b00 cmp r3, #0
  58136. 8017c8c: d106 bne.n 8017c9c <lwip_sock_make_addr+0x50>
  58137. 8017c8e: 4b21 ldr r3, [pc, #132] @ (8017d14 <lwip_sock_make_addr+0xc8>)
  58138. 8017c90: f240 4209 movw r2, #1033 @ 0x409
  58139. 8017c94: 4923 ldr r1, [pc, #140] @ (8017d24 <lwip_sock_make_addr+0xd8>)
  58140. 8017c96: 4821 ldr r0, [pc, #132] @ (8017d1c <lwip_sock_make_addr+0xd0>)
  58141. 8017c98: f011 fea0 bl 80299dc <iprintf>
  58142. ip4_2_ipv4_mapped_ipv6(ip_2_ip6(fromaddr), ip_2_ip4(fromaddr));
  58143. IP_SET_TYPE(fromaddr, IPADDR_TYPE_V6);
  58144. }
  58145. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  58146. IPADDR_PORT_TO_SOCKADDR(&saddr, fromaddr, port);
  58147. 8017c9c: f107 0314 add.w r3, r7, #20
  58148. 8017ca0: 2210 movs r2, #16
  58149. 8017ca2: 701a strb r2, [r3, #0]
  58150. 8017ca4: f107 0314 add.w r3, r7, #20
  58151. 8017ca8: 2202 movs r2, #2
  58152. 8017caa: 705a strb r2, [r3, #1]
  58153. 8017cac: f107 0414 add.w r4, r7, #20
  58154. 8017cb0: 88fb ldrh r3, [r7, #6]
  58155. 8017cb2: 4618 mov r0, r3
  58156. 8017cb4: f000 ff38 bl 8018b28 <lwip_htons>
  58157. 8017cb8: 4603 mov r3, r0
  58158. 8017cba: 8063 strh r3, [r4, #2]
  58159. 8017cbc: f107 0314 add.w r3, r7, #20
  58160. 8017cc0: 68ba ldr r2, [r7, #8]
  58161. 8017cc2: 6812 ldr r2, [r2, #0]
  58162. 8017cc4: 605a str r2, [r3, #4]
  58163. 8017cc6: f107 0314 add.w r3, r7, #20
  58164. 8017cca: 3308 adds r3, #8
  58165. 8017ccc: 2208 movs r2, #8
  58166. 8017cce: 2100 movs r1, #0
  58167. 8017cd0: 4618 mov r0, r3
  58168. 8017cd2: f012 f815 bl 8029d00 <memset>
  58169. if (*fromlen < saddr.sa.sa_len) {
  58170. 8017cd6: 6bbb ldr r3, [r7, #56] @ 0x38
  58171. 8017cd8: 681b ldr r3, [r3, #0]
  58172. 8017cda: 7d3a ldrb r2, [r7, #20]
  58173. 8017cdc: 4293 cmp r3, r2
  58174. 8017cde: d202 bcs.n 8017ce6 <lwip_sock_make_addr+0x9a>
  58175. truncated = 1;
  58176. 8017ce0: 2301 movs r3, #1
  58177. 8017ce2: 627b str r3, [r7, #36] @ 0x24
  58178. 8017ce4: e008 b.n 8017cf8 <lwip_sock_make_addr+0xac>
  58179. } else if (*fromlen > saddr.sa.sa_len) {
  58180. 8017ce6: 6bbb ldr r3, [r7, #56] @ 0x38
  58181. 8017ce8: 681b ldr r3, [r3, #0]
  58182. 8017cea: 7d3a ldrb r2, [r7, #20]
  58183. 8017cec: 4293 cmp r3, r2
  58184. 8017cee: d903 bls.n 8017cf8 <lwip_sock_make_addr+0xac>
  58185. *fromlen = saddr.sa.sa_len;
  58186. 8017cf0: 7d3b ldrb r3, [r7, #20]
  58187. 8017cf2: 461a mov r2, r3
  58188. 8017cf4: 6bbb ldr r3, [r7, #56] @ 0x38
  58189. 8017cf6: 601a str r2, [r3, #0]
  58190. }
  58191. MEMCPY(from, &saddr, *fromlen);
  58192. 8017cf8: 6bbb ldr r3, [r7, #56] @ 0x38
  58193. 8017cfa: 681a ldr r2, [r3, #0]
  58194. 8017cfc: f107 0314 add.w r3, r7, #20
  58195. 8017d00: 4619 mov r1, r3
  58196. 8017d02: 6838 ldr r0, [r7, #0]
  58197. 8017d04: f012 f8f3 bl 8029eee <memcpy>
  58198. return truncated;
  58199. 8017d08: 6a7b ldr r3, [r7, #36] @ 0x24
  58200. }
  58201. 8017d0a: 4618 mov r0, r3
  58202. 8017d0c: 372c adds r7, #44 @ 0x2c
  58203. 8017d0e: 46bd mov sp, r7
  58204. 8017d10: bd90 pop {r4, r7, pc}
  58205. 8017d12: bf00 nop
  58206. 8017d14: 0802d614 .word 0x0802d614
  58207. 8017d18: 0802d784 .word 0x0802d784
  58208. 8017d1c: 0802d668 .word 0x0802d668
  58209. 8017d20: 0802d798 .word 0x0802d798
  58210. 8017d24: 0802d7a8 .word 0x0802d7a8
  58211. 08017d28 <lwip_recv_tcp_from>:
  58212. #if LWIP_TCP
  58213. /* Helper function to get a tcp socket's remote address info */
  58214. static int
  58215. 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)
  58216. {
  58217. 8017d28: b580 push {r7, lr}
  58218. 8017d2a: b088 sub sp, #32
  58219. 8017d2c: af02 add r7, sp, #8
  58220. 8017d2e: 60f8 str r0, [r7, #12]
  58221. 8017d30: 60b9 str r1, [r7, #8]
  58222. 8017d32: 607a str r2, [r7, #4]
  58223. 8017d34: 603b str r3, [r7, #0]
  58224. if (sock == NULL) {
  58225. 8017d36: 68fb ldr r3, [r7, #12]
  58226. 8017d38: 2b00 cmp r3, #0
  58227. 8017d3a: d101 bne.n 8017d40 <lwip_recv_tcp_from+0x18>
  58228. return 0;
  58229. 8017d3c: 2300 movs r3, #0
  58230. 8017d3e: e021 b.n 8017d84 <lwip_recv_tcp_from+0x5c>
  58231. LWIP_UNUSED_ARG(dbg_fn);
  58232. LWIP_UNUSED_ARG(dbg_s);
  58233. LWIP_UNUSED_ARG(dbg_ret);
  58234. #if !SOCKETS_DEBUG
  58235. if (from && fromlen)
  58236. 8017d40: 68bb ldr r3, [r7, #8]
  58237. 8017d42: 2b00 cmp r3, #0
  58238. 8017d44: d01d beq.n 8017d82 <lwip_recv_tcp_from+0x5a>
  58239. 8017d46: 687b ldr r3, [r7, #4]
  58240. 8017d48: 2b00 cmp r3, #0
  58241. 8017d4a: d01a beq.n 8017d82 <lwip_recv_tcp_from+0x5a>
  58242. #endif /* !SOCKETS_DEBUG */
  58243. {
  58244. /* get remote addr/port from tcp_pcb */
  58245. u16_t port;
  58246. ip_addr_t tmpaddr;
  58247. netconn_getaddr(sock->conn, &tmpaddr, &port, 0);
  58248. 8017d4c: 68fb ldr r3, [r7, #12]
  58249. 8017d4e: 6818 ldr r0, [r3, #0]
  58250. 8017d50: f107 0216 add.w r2, r7, #22
  58251. 8017d54: f107 0110 add.w r1, r7, #16
  58252. 8017d58: 2300 movs r3, #0
  58253. 8017d5a: f7fd fad7 bl 801530c <netconn_getaddr>
  58254. LWIP_DEBUGF(SOCKETS_DEBUG, ("%s(%d): addr=", dbg_fn, dbg_s));
  58255. ip_addr_debug_print_val(SOCKETS_DEBUG, tmpaddr);
  58256. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", port, (int)dbg_ret));
  58257. if (from && fromlen) {
  58258. 8017d5e: 68bb ldr r3, [r7, #8]
  58259. 8017d60: 2b00 cmp r3, #0
  58260. 8017d62: d00e beq.n 8017d82 <lwip_recv_tcp_from+0x5a>
  58261. 8017d64: 687b ldr r3, [r7, #4]
  58262. 8017d66: 2b00 cmp r3, #0
  58263. 8017d68: d00b beq.n 8017d82 <lwip_recv_tcp_from+0x5a>
  58264. return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
  58265. 8017d6a: 68fb ldr r3, [r7, #12]
  58266. 8017d6c: 6818 ldr r0, [r3, #0]
  58267. 8017d6e: 8afa ldrh r2, [r7, #22]
  58268. 8017d70: f107 0110 add.w r1, r7, #16
  58269. 8017d74: 687b ldr r3, [r7, #4]
  58270. 8017d76: 9300 str r3, [sp, #0]
  58271. 8017d78: 68bb ldr r3, [r7, #8]
  58272. 8017d7a: f7ff ff67 bl 8017c4c <lwip_sock_make_addr>
  58273. 8017d7e: 4603 mov r3, r0
  58274. 8017d80: e000 b.n 8017d84 <lwip_recv_tcp_from+0x5c>
  58275. }
  58276. }
  58277. return 0;
  58278. 8017d82: 2300 movs r3, #0
  58279. }
  58280. 8017d84: 4618 mov r0, r3
  58281. 8017d86: 3718 adds r7, #24
  58282. 8017d88: 46bd mov sp, r7
  58283. 8017d8a: bd80 pop {r7, pc}
  58284. 08017d8c <lwip_recvfrom_udp_raw>:
  58285. /* Helper function to receive a netbuf from a udp or raw netconn.
  58286. * Keeps sock->lastdata for peeking.
  58287. */
  58288. static err_t
  58289. lwip_recvfrom_udp_raw(struct lwip_sock *sock, int flags, struct msghdr *msg, u16_t *datagram_len, int dbg_s)
  58290. {
  58291. 8017d8c: b590 push {r4, r7, lr}
  58292. 8017d8e: b08d sub sp, #52 @ 0x34
  58293. 8017d90: af02 add r7, sp, #8
  58294. 8017d92: 60f8 str r0, [r7, #12]
  58295. 8017d94: 60b9 str r1, [r7, #8]
  58296. 8017d96: 607a str r2, [r7, #4]
  58297. 8017d98: 603b str r3, [r7, #0]
  58298. err_t err;
  58299. u16_t buflen, copylen, copied;
  58300. int i;
  58301. LWIP_UNUSED_ARG(dbg_s);
  58302. LWIP_ERROR("lwip_recvfrom_udp_raw: invalid arguments", (msg->msg_iov != NULL) || (msg->msg_iovlen <= 0), return ERR_ARG;);
  58303. 8017d9a: 687b ldr r3, [r7, #4]
  58304. 8017d9c: 689b ldr r3, [r3, #8]
  58305. 8017d9e: 2b00 cmp r3, #0
  58306. 8017da0: d10d bne.n 8017dbe <lwip_recvfrom_udp_raw+0x32>
  58307. 8017da2: 687b ldr r3, [r7, #4]
  58308. 8017da4: 68db ldr r3, [r3, #12]
  58309. 8017da6: 2b00 cmp r3, #0
  58310. 8017da8: dd09 ble.n 8017dbe <lwip_recvfrom_udp_raw+0x32>
  58311. 8017daa: 4b5e ldr r3, [pc, #376] @ (8017f24 <lwip_recvfrom_udp_raw+0x198>)
  58312. 8017dac: f240 4249 movw r2, #1097 @ 0x449
  58313. 8017db0: 495d ldr r1, [pc, #372] @ (8017f28 <lwip_recvfrom_udp_raw+0x19c>)
  58314. 8017db2: 485e ldr r0, [pc, #376] @ (8017f2c <lwip_recvfrom_udp_raw+0x1a0>)
  58315. 8017db4: f011 fe12 bl 80299dc <iprintf>
  58316. 8017db8: f06f 030f mvn.w r3, #15
  58317. 8017dbc: e0ae b.n 8017f1c <lwip_recvfrom_udp_raw+0x190>
  58318. if (flags & MSG_DONTWAIT) {
  58319. 8017dbe: 68bb ldr r3, [r7, #8]
  58320. 8017dc0: f003 0308 and.w r3, r3, #8
  58321. 8017dc4: 2b00 cmp r3, #0
  58322. 8017dc6: d003 beq.n 8017dd0 <lwip_recvfrom_udp_raw+0x44>
  58323. apiflags = NETCONN_DONTBLOCK;
  58324. 8017dc8: 2304 movs r3, #4
  58325. 8017dca: f887 3026 strb.w r3, [r7, #38] @ 0x26
  58326. 8017dce: e002 b.n 8017dd6 <lwip_recvfrom_udp_raw+0x4a>
  58327. } else {
  58328. apiflags = 0;
  58329. 8017dd0: 2300 movs r3, #0
  58330. 8017dd2: f887 3026 strb.w r3, [r7, #38] @ 0x26
  58331. }
  58332. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf));
  58333. /* Check if there is data left from the last recv operation. */
  58334. buf = sock->lastdata.netbuf;
  58335. 8017dd6: 68fb ldr r3, [r7, #12]
  58336. 8017dd8: 685b ldr r3, [r3, #4]
  58337. 8017dda: 613b str r3, [r7, #16]
  58338. if (buf == NULL) {
  58339. 8017ddc: 693b ldr r3, [r7, #16]
  58340. 8017dde: 2b00 cmp r3, #0
  58341. 8017de0: d11f bne.n 8017e22 <lwip_recvfrom_udp_raw+0x96>
  58342. /* No data was left from the previous operation, so we try to get
  58343. some from the network. */
  58344. err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &buf, apiflags);
  58345. 8017de2: 68fb ldr r3, [r7, #12]
  58346. 8017de4: 681b ldr r3, [r3, #0]
  58347. 8017de6: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  58348. 8017dea: f107 0110 add.w r1, r7, #16
  58349. 8017dee: 4618 mov r0, r3
  58350. 8017df0: f7fd fd34 bl 801585c <netconn_recv_udp_raw_netbuf_flags>
  58351. 8017df4: 4603 mov r3, r0
  58352. 8017df6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  58353. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: netconn_recv err=%d, netbuf=%p\n",
  58354. err, (void *)buf));
  58355. if (err != ERR_OK) {
  58356. 8017dfa: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  58357. 8017dfe: 2b00 cmp r3, #0
  58358. 8017e00: d002 beq.n 8017e08 <lwip_recvfrom_udp_raw+0x7c>
  58359. return err;
  58360. 8017e02: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  58361. 8017e06: e089 b.n 8017f1c <lwip_recvfrom_udp_raw+0x190>
  58362. }
  58363. LWIP_ASSERT("buf != NULL", buf != NULL);
  58364. 8017e08: 693b ldr r3, [r7, #16]
  58365. 8017e0a: 2b00 cmp r3, #0
  58366. 8017e0c: d106 bne.n 8017e1c <lwip_recvfrom_udp_raw+0x90>
  58367. 8017e0e: 4b45 ldr r3, [pc, #276] @ (8017f24 <lwip_recvfrom_udp_raw+0x198>)
  58368. 8017e10: f240 425e movw r2, #1118 @ 0x45e
  58369. 8017e14: 4946 ldr r1, [pc, #280] @ (8017f30 <lwip_recvfrom_udp_raw+0x1a4>)
  58370. 8017e16: 4845 ldr r0, [pc, #276] @ (8017f2c <lwip_recvfrom_udp_raw+0x1a0>)
  58371. 8017e18: f011 fde0 bl 80299dc <iprintf>
  58372. sock->lastdata.netbuf = buf;
  58373. 8017e1c: 693a ldr r2, [r7, #16]
  58374. 8017e1e: 68fb ldr r3, [r7, #12]
  58375. 8017e20: 605a str r2, [r3, #4]
  58376. }
  58377. buflen = buf->p->tot_len;
  58378. 8017e22: 693b ldr r3, [r7, #16]
  58379. 8017e24: 681b ldr r3, [r3, #0]
  58380. 8017e26: 891b ldrh r3, [r3, #8]
  58381. 8017e28: 837b strh r3, [r7, #26]
  58382. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw: buflen=%"U16_F"\n", buflen));
  58383. copied = 0;
  58384. 8017e2a: 2300 movs r3, #0
  58385. 8017e2c: 847b strh r3, [r7, #34] @ 0x22
  58386. /* copy the pbuf payload into the iovs */
  58387. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  58388. 8017e2e: 2300 movs r3, #0
  58389. 8017e30: 61fb str r3, [r7, #28]
  58390. 8017e32: e029 b.n 8017e88 <lwip_recvfrom_udp_raw+0xfc>
  58391. u16_t len_left = (u16_t)(buflen - copied);
  58392. 8017e34: 8b7a ldrh r2, [r7, #26]
  58393. 8017e36: 8c7b ldrh r3, [r7, #34] @ 0x22
  58394. 8017e38: 1ad3 subs r3, r2, r3
  58395. 8017e3a: 833b strh r3, [r7, #24]
  58396. if (msg->msg_iov[i].iov_len > len_left) {
  58397. 8017e3c: 687b ldr r3, [r7, #4]
  58398. 8017e3e: 689a ldr r2, [r3, #8]
  58399. 8017e40: 69fb ldr r3, [r7, #28]
  58400. 8017e42: 00db lsls r3, r3, #3
  58401. 8017e44: 4413 add r3, r2
  58402. 8017e46: 685a ldr r2, [r3, #4]
  58403. 8017e48: 8b3b ldrh r3, [r7, #24]
  58404. 8017e4a: 429a cmp r2, r3
  58405. 8017e4c: d902 bls.n 8017e54 <lwip_recvfrom_udp_raw+0xc8>
  58406. copylen = len_left;
  58407. 8017e4e: 8b3b ldrh r3, [r7, #24]
  58408. 8017e50: 84bb strh r3, [r7, #36] @ 0x24
  58409. 8017e52: e006 b.n 8017e62 <lwip_recvfrom_udp_raw+0xd6>
  58410. } else {
  58411. copylen = (u16_t)msg->msg_iov[i].iov_len;
  58412. 8017e54: 687b ldr r3, [r7, #4]
  58413. 8017e56: 689a ldr r2, [r3, #8]
  58414. 8017e58: 69fb ldr r3, [r7, #28]
  58415. 8017e5a: 00db lsls r3, r3, #3
  58416. 8017e5c: 4413 add r3, r2
  58417. 8017e5e: 685b ldr r3, [r3, #4]
  58418. 8017e60: 84bb strh r3, [r7, #36] @ 0x24
  58419. }
  58420. /* copy the contents of the received buffer into
  58421. the supplied memory buffer */
  58422. pbuf_copy_partial(buf->p, (u8_t *)msg->msg_iov[i].iov_base, copylen, copied);
  58423. 8017e62: 693b ldr r3, [r7, #16]
  58424. 8017e64: 6818 ldr r0, [r3, #0]
  58425. 8017e66: 687b ldr r3, [r7, #4]
  58426. 8017e68: 689a ldr r2, [r3, #8]
  58427. 8017e6a: 69fb ldr r3, [r7, #28]
  58428. 8017e6c: 00db lsls r3, r3, #3
  58429. 8017e6e: 4413 add r3, r2
  58430. 8017e70: 6819 ldr r1, [r3, #0]
  58431. 8017e72: 8c7b ldrh r3, [r7, #34] @ 0x22
  58432. 8017e74: 8cba ldrh r2, [r7, #36] @ 0x24
  58433. 8017e76: f002 fd3f bl 801a8f8 <pbuf_copy_partial>
  58434. copied = (u16_t)(copied + copylen);
  58435. 8017e7a: 8c7a ldrh r2, [r7, #34] @ 0x22
  58436. 8017e7c: 8cbb ldrh r3, [r7, #36] @ 0x24
  58437. 8017e7e: 4413 add r3, r2
  58438. 8017e80: 847b strh r3, [r7, #34] @ 0x22
  58439. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  58440. 8017e82: 69fb ldr r3, [r7, #28]
  58441. 8017e84: 3301 adds r3, #1
  58442. 8017e86: 61fb str r3, [r7, #28]
  58443. 8017e88: 687b ldr r3, [r7, #4]
  58444. 8017e8a: 68db ldr r3, [r3, #12]
  58445. 8017e8c: 69fa ldr r2, [r7, #28]
  58446. 8017e8e: 429a cmp r2, r3
  58447. 8017e90: da03 bge.n 8017e9a <lwip_recvfrom_udp_raw+0x10e>
  58448. 8017e92: 8c7a ldrh r2, [r7, #34] @ 0x22
  58449. 8017e94: 8b7b ldrh r3, [r7, #26]
  58450. 8017e96: 429a cmp r2, r3
  58451. 8017e98: d3cc bcc.n 8017e34 <lwip_recvfrom_udp_raw+0xa8>
  58452. }
  58453. /* Check to see from where the data was.*/
  58454. #if !SOCKETS_DEBUG
  58455. if (msg->msg_name && msg->msg_namelen)
  58456. 8017e9a: 687b ldr r3, [r7, #4]
  58457. 8017e9c: 681b ldr r3, [r3, #0]
  58458. 8017e9e: 2b00 cmp r3, #0
  58459. 8017ea0: d01a beq.n 8017ed8 <lwip_recvfrom_udp_raw+0x14c>
  58460. 8017ea2: 687b ldr r3, [r7, #4]
  58461. 8017ea4: 685b ldr r3, [r3, #4]
  58462. 8017ea6: 2b00 cmp r3, #0
  58463. 8017ea8: d016 beq.n 8017ed8 <lwip_recvfrom_udp_raw+0x14c>
  58464. #endif /* !SOCKETS_DEBUG */
  58465. {
  58466. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw(%d): addr=", dbg_s));
  58467. ip_addr_debug_print_val(SOCKETS_DEBUG, *netbuf_fromaddr(buf));
  58468. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", netbuf_fromport(buf), copied));
  58469. if (msg->msg_name && msg->msg_namelen) {
  58470. 8017eaa: 687b ldr r3, [r7, #4]
  58471. 8017eac: 681b ldr r3, [r3, #0]
  58472. 8017eae: 2b00 cmp r3, #0
  58473. 8017eb0: d012 beq.n 8017ed8 <lwip_recvfrom_udp_raw+0x14c>
  58474. 8017eb2: 687b ldr r3, [r7, #4]
  58475. 8017eb4: 685b ldr r3, [r3, #4]
  58476. 8017eb6: 2b00 cmp r3, #0
  58477. 8017eb8: d00e beq.n 8017ed8 <lwip_recvfrom_udp_raw+0x14c>
  58478. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  58479. 8017eba: 68fb ldr r3, [r7, #12]
  58480. 8017ebc: 6818 ldr r0, [r3, #0]
  58481. 8017ebe: 693b ldr r3, [r7, #16]
  58482. 8017ec0: f103 0108 add.w r1, r3, #8
  58483. 8017ec4: 693b ldr r3, [r7, #16]
  58484. 8017ec6: 899a ldrh r2, [r3, #12]
  58485. (struct sockaddr *)msg->msg_name, &msg->msg_namelen);
  58486. 8017ec8: 687b ldr r3, [r7, #4]
  58487. 8017eca: 681c ldr r4, [r3, #0]
  58488. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  58489. 8017ecc: 687b ldr r3, [r7, #4]
  58490. 8017ece: 3304 adds r3, #4
  58491. 8017ed0: 9300 str r3, [sp, #0]
  58492. 8017ed2: 4623 mov r3, r4
  58493. 8017ed4: f7ff feba bl 8017c4c <lwip_sock_make_addr>
  58494. }
  58495. }
  58496. /* Initialize flag output */
  58497. msg->msg_flags = 0;
  58498. 8017ed8: 687b ldr r3, [r7, #4]
  58499. 8017eda: 2200 movs r2, #0
  58500. 8017edc: 619a str r2, [r3, #24]
  58501. if (msg->msg_control) {
  58502. 8017ede: 687b ldr r3, [r7, #4]
  58503. 8017ee0: 691b ldr r3, [r3, #16]
  58504. 8017ee2: 2b00 cmp r3, #0
  58505. 8017ee4: d007 beq.n 8017ef6 <lwip_recvfrom_udp_raw+0x16a>
  58506. u8_t wrote_msg = 0;
  58507. 8017ee6: 2300 movs r3, #0
  58508. 8017ee8: 75fb strb r3, [r7, #23]
  58509. #endif /* LWIP_IPV4 */
  58510. }
  58511. }
  58512. #endif /* LWIP_NETBUF_RECVINFO */
  58513. if (!wrote_msg) {
  58514. 8017eea: 7dfb ldrb r3, [r7, #23]
  58515. 8017eec: 2b00 cmp r3, #0
  58516. 8017eee: d102 bne.n 8017ef6 <lwip_recvfrom_udp_raw+0x16a>
  58517. msg->msg_controllen = 0;
  58518. 8017ef0: 687b ldr r3, [r7, #4]
  58519. 8017ef2: 2200 movs r2, #0
  58520. 8017ef4: 615a str r2, [r3, #20]
  58521. }
  58522. }
  58523. /* If we don't peek the incoming message: zero lastdata pointer and free the netbuf */
  58524. if ((flags & MSG_PEEK) == 0) {
  58525. 8017ef6: 68bb ldr r3, [r7, #8]
  58526. 8017ef8: f003 0301 and.w r3, r3, #1
  58527. 8017efc: 2b00 cmp r3, #0
  58528. 8017efe: d106 bne.n 8017f0e <lwip_recvfrom_udp_raw+0x182>
  58529. sock->lastdata.netbuf = NULL;
  58530. 8017f00: 68fb ldr r3, [r7, #12]
  58531. 8017f02: 2200 movs r2, #0
  58532. 8017f04: 605a str r2, [r3, #4]
  58533. netbuf_delete(buf);
  58534. 8017f06: 693b ldr r3, [r7, #16]
  58535. 8017f08: 4618 mov r0, r3
  58536. 8017f0a: f7ff fb05 bl 8017518 <netbuf_delete>
  58537. }
  58538. if (datagram_len) {
  58539. 8017f0e: 683b ldr r3, [r7, #0]
  58540. 8017f10: 2b00 cmp r3, #0
  58541. 8017f12: d002 beq.n 8017f1a <lwip_recvfrom_udp_raw+0x18e>
  58542. *datagram_len = buflen;
  58543. 8017f14: 683b ldr r3, [r7, #0]
  58544. 8017f16: 8b7a ldrh r2, [r7, #26]
  58545. 8017f18: 801a strh r2, [r3, #0]
  58546. }
  58547. return ERR_OK;
  58548. 8017f1a: 2300 movs r3, #0
  58549. }
  58550. 8017f1c: 4618 mov r0, r3
  58551. 8017f1e: 372c adds r7, #44 @ 0x2c
  58552. 8017f20: 46bd mov sp, r7
  58553. 8017f22: bd90 pop {r4, r7, pc}
  58554. 8017f24: 0802d614 .word 0x0802d614
  58555. 8017f28: 0802d7b8 .word 0x0802d7b8
  58556. 8017f2c: 0802d668 .word 0x0802d668
  58557. 8017f30: 0802d7e4 .word 0x0802d7e4
  58558. 08017f34 <lwip_recvfrom>:
  58559. ssize_t
  58560. lwip_recvfrom(int s, void *mem, size_t len, int flags,
  58561. struct sockaddr *from, socklen_t *fromlen)
  58562. {
  58563. 8017f34: b580 push {r7, lr}
  58564. 8017f36: b096 sub sp, #88 @ 0x58
  58565. 8017f38: af02 add r7, sp, #8
  58566. 8017f3a: 60f8 str r0, [r7, #12]
  58567. 8017f3c: 60b9 str r1, [r7, #8]
  58568. 8017f3e: 607a str r2, [r7, #4]
  58569. 8017f40: 603b str r3, [r7, #0]
  58570. struct lwip_sock *sock;
  58571. ssize_t ret;
  58572. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d, %p, %"SZT_F", 0x%x, ..)\n", s, mem, len, flags));
  58573. sock = get_socket(s);
  58574. 8017f42: 68f8 ldr r0, [r7, #12]
  58575. 8017f44: f7ff fbb8 bl 80176b8 <get_socket>
  58576. 8017f48: 64f8 str r0, [r7, #76] @ 0x4c
  58577. if (!sock) {
  58578. 8017f4a: 6cfb ldr r3, [r7, #76] @ 0x4c
  58579. 8017f4c: 2b00 cmp r3, #0
  58580. 8017f4e: d102 bne.n 8017f56 <lwip_recvfrom+0x22>
  58581. return -1;
  58582. 8017f50: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58583. 8017f54: e078 b.n 8018048 <lwip_recvfrom+0x114>
  58584. }
  58585. #if LWIP_TCP
  58586. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  58587. 8017f56: 6cfb ldr r3, [r7, #76] @ 0x4c
  58588. 8017f58: 681b ldr r3, [r3, #0]
  58589. 8017f5a: 781b ldrb r3, [r3, #0]
  58590. 8017f5c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58591. 8017f60: 2b10 cmp r3, #16
  58592. 8017f62: d112 bne.n 8017f8a <lwip_recvfrom+0x56>
  58593. ret = lwip_recv_tcp(sock, mem, len, flags);
  58594. 8017f64: 683b ldr r3, [r7, #0]
  58595. 8017f66: 687a ldr r2, [r7, #4]
  58596. 8017f68: 68b9 ldr r1, [r7, #8]
  58597. 8017f6a: 6cf8 ldr r0, [r7, #76] @ 0x4c
  58598. 8017f6c: f7ff fd5e bl 8017a2c <lwip_recv_tcp>
  58599. 8017f70: 6478 str r0, [r7, #68] @ 0x44
  58600. lwip_recv_tcp_from(sock, from, fromlen, "lwip_recvfrom", s, ret);
  58601. 8017f72: 6c7b ldr r3, [r7, #68] @ 0x44
  58602. 8017f74: 9301 str r3, [sp, #4]
  58603. 8017f76: 68fb ldr r3, [r7, #12]
  58604. 8017f78: 9300 str r3, [sp, #0]
  58605. 8017f7a: 4b35 ldr r3, [pc, #212] @ (8018050 <lwip_recvfrom+0x11c>)
  58606. 8017f7c: 6dfa ldr r2, [r7, #92] @ 0x5c
  58607. 8017f7e: 6db9 ldr r1, [r7, #88] @ 0x58
  58608. 8017f80: 6cf8 ldr r0, [r7, #76] @ 0x4c
  58609. 8017f82: f7ff fed1 bl 8017d28 <lwip_recv_tcp_from>
  58610. done_socket(sock);
  58611. return ret;
  58612. 8017f86: 6c7b ldr r3, [r7, #68] @ 0x44
  58613. 8017f88: e05e b.n 8018048 <lwip_recvfrom+0x114>
  58614. } else
  58615. #endif
  58616. {
  58617. u16_t datagram_len = 0;
  58618. 8017f8a: 2300 movs r3, #0
  58619. 8017f8c: 877b strh r3, [r7, #58] @ 0x3a
  58620. struct iovec vec;
  58621. struct msghdr msg;
  58622. err_t err;
  58623. vec.iov_base = mem;
  58624. 8017f8e: 68bb ldr r3, [r7, #8]
  58625. 8017f90: 633b str r3, [r7, #48] @ 0x30
  58626. vec.iov_len = len;
  58627. 8017f92: 687b ldr r3, [r7, #4]
  58628. 8017f94: 637b str r3, [r7, #52] @ 0x34
  58629. msg.msg_control = NULL;
  58630. 8017f96: 2300 movs r3, #0
  58631. 8017f98: 627b str r3, [r7, #36] @ 0x24
  58632. msg.msg_controllen = 0;
  58633. 8017f9a: 2300 movs r3, #0
  58634. 8017f9c: 62bb str r3, [r7, #40] @ 0x28
  58635. msg.msg_flags = 0;
  58636. 8017f9e: 2300 movs r3, #0
  58637. 8017fa0: 62fb str r3, [r7, #44] @ 0x2c
  58638. msg.msg_iov = &vec;
  58639. 8017fa2: f107 0330 add.w r3, r7, #48 @ 0x30
  58640. 8017fa6: 61fb str r3, [r7, #28]
  58641. msg.msg_iovlen = 1;
  58642. 8017fa8: 2301 movs r3, #1
  58643. 8017faa: 623b str r3, [r7, #32]
  58644. msg.msg_name = from;
  58645. 8017fac: 6dbb ldr r3, [r7, #88] @ 0x58
  58646. 8017fae: 617b str r3, [r7, #20]
  58647. msg.msg_namelen = (fromlen ? *fromlen : 0);
  58648. 8017fb0: 6dfb ldr r3, [r7, #92] @ 0x5c
  58649. 8017fb2: 2b00 cmp r3, #0
  58650. 8017fb4: d002 beq.n 8017fbc <lwip_recvfrom+0x88>
  58651. 8017fb6: 6dfb ldr r3, [r7, #92] @ 0x5c
  58652. 8017fb8: 681b ldr r3, [r3, #0]
  58653. 8017fba: e000 b.n 8017fbe <lwip_recvfrom+0x8a>
  58654. 8017fbc: 2300 movs r3, #0
  58655. 8017fbe: 61bb str r3, [r7, #24]
  58656. err = lwip_recvfrom_udp_raw(sock, flags, &msg, &datagram_len, s);
  58657. 8017fc0: f107 013a add.w r1, r7, #58 @ 0x3a
  58658. 8017fc4: f107 0214 add.w r2, r7, #20
  58659. 8017fc8: 68fb ldr r3, [r7, #12]
  58660. 8017fca: 9300 str r3, [sp, #0]
  58661. 8017fcc: 460b mov r3, r1
  58662. 8017fce: 6839 ldr r1, [r7, #0]
  58663. 8017fd0: 6cf8 ldr r0, [r7, #76] @ 0x4c
  58664. 8017fd2: f7ff fedb bl 8017d8c <lwip_recvfrom_udp_raw>
  58665. 8017fd6: 4603 mov r3, r0
  58666. 8017fd8: f887 304b strb.w r3, [r7, #75] @ 0x4b
  58667. if (err != ERR_OK) {
  58668. 8017fdc: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  58669. 8017fe0: 2b00 cmp r3, #0
  58670. 8017fe2: d00e beq.n 8018002 <lwip_recvfrom+0xce>
  58671. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom[UDP/RAW](%d): buf == NULL, error is \"%s\"!\n",
  58672. s, lwip_strerr(err)));
  58673. sock_set_errno(sock, err_to_errno(err));
  58674. 8017fe4: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  58675. 8017fe8: 4618 mov r0, r3
  58676. 8017fea: f7ff fa77 bl 80174dc <err_to_errno>
  58677. 8017fee: 63f8 str r0, [r7, #60] @ 0x3c
  58678. 8017ff0: 6bfb ldr r3, [r7, #60] @ 0x3c
  58679. 8017ff2: 2b00 cmp r3, #0
  58680. 8017ff4: d002 beq.n 8017ffc <lwip_recvfrom+0xc8>
  58681. 8017ff6: 4a17 ldr r2, [pc, #92] @ (8018054 <lwip_recvfrom+0x120>)
  58682. 8017ff8: 6bfb ldr r3, [r7, #60] @ 0x3c
  58683. 8017ffa: 6013 str r3, [r2, #0]
  58684. done_socket(sock);
  58685. return -1;
  58686. 8017ffc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58687. 8018000: e022 b.n 8018048 <lwip_recvfrom+0x114>
  58688. }
  58689. ret = (ssize_t)LWIP_MIN(LWIP_MIN(len, datagram_len), SSIZE_MAX);
  58690. 8018002: 8f7b ldrh r3, [r7, #58] @ 0x3a
  58691. 8018004: 461a mov r2, r3
  58692. 8018006: 687b ldr r3, [r7, #4]
  58693. 8018008: 4293 cmp r3, r2
  58694. 801800a: bf28 it cs
  58695. 801800c: 4613 movcs r3, r2
  58696. 801800e: f06f 4200 mvn.w r2, #2147483648 @ 0x80000000
  58697. 8018012: 4293 cmp r3, r2
  58698. 8018014: d206 bcs.n 8018024 <lwip_recvfrom+0xf0>
  58699. 8018016: 8f7b ldrh r3, [r7, #58] @ 0x3a
  58700. 8018018: 461a mov r2, r3
  58701. 801801a: 687b ldr r3, [r7, #4]
  58702. 801801c: 4293 cmp r3, r2
  58703. 801801e: bf28 it cs
  58704. 8018020: 4613 movcs r3, r2
  58705. 8018022: e001 b.n 8018028 <lwip_recvfrom+0xf4>
  58706. 8018024: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  58707. 8018028: 647b str r3, [r7, #68] @ 0x44
  58708. if (fromlen) {
  58709. 801802a: 6dfb ldr r3, [r7, #92] @ 0x5c
  58710. 801802c: 2b00 cmp r3, #0
  58711. 801802e: d002 beq.n 8018036 <lwip_recvfrom+0x102>
  58712. *fromlen = msg.msg_namelen;
  58713. 8018030: 69ba ldr r2, [r7, #24]
  58714. 8018032: 6dfb ldr r3, [r7, #92] @ 0x5c
  58715. 8018034: 601a str r2, [r3, #0]
  58716. }
  58717. }
  58718. sock_set_errno(sock, 0);
  58719. 8018036: 2300 movs r3, #0
  58720. 8018038: 643b str r3, [r7, #64] @ 0x40
  58721. 801803a: 6c3b ldr r3, [r7, #64] @ 0x40
  58722. 801803c: 2b00 cmp r3, #0
  58723. 801803e: d002 beq.n 8018046 <lwip_recvfrom+0x112>
  58724. 8018040: 4a04 ldr r2, [pc, #16] @ (8018054 <lwip_recvfrom+0x120>)
  58725. 8018042: 6c3b ldr r3, [r7, #64] @ 0x40
  58726. 8018044: 6013 str r3, [r2, #0]
  58727. done_socket(sock);
  58728. return ret;
  58729. 8018046: 6c7b ldr r3, [r7, #68] @ 0x44
  58730. }
  58731. 8018048: 4618 mov r0, r3
  58732. 801804a: 3750 adds r7, #80 @ 0x50
  58733. 801804c: 46bd mov sp, r7
  58734. 801804e: bd80 pop {r7, pc}
  58735. 8018050: 0802d7f0 .word 0x0802d7f0
  58736. 8018054: 2402b180 .word 0x2402b180
  58737. 08018058 <lwip_recv>:
  58738. return lwip_recvmsg(s, &msg, 0);
  58739. }
  58740. ssize_t
  58741. lwip_recv(int s, void *mem, size_t len, int flags)
  58742. {
  58743. 8018058: b580 push {r7, lr}
  58744. 801805a: b086 sub sp, #24
  58745. 801805c: af02 add r7, sp, #8
  58746. 801805e: 60f8 str r0, [r7, #12]
  58747. 8018060: 60b9 str r1, [r7, #8]
  58748. 8018062: 607a str r2, [r7, #4]
  58749. 8018064: 603b str r3, [r7, #0]
  58750. return lwip_recvfrom(s, mem, len, flags, NULL, NULL);
  58751. 8018066: 2300 movs r3, #0
  58752. 8018068: 9301 str r3, [sp, #4]
  58753. 801806a: 2300 movs r3, #0
  58754. 801806c: 9300 str r3, [sp, #0]
  58755. 801806e: 683b ldr r3, [r7, #0]
  58756. 8018070: 687a ldr r2, [r7, #4]
  58757. 8018072: 68b9 ldr r1, [r7, #8]
  58758. 8018074: 68f8 ldr r0, [r7, #12]
  58759. 8018076: f7ff ff5d bl 8017f34 <lwip_recvfrom>
  58760. 801807a: 4603 mov r3, r0
  58761. }
  58762. 801807c: 4618 mov r0, r3
  58763. 801807e: 3710 adds r7, #16
  58764. 8018080: 46bd mov sp, r7
  58765. 8018082: bd80 pop {r7, pc}
  58766. 08018084 <lwip_send>:
  58767. #endif /* LWIP_UDP || LWIP_RAW */
  58768. }
  58769. ssize_t
  58770. lwip_send(int s, const void *data, size_t size, int flags)
  58771. {
  58772. 8018084: b580 push {r7, lr}
  58773. 8018086: b08a sub sp, #40 @ 0x28
  58774. 8018088: af02 add r7, sp, #8
  58775. 801808a: 60f8 str r0, [r7, #12]
  58776. 801808c: 60b9 str r1, [r7, #8]
  58777. 801808e: 607a str r2, [r7, #4]
  58778. 8018090: 603b str r3, [r7, #0]
  58779. size_t written;
  58780. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d, data=%p, size=%"SZT_F", flags=0x%x)\n",
  58781. s, data, size, flags));
  58782. sock = get_socket(s);
  58783. 8018092: 68f8 ldr r0, [r7, #12]
  58784. 8018094: f7ff fb10 bl 80176b8 <get_socket>
  58785. 8018098: 61f8 str r0, [r7, #28]
  58786. if (!sock) {
  58787. 801809a: 69fb ldr r3, [r7, #28]
  58788. 801809c: 2b00 cmp r3, #0
  58789. 801809e: d102 bne.n 80180a6 <lwip_send+0x22>
  58790. return -1;
  58791. 80180a0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58792. 80180a4: e046 b.n 8018134 <lwip_send+0xb0>
  58793. }
  58794. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
  58795. 80180a6: 69fb ldr r3, [r7, #28]
  58796. 80180a8: 681b ldr r3, [r3, #0]
  58797. 80180aa: 781b ldrb r3, [r3, #0]
  58798. 80180ac: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58799. 80180b0: 2b10 cmp r3, #16
  58800. 80180b2: d00b beq.n 80180cc <lwip_send+0x48>
  58801. #if (LWIP_UDP || LWIP_RAW)
  58802. done_socket(sock);
  58803. return lwip_sendto(s, data, size, flags, NULL, 0);
  58804. 80180b4: 2300 movs r3, #0
  58805. 80180b6: 9301 str r3, [sp, #4]
  58806. 80180b8: 2300 movs r3, #0
  58807. 80180ba: 9300 str r3, [sp, #0]
  58808. 80180bc: 683b ldr r3, [r7, #0]
  58809. 80180be: 687a ldr r2, [r7, #4]
  58810. 80180c0: 68b9 ldr r1, [r7, #8]
  58811. 80180c2: 68f8 ldr r0, [r7, #12]
  58812. 80180c4: f000 f83c bl 8018140 <lwip_sendto>
  58813. 80180c8: 4603 mov r3, r0
  58814. 80180ca: e033 b.n 8018134 <lwip_send+0xb0>
  58815. return -1;
  58816. #endif /* (LWIP_UDP || LWIP_RAW) */
  58817. }
  58818. write_flags = (u8_t)(NETCONN_COPY |
  58819. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  58820. 80180cc: 683b ldr r3, [r7, #0]
  58821. 80180ce: f003 0310 and.w r3, r3, #16
  58822. write_flags = (u8_t)(NETCONN_COPY |
  58823. 80180d2: 2b00 cmp r3, #0
  58824. 80180d4: d001 beq.n 80180da <lwip_send+0x56>
  58825. 80180d6: 2203 movs r2, #3
  58826. 80180d8: e000 b.n 80180dc <lwip_send+0x58>
  58827. 80180da: 2201 movs r2, #1
  58828. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  58829. 80180dc: 683b ldr r3, [r7, #0]
  58830. 80180de: 105b asrs r3, r3, #1
  58831. 80180e0: b25b sxtb r3, r3
  58832. 80180e2: f003 0304 and.w r3, r3, #4
  58833. 80180e6: b25b sxtb r3, r3
  58834. 80180e8: 4313 orrs r3, r2
  58835. 80180ea: b25b sxtb r3, r3
  58836. write_flags = (u8_t)(NETCONN_COPY |
  58837. 80180ec: 76fb strb r3, [r7, #27]
  58838. ((flags & MSG_DONTWAIT) ? NETCONN_DONTBLOCK : 0));
  58839. written = 0;
  58840. 80180ee: 2300 movs r3, #0
  58841. 80180f0: 613b str r3, [r7, #16]
  58842. err = netconn_write_partly(sock->conn, data, size, write_flags, &written);
  58843. 80180f2: 69fb ldr r3, [r7, #28]
  58844. 80180f4: 6818 ldr r0, [r3, #0]
  58845. 80180f6: 7efa ldrb r2, [r7, #27]
  58846. 80180f8: f107 0310 add.w r3, r7, #16
  58847. 80180fc: 9300 str r3, [sp, #0]
  58848. 80180fe: 4613 mov r3, r2
  58849. 8018100: 687a ldr r2, [r7, #4]
  58850. 8018102: 68b9 ldr r1, [r7, #8]
  58851. 8018104: f7fd fc04 bl 8015910 <netconn_write_partly>
  58852. 8018108: 4603 mov r3, r0
  58853. 801810a: 76bb strb r3, [r7, #26]
  58854. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d) err=%d written=%"SZT_F"\n", s, err, written));
  58855. sock_set_errno(sock, err_to_errno(err));
  58856. 801810c: f997 301a ldrsb.w r3, [r7, #26]
  58857. 8018110: 4618 mov r0, r3
  58858. 8018112: f7ff f9e3 bl 80174dc <err_to_errno>
  58859. 8018116: 6178 str r0, [r7, #20]
  58860. 8018118: 697b ldr r3, [r7, #20]
  58861. 801811a: 2b00 cmp r3, #0
  58862. 801811c: d002 beq.n 8018124 <lwip_send+0xa0>
  58863. 801811e: 4a07 ldr r2, [pc, #28] @ (801813c <lwip_send+0xb8>)
  58864. 8018120: 697b ldr r3, [r7, #20]
  58865. 8018122: 6013 str r3, [r2, #0]
  58866. done_socket(sock);
  58867. /* casting 'written' to ssize_t is OK here since the netconn API limits it to SSIZE_MAX */
  58868. return (err == ERR_OK ? (ssize_t)written : -1);
  58869. 8018124: f997 301a ldrsb.w r3, [r7, #26]
  58870. 8018128: 2b00 cmp r3, #0
  58871. 801812a: d101 bne.n 8018130 <lwip_send+0xac>
  58872. 801812c: 693b ldr r3, [r7, #16]
  58873. 801812e: e001 b.n 8018134 <lwip_send+0xb0>
  58874. 8018130: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58875. }
  58876. 8018134: 4618 mov r0, r3
  58877. 8018136: 3720 adds r7, #32
  58878. 8018138: 46bd mov sp, r7
  58879. 801813a: bd80 pop {r7, pc}
  58880. 801813c: 2402b180 .word 0x2402b180
  58881. 08018140 <lwip_sendto>:
  58882. }
  58883. ssize_t
  58884. lwip_sendto(int s, const void *data, size_t size, int flags,
  58885. const struct sockaddr *to, socklen_t tolen)
  58886. {
  58887. 8018140: b580 push {r7, lr}
  58888. 8018142: b08e sub sp, #56 @ 0x38
  58889. 8018144: af00 add r7, sp, #0
  58890. 8018146: 60f8 str r0, [r7, #12]
  58891. 8018148: 60b9 str r1, [r7, #8]
  58892. 801814a: 607a str r2, [r7, #4]
  58893. 801814c: 603b str r3, [r7, #0]
  58894. err_t err;
  58895. u16_t short_size;
  58896. u16_t remote_port;
  58897. struct netbuf buf;
  58898. sock = get_socket(s);
  58899. 801814e: 68f8 ldr r0, [r7, #12]
  58900. 8018150: f7ff fab2 bl 80176b8 <get_socket>
  58901. 8018154: 6338 str r0, [r7, #48] @ 0x30
  58902. if (!sock) {
  58903. 8018156: 6b3b ldr r3, [r7, #48] @ 0x30
  58904. 8018158: 2b00 cmp r3, #0
  58905. 801815a: d102 bne.n 8018162 <lwip_sendto+0x22>
  58906. return -1;
  58907. 801815c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58908. 8018160: e093 b.n 801828a <lwip_sendto+0x14a>
  58909. }
  58910. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  58911. 8018162: 6b3b ldr r3, [r7, #48] @ 0x30
  58912. 8018164: 681b ldr r3, [r3, #0]
  58913. 8018166: 781b ldrb r3, [r3, #0]
  58914. 8018168: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58915. 801816c: 2b10 cmp r3, #16
  58916. 801816e: d107 bne.n 8018180 <lwip_sendto+0x40>
  58917. #if LWIP_TCP
  58918. done_socket(sock);
  58919. return lwip_send(s, data, size, flags);
  58920. 8018170: 683b ldr r3, [r7, #0]
  58921. 8018172: 687a ldr r2, [r7, #4]
  58922. 8018174: 68b9 ldr r1, [r7, #8]
  58923. 8018176: 68f8 ldr r0, [r7, #12]
  58924. 8018178: f7ff ff84 bl 8018084 <lwip_send>
  58925. 801817c: 4603 mov r3, r0
  58926. 801817e: e084 b.n 801828a <lwip_sendto+0x14a>
  58927. done_socket(sock);
  58928. return -1;
  58929. #endif /* LWIP_TCP */
  58930. }
  58931. if (size > LWIP_MIN(0xFFFF, SSIZE_MAX)) {
  58932. 8018180: 687b ldr r3, [r7, #4]
  58933. 8018182: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  58934. 8018186: d30a bcc.n 801819e <lwip_sendto+0x5e>
  58935. /* cannot fit into one datagram (at least for us) */
  58936. sock_set_errno(sock, EMSGSIZE);
  58937. 8018188: 235a movs r3, #90 @ 0x5a
  58938. 801818a: 623b str r3, [r7, #32]
  58939. 801818c: 6a3b ldr r3, [r7, #32]
  58940. 801818e: 2b00 cmp r3, #0
  58941. 8018190: d002 beq.n 8018198 <lwip_sendto+0x58>
  58942. 8018192: 4a40 ldr r2, [pc, #256] @ (8018294 <lwip_sendto+0x154>)
  58943. 8018194: 6a3b ldr r3, [r7, #32]
  58944. 8018196: 6013 str r3, [r2, #0]
  58945. done_socket(sock);
  58946. return -1;
  58947. 8018198: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58948. 801819c: e075 b.n 801828a <lwip_sendto+0x14a>
  58949. }
  58950. short_size = (u16_t)size;
  58951. 801819e: 687b ldr r3, [r7, #4]
  58952. 80181a0: 85fb strh r3, [r7, #46] @ 0x2e
  58953. LWIP_ERROR("lwip_sendto: invalid address", (((to == NULL) && (tolen == 0)) ||
  58954. 80181a2: 6c3b ldr r3, [r7, #64] @ 0x40
  58955. 80181a4: 2b00 cmp r3, #0
  58956. 80181a6: d102 bne.n 80181ae <lwip_sendto+0x6e>
  58957. 80181a8: 6c7b ldr r3, [r7, #68] @ 0x44
  58958. 80181aa: 2b00 cmp r3, #0
  58959. 80181ac: d023 beq.n 80181f6 <lwip_sendto+0xb6>
  58960. 80181ae: 6c7b ldr r3, [r7, #68] @ 0x44
  58961. 80181b0: 2b10 cmp r3, #16
  58962. 80181b2: d10b bne.n 80181cc <lwip_sendto+0x8c>
  58963. 80181b4: 6c3b ldr r3, [r7, #64] @ 0x40
  58964. 80181b6: 2b00 cmp r3, #0
  58965. 80181b8: d008 beq.n 80181cc <lwip_sendto+0x8c>
  58966. 80181ba: 6c3b ldr r3, [r7, #64] @ 0x40
  58967. 80181bc: 785b ldrb r3, [r3, #1]
  58968. 80181be: 2b02 cmp r3, #2
  58969. 80181c0: d104 bne.n 80181cc <lwip_sendto+0x8c>
  58970. 80181c2: 6c3b ldr r3, [r7, #64] @ 0x40
  58971. 80181c4: f003 0303 and.w r3, r3, #3
  58972. 80181c8: 2b00 cmp r3, #0
  58973. 80181ca: d014 beq.n 80181f6 <lwip_sendto+0xb6>
  58974. 80181cc: 4b32 ldr r3, [pc, #200] @ (8018298 <lwip_sendto+0x158>)
  58975. 80181ce: f240 6252 movw r2, #1618 @ 0x652
  58976. 80181d2: 4932 ldr r1, [pc, #200] @ (801829c <lwip_sendto+0x15c>)
  58977. 80181d4: 4832 ldr r0, [pc, #200] @ (80182a0 <lwip_sendto+0x160>)
  58978. 80181d6: f011 fc01 bl 80299dc <iprintf>
  58979. 80181da: f06f 000f mvn.w r0, #15
  58980. 80181de: f7ff f97d bl 80174dc <err_to_errno>
  58981. 80181e2: 62b8 str r0, [r7, #40] @ 0x28
  58982. 80181e4: 6abb ldr r3, [r7, #40] @ 0x28
  58983. 80181e6: 2b00 cmp r3, #0
  58984. 80181e8: d002 beq.n 80181f0 <lwip_sendto+0xb0>
  58985. 80181ea: 4a2a ldr r2, [pc, #168] @ (8018294 <lwip_sendto+0x154>)
  58986. 80181ec: 6abb ldr r3, [r7, #40] @ 0x28
  58987. 80181ee: 6013 str r3, [r2, #0]
  58988. 80181f0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58989. 80181f4: e049 b.n 801828a <lwip_sendto+0x14a>
  58990. ((to != NULL) && (IS_SOCK_ADDR_TYPE_VALID(to) && IS_SOCK_ADDR_ALIGNED(to))))),
  58991. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  58992. LWIP_UNUSED_ARG(tolen);
  58993. /* initialize a buffer */
  58994. buf.p = buf.ptr = NULL;
  58995. 80181f6: 2300 movs r3, #0
  58996. 80181f8: 617b str r3, [r7, #20]
  58997. 80181fa: 697b ldr r3, [r7, #20]
  58998. 80181fc: 613b str r3, [r7, #16]
  58999. #if LWIP_CHECKSUM_ON_COPY
  59000. buf.flags = 0;
  59001. #endif /* LWIP_CHECKSUM_ON_COPY */
  59002. if (to) {
  59003. 80181fe: 6c3b ldr r3, [r7, #64] @ 0x40
  59004. 8018200: 2b00 cmp r3, #0
  59005. 8018202: d00a beq.n 801821a <lwip_sendto+0xda>
  59006. SOCKADDR_TO_IPADDR_PORT(to, &buf.addr, remote_port);
  59007. 8018204: 6c3b ldr r3, [r7, #64] @ 0x40
  59008. 8018206: 685b ldr r3, [r3, #4]
  59009. 8018208: 61bb str r3, [r7, #24]
  59010. 801820a: 6c3b ldr r3, [r7, #64] @ 0x40
  59011. 801820c: 885b ldrh r3, [r3, #2]
  59012. 801820e: 4618 mov r0, r3
  59013. 8018210: f000 fc8a bl 8018b28 <lwip_htons>
  59014. 8018214: 4603 mov r3, r0
  59015. 8018216: 86fb strh r3, [r7, #54] @ 0x36
  59016. 8018218: e003 b.n 8018222 <lwip_sendto+0xe2>
  59017. } else {
  59018. remote_port = 0;
  59019. 801821a: 2300 movs r3, #0
  59020. 801821c: 86fb strh r3, [r7, #54] @ 0x36
  59021. ip_addr_set_any(NETCONNTYPE_ISIPV6(netconn_type(sock->conn)), &buf.addr);
  59022. 801821e: 2300 movs r3, #0
  59023. 8018220: 61bb str r3, [r7, #24]
  59024. }
  59025. netbuf_fromport(&buf) = remote_port;
  59026. 8018222: 8efb ldrh r3, [r7, #54] @ 0x36
  59027. 8018224: 83bb strh r3, [r7, #28]
  59028. MEMCPY(buf.p->payload, data, short_size);
  59029. }
  59030. err = ERR_OK;
  59031. }
  59032. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  59033. err = netbuf_ref(&buf, data, short_size);
  59034. 8018226: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59035. 8018228: f107 0310 add.w r3, r7, #16
  59036. 801822c: 68b9 ldr r1, [r7, #8]
  59037. 801822e: 4618 mov r0, r3
  59038. 8018230: f7ff f9ba bl 80175a8 <netbuf_ref>
  59039. 8018234: 4603 mov r3, r0
  59040. 8018236: f887 302d strb.w r3, [r7, #45] @ 0x2d
  59041. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  59042. if (err == ERR_OK) {
  59043. 801823a: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  59044. 801823e: 2b00 cmp r3, #0
  59045. 8018240: d10a bne.n 8018258 <lwip_sendto+0x118>
  59046. IP_SET_TYPE_VAL(buf.addr, IPADDR_TYPE_V4);
  59047. }
  59048. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  59049. /* send the data */
  59050. err = netconn_send(sock->conn, &buf);
  59051. 8018242: 6b3b ldr r3, [r7, #48] @ 0x30
  59052. 8018244: 681b ldr r3, [r3, #0]
  59053. 8018246: f107 0210 add.w r2, r7, #16
  59054. 801824a: 4611 mov r1, r2
  59055. 801824c: 4618 mov r0, r3
  59056. 801824e: f7fd fb31 bl 80158b4 <netconn_send>
  59057. 8018252: 4603 mov r3, r0
  59058. 8018254: f887 302d strb.w r3, [r7, #45] @ 0x2d
  59059. }
  59060. /* deallocated the buffer */
  59061. netbuf_free(&buf);
  59062. 8018258: f107 0310 add.w r3, r7, #16
  59063. 801825c: 4618 mov r0, r3
  59064. 801825e: f7ff f97b bl 8017558 <netbuf_free>
  59065. sock_set_errno(sock, err_to_errno(err));
  59066. 8018262: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  59067. 8018266: 4618 mov r0, r3
  59068. 8018268: f7ff f938 bl 80174dc <err_to_errno>
  59069. 801826c: 6278 str r0, [r7, #36] @ 0x24
  59070. 801826e: 6a7b ldr r3, [r7, #36] @ 0x24
  59071. 8018270: 2b00 cmp r3, #0
  59072. 8018272: d002 beq.n 801827a <lwip_sendto+0x13a>
  59073. 8018274: 4a07 ldr r2, [pc, #28] @ (8018294 <lwip_sendto+0x154>)
  59074. 8018276: 6a7b ldr r3, [r7, #36] @ 0x24
  59075. 8018278: 6013 str r3, [r2, #0]
  59076. done_socket(sock);
  59077. return (err == ERR_OK ? short_size : -1);
  59078. 801827a: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  59079. 801827e: 2b00 cmp r3, #0
  59080. 8018280: d101 bne.n 8018286 <lwip_sendto+0x146>
  59081. 8018282: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59082. 8018284: e001 b.n 801828a <lwip_sendto+0x14a>
  59083. 8018286: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59084. }
  59085. 801828a: 4618 mov r0, r3
  59086. 801828c: 3738 adds r7, #56 @ 0x38
  59087. 801828e: 46bd mov sp, r7
  59088. 8018290: bd80 pop {r7, pc}
  59089. 8018292: bf00 nop
  59090. 8018294: 2402b180 .word 0x2402b180
  59091. 8018298: 0802d614 .word 0x0802d614
  59092. 801829c: 0802d8f4 .word 0x0802d8f4
  59093. 80182a0: 0802d668 .word 0x0802d668
  59094. 080182a4 <lwip_socket>:
  59095. int
  59096. lwip_socket(int domain, int type, int protocol)
  59097. {
  59098. 80182a4: b580 push {r7, lr}
  59099. 80182a6: b086 sub sp, #24
  59100. 80182a8: af00 add r7, sp, #0
  59101. 80182aa: 60f8 str r0, [r7, #12]
  59102. 80182ac: 60b9 str r1, [r7, #8]
  59103. 80182ae: 607a str r2, [r7, #4]
  59104. int i;
  59105. LWIP_UNUSED_ARG(domain); /* @todo: check this */
  59106. /* create a netconn */
  59107. switch (type) {
  59108. 80182b0: 68bb ldr r3, [r7, #8]
  59109. 80182b2: 2b03 cmp r3, #3
  59110. 80182b4: d009 beq.n 80182ca <lwip_socket+0x26>
  59111. 80182b6: 68bb ldr r3, [r7, #8]
  59112. 80182b8: 2b03 cmp r3, #3
  59113. 80182ba: dc23 bgt.n 8018304 <lwip_socket+0x60>
  59114. 80182bc: 68bb ldr r3, [r7, #8]
  59115. 80182be: 2b01 cmp r3, #1
  59116. 80182c0: d019 beq.n 80182f6 <lwip_socket+0x52>
  59117. 80182c2: 68bb ldr r3, [r7, #8]
  59118. 80182c4: 2b02 cmp r3, #2
  59119. 80182c6: d009 beq.n 80182dc <lwip_socket+0x38>
  59120. 80182c8: e01c b.n 8018304 <lwip_socket+0x60>
  59121. case SOCK_RAW:
  59122. conn = netconn_new_with_proto_and_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_RAW),
  59123. 80182ca: 687b ldr r3, [r7, #4]
  59124. 80182cc: b2db uxtb r3, r3
  59125. 80182ce: 4a22 ldr r2, [pc, #136] @ (8018358 <lwip_socket+0xb4>)
  59126. 80182d0: 4619 mov r1, r3
  59127. 80182d2: 2040 movs r0, #64 @ 0x40
  59128. 80182d4: f7fc ff60 bl 8015198 <netconn_new_with_proto_and_callback>
  59129. 80182d8: 6178 str r0, [r7, #20]
  59130. (u8_t)protocol, DEFAULT_SOCKET_EVENTCB);
  59131. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_RAW, %d) = ",
  59132. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  59133. break;
  59134. 80182da: e019 b.n 8018310 <lwip_socket+0x6c>
  59135. case SOCK_DGRAM:
  59136. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain,
  59137. 80182dc: 687b ldr r3, [r7, #4]
  59138. 80182de: 2b88 cmp r3, #136 @ 0x88
  59139. 80182e0: d101 bne.n 80182e6 <lwip_socket+0x42>
  59140. 80182e2: 2321 movs r3, #33 @ 0x21
  59141. 80182e4: e000 b.n 80182e8 <lwip_socket+0x44>
  59142. 80182e6: 2320 movs r3, #32
  59143. 80182e8: 4a1b ldr r2, [pc, #108] @ (8018358 <lwip_socket+0xb4>)
  59144. 80182ea: 2100 movs r1, #0
  59145. 80182ec: 4618 mov r0, r3
  59146. 80182ee: f7fc ff53 bl 8015198 <netconn_new_with_proto_and_callback>
  59147. 80182f2: 6178 str r0, [r7, #20]
  59148. if (conn) {
  59149. /* netconn layer enables pktinfo by default, sockets default to off */
  59150. conn->flags &= ~NETCONN_FLAG_PKTINFO;
  59151. }
  59152. #endif /* LWIP_NETBUF_RECVINFO */
  59153. break;
  59154. 80182f4: e00c b.n 8018310 <lwip_socket+0x6c>
  59155. case SOCK_STREAM:
  59156. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_TCP), DEFAULT_SOCKET_EVENTCB);
  59157. 80182f6: 4a18 ldr r2, [pc, #96] @ (8018358 <lwip_socket+0xb4>)
  59158. 80182f8: 2100 movs r1, #0
  59159. 80182fa: 2010 movs r0, #16
  59160. 80182fc: f7fc ff4c bl 8015198 <netconn_new_with_proto_and_callback>
  59161. 8018300: 6178 str r0, [r7, #20]
  59162. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_STREAM, %d) = ",
  59163. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  59164. break;
  59165. 8018302: e005 b.n 8018310 <lwip_socket+0x6c>
  59166. default:
  59167. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%d, %d/UNKNOWN, %d) = -1\n",
  59168. domain, type, protocol));
  59169. set_errno(EINVAL);
  59170. 8018304: 4b15 ldr r3, [pc, #84] @ (801835c <lwip_socket+0xb8>)
  59171. 8018306: 2216 movs r2, #22
  59172. 8018308: 601a str r2, [r3, #0]
  59173. return -1;
  59174. 801830a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59175. 801830e: e01e b.n 801834e <lwip_socket+0xaa>
  59176. }
  59177. if (!conn) {
  59178. 8018310: 697b ldr r3, [r7, #20]
  59179. 8018312: 2b00 cmp r3, #0
  59180. 8018314: d105 bne.n 8018322 <lwip_socket+0x7e>
  59181. LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENOBUFS (could not create netconn)\n"));
  59182. set_errno(ENOBUFS);
  59183. 8018316: 4b11 ldr r3, [pc, #68] @ (801835c <lwip_socket+0xb8>)
  59184. 8018318: 2269 movs r2, #105 @ 0x69
  59185. 801831a: 601a str r2, [r3, #0]
  59186. return -1;
  59187. 801831c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59188. 8018320: e015 b.n 801834e <lwip_socket+0xaa>
  59189. }
  59190. i = alloc_socket(conn, 0);
  59191. 8018322: 2100 movs r1, #0
  59192. 8018324: 6978 ldr r0, [r7, #20]
  59193. 8018326: f7ff f9df bl 80176e8 <alloc_socket>
  59194. 801832a: 6138 str r0, [r7, #16]
  59195. if (i == -1) {
  59196. 801832c: 693b ldr r3, [r7, #16]
  59197. 801832e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  59198. 8018332: d108 bne.n 8018346 <lwip_socket+0xa2>
  59199. netconn_delete(conn);
  59200. 8018334: 6978 ldr r0, [r7, #20]
  59201. 8018336: f7fc ffcd bl 80152d4 <netconn_delete>
  59202. set_errno(ENFILE);
  59203. 801833a: 4b08 ldr r3, [pc, #32] @ (801835c <lwip_socket+0xb8>)
  59204. 801833c: 2217 movs r2, #23
  59205. 801833e: 601a str r2, [r3, #0]
  59206. return -1;
  59207. 8018340: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59208. 8018344: e003 b.n 801834e <lwip_socket+0xaa>
  59209. }
  59210. conn->socket = i;
  59211. 8018346: 697b ldr r3, [r7, #20]
  59212. 8018348: 693a ldr r2, [r7, #16]
  59213. 801834a: 619a str r2, [r3, #24]
  59214. done_socket(&sockets[i - LWIP_SOCKET_OFFSET]);
  59215. LWIP_DEBUGF(SOCKETS_DEBUG, ("%d\n", i));
  59216. set_errno(0);
  59217. return i;
  59218. 801834c: 693b ldr r3, [r7, #16]
  59219. }
  59220. 801834e: 4618 mov r0, r3
  59221. 8018350: 3718 adds r7, #24
  59222. 8018352: 46bd mov sp, r7
  59223. 8018354: bd80 pop {r7, pc}
  59224. 8018356: bf00 nop
  59225. 8018358: 080183e9 .word 0x080183e9
  59226. 801835c: 2402b180 .word 0x2402b180
  59227. 08018360 <lwip_poll_should_wake>:
  59228. * Check whether event_callback should wake up a thread waiting in
  59229. * lwip_poll.
  59230. */
  59231. static int
  59232. lwip_poll_should_wake(const struct lwip_select_cb *scb, int fd, int has_recvevent, int has_sendevent, int has_errevent)
  59233. {
  59234. 8018360: b480 push {r7}
  59235. 8018362: b087 sub sp, #28
  59236. 8018364: af00 add r7, sp, #0
  59237. 8018366: 60f8 str r0, [r7, #12]
  59238. 8018368: 60b9 str r1, [r7, #8]
  59239. 801836a: 607a str r2, [r7, #4]
  59240. 801836c: 603b str r3, [r7, #0]
  59241. nfds_t fdi;
  59242. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  59243. 801836e: 2300 movs r3, #0
  59244. 8018370: 617b str r3, [r7, #20]
  59245. 8018372: e02c b.n 80183ce <lwip_poll_should_wake+0x6e>
  59246. const struct pollfd *pollfd = &scb->poll_fds[fdi];
  59247. 8018374: 68fb ldr r3, [r7, #12]
  59248. 8018376: 695a ldr r2, [r3, #20]
  59249. 8018378: 697b ldr r3, [r7, #20]
  59250. 801837a: 00db lsls r3, r3, #3
  59251. 801837c: 4413 add r3, r2
  59252. 801837e: 613b str r3, [r7, #16]
  59253. if (pollfd->fd == fd) {
  59254. 8018380: 693b ldr r3, [r7, #16]
  59255. 8018382: 681b ldr r3, [r3, #0]
  59256. 8018384: 68ba ldr r2, [r7, #8]
  59257. 8018386: 429a cmp r2, r3
  59258. 8018388: d11e bne.n 80183c8 <lwip_poll_should_wake+0x68>
  59259. /* Do not update pollfd->revents right here;
  59260. that would be a data race because lwip_pollscan
  59261. accesses revents without protecting. */
  59262. if (has_recvevent && (pollfd->events & POLLIN) != 0) {
  59263. 801838a: 687b ldr r3, [r7, #4]
  59264. 801838c: 2b00 cmp r3, #0
  59265. 801838e: d009 beq.n 80183a4 <lwip_poll_should_wake+0x44>
  59266. 8018390: 693b ldr r3, [r7, #16]
  59267. 8018392: f9b3 3004 ldrsh.w r3, [r3, #4]
  59268. 8018396: b29b uxth r3, r3
  59269. 8018398: f003 0301 and.w r3, r3, #1
  59270. 801839c: 2b00 cmp r3, #0
  59271. 801839e: d001 beq.n 80183a4 <lwip_poll_should_wake+0x44>
  59272. return 1;
  59273. 80183a0: 2301 movs r3, #1
  59274. 80183a2: e01a b.n 80183da <lwip_poll_should_wake+0x7a>
  59275. }
  59276. if (has_sendevent && (pollfd->events & POLLOUT) != 0) {
  59277. 80183a4: 683b ldr r3, [r7, #0]
  59278. 80183a6: 2b00 cmp r3, #0
  59279. 80183a8: d009 beq.n 80183be <lwip_poll_should_wake+0x5e>
  59280. 80183aa: 693b ldr r3, [r7, #16]
  59281. 80183ac: f9b3 3004 ldrsh.w r3, [r3, #4]
  59282. 80183b0: b29b uxth r3, r3
  59283. 80183b2: f003 0302 and.w r3, r3, #2
  59284. 80183b6: 2b00 cmp r3, #0
  59285. 80183b8: d001 beq.n 80183be <lwip_poll_should_wake+0x5e>
  59286. return 1;
  59287. 80183ba: 2301 movs r3, #1
  59288. 80183bc: e00d b.n 80183da <lwip_poll_should_wake+0x7a>
  59289. }
  59290. if (has_errevent) {
  59291. 80183be: 6a3b ldr r3, [r7, #32]
  59292. 80183c0: 2b00 cmp r3, #0
  59293. 80183c2: d001 beq.n 80183c8 <lwip_poll_should_wake+0x68>
  59294. /* POLLERR is output only. */
  59295. return 1;
  59296. 80183c4: 2301 movs r3, #1
  59297. 80183c6: e008 b.n 80183da <lwip_poll_should_wake+0x7a>
  59298. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  59299. 80183c8: 697b ldr r3, [r7, #20]
  59300. 80183ca: 3301 adds r3, #1
  59301. 80183cc: 617b str r3, [r7, #20]
  59302. 80183ce: 68fb ldr r3, [r7, #12]
  59303. 80183d0: 699b ldr r3, [r3, #24]
  59304. 80183d2: 697a ldr r2, [r7, #20]
  59305. 80183d4: 429a cmp r2, r3
  59306. 80183d6: d3cd bcc.n 8018374 <lwip_poll_should_wake+0x14>
  59307. }
  59308. }
  59309. }
  59310. return 0;
  59311. 80183d8: 2300 movs r3, #0
  59312. }
  59313. 80183da: 4618 mov r0, r3
  59314. 80183dc: 371c adds r7, #28
  59315. 80183de: 46bd mov sp, r7
  59316. 80183e0: f85d 7b04 ldr.w r7, [sp], #4
  59317. 80183e4: 4770 bx lr
  59318. ...
  59319. 080183e8 <event_callback>:
  59320. * NETCONN_EVT_ERROR
  59321. * This requirement will be asserted in select_check_waiters()
  59322. */
  59323. static void
  59324. event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
  59325. {
  59326. 80183e8: b580 push {r7, lr}
  59327. 80183ea: b08a sub sp, #40 @ 0x28
  59328. 80183ec: af00 add r7, sp, #0
  59329. 80183ee: 6078 str r0, [r7, #4]
  59330. 80183f0: 460b mov r3, r1
  59331. 80183f2: 70fb strb r3, [r7, #3]
  59332. 80183f4: 4613 mov r3, r2
  59333. 80183f6: 803b strh r3, [r7, #0]
  59334. SYS_ARCH_DECL_PROTECT(lev);
  59335. LWIP_UNUSED_ARG(len);
  59336. /* Get socket */
  59337. if (conn) {
  59338. 80183f8: 687b ldr r3, [r7, #4]
  59339. 80183fa: 2b00 cmp r3, #0
  59340. 80183fc: f000 80a4 beq.w 8018548 <event_callback+0x160>
  59341. s = conn->socket;
  59342. 8018400: 687b ldr r3, [r7, #4]
  59343. 8018402: 699b ldr r3, [r3, #24]
  59344. 8018404: 627b str r3, [r7, #36] @ 0x24
  59345. if (s < 0) {
  59346. 8018406: 6a7b ldr r3, [r7, #36] @ 0x24
  59347. 8018408: 2b00 cmp r3, #0
  59348. 801840a: da18 bge.n 801843e <event_callback+0x56>
  59349. /* Data comes in right away after an accept, even though
  59350. * the server task might not have created a new socket yet.
  59351. * Just count down (or up) if that's the case and we
  59352. * will use the data later. Note that only receive events
  59353. * can happen before the new socket is set up. */
  59354. SYS_ARCH_PROTECT(lev);
  59355. 801840c: f00e f850 bl 80264b0 <sys_arch_protect>
  59356. 8018410: 61f8 str r0, [r7, #28]
  59357. if (conn->socket < 0) {
  59358. 8018412: 687b ldr r3, [r7, #4]
  59359. 8018414: 699b ldr r3, [r3, #24]
  59360. 8018416: 2b00 cmp r3, #0
  59361. 8018418: da0b bge.n 8018432 <event_callback+0x4a>
  59362. if (evt == NETCONN_EVT_RCVPLUS) {
  59363. 801841a: 78fb ldrb r3, [r7, #3]
  59364. 801841c: 2b00 cmp r3, #0
  59365. 801841e: d104 bne.n 801842a <event_callback+0x42>
  59366. /* conn->socket is -1 on initialization
  59367. lwip_accept adjusts sock->recvevent if conn->socket < -1 */
  59368. conn->socket--;
  59369. 8018420: 687b ldr r3, [r7, #4]
  59370. 8018422: 699b ldr r3, [r3, #24]
  59371. 8018424: 1e5a subs r2, r3, #1
  59372. 8018426: 687b ldr r3, [r7, #4]
  59373. 8018428: 619a str r2, [r3, #24]
  59374. }
  59375. SYS_ARCH_UNPROTECT(lev);
  59376. 801842a: 69f8 ldr r0, [r7, #28]
  59377. 801842c: f00e f84e bl 80264cc <sys_arch_unprotect>
  59378. return;
  59379. 8018430: e08d b.n 801854e <event_callback+0x166>
  59380. }
  59381. s = conn->socket;
  59382. 8018432: 687b ldr r3, [r7, #4]
  59383. 8018434: 699b ldr r3, [r3, #24]
  59384. 8018436: 627b str r3, [r7, #36] @ 0x24
  59385. SYS_ARCH_UNPROTECT(lev);
  59386. 8018438: 69f8 ldr r0, [r7, #28]
  59387. 801843a: f00e f847 bl 80264cc <sys_arch_unprotect>
  59388. }
  59389. sock = get_socket(s);
  59390. 801843e: 6a78 ldr r0, [r7, #36] @ 0x24
  59391. 8018440: f7ff f93a bl 80176b8 <get_socket>
  59392. 8018444: 61b8 str r0, [r7, #24]
  59393. if (!sock) {
  59394. 8018446: 69bb ldr r3, [r7, #24]
  59395. 8018448: 2b00 cmp r3, #0
  59396. 801844a: d07f beq.n 801854c <event_callback+0x164>
  59397. }
  59398. } else {
  59399. return;
  59400. }
  59401. check_waiters = 1;
  59402. 801844c: 2301 movs r3, #1
  59403. 801844e: 623b str r3, [r7, #32]
  59404. SYS_ARCH_PROTECT(lev);
  59405. 8018450: f00e f82e bl 80264b0 <sys_arch_protect>
  59406. 8018454: 61f8 str r0, [r7, #28]
  59407. /* Set event as required */
  59408. switch (evt) {
  59409. 8018456: 78fb ldrb r3, [r7, #3]
  59410. 8018458: 2b04 cmp r3, #4
  59411. 801845a: d83e bhi.n 80184da <event_callback+0xf2>
  59412. 801845c: a201 add r2, pc, #4 @ (adr r2, 8018464 <event_callback+0x7c>)
  59413. 801845e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  59414. 8018462: bf00 nop
  59415. 8018464: 08018479 .word 0x08018479
  59416. 8018468: 0801849b .word 0x0801849b
  59417. 801846c: 080184b3 .word 0x080184b3
  59418. 8018470: 080184c7 .word 0x080184c7
  59419. 8018474: 080184d3 .word 0x080184d3
  59420. case NETCONN_EVT_RCVPLUS:
  59421. sock->rcvevent++;
  59422. 8018478: 69bb ldr r3, [r7, #24]
  59423. 801847a: f9b3 3008 ldrsh.w r3, [r3, #8]
  59424. 801847e: b29b uxth r3, r3
  59425. 8018480: 3301 adds r3, #1
  59426. 8018482: b29b uxth r3, r3
  59427. 8018484: b21a sxth r2, r3
  59428. 8018486: 69bb ldr r3, [r7, #24]
  59429. 8018488: 811a strh r2, [r3, #8]
  59430. if (sock->rcvevent > 1) {
  59431. 801848a: 69bb ldr r3, [r7, #24]
  59432. 801848c: f9b3 3008 ldrsh.w r3, [r3, #8]
  59433. 8018490: 2b01 cmp r3, #1
  59434. 8018492: dd2a ble.n 80184ea <event_callback+0x102>
  59435. check_waiters = 0;
  59436. 8018494: 2300 movs r3, #0
  59437. 8018496: 623b str r3, [r7, #32]
  59438. }
  59439. break;
  59440. 8018498: e027 b.n 80184ea <event_callback+0x102>
  59441. case NETCONN_EVT_RCVMINUS:
  59442. sock->rcvevent--;
  59443. 801849a: 69bb ldr r3, [r7, #24]
  59444. 801849c: f9b3 3008 ldrsh.w r3, [r3, #8]
  59445. 80184a0: b29b uxth r3, r3
  59446. 80184a2: 3b01 subs r3, #1
  59447. 80184a4: b29b uxth r3, r3
  59448. 80184a6: b21a sxth r2, r3
  59449. 80184a8: 69bb ldr r3, [r7, #24]
  59450. 80184aa: 811a strh r2, [r3, #8]
  59451. check_waiters = 0;
  59452. 80184ac: 2300 movs r3, #0
  59453. 80184ae: 623b str r3, [r7, #32]
  59454. break;
  59455. 80184b0: e01c b.n 80184ec <event_callback+0x104>
  59456. case NETCONN_EVT_SENDPLUS:
  59457. if (sock->sendevent) {
  59458. 80184b2: 69bb ldr r3, [r7, #24]
  59459. 80184b4: 895b ldrh r3, [r3, #10]
  59460. 80184b6: 2b00 cmp r3, #0
  59461. 80184b8: d001 beq.n 80184be <event_callback+0xd6>
  59462. check_waiters = 0;
  59463. 80184ba: 2300 movs r3, #0
  59464. 80184bc: 623b str r3, [r7, #32]
  59465. }
  59466. sock->sendevent = 1;
  59467. 80184be: 69bb ldr r3, [r7, #24]
  59468. 80184c0: 2201 movs r2, #1
  59469. 80184c2: 815a strh r2, [r3, #10]
  59470. break;
  59471. 80184c4: e012 b.n 80184ec <event_callback+0x104>
  59472. case NETCONN_EVT_SENDMINUS:
  59473. sock->sendevent = 0;
  59474. 80184c6: 69bb ldr r3, [r7, #24]
  59475. 80184c8: 2200 movs r2, #0
  59476. 80184ca: 815a strh r2, [r3, #10]
  59477. check_waiters = 0;
  59478. 80184cc: 2300 movs r3, #0
  59479. 80184ce: 623b str r3, [r7, #32]
  59480. break;
  59481. 80184d0: e00c b.n 80184ec <event_callback+0x104>
  59482. case NETCONN_EVT_ERROR:
  59483. sock->errevent = 1;
  59484. 80184d2: 69bb ldr r3, [r7, #24]
  59485. 80184d4: 2201 movs r2, #1
  59486. 80184d6: 819a strh r2, [r3, #12]
  59487. break;
  59488. 80184d8: e008 b.n 80184ec <event_callback+0x104>
  59489. default:
  59490. LWIP_ASSERT("unknown event", 0);
  59491. 80184da: 4b1e ldr r3, [pc, #120] @ (8018554 <event_callback+0x16c>)
  59492. 80184dc: f44f 621f mov.w r2, #2544 @ 0x9f0
  59493. 80184e0: 491d ldr r1, [pc, #116] @ (8018558 <event_callback+0x170>)
  59494. 80184e2: 481e ldr r0, [pc, #120] @ (801855c <event_callback+0x174>)
  59495. 80184e4: f011 fa7a bl 80299dc <iprintf>
  59496. break;
  59497. 80184e8: e000 b.n 80184ec <event_callback+0x104>
  59498. break;
  59499. 80184ea: bf00 nop
  59500. }
  59501. if (sock->select_waiting && check_waiters) {
  59502. 80184ec: 69bb ldr r3, [r7, #24]
  59503. 80184ee: 7b9b ldrb r3, [r3, #14]
  59504. 80184f0: 2b00 cmp r3, #0
  59505. 80184f2: d025 beq.n 8018540 <event_callback+0x158>
  59506. 80184f4: 6a3b ldr r3, [r7, #32]
  59507. 80184f6: 2b00 cmp r3, #0
  59508. 80184f8: d022 beq.n 8018540 <event_callback+0x158>
  59509. /* Save which events are active */
  59510. int has_recvevent, has_sendevent, has_errevent;
  59511. has_recvevent = sock->rcvevent > 0;
  59512. 80184fa: 69bb ldr r3, [r7, #24]
  59513. 80184fc: f9b3 3008 ldrsh.w r3, [r3, #8]
  59514. 8018500: 2b00 cmp r3, #0
  59515. 8018502: bfcc ite gt
  59516. 8018504: 2301 movgt r3, #1
  59517. 8018506: 2300 movle r3, #0
  59518. 8018508: b2db uxtb r3, r3
  59519. 801850a: 617b str r3, [r7, #20]
  59520. has_sendevent = sock->sendevent != 0;
  59521. 801850c: 69bb ldr r3, [r7, #24]
  59522. 801850e: 895b ldrh r3, [r3, #10]
  59523. 8018510: 2b00 cmp r3, #0
  59524. 8018512: bf14 ite ne
  59525. 8018514: 2301 movne r3, #1
  59526. 8018516: 2300 moveq r3, #0
  59527. 8018518: b2db uxtb r3, r3
  59528. 801851a: 613b str r3, [r7, #16]
  59529. has_errevent = sock->errevent != 0;
  59530. 801851c: 69bb ldr r3, [r7, #24]
  59531. 801851e: 899b ldrh r3, [r3, #12]
  59532. 8018520: 2b00 cmp r3, #0
  59533. 8018522: bf14 ite ne
  59534. 8018524: 2301 movne r3, #1
  59535. 8018526: 2300 moveq r3, #0
  59536. 8018528: b2db uxtb r3, r3
  59537. 801852a: 60fb str r3, [r7, #12]
  59538. SYS_ARCH_UNPROTECT(lev);
  59539. 801852c: 69f8 ldr r0, [r7, #28]
  59540. 801852e: f00d ffcd bl 80264cc <sys_arch_unprotect>
  59541. /* Check any select calls waiting on this socket */
  59542. select_check_waiters(s, has_recvevent, has_sendevent, has_errevent);
  59543. 8018532: 68fb ldr r3, [r7, #12]
  59544. 8018534: 693a ldr r2, [r7, #16]
  59545. 8018536: 6979 ldr r1, [r7, #20]
  59546. 8018538: 6a78 ldr r0, [r7, #36] @ 0x24
  59547. 801853a: f000 f811 bl 8018560 <select_check_waiters>
  59548. if (sock->select_waiting && check_waiters) {
  59549. 801853e: e006 b.n 801854e <event_callback+0x166>
  59550. } else {
  59551. SYS_ARCH_UNPROTECT(lev);
  59552. 8018540: 69f8 ldr r0, [r7, #28]
  59553. 8018542: f00d ffc3 bl 80264cc <sys_arch_unprotect>
  59554. 8018546: e002 b.n 801854e <event_callback+0x166>
  59555. return;
  59556. 8018548: bf00 nop
  59557. 801854a: e000 b.n 801854e <event_callback+0x166>
  59558. return;
  59559. 801854c: bf00 nop
  59560. }
  59561. done_socket(sock);
  59562. }
  59563. 801854e: 3728 adds r7, #40 @ 0x28
  59564. 8018550: 46bd mov sp, r7
  59565. 8018552: bd80 pop {r7, pc}
  59566. 8018554: 0802d614 .word 0x0802d614
  59567. 8018558: 0802d990 .word 0x0802d990
  59568. 801855c: 0802d668 .word 0x0802d668
  59569. 08018560 <select_check_waiters>:
  59570. * of the loop, thus creating a possibility where a thread could modify the
  59571. * select_cb_list during our UNPROTECT/PROTECT. We use a generational counter to
  59572. * detect this change and restart the list walk. The list is expected to be small
  59573. */
  59574. static void select_check_waiters(int s, int has_recvevent, int has_sendevent, int has_errevent)
  59575. {
  59576. 8018560: b580 push {r7, lr}
  59577. 8018562: b088 sub sp, #32
  59578. 8018564: af02 add r7, sp, #8
  59579. 8018566: 60f8 str r0, [r7, #12]
  59580. 8018568: 60b9 str r1, [r7, #8]
  59581. 801856a: 607a str r2, [r7, #4]
  59582. 801856c: 603b str r3, [r7, #0]
  59583. #if !LWIP_TCPIP_CORE_LOCKING
  59584. int last_select_cb_ctr;
  59585. SYS_ARCH_DECL_PROTECT(lev);
  59586. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  59587. LWIP_ASSERT_CORE_LOCKED();
  59588. 801856e: f7f7 ffe9 bl 8010544 <sys_check_core_locking>
  59589. SYS_ARCH_PROTECT(lev);
  59590. again:
  59591. /* remember the state of select_cb_list to detect changes */
  59592. last_select_cb_ctr = select_cb_ctr;
  59593. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  59594. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  59595. 8018572: 4b42 ldr r3, [pc, #264] @ (801867c <select_check_waiters+0x11c>)
  59596. 8018574: 681b ldr r3, [r3, #0]
  59597. 8018576: 617b str r3, [r7, #20]
  59598. 8018578: e078 b.n 801866c <select_check_waiters+0x10c>
  59599. if (scb->sem_signalled == 0) {
  59600. 801857a: 697b ldr r3, [r7, #20]
  59601. 801857c: 69db ldr r3, [r3, #28]
  59602. 801857e: 2b00 cmp r3, #0
  59603. 8018580: d171 bne.n 8018666 <select_check_waiters+0x106>
  59604. /* semaphore not signalled yet */
  59605. int do_signal = 0;
  59606. 8018582: 2300 movs r3, #0
  59607. 8018584: 613b str r3, [r7, #16]
  59608. #if LWIP_SOCKET_POLL
  59609. if (scb->poll_fds != NULL) {
  59610. 8018586: 697b ldr r3, [r7, #20]
  59611. 8018588: 695b ldr r3, [r3, #20]
  59612. 801858a: 2b00 cmp r3, #0
  59613. 801858c: d009 beq.n 80185a2 <select_check_waiters+0x42>
  59614. do_signal = lwip_poll_should_wake(scb, s, has_recvevent, has_sendevent, has_errevent);
  59615. 801858e: 683b ldr r3, [r7, #0]
  59616. 8018590: 9300 str r3, [sp, #0]
  59617. 8018592: 687b ldr r3, [r7, #4]
  59618. 8018594: 68ba ldr r2, [r7, #8]
  59619. 8018596: 68f9 ldr r1, [r7, #12]
  59620. 8018598: 6978 ldr r0, [r7, #20]
  59621. 801859a: f7ff fee1 bl 8018360 <lwip_poll_should_wake>
  59622. 801859e: 6138 str r0, [r7, #16]
  59623. 80185a0: e056 b.n 8018650 <select_check_waiters+0xf0>
  59624. else
  59625. #endif /* LWIP_SOCKET_SELECT && LWIP_SOCKET_POLL */
  59626. #if LWIP_SOCKET_SELECT
  59627. {
  59628. /* Test this select call for our socket */
  59629. if (has_recvevent) {
  59630. 80185a2: 68bb ldr r3, [r7, #8]
  59631. 80185a4: 2b00 cmp r3, #0
  59632. 80185a6: d017 beq.n 80185d8 <select_check_waiters+0x78>
  59633. if (scb->readset && FD_ISSET(s, scb->readset)) {
  59634. 80185a8: 697b ldr r3, [r7, #20]
  59635. 80185aa: 689b ldr r3, [r3, #8]
  59636. 80185ac: 2b00 cmp r3, #0
  59637. 80185ae: d013 beq.n 80185d8 <select_check_waiters+0x78>
  59638. 80185b0: 697b ldr r3, [r7, #20]
  59639. 80185b2: 689a ldr r2, [r3, #8]
  59640. 80185b4: 68fb ldr r3, [r7, #12]
  59641. 80185b6: 2b00 cmp r3, #0
  59642. 80185b8: da00 bge.n 80185bc <select_check_waiters+0x5c>
  59643. 80185ba: 331f adds r3, #31
  59644. 80185bc: 115b asrs r3, r3, #5
  59645. 80185be: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  59646. 80185c2: 68fb ldr r3, [r7, #12]
  59647. 80185c4: f003 031f and.w r3, r3, #31
  59648. 80185c8: fa22 f303 lsr.w r3, r2, r3
  59649. 80185cc: f003 0301 and.w r3, r3, #1
  59650. 80185d0: 2b00 cmp r3, #0
  59651. 80185d2: d001 beq.n 80185d8 <select_check_waiters+0x78>
  59652. do_signal = 1;
  59653. 80185d4: 2301 movs r3, #1
  59654. 80185d6: 613b str r3, [r7, #16]
  59655. }
  59656. }
  59657. if (has_sendevent) {
  59658. 80185d8: 687b ldr r3, [r7, #4]
  59659. 80185da: 2b00 cmp r3, #0
  59660. 80185dc: d01a beq.n 8018614 <select_check_waiters+0xb4>
  59661. if (!do_signal && scb->writeset && FD_ISSET(s, scb->writeset)) {
  59662. 80185de: 693b ldr r3, [r7, #16]
  59663. 80185e0: 2b00 cmp r3, #0
  59664. 80185e2: d117 bne.n 8018614 <select_check_waiters+0xb4>
  59665. 80185e4: 697b ldr r3, [r7, #20]
  59666. 80185e6: 68db ldr r3, [r3, #12]
  59667. 80185e8: 2b00 cmp r3, #0
  59668. 80185ea: d013 beq.n 8018614 <select_check_waiters+0xb4>
  59669. 80185ec: 697b ldr r3, [r7, #20]
  59670. 80185ee: 68da ldr r2, [r3, #12]
  59671. 80185f0: 68fb ldr r3, [r7, #12]
  59672. 80185f2: 2b00 cmp r3, #0
  59673. 80185f4: da00 bge.n 80185f8 <select_check_waiters+0x98>
  59674. 80185f6: 331f adds r3, #31
  59675. 80185f8: 115b asrs r3, r3, #5
  59676. 80185fa: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  59677. 80185fe: 68fb ldr r3, [r7, #12]
  59678. 8018600: f003 031f and.w r3, r3, #31
  59679. 8018604: fa22 f303 lsr.w r3, r2, r3
  59680. 8018608: f003 0301 and.w r3, r3, #1
  59681. 801860c: 2b00 cmp r3, #0
  59682. 801860e: d001 beq.n 8018614 <select_check_waiters+0xb4>
  59683. do_signal = 1;
  59684. 8018610: 2301 movs r3, #1
  59685. 8018612: 613b str r3, [r7, #16]
  59686. }
  59687. }
  59688. if (has_errevent) {
  59689. 8018614: 683b ldr r3, [r7, #0]
  59690. 8018616: 2b00 cmp r3, #0
  59691. 8018618: d01a beq.n 8018650 <select_check_waiters+0xf0>
  59692. if (!do_signal && scb->exceptset && FD_ISSET(s, scb->exceptset)) {
  59693. 801861a: 693b ldr r3, [r7, #16]
  59694. 801861c: 2b00 cmp r3, #0
  59695. 801861e: d117 bne.n 8018650 <select_check_waiters+0xf0>
  59696. 8018620: 697b ldr r3, [r7, #20]
  59697. 8018622: 691b ldr r3, [r3, #16]
  59698. 8018624: 2b00 cmp r3, #0
  59699. 8018626: d013 beq.n 8018650 <select_check_waiters+0xf0>
  59700. 8018628: 697b ldr r3, [r7, #20]
  59701. 801862a: 691a ldr r2, [r3, #16]
  59702. 801862c: 68fb ldr r3, [r7, #12]
  59703. 801862e: 2b00 cmp r3, #0
  59704. 8018630: da00 bge.n 8018634 <select_check_waiters+0xd4>
  59705. 8018632: 331f adds r3, #31
  59706. 8018634: 115b asrs r3, r3, #5
  59707. 8018636: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  59708. 801863a: 68fb ldr r3, [r7, #12]
  59709. 801863c: f003 031f and.w r3, r3, #31
  59710. 8018640: fa22 f303 lsr.w r3, r2, r3
  59711. 8018644: f003 0301 and.w r3, r3, #1
  59712. 8018648: 2b00 cmp r3, #0
  59713. 801864a: d001 beq.n 8018650 <select_check_waiters+0xf0>
  59714. do_signal = 1;
  59715. 801864c: 2301 movs r3, #1
  59716. 801864e: 613b str r3, [r7, #16]
  59717. }
  59718. }
  59719. }
  59720. #endif /* LWIP_SOCKET_SELECT */
  59721. if (do_signal) {
  59722. 8018650: 693b ldr r3, [r7, #16]
  59723. 8018652: 2b00 cmp r3, #0
  59724. 8018654: d007 beq.n 8018666 <select_check_waiters+0x106>
  59725. scb->sem_signalled = 1;
  59726. 8018656: 697b ldr r3, [r7, #20]
  59727. 8018658: 2201 movs r2, #1
  59728. 801865a: 61da str r2, [r3, #28]
  59729. /* For !LWIP_TCPIP_CORE_LOCKING, we don't call SYS_ARCH_UNPROTECT() before signaling
  59730. the semaphore, as this might lead to the select thread taking itself off the list,
  59731. invalidating the semaphore. */
  59732. sys_sem_signal(SELECT_SEM_PTR(scb->sem));
  59733. 801865c: 697b ldr r3, [r7, #20]
  59734. 801865e: 3320 adds r3, #32
  59735. 8018660: 4618 mov r0, r3
  59736. 8018662: f00d fe8f bl 8026384 <sys_sem_signal>
  59737. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  59738. 8018666: 697b ldr r3, [r7, #20]
  59739. 8018668: 681b ldr r3, [r3, #0]
  59740. 801866a: 617b str r3, [r7, #20]
  59741. 801866c: 697b ldr r3, [r7, #20]
  59742. 801866e: 2b00 cmp r3, #0
  59743. 8018670: d183 bne.n 801857a <select_check_waiters+0x1a>
  59744. /* remember the state of select_cb_list to detect changes */
  59745. last_select_cb_ctr = select_cb_ctr;
  59746. }
  59747. SYS_ARCH_UNPROTECT(lev);
  59748. #endif
  59749. }
  59750. 8018672: bf00 nop
  59751. 8018674: bf00 nop
  59752. 8018676: 3718 adds r7, #24
  59753. 8018678: 46bd mov sp, r7
  59754. 801867a: bd80 pop {r7, pc}
  59755. 801867c: 24024324 .word 0x24024324
  59756. 08018680 <lwip_ioctl>:
  59757. return err;
  59758. }
  59759. int
  59760. lwip_ioctl(int s, long cmd, void *argp)
  59761. {
  59762. 8018680: b580 push {r7, lr}
  59763. 8018682: b08c sub sp, #48 @ 0x30
  59764. 8018684: af00 add r7, sp, #0
  59765. 8018686: 60f8 str r0, [r7, #12]
  59766. 8018688: 60b9 str r1, [r7, #8]
  59767. 801868a: 607a str r2, [r7, #4]
  59768. struct lwip_sock *sock = get_socket(s);
  59769. 801868c: 68f8 ldr r0, [r7, #12]
  59770. 801868e: f7ff f813 bl 80176b8 <get_socket>
  59771. 8018692: 6278 str r0, [r7, #36] @ 0x24
  59772. u8_t val;
  59773. #if LWIP_SO_RCVBUF
  59774. int recv_avail;
  59775. #endif /* LWIP_SO_RCVBUF */
  59776. if (!sock) {
  59777. 8018694: 6a7b ldr r3, [r7, #36] @ 0x24
  59778. 8018696: 2b00 cmp r3, #0
  59779. 8018698: d102 bne.n 80186a0 <lwip_ioctl+0x20>
  59780. return -1;
  59781. 801869a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59782. 801869e: e089 b.n 80187b4 <lwip_ioctl+0x134>
  59783. }
  59784. switch (cmd) {
  59785. 80186a0: 68bb ldr r3, [r7, #8]
  59786. 80186a2: 4a46 ldr r2, [pc, #280] @ (80187bc <lwip_ioctl+0x13c>)
  59787. 80186a4: 4293 cmp r3, r2
  59788. 80186a6: d048 beq.n 801873a <lwip_ioctl+0xba>
  59789. 80186a8: 68bb ldr r3, [r7, #8]
  59790. 80186aa: 4a45 ldr r2, [pc, #276] @ (80187c0 <lwip_ioctl+0x140>)
  59791. 80186ac: 4293 cmp r3, r2
  59792. 80186ae: d176 bne.n 801879e <lwip_ioctl+0x11e>
  59793. #if LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE
  59794. case FIONREAD:
  59795. if (!argp) {
  59796. 80186b0: 687b ldr r3, [r7, #4]
  59797. 80186b2: 2b00 cmp r3, #0
  59798. 80186b4: d10a bne.n 80186cc <lwip_ioctl+0x4c>
  59799. sock_set_errno(sock, EINVAL);
  59800. 80186b6: 2316 movs r3, #22
  59801. 80186b8: 61bb str r3, [r7, #24]
  59802. 80186ba: 69bb ldr r3, [r7, #24]
  59803. 80186bc: 2b00 cmp r3, #0
  59804. 80186be: d002 beq.n 80186c6 <lwip_ioctl+0x46>
  59805. 80186c0: 4a40 ldr r2, [pc, #256] @ (80187c4 <lwip_ioctl+0x144>)
  59806. 80186c2: 69bb ldr r3, [r7, #24]
  59807. 80186c4: 6013 str r3, [r2, #0]
  59808. done_socket(sock);
  59809. return -1;
  59810. 80186c6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59811. 80186ca: e073 b.n 80187b4 <lwip_ioctl+0x134>
  59812. }
  59813. #endif /* LWIP_FIONREAD_LINUXMODE */
  59814. #if LWIP_SO_RCVBUF
  59815. /* we come here if either LWIP_FIONREAD_LINUXMODE==0 or this is a TCP socket */
  59816. SYS_ARCH_GET(sock->conn->recv_avail, recv_avail);
  59817. 80186cc: f00d fef0 bl 80264b0 <sys_arch_protect>
  59818. 80186d0: 6238 str r0, [r7, #32]
  59819. 80186d2: 6a7b ldr r3, [r7, #36] @ 0x24
  59820. 80186d4: 681b ldr r3, [r3, #0]
  59821. 80186d6: 6a5b ldr r3, [r3, #36] @ 0x24
  59822. 80186d8: 62fb str r3, [r7, #44] @ 0x2c
  59823. 80186da: 6a38 ldr r0, [r7, #32]
  59824. 80186dc: f00d fef6 bl 80264cc <sys_arch_unprotect>
  59825. if (recv_avail < 0) {
  59826. 80186e0: 6afb ldr r3, [r7, #44] @ 0x2c
  59827. 80186e2: 2b00 cmp r3, #0
  59828. 80186e4: da01 bge.n 80186ea <lwip_ioctl+0x6a>
  59829. recv_avail = 0;
  59830. 80186e6: 2300 movs r3, #0
  59831. 80186e8: 62fb str r3, [r7, #44] @ 0x2c
  59832. }
  59833. /* Check if there is data left from the last recv operation. /maq 041215 */
  59834. if (sock->lastdata.netbuf) {
  59835. 80186ea: 6a7b ldr r3, [r7, #36] @ 0x24
  59836. 80186ec: 685b ldr r3, [r3, #4]
  59837. 80186ee: 2b00 cmp r3, #0
  59838. 80186f0: d016 beq.n 8018720 <lwip_ioctl+0xa0>
  59839. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  59840. 80186f2: 6a7b ldr r3, [r7, #36] @ 0x24
  59841. 80186f4: 681b ldr r3, [r3, #0]
  59842. 80186f6: 781b ldrb r3, [r3, #0]
  59843. 80186f8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  59844. 80186fc: 2b10 cmp r3, #16
  59845. 80186fe: d107 bne.n 8018710 <lwip_ioctl+0x90>
  59846. recv_avail += sock->lastdata.pbuf->tot_len;
  59847. 8018700: 6a7b ldr r3, [r7, #36] @ 0x24
  59848. 8018702: 685b ldr r3, [r3, #4]
  59849. 8018704: 891b ldrh r3, [r3, #8]
  59850. 8018706: 461a mov r2, r3
  59851. 8018708: 6afb ldr r3, [r7, #44] @ 0x2c
  59852. 801870a: 4413 add r3, r2
  59853. 801870c: 62fb str r3, [r7, #44] @ 0x2c
  59854. 801870e: e007 b.n 8018720 <lwip_ioctl+0xa0>
  59855. } else {
  59856. recv_avail += sock->lastdata.netbuf->p->tot_len;
  59857. 8018710: 6a7b ldr r3, [r7, #36] @ 0x24
  59858. 8018712: 685b ldr r3, [r3, #4]
  59859. 8018714: 681b ldr r3, [r3, #0]
  59860. 8018716: 891b ldrh r3, [r3, #8]
  59861. 8018718: 461a mov r2, r3
  59862. 801871a: 6afb ldr r3, [r7, #44] @ 0x2c
  59863. 801871c: 4413 add r3, r2
  59864. 801871e: 62fb str r3, [r7, #44] @ 0x2c
  59865. }
  59866. }
  59867. *((int *)argp) = recv_avail;
  59868. 8018720: 687b ldr r3, [r7, #4]
  59869. 8018722: 6afa ldr r2, [r7, #44] @ 0x2c
  59870. 8018724: 601a str r2, [r3, #0]
  59871. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONREAD, %p) = %"U16_F"\n", s, argp, *((u16_t *)argp)));
  59872. sock_set_errno(sock, 0);
  59873. 8018726: 2300 movs r3, #0
  59874. 8018728: 61fb str r3, [r7, #28]
  59875. 801872a: 69fb ldr r3, [r7, #28]
  59876. 801872c: 2b00 cmp r3, #0
  59877. 801872e: d002 beq.n 8018736 <lwip_ioctl+0xb6>
  59878. 8018730: 4a24 ldr r2, [pc, #144] @ (80187c4 <lwip_ioctl+0x144>)
  59879. 8018732: 69fb ldr r3, [r7, #28]
  59880. 8018734: 6013 str r3, [r2, #0]
  59881. done_socket(sock);
  59882. return 0;
  59883. 8018736: 2300 movs r3, #0
  59884. 8018738: e03c b.n 80187b4 <lwip_ioctl+0x134>
  59885. break;
  59886. #endif /* LWIP_SO_RCVBUF */
  59887. #endif /* LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE */
  59888. case (long)FIONBIO:
  59889. val = 0;
  59890. 801873a: 2300 movs r3, #0
  59891. 801873c: f887 302b strb.w r3, [r7, #43] @ 0x2b
  59892. if (argp && *(int *)argp) {
  59893. 8018740: 687b ldr r3, [r7, #4]
  59894. 8018742: 2b00 cmp r3, #0
  59895. 8018744: d006 beq.n 8018754 <lwip_ioctl+0xd4>
  59896. 8018746: 687b ldr r3, [r7, #4]
  59897. 8018748: 681b ldr r3, [r3, #0]
  59898. 801874a: 2b00 cmp r3, #0
  59899. 801874c: d002 beq.n 8018754 <lwip_ioctl+0xd4>
  59900. val = 1;
  59901. 801874e: 2301 movs r3, #1
  59902. 8018750: f887 302b strb.w r3, [r7, #43] @ 0x2b
  59903. }
  59904. netconn_set_nonblocking(sock->conn, val);
  59905. 8018754: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  59906. 8018758: 2b00 cmp r3, #0
  59907. 801875a: d00b beq.n 8018774 <lwip_ioctl+0xf4>
  59908. 801875c: 6a7b ldr r3, [r7, #36] @ 0x24
  59909. 801875e: 681b ldr r3, [r3, #0]
  59910. 8018760: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  59911. 8018764: 6a7b ldr r3, [r7, #36] @ 0x24
  59912. 8018766: 681b ldr r3, [r3, #0]
  59913. 8018768: f042 0202 orr.w r2, r2, #2
  59914. 801876c: b2d2 uxtb r2, r2
  59915. 801876e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  59916. 8018772: e00a b.n 801878a <lwip_ioctl+0x10a>
  59917. 8018774: 6a7b ldr r3, [r7, #36] @ 0x24
  59918. 8018776: 681b ldr r3, [r3, #0]
  59919. 8018778: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  59920. 801877c: 6a7b ldr r3, [r7, #36] @ 0x24
  59921. 801877e: 681b ldr r3, [r3, #0]
  59922. 8018780: f022 0202 bic.w r2, r2, #2
  59923. 8018784: b2d2 uxtb r2, r2
  59924. 8018786: f883 2028 strb.w r2, [r3, #40] @ 0x28
  59925. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONBIO, %d)\n", s, val));
  59926. sock_set_errno(sock, 0);
  59927. 801878a: 2300 movs r3, #0
  59928. 801878c: 617b str r3, [r7, #20]
  59929. 801878e: 697b ldr r3, [r7, #20]
  59930. 8018790: 2b00 cmp r3, #0
  59931. 8018792: d002 beq.n 801879a <lwip_ioctl+0x11a>
  59932. 8018794: 4a0b ldr r2, [pc, #44] @ (80187c4 <lwip_ioctl+0x144>)
  59933. 8018796: 697b ldr r3, [r7, #20]
  59934. 8018798: 6013 str r3, [r2, #0]
  59935. done_socket(sock);
  59936. return 0;
  59937. 801879a: 2300 movs r3, #0
  59938. 801879c: e00a b.n 80187b4 <lwip_ioctl+0x134>
  59939. default:
  59940. break;
  59941. 801879e: bf00 nop
  59942. } /* switch (cmd) */
  59943. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, UNIMPL: 0x%lx, %p)\n", s, cmd, argp));
  59944. sock_set_errno(sock, ENOSYS); /* not yet implemented */
  59945. 80187a0: 2326 movs r3, #38 @ 0x26
  59946. 80187a2: 613b str r3, [r7, #16]
  59947. 80187a4: 693b ldr r3, [r7, #16]
  59948. 80187a6: 2b00 cmp r3, #0
  59949. 80187a8: d002 beq.n 80187b0 <lwip_ioctl+0x130>
  59950. 80187aa: 4a06 ldr r2, [pc, #24] @ (80187c4 <lwip_ioctl+0x144>)
  59951. 80187ac: 693b ldr r3, [r7, #16]
  59952. 80187ae: 6013 str r3, [r2, #0]
  59953. done_socket(sock);
  59954. return -1;
  59955. 80187b0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59956. }
  59957. 80187b4: 4618 mov r0, r3
  59958. 80187b6: 3730 adds r7, #48 @ 0x30
  59959. 80187b8: 46bd mov sp, r7
  59960. 80187ba: bd80 pop {r7, pc}
  59961. 80187bc: 8004667e .word 0x8004667e
  59962. 80187c0: 4004667f .word 0x4004667f
  59963. 80187c4: 2402b180 .word 0x2402b180
  59964. 080187c8 <tcpip_timeouts_mbox_fetch>:
  59965. * @param mbox the mbox to fetch the message from
  59966. * @param msg the place to store the message
  59967. */
  59968. static void
  59969. tcpip_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg)
  59970. {
  59971. 80187c8: b580 push {r7, lr}
  59972. 80187ca: b084 sub sp, #16
  59973. 80187cc: af00 add r7, sp, #0
  59974. 80187ce: 6078 str r0, [r7, #4]
  59975. 80187d0: 6039 str r1, [r7, #0]
  59976. u32_t sleeptime, res;
  59977. again:
  59978. LWIP_ASSERT_CORE_LOCKED();
  59979. 80187d2: f7f7 feb7 bl 8010544 <sys_check_core_locking>
  59980. sleeptime = sys_timeouts_sleeptime();
  59981. 80187d6: f008 fb41 bl 8020e5c <sys_timeouts_sleeptime>
  59982. 80187da: 60f8 str r0, [r7, #12]
  59983. if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) {
  59984. 80187dc: 68fb ldr r3, [r7, #12]
  59985. 80187de: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  59986. 80187e2: d109 bne.n 80187f8 <tcpip_timeouts_mbox_fetch+0x30>
  59987. UNLOCK_TCPIP_CORE();
  59988. 80187e4: f7f7 fea0 bl 8010528 <sys_unlock_tcpip_core>
  59989. sys_arch_mbox_fetch(mbox, msg, 0);
  59990. 80187e8: 2200 movs r2, #0
  59991. 80187ea: 6839 ldr r1, [r7, #0]
  59992. 80187ec: 6878 ldr r0, [r7, #4]
  59993. 80187ee: f00d fd0d bl 802620c <sys_arch_mbox_fetch>
  59994. LOCK_TCPIP_CORE();
  59995. 80187f2: f7f7 fe89 bl 8010508 <sys_lock_tcpip_core>
  59996. return;
  59997. 80187f6: e016 b.n 8018826 <tcpip_timeouts_mbox_fetch+0x5e>
  59998. } else if (sleeptime == 0) {
  59999. 80187f8: 68fb ldr r3, [r7, #12]
  60000. 80187fa: 2b00 cmp r3, #0
  60001. 80187fc: d102 bne.n 8018804 <tcpip_timeouts_mbox_fetch+0x3c>
  60002. sys_check_timeouts();
  60003. 80187fe: f008 faf1 bl 8020de4 <sys_check_timeouts>
  60004. /* We try again to fetch a message from the mbox. */
  60005. goto again;
  60006. 8018802: e7e6 b.n 80187d2 <tcpip_timeouts_mbox_fetch+0xa>
  60007. }
  60008. UNLOCK_TCPIP_CORE();
  60009. 8018804: f7f7 fe90 bl 8010528 <sys_unlock_tcpip_core>
  60010. res = sys_arch_mbox_fetch(mbox, msg, sleeptime);
  60011. 8018808: 68fa ldr r2, [r7, #12]
  60012. 801880a: 6839 ldr r1, [r7, #0]
  60013. 801880c: 6878 ldr r0, [r7, #4]
  60014. 801880e: f00d fcfd bl 802620c <sys_arch_mbox_fetch>
  60015. 8018812: 60b8 str r0, [r7, #8]
  60016. LOCK_TCPIP_CORE();
  60017. 8018814: f7f7 fe78 bl 8010508 <sys_lock_tcpip_core>
  60018. if (res == SYS_ARCH_TIMEOUT) {
  60019. 8018818: 68bb ldr r3, [r7, #8]
  60020. 801881a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  60021. 801881e: d102 bne.n 8018826 <tcpip_timeouts_mbox_fetch+0x5e>
  60022. /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred
  60023. before a message could be fetched. */
  60024. sys_check_timeouts();
  60025. 8018820: f008 fae0 bl 8020de4 <sys_check_timeouts>
  60026. /* We try again to fetch a message from the mbox. */
  60027. goto again;
  60028. 8018824: e7d5 b.n 80187d2 <tcpip_timeouts_mbox_fetch+0xa>
  60029. }
  60030. }
  60031. 8018826: 3710 adds r7, #16
  60032. 8018828: 46bd mov sp, r7
  60033. 801882a: bd80 pop {r7, pc}
  60034. 0801882c <tcpip_thread>:
  60035. *
  60036. * @param arg unused argument
  60037. */
  60038. static void
  60039. tcpip_thread(void *arg)
  60040. {
  60041. 801882c: b580 push {r7, lr}
  60042. 801882e: b084 sub sp, #16
  60043. 8018830: af00 add r7, sp, #0
  60044. 8018832: 6078 str r0, [r7, #4]
  60045. struct tcpip_msg *msg;
  60046. LWIP_UNUSED_ARG(arg);
  60047. LWIP_MARK_TCPIP_THREAD();
  60048. 8018834: f7f7 fec2 bl 80105bc <sys_mark_tcpip_thread>
  60049. LOCK_TCPIP_CORE();
  60050. 8018838: f7f7 fe66 bl 8010508 <sys_lock_tcpip_core>
  60051. if (tcpip_init_done != NULL) {
  60052. 801883c: 4b0f ldr r3, [pc, #60] @ (801887c <tcpip_thread+0x50>)
  60053. 801883e: 681b ldr r3, [r3, #0]
  60054. 8018840: 2b00 cmp r3, #0
  60055. 8018842: d005 beq.n 8018850 <tcpip_thread+0x24>
  60056. tcpip_init_done(tcpip_init_done_arg);
  60057. 8018844: 4b0d ldr r3, [pc, #52] @ (801887c <tcpip_thread+0x50>)
  60058. 8018846: 681b ldr r3, [r3, #0]
  60059. 8018848: 4a0d ldr r2, [pc, #52] @ (8018880 <tcpip_thread+0x54>)
  60060. 801884a: 6812 ldr r2, [r2, #0]
  60061. 801884c: 4610 mov r0, r2
  60062. 801884e: 4798 blx r3
  60063. }
  60064. while (1) { /* MAIN Loop */
  60065. LWIP_TCPIP_THREAD_ALIVE();
  60066. /* wait for a message, timeouts are processed while waiting */
  60067. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  60068. 8018850: f107 030c add.w r3, r7, #12
  60069. 8018854: 4619 mov r1, r3
  60070. 8018856: 480b ldr r0, [pc, #44] @ (8018884 <tcpip_thread+0x58>)
  60071. 8018858: f7ff ffb6 bl 80187c8 <tcpip_timeouts_mbox_fetch>
  60072. if (msg == NULL) {
  60073. 801885c: 68fb ldr r3, [r7, #12]
  60074. 801885e: 2b00 cmp r3, #0
  60075. 8018860: d106 bne.n 8018870 <tcpip_thread+0x44>
  60076. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n"));
  60077. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  60078. 8018862: 4b09 ldr r3, [pc, #36] @ (8018888 <tcpip_thread+0x5c>)
  60079. 8018864: 2291 movs r2, #145 @ 0x91
  60080. 8018866: 4909 ldr r1, [pc, #36] @ (801888c <tcpip_thread+0x60>)
  60081. 8018868: 4809 ldr r0, [pc, #36] @ (8018890 <tcpip_thread+0x64>)
  60082. 801886a: f011 f8b7 bl 80299dc <iprintf>
  60083. continue;
  60084. 801886e: e003 b.n 8018878 <tcpip_thread+0x4c>
  60085. }
  60086. tcpip_thread_handle_msg(msg);
  60087. 8018870: 68fb ldr r3, [r7, #12]
  60088. 8018872: 4618 mov r0, r3
  60089. 8018874: f000 f80e bl 8018894 <tcpip_thread_handle_msg>
  60090. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  60091. 8018878: e7ea b.n 8018850 <tcpip_thread+0x24>
  60092. 801887a: bf00 nop
  60093. 801887c: 24024328 .word 0x24024328
  60094. 8018880: 2402432c .word 0x2402432c
  60095. 8018884: 24024330 .word 0x24024330
  60096. 8018888: 0802d9e4 .word 0x0802d9e4
  60097. 801888c: 0802da14 .word 0x0802da14
  60098. 8018890: 0802da34 .word 0x0802da34
  60099. 08018894 <tcpip_thread_handle_msg>:
  60100. /* Handle a single tcpip_msg
  60101. * This is in its own function for access by tests only.
  60102. */
  60103. static void
  60104. tcpip_thread_handle_msg(struct tcpip_msg *msg)
  60105. {
  60106. 8018894: b580 push {r7, lr}
  60107. 8018896: b082 sub sp, #8
  60108. 8018898: af00 add r7, sp, #0
  60109. 801889a: 6078 str r0, [r7, #4]
  60110. switch (msg->type) {
  60111. 801889c: 687b ldr r3, [r7, #4]
  60112. 801889e: 781b ldrb r3, [r3, #0]
  60113. 80188a0: 2b02 cmp r3, #2
  60114. 80188a2: d026 beq.n 80188f2 <tcpip_thread_handle_msg+0x5e>
  60115. 80188a4: 2b02 cmp r3, #2
  60116. 80188a6: dc2b bgt.n 8018900 <tcpip_thread_handle_msg+0x6c>
  60117. 80188a8: 2b00 cmp r3, #0
  60118. 80188aa: d002 beq.n 80188b2 <tcpip_thread_handle_msg+0x1e>
  60119. 80188ac: 2b01 cmp r3, #1
  60120. 80188ae: d015 beq.n 80188dc <tcpip_thread_handle_msg+0x48>
  60121. 80188b0: e026 b.n 8018900 <tcpip_thread_handle_msg+0x6c>
  60122. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  60123. #if !LWIP_TCPIP_CORE_LOCKING_INPUT
  60124. case TCPIP_MSG_INPKT:
  60125. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg));
  60126. if (msg->msg.inp.input_fn(msg->msg.inp.p, msg->msg.inp.netif) != ERR_OK) {
  60127. 80188b2: 687b ldr r3, [r7, #4]
  60128. 80188b4: 68db ldr r3, [r3, #12]
  60129. 80188b6: 687a ldr r2, [r7, #4]
  60130. 80188b8: 6850 ldr r0, [r2, #4]
  60131. 80188ba: 687a ldr r2, [r7, #4]
  60132. 80188bc: 6892 ldr r2, [r2, #8]
  60133. 80188be: 4611 mov r1, r2
  60134. 80188c0: 4798 blx r3
  60135. 80188c2: 4603 mov r3, r0
  60136. 80188c4: 2b00 cmp r3, #0
  60137. 80188c6: d004 beq.n 80188d2 <tcpip_thread_handle_msg+0x3e>
  60138. pbuf_free(msg->msg.inp.p);
  60139. 80188c8: 687b ldr r3, [r7, #4]
  60140. 80188ca: 685b ldr r3, [r3, #4]
  60141. 80188cc: 4618 mov r0, r3
  60142. 80188ce: f001 fe0d bl 801a4ec <pbuf_free>
  60143. }
  60144. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  60145. 80188d2: 6879 ldr r1, [r7, #4]
  60146. 80188d4: 2009 movs r0, #9
  60147. 80188d6: f000 ff1b bl 8019710 <memp_free>
  60148. break;
  60149. 80188da: e018 b.n 801890e <tcpip_thread_handle_msg+0x7a>
  60150. break;
  60151. #endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */
  60152. case TCPIP_MSG_CALLBACK:
  60153. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK %p\n", (void *)msg));
  60154. msg->msg.cb.function(msg->msg.cb.ctx);
  60155. 80188dc: 687b ldr r3, [r7, #4]
  60156. 80188de: 685b ldr r3, [r3, #4]
  60157. 80188e0: 687a ldr r2, [r7, #4]
  60158. 80188e2: 6892 ldr r2, [r2, #8]
  60159. 80188e4: 4610 mov r0, r2
  60160. 80188e6: 4798 blx r3
  60161. memp_free(MEMP_TCPIP_MSG_API, msg);
  60162. 80188e8: 6879 ldr r1, [r7, #4]
  60163. 80188ea: 2008 movs r0, #8
  60164. 80188ec: f000 ff10 bl 8019710 <memp_free>
  60165. break;
  60166. 80188f0: e00d b.n 801890e <tcpip_thread_handle_msg+0x7a>
  60167. case TCPIP_MSG_CALLBACK_STATIC:
  60168. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK_STATIC %p\n", (void *)msg));
  60169. msg->msg.cb.function(msg->msg.cb.ctx);
  60170. 80188f2: 687b ldr r3, [r7, #4]
  60171. 80188f4: 685b ldr r3, [r3, #4]
  60172. 80188f6: 687a ldr r2, [r7, #4]
  60173. 80188f8: 6892 ldr r2, [r2, #8]
  60174. 80188fa: 4610 mov r0, r2
  60175. 80188fc: 4798 blx r3
  60176. break;
  60177. 80188fe: e006 b.n 801890e <tcpip_thread_handle_msg+0x7a>
  60178. default:
  60179. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type));
  60180. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  60181. 8018900: 4b05 ldr r3, [pc, #20] @ (8018918 <tcpip_thread_handle_msg+0x84>)
  60182. 8018902: 22cf movs r2, #207 @ 0xcf
  60183. 8018904: 4905 ldr r1, [pc, #20] @ (801891c <tcpip_thread_handle_msg+0x88>)
  60184. 8018906: 4806 ldr r0, [pc, #24] @ (8018920 <tcpip_thread_handle_msg+0x8c>)
  60185. 8018908: f011 f868 bl 80299dc <iprintf>
  60186. break;
  60187. 801890c: bf00 nop
  60188. }
  60189. }
  60190. 801890e: bf00 nop
  60191. 8018910: 3708 adds r7, #8
  60192. 8018912: 46bd mov sp, r7
  60193. 8018914: bd80 pop {r7, pc}
  60194. 8018916: bf00 nop
  60195. 8018918: 0802d9e4 .word 0x0802d9e4
  60196. 801891c: 0802da14 .word 0x0802da14
  60197. 8018920: 0802da34 .word 0x0802da34
  60198. 08018924 <tcpip_inpkt>:
  60199. * @param inp the network interface on which the packet was received
  60200. * @param input_fn input function to call
  60201. */
  60202. err_t
  60203. tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn)
  60204. {
  60205. 8018924: b580 push {r7, lr}
  60206. 8018926: b086 sub sp, #24
  60207. 8018928: af00 add r7, sp, #0
  60208. 801892a: 60f8 str r0, [r7, #12]
  60209. 801892c: 60b9 str r1, [r7, #8]
  60210. 801892e: 607a str r2, [r7, #4]
  60211. UNLOCK_TCPIP_CORE();
  60212. return ret;
  60213. #else /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  60214. struct tcpip_msg *msg;
  60215. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  60216. 8018930: 481a ldr r0, [pc, #104] @ (801899c <tcpip_inpkt+0x78>)
  60217. 8018932: f00d fcb3 bl 802629c <sys_mbox_valid>
  60218. 8018936: 4603 mov r3, r0
  60219. 8018938: 2b00 cmp r3, #0
  60220. 801893a: d105 bne.n 8018948 <tcpip_inpkt+0x24>
  60221. 801893c: 4b18 ldr r3, [pc, #96] @ (80189a0 <tcpip_inpkt+0x7c>)
  60222. 801893e: 22fc movs r2, #252 @ 0xfc
  60223. 8018940: 4918 ldr r1, [pc, #96] @ (80189a4 <tcpip_inpkt+0x80>)
  60224. 8018942: 4819 ldr r0, [pc, #100] @ (80189a8 <tcpip_inpkt+0x84>)
  60225. 8018944: f011 f84a bl 80299dc <iprintf>
  60226. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT);
  60227. 8018948: 2009 movs r0, #9
  60228. 801894a: f000 fe6b bl 8019624 <memp_malloc>
  60229. 801894e: 6178 str r0, [r7, #20]
  60230. if (msg == NULL) {
  60231. 8018950: 697b ldr r3, [r7, #20]
  60232. 8018952: 2b00 cmp r3, #0
  60233. 8018954: d102 bne.n 801895c <tcpip_inpkt+0x38>
  60234. return ERR_MEM;
  60235. 8018956: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60236. 801895a: e01a b.n 8018992 <tcpip_inpkt+0x6e>
  60237. }
  60238. msg->type = TCPIP_MSG_INPKT;
  60239. 801895c: 697b ldr r3, [r7, #20]
  60240. 801895e: 2200 movs r2, #0
  60241. 8018960: 701a strb r2, [r3, #0]
  60242. msg->msg.inp.p = p;
  60243. 8018962: 697b ldr r3, [r7, #20]
  60244. 8018964: 68fa ldr r2, [r7, #12]
  60245. 8018966: 605a str r2, [r3, #4]
  60246. msg->msg.inp.netif = inp;
  60247. 8018968: 697b ldr r3, [r7, #20]
  60248. 801896a: 68ba ldr r2, [r7, #8]
  60249. 801896c: 609a str r2, [r3, #8]
  60250. msg->msg.inp.input_fn = input_fn;
  60251. 801896e: 697b ldr r3, [r7, #20]
  60252. 8018970: 687a ldr r2, [r7, #4]
  60253. 8018972: 60da str r2, [r3, #12]
  60254. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  60255. 8018974: 6979 ldr r1, [r7, #20]
  60256. 8018976: 4809 ldr r0, [pc, #36] @ (801899c <tcpip_inpkt+0x78>)
  60257. 8018978: f00d fc2e bl 80261d8 <sys_mbox_trypost>
  60258. 801897c: 4603 mov r3, r0
  60259. 801897e: 2b00 cmp r3, #0
  60260. 8018980: d006 beq.n 8018990 <tcpip_inpkt+0x6c>
  60261. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  60262. 8018982: 6979 ldr r1, [r7, #20]
  60263. 8018984: 2009 movs r0, #9
  60264. 8018986: f000 fec3 bl 8019710 <memp_free>
  60265. return ERR_MEM;
  60266. 801898a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60267. 801898e: e000 b.n 8018992 <tcpip_inpkt+0x6e>
  60268. }
  60269. return ERR_OK;
  60270. 8018990: 2300 movs r3, #0
  60271. #endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  60272. }
  60273. 8018992: 4618 mov r0, r3
  60274. 8018994: 3718 adds r7, #24
  60275. 8018996: 46bd mov sp, r7
  60276. 8018998: bd80 pop {r7, pc}
  60277. 801899a: bf00 nop
  60278. 801899c: 24024330 .word 0x24024330
  60279. 80189a0: 0802d9e4 .word 0x0802d9e4
  60280. 80189a4: 0802da5c .word 0x0802da5c
  60281. 80189a8: 0802da34 .word 0x0802da34
  60282. 080189ac <tcpip_input>:
  60283. * NETIF_FLAG_ETHERNET flags)
  60284. * @param inp the network interface on which the packet was received
  60285. */
  60286. err_t
  60287. tcpip_input(struct pbuf *p, struct netif *inp)
  60288. {
  60289. 80189ac: b580 push {r7, lr}
  60290. 80189ae: b082 sub sp, #8
  60291. 80189b0: af00 add r7, sp, #0
  60292. 80189b2: 6078 str r0, [r7, #4]
  60293. 80189b4: 6039 str r1, [r7, #0]
  60294. #if LWIP_ETHERNET
  60295. if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) {
  60296. 80189b6: 683b ldr r3, [r7, #0]
  60297. 80189b8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  60298. 80189bc: f003 0318 and.w r3, r3, #24
  60299. 80189c0: 2b00 cmp r3, #0
  60300. 80189c2: d006 beq.n 80189d2 <tcpip_input+0x26>
  60301. return tcpip_inpkt(p, inp, ethernet_input);
  60302. 80189c4: 4a08 ldr r2, [pc, #32] @ (80189e8 <tcpip_input+0x3c>)
  60303. 80189c6: 6839 ldr r1, [r7, #0]
  60304. 80189c8: 6878 ldr r0, [r7, #4]
  60305. 80189ca: f7ff ffab bl 8018924 <tcpip_inpkt>
  60306. 80189ce: 4603 mov r3, r0
  60307. 80189d0: e005 b.n 80189de <tcpip_input+0x32>
  60308. } else
  60309. #endif /* LWIP_ETHERNET */
  60310. return tcpip_inpkt(p, inp, ip_input);
  60311. 80189d2: 4a06 ldr r2, [pc, #24] @ (80189ec <tcpip_input+0x40>)
  60312. 80189d4: 6839 ldr r1, [r7, #0]
  60313. 80189d6: 6878 ldr r0, [r7, #4]
  60314. 80189d8: f7ff ffa4 bl 8018924 <tcpip_inpkt>
  60315. 80189dc: 4603 mov r3, r0
  60316. }
  60317. 80189de: 4618 mov r0, r3
  60318. 80189e0: 3708 adds r7, #8
  60319. 80189e2: 46bd mov sp, r7
  60320. 80189e4: bd80 pop {r7, pc}
  60321. 80189e6: bf00 nop
  60322. 80189e8: 08025fcd .word 0x08025fcd
  60323. 80189ec: 08024af5 .word 0x08024af5
  60324. 080189f0 <tcpip_try_callback>:
  60325. *
  60326. * @see tcpip_callback
  60327. */
  60328. err_t
  60329. tcpip_try_callback(tcpip_callback_fn function, void *ctx)
  60330. {
  60331. 80189f0: b580 push {r7, lr}
  60332. 80189f2: b084 sub sp, #16
  60333. 80189f4: af00 add r7, sp, #0
  60334. 80189f6: 6078 str r0, [r7, #4]
  60335. 80189f8: 6039 str r1, [r7, #0]
  60336. struct tcpip_msg *msg;
  60337. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  60338. 80189fa: 4819 ldr r0, [pc, #100] @ (8018a60 <tcpip_try_callback+0x70>)
  60339. 80189fc: f00d fc4e bl 802629c <sys_mbox_valid>
  60340. 8018a00: 4603 mov r3, r0
  60341. 8018a02: 2b00 cmp r3, #0
  60342. 8018a04: d106 bne.n 8018a14 <tcpip_try_callback+0x24>
  60343. 8018a06: 4b17 ldr r3, [pc, #92] @ (8018a64 <tcpip_try_callback+0x74>)
  60344. 8018a08: f240 125d movw r2, #349 @ 0x15d
  60345. 8018a0c: 4916 ldr r1, [pc, #88] @ (8018a68 <tcpip_try_callback+0x78>)
  60346. 8018a0e: 4817 ldr r0, [pc, #92] @ (8018a6c <tcpip_try_callback+0x7c>)
  60347. 8018a10: f010 ffe4 bl 80299dc <iprintf>
  60348. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API);
  60349. 8018a14: 2008 movs r0, #8
  60350. 8018a16: f000 fe05 bl 8019624 <memp_malloc>
  60351. 8018a1a: 60f8 str r0, [r7, #12]
  60352. if (msg == NULL) {
  60353. 8018a1c: 68fb ldr r3, [r7, #12]
  60354. 8018a1e: 2b00 cmp r3, #0
  60355. 8018a20: d102 bne.n 8018a28 <tcpip_try_callback+0x38>
  60356. return ERR_MEM;
  60357. 8018a22: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60358. 8018a26: e017 b.n 8018a58 <tcpip_try_callback+0x68>
  60359. }
  60360. msg->type = TCPIP_MSG_CALLBACK;
  60361. 8018a28: 68fb ldr r3, [r7, #12]
  60362. 8018a2a: 2201 movs r2, #1
  60363. 8018a2c: 701a strb r2, [r3, #0]
  60364. msg->msg.cb.function = function;
  60365. 8018a2e: 68fb ldr r3, [r7, #12]
  60366. 8018a30: 687a ldr r2, [r7, #4]
  60367. 8018a32: 605a str r2, [r3, #4]
  60368. msg->msg.cb.ctx = ctx;
  60369. 8018a34: 68fb ldr r3, [r7, #12]
  60370. 8018a36: 683a ldr r2, [r7, #0]
  60371. 8018a38: 609a str r2, [r3, #8]
  60372. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  60373. 8018a3a: 68f9 ldr r1, [r7, #12]
  60374. 8018a3c: 4808 ldr r0, [pc, #32] @ (8018a60 <tcpip_try_callback+0x70>)
  60375. 8018a3e: f00d fbcb bl 80261d8 <sys_mbox_trypost>
  60376. 8018a42: 4603 mov r3, r0
  60377. 8018a44: 2b00 cmp r3, #0
  60378. 8018a46: d006 beq.n 8018a56 <tcpip_try_callback+0x66>
  60379. memp_free(MEMP_TCPIP_MSG_API, msg);
  60380. 8018a48: 68f9 ldr r1, [r7, #12]
  60381. 8018a4a: 2008 movs r0, #8
  60382. 8018a4c: f000 fe60 bl 8019710 <memp_free>
  60383. return ERR_MEM;
  60384. 8018a50: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60385. 8018a54: e000 b.n 8018a58 <tcpip_try_callback+0x68>
  60386. }
  60387. return ERR_OK;
  60388. 8018a56: 2300 movs r3, #0
  60389. }
  60390. 8018a58: 4618 mov r0, r3
  60391. 8018a5a: 3710 adds r7, #16
  60392. 8018a5c: 46bd mov sp, r7
  60393. 8018a5e: bd80 pop {r7, pc}
  60394. 8018a60: 24024330 .word 0x24024330
  60395. 8018a64: 0802d9e4 .word 0x0802d9e4
  60396. 8018a68: 0802da5c .word 0x0802da5c
  60397. 8018a6c: 0802da34 .word 0x0802da34
  60398. 08018a70 <tcpip_send_msg_wait_sem>:
  60399. * @param sem semaphore to wait on
  60400. * @return ERR_OK if the function was called, another err_t if not
  60401. */
  60402. err_t
  60403. tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
  60404. {
  60405. 8018a70: b580 push {r7, lr}
  60406. 8018a72: b084 sub sp, #16
  60407. 8018a74: af00 add r7, sp, #0
  60408. 8018a76: 60f8 str r0, [r7, #12]
  60409. 8018a78: 60b9 str r1, [r7, #8]
  60410. 8018a7a: 607a str r2, [r7, #4]
  60411. #if LWIP_TCPIP_CORE_LOCKING
  60412. LWIP_UNUSED_ARG(sem);
  60413. LOCK_TCPIP_CORE();
  60414. 8018a7c: f7f7 fd44 bl 8010508 <sys_lock_tcpip_core>
  60415. fn(apimsg);
  60416. 8018a80: 68fb ldr r3, [r7, #12]
  60417. 8018a82: 68b8 ldr r0, [r7, #8]
  60418. 8018a84: 4798 blx r3
  60419. UNLOCK_TCPIP_CORE();
  60420. 8018a86: f7f7 fd4f bl 8010528 <sys_unlock_tcpip_core>
  60421. return ERR_OK;
  60422. 8018a8a: 2300 movs r3, #0
  60423. sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg));
  60424. sys_arch_sem_wait(sem, 0);
  60425. TCPIP_MSG_VAR_FREE(msg);
  60426. return ERR_OK;
  60427. #endif /* LWIP_TCPIP_CORE_LOCKING */
  60428. }
  60429. 8018a8c: 4618 mov r0, r3
  60430. 8018a8e: 3710 adds r7, #16
  60431. 8018a90: 46bd mov sp, r7
  60432. 8018a92: bd80 pop {r7, pc}
  60433. 08018a94 <tcpip_init>:
  60434. * @param initfunc a function to call when tcpip_thread is running and finished initializing
  60435. * @param arg argument to pass to initfunc
  60436. */
  60437. void
  60438. tcpip_init(tcpip_init_done_fn initfunc, void *arg)
  60439. {
  60440. 8018a94: b580 push {r7, lr}
  60441. 8018a96: b084 sub sp, #16
  60442. 8018a98: af02 add r7, sp, #8
  60443. 8018a9a: 6078 str r0, [r7, #4]
  60444. 8018a9c: 6039 str r1, [r7, #0]
  60445. lwip_init();
  60446. 8018a9e: f000 f92d bl 8018cfc <lwip_init>
  60447. tcpip_init_done = initfunc;
  60448. 8018aa2: 4a17 ldr r2, [pc, #92] @ (8018b00 <tcpip_init+0x6c>)
  60449. 8018aa4: 687b ldr r3, [r7, #4]
  60450. 8018aa6: 6013 str r3, [r2, #0]
  60451. tcpip_init_done_arg = arg;
  60452. 8018aa8: 4a16 ldr r2, [pc, #88] @ (8018b04 <tcpip_init+0x70>)
  60453. 8018aaa: 683b ldr r3, [r7, #0]
  60454. 8018aac: 6013 str r3, [r2, #0]
  60455. if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) {
  60456. 8018aae: 2106 movs r1, #6
  60457. 8018ab0: 4815 ldr r0, [pc, #84] @ (8018b08 <tcpip_init+0x74>)
  60458. 8018ab2: f00d fb65 bl 8026180 <sys_mbox_new>
  60459. 8018ab6: 4603 mov r3, r0
  60460. 8018ab8: 2b00 cmp r3, #0
  60461. 8018aba: d006 beq.n 8018aca <tcpip_init+0x36>
  60462. LWIP_ASSERT("failed to create tcpip_thread mbox", 0);
  60463. 8018abc: 4b13 ldr r3, [pc, #76] @ (8018b0c <tcpip_init+0x78>)
  60464. 8018abe: f240 2261 movw r2, #609 @ 0x261
  60465. 8018ac2: 4913 ldr r1, [pc, #76] @ (8018b10 <tcpip_init+0x7c>)
  60466. 8018ac4: 4813 ldr r0, [pc, #76] @ (8018b14 <tcpip_init+0x80>)
  60467. 8018ac6: f010 ff89 bl 80299dc <iprintf>
  60468. }
  60469. #if LWIP_TCPIP_CORE_LOCKING
  60470. if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) {
  60471. 8018aca: 4813 ldr r0, [pc, #76] @ (8018b18 <tcpip_init+0x84>)
  60472. 8018acc: f00d fc9e bl 802640c <sys_mutex_new>
  60473. 8018ad0: 4603 mov r3, r0
  60474. 8018ad2: 2b00 cmp r3, #0
  60475. 8018ad4: d006 beq.n 8018ae4 <tcpip_init+0x50>
  60476. LWIP_ASSERT("failed to create lock_tcpip_core", 0);
  60477. 8018ad6: 4b0d ldr r3, [pc, #52] @ (8018b0c <tcpip_init+0x78>)
  60478. 8018ad8: f240 2265 movw r2, #613 @ 0x265
  60479. 8018adc: 490f ldr r1, [pc, #60] @ (8018b1c <tcpip_init+0x88>)
  60480. 8018ade: 480d ldr r0, [pc, #52] @ (8018b14 <tcpip_init+0x80>)
  60481. 8018ae0: f010 ff7c bl 80299dc <iprintf>
  60482. }
  60483. #endif /* LWIP_TCPIP_CORE_LOCKING */
  60484. sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
  60485. 8018ae4: 2330 movs r3, #48 @ 0x30
  60486. 8018ae6: 9300 str r3, [sp, #0]
  60487. 8018ae8: f44f 5380 mov.w r3, #4096 @ 0x1000
  60488. 8018aec: 2200 movs r2, #0
  60489. 8018aee: 490c ldr r1, [pc, #48] @ (8018b20 <tcpip_init+0x8c>)
  60490. 8018af0: 480c ldr r0, [pc, #48] @ (8018b24 <tcpip_init+0x90>)
  60491. 8018af2: f00d fcbd bl 8026470 <sys_thread_new>
  60492. }
  60493. 8018af6: bf00 nop
  60494. 8018af8: 3708 adds r7, #8
  60495. 8018afa: 46bd mov sp, r7
  60496. 8018afc: bd80 pop {r7, pc}
  60497. 8018afe: bf00 nop
  60498. 8018b00: 24024328 .word 0x24024328
  60499. 8018b04: 2402432c .word 0x2402432c
  60500. 8018b08: 24024330 .word 0x24024330
  60501. 8018b0c: 0802d9e4 .word 0x0802d9e4
  60502. 8018b10: 0802da6c .word 0x0802da6c
  60503. 8018b14: 0802da34 .word 0x0802da34
  60504. 8018b18: 24024334 .word 0x24024334
  60505. 8018b1c: 0802da90 .word 0x0802da90
  60506. 8018b20: 0801882d .word 0x0801882d
  60507. 8018b24: 0802dab4 .word 0x0802dab4
  60508. 08018b28 <lwip_htons>:
  60509. * @param n u16_t in host byte order
  60510. * @return n in network byte order
  60511. */
  60512. u16_t
  60513. lwip_htons(u16_t n)
  60514. {
  60515. 8018b28: b480 push {r7}
  60516. 8018b2a: b083 sub sp, #12
  60517. 8018b2c: af00 add r7, sp, #0
  60518. 8018b2e: 4603 mov r3, r0
  60519. 8018b30: 80fb strh r3, [r7, #6]
  60520. return PP_HTONS(n);
  60521. 8018b32: 88fb ldrh r3, [r7, #6]
  60522. 8018b34: 021b lsls r3, r3, #8
  60523. 8018b36: b21a sxth r2, r3
  60524. 8018b38: 88fb ldrh r3, [r7, #6]
  60525. 8018b3a: 0a1b lsrs r3, r3, #8
  60526. 8018b3c: b29b uxth r3, r3
  60527. 8018b3e: b21b sxth r3, r3
  60528. 8018b40: 4313 orrs r3, r2
  60529. 8018b42: b21b sxth r3, r3
  60530. 8018b44: b29b uxth r3, r3
  60531. }
  60532. 8018b46: 4618 mov r0, r3
  60533. 8018b48: 370c adds r7, #12
  60534. 8018b4a: 46bd mov sp, r7
  60535. 8018b4c: f85d 7b04 ldr.w r7, [sp], #4
  60536. 8018b50: 4770 bx lr
  60537. 08018b52 <lwip_htonl>:
  60538. * @param n u32_t in host byte order
  60539. * @return n in network byte order
  60540. */
  60541. u32_t
  60542. lwip_htonl(u32_t n)
  60543. {
  60544. 8018b52: b480 push {r7}
  60545. 8018b54: b083 sub sp, #12
  60546. 8018b56: af00 add r7, sp, #0
  60547. 8018b58: 6078 str r0, [r7, #4]
  60548. return PP_HTONL(n);
  60549. 8018b5a: 687b ldr r3, [r7, #4]
  60550. 8018b5c: 061a lsls r2, r3, #24
  60551. 8018b5e: 687b ldr r3, [r7, #4]
  60552. 8018b60: 021b lsls r3, r3, #8
  60553. 8018b62: f403 037f and.w r3, r3, #16711680 @ 0xff0000
  60554. 8018b66: 431a orrs r2, r3
  60555. 8018b68: 687b ldr r3, [r7, #4]
  60556. 8018b6a: 0a1b lsrs r3, r3, #8
  60557. 8018b6c: f403 437f and.w r3, r3, #65280 @ 0xff00
  60558. 8018b70: 431a orrs r2, r3
  60559. 8018b72: 687b ldr r3, [r7, #4]
  60560. 8018b74: 0e1b lsrs r3, r3, #24
  60561. 8018b76: 4313 orrs r3, r2
  60562. }
  60563. 8018b78: 4618 mov r0, r3
  60564. 8018b7a: 370c adds r7, #12
  60565. 8018b7c: 46bd mov sp, r7
  60566. 8018b7e: f85d 7b04 ldr.w r7, [sp], #4
  60567. 8018b82: 4770 bx lr
  60568. 08018b84 <lwip_standard_chksum>:
  60569. * @param len length of data to be summed
  60570. * @return host order (!) lwip checksum (non-inverted Internet sum)
  60571. */
  60572. u16_t
  60573. lwip_standard_chksum(const void *dataptr, int len)
  60574. {
  60575. 8018b84: b480 push {r7}
  60576. 8018b86: b089 sub sp, #36 @ 0x24
  60577. 8018b88: af00 add r7, sp, #0
  60578. 8018b8a: 6078 str r0, [r7, #4]
  60579. 8018b8c: 6039 str r1, [r7, #0]
  60580. const u8_t *pb = (const u8_t *)dataptr;
  60581. 8018b8e: 687b ldr r3, [r7, #4]
  60582. 8018b90: 61fb str r3, [r7, #28]
  60583. const u16_t *ps;
  60584. u16_t t = 0;
  60585. 8018b92: 2300 movs r3, #0
  60586. 8018b94: 81fb strh r3, [r7, #14]
  60587. u32_t sum = 0;
  60588. 8018b96: 2300 movs r3, #0
  60589. 8018b98: 617b str r3, [r7, #20]
  60590. int odd = ((mem_ptr_t)pb & 1);
  60591. 8018b9a: 69fb ldr r3, [r7, #28]
  60592. 8018b9c: f003 0301 and.w r3, r3, #1
  60593. 8018ba0: 613b str r3, [r7, #16]
  60594. /* Get aligned to u16_t */
  60595. if (odd && len > 0) {
  60596. 8018ba2: 693b ldr r3, [r7, #16]
  60597. 8018ba4: 2b00 cmp r3, #0
  60598. 8018ba6: d00d beq.n 8018bc4 <lwip_standard_chksum+0x40>
  60599. 8018ba8: 683b ldr r3, [r7, #0]
  60600. 8018baa: 2b00 cmp r3, #0
  60601. 8018bac: dd0a ble.n 8018bc4 <lwip_standard_chksum+0x40>
  60602. ((u8_t *)&t)[1] = *pb++;
  60603. 8018bae: 69fa ldr r2, [r7, #28]
  60604. 8018bb0: 1c53 adds r3, r2, #1
  60605. 8018bb2: 61fb str r3, [r7, #28]
  60606. 8018bb4: f107 030e add.w r3, r7, #14
  60607. 8018bb8: 3301 adds r3, #1
  60608. 8018bba: 7812 ldrb r2, [r2, #0]
  60609. 8018bbc: 701a strb r2, [r3, #0]
  60610. len--;
  60611. 8018bbe: 683b ldr r3, [r7, #0]
  60612. 8018bc0: 3b01 subs r3, #1
  60613. 8018bc2: 603b str r3, [r7, #0]
  60614. }
  60615. /* Add the bulk of the data */
  60616. ps = (const u16_t *)(const void *)pb;
  60617. 8018bc4: 69fb ldr r3, [r7, #28]
  60618. 8018bc6: 61bb str r3, [r7, #24]
  60619. while (len > 1) {
  60620. 8018bc8: e00a b.n 8018be0 <lwip_standard_chksum+0x5c>
  60621. sum += *ps++;
  60622. 8018bca: 69bb ldr r3, [r7, #24]
  60623. 8018bcc: 1c9a adds r2, r3, #2
  60624. 8018bce: 61ba str r2, [r7, #24]
  60625. 8018bd0: 881b ldrh r3, [r3, #0]
  60626. 8018bd2: 461a mov r2, r3
  60627. 8018bd4: 697b ldr r3, [r7, #20]
  60628. 8018bd6: 4413 add r3, r2
  60629. 8018bd8: 617b str r3, [r7, #20]
  60630. len -= 2;
  60631. 8018bda: 683b ldr r3, [r7, #0]
  60632. 8018bdc: 3b02 subs r3, #2
  60633. 8018bde: 603b str r3, [r7, #0]
  60634. while (len > 1) {
  60635. 8018be0: 683b ldr r3, [r7, #0]
  60636. 8018be2: 2b01 cmp r3, #1
  60637. 8018be4: dcf1 bgt.n 8018bca <lwip_standard_chksum+0x46>
  60638. }
  60639. /* Consume left-over byte, if any */
  60640. if (len > 0) {
  60641. 8018be6: 683b ldr r3, [r7, #0]
  60642. 8018be8: 2b00 cmp r3, #0
  60643. 8018bea: dd04 ble.n 8018bf6 <lwip_standard_chksum+0x72>
  60644. ((u8_t *)&t)[0] = *(const u8_t *)ps;
  60645. 8018bec: f107 030e add.w r3, r7, #14
  60646. 8018bf0: 69ba ldr r2, [r7, #24]
  60647. 8018bf2: 7812 ldrb r2, [r2, #0]
  60648. 8018bf4: 701a strb r2, [r3, #0]
  60649. }
  60650. /* Add end bytes */
  60651. sum += t;
  60652. 8018bf6: 89fb ldrh r3, [r7, #14]
  60653. 8018bf8: 461a mov r2, r3
  60654. 8018bfa: 697b ldr r3, [r7, #20]
  60655. 8018bfc: 4413 add r3, r2
  60656. 8018bfe: 617b str r3, [r7, #20]
  60657. /* Fold 32-bit sum to 16 bits
  60658. calling this twice is probably faster than if statements... */
  60659. sum = FOLD_U32T(sum);
  60660. 8018c00: 697b ldr r3, [r7, #20]
  60661. 8018c02: 0c1a lsrs r2, r3, #16
  60662. 8018c04: 697b ldr r3, [r7, #20]
  60663. 8018c06: b29b uxth r3, r3
  60664. 8018c08: 4413 add r3, r2
  60665. 8018c0a: 617b str r3, [r7, #20]
  60666. sum = FOLD_U32T(sum);
  60667. 8018c0c: 697b ldr r3, [r7, #20]
  60668. 8018c0e: 0c1a lsrs r2, r3, #16
  60669. 8018c10: 697b ldr r3, [r7, #20]
  60670. 8018c12: b29b uxth r3, r3
  60671. 8018c14: 4413 add r3, r2
  60672. 8018c16: 617b str r3, [r7, #20]
  60673. /* Swap if alignment was odd */
  60674. if (odd) {
  60675. 8018c18: 693b ldr r3, [r7, #16]
  60676. 8018c1a: 2b00 cmp r3, #0
  60677. 8018c1c: d007 beq.n 8018c2e <lwip_standard_chksum+0xaa>
  60678. sum = SWAP_BYTES_IN_WORD(sum);
  60679. 8018c1e: 697b ldr r3, [r7, #20]
  60680. 8018c20: 021b lsls r3, r3, #8
  60681. 8018c22: b29a uxth r2, r3
  60682. 8018c24: 697b ldr r3, [r7, #20]
  60683. 8018c26: 0a1b lsrs r3, r3, #8
  60684. 8018c28: b2db uxtb r3, r3
  60685. 8018c2a: 4313 orrs r3, r2
  60686. 8018c2c: 617b str r3, [r7, #20]
  60687. }
  60688. return (u16_t)sum;
  60689. 8018c2e: 697b ldr r3, [r7, #20]
  60690. 8018c30: b29b uxth r3, r3
  60691. }
  60692. 8018c32: 4618 mov r0, r3
  60693. 8018c34: 3724 adds r7, #36 @ 0x24
  60694. 8018c36: 46bd mov sp, r7
  60695. 8018c38: f85d 7b04 ldr.w r7, [sp], #4
  60696. 8018c3c: 4770 bx lr
  60697. 08018c3e <inet_chksum>:
  60698. * @return checksum (as u16_t) to be saved directly in the protocol header
  60699. */
  60700. u16_t
  60701. inet_chksum(const void *dataptr, u16_t len)
  60702. {
  60703. 8018c3e: b580 push {r7, lr}
  60704. 8018c40: b082 sub sp, #8
  60705. 8018c42: af00 add r7, sp, #0
  60706. 8018c44: 6078 str r0, [r7, #4]
  60707. 8018c46: 460b mov r3, r1
  60708. 8018c48: 807b strh r3, [r7, #2]
  60709. return (u16_t)~(unsigned int)LWIP_CHKSUM(dataptr, len);
  60710. 8018c4a: 887b ldrh r3, [r7, #2]
  60711. 8018c4c: 4619 mov r1, r3
  60712. 8018c4e: 6878 ldr r0, [r7, #4]
  60713. 8018c50: f7ff ff98 bl 8018b84 <lwip_standard_chksum>
  60714. 8018c54: 4603 mov r3, r0
  60715. 8018c56: 43db mvns r3, r3
  60716. 8018c58: b29b uxth r3, r3
  60717. }
  60718. 8018c5a: 4618 mov r0, r3
  60719. 8018c5c: 3708 adds r7, #8
  60720. 8018c5e: 46bd mov sp, r7
  60721. 8018c60: bd80 pop {r7, pc}
  60722. 08018c62 <inet_chksum_pbuf>:
  60723. * @param p pbuf chain over that the checksum should be calculated
  60724. * @return checksum (as u16_t) to be saved directly in the protocol header
  60725. */
  60726. u16_t
  60727. inet_chksum_pbuf(struct pbuf *p)
  60728. {
  60729. 8018c62: b580 push {r7, lr}
  60730. 8018c64: b086 sub sp, #24
  60731. 8018c66: af00 add r7, sp, #0
  60732. 8018c68: 6078 str r0, [r7, #4]
  60733. u32_t acc;
  60734. struct pbuf *q;
  60735. int swapped = 0;
  60736. 8018c6a: 2300 movs r3, #0
  60737. 8018c6c: 60fb str r3, [r7, #12]
  60738. acc = 0;
  60739. 8018c6e: 2300 movs r3, #0
  60740. 8018c70: 617b str r3, [r7, #20]
  60741. for (q = p; q != NULL; q = q->next) {
  60742. 8018c72: 687b ldr r3, [r7, #4]
  60743. 8018c74: 613b str r3, [r7, #16]
  60744. 8018c76: e02b b.n 8018cd0 <inet_chksum_pbuf+0x6e>
  60745. acc += LWIP_CHKSUM(q->payload, q->len);
  60746. 8018c78: 693b ldr r3, [r7, #16]
  60747. 8018c7a: 685a ldr r2, [r3, #4]
  60748. 8018c7c: 693b ldr r3, [r7, #16]
  60749. 8018c7e: 895b ldrh r3, [r3, #10]
  60750. 8018c80: 4619 mov r1, r3
  60751. 8018c82: 4610 mov r0, r2
  60752. 8018c84: f7ff ff7e bl 8018b84 <lwip_standard_chksum>
  60753. 8018c88: 4603 mov r3, r0
  60754. 8018c8a: 461a mov r2, r3
  60755. 8018c8c: 697b ldr r3, [r7, #20]
  60756. 8018c8e: 4413 add r3, r2
  60757. 8018c90: 617b str r3, [r7, #20]
  60758. acc = FOLD_U32T(acc);
  60759. 8018c92: 697b ldr r3, [r7, #20]
  60760. 8018c94: 0c1a lsrs r2, r3, #16
  60761. 8018c96: 697b ldr r3, [r7, #20]
  60762. 8018c98: b29b uxth r3, r3
  60763. 8018c9a: 4413 add r3, r2
  60764. 8018c9c: 617b str r3, [r7, #20]
  60765. if (q->len % 2 != 0) {
  60766. 8018c9e: 693b ldr r3, [r7, #16]
  60767. 8018ca0: 895b ldrh r3, [r3, #10]
  60768. 8018ca2: f003 0301 and.w r3, r3, #1
  60769. 8018ca6: b29b uxth r3, r3
  60770. 8018ca8: 2b00 cmp r3, #0
  60771. 8018caa: d00e beq.n 8018cca <inet_chksum_pbuf+0x68>
  60772. swapped = !swapped;
  60773. 8018cac: 68fb ldr r3, [r7, #12]
  60774. 8018cae: 2b00 cmp r3, #0
  60775. 8018cb0: bf0c ite eq
  60776. 8018cb2: 2301 moveq r3, #1
  60777. 8018cb4: 2300 movne r3, #0
  60778. 8018cb6: b2db uxtb r3, r3
  60779. 8018cb8: 60fb str r3, [r7, #12]
  60780. acc = SWAP_BYTES_IN_WORD(acc);
  60781. 8018cba: 697b ldr r3, [r7, #20]
  60782. 8018cbc: 021b lsls r3, r3, #8
  60783. 8018cbe: b29a uxth r2, r3
  60784. 8018cc0: 697b ldr r3, [r7, #20]
  60785. 8018cc2: 0a1b lsrs r3, r3, #8
  60786. 8018cc4: b2db uxtb r3, r3
  60787. 8018cc6: 4313 orrs r3, r2
  60788. 8018cc8: 617b str r3, [r7, #20]
  60789. for (q = p; q != NULL; q = q->next) {
  60790. 8018cca: 693b ldr r3, [r7, #16]
  60791. 8018ccc: 681b ldr r3, [r3, #0]
  60792. 8018cce: 613b str r3, [r7, #16]
  60793. 8018cd0: 693b ldr r3, [r7, #16]
  60794. 8018cd2: 2b00 cmp r3, #0
  60795. 8018cd4: d1d0 bne.n 8018c78 <inet_chksum_pbuf+0x16>
  60796. }
  60797. }
  60798. if (swapped) {
  60799. 8018cd6: 68fb ldr r3, [r7, #12]
  60800. 8018cd8: 2b00 cmp r3, #0
  60801. 8018cda: d007 beq.n 8018cec <inet_chksum_pbuf+0x8a>
  60802. acc = SWAP_BYTES_IN_WORD(acc);
  60803. 8018cdc: 697b ldr r3, [r7, #20]
  60804. 8018cde: 021b lsls r3, r3, #8
  60805. 8018ce0: b29a uxth r2, r3
  60806. 8018ce2: 697b ldr r3, [r7, #20]
  60807. 8018ce4: 0a1b lsrs r3, r3, #8
  60808. 8018ce6: b2db uxtb r3, r3
  60809. 8018ce8: 4313 orrs r3, r2
  60810. 8018cea: 617b str r3, [r7, #20]
  60811. }
  60812. return (u16_t)~(acc & 0xffffUL);
  60813. 8018cec: 697b ldr r3, [r7, #20]
  60814. 8018cee: b29b uxth r3, r3
  60815. 8018cf0: 43db mvns r3, r3
  60816. 8018cf2: b29b uxth r3, r3
  60817. }
  60818. 8018cf4: 4618 mov r0, r3
  60819. 8018cf6: 3718 adds r7, #24
  60820. 8018cf8: 46bd mov sp, r7
  60821. 8018cfa: bd80 pop {r7, pc}
  60822. 08018cfc <lwip_init>:
  60823. * Initialize all modules.
  60824. * Use this in NO_SYS mode. Use tcpip_init() otherwise.
  60825. */
  60826. void
  60827. lwip_init(void)
  60828. {
  60829. 8018cfc: b580 push {r7, lr}
  60830. 8018cfe: b082 sub sp, #8
  60831. 8018d00: af00 add r7, sp, #0
  60832. #ifndef LWIP_SKIP_CONST_CHECK
  60833. int a = 0;
  60834. 8018d02: 2300 movs r3, #0
  60835. 8018d04: 607b str r3, [r7, #4]
  60836. #endif
  60837. /* Modules initialization */
  60838. stats_init();
  60839. #if !NO_SYS
  60840. sys_init();
  60841. 8018d06: f00d fb75 bl 80263f4 <sys_init>
  60842. #endif /* !NO_SYS */
  60843. mem_init();
  60844. 8018d0a: f000 f8d3 bl 8018eb4 <mem_init>
  60845. memp_init();
  60846. 8018d0e: f000 fc1b bl 8019548 <memp_init>
  60847. pbuf_init();
  60848. netif_init();
  60849. 8018d12: f000 fd27 bl 8019764 <netif_init>
  60850. #endif /* LWIP_IPV4 */
  60851. #if LWIP_RAW
  60852. raw_init();
  60853. #endif /* LWIP_RAW */
  60854. #if LWIP_UDP
  60855. udp_init();
  60856. 8018d16: f008 f8db bl 8020ed0 <udp_init>
  60857. #endif /* LWIP_UDP */
  60858. #if LWIP_TCP
  60859. tcp_init();
  60860. 8018d1a: f001 fe91 bl 801aa40 <tcp_init>
  60861. #if PPP_SUPPORT
  60862. ppp_init();
  60863. #endif
  60864. #if LWIP_TIMERS
  60865. sys_timeouts_init();
  60866. 8018d1e: f008 f817 bl 8020d50 <sys_timeouts_init>
  60867. #endif /* LWIP_TIMERS */
  60868. }
  60869. 8018d22: bf00 nop
  60870. 8018d24: 3708 adds r7, #8
  60871. 8018d26: 46bd mov sp, r7
  60872. 8018d28: bd80 pop {r7, pc}
  60873. ...
  60874. 08018d2c <ptr_to_mem>:
  60875. #define mem_overflow_check_element(mem)
  60876. #endif /* MEM_OVERFLOW_CHECK */
  60877. static struct mem *
  60878. ptr_to_mem(mem_size_t ptr)
  60879. {
  60880. 8018d2c: b480 push {r7}
  60881. 8018d2e: b083 sub sp, #12
  60882. 8018d30: af00 add r7, sp, #0
  60883. 8018d32: 6078 str r0, [r7, #4]
  60884. return (struct mem *)(void *)&ram[ptr];
  60885. 8018d34: 4b04 ldr r3, [pc, #16] @ (8018d48 <ptr_to_mem+0x1c>)
  60886. 8018d36: 681a ldr r2, [r3, #0]
  60887. 8018d38: 687b ldr r3, [r7, #4]
  60888. 8018d3a: 4413 add r3, r2
  60889. }
  60890. 8018d3c: 4618 mov r0, r3
  60891. 8018d3e: 370c adds r7, #12
  60892. 8018d40: 46bd mov sp, r7
  60893. 8018d42: f85d 7b04 ldr.w r7, [sp], #4
  60894. 8018d46: 4770 bx lr
  60895. 8018d48: 24024350 .word 0x24024350
  60896. 08018d4c <mem_to_ptr>:
  60897. static mem_size_t
  60898. mem_to_ptr(void *mem)
  60899. {
  60900. 8018d4c: b480 push {r7}
  60901. 8018d4e: b083 sub sp, #12
  60902. 8018d50: af00 add r7, sp, #0
  60903. 8018d52: 6078 str r0, [r7, #4]
  60904. return (mem_size_t)((u8_t *)mem - ram);
  60905. 8018d54: 4b04 ldr r3, [pc, #16] @ (8018d68 <mem_to_ptr+0x1c>)
  60906. 8018d56: 681b ldr r3, [r3, #0]
  60907. 8018d58: 687a ldr r2, [r7, #4]
  60908. 8018d5a: 1ad3 subs r3, r2, r3
  60909. }
  60910. 8018d5c: 4618 mov r0, r3
  60911. 8018d5e: 370c adds r7, #12
  60912. 8018d60: 46bd mov sp, r7
  60913. 8018d62: f85d 7b04 ldr.w r7, [sp], #4
  60914. 8018d66: 4770 bx lr
  60915. 8018d68: 24024350 .word 0x24024350
  60916. 08018d6c <plug_holes>:
  60917. * This assumes access to the heap is protected by the calling function
  60918. * already.
  60919. */
  60920. static void
  60921. plug_holes(struct mem *mem)
  60922. {
  60923. 8018d6c: b590 push {r4, r7, lr}
  60924. 8018d6e: b085 sub sp, #20
  60925. 8018d70: af00 add r7, sp, #0
  60926. 8018d72: 6078 str r0, [r7, #4]
  60927. struct mem *nmem;
  60928. struct mem *pmem;
  60929. LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram);
  60930. 8018d74: 4b45 ldr r3, [pc, #276] @ (8018e8c <plug_holes+0x120>)
  60931. 8018d76: 681b ldr r3, [r3, #0]
  60932. 8018d78: 687a ldr r2, [r7, #4]
  60933. 8018d7a: 429a cmp r2, r3
  60934. 8018d7c: d206 bcs.n 8018d8c <plug_holes+0x20>
  60935. 8018d7e: 4b44 ldr r3, [pc, #272] @ (8018e90 <plug_holes+0x124>)
  60936. 8018d80: f240 12df movw r2, #479 @ 0x1df
  60937. 8018d84: 4943 ldr r1, [pc, #268] @ (8018e94 <plug_holes+0x128>)
  60938. 8018d86: 4844 ldr r0, [pc, #272] @ (8018e98 <plug_holes+0x12c>)
  60939. 8018d88: f010 fe28 bl 80299dc <iprintf>
  60940. LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end);
  60941. 8018d8c: 4b43 ldr r3, [pc, #268] @ (8018e9c <plug_holes+0x130>)
  60942. 8018d8e: 681b ldr r3, [r3, #0]
  60943. 8018d90: 687a ldr r2, [r7, #4]
  60944. 8018d92: 429a cmp r2, r3
  60945. 8018d94: d306 bcc.n 8018da4 <plug_holes+0x38>
  60946. 8018d96: 4b3e ldr r3, [pc, #248] @ (8018e90 <plug_holes+0x124>)
  60947. 8018d98: f44f 72f0 mov.w r2, #480 @ 0x1e0
  60948. 8018d9c: 4940 ldr r1, [pc, #256] @ (8018ea0 <plug_holes+0x134>)
  60949. 8018d9e: 483e ldr r0, [pc, #248] @ (8018e98 <plug_holes+0x12c>)
  60950. 8018da0: f010 fe1c bl 80299dc <iprintf>
  60951. LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0);
  60952. 8018da4: 687b ldr r3, [r7, #4]
  60953. 8018da6: 7a1b ldrb r3, [r3, #8]
  60954. 8018da8: 2b00 cmp r3, #0
  60955. 8018daa: d006 beq.n 8018dba <plug_holes+0x4e>
  60956. 8018dac: 4b38 ldr r3, [pc, #224] @ (8018e90 <plug_holes+0x124>)
  60957. 8018dae: f240 12e1 movw r2, #481 @ 0x1e1
  60958. 8018db2: 493c ldr r1, [pc, #240] @ (8018ea4 <plug_holes+0x138>)
  60959. 8018db4: 4838 ldr r0, [pc, #224] @ (8018e98 <plug_holes+0x12c>)
  60960. 8018db6: f010 fe11 bl 80299dc <iprintf>
  60961. /* plug hole forward */
  60962. LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED);
  60963. 8018dba: 687b ldr r3, [r7, #4]
  60964. 8018dbc: 681b ldr r3, [r3, #0]
  60965. 8018dbe: 4a3a ldr r2, [pc, #232] @ (8018ea8 <plug_holes+0x13c>)
  60966. 8018dc0: 4293 cmp r3, r2
  60967. 8018dc2: d906 bls.n 8018dd2 <plug_holes+0x66>
  60968. 8018dc4: 4b32 ldr r3, [pc, #200] @ (8018e90 <plug_holes+0x124>)
  60969. 8018dc6: f44f 72f2 mov.w r2, #484 @ 0x1e4
  60970. 8018dca: 4938 ldr r1, [pc, #224] @ (8018eac <plug_holes+0x140>)
  60971. 8018dcc: 4832 ldr r0, [pc, #200] @ (8018e98 <plug_holes+0x12c>)
  60972. 8018dce: f010 fe05 bl 80299dc <iprintf>
  60973. nmem = ptr_to_mem(mem->next);
  60974. 8018dd2: 687b ldr r3, [r7, #4]
  60975. 8018dd4: 681b ldr r3, [r3, #0]
  60976. 8018dd6: 4618 mov r0, r3
  60977. 8018dd8: f7ff ffa8 bl 8018d2c <ptr_to_mem>
  60978. 8018ddc: 60f8 str r0, [r7, #12]
  60979. if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) {
  60980. 8018dde: 687a ldr r2, [r7, #4]
  60981. 8018de0: 68fb ldr r3, [r7, #12]
  60982. 8018de2: 429a cmp r2, r3
  60983. 8018de4: d024 beq.n 8018e30 <plug_holes+0xc4>
  60984. 8018de6: 68fb ldr r3, [r7, #12]
  60985. 8018de8: 7a1b ldrb r3, [r3, #8]
  60986. 8018dea: 2b00 cmp r3, #0
  60987. 8018dec: d120 bne.n 8018e30 <plug_holes+0xc4>
  60988. 8018dee: 4b2b ldr r3, [pc, #172] @ (8018e9c <plug_holes+0x130>)
  60989. 8018df0: 681b ldr r3, [r3, #0]
  60990. 8018df2: 68fa ldr r2, [r7, #12]
  60991. 8018df4: 429a cmp r2, r3
  60992. 8018df6: d01b beq.n 8018e30 <plug_holes+0xc4>
  60993. /* if mem->next is unused and not end of ram, combine mem and mem->next */
  60994. if (lfree == nmem) {
  60995. 8018df8: 4b2d ldr r3, [pc, #180] @ (8018eb0 <plug_holes+0x144>)
  60996. 8018dfa: 681b ldr r3, [r3, #0]
  60997. 8018dfc: 68fa ldr r2, [r7, #12]
  60998. 8018dfe: 429a cmp r2, r3
  60999. 8018e00: d102 bne.n 8018e08 <plug_holes+0x9c>
  61000. lfree = mem;
  61001. 8018e02: 4a2b ldr r2, [pc, #172] @ (8018eb0 <plug_holes+0x144>)
  61002. 8018e04: 687b ldr r3, [r7, #4]
  61003. 8018e06: 6013 str r3, [r2, #0]
  61004. }
  61005. mem->next = nmem->next;
  61006. 8018e08: 68fb ldr r3, [r7, #12]
  61007. 8018e0a: 681a ldr r2, [r3, #0]
  61008. 8018e0c: 687b ldr r3, [r7, #4]
  61009. 8018e0e: 601a str r2, [r3, #0]
  61010. if (nmem->next != MEM_SIZE_ALIGNED) {
  61011. 8018e10: 68fb ldr r3, [r7, #12]
  61012. 8018e12: 681b ldr r3, [r3, #0]
  61013. 8018e14: 4a24 ldr r2, [pc, #144] @ (8018ea8 <plug_holes+0x13c>)
  61014. 8018e16: 4293 cmp r3, r2
  61015. 8018e18: d00a beq.n 8018e30 <plug_holes+0xc4>
  61016. ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem);
  61017. 8018e1a: 68fb ldr r3, [r7, #12]
  61018. 8018e1c: 681b ldr r3, [r3, #0]
  61019. 8018e1e: 4618 mov r0, r3
  61020. 8018e20: f7ff ff84 bl 8018d2c <ptr_to_mem>
  61021. 8018e24: 4604 mov r4, r0
  61022. 8018e26: 6878 ldr r0, [r7, #4]
  61023. 8018e28: f7ff ff90 bl 8018d4c <mem_to_ptr>
  61024. 8018e2c: 4603 mov r3, r0
  61025. 8018e2e: 6063 str r3, [r4, #4]
  61026. }
  61027. }
  61028. /* plug hole backward */
  61029. pmem = ptr_to_mem(mem->prev);
  61030. 8018e30: 687b ldr r3, [r7, #4]
  61031. 8018e32: 685b ldr r3, [r3, #4]
  61032. 8018e34: 4618 mov r0, r3
  61033. 8018e36: f7ff ff79 bl 8018d2c <ptr_to_mem>
  61034. 8018e3a: 60b8 str r0, [r7, #8]
  61035. if (pmem != mem && pmem->used == 0) {
  61036. 8018e3c: 68ba ldr r2, [r7, #8]
  61037. 8018e3e: 687b ldr r3, [r7, #4]
  61038. 8018e40: 429a cmp r2, r3
  61039. 8018e42: d01f beq.n 8018e84 <plug_holes+0x118>
  61040. 8018e44: 68bb ldr r3, [r7, #8]
  61041. 8018e46: 7a1b ldrb r3, [r3, #8]
  61042. 8018e48: 2b00 cmp r3, #0
  61043. 8018e4a: d11b bne.n 8018e84 <plug_holes+0x118>
  61044. /* if mem->prev is unused, combine mem and mem->prev */
  61045. if (lfree == mem) {
  61046. 8018e4c: 4b18 ldr r3, [pc, #96] @ (8018eb0 <plug_holes+0x144>)
  61047. 8018e4e: 681b ldr r3, [r3, #0]
  61048. 8018e50: 687a ldr r2, [r7, #4]
  61049. 8018e52: 429a cmp r2, r3
  61050. 8018e54: d102 bne.n 8018e5c <plug_holes+0xf0>
  61051. lfree = pmem;
  61052. 8018e56: 4a16 ldr r2, [pc, #88] @ (8018eb0 <plug_holes+0x144>)
  61053. 8018e58: 68bb ldr r3, [r7, #8]
  61054. 8018e5a: 6013 str r3, [r2, #0]
  61055. }
  61056. pmem->next = mem->next;
  61057. 8018e5c: 687b ldr r3, [r7, #4]
  61058. 8018e5e: 681a ldr r2, [r3, #0]
  61059. 8018e60: 68bb ldr r3, [r7, #8]
  61060. 8018e62: 601a str r2, [r3, #0]
  61061. if (mem->next != MEM_SIZE_ALIGNED) {
  61062. 8018e64: 687b ldr r3, [r7, #4]
  61063. 8018e66: 681b ldr r3, [r3, #0]
  61064. 8018e68: 4a0f ldr r2, [pc, #60] @ (8018ea8 <plug_holes+0x13c>)
  61065. 8018e6a: 4293 cmp r3, r2
  61066. 8018e6c: d00a beq.n 8018e84 <plug_holes+0x118>
  61067. ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem);
  61068. 8018e6e: 687b ldr r3, [r7, #4]
  61069. 8018e70: 681b ldr r3, [r3, #0]
  61070. 8018e72: 4618 mov r0, r3
  61071. 8018e74: f7ff ff5a bl 8018d2c <ptr_to_mem>
  61072. 8018e78: 4604 mov r4, r0
  61073. 8018e7a: 68b8 ldr r0, [r7, #8]
  61074. 8018e7c: f7ff ff66 bl 8018d4c <mem_to_ptr>
  61075. 8018e80: 4603 mov r3, r0
  61076. 8018e82: 6063 str r3, [r4, #4]
  61077. }
  61078. }
  61079. }
  61080. 8018e84: bf00 nop
  61081. 8018e86: 3714 adds r7, #20
  61082. 8018e88: 46bd mov sp, r7
  61083. 8018e8a: bd90 pop {r4, r7, pc}
  61084. 8018e8c: 24024350 .word 0x24024350
  61085. 8018e90: 0802dac4 .word 0x0802dac4
  61086. 8018e94: 0802daf4 .word 0x0802daf4
  61087. 8018e98: 0802db0c .word 0x0802db0c
  61088. 8018e9c: 24024354 .word 0x24024354
  61089. 8018ea0: 0802db34 .word 0x0802db34
  61090. 8018ea4: 0802db50 .word 0x0802db50
  61091. 8018ea8: 0001ffe8 .word 0x0001ffe8
  61092. 8018eac: 0802db6c .word 0x0802db6c
  61093. 8018eb0: 2402435c .word 0x2402435c
  61094. 08018eb4 <mem_init>:
  61095. /**
  61096. * Zero the heap and initialize start, end and lowest-free
  61097. */
  61098. void
  61099. mem_init(void)
  61100. {
  61101. 8018eb4: b580 push {r7, lr}
  61102. 8018eb6: b082 sub sp, #8
  61103. 8018eb8: af00 add r7, sp, #0
  61104. LWIP_ASSERT("Sanity check alignment",
  61105. (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT - 1)) == 0);
  61106. /* align the heap */
  61107. ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER);
  61108. 8018eba: 4b1b ldr r3, [pc, #108] @ (8018f28 <mem_init+0x74>)
  61109. 8018ebc: 4a1b ldr r2, [pc, #108] @ (8018f2c <mem_init+0x78>)
  61110. 8018ebe: 601a str r2, [r3, #0]
  61111. /* initialize the start of the heap */
  61112. mem = (struct mem *)(void *)ram;
  61113. 8018ec0: 4b19 ldr r3, [pc, #100] @ (8018f28 <mem_init+0x74>)
  61114. 8018ec2: 681b ldr r3, [r3, #0]
  61115. 8018ec4: 607b str r3, [r7, #4]
  61116. mem->next = MEM_SIZE_ALIGNED;
  61117. 8018ec6: 687b ldr r3, [r7, #4]
  61118. 8018ec8: 4a19 ldr r2, [pc, #100] @ (8018f30 <mem_init+0x7c>)
  61119. 8018eca: 601a str r2, [r3, #0]
  61120. mem->prev = 0;
  61121. 8018ecc: 687b ldr r3, [r7, #4]
  61122. 8018ece: 2200 movs r2, #0
  61123. 8018ed0: 605a str r2, [r3, #4]
  61124. mem->used = 0;
  61125. 8018ed2: 687b ldr r3, [r7, #4]
  61126. 8018ed4: 2200 movs r2, #0
  61127. 8018ed6: 721a strb r2, [r3, #8]
  61128. /* initialize the end of the heap */
  61129. ram_end = ptr_to_mem(MEM_SIZE_ALIGNED);
  61130. 8018ed8: 4815 ldr r0, [pc, #84] @ (8018f30 <mem_init+0x7c>)
  61131. 8018eda: f7ff ff27 bl 8018d2c <ptr_to_mem>
  61132. 8018ede: 4603 mov r3, r0
  61133. 8018ee0: 4a14 ldr r2, [pc, #80] @ (8018f34 <mem_init+0x80>)
  61134. 8018ee2: 6013 str r3, [r2, #0]
  61135. ram_end->used = 1;
  61136. 8018ee4: 4b13 ldr r3, [pc, #76] @ (8018f34 <mem_init+0x80>)
  61137. 8018ee6: 681b ldr r3, [r3, #0]
  61138. 8018ee8: 2201 movs r2, #1
  61139. 8018eea: 721a strb r2, [r3, #8]
  61140. ram_end->next = MEM_SIZE_ALIGNED;
  61141. 8018eec: 4b11 ldr r3, [pc, #68] @ (8018f34 <mem_init+0x80>)
  61142. 8018eee: 681b ldr r3, [r3, #0]
  61143. 8018ef0: 4a0f ldr r2, [pc, #60] @ (8018f30 <mem_init+0x7c>)
  61144. 8018ef2: 601a str r2, [r3, #0]
  61145. ram_end->prev = MEM_SIZE_ALIGNED;
  61146. 8018ef4: 4b0f ldr r3, [pc, #60] @ (8018f34 <mem_init+0x80>)
  61147. 8018ef6: 681b ldr r3, [r3, #0]
  61148. 8018ef8: 4a0d ldr r2, [pc, #52] @ (8018f30 <mem_init+0x7c>)
  61149. 8018efa: 605a str r2, [r3, #4]
  61150. MEM_SANITY();
  61151. /* initialize the lowest-free pointer to the start of the heap */
  61152. lfree = (struct mem *)(void *)ram;
  61153. 8018efc: 4b0a ldr r3, [pc, #40] @ (8018f28 <mem_init+0x74>)
  61154. 8018efe: 681b ldr r3, [r3, #0]
  61155. 8018f00: 4a0d ldr r2, [pc, #52] @ (8018f38 <mem_init+0x84>)
  61156. 8018f02: 6013 str r3, [r2, #0]
  61157. MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED);
  61158. if (sys_mutex_new(&mem_mutex) != ERR_OK) {
  61159. 8018f04: 480d ldr r0, [pc, #52] @ (8018f3c <mem_init+0x88>)
  61160. 8018f06: f00d fa81 bl 802640c <sys_mutex_new>
  61161. 8018f0a: 4603 mov r3, r0
  61162. 8018f0c: 2b00 cmp r3, #0
  61163. 8018f0e: d006 beq.n 8018f1e <mem_init+0x6a>
  61164. LWIP_ASSERT("failed to create mem_mutex", 0);
  61165. 8018f10: 4b0b ldr r3, [pc, #44] @ (8018f40 <mem_init+0x8c>)
  61166. 8018f12: f240 221f movw r2, #543 @ 0x21f
  61167. 8018f16: 490b ldr r1, [pc, #44] @ (8018f44 <mem_init+0x90>)
  61168. 8018f18: 480b ldr r0, [pc, #44] @ (8018f48 <mem_init+0x94>)
  61169. 8018f1a: f010 fd5f bl 80299dc <iprintf>
  61170. }
  61171. }
  61172. 8018f1e: bf00 nop
  61173. 8018f20: 3708 adds r7, #8
  61174. 8018f22: 46bd mov sp, r7
  61175. 8018f24: bd80 pop {r7, pc}
  61176. 8018f26: bf00 nop
  61177. 8018f28: 24024350 .word 0x24024350
  61178. 8018f2c: 24020000 .word 0x24020000
  61179. 8018f30: 0001ffe8 .word 0x0001ffe8
  61180. 8018f34: 24024354 .word 0x24024354
  61181. 8018f38: 2402435c .word 0x2402435c
  61182. 8018f3c: 24024358 .word 0x24024358
  61183. 8018f40: 0802dac4 .word 0x0802dac4
  61184. 8018f44: 0802db98 .word 0x0802db98
  61185. 8018f48: 0802db0c .word 0x0802db0c
  61186. 08018f4c <mem_link_valid>:
  61187. /* Check if a struct mem is correctly linked.
  61188. * If not, double-free is a possible reason.
  61189. */
  61190. static int
  61191. mem_link_valid(struct mem *mem)
  61192. {
  61193. 8018f4c: b580 push {r7, lr}
  61194. 8018f4e: b086 sub sp, #24
  61195. 8018f50: af00 add r7, sp, #0
  61196. 8018f52: 6078 str r0, [r7, #4]
  61197. struct mem *nmem, *pmem;
  61198. mem_size_t rmem_idx;
  61199. rmem_idx = mem_to_ptr(mem);
  61200. 8018f54: 6878 ldr r0, [r7, #4]
  61201. 8018f56: f7ff fef9 bl 8018d4c <mem_to_ptr>
  61202. 8018f5a: 6178 str r0, [r7, #20]
  61203. nmem = ptr_to_mem(mem->next);
  61204. 8018f5c: 687b ldr r3, [r7, #4]
  61205. 8018f5e: 681b ldr r3, [r3, #0]
  61206. 8018f60: 4618 mov r0, r3
  61207. 8018f62: f7ff fee3 bl 8018d2c <ptr_to_mem>
  61208. 8018f66: 6138 str r0, [r7, #16]
  61209. pmem = ptr_to_mem(mem->prev);
  61210. 8018f68: 687b ldr r3, [r7, #4]
  61211. 8018f6a: 685b ldr r3, [r3, #4]
  61212. 8018f6c: 4618 mov r0, r3
  61213. 8018f6e: f7ff fedd bl 8018d2c <ptr_to_mem>
  61214. 8018f72: 60f8 str r0, [r7, #12]
  61215. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  61216. 8018f74: 687b ldr r3, [r7, #4]
  61217. 8018f76: 681b ldr r3, [r3, #0]
  61218. 8018f78: 4a11 ldr r2, [pc, #68] @ (8018fc0 <mem_link_valid+0x74>)
  61219. 8018f7a: 4293 cmp r3, r2
  61220. 8018f7c: d818 bhi.n 8018fb0 <mem_link_valid+0x64>
  61221. 8018f7e: 687b ldr r3, [r7, #4]
  61222. 8018f80: 685b ldr r3, [r3, #4]
  61223. 8018f82: 4a0f ldr r2, [pc, #60] @ (8018fc0 <mem_link_valid+0x74>)
  61224. 8018f84: 4293 cmp r3, r2
  61225. 8018f86: d813 bhi.n 8018fb0 <mem_link_valid+0x64>
  61226. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  61227. 8018f88: 687b ldr r3, [r7, #4]
  61228. 8018f8a: 685b ldr r3, [r3, #4]
  61229. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  61230. 8018f8c: 697a ldr r2, [r7, #20]
  61231. 8018f8e: 429a cmp r2, r3
  61232. 8018f90: d004 beq.n 8018f9c <mem_link_valid+0x50>
  61233. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  61234. 8018f92: 68fb ldr r3, [r7, #12]
  61235. 8018f94: 681b ldr r3, [r3, #0]
  61236. 8018f96: 697a ldr r2, [r7, #20]
  61237. 8018f98: 429a cmp r2, r3
  61238. 8018f9a: d109 bne.n 8018fb0 <mem_link_valid+0x64>
  61239. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  61240. 8018f9c: 4b09 ldr r3, [pc, #36] @ (8018fc4 <mem_link_valid+0x78>)
  61241. 8018f9e: 681b ldr r3, [r3, #0]
  61242. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  61243. 8018fa0: 693a ldr r2, [r7, #16]
  61244. 8018fa2: 429a cmp r2, r3
  61245. 8018fa4: d006 beq.n 8018fb4 <mem_link_valid+0x68>
  61246. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  61247. 8018fa6: 693b ldr r3, [r7, #16]
  61248. 8018fa8: 685b ldr r3, [r3, #4]
  61249. 8018faa: 697a ldr r2, [r7, #20]
  61250. 8018fac: 429a cmp r2, r3
  61251. 8018fae: d001 beq.n 8018fb4 <mem_link_valid+0x68>
  61252. return 0;
  61253. 8018fb0: 2300 movs r3, #0
  61254. 8018fb2: e000 b.n 8018fb6 <mem_link_valid+0x6a>
  61255. }
  61256. return 1;
  61257. 8018fb4: 2301 movs r3, #1
  61258. }
  61259. 8018fb6: 4618 mov r0, r3
  61260. 8018fb8: 3718 adds r7, #24
  61261. 8018fba: 46bd mov sp, r7
  61262. 8018fbc: bd80 pop {r7, pc}
  61263. 8018fbe: bf00 nop
  61264. 8018fc0: 0001ffe8 .word 0x0001ffe8
  61265. 8018fc4: 24024354 .word 0x24024354
  61266. 08018fc8 <mem_free>:
  61267. * @param rmem is the data portion of a struct mem as returned by a previous
  61268. * call to mem_malloc()
  61269. */
  61270. void
  61271. mem_free(void *rmem)
  61272. {
  61273. 8018fc8: b580 push {r7, lr}
  61274. 8018fca: b088 sub sp, #32
  61275. 8018fcc: af00 add r7, sp, #0
  61276. 8018fce: 6078 str r0, [r7, #4]
  61277. struct mem *mem;
  61278. LWIP_MEM_FREE_DECL_PROTECT();
  61279. if (rmem == NULL) {
  61280. 8018fd0: 687b ldr r3, [r7, #4]
  61281. 8018fd2: 2b00 cmp r3, #0
  61282. 8018fd4: d070 beq.n 80190b8 <mem_free+0xf0>
  61283. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n"));
  61284. return;
  61285. }
  61286. if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) {
  61287. 8018fd6: 687b ldr r3, [r7, #4]
  61288. 8018fd8: f003 0303 and.w r3, r3, #3
  61289. 8018fdc: 2b00 cmp r3, #0
  61290. 8018fde: d00d beq.n 8018ffc <mem_free+0x34>
  61291. LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment");
  61292. 8018fe0: 4b37 ldr r3, [pc, #220] @ (80190c0 <mem_free+0xf8>)
  61293. 8018fe2: f240 2273 movw r2, #627 @ 0x273
  61294. 8018fe6: 4937 ldr r1, [pc, #220] @ (80190c4 <mem_free+0xfc>)
  61295. 8018fe8: 4837 ldr r0, [pc, #220] @ (80190c8 <mem_free+0x100>)
  61296. 8018fea: f010 fcf7 bl 80299dc <iprintf>
  61297. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n"));
  61298. /* protect mem stats from concurrent access */
  61299. MEM_STATS_INC_LOCKED(illegal);
  61300. 8018fee: f00d fa5f bl 80264b0 <sys_arch_protect>
  61301. 8018ff2: 60f8 str r0, [r7, #12]
  61302. 8018ff4: 68f8 ldr r0, [r7, #12]
  61303. 8018ff6: f00d fa69 bl 80264cc <sys_arch_unprotect>
  61304. return;
  61305. 8018ffa: e05e b.n 80190ba <mem_free+0xf2>
  61306. }
  61307. /* Get the corresponding struct mem: */
  61308. /* cast through void* to get rid of alignment warnings */
  61309. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  61310. 8018ffc: 687b ldr r3, [r7, #4]
  61311. 8018ffe: 3b0c subs r3, #12
  61312. 8019000: 61fb str r3, [r7, #28]
  61313. if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) {
  61314. 8019002: 4b32 ldr r3, [pc, #200] @ (80190cc <mem_free+0x104>)
  61315. 8019004: 681b ldr r3, [r3, #0]
  61316. 8019006: 69fa ldr r2, [r7, #28]
  61317. 8019008: 429a cmp r2, r3
  61318. 801900a: d306 bcc.n 801901a <mem_free+0x52>
  61319. 801900c: 687b ldr r3, [r7, #4]
  61320. 801900e: f103 020c add.w r2, r3, #12
  61321. 8019012: 4b2f ldr r3, [pc, #188] @ (80190d0 <mem_free+0x108>)
  61322. 8019014: 681b ldr r3, [r3, #0]
  61323. 8019016: 429a cmp r2, r3
  61324. 8019018: d90d bls.n 8019036 <mem_free+0x6e>
  61325. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory");
  61326. 801901a: 4b29 ldr r3, [pc, #164] @ (80190c0 <mem_free+0xf8>)
  61327. 801901c: f240 227f movw r2, #639 @ 0x27f
  61328. 8019020: 492c ldr r1, [pc, #176] @ (80190d4 <mem_free+0x10c>)
  61329. 8019022: 4829 ldr r0, [pc, #164] @ (80190c8 <mem_free+0x100>)
  61330. 8019024: f010 fcda bl 80299dc <iprintf>
  61331. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n"));
  61332. /* protect mem stats from concurrent access */
  61333. MEM_STATS_INC_LOCKED(illegal);
  61334. 8019028: f00d fa42 bl 80264b0 <sys_arch_protect>
  61335. 801902c: 6138 str r0, [r7, #16]
  61336. 801902e: 6938 ldr r0, [r7, #16]
  61337. 8019030: f00d fa4c bl 80264cc <sys_arch_unprotect>
  61338. return;
  61339. 8019034: e041 b.n 80190ba <mem_free+0xf2>
  61340. }
  61341. #if MEM_OVERFLOW_CHECK
  61342. mem_overflow_check_element(mem);
  61343. #endif
  61344. /* protect the heap from concurrent access */
  61345. LWIP_MEM_FREE_PROTECT();
  61346. 8019036: 4828 ldr r0, [pc, #160] @ (80190d8 <mem_free+0x110>)
  61347. 8019038: f00d f9fe bl 8026438 <sys_mutex_lock>
  61348. /* mem has to be in a used state */
  61349. if (!mem->used) {
  61350. 801903c: 69fb ldr r3, [r7, #28]
  61351. 801903e: 7a1b ldrb r3, [r3, #8]
  61352. 8019040: 2b00 cmp r3, #0
  61353. 8019042: d110 bne.n 8019066 <mem_free+0x9e>
  61354. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free");
  61355. 8019044: 4b1e ldr r3, [pc, #120] @ (80190c0 <mem_free+0xf8>)
  61356. 8019046: f44f 7223 mov.w r2, #652 @ 0x28c
  61357. 801904a: 4924 ldr r1, [pc, #144] @ (80190dc <mem_free+0x114>)
  61358. 801904c: 481e ldr r0, [pc, #120] @ (80190c8 <mem_free+0x100>)
  61359. 801904e: f010 fcc5 bl 80299dc <iprintf>
  61360. LWIP_MEM_FREE_UNPROTECT();
  61361. 8019052: 4821 ldr r0, [pc, #132] @ (80190d8 <mem_free+0x110>)
  61362. 8019054: f00d f9ff bl 8026456 <sys_mutex_unlock>
  61363. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n"));
  61364. /* protect mem stats from concurrent access */
  61365. MEM_STATS_INC_LOCKED(illegal);
  61366. 8019058: f00d fa2a bl 80264b0 <sys_arch_protect>
  61367. 801905c: 6178 str r0, [r7, #20]
  61368. 801905e: 6978 ldr r0, [r7, #20]
  61369. 8019060: f00d fa34 bl 80264cc <sys_arch_unprotect>
  61370. return;
  61371. 8019064: e029 b.n 80190ba <mem_free+0xf2>
  61372. }
  61373. if (!mem_link_valid(mem)) {
  61374. 8019066: 69f8 ldr r0, [r7, #28]
  61375. 8019068: f7ff ff70 bl 8018f4c <mem_link_valid>
  61376. 801906c: 4603 mov r3, r0
  61377. 801906e: 2b00 cmp r3, #0
  61378. 8019070: d110 bne.n 8019094 <mem_free+0xcc>
  61379. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free");
  61380. 8019072: 4b13 ldr r3, [pc, #76] @ (80190c0 <mem_free+0xf8>)
  61381. 8019074: f240 2295 movw r2, #661 @ 0x295
  61382. 8019078: 4919 ldr r1, [pc, #100] @ (80190e0 <mem_free+0x118>)
  61383. 801907a: 4813 ldr r0, [pc, #76] @ (80190c8 <mem_free+0x100>)
  61384. 801907c: f010 fcae bl 80299dc <iprintf>
  61385. LWIP_MEM_FREE_UNPROTECT();
  61386. 8019080: 4815 ldr r0, [pc, #84] @ (80190d8 <mem_free+0x110>)
  61387. 8019082: f00d f9e8 bl 8026456 <sys_mutex_unlock>
  61388. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n"));
  61389. /* protect mem stats from concurrent access */
  61390. MEM_STATS_INC_LOCKED(illegal);
  61391. 8019086: f00d fa13 bl 80264b0 <sys_arch_protect>
  61392. 801908a: 61b8 str r0, [r7, #24]
  61393. 801908c: 69b8 ldr r0, [r7, #24]
  61394. 801908e: f00d fa1d bl 80264cc <sys_arch_unprotect>
  61395. return;
  61396. 8019092: e012 b.n 80190ba <mem_free+0xf2>
  61397. }
  61398. /* mem is now unused. */
  61399. mem->used = 0;
  61400. 8019094: 69fb ldr r3, [r7, #28]
  61401. 8019096: 2200 movs r2, #0
  61402. 8019098: 721a strb r2, [r3, #8]
  61403. if (mem < lfree) {
  61404. 801909a: 4b12 ldr r3, [pc, #72] @ (80190e4 <mem_free+0x11c>)
  61405. 801909c: 681b ldr r3, [r3, #0]
  61406. 801909e: 69fa ldr r2, [r7, #28]
  61407. 80190a0: 429a cmp r2, r3
  61408. 80190a2: d202 bcs.n 80190aa <mem_free+0xe2>
  61409. /* the newly freed struct is now the lowest */
  61410. lfree = mem;
  61411. 80190a4: 4a0f ldr r2, [pc, #60] @ (80190e4 <mem_free+0x11c>)
  61412. 80190a6: 69fb ldr r3, [r7, #28]
  61413. 80190a8: 6013 str r3, [r2, #0]
  61414. }
  61415. MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram)));
  61416. /* finally, see if prev or next are free also */
  61417. plug_holes(mem);
  61418. 80190aa: 69f8 ldr r0, [r7, #28]
  61419. 80190ac: f7ff fe5e bl 8018d6c <plug_holes>
  61420. MEM_SANITY();
  61421. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  61422. mem_free_count = 1;
  61423. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61424. LWIP_MEM_FREE_UNPROTECT();
  61425. 80190b0: 4809 ldr r0, [pc, #36] @ (80190d8 <mem_free+0x110>)
  61426. 80190b2: f00d f9d0 bl 8026456 <sys_mutex_unlock>
  61427. 80190b6: e000 b.n 80190ba <mem_free+0xf2>
  61428. return;
  61429. 80190b8: bf00 nop
  61430. }
  61431. 80190ba: 3720 adds r7, #32
  61432. 80190bc: 46bd mov sp, r7
  61433. 80190be: bd80 pop {r7, pc}
  61434. 80190c0: 0802dac4 .word 0x0802dac4
  61435. 80190c4: 0802dbb4 .word 0x0802dbb4
  61436. 80190c8: 0802db0c .word 0x0802db0c
  61437. 80190cc: 24024350 .word 0x24024350
  61438. 80190d0: 24024354 .word 0x24024354
  61439. 80190d4: 0802dbd8 .word 0x0802dbd8
  61440. 80190d8: 24024358 .word 0x24024358
  61441. 80190dc: 0802dbf4 .word 0x0802dbf4
  61442. 80190e0: 0802dc1c .word 0x0802dc1c
  61443. 80190e4: 2402435c .word 0x2402435c
  61444. 080190e8 <mem_trim>:
  61445. * or NULL if newsize is > old size, in which case rmem is NOT touched
  61446. * or freed!
  61447. */
  61448. void *
  61449. mem_trim(void *rmem, mem_size_t new_size)
  61450. {
  61451. 80190e8: b580 push {r7, lr}
  61452. 80190ea: b08a sub sp, #40 @ 0x28
  61453. 80190ec: af00 add r7, sp, #0
  61454. 80190ee: 6078 str r0, [r7, #4]
  61455. 80190f0: 6039 str r1, [r7, #0]
  61456. /* use the FREE_PROTECT here: it protects with sem OR SYS_ARCH_PROTECT */
  61457. LWIP_MEM_FREE_DECL_PROTECT();
  61458. /* Expand the size of the allocated memory region so that we can
  61459. adjust for alignment. */
  61460. newsize = (mem_size_t)LWIP_MEM_ALIGN_SIZE(new_size);
  61461. 80190f2: 683b ldr r3, [r7, #0]
  61462. 80190f4: 3303 adds r3, #3
  61463. 80190f6: f023 0303 bic.w r3, r3, #3
  61464. 80190fa: 627b str r3, [r7, #36] @ 0x24
  61465. if (newsize < MIN_SIZE_ALIGNED) {
  61466. 80190fc: 6a7b ldr r3, [r7, #36] @ 0x24
  61467. 80190fe: 2b0b cmp r3, #11
  61468. 8019100: d801 bhi.n 8019106 <mem_trim+0x1e>
  61469. /* every data block must be at least MIN_SIZE_ALIGNED long */
  61470. newsize = MIN_SIZE_ALIGNED;
  61471. 8019102: 230c movs r3, #12
  61472. 8019104: 627b str r3, [r7, #36] @ 0x24
  61473. }
  61474. #if MEM_OVERFLOW_CHECK
  61475. newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  61476. #endif
  61477. if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) {
  61478. 8019106: 6a7b ldr r3, [r7, #36] @ 0x24
  61479. 8019108: 4a6e ldr r2, [pc, #440] @ (80192c4 <mem_trim+0x1dc>)
  61480. 801910a: 4293 cmp r3, r2
  61481. 801910c: d803 bhi.n 8019116 <mem_trim+0x2e>
  61482. 801910e: 6a7a ldr r2, [r7, #36] @ 0x24
  61483. 8019110: 683b ldr r3, [r7, #0]
  61484. 8019112: 429a cmp r2, r3
  61485. 8019114: d201 bcs.n 801911a <mem_trim+0x32>
  61486. return NULL;
  61487. 8019116: 2300 movs r3, #0
  61488. 8019118: e0d0 b.n 80192bc <mem_trim+0x1d4>
  61489. }
  61490. LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram &&
  61491. 801911a: 4b6b ldr r3, [pc, #428] @ (80192c8 <mem_trim+0x1e0>)
  61492. 801911c: 681b ldr r3, [r3, #0]
  61493. 801911e: 687a ldr r2, [r7, #4]
  61494. 8019120: 429a cmp r2, r3
  61495. 8019122: d304 bcc.n 801912e <mem_trim+0x46>
  61496. 8019124: 4b69 ldr r3, [pc, #420] @ (80192cc <mem_trim+0x1e4>)
  61497. 8019126: 681b ldr r3, [r3, #0]
  61498. 8019128: 687a ldr r2, [r7, #4]
  61499. 801912a: 429a cmp r2, r3
  61500. 801912c: d306 bcc.n 801913c <mem_trim+0x54>
  61501. 801912e: 4b68 ldr r3, [pc, #416] @ (80192d0 <mem_trim+0x1e8>)
  61502. 8019130: f240 22d1 movw r2, #721 @ 0x2d1
  61503. 8019134: 4967 ldr r1, [pc, #412] @ (80192d4 <mem_trim+0x1ec>)
  61504. 8019136: 4868 ldr r0, [pc, #416] @ (80192d8 <mem_trim+0x1f0>)
  61505. 8019138: f010 fc50 bl 80299dc <iprintf>
  61506. (u8_t *)rmem < (u8_t *)ram_end);
  61507. if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {
  61508. 801913c: 4b62 ldr r3, [pc, #392] @ (80192c8 <mem_trim+0x1e0>)
  61509. 801913e: 681b ldr r3, [r3, #0]
  61510. 8019140: 687a ldr r2, [r7, #4]
  61511. 8019142: 429a cmp r2, r3
  61512. 8019144: d304 bcc.n 8019150 <mem_trim+0x68>
  61513. 8019146: 4b61 ldr r3, [pc, #388] @ (80192cc <mem_trim+0x1e4>)
  61514. 8019148: 681b ldr r3, [r3, #0]
  61515. 801914a: 687a ldr r2, [r7, #4]
  61516. 801914c: 429a cmp r2, r3
  61517. 801914e: d307 bcc.n 8019160 <mem_trim+0x78>
  61518. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n"));
  61519. /* protect mem stats from concurrent access */
  61520. MEM_STATS_INC_LOCKED(illegal);
  61521. 8019150: f00d f9ae bl 80264b0 <sys_arch_protect>
  61522. 8019154: 60b8 str r0, [r7, #8]
  61523. 8019156: 68b8 ldr r0, [r7, #8]
  61524. 8019158: f00d f9b8 bl 80264cc <sys_arch_unprotect>
  61525. return rmem;
  61526. 801915c: 687b ldr r3, [r7, #4]
  61527. 801915e: e0ad b.n 80192bc <mem_trim+0x1d4>
  61528. }
  61529. /* Get the corresponding struct mem ... */
  61530. /* cast through void* to get rid of alignment warnings */
  61531. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  61532. 8019160: 687b ldr r3, [r7, #4]
  61533. 8019162: 3b0c subs r3, #12
  61534. 8019164: 623b str r3, [r7, #32]
  61535. #if MEM_OVERFLOW_CHECK
  61536. mem_overflow_check_element(mem);
  61537. #endif
  61538. /* ... and its offset pointer */
  61539. ptr = mem_to_ptr(mem);
  61540. 8019166: 6a38 ldr r0, [r7, #32]
  61541. 8019168: f7ff fdf0 bl 8018d4c <mem_to_ptr>
  61542. 801916c: 61f8 str r0, [r7, #28]
  61543. size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD));
  61544. 801916e: 6a3b ldr r3, [r7, #32]
  61545. 8019170: 681a ldr r2, [r3, #0]
  61546. 8019172: 69fb ldr r3, [r7, #28]
  61547. 8019174: 1ad3 subs r3, r2, r3
  61548. 8019176: 3b0c subs r3, #12
  61549. 8019178: 61bb str r3, [r7, #24]
  61550. LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size);
  61551. 801917a: 6a7a ldr r2, [r7, #36] @ 0x24
  61552. 801917c: 69bb ldr r3, [r7, #24]
  61553. 801917e: 429a cmp r2, r3
  61554. 8019180: d906 bls.n 8019190 <mem_trim+0xa8>
  61555. 8019182: 4b53 ldr r3, [pc, #332] @ (80192d0 <mem_trim+0x1e8>)
  61556. 8019184: f44f 7239 mov.w r2, #740 @ 0x2e4
  61557. 8019188: 4954 ldr r1, [pc, #336] @ (80192dc <mem_trim+0x1f4>)
  61558. 801918a: 4853 ldr r0, [pc, #332] @ (80192d8 <mem_trim+0x1f0>)
  61559. 801918c: f010 fc26 bl 80299dc <iprintf>
  61560. if (newsize > size) {
  61561. 8019190: 6a7a ldr r2, [r7, #36] @ 0x24
  61562. 8019192: 69bb ldr r3, [r7, #24]
  61563. 8019194: 429a cmp r2, r3
  61564. 8019196: d901 bls.n 801919c <mem_trim+0xb4>
  61565. /* not supported */
  61566. return NULL;
  61567. 8019198: 2300 movs r3, #0
  61568. 801919a: e08f b.n 80192bc <mem_trim+0x1d4>
  61569. }
  61570. if (newsize == size) {
  61571. 801919c: 6a7a ldr r2, [r7, #36] @ 0x24
  61572. 801919e: 69bb ldr r3, [r7, #24]
  61573. 80191a0: 429a cmp r2, r3
  61574. 80191a2: d101 bne.n 80191a8 <mem_trim+0xc0>
  61575. /* No change in size, simply return */
  61576. return rmem;
  61577. 80191a4: 687b ldr r3, [r7, #4]
  61578. 80191a6: e089 b.n 80192bc <mem_trim+0x1d4>
  61579. }
  61580. /* protect the heap from concurrent access */
  61581. LWIP_MEM_FREE_PROTECT();
  61582. 80191a8: 484d ldr r0, [pc, #308] @ (80192e0 <mem_trim+0x1f8>)
  61583. 80191aa: f00d f945 bl 8026438 <sys_mutex_lock>
  61584. mem2 = ptr_to_mem(mem->next);
  61585. 80191ae: 6a3b ldr r3, [r7, #32]
  61586. 80191b0: 681b ldr r3, [r3, #0]
  61587. 80191b2: 4618 mov r0, r3
  61588. 80191b4: f7ff fdba bl 8018d2c <ptr_to_mem>
  61589. 80191b8: 6178 str r0, [r7, #20]
  61590. if (mem2->used == 0) {
  61591. 80191ba: 697b ldr r3, [r7, #20]
  61592. 80191bc: 7a1b ldrb r3, [r3, #8]
  61593. 80191be: 2b00 cmp r3, #0
  61594. 80191c0: d13c bne.n 801923c <mem_trim+0x154>
  61595. /* The next struct is unused, we can simply move it at little */
  61596. mem_size_t next;
  61597. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  61598. 80191c2: 6a3b ldr r3, [r7, #32]
  61599. 80191c4: 681b ldr r3, [r3, #0]
  61600. 80191c6: 4a3f ldr r2, [pc, #252] @ (80192c4 <mem_trim+0x1dc>)
  61601. 80191c8: 4293 cmp r3, r2
  61602. 80191ca: d106 bne.n 80191da <mem_trim+0xf2>
  61603. 80191cc: 4b40 ldr r3, [pc, #256] @ (80192d0 <mem_trim+0x1e8>)
  61604. 80191ce: f240 22f5 movw r2, #757 @ 0x2f5
  61605. 80191d2: 4944 ldr r1, [pc, #272] @ (80192e4 <mem_trim+0x1fc>)
  61606. 80191d4: 4840 ldr r0, [pc, #256] @ (80192d8 <mem_trim+0x1f0>)
  61607. 80191d6: f010 fc01 bl 80299dc <iprintf>
  61608. /* remember the old next pointer */
  61609. next = mem2->next;
  61610. 80191da: 697b ldr r3, [r7, #20]
  61611. 80191dc: 681b ldr r3, [r3, #0]
  61612. 80191de: 60fb str r3, [r7, #12]
  61613. /* create new struct mem which is moved directly after the shrinked mem */
  61614. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  61615. 80191e0: 69fa ldr r2, [r7, #28]
  61616. 80191e2: 6a7b ldr r3, [r7, #36] @ 0x24
  61617. 80191e4: 4413 add r3, r2
  61618. 80191e6: 330c adds r3, #12
  61619. 80191e8: 613b str r3, [r7, #16]
  61620. if (lfree == mem2) {
  61621. 80191ea: 4b3f ldr r3, [pc, #252] @ (80192e8 <mem_trim+0x200>)
  61622. 80191ec: 681b ldr r3, [r3, #0]
  61623. 80191ee: 697a ldr r2, [r7, #20]
  61624. 80191f0: 429a cmp r2, r3
  61625. 80191f2: d105 bne.n 8019200 <mem_trim+0x118>
  61626. lfree = ptr_to_mem(ptr2);
  61627. 80191f4: 6938 ldr r0, [r7, #16]
  61628. 80191f6: f7ff fd99 bl 8018d2c <ptr_to_mem>
  61629. 80191fa: 4603 mov r3, r0
  61630. 80191fc: 4a3a ldr r2, [pc, #232] @ (80192e8 <mem_trim+0x200>)
  61631. 80191fe: 6013 str r3, [r2, #0]
  61632. }
  61633. mem2 = ptr_to_mem(ptr2);
  61634. 8019200: 6938 ldr r0, [r7, #16]
  61635. 8019202: f7ff fd93 bl 8018d2c <ptr_to_mem>
  61636. 8019206: 6178 str r0, [r7, #20]
  61637. mem2->used = 0;
  61638. 8019208: 697b ldr r3, [r7, #20]
  61639. 801920a: 2200 movs r2, #0
  61640. 801920c: 721a strb r2, [r3, #8]
  61641. /* restore the next pointer */
  61642. mem2->next = next;
  61643. 801920e: 697b ldr r3, [r7, #20]
  61644. 8019210: 68fa ldr r2, [r7, #12]
  61645. 8019212: 601a str r2, [r3, #0]
  61646. /* link it back to mem */
  61647. mem2->prev = ptr;
  61648. 8019214: 697b ldr r3, [r7, #20]
  61649. 8019216: 69fa ldr r2, [r7, #28]
  61650. 8019218: 605a str r2, [r3, #4]
  61651. /* link mem to it */
  61652. mem->next = ptr2;
  61653. 801921a: 6a3b ldr r3, [r7, #32]
  61654. 801921c: 693a ldr r2, [r7, #16]
  61655. 801921e: 601a str r2, [r3, #0]
  61656. /* last thing to restore linked list: as we have moved mem2,
  61657. * let 'mem2->next->prev' point to mem2 again. but only if mem2->next is not
  61658. * the end of the heap */
  61659. if (mem2->next != MEM_SIZE_ALIGNED) {
  61660. 8019220: 697b ldr r3, [r7, #20]
  61661. 8019222: 681b ldr r3, [r3, #0]
  61662. 8019224: 4a27 ldr r2, [pc, #156] @ (80192c4 <mem_trim+0x1dc>)
  61663. 8019226: 4293 cmp r3, r2
  61664. 8019228: d044 beq.n 80192b4 <mem_trim+0x1cc>
  61665. ptr_to_mem(mem2->next)->prev = ptr2;
  61666. 801922a: 697b ldr r3, [r7, #20]
  61667. 801922c: 681b ldr r3, [r3, #0]
  61668. 801922e: 4618 mov r0, r3
  61669. 8019230: f7ff fd7c bl 8018d2c <ptr_to_mem>
  61670. 8019234: 4602 mov r2, r0
  61671. 8019236: 693b ldr r3, [r7, #16]
  61672. 8019238: 6053 str r3, [r2, #4]
  61673. 801923a: e03b b.n 80192b4 <mem_trim+0x1cc>
  61674. }
  61675. MEM_STATS_DEC_USED(used, (size - newsize));
  61676. /* no need to plug holes, we've already done that */
  61677. } else if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED <= size) {
  61678. 801923c: 6a7b ldr r3, [r7, #36] @ 0x24
  61679. 801923e: 3318 adds r3, #24
  61680. 8019240: 69ba ldr r2, [r7, #24]
  61681. 8019242: 429a cmp r2, r3
  61682. 8019244: d336 bcc.n 80192b4 <mem_trim+0x1cc>
  61683. * Old size ('size') must be big enough to contain at least 'newsize' plus a struct mem
  61684. * ('SIZEOF_STRUCT_MEM') with some data ('MIN_SIZE_ALIGNED').
  61685. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  61686. * region that couldn't hold data, but when mem->next gets freed,
  61687. * the 2 regions would be combined, resulting in more free memory */
  61688. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  61689. 8019246: 69fa ldr r2, [r7, #28]
  61690. 8019248: 6a7b ldr r3, [r7, #36] @ 0x24
  61691. 801924a: 4413 add r3, r2
  61692. 801924c: 330c adds r3, #12
  61693. 801924e: 613b str r3, [r7, #16]
  61694. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  61695. 8019250: 6a3b ldr r3, [r7, #32]
  61696. 8019252: 681b ldr r3, [r3, #0]
  61697. 8019254: 4a1b ldr r2, [pc, #108] @ (80192c4 <mem_trim+0x1dc>)
  61698. 8019256: 4293 cmp r3, r2
  61699. 8019258: d106 bne.n 8019268 <mem_trim+0x180>
  61700. 801925a: 4b1d ldr r3, [pc, #116] @ (80192d0 <mem_trim+0x1e8>)
  61701. 801925c: f240 3216 movw r2, #790 @ 0x316
  61702. 8019260: 4920 ldr r1, [pc, #128] @ (80192e4 <mem_trim+0x1fc>)
  61703. 8019262: 481d ldr r0, [pc, #116] @ (80192d8 <mem_trim+0x1f0>)
  61704. 8019264: f010 fbba bl 80299dc <iprintf>
  61705. mem2 = ptr_to_mem(ptr2);
  61706. 8019268: 6938 ldr r0, [r7, #16]
  61707. 801926a: f7ff fd5f bl 8018d2c <ptr_to_mem>
  61708. 801926e: 6178 str r0, [r7, #20]
  61709. if (mem2 < lfree) {
  61710. 8019270: 4b1d ldr r3, [pc, #116] @ (80192e8 <mem_trim+0x200>)
  61711. 8019272: 681b ldr r3, [r3, #0]
  61712. 8019274: 697a ldr r2, [r7, #20]
  61713. 8019276: 429a cmp r2, r3
  61714. 8019278: d202 bcs.n 8019280 <mem_trim+0x198>
  61715. lfree = mem2;
  61716. 801927a: 4a1b ldr r2, [pc, #108] @ (80192e8 <mem_trim+0x200>)
  61717. 801927c: 697b ldr r3, [r7, #20]
  61718. 801927e: 6013 str r3, [r2, #0]
  61719. }
  61720. mem2->used = 0;
  61721. 8019280: 697b ldr r3, [r7, #20]
  61722. 8019282: 2200 movs r2, #0
  61723. 8019284: 721a strb r2, [r3, #8]
  61724. mem2->next = mem->next;
  61725. 8019286: 6a3b ldr r3, [r7, #32]
  61726. 8019288: 681a ldr r2, [r3, #0]
  61727. 801928a: 697b ldr r3, [r7, #20]
  61728. 801928c: 601a str r2, [r3, #0]
  61729. mem2->prev = ptr;
  61730. 801928e: 697b ldr r3, [r7, #20]
  61731. 8019290: 69fa ldr r2, [r7, #28]
  61732. 8019292: 605a str r2, [r3, #4]
  61733. mem->next = ptr2;
  61734. 8019294: 6a3b ldr r3, [r7, #32]
  61735. 8019296: 693a ldr r2, [r7, #16]
  61736. 8019298: 601a str r2, [r3, #0]
  61737. if (mem2->next != MEM_SIZE_ALIGNED) {
  61738. 801929a: 697b ldr r3, [r7, #20]
  61739. 801929c: 681b ldr r3, [r3, #0]
  61740. 801929e: 4a09 ldr r2, [pc, #36] @ (80192c4 <mem_trim+0x1dc>)
  61741. 80192a0: 4293 cmp r3, r2
  61742. 80192a2: d007 beq.n 80192b4 <mem_trim+0x1cc>
  61743. ptr_to_mem(mem2->next)->prev = ptr2;
  61744. 80192a4: 697b ldr r3, [r7, #20]
  61745. 80192a6: 681b ldr r3, [r3, #0]
  61746. 80192a8: 4618 mov r0, r3
  61747. 80192aa: f7ff fd3f bl 8018d2c <ptr_to_mem>
  61748. 80192ae: 4602 mov r2, r0
  61749. 80192b0: 693b ldr r3, [r7, #16]
  61750. 80192b2: 6053 str r3, [r2, #4]
  61751. #endif
  61752. MEM_SANITY();
  61753. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  61754. mem_free_count = 1;
  61755. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61756. LWIP_MEM_FREE_UNPROTECT();
  61757. 80192b4: 480a ldr r0, [pc, #40] @ (80192e0 <mem_trim+0x1f8>)
  61758. 80192b6: f00d f8ce bl 8026456 <sys_mutex_unlock>
  61759. return rmem;
  61760. 80192ba: 687b ldr r3, [r7, #4]
  61761. }
  61762. 80192bc: 4618 mov r0, r3
  61763. 80192be: 3728 adds r7, #40 @ 0x28
  61764. 80192c0: 46bd mov sp, r7
  61765. 80192c2: bd80 pop {r7, pc}
  61766. 80192c4: 0001ffe8 .word 0x0001ffe8
  61767. 80192c8: 24024350 .word 0x24024350
  61768. 80192cc: 24024354 .word 0x24024354
  61769. 80192d0: 0802dac4 .word 0x0802dac4
  61770. 80192d4: 0802dc50 .word 0x0802dc50
  61771. 80192d8: 0802db0c .word 0x0802db0c
  61772. 80192dc: 0802dc68 .word 0x0802dc68
  61773. 80192e0: 24024358 .word 0x24024358
  61774. 80192e4: 0802dc88 .word 0x0802dc88
  61775. 80192e8: 2402435c .word 0x2402435c
  61776. 080192ec <mem_malloc>:
  61777. *
  61778. * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT).
  61779. */
  61780. void *
  61781. mem_malloc(mem_size_t size_in)
  61782. {
  61783. 80192ec: b580 push {r7, lr}
  61784. 80192ee: b088 sub sp, #32
  61785. 80192f0: af00 add r7, sp, #0
  61786. 80192f2: 6078 str r0, [r7, #4]
  61787. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  61788. u8_t local_mem_free_count = 0;
  61789. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61790. LWIP_MEM_ALLOC_DECL_PROTECT();
  61791. if (size_in == 0) {
  61792. 80192f4: 687b ldr r3, [r7, #4]
  61793. 80192f6: 2b00 cmp r3, #0
  61794. 80192f8: d101 bne.n 80192fe <mem_malloc+0x12>
  61795. return NULL;
  61796. 80192fa: 2300 movs r3, #0
  61797. 80192fc: e0d9 b.n 80194b2 <mem_malloc+0x1c6>
  61798. }
  61799. /* Expand the size of the allocated memory region so that we can
  61800. adjust for alignment. */
  61801. size = (mem_size_t)LWIP_MEM_ALIGN_SIZE(size_in);
  61802. 80192fe: 687b ldr r3, [r7, #4]
  61803. 8019300: 3303 adds r3, #3
  61804. 8019302: f023 0303 bic.w r3, r3, #3
  61805. 8019306: 61bb str r3, [r7, #24]
  61806. if (size < MIN_SIZE_ALIGNED) {
  61807. 8019308: 69bb ldr r3, [r7, #24]
  61808. 801930a: 2b0b cmp r3, #11
  61809. 801930c: d801 bhi.n 8019312 <mem_malloc+0x26>
  61810. /* every data block must be at least MIN_SIZE_ALIGNED long */
  61811. size = MIN_SIZE_ALIGNED;
  61812. 801930e: 230c movs r3, #12
  61813. 8019310: 61bb str r3, [r7, #24]
  61814. }
  61815. #if MEM_OVERFLOW_CHECK
  61816. size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  61817. #endif
  61818. if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) {
  61819. 8019312: 69bb ldr r3, [r7, #24]
  61820. 8019314: 4a69 ldr r2, [pc, #420] @ (80194bc <mem_malloc+0x1d0>)
  61821. 8019316: 4293 cmp r3, r2
  61822. 8019318: d803 bhi.n 8019322 <mem_malloc+0x36>
  61823. 801931a: 69ba ldr r2, [r7, #24]
  61824. 801931c: 687b ldr r3, [r7, #4]
  61825. 801931e: 429a cmp r2, r3
  61826. 8019320: d201 bcs.n 8019326 <mem_malloc+0x3a>
  61827. return NULL;
  61828. 8019322: 2300 movs r3, #0
  61829. 8019324: e0c5 b.n 80194b2 <mem_malloc+0x1c6>
  61830. }
  61831. /* protect the heap from concurrent access */
  61832. sys_mutex_lock(&mem_mutex);
  61833. 8019326: 4866 ldr r0, [pc, #408] @ (80194c0 <mem_malloc+0x1d4>)
  61834. 8019328: f00d f886 bl 8026438 <sys_mutex_lock>
  61835. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61836. /* Scan through the heap searching for a free block that is big enough,
  61837. * beginning with the lowest free block.
  61838. */
  61839. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  61840. 801932c: 4b65 ldr r3, [pc, #404] @ (80194c4 <mem_malloc+0x1d8>)
  61841. 801932e: 681b ldr r3, [r3, #0]
  61842. 8019330: 4618 mov r0, r3
  61843. 8019332: f7ff fd0b bl 8018d4c <mem_to_ptr>
  61844. 8019336: 61f8 str r0, [r7, #28]
  61845. 8019338: e0b0 b.n 801949c <mem_malloc+0x1b0>
  61846. ptr = ptr_to_mem(ptr)->next) {
  61847. mem = ptr_to_mem(ptr);
  61848. 801933a: 69f8 ldr r0, [r7, #28]
  61849. 801933c: f7ff fcf6 bl 8018d2c <ptr_to_mem>
  61850. 8019340: 6138 str r0, [r7, #16]
  61851. local_mem_free_count = 1;
  61852. break;
  61853. }
  61854. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61855. if ((!mem->used) &&
  61856. 8019342: 693b ldr r3, [r7, #16]
  61857. 8019344: 7a1b ldrb r3, [r3, #8]
  61858. 8019346: 2b00 cmp r3, #0
  61859. 8019348: f040 80a2 bne.w 8019490 <mem_malloc+0x1a4>
  61860. (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) {
  61861. 801934c: 693b ldr r3, [r7, #16]
  61862. 801934e: 681a ldr r2, [r3, #0]
  61863. 8019350: 69fb ldr r3, [r7, #28]
  61864. 8019352: 1ad3 subs r3, r2, r3
  61865. 8019354: 3b0c subs r3, #12
  61866. if ((!mem->used) &&
  61867. 8019356: 69ba ldr r2, [r7, #24]
  61868. 8019358: 429a cmp r2, r3
  61869. 801935a: f200 8099 bhi.w 8019490 <mem_malloc+0x1a4>
  61870. /* mem is not used and at least perfect fit is possible:
  61871. * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */
  61872. if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) {
  61873. 801935e: 693b ldr r3, [r7, #16]
  61874. 8019360: 681a ldr r2, [r3, #0]
  61875. 8019362: 69fb ldr r3, [r7, #28]
  61876. 8019364: 1ad3 subs r3, r2, r3
  61877. 8019366: f1a3 020c sub.w r2, r3, #12
  61878. 801936a: 69bb ldr r3, [r7, #24]
  61879. 801936c: 3318 adds r3, #24
  61880. 801936e: 429a cmp r2, r3
  61881. 8019370: d331 bcc.n 80193d6 <mem_malloc+0xea>
  61882. * struct mem would fit in but no data between mem2 and mem2->next
  61883. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  61884. * region that couldn't hold data, but when mem->next gets freed,
  61885. * the 2 regions would be combined, resulting in more free memory
  61886. */
  61887. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + size);
  61888. 8019372: 69fa ldr r2, [r7, #28]
  61889. 8019374: 69bb ldr r3, [r7, #24]
  61890. 8019376: 4413 add r3, r2
  61891. 8019378: 330c adds r3, #12
  61892. 801937a: 60fb str r3, [r7, #12]
  61893. LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED);
  61894. 801937c: 68fb ldr r3, [r7, #12]
  61895. 801937e: 4a4f ldr r2, [pc, #316] @ (80194bc <mem_malloc+0x1d0>)
  61896. 8019380: 4293 cmp r3, r2
  61897. 8019382: d106 bne.n 8019392 <mem_malloc+0xa6>
  61898. 8019384: 4b50 ldr r3, [pc, #320] @ (80194c8 <mem_malloc+0x1dc>)
  61899. 8019386: f240 3287 movw r2, #903 @ 0x387
  61900. 801938a: 4950 ldr r1, [pc, #320] @ (80194cc <mem_malloc+0x1e0>)
  61901. 801938c: 4850 ldr r0, [pc, #320] @ (80194d0 <mem_malloc+0x1e4>)
  61902. 801938e: f010 fb25 bl 80299dc <iprintf>
  61903. /* create mem2 struct */
  61904. mem2 = ptr_to_mem(ptr2);
  61905. 8019392: 68f8 ldr r0, [r7, #12]
  61906. 8019394: f7ff fcca bl 8018d2c <ptr_to_mem>
  61907. 8019398: 60b8 str r0, [r7, #8]
  61908. mem2->used = 0;
  61909. 801939a: 68bb ldr r3, [r7, #8]
  61910. 801939c: 2200 movs r2, #0
  61911. 801939e: 721a strb r2, [r3, #8]
  61912. mem2->next = mem->next;
  61913. 80193a0: 693b ldr r3, [r7, #16]
  61914. 80193a2: 681a ldr r2, [r3, #0]
  61915. 80193a4: 68bb ldr r3, [r7, #8]
  61916. 80193a6: 601a str r2, [r3, #0]
  61917. mem2->prev = ptr;
  61918. 80193a8: 68bb ldr r3, [r7, #8]
  61919. 80193aa: 69fa ldr r2, [r7, #28]
  61920. 80193ac: 605a str r2, [r3, #4]
  61921. /* and insert it between mem and mem->next */
  61922. mem->next = ptr2;
  61923. 80193ae: 693b ldr r3, [r7, #16]
  61924. 80193b0: 68fa ldr r2, [r7, #12]
  61925. 80193b2: 601a str r2, [r3, #0]
  61926. mem->used = 1;
  61927. 80193b4: 693b ldr r3, [r7, #16]
  61928. 80193b6: 2201 movs r2, #1
  61929. 80193b8: 721a strb r2, [r3, #8]
  61930. if (mem2->next != MEM_SIZE_ALIGNED) {
  61931. 80193ba: 68bb ldr r3, [r7, #8]
  61932. 80193bc: 681b ldr r3, [r3, #0]
  61933. 80193be: 4a3f ldr r2, [pc, #252] @ (80194bc <mem_malloc+0x1d0>)
  61934. 80193c0: 4293 cmp r3, r2
  61935. 80193c2: d00b beq.n 80193dc <mem_malloc+0xf0>
  61936. ptr_to_mem(mem2->next)->prev = ptr2;
  61937. 80193c4: 68bb ldr r3, [r7, #8]
  61938. 80193c6: 681b ldr r3, [r3, #0]
  61939. 80193c8: 4618 mov r0, r3
  61940. 80193ca: f7ff fcaf bl 8018d2c <ptr_to_mem>
  61941. 80193ce: 4602 mov r2, r0
  61942. 80193d0: 68fb ldr r3, [r7, #12]
  61943. 80193d2: 6053 str r3, [r2, #4]
  61944. 80193d4: e002 b.n 80193dc <mem_malloc+0xf0>
  61945. * take care of this).
  61946. * -> near fit or exact fit: do not split, no mem2 creation
  61947. * also can't move mem->next directly behind mem, since mem->next
  61948. * will always be used at this point!
  61949. */
  61950. mem->used = 1;
  61951. 80193d6: 693b ldr r3, [r7, #16]
  61952. 80193d8: 2201 movs r2, #1
  61953. 80193da: 721a strb r2, [r3, #8]
  61954. MEM_STATS_INC_USED(used, mem->next - mem_to_ptr(mem));
  61955. }
  61956. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  61957. mem_malloc_adjust_lfree:
  61958. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61959. if (mem == lfree) {
  61960. 80193dc: 4b39 ldr r3, [pc, #228] @ (80194c4 <mem_malloc+0x1d8>)
  61961. 80193de: 681b ldr r3, [r3, #0]
  61962. 80193e0: 693a ldr r2, [r7, #16]
  61963. 80193e2: 429a cmp r2, r3
  61964. 80193e4: d127 bne.n 8019436 <mem_malloc+0x14a>
  61965. struct mem *cur = lfree;
  61966. 80193e6: 4b37 ldr r3, [pc, #220] @ (80194c4 <mem_malloc+0x1d8>)
  61967. 80193e8: 681b ldr r3, [r3, #0]
  61968. 80193ea: 617b str r3, [r7, #20]
  61969. /* Find next free block after mem and update lowest free pointer */
  61970. while (cur->used && cur != ram_end) {
  61971. 80193ec: e005 b.n 80193fa <mem_malloc+0x10e>
  61972. /* If mem_free or mem_trim have run, we have to restart since they
  61973. could have altered our current struct mem or lfree. */
  61974. goto mem_malloc_adjust_lfree;
  61975. }
  61976. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  61977. cur = ptr_to_mem(cur->next);
  61978. 80193ee: 697b ldr r3, [r7, #20]
  61979. 80193f0: 681b ldr r3, [r3, #0]
  61980. 80193f2: 4618 mov r0, r3
  61981. 80193f4: f7ff fc9a bl 8018d2c <ptr_to_mem>
  61982. 80193f8: 6178 str r0, [r7, #20]
  61983. while (cur->used && cur != ram_end) {
  61984. 80193fa: 697b ldr r3, [r7, #20]
  61985. 80193fc: 7a1b ldrb r3, [r3, #8]
  61986. 80193fe: 2b00 cmp r3, #0
  61987. 8019400: d004 beq.n 801940c <mem_malloc+0x120>
  61988. 8019402: 4b34 ldr r3, [pc, #208] @ (80194d4 <mem_malloc+0x1e8>)
  61989. 8019404: 681b ldr r3, [r3, #0]
  61990. 8019406: 697a ldr r2, [r7, #20]
  61991. 8019408: 429a cmp r2, r3
  61992. 801940a: d1f0 bne.n 80193ee <mem_malloc+0x102>
  61993. }
  61994. lfree = cur;
  61995. 801940c: 4a2d ldr r2, [pc, #180] @ (80194c4 <mem_malloc+0x1d8>)
  61996. 801940e: 697b ldr r3, [r7, #20]
  61997. 8019410: 6013 str r3, [r2, #0]
  61998. LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used)));
  61999. 8019412: 4b2c ldr r3, [pc, #176] @ (80194c4 <mem_malloc+0x1d8>)
  62000. 8019414: 681a ldr r2, [r3, #0]
  62001. 8019416: 4b2f ldr r3, [pc, #188] @ (80194d4 <mem_malloc+0x1e8>)
  62002. 8019418: 681b ldr r3, [r3, #0]
  62003. 801941a: 429a cmp r2, r3
  62004. 801941c: d00b beq.n 8019436 <mem_malloc+0x14a>
  62005. 801941e: 4b29 ldr r3, [pc, #164] @ (80194c4 <mem_malloc+0x1d8>)
  62006. 8019420: 681b ldr r3, [r3, #0]
  62007. 8019422: 7a1b ldrb r3, [r3, #8]
  62008. 8019424: 2b00 cmp r3, #0
  62009. 8019426: d006 beq.n 8019436 <mem_malloc+0x14a>
  62010. 8019428: 4b27 ldr r3, [pc, #156] @ (80194c8 <mem_malloc+0x1dc>)
  62011. 801942a: f240 32b5 movw r2, #949 @ 0x3b5
  62012. 801942e: 492a ldr r1, [pc, #168] @ (80194d8 <mem_malloc+0x1ec>)
  62013. 8019430: 4827 ldr r0, [pc, #156] @ (80194d0 <mem_malloc+0x1e4>)
  62014. 8019432: f010 fad3 bl 80299dc <iprintf>
  62015. }
  62016. LWIP_MEM_ALLOC_UNPROTECT();
  62017. sys_mutex_unlock(&mem_mutex);
  62018. 8019436: 4822 ldr r0, [pc, #136] @ (80194c0 <mem_malloc+0x1d4>)
  62019. 8019438: f00d f80d bl 8026456 <sys_mutex_unlock>
  62020. LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.",
  62021. 801943c: 693a ldr r2, [r7, #16]
  62022. 801943e: 69bb ldr r3, [r7, #24]
  62023. 8019440: 4413 add r3, r2
  62024. 8019442: 330c adds r3, #12
  62025. 8019444: 4a23 ldr r2, [pc, #140] @ (80194d4 <mem_malloc+0x1e8>)
  62026. 8019446: 6812 ldr r2, [r2, #0]
  62027. 8019448: 4293 cmp r3, r2
  62028. 801944a: d906 bls.n 801945a <mem_malloc+0x16e>
  62029. 801944c: 4b1e ldr r3, [pc, #120] @ (80194c8 <mem_malloc+0x1dc>)
  62030. 801944e: f240 32b9 movw r2, #953 @ 0x3b9
  62031. 8019452: 4922 ldr r1, [pc, #136] @ (80194dc <mem_malloc+0x1f0>)
  62032. 8019454: 481e ldr r0, [pc, #120] @ (80194d0 <mem_malloc+0x1e4>)
  62033. 8019456: f010 fac1 bl 80299dc <iprintf>
  62034. (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end);
  62035. LWIP_ASSERT("mem_malloc: allocated memory properly aligned.",
  62036. 801945a: 693b ldr r3, [r7, #16]
  62037. 801945c: f003 0303 and.w r3, r3, #3
  62038. 8019460: 2b00 cmp r3, #0
  62039. 8019462: d006 beq.n 8019472 <mem_malloc+0x186>
  62040. 8019464: 4b18 ldr r3, [pc, #96] @ (80194c8 <mem_malloc+0x1dc>)
  62041. 8019466: f240 32bb movw r2, #955 @ 0x3bb
  62042. 801946a: 491d ldr r1, [pc, #116] @ (80194e0 <mem_malloc+0x1f4>)
  62043. 801946c: 4818 ldr r0, [pc, #96] @ (80194d0 <mem_malloc+0x1e4>)
  62044. 801946e: f010 fab5 bl 80299dc <iprintf>
  62045. ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0);
  62046. LWIP_ASSERT("mem_malloc: sanity check alignment",
  62047. 8019472: 693b ldr r3, [r7, #16]
  62048. 8019474: f003 0303 and.w r3, r3, #3
  62049. 8019478: 2b00 cmp r3, #0
  62050. 801947a: d006 beq.n 801948a <mem_malloc+0x19e>
  62051. 801947c: 4b12 ldr r3, [pc, #72] @ (80194c8 <mem_malloc+0x1dc>)
  62052. 801947e: f240 32bd movw r2, #957 @ 0x3bd
  62053. 8019482: 4918 ldr r1, [pc, #96] @ (80194e4 <mem_malloc+0x1f8>)
  62054. 8019484: 4812 ldr r0, [pc, #72] @ (80194d0 <mem_malloc+0x1e4>)
  62055. 8019486: f010 faa9 bl 80299dc <iprintf>
  62056. #if MEM_OVERFLOW_CHECK
  62057. mem_overflow_init_element(mem, size_in);
  62058. #endif
  62059. MEM_SANITY();
  62060. return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET;
  62061. 801948a: 693b ldr r3, [r7, #16]
  62062. 801948c: 330c adds r3, #12
  62063. 801948e: e010 b.n 80194b2 <mem_malloc+0x1c6>
  62064. ptr = ptr_to_mem(ptr)->next) {
  62065. 8019490: 69f8 ldr r0, [r7, #28]
  62066. 8019492: f7ff fc4b bl 8018d2c <ptr_to_mem>
  62067. 8019496: 4603 mov r3, r0
  62068. 8019498: 681b ldr r3, [r3, #0]
  62069. 801949a: 61fb str r3, [r7, #28]
  62070. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  62071. 801949c: 69ba ldr r2, [r7, #24]
  62072. 801949e: 4b07 ldr r3, [pc, #28] @ (80194bc <mem_malloc+0x1d0>)
  62073. 80194a0: 1a9b subs r3, r3, r2
  62074. 80194a2: 69fa ldr r2, [r7, #28]
  62075. 80194a4: 429a cmp r2, r3
  62076. 80194a6: f4ff af48 bcc.w 801933a <mem_malloc+0x4e>
  62077. /* if we got interrupted by a mem_free, try again */
  62078. } while (local_mem_free_count != 0);
  62079. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  62080. MEM_STATS_INC(err);
  62081. LWIP_MEM_ALLOC_UNPROTECT();
  62082. sys_mutex_unlock(&mem_mutex);
  62083. 80194aa: 4805 ldr r0, [pc, #20] @ (80194c0 <mem_malloc+0x1d4>)
  62084. 80194ac: f00c ffd3 bl 8026456 <sys_mutex_unlock>
  62085. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
  62086. return NULL;
  62087. 80194b0: 2300 movs r3, #0
  62088. }
  62089. 80194b2: 4618 mov r0, r3
  62090. 80194b4: 3720 adds r7, #32
  62091. 80194b6: 46bd mov sp, r7
  62092. 80194b8: bd80 pop {r7, pc}
  62093. 80194ba: bf00 nop
  62094. 80194bc: 0001ffe8 .word 0x0001ffe8
  62095. 80194c0: 24024358 .word 0x24024358
  62096. 80194c4: 2402435c .word 0x2402435c
  62097. 80194c8: 0802dac4 .word 0x0802dac4
  62098. 80194cc: 0802dc88 .word 0x0802dc88
  62099. 80194d0: 0802db0c .word 0x0802db0c
  62100. 80194d4: 24024354 .word 0x24024354
  62101. 80194d8: 0802dc9c .word 0x0802dc9c
  62102. 80194dc: 0802dcb8 .word 0x0802dcb8
  62103. 80194e0: 0802dce8 .word 0x0802dce8
  62104. 80194e4: 0802dd18 .word 0x0802dd18
  62105. 080194e8 <memp_init_pool>:
  62106. *
  62107. * @param desc pool to initialize
  62108. */
  62109. void
  62110. memp_init_pool(const struct memp_desc *desc)
  62111. {
  62112. 80194e8: b480 push {r7}
  62113. 80194ea: b085 sub sp, #20
  62114. 80194ec: af00 add r7, sp, #0
  62115. 80194ee: 6078 str r0, [r7, #4]
  62116. LWIP_UNUSED_ARG(desc);
  62117. #else
  62118. int i;
  62119. struct memp *memp;
  62120. *desc->tab = NULL;
  62121. 80194f0: 687b ldr r3, [r7, #4]
  62122. 80194f2: 68db ldr r3, [r3, #12]
  62123. 80194f4: 2200 movs r2, #0
  62124. 80194f6: 601a str r2, [r3, #0]
  62125. memp = (struct memp *)LWIP_MEM_ALIGN(desc->base);
  62126. 80194f8: 687b ldr r3, [r7, #4]
  62127. 80194fa: 689b ldr r3, [r3, #8]
  62128. 80194fc: 3303 adds r3, #3
  62129. 80194fe: f023 0303 bic.w r3, r3, #3
  62130. 8019502: 60bb str r3, [r7, #8]
  62131. + MEM_SANITY_REGION_AFTER_ALIGNED
  62132. #endif
  62133. ));
  62134. #endif
  62135. /* create a linked list of memp elements */
  62136. for (i = 0; i < desc->num; ++i) {
  62137. 8019504: 2300 movs r3, #0
  62138. 8019506: 60fb str r3, [r7, #12]
  62139. 8019508: e011 b.n 801952e <memp_init_pool+0x46>
  62140. memp->next = *desc->tab;
  62141. 801950a: 687b ldr r3, [r7, #4]
  62142. 801950c: 68db ldr r3, [r3, #12]
  62143. 801950e: 681a ldr r2, [r3, #0]
  62144. 8019510: 68bb ldr r3, [r7, #8]
  62145. 8019512: 601a str r2, [r3, #0]
  62146. *desc->tab = memp;
  62147. 8019514: 687b ldr r3, [r7, #4]
  62148. 8019516: 68db ldr r3, [r3, #12]
  62149. 8019518: 68ba ldr r2, [r7, #8]
  62150. 801951a: 601a str r2, [r3, #0]
  62151. #if MEMP_OVERFLOW_CHECK
  62152. memp_overflow_init_element(memp, desc);
  62153. #endif /* MEMP_OVERFLOW_CHECK */
  62154. /* cast through void* to get rid of alignment warnings */
  62155. memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + desc->size
  62156. 801951c: 687b ldr r3, [r7, #4]
  62157. 801951e: 889b ldrh r3, [r3, #4]
  62158. 8019520: 461a mov r2, r3
  62159. 8019522: 68bb ldr r3, [r7, #8]
  62160. 8019524: 4413 add r3, r2
  62161. 8019526: 60bb str r3, [r7, #8]
  62162. for (i = 0; i < desc->num; ++i) {
  62163. 8019528: 68fb ldr r3, [r7, #12]
  62164. 801952a: 3301 adds r3, #1
  62165. 801952c: 60fb str r3, [r7, #12]
  62166. 801952e: 687b ldr r3, [r7, #4]
  62167. 8019530: 88db ldrh r3, [r3, #6]
  62168. 8019532: 461a mov r2, r3
  62169. 8019534: 68fb ldr r3, [r7, #12]
  62170. 8019536: 4293 cmp r3, r2
  62171. 8019538: dbe7 blt.n 801950a <memp_init_pool+0x22>
  62172. #endif /* !MEMP_MEM_MALLOC */
  62173. #if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY)
  62174. desc->stats->name = desc->desc;
  62175. #endif /* MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */
  62176. }
  62177. 801953a: bf00 nop
  62178. 801953c: bf00 nop
  62179. 801953e: 3714 adds r7, #20
  62180. 8019540: 46bd mov sp, r7
  62181. 8019542: f85d 7b04 ldr.w r7, [sp], #4
  62182. 8019546: 4770 bx lr
  62183. 08019548 <memp_init>:
  62184. *
  62185. * Carves out memp_memory into linked lists for each pool-type.
  62186. */
  62187. void
  62188. memp_init(void)
  62189. {
  62190. 8019548: b580 push {r7, lr}
  62191. 801954a: b082 sub sp, #8
  62192. 801954c: af00 add r7, sp, #0
  62193. u16_t i;
  62194. /* for every pool: */
  62195. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  62196. 801954e: 2300 movs r3, #0
  62197. 8019550: 80fb strh r3, [r7, #6]
  62198. 8019552: e009 b.n 8019568 <memp_init+0x20>
  62199. memp_init_pool(memp_pools[i]);
  62200. 8019554: 88fb ldrh r3, [r7, #6]
  62201. 8019556: 4a08 ldr r2, [pc, #32] @ (8019578 <memp_init+0x30>)
  62202. 8019558: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  62203. 801955c: 4618 mov r0, r3
  62204. 801955e: f7ff ffc3 bl 80194e8 <memp_init_pool>
  62205. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  62206. 8019562: 88fb ldrh r3, [r7, #6]
  62207. 8019564: 3301 adds r3, #1
  62208. 8019566: 80fb strh r3, [r7, #6]
  62209. 8019568: 88fb ldrh r3, [r7, #6]
  62210. 801956a: 2b0c cmp r3, #12
  62211. 801956c: d9f2 bls.n 8019554 <memp_init+0xc>
  62212. #if MEMP_OVERFLOW_CHECK >= 2
  62213. /* check everything a first time to see if it worked */
  62214. memp_overflow_check_all();
  62215. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  62216. }
  62217. 801956e: bf00 nop
  62218. 8019570: bf00 nop
  62219. 8019572: 3708 adds r7, #8
  62220. 8019574: 46bd mov sp, r7
  62221. 8019576: bd80 pop {r7, pc}
  62222. 8019578: 08030be4 .word 0x08030be4
  62223. 0801957c <do_memp_malloc_pool>:
  62224. #if !MEMP_OVERFLOW_CHECK
  62225. do_memp_malloc_pool(const struct memp_desc *desc)
  62226. #else
  62227. do_memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  62228. #endif
  62229. {
  62230. 801957c: b580 push {r7, lr}
  62231. 801957e: b084 sub sp, #16
  62232. 8019580: af00 add r7, sp, #0
  62233. 8019582: 6078 str r0, [r7, #4]
  62234. #if MEMP_MEM_MALLOC
  62235. memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size));
  62236. SYS_ARCH_PROTECT(old_level);
  62237. #else /* MEMP_MEM_MALLOC */
  62238. SYS_ARCH_PROTECT(old_level);
  62239. 8019584: f00c ff94 bl 80264b0 <sys_arch_protect>
  62240. 8019588: 60f8 str r0, [r7, #12]
  62241. memp = *desc->tab;
  62242. 801958a: 687b ldr r3, [r7, #4]
  62243. 801958c: 68db ldr r3, [r3, #12]
  62244. 801958e: 681b ldr r3, [r3, #0]
  62245. 8019590: 60bb str r3, [r7, #8]
  62246. #endif /* MEMP_MEM_MALLOC */
  62247. if (memp != NULL) {
  62248. 8019592: 68bb ldr r3, [r7, #8]
  62249. 8019594: 2b00 cmp r3, #0
  62250. 8019596: d015 beq.n 80195c4 <do_memp_malloc_pool+0x48>
  62251. #if !MEMP_MEM_MALLOC
  62252. #if MEMP_OVERFLOW_CHECK == 1
  62253. memp_overflow_check_element(memp, desc);
  62254. #endif /* MEMP_OVERFLOW_CHECK */
  62255. *desc->tab = memp->next;
  62256. 8019598: 687b ldr r3, [r7, #4]
  62257. 801959a: 68db ldr r3, [r3, #12]
  62258. 801959c: 68ba ldr r2, [r7, #8]
  62259. 801959e: 6812 ldr r2, [r2, #0]
  62260. 80195a0: 601a str r2, [r3, #0]
  62261. memp->line = line;
  62262. #if MEMP_MEM_MALLOC
  62263. memp_overflow_init_element(memp, desc);
  62264. #endif /* MEMP_MEM_MALLOC */
  62265. #endif /* MEMP_OVERFLOW_CHECK */
  62266. LWIP_ASSERT("memp_malloc: memp properly aligned",
  62267. 80195a2: 68bb ldr r3, [r7, #8]
  62268. 80195a4: f003 0303 and.w r3, r3, #3
  62269. 80195a8: 2b00 cmp r3, #0
  62270. 80195aa: d006 beq.n 80195ba <do_memp_malloc_pool+0x3e>
  62271. 80195ac: 4b09 ldr r3, [pc, #36] @ (80195d4 <do_memp_malloc_pool+0x58>)
  62272. 80195ae: f44f 728c mov.w r2, #280 @ 0x118
  62273. 80195b2: 4909 ldr r1, [pc, #36] @ (80195d8 <do_memp_malloc_pool+0x5c>)
  62274. 80195b4: 4809 ldr r0, [pc, #36] @ (80195dc <do_memp_malloc_pool+0x60>)
  62275. 80195b6: f010 fa11 bl 80299dc <iprintf>
  62276. desc->stats->used++;
  62277. if (desc->stats->used > desc->stats->max) {
  62278. desc->stats->max = desc->stats->used;
  62279. }
  62280. #endif
  62281. SYS_ARCH_UNPROTECT(old_level);
  62282. 80195ba: 68f8 ldr r0, [r7, #12]
  62283. 80195bc: f00c ff86 bl 80264cc <sys_arch_unprotect>
  62284. /* cast through u8_t* to get rid of alignment warnings */
  62285. return ((u8_t *)memp + MEMP_SIZE);
  62286. 80195c0: 68bb ldr r3, [r7, #8]
  62287. 80195c2: e003 b.n 80195cc <do_memp_malloc_pool+0x50>
  62288. } else {
  62289. #if MEMP_STATS
  62290. desc->stats->err++;
  62291. #endif
  62292. SYS_ARCH_UNPROTECT(old_level);
  62293. 80195c4: 68f8 ldr r0, [r7, #12]
  62294. 80195c6: f00c ff81 bl 80264cc <sys_arch_unprotect>
  62295. LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc));
  62296. }
  62297. return NULL;
  62298. 80195ca: 2300 movs r3, #0
  62299. }
  62300. 80195cc: 4618 mov r0, r3
  62301. 80195ce: 3710 adds r7, #16
  62302. 80195d0: 46bd mov sp, r7
  62303. 80195d2: bd80 pop {r7, pc}
  62304. 80195d4: 0802ddd4 .word 0x0802ddd4
  62305. 80195d8: 0802de04 .word 0x0802de04
  62306. 80195dc: 0802de28 .word 0x0802de28
  62307. 080195e0 <memp_malloc_pool>:
  62308. #if !MEMP_OVERFLOW_CHECK
  62309. memp_malloc_pool(const struct memp_desc *desc)
  62310. #else
  62311. memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  62312. #endif
  62313. {
  62314. 80195e0: b580 push {r7, lr}
  62315. 80195e2: b082 sub sp, #8
  62316. 80195e4: af00 add r7, sp, #0
  62317. 80195e6: 6078 str r0, [r7, #4]
  62318. LWIP_ASSERT("invalid pool desc", desc != NULL);
  62319. 80195e8: 687b ldr r3, [r7, #4]
  62320. 80195ea: 2b00 cmp r3, #0
  62321. 80195ec: d106 bne.n 80195fc <memp_malloc_pool+0x1c>
  62322. 80195ee: 4b0a ldr r3, [pc, #40] @ (8019618 <memp_malloc_pool+0x38>)
  62323. 80195f0: f44f 729e mov.w r2, #316 @ 0x13c
  62324. 80195f4: 4909 ldr r1, [pc, #36] @ (801961c <memp_malloc_pool+0x3c>)
  62325. 80195f6: 480a ldr r0, [pc, #40] @ (8019620 <memp_malloc_pool+0x40>)
  62326. 80195f8: f010 f9f0 bl 80299dc <iprintf>
  62327. if (desc == NULL) {
  62328. 80195fc: 687b ldr r3, [r7, #4]
  62329. 80195fe: 2b00 cmp r3, #0
  62330. 8019600: d101 bne.n 8019606 <memp_malloc_pool+0x26>
  62331. return NULL;
  62332. 8019602: 2300 movs r3, #0
  62333. 8019604: e003 b.n 801960e <memp_malloc_pool+0x2e>
  62334. }
  62335. #if !MEMP_OVERFLOW_CHECK
  62336. return do_memp_malloc_pool(desc);
  62337. 8019606: 6878 ldr r0, [r7, #4]
  62338. 8019608: f7ff ffb8 bl 801957c <do_memp_malloc_pool>
  62339. 801960c: 4603 mov r3, r0
  62340. #else
  62341. return do_memp_malloc_pool_fn(desc, file, line);
  62342. #endif
  62343. }
  62344. 801960e: 4618 mov r0, r3
  62345. 8019610: 3708 adds r7, #8
  62346. 8019612: 46bd mov sp, r7
  62347. 8019614: bd80 pop {r7, pc}
  62348. 8019616: bf00 nop
  62349. 8019618: 0802ddd4 .word 0x0802ddd4
  62350. 801961c: 0802de50 .word 0x0802de50
  62351. 8019620: 0802de28 .word 0x0802de28
  62352. 08019624 <memp_malloc>:
  62353. #if !MEMP_OVERFLOW_CHECK
  62354. memp_malloc(memp_t type)
  62355. #else
  62356. memp_malloc_fn(memp_t type, const char *file, const int line)
  62357. #endif
  62358. {
  62359. 8019624: b580 push {r7, lr}
  62360. 8019626: b084 sub sp, #16
  62361. 8019628: af00 add r7, sp, #0
  62362. 801962a: 4603 mov r3, r0
  62363. 801962c: 71fb strb r3, [r7, #7]
  62364. void *memp;
  62365. LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;);
  62366. 801962e: 79fb ldrb r3, [r7, #7]
  62367. 8019630: 2b0c cmp r3, #12
  62368. 8019632: d908 bls.n 8019646 <memp_malloc+0x22>
  62369. 8019634: 4b0a ldr r3, [pc, #40] @ (8019660 <memp_malloc+0x3c>)
  62370. 8019636: f240 1257 movw r2, #343 @ 0x157
  62371. 801963a: 490a ldr r1, [pc, #40] @ (8019664 <memp_malloc+0x40>)
  62372. 801963c: 480a ldr r0, [pc, #40] @ (8019668 <memp_malloc+0x44>)
  62373. 801963e: f010 f9cd bl 80299dc <iprintf>
  62374. 8019642: 2300 movs r3, #0
  62375. 8019644: e008 b.n 8019658 <memp_malloc+0x34>
  62376. #if MEMP_OVERFLOW_CHECK >= 2
  62377. memp_overflow_check_all();
  62378. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  62379. #if !MEMP_OVERFLOW_CHECK
  62380. memp = do_memp_malloc_pool(memp_pools[type]);
  62381. 8019646: 79fb ldrb r3, [r7, #7]
  62382. 8019648: 4a08 ldr r2, [pc, #32] @ (801966c <memp_malloc+0x48>)
  62383. 801964a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  62384. 801964e: 4618 mov r0, r3
  62385. 8019650: f7ff ff94 bl 801957c <do_memp_malloc_pool>
  62386. 8019654: 60f8 str r0, [r7, #12]
  62387. #else
  62388. memp = do_memp_malloc_pool_fn(memp_pools[type], file, line);
  62389. #endif
  62390. return memp;
  62391. 8019656: 68fb ldr r3, [r7, #12]
  62392. }
  62393. 8019658: 4618 mov r0, r3
  62394. 801965a: 3710 adds r7, #16
  62395. 801965c: 46bd mov sp, r7
  62396. 801965e: bd80 pop {r7, pc}
  62397. 8019660: 0802ddd4 .word 0x0802ddd4
  62398. 8019664: 0802de64 .word 0x0802de64
  62399. 8019668: 0802de28 .word 0x0802de28
  62400. 801966c: 08030be4 .word 0x08030be4
  62401. 08019670 <do_memp_free_pool>:
  62402. static void
  62403. do_memp_free_pool(const struct memp_desc *desc, void *mem)
  62404. {
  62405. 8019670: b580 push {r7, lr}
  62406. 8019672: b084 sub sp, #16
  62407. 8019674: af00 add r7, sp, #0
  62408. 8019676: 6078 str r0, [r7, #4]
  62409. 8019678: 6039 str r1, [r7, #0]
  62410. struct memp *memp;
  62411. SYS_ARCH_DECL_PROTECT(old_level);
  62412. LWIP_ASSERT("memp_free: mem properly aligned",
  62413. 801967a: 683b ldr r3, [r7, #0]
  62414. 801967c: f003 0303 and.w r3, r3, #3
  62415. 8019680: 2b00 cmp r3, #0
  62416. 8019682: d006 beq.n 8019692 <do_memp_free_pool+0x22>
  62417. 8019684: 4b0d ldr r3, [pc, #52] @ (80196bc <do_memp_free_pool+0x4c>)
  62418. 8019686: f44f 72b6 mov.w r2, #364 @ 0x16c
  62419. 801968a: 490d ldr r1, [pc, #52] @ (80196c0 <do_memp_free_pool+0x50>)
  62420. 801968c: 480d ldr r0, [pc, #52] @ (80196c4 <do_memp_free_pool+0x54>)
  62421. 801968e: f010 f9a5 bl 80299dc <iprintf>
  62422. ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
  62423. /* cast through void* to get rid of alignment warnings */
  62424. memp = (struct memp *)(void *)((u8_t *)mem - MEMP_SIZE);
  62425. 8019692: 683b ldr r3, [r7, #0]
  62426. 8019694: 60fb str r3, [r7, #12]
  62427. SYS_ARCH_PROTECT(old_level);
  62428. 8019696: f00c ff0b bl 80264b0 <sys_arch_protect>
  62429. 801969a: 60b8 str r0, [r7, #8]
  62430. #if MEMP_MEM_MALLOC
  62431. LWIP_UNUSED_ARG(desc);
  62432. SYS_ARCH_UNPROTECT(old_level);
  62433. mem_free(memp);
  62434. #else /* MEMP_MEM_MALLOC */
  62435. memp->next = *desc->tab;
  62436. 801969c: 687b ldr r3, [r7, #4]
  62437. 801969e: 68db ldr r3, [r3, #12]
  62438. 80196a0: 681a ldr r2, [r3, #0]
  62439. 80196a2: 68fb ldr r3, [r7, #12]
  62440. 80196a4: 601a str r2, [r3, #0]
  62441. *desc->tab = memp;
  62442. 80196a6: 687b ldr r3, [r7, #4]
  62443. 80196a8: 68db ldr r3, [r3, #12]
  62444. 80196aa: 68fa ldr r2, [r7, #12]
  62445. 80196ac: 601a str r2, [r3, #0]
  62446. #if MEMP_SANITY_CHECK
  62447. LWIP_ASSERT("memp sanity", memp_sanity(desc));
  62448. #endif /* MEMP_SANITY_CHECK */
  62449. SYS_ARCH_UNPROTECT(old_level);
  62450. 80196ae: 68b8 ldr r0, [r7, #8]
  62451. 80196b0: f00c ff0c bl 80264cc <sys_arch_unprotect>
  62452. #endif /* !MEMP_MEM_MALLOC */
  62453. }
  62454. 80196b4: bf00 nop
  62455. 80196b6: 3710 adds r7, #16
  62456. 80196b8: 46bd mov sp, r7
  62457. 80196ba: bd80 pop {r7, pc}
  62458. 80196bc: 0802ddd4 .word 0x0802ddd4
  62459. 80196c0: 0802de84 .word 0x0802de84
  62460. 80196c4: 0802de28 .word 0x0802de28
  62461. 080196c8 <memp_free_pool>:
  62462. * @param desc the pool where to put mem
  62463. * @param mem the memp element to free
  62464. */
  62465. void
  62466. memp_free_pool(const struct memp_desc *desc, void *mem)
  62467. {
  62468. 80196c8: b580 push {r7, lr}
  62469. 80196ca: b082 sub sp, #8
  62470. 80196cc: af00 add r7, sp, #0
  62471. 80196ce: 6078 str r0, [r7, #4]
  62472. 80196d0: 6039 str r1, [r7, #0]
  62473. LWIP_ASSERT("invalid pool desc", desc != NULL);
  62474. 80196d2: 687b ldr r3, [r7, #4]
  62475. 80196d4: 2b00 cmp r3, #0
  62476. 80196d6: d106 bne.n 80196e6 <memp_free_pool+0x1e>
  62477. 80196d8: 4b0a ldr r3, [pc, #40] @ (8019704 <memp_free_pool+0x3c>)
  62478. 80196da: f240 1295 movw r2, #405 @ 0x195
  62479. 80196de: 490a ldr r1, [pc, #40] @ (8019708 <memp_free_pool+0x40>)
  62480. 80196e0: 480a ldr r0, [pc, #40] @ (801970c <memp_free_pool+0x44>)
  62481. 80196e2: f010 f97b bl 80299dc <iprintf>
  62482. if ((desc == NULL) || (mem == NULL)) {
  62483. 80196e6: 687b ldr r3, [r7, #4]
  62484. 80196e8: 2b00 cmp r3, #0
  62485. 80196ea: d007 beq.n 80196fc <memp_free_pool+0x34>
  62486. 80196ec: 683b ldr r3, [r7, #0]
  62487. 80196ee: 2b00 cmp r3, #0
  62488. 80196f0: d004 beq.n 80196fc <memp_free_pool+0x34>
  62489. return;
  62490. }
  62491. do_memp_free_pool(desc, mem);
  62492. 80196f2: 6839 ldr r1, [r7, #0]
  62493. 80196f4: 6878 ldr r0, [r7, #4]
  62494. 80196f6: f7ff ffbb bl 8019670 <do_memp_free_pool>
  62495. 80196fa: e000 b.n 80196fe <memp_free_pool+0x36>
  62496. return;
  62497. 80196fc: bf00 nop
  62498. }
  62499. 80196fe: 3708 adds r7, #8
  62500. 8019700: 46bd mov sp, r7
  62501. 8019702: bd80 pop {r7, pc}
  62502. 8019704: 0802ddd4 .word 0x0802ddd4
  62503. 8019708: 0802de50 .word 0x0802de50
  62504. 801970c: 0802de28 .word 0x0802de28
  62505. 08019710 <memp_free>:
  62506. * @param type the pool where to put mem
  62507. * @param mem the memp element to free
  62508. */
  62509. void
  62510. memp_free(memp_t type, void *mem)
  62511. {
  62512. 8019710: b580 push {r7, lr}
  62513. 8019712: b082 sub sp, #8
  62514. 8019714: af00 add r7, sp, #0
  62515. 8019716: 4603 mov r3, r0
  62516. 8019718: 6039 str r1, [r7, #0]
  62517. 801971a: 71fb strb r3, [r7, #7]
  62518. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  62519. struct memp *old_first;
  62520. #endif
  62521. LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;);
  62522. 801971c: 79fb ldrb r3, [r7, #7]
  62523. 801971e: 2b0c cmp r3, #12
  62524. 8019720: d907 bls.n 8019732 <memp_free+0x22>
  62525. 8019722: 4b0c ldr r3, [pc, #48] @ (8019754 <memp_free+0x44>)
  62526. 8019724: f44f 72d5 mov.w r2, #426 @ 0x1aa
  62527. 8019728: 490b ldr r1, [pc, #44] @ (8019758 <memp_free+0x48>)
  62528. 801972a: 480c ldr r0, [pc, #48] @ (801975c <memp_free+0x4c>)
  62529. 801972c: f010 f956 bl 80299dc <iprintf>
  62530. 8019730: e00c b.n 801974c <memp_free+0x3c>
  62531. if (mem == NULL) {
  62532. 8019732: 683b ldr r3, [r7, #0]
  62533. 8019734: 2b00 cmp r3, #0
  62534. 8019736: d008 beq.n 801974a <memp_free+0x3a>
  62535. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  62536. old_first = *memp_pools[type]->tab;
  62537. #endif
  62538. do_memp_free_pool(memp_pools[type], mem);
  62539. 8019738: 79fb ldrb r3, [r7, #7]
  62540. 801973a: 4a09 ldr r2, [pc, #36] @ (8019760 <memp_free+0x50>)
  62541. 801973c: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  62542. 8019740: 6839 ldr r1, [r7, #0]
  62543. 8019742: 4618 mov r0, r3
  62544. 8019744: f7ff ff94 bl 8019670 <do_memp_free_pool>
  62545. 8019748: e000 b.n 801974c <memp_free+0x3c>
  62546. return;
  62547. 801974a: bf00 nop
  62548. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  62549. if (old_first == NULL) {
  62550. LWIP_HOOK_MEMP_AVAILABLE(type);
  62551. }
  62552. #endif
  62553. }
  62554. 801974c: 3708 adds r7, #8
  62555. 801974e: 46bd mov sp, r7
  62556. 8019750: bd80 pop {r7, pc}
  62557. 8019752: bf00 nop
  62558. 8019754: 0802ddd4 .word 0x0802ddd4
  62559. 8019758: 0802dea4 .word 0x0802dea4
  62560. 801975c: 0802de28 .word 0x0802de28
  62561. 8019760: 08030be4 .word 0x08030be4
  62562. 08019764 <netif_init>:
  62563. }
  62564. #endif /* LWIP_HAVE_LOOPIF */
  62565. void
  62566. netif_init(void)
  62567. {
  62568. 8019764: b480 push {r7}
  62569. 8019766: af00 add r7, sp, #0
  62570. netif_set_link_up(&loop_netif);
  62571. netif_set_up(&loop_netif);
  62572. #endif /* LWIP_HAVE_LOOPIF */
  62573. }
  62574. 8019768: bf00 nop
  62575. 801976a: 46bd mov sp, r7
  62576. 801976c: f85d 7b04 ldr.w r7, [sp], #4
  62577. 8019770: 4770 bx lr
  62578. ...
  62579. 08019774 <netif_add>:
  62580. netif_add(struct netif *netif,
  62581. #if LWIP_IPV4
  62582. const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,
  62583. #endif /* LWIP_IPV4 */
  62584. void *state, netif_init_fn init, netif_input_fn input)
  62585. {
  62586. 8019774: b580 push {r7, lr}
  62587. 8019776: b086 sub sp, #24
  62588. 8019778: af00 add r7, sp, #0
  62589. 801977a: 60f8 str r0, [r7, #12]
  62590. 801977c: 60b9 str r1, [r7, #8]
  62591. 801977e: 607a str r2, [r7, #4]
  62592. 8019780: 603b str r3, [r7, #0]
  62593. #if LWIP_IPV6
  62594. s8_t i;
  62595. #endif
  62596. LWIP_ASSERT_CORE_LOCKED();
  62597. 8019782: f7f6 fedf bl 8010544 <sys_check_core_locking>
  62598. LWIP_ASSERT("single netif already set", 0);
  62599. return NULL;
  62600. }
  62601. #endif
  62602. LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);
  62603. 8019786: 68fb ldr r3, [r7, #12]
  62604. 8019788: 2b00 cmp r3, #0
  62605. 801978a: d108 bne.n 801979e <netif_add+0x2a>
  62606. 801978c: 4b5b ldr r3, [pc, #364] @ (80198fc <netif_add+0x188>)
  62607. 801978e: f240 1227 movw r2, #295 @ 0x127
  62608. 8019792: 495b ldr r1, [pc, #364] @ (8019900 <netif_add+0x18c>)
  62609. 8019794: 485b ldr r0, [pc, #364] @ (8019904 <netif_add+0x190>)
  62610. 8019796: f010 f921 bl 80299dc <iprintf>
  62611. 801979a: 2300 movs r3, #0
  62612. 801979c: e0a9 b.n 80198f2 <netif_add+0x17e>
  62613. LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL);
  62614. 801979e: 6a7b ldr r3, [r7, #36] @ 0x24
  62615. 80197a0: 2b00 cmp r3, #0
  62616. 80197a2: d108 bne.n 80197b6 <netif_add+0x42>
  62617. 80197a4: 4b55 ldr r3, [pc, #340] @ (80198fc <netif_add+0x188>)
  62618. 80197a6: f44f 7294 mov.w r2, #296 @ 0x128
  62619. 80197aa: 4957 ldr r1, [pc, #348] @ (8019908 <netif_add+0x194>)
  62620. 80197ac: 4855 ldr r0, [pc, #340] @ (8019904 <netif_add+0x190>)
  62621. 80197ae: f010 f915 bl 80299dc <iprintf>
  62622. 80197b2: 2300 movs r3, #0
  62623. 80197b4: e09d b.n 80198f2 <netif_add+0x17e>
  62624. #if LWIP_IPV4
  62625. if (ipaddr == NULL) {
  62626. 80197b6: 68bb ldr r3, [r7, #8]
  62627. 80197b8: 2b00 cmp r3, #0
  62628. 80197ba: d101 bne.n 80197c0 <netif_add+0x4c>
  62629. ipaddr = ip_2_ip4(IP4_ADDR_ANY);
  62630. 80197bc: 4b53 ldr r3, [pc, #332] @ (801990c <netif_add+0x198>)
  62631. 80197be: 60bb str r3, [r7, #8]
  62632. }
  62633. if (netmask == NULL) {
  62634. 80197c0: 687b ldr r3, [r7, #4]
  62635. 80197c2: 2b00 cmp r3, #0
  62636. 80197c4: d101 bne.n 80197ca <netif_add+0x56>
  62637. netmask = ip_2_ip4(IP4_ADDR_ANY);
  62638. 80197c6: 4b51 ldr r3, [pc, #324] @ (801990c <netif_add+0x198>)
  62639. 80197c8: 607b str r3, [r7, #4]
  62640. }
  62641. if (gw == NULL) {
  62642. 80197ca: 683b ldr r3, [r7, #0]
  62643. 80197cc: 2b00 cmp r3, #0
  62644. 80197ce: d101 bne.n 80197d4 <netif_add+0x60>
  62645. gw = ip_2_ip4(IP4_ADDR_ANY);
  62646. 80197d0: 4b4e ldr r3, [pc, #312] @ (801990c <netif_add+0x198>)
  62647. 80197d2: 603b str r3, [r7, #0]
  62648. }
  62649. /* reset new interface configuration state */
  62650. ip_addr_set_zero_ip4(&netif->ip_addr);
  62651. 80197d4: 68fb ldr r3, [r7, #12]
  62652. 80197d6: 2200 movs r2, #0
  62653. 80197d8: 605a str r2, [r3, #4]
  62654. ip_addr_set_zero_ip4(&netif->netmask);
  62655. 80197da: 68fb ldr r3, [r7, #12]
  62656. 80197dc: 2200 movs r2, #0
  62657. 80197de: 609a str r2, [r3, #8]
  62658. ip_addr_set_zero_ip4(&netif->gw);
  62659. 80197e0: 68fb ldr r3, [r7, #12]
  62660. 80197e2: 2200 movs r2, #0
  62661. 80197e4: 60da str r2, [r3, #12]
  62662. netif->output = netif_null_output_ip4;
  62663. 80197e6: 68fb ldr r3, [r7, #12]
  62664. 80197e8: 4a49 ldr r2, [pc, #292] @ (8019910 <netif_add+0x19c>)
  62665. 80197ea: 615a str r2, [r3, #20]
  62666. #endif /* LWIP_IPV6_ADDRESS_LIFETIMES */
  62667. }
  62668. netif->output_ip6 = netif_null_output_ip6;
  62669. #endif /* LWIP_IPV6 */
  62670. NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_ENABLE_ALL);
  62671. netif->mtu = 0;
  62672. 80197ec: 68fb ldr r3, [r7, #12]
  62673. 80197ee: 2200 movs r2, #0
  62674. 80197f0: 851a strh r2, [r3, #40] @ 0x28
  62675. netif->flags = 0;
  62676. 80197f2: 68fb ldr r3, [r7, #12]
  62677. 80197f4: 2200 movs r2, #0
  62678. 80197f6: f883 2031 strb.w r2, [r3, #49] @ 0x31
  62679. #ifdef netif_get_client_data
  62680. memset(netif->client_data, 0, sizeof(netif->client_data));
  62681. 80197fa: 68fb ldr r3, [r7, #12]
  62682. 80197fc: 3324 adds r3, #36 @ 0x24
  62683. 80197fe: 2204 movs r2, #4
  62684. 8019800: 2100 movs r1, #0
  62685. 8019802: 4618 mov r0, r3
  62686. 8019804: f010 fa7c bl 8029d00 <memset>
  62687. #endif /* LWIP_IPV6 */
  62688. #if LWIP_NETIF_STATUS_CALLBACK
  62689. netif->status_callback = NULL;
  62690. #endif /* LWIP_NETIF_STATUS_CALLBACK */
  62691. #if LWIP_NETIF_LINK_CALLBACK
  62692. netif->link_callback = NULL;
  62693. 8019808: 68fb ldr r3, [r7, #12]
  62694. 801980a: 2200 movs r2, #0
  62695. 801980c: 61da str r2, [r3, #28]
  62696. netif->loop_first = NULL;
  62697. netif->loop_last = NULL;
  62698. #endif /* ENABLE_LOOPBACK */
  62699. /* remember netif specific state information data */
  62700. netif->state = state;
  62701. 801980e: 68fb ldr r3, [r7, #12]
  62702. 8019810: 6a3a ldr r2, [r7, #32]
  62703. 8019812: 621a str r2, [r3, #32]
  62704. netif->num = netif_num;
  62705. 8019814: 4b3f ldr r3, [pc, #252] @ (8019914 <netif_add+0x1a0>)
  62706. 8019816: 781a ldrb r2, [r3, #0]
  62707. 8019818: 68fb ldr r3, [r7, #12]
  62708. 801981a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  62709. netif->input = input;
  62710. 801981e: 68fb ldr r3, [r7, #12]
  62711. 8019820: 6aba ldr r2, [r7, #40] @ 0x28
  62712. 8019822: 611a str r2, [r3, #16]
  62713. #if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
  62714. netif->loop_cnt_current = 0;
  62715. #endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */
  62716. #if LWIP_IPV4
  62717. netif_set_addr(netif, ipaddr, netmask, gw);
  62718. 8019824: 683b ldr r3, [r7, #0]
  62719. 8019826: 687a ldr r2, [r7, #4]
  62720. 8019828: 68b9 ldr r1, [r7, #8]
  62721. 801982a: 68f8 ldr r0, [r7, #12]
  62722. 801982c: f000 f914 bl 8019a58 <netif_set_addr>
  62723. #endif /* LWIP_IPV4 */
  62724. /* call user specified initialization function for netif */
  62725. if (init(netif) != ERR_OK) {
  62726. 8019830: 6a7b ldr r3, [r7, #36] @ 0x24
  62727. 8019832: 68f8 ldr r0, [r7, #12]
  62728. 8019834: 4798 blx r3
  62729. 8019836: 4603 mov r3, r0
  62730. 8019838: 2b00 cmp r3, #0
  62731. 801983a: d001 beq.n 8019840 <netif_add+0xcc>
  62732. return NULL;
  62733. 801983c: 2300 movs r3, #0
  62734. 801983e: e058 b.n 80198f2 <netif_add+0x17e>
  62735. */
  62736. {
  62737. struct netif *netif2;
  62738. int num_netifs;
  62739. do {
  62740. if (netif->num == 255) {
  62741. 8019840: 68fb ldr r3, [r7, #12]
  62742. 8019842: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  62743. 8019846: 2bff cmp r3, #255 @ 0xff
  62744. 8019848: d103 bne.n 8019852 <netif_add+0xde>
  62745. netif->num = 0;
  62746. 801984a: 68fb ldr r3, [r7, #12]
  62747. 801984c: 2200 movs r2, #0
  62748. 801984e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  62749. }
  62750. num_netifs = 0;
  62751. 8019852: 2300 movs r3, #0
  62752. 8019854: 613b str r3, [r7, #16]
  62753. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  62754. 8019856: 4b30 ldr r3, [pc, #192] @ (8019918 <netif_add+0x1a4>)
  62755. 8019858: 681b ldr r3, [r3, #0]
  62756. 801985a: 617b str r3, [r7, #20]
  62757. 801985c: e02b b.n 80198b6 <netif_add+0x142>
  62758. LWIP_ASSERT("netif already added", netif2 != netif);
  62759. 801985e: 697a ldr r2, [r7, #20]
  62760. 8019860: 68fb ldr r3, [r7, #12]
  62761. 8019862: 429a cmp r2, r3
  62762. 8019864: d106 bne.n 8019874 <netif_add+0x100>
  62763. 8019866: 4b25 ldr r3, [pc, #148] @ (80198fc <netif_add+0x188>)
  62764. 8019868: f240 128b movw r2, #395 @ 0x18b
  62765. 801986c: 492b ldr r1, [pc, #172] @ (801991c <netif_add+0x1a8>)
  62766. 801986e: 4825 ldr r0, [pc, #148] @ (8019904 <netif_add+0x190>)
  62767. 8019870: f010 f8b4 bl 80299dc <iprintf>
  62768. num_netifs++;
  62769. 8019874: 693b ldr r3, [r7, #16]
  62770. 8019876: 3301 adds r3, #1
  62771. 8019878: 613b str r3, [r7, #16]
  62772. LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255);
  62773. 801987a: 693b ldr r3, [r7, #16]
  62774. 801987c: 2bff cmp r3, #255 @ 0xff
  62775. 801987e: dd06 ble.n 801988e <netif_add+0x11a>
  62776. 8019880: 4b1e ldr r3, [pc, #120] @ (80198fc <netif_add+0x188>)
  62777. 8019882: f240 128d movw r2, #397 @ 0x18d
  62778. 8019886: 4926 ldr r1, [pc, #152] @ (8019920 <netif_add+0x1ac>)
  62779. 8019888: 481e ldr r0, [pc, #120] @ (8019904 <netif_add+0x190>)
  62780. 801988a: f010 f8a7 bl 80299dc <iprintf>
  62781. if (netif2->num == netif->num) {
  62782. 801988e: 697b ldr r3, [r7, #20]
  62783. 8019890: f893 2034 ldrb.w r2, [r3, #52] @ 0x34
  62784. 8019894: 68fb ldr r3, [r7, #12]
  62785. 8019896: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  62786. 801989a: 429a cmp r2, r3
  62787. 801989c: d108 bne.n 80198b0 <netif_add+0x13c>
  62788. netif->num++;
  62789. 801989e: 68fb ldr r3, [r7, #12]
  62790. 80198a0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  62791. 80198a4: 3301 adds r3, #1
  62792. 80198a6: b2da uxtb r2, r3
  62793. 80198a8: 68fb ldr r3, [r7, #12]
  62794. 80198aa: f883 2034 strb.w r2, [r3, #52] @ 0x34
  62795. break;
  62796. 80198ae: e005 b.n 80198bc <netif_add+0x148>
  62797. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  62798. 80198b0: 697b ldr r3, [r7, #20]
  62799. 80198b2: 681b ldr r3, [r3, #0]
  62800. 80198b4: 617b str r3, [r7, #20]
  62801. 80198b6: 697b ldr r3, [r7, #20]
  62802. 80198b8: 2b00 cmp r3, #0
  62803. 80198ba: d1d0 bne.n 801985e <netif_add+0xea>
  62804. }
  62805. }
  62806. } while (netif2 != NULL);
  62807. 80198bc: 697b ldr r3, [r7, #20]
  62808. 80198be: 2b00 cmp r3, #0
  62809. 80198c0: d1be bne.n 8019840 <netif_add+0xcc>
  62810. }
  62811. if (netif->num == 254) {
  62812. 80198c2: 68fb ldr r3, [r7, #12]
  62813. 80198c4: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  62814. 80198c8: 2bfe cmp r3, #254 @ 0xfe
  62815. 80198ca: d103 bne.n 80198d4 <netif_add+0x160>
  62816. netif_num = 0;
  62817. 80198cc: 4b11 ldr r3, [pc, #68] @ (8019914 <netif_add+0x1a0>)
  62818. 80198ce: 2200 movs r2, #0
  62819. 80198d0: 701a strb r2, [r3, #0]
  62820. 80198d2: e006 b.n 80198e2 <netif_add+0x16e>
  62821. } else {
  62822. netif_num = (u8_t)(netif->num + 1);
  62823. 80198d4: 68fb ldr r3, [r7, #12]
  62824. 80198d6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  62825. 80198da: 3301 adds r3, #1
  62826. 80198dc: b2da uxtb r2, r3
  62827. 80198de: 4b0d ldr r3, [pc, #52] @ (8019914 <netif_add+0x1a0>)
  62828. 80198e0: 701a strb r2, [r3, #0]
  62829. }
  62830. /* add this netif to the list */
  62831. netif->next = netif_list;
  62832. 80198e2: 4b0d ldr r3, [pc, #52] @ (8019918 <netif_add+0x1a4>)
  62833. 80198e4: 681a ldr r2, [r3, #0]
  62834. 80198e6: 68fb ldr r3, [r7, #12]
  62835. 80198e8: 601a str r2, [r3, #0]
  62836. netif_list = netif;
  62837. 80198ea: 4a0b ldr r2, [pc, #44] @ (8019918 <netif_add+0x1a4>)
  62838. 80198ec: 68fb ldr r3, [r7, #12]
  62839. 80198ee: 6013 str r3, [r2, #0]
  62840. #endif /* LWIP_IPV4 */
  62841. LWIP_DEBUGF(NETIF_DEBUG, ("\n"));
  62842. netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL);
  62843. return netif;
  62844. 80198f0: 68fb ldr r3, [r7, #12]
  62845. }
  62846. 80198f2: 4618 mov r0, r3
  62847. 80198f4: 3718 adds r7, #24
  62848. 80198f6: 46bd mov sp, r7
  62849. 80198f8: bd80 pop {r7, pc}
  62850. 80198fa: bf00 nop
  62851. 80198fc: 0802dec0 .word 0x0802dec0
  62852. 8019900: 0802df54 .word 0x0802df54
  62853. 8019904: 0802df10 .word 0x0802df10
  62854. 8019908: 0802df70 .word 0x0802df70
  62855. 801990c: 08030c68 .word 0x08030c68
  62856. 8019910: 08019d4f .word 0x08019d4f
  62857. 8019914: 2402ae84 .word 0x2402ae84
  62858. 8019918: 2402ae7c .word 0x2402ae7c
  62859. 801991c: 0802df94 .word 0x0802df94
  62860. 8019920: 0802dfa8 .word 0x0802dfa8
  62861. 08019924 <netif_do_ip_addr_changed>:
  62862. static void
  62863. netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  62864. {
  62865. 8019924: b580 push {r7, lr}
  62866. 8019926: b082 sub sp, #8
  62867. 8019928: af00 add r7, sp, #0
  62868. 801992a: 6078 str r0, [r7, #4]
  62869. 801992c: 6039 str r1, [r7, #0]
  62870. #if LWIP_TCP
  62871. tcp_netif_ip_addr_changed(old_addr, new_addr);
  62872. 801992e: 6839 ldr r1, [r7, #0]
  62873. 8019930: 6878 ldr r0, [r7, #4]
  62874. 8019932: f002 fe6f bl 801c614 <tcp_netif_ip_addr_changed>
  62875. #endif /* LWIP_TCP */
  62876. #if LWIP_UDP
  62877. udp_netif_ip_addr_changed(old_addr, new_addr);
  62878. 8019936: 6839 ldr r1, [r7, #0]
  62879. 8019938: 6878 ldr r0, [r7, #4]
  62880. 801993a: f008 f82b bl 8021994 <udp_netif_ip_addr_changed>
  62881. #endif /* LWIP_UDP */
  62882. #if LWIP_RAW
  62883. raw_netif_ip_addr_changed(old_addr, new_addr);
  62884. #endif /* LWIP_RAW */
  62885. }
  62886. 801993e: bf00 nop
  62887. 8019940: 3708 adds r7, #8
  62888. 8019942: 46bd mov sp, r7
  62889. 8019944: bd80 pop {r7, pc}
  62890. ...
  62891. 08019948 <netif_do_set_ipaddr>:
  62892. #if LWIP_IPV4
  62893. static int
  62894. netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr)
  62895. {
  62896. 8019948: b580 push {r7, lr}
  62897. 801994a: b086 sub sp, #24
  62898. 801994c: af00 add r7, sp, #0
  62899. 801994e: 60f8 str r0, [r7, #12]
  62900. 8019950: 60b9 str r1, [r7, #8]
  62901. 8019952: 607a str r2, [r7, #4]
  62902. LWIP_ASSERT("invalid pointer", ipaddr != NULL);
  62903. 8019954: 68bb ldr r3, [r7, #8]
  62904. 8019956: 2b00 cmp r3, #0
  62905. 8019958: d106 bne.n 8019968 <netif_do_set_ipaddr+0x20>
  62906. 801995a: 4b1d ldr r3, [pc, #116] @ (80199d0 <netif_do_set_ipaddr+0x88>)
  62907. 801995c: f240 12cb movw r2, #459 @ 0x1cb
  62908. 8019960: 491c ldr r1, [pc, #112] @ (80199d4 <netif_do_set_ipaddr+0x8c>)
  62909. 8019962: 481d ldr r0, [pc, #116] @ (80199d8 <netif_do_set_ipaddr+0x90>)
  62910. 8019964: f010 f83a bl 80299dc <iprintf>
  62911. LWIP_ASSERT("invalid pointer", old_addr != NULL);
  62912. 8019968: 687b ldr r3, [r7, #4]
  62913. 801996a: 2b00 cmp r3, #0
  62914. 801996c: d106 bne.n 801997c <netif_do_set_ipaddr+0x34>
  62915. 801996e: 4b18 ldr r3, [pc, #96] @ (80199d0 <netif_do_set_ipaddr+0x88>)
  62916. 8019970: f44f 72e6 mov.w r2, #460 @ 0x1cc
  62917. 8019974: 4917 ldr r1, [pc, #92] @ (80199d4 <netif_do_set_ipaddr+0x8c>)
  62918. 8019976: 4818 ldr r0, [pc, #96] @ (80199d8 <netif_do_set_ipaddr+0x90>)
  62919. 8019978: f010 f830 bl 80299dc <iprintf>
  62920. /* address is actually being changed? */
  62921. if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) {
  62922. 801997c: 68bb ldr r3, [r7, #8]
  62923. 801997e: 681a ldr r2, [r3, #0]
  62924. 8019980: 68fb ldr r3, [r7, #12]
  62925. 8019982: 3304 adds r3, #4
  62926. 8019984: 681b ldr r3, [r3, #0]
  62927. 8019986: 429a cmp r2, r3
  62928. 8019988: d01c beq.n 80199c4 <netif_do_set_ipaddr+0x7c>
  62929. ip_addr_t new_addr;
  62930. *ip_2_ip4(&new_addr) = *ipaddr;
  62931. 801998a: 68bb ldr r3, [r7, #8]
  62932. 801998c: 681b ldr r3, [r3, #0]
  62933. 801998e: 617b str r3, [r7, #20]
  62934. IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4);
  62935. ip_addr_copy(*old_addr, *netif_ip_addr4(netif));
  62936. 8019990: 68fb ldr r3, [r7, #12]
  62937. 8019992: 3304 adds r3, #4
  62938. 8019994: 681a ldr r2, [r3, #0]
  62939. 8019996: 687b ldr r3, [r7, #4]
  62940. 8019998: 601a str r2, [r3, #0]
  62941. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n"));
  62942. netif_do_ip_addr_changed(old_addr, &new_addr);
  62943. 801999a: f107 0314 add.w r3, r7, #20
  62944. 801999e: 4619 mov r1, r3
  62945. 80199a0: 6878 ldr r0, [r7, #4]
  62946. 80199a2: f7ff ffbf bl 8019924 <netif_do_ip_addr_changed>
  62947. mib2_remove_ip4(netif);
  62948. mib2_remove_route_ip4(0, netif);
  62949. /* set new IP address to netif */
  62950. ip4_addr_set(ip_2_ip4(&netif->ip_addr), ipaddr);
  62951. 80199a6: 68bb ldr r3, [r7, #8]
  62952. 80199a8: 2b00 cmp r3, #0
  62953. 80199aa: d002 beq.n 80199b2 <netif_do_set_ipaddr+0x6a>
  62954. 80199ac: 68bb ldr r3, [r7, #8]
  62955. 80199ae: 681b ldr r3, [r3, #0]
  62956. 80199b0: e000 b.n 80199b4 <netif_do_set_ipaddr+0x6c>
  62957. 80199b2: 2300 movs r3, #0
  62958. 80199b4: 68fa ldr r2, [r7, #12]
  62959. 80199b6: 6053 str r3, [r2, #4]
  62960. IP_SET_TYPE_VAL(netif->ip_addr, IPADDR_TYPE_V4);
  62961. mib2_add_ip4(netif);
  62962. mib2_add_route_ip4(0, netif);
  62963. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4);
  62964. 80199b8: 2101 movs r1, #1
  62965. 80199ba: 68f8 ldr r0, [r7, #12]
  62966. 80199bc: f000 f8d6 bl 8019b6c <netif_issue_reports>
  62967. NETIF_STATUS_CALLBACK(netif);
  62968. return 1; /* address changed */
  62969. 80199c0: 2301 movs r3, #1
  62970. 80199c2: e000 b.n 80199c6 <netif_do_set_ipaddr+0x7e>
  62971. }
  62972. return 0; /* address unchanged */
  62973. 80199c4: 2300 movs r3, #0
  62974. }
  62975. 80199c6: 4618 mov r0, r3
  62976. 80199c8: 3718 adds r7, #24
  62977. 80199ca: 46bd mov sp, r7
  62978. 80199cc: bd80 pop {r7, pc}
  62979. 80199ce: bf00 nop
  62980. 80199d0: 0802dec0 .word 0x0802dec0
  62981. 80199d4: 0802dfd8 .word 0x0802dfd8
  62982. 80199d8: 0802df10 .word 0x0802df10
  62983. 080199dc <netif_do_set_netmask>:
  62984. }
  62985. }
  62986. static int
  62987. netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm)
  62988. {
  62989. 80199dc: b480 push {r7}
  62990. 80199de: b085 sub sp, #20
  62991. 80199e0: af00 add r7, sp, #0
  62992. 80199e2: 60f8 str r0, [r7, #12]
  62993. 80199e4: 60b9 str r1, [r7, #8]
  62994. 80199e6: 607a str r2, [r7, #4]
  62995. /* address is actually being changed? */
  62996. if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) {
  62997. 80199e8: 68bb ldr r3, [r7, #8]
  62998. 80199ea: 681a ldr r2, [r3, #0]
  62999. 80199ec: 68fb ldr r3, [r7, #12]
  63000. 80199ee: 3308 adds r3, #8
  63001. 80199f0: 681b ldr r3, [r3, #0]
  63002. 80199f2: 429a cmp r2, r3
  63003. 80199f4: d00a beq.n 8019a0c <netif_do_set_netmask+0x30>
  63004. #else
  63005. LWIP_UNUSED_ARG(old_nm);
  63006. #endif
  63007. mib2_remove_route_ip4(0, netif);
  63008. /* set new netmask to netif */
  63009. ip4_addr_set(ip_2_ip4(&netif->netmask), netmask);
  63010. 80199f6: 68bb ldr r3, [r7, #8]
  63011. 80199f8: 2b00 cmp r3, #0
  63012. 80199fa: d002 beq.n 8019a02 <netif_do_set_netmask+0x26>
  63013. 80199fc: 68bb ldr r3, [r7, #8]
  63014. 80199fe: 681b ldr r3, [r3, #0]
  63015. 8019a00: e000 b.n 8019a04 <netif_do_set_netmask+0x28>
  63016. 8019a02: 2300 movs r3, #0
  63017. 8019a04: 68fa ldr r2, [r7, #12]
  63018. 8019a06: 6093 str r3, [r2, #8]
  63019. netif->name[0], netif->name[1],
  63020. ip4_addr1_16(netif_ip4_netmask(netif)),
  63021. ip4_addr2_16(netif_ip4_netmask(netif)),
  63022. ip4_addr3_16(netif_ip4_netmask(netif)),
  63023. ip4_addr4_16(netif_ip4_netmask(netif))));
  63024. return 1; /* netmask changed */
  63025. 8019a08: 2301 movs r3, #1
  63026. 8019a0a: e000 b.n 8019a0e <netif_do_set_netmask+0x32>
  63027. }
  63028. return 0; /* netmask unchanged */
  63029. 8019a0c: 2300 movs r3, #0
  63030. }
  63031. 8019a0e: 4618 mov r0, r3
  63032. 8019a10: 3714 adds r7, #20
  63033. 8019a12: 46bd mov sp, r7
  63034. 8019a14: f85d 7b04 ldr.w r7, [sp], #4
  63035. 8019a18: 4770 bx lr
  63036. 08019a1a <netif_do_set_gw>:
  63037. }
  63038. }
  63039. static int
  63040. netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw)
  63041. {
  63042. 8019a1a: b480 push {r7}
  63043. 8019a1c: b085 sub sp, #20
  63044. 8019a1e: af00 add r7, sp, #0
  63045. 8019a20: 60f8 str r0, [r7, #12]
  63046. 8019a22: 60b9 str r1, [r7, #8]
  63047. 8019a24: 607a str r2, [r7, #4]
  63048. /* address is actually being changed? */
  63049. if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) {
  63050. 8019a26: 68bb ldr r3, [r7, #8]
  63051. 8019a28: 681a ldr r2, [r3, #0]
  63052. 8019a2a: 68fb ldr r3, [r7, #12]
  63053. 8019a2c: 330c adds r3, #12
  63054. 8019a2e: 681b ldr r3, [r3, #0]
  63055. 8019a30: 429a cmp r2, r3
  63056. 8019a32: d00a beq.n 8019a4a <netif_do_set_gw+0x30>
  63057. ip_addr_copy(*old_gw, *netif_ip_gw4(netif));
  63058. #else
  63059. LWIP_UNUSED_ARG(old_gw);
  63060. #endif
  63061. ip4_addr_set(ip_2_ip4(&netif->gw), gw);
  63062. 8019a34: 68bb ldr r3, [r7, #8]
  63063. 8019a36: 2b00 cmp r3, #0
  63064. 8019a38: d002 beq.n 8019a40 <netif_do_set_gw+0x26>
  63065. 8019a3a: 68bb ldr r3, [r7, #8]
  63066. 8019a3c: 681b ldr r3, [r3, #0]
  63067. 8019a3e: e000 b.n 8019a42 <netif_do_set_gw+0x28>
  63068. 8019a40: 2300 movs r3, #0
  63069. 8019a42: 68fa ldr r2, [r7, #12]
  63070. 8019a44: 60d3 str r3, [r2, #12]
  63071. netif->name[0], netif->name[1],
  63072. ip4_addr1_16(netif_ip4_gw(netif)),
  63073. ip4_addr2_16(netif_ip4_gw(netif)),
  63074. ip4_addr3_16(netif_ip4_gw(netif)),
  63075. ip4_addr4_16(netif_ip4_gw(netif))));
  63076. return 1; /* gateway changed */
  63077. 8019a46: 2301 movs r3, #1
  63078. 8019a48: e000 b.n 8019a4c <netif_do_set_gw+0x32>
  63079. }
  63080. return 0; /* gateway unchanged */
  63081. 8019a4a: 2300 movs r3, #0
  63082. }
  63083. 8019a4c: 4618 mov r0, r3
  63084. 8019a4e: 3714 adds r7, #20
  63085. 8019a50: 46bd mov sp, r7
  63086. 8019a52: f85d 7b04 ldr.w r7, [sp], #4
  63087. 8019a56: 4770 bx lr
  63088. 08019a58 <netif_set_addr>:
  63089. * @param gw the new default gateway
  63090. */
  63091. void
  63092. netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask,
  63093. const ip4_addr_t *gw)
  63094. {
  63095. 8019a58: b580 push {r7, lr}
  63096. 8019a5a: b088 sub sp, #32
  63097. 8019a5c: af00 add r7, sp, #0
  63098. 8019a5e: 60f8 str r0, [r7, #12]
  63099. 8019a60: 60b9 str r1, [r7, #8]
  63100. 8019a62: 607a str r2, [r7, #4]
  63101. 8019a64: 603b str r3, [r7, #0]
  63102. ip_addr_t old_nm_val;
  63103. ip_addr_t old_gw_val;
  63104. ip_addr_t *old_nm = &old_nm_val;
  63105. ip_addr_t *old_gw = &old_gw_val;
  63106. #else
  63107. ip_addr_t *old_nm = NULL;
  63108. 8019a66: 2300 movs r3, #0
  63109. 8019a68: 61fb str r3, [r7, #28]
  63110. ip_addr_t *old_gw = NULL;
  63111. 8019a6a: 2300 movs r3, #0
  63112. 8019a6c: 61bb str r3, [r7, #24]
  63113. #endif
  63114. ip_addr_t old_addr;
  63115. int remove;
  63116. LWIP_ASSERT_CORE_LOCKED();
  63117. 8019a6e: f7f6 fd69 bl 8010544 <sys_check_core_locking>
  63118. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  63119. if (ipaddr == NULL) {
  63120. 8019a72: 68bb ldr r3, [r7, #8]
  63121. 8019a74: 2b00 cmp r3, #0
  63122. 8019a76: d101 bne.n 8019a7c <netif_set_addr+0x24>
  63123. ipaddr = IP4_ADDR_ANY4;
  63124. 8019a78: 4b1c ldr r3, [pc, #112] @ (8019aec <netif_set_addr+0x94>)
  63125. 8019a7a: 60bb str r3, [r7, #8]
  63126. }
  63127. if (netmask == NULL) {
  63128. 8019a7c: 687b ldr r3, [r7, #4]
  63129. 8019a7e: 2b00 cmp r3, #0
  63130. 8019a80: d101 bne.n 8019a86 <netif_set_addr+0x2e>
  63131. netmask = IP4_ADDR_ANY4;
  63132. 8019a82: 4b1a ldr r3, [pc, #104] @ (8019aec <netif_set_addr+0x94>)
  63133. 8019a84: 607b str r3, [r7, #4]
  63134. }
  63135. if (gw == NULL) {
  63136. 8019a86: 683b ldr r3, [r7, #0]
  63137. 8019a88: 2b00 cmp r3, #0
  63138. 8019a8a: d101 bne.n 8019a90 <netif_set_addr+0x38>
  63139. gw = IP4_ADDR_ANY4;
  63140. 8019a8c: 4b17 ldr r3, [pc, #92] @ (8019aec <netif_set_addr+0x94>)
  63141. 8019a8e: 603b str r3, [r7, #0]
  63142. }
  63143. remove = ip4_addr_isany(ipaddr);
  63144. 8019a90: 68bb ldr r3, [r7, #8]
  63145. 8019a92: 2b00 cmp r3, #0
  63146. 8019a94: d003 beq.n 8019a9e <netif_set_addr+0x46>
  63147. 8019a96: 68bb ldr r3, [r7, #8]
  63148. 8019a98: 681b ldr r3, [r3, #0]
  63149. 8019a9a: 2b00 cmp r3, #0
  63150. 8019a9c: d101 bne.n 8019aa2 <netif_set_addr+0x4a>
  63151. 8019a9e: 2301 movs r3, #1
  63152. 8019aa0: e000 b.n 8019aa4 <netif_set_addr+0x4c>
  63153. 8019aa2: 2300 movs r3, #0
  63154. 8019aa4: 617b str r3, [r7, #20]
  63155. if (remove) {
  63156. 8019aa6: 697b ldr r3, [r7, #20]
  63157. 8019aa8: 2b00 cmp r3, #0
  63158. 8019aaa: d006 beq.n 8019aba <netif_set_addr+0x62>
  63159. /* when removing an address, we have to remove it *before* changing netmask/gw
  63160. to ensure that tcp RST segment can be sent correctly */
  63161. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  63162. 8019aac: f107 0310 add.w r3, r7, #16
  63163. 8019ab0: 461a mov r2, r3
  63164. 8019ab2: 68b9 ldr r1, [r7, #8]
  63165. 8019ab4: 68f8 ldr r0, [r7, #12]
  63166. 8019ab6: f7ff ff47 bl 8019948 <netif_do_set_ipaddr>
  63167. change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED;
  63168. cb_args.ipv4_changed.old_address = &old_addr;
  63169. #endif
  63170. }
  63171. }
  63172. if (netif_do_set_netmask(netif, netmask, old_nm)) {
  63173. 8019aba: 69fa ldr r2, [r7, #28]
  63174. 8019abc: 6879 ldr r1, [r7, #4]
  63175. 8019abe: 68f8 ldr r0, [r7, #12]
  63176. 8019ac0: f7ff ff8c bl 80199dc <netif_do_set_netmask>
  63177. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  63178. change_reason |= LWIP_NSC_IPV4_NETMASK_CHANGED;
  63179. cb_args.ipv4_changed.old_netmask = old_nm;
  63180. #endif
  63181. }
  63182. if (netif_do_set_gw(netif, gw, old_gw)) {
  63183. 8019ac4: 69ba ldr r2, [r7, #24]
  63184. 8019ac6: 6839 ldr r1, [r7, #0]
  63185. 8019ac8: 68f8 ldr r0, [r7, #12]
  63186. 8019aca: f7ff ffa6 bl 8019a1a <netif_do_set_gw>
  63187. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  63188. change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED;
  63189. cb_args.ipv4_changed.old_gw = old_gw;
  63190. #endif
  63191. }
  63192. if (!remove) {
  63193. 8019ace: 697b ldr r3, [r7, #20]
  63194. 8019ad0: 2b00 cmp r3, #0
  63195. 8019ad2: d106 bne.n 8019ae2 <netif_set_addr+0x8a>
  63196. /* set ipaddr last to ensure netmask/gw have been set when status callback is called */
  63197. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  63198. 8019ad4: f107 0310 add.w r3, r7, #16
  63199. 8019ad8: 461a mov r2, r3
  63200. 8019ada: 68b9 ldr r1, [r7, #8]
  63201. 8019adc: 68f8 ldr r0, [r7, #12]
  63202. 8019ade: f7ff ff33 bl 8019948 <netif_do_set_ipaddr>
  63203. if (change_reason != LWIP_NSC_NONE) {
  63204. change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED;
  63205. netif_invoke_ext_callback(netif, change_reason, &cb_args);
  63206. }
  63207. #endif
  63208. }
  63209. 8019ae2: bf00 nop
  63210. 8019ae4: 3720 adds r7, #32
  63211. 8019ae6: 46bd mov sp, r7
  63212. 8019ae8: bd80 pop {r7, pc}
  63213. 8019aea: bf00 nop
  63214. 8019aec: 08030c68 .word 0x08030c68
  63215. 08019af0 <netif_set_default>:
  63216. *
  63217. * @param netif the default network interface
  63218. */
  63219. void
  63220. netif_set_default(struct netif *netif)
  63221. {
  63222. 8019af0: b580 push {r7, lr}
  63223. 8019af2: b082 sub sp, #8
  63224. 8019af4: af00 add r7, sp, #0
  63225. 8019af6: 6078 str r0, [r7, #4]
  63226. LWIP_ASSERT_CORE_LOCKED();
  63227. 8019af8: f7f6 fd24 bl 8010544 <sys_check_core_locking>
  63228. mib2_remove_route_ip4(1, netif);
  63229. } else {
  63230. /* install default route */
  63231. mib2_add_route_ip4(1, netif);
  63232. }
  63233. netif_default = netif;
  63234. 8019afc: 4a03 ldr r2, [pc, #12] @ (8019b0c <netif_set_default+0x1c>)
  63235. 8019afe: 687b ldr r3, [r7, #4]
  63236. 8019b00: 6013 str r3, [r2, #0]
  63237. LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n",
  63238. netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\''));
  63239. }
  63240. 8019b02: bf00 nop
  63241. 8019b04: 3708 adds r7, #8
  63242. 8019b06: 46bd mov sp, r7
  63243. 8019b08: bd80 pop {r7, pc}
  63244. 8019b0a: bf00 nop
  63245. 8019b0c: 2402ae80 .word 0x2402ae80
  63246. 08019b10 <netif_set_up>:
  63247. * Bring an interface up, available for processing
  63248. * traffic.
  63249. */
  63250. void
  63251. netif_set_up(struct netif *netif)
  63252. {
  63253. 8019b10: b580 push {r7, lr}
  63254. 8019b12: b082 sub sp, #8
  63255. 8019b14: af00 add r7, sp, #0
  63256. 8019b16: 6078 str r0, [r7, #4]
  63257. LWIP_ASSERT_CORE_LOCKED();
  63258. 8019b18: f7f6 fd14 bl 8010544 <sys_check_core_locking>
  63259. LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return);
  63260. 8019b1c: 687b ldr r3, [r7, #4]
  63261. 8019b1e: 2b00 cmp r3, #0
  63262. 8019b20: d107 bne.n 8019b32 <netif_set_up+0x22>
  63263. 8019b22: 4b0f ldr r3, [pc, #60] @ (8019b60 <netif_set_up+0x50>)
  63264. 8019b24: f44f 7254 mov.w r2, #848 @ 0x350
  63265. 8019b28: 490e ldr r1, [pc, #56] @ (8019b64 <netif_set_up+0x54>)
  63266. 8019b2a: 480f ldr r0, [pc, #60] @ (8019b68 <netif_set_up+0x58>)
  63267. 8019b2c: f00f ff56 bl 80299dc <iprintf>
  63268. 8019b30: e013 b.n 8019b5a <netif_set_up+0x4a>
  63269. if (!(netif->flags & NETIF_FLAG_UP)) {
  63270. 8019b32: 687b ldr r3, [r7, #4]
  63271. 8019b34: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63272. 8019b38: f003 0301 and.w r3, r3, #1
  63273. 8019b3c: 2b00 cmp r3, #0
  63274. 8019b3e: d10c bne.n 8019b5a <netif_set_up+0x4a>
  63275. netif_set_flags(netif, NETIF_FLAG_UP);
  63276. 8019b40: 687b ldr r3, [r7, #4]
  63277. 8019b42: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63278. 8019b46: f043 0301 orr.w r3, r3, #1
  63279. 8019b4a: b2da uxtb r2, r3
  63280. 8019b4c: 687b ldr r3, [r7, #4]
  63281. 8019b4e: f883 2031 strb.w r2, [r3, #49] @ 0x31
  63282. args.status_changed.state = 1;
  63283. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  63284. }
  63285. #endif
  63286. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  63287. 8019b52: 2103 movs r1, #3
  63288. 8019b54: 6878 ldr r0, [r7, #4]
  63289. 8019b56: f000 f809 bl 8019b6c <netif_issue_reports>
  63290. #if LWIP_IPV6
  63291. nd6_restart_netif(netif);
  63292. #endif /* LWIP_IPV6 */
  63293. }
  63294. }
  63295. 8019b5a: 3708 adds r7, #8
  63296. 8019b5c: 46bd mov sp, r7
  63297. 8019b5e: bd80 pop {r7, pc}
  63298. 8019b60: 0802dec0 .word 0x0802dec0
  63299. 8019b64: 0802e048 .word 0x0802e048
  63300. 8019b68: 0802df10 .word 0x0802df10
  63301. 08019b6c <netif_issue_reports>:
  63302. /** Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change
  63303. */
  63304. static void
  63305. netif_issue_reports(struct netif *netif, u8_t report_type)
  63306. {
  63307. 8019b6c: b580 push {r7, lr}
  63308. 8019b6e: b082 sub sp, #8
  63309. 8019b70: af00 add r7, sp, #0
  63310. 8019b72: 6078 str r0, [r7, #4]
  63311. 8019b74: 460b mov r3, r1
  63312. 8019b76: 70fb strb r3, [r7, #3]
  63313. LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL);
  63314. 8019b78: 687b ldr r3, [r7, #4]
  63315. 8019b7a: 2b00 cmp r3, #0
  63316. 8019b7c: d106 bne.n 8019b8c <netif_issue_reports+0x20>
  63317. 8019b7e: 4b18 ldr r3, [pc, #96] @ (8019be0 <netif_issue_reports+0x74>)
  63318. 8019b80: f240 326d movw r2, #877 @ 0x36d
  63319. 8019b84: 4917 ldr r1, [pc, #92] @ (8019be4 <netif_issue_reports+0x78>)
  63320. 8019b86: 4818 ldr r0, [pc, #96] @ (8019be8 <netif_issue_reports+0x7c>)
  63321. 8019b88: f00f ff28 bl 80299dc <iprintf>
  63322. /* Only send reports when both link and admin states are up */
  63323. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  63324. 8019b8c: 687b ldr r3, [r7, #4]
  63325. 8019b8e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63326. 8019b92: f003 0304 and.w r3, r3, #4
  63327. 8019b96: 2b00 cmp r3, #0
  63328. 8019b98: d01e beq.n 8019bd8 <netif_issue_reports+0x6c>
  63329. !(netif->flags & NETIF_FLAG_UP)) {
  63330. 8019b9a: 687b ldr r3, [r7, #4]
  63331. 8019b9c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63332. 8019ba0: f003 0301 and.w r3, r3, #1
  63333. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  63334. 8019ba4: 2b00 cmp r3, #0
  63335. 8019ba6: d017 beq.n 8019bd8 <netif_issue_reports+0x6c>
  63336. return;
  63337. }
  63338. #if LWIP_IPV4
  63339. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  63340. 8019ba8: 78fb ldrb r3, [r7, #3]
  63341. 8019baa: f003 0301 and.w r3, r3, #1
  63342. 8019bae: 2b00 cmp r3, #0
  63343. 8019bb0: d013 beq.n 8019bda <netif_issue_reports+0x6e>
  63344. !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  63345. 8019bb2: 687b ldr r3, [r7, #4]
  63346. 8019bb4: 3304 adds r3, #4
  63347. 8019bb6: 681b ldr r3, [r3, #0]
  63348. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  63349. 8019bb8: 2b00 cmp r3, #0
  63350. 8019bba: d00e beq.n 8019bda <netif_issue_reports+0x6e>
  63351. #if LWIP_ARP
  63352. /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */
  63353. if (netif->flags & (NETIF_FLAG_ETHARP)) {
  63354. 8019bbc: 687b ldr r3, [r7, #4]
  63355. 8019bbe: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63356. 8019bc2: f003 0308 and.w r3, r3, #8
  63357. 8019bc6: 2b00 cmp r3, #0
  63358. 8019bc8: d007 beq.n 8019bda <netif_issue_reports+0x6e>
  63359. etharp_gratuitous(netif);
  63360. 8019bca: 687b ldr r3, [r7, #4]
  63361. 8019bcc: 3304 adds r3, #4
  63362. 8019bce: 4619 mov r1, r3
  63363. 8019bd0: 6878 ldr r0, [r7, #4]
  63364. 8019bd2: f00a fd2b bl 802462c <etharp_request>
  63365. 8019bd6: e000 b.n 8019bda <netif_issue_reports+0x6e>
  63366. return;
  63367. 8019bd8: bf00 nop
  63368. /* send mld memberships */
  63369. mld6_report_groups(netif);
  63370. #endif /* LWIP_IPV6_MLD */
  63371. }
  63372. #endif /* LWIP_IPV6 */
  63373. }
  63374. 8019bda: 3708 adds r7, #8
  63375. 8019bdc: 46bd mov sp, r7
  63376. 8019bde: bd80 pop {r7, pc}
  63377. 8019be0: 0802dec0 .word 0x0802dec0
  63378. 8019be4: 0802e064 .word 0x0802e064
  63379. 8019be8: 0802df10 .word 0x0802df10
  63380. 08019bec <netif_set_down>:
  63381. * @ingroup netif
  63382. * Bring an interface down, disabling any traffic processing.
  63383. */
  63384. void
  63385. netif_set_down(struct netif *netif)
  63386. {
  63387. 8019bec: b580 push {r7, lr}
  63388. 8019bee: b082 sub sp, #8
  63389. 8019bf0: af00 add r7, sp, #0
  63390. 8019bf2: 6078 str r0, [r7, #4]
  63391. LWIP_ASSERT_CORE_LOCKED();
  63392. 8019bf4: f7f6 fca6 bl 8010544 <sys_check_core_locking>
  63393. LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return);
  63394. 8019bf8: 687b ldr r3, [r7, #4]
  63395. 8019bfa: 2b00 cmp r3, #0
  63396. 8019bfc: d107 bne.n 8019c0e <netif_set_down+0x22>
  63397. 8019bfe: 4b12 ldr r3, [pc, #72] @ (8019c48 <netif_set_down+0x5c>)
  63398. 8019c00: f240 329b movw r2, #923 @ 0x39b
  63399. 8019c04: 4911 ldr r1, [pc, #68] @ (8019c4c <netif_set_down+0x60>)
  63400. 8019c06: 4812 ldr r0, [pc, #72] @ (8019c50 <netif_set_down+0x64>)
  63401. 8019c08: f00f fee8 bl 80299dc <iprintf>
  63402. 8019c0c: e019 b.n 8019c42 <netif_set_down+0x56>
  63403. if (netif->flags & NETIF_FLAG_UP) {
  63404. 8019c0e: 687b ldr r3, [r7, #4]
  63405. 8019c10: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63406. 8019c14: f003 0301 and.w r3, r3, #1
  63407. 8019c18: 2b00 cmp r3, #0
  63408. 8019c1a: d012 beq.n 8019c42 <netif_set_down+0x56>
  63409. args.status_changed.state = 0;
  63410. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  63411. }
  63412. #endif
  63413. netif_clear_flags(netif, NETIF_FLAG_UP);
  63414. 8019c1c: 687b ldr r3, [r7, #4]
  63415. 8019c1e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63416. 8019c22: f023 0301 bic.w r3, r3, #1
  63417. 8019c26: b2da uxtb r2, r3
  63418. 8019c28: 687b ldr r3, [r7, #4]
  63419. 8019c2a: f883 2031 strb.w r2, [r3, #49] @ 0x31
  63420. MIB2_COPY_SYSUPTIME_TO(&netif->ts);
  63421. #if LWIP_IPV4 && LWIP_ARP
  63422. if (netif->flags & NETIF_FLAG_ETHARP) {
  63423. 8019c2e: 687b ldr r3, [r7, #4]
  63424. 8019c30: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63425. 8019c34: f003 0308 and.w r3, r3, #8
  63426. 8019c38: 2b00 cmp r3, #0
  63427. 8019c3a: d002 beq.n 8019c42 <netif_set_down+0x56>
  63428. etharp_cleanup_netif(netif);
  63429. 8019c3c: 6878 ldr r0, [r7, #4]
  63430. 8019c3e: f00a f8ab bl 8023d98 <etharp_cleanup_netif>
  63431. nd6_cleanup_netif(netif);
  63432. #endif /* LWIP_IPV6 */
  63433. NETIF_STATUS_CALLBACK(netif);
  63434. }
  63435. }
  63436. 8019c42: 3708 adds r7, #8
  63437. 8019c44: 46bd mov sp, r7
  63438. 8019c46: bd80 pop {r7, pc}
  63439. 8019c48: 0802dec0 .word 0x0802dec0
  63440. 8019c4c: 0802e088 .word 0x0802e088
  63441. 8019c50: 0802df10 .word 0x0802df10
  63442. 08019c54 <netif_set_link_up>:
  63443. * @ingroup netif
  63444. * Called by a driver when its link goes up
  63445. */
  63446. void
  63447. netif_set_link_up(struct netif *netif)
  63448. {
  63449. 8019c54: b580 push {r7, lr}
  63450. 8019c56: b082 sub sp, #8
  63451. 8019c58: af00 add r7, sp, #0
  63452. 8019c5a: 6078 str r0, [r7, #4]
  63453. LWIP_ASSERT_CORE_LOCKED();
  63454. 8019c5c: f7f6 fc72 bl 8010544 <sys_check_core_locking>
  63455. LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return);
  63456. 8019c60: 687b ldr r3, [r7, #4]
  63457. 8019c62: 2b00 cmp r3, #0
  63458. 8019c64: d107 bne.n 8019c76 <netif_set_link_up+0x22>
  63459. 8019c66: 4b15 ldr r3, [pc, #84] @ (8019cbc <netif_set_link_up+0x68>)
  63460. 8019c68: f44f 7278 mov.w r2, #992 @ 0x3e0
  63461. 8019c6c: 4914 ldr r1, [pc, #80] @ (8019cc0 <netif_set_link_up+0x6c>)
  63462. 8019c6e: 4815 ldr r0, [pc, #84] @ (8019cc4 <netif_set_link_up+0x70>)
  63463. 8019c70: f00f feb4 bl 80299dc <iprintf>
  63464. 8019c74: e01e b.n 8019cb4 <netif_set_link_up+0x60>
  63465. if (!(netif->flags & NETIF_FLAG_LINK_UP)) {
  63466. 8019c76: 687b ldr r3, [r7, #4]
  63467. 8019c78: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63468. 8019c7c: f003 0304 and.w r3, r3, #4
  63469. 8019c80: 2b00 cmp r3, #0
  63470. 8019c82: d117 bne.n 8019cb4 <netif_set_link_up+0x60>
  63471. netif_set_flags(netif, NETIF_FLAG_LINK_UP);
  63472. 8019c84: 687b ldr r3, [r7, #4]
  63473. 8019c86: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63474. 8019c8a: f043 0304 orr.w r3, r3, #4
  63475. 8019c8e: b2da uxtb r2, r3
  63476. 8019c90: 687b ldr r3, [r7, #4]
  63477. 8019c92: f883 2031 strb.w r2, [r3, #49] @ 0x31
  63478. #if LWIP_DHCP
  63479. dhcp_network_changed(netif);
  63480. 8019c96: 6878 ldr r0, [r7, #4]
  63481. 8019c98: f008 faaa bl 80221f0 <dhcp_network_changed>
  63482. #if LWIP_AUTOIP
  63483. autoip_network_changed(netif);
  63484. #endif /* LWIP_AUTOIP */
  63485. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  63486. 8019c9c: 2103 movs r1, #3
  63487. 8019c9e: 6878 ldr r0, [r7, #4]
  63488. 8019ca0: f7ff ff64 bl 8019b6c <netif_issue_reports>
  63489. #if LWIP_IPV6
  63490. nd6_restart_netif(netif);
  63491. #endif /* LWIP_IPV6 */
  63492. NETIF_LINK_CALLBACK(netif);
  63493. 8019ca4: 687b ldr r3, [r7, #4]
  63494. 8019ca6: 69db ldr r3, [r3, #28]
  63495. 8019ca8: 2b00 cmp r3, #0
  63496. 8019caa: d003 beq.n 8019cb4 <netif_set_link_up+0x60>
  63497. 8019cac: 687b ldr r3, [r7, #4]
  63498. 8019cae: 69db ldr r3, [r3, #28]
  63499. 8019cb0: 6878 ldr r0, [r7, #4]
  63500. 8019cb2: 4798 blx r3
  63501. args.link_changed.state = 1;
  63502. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  63503. }
  63504. #endif
  63505. }
  63506. }
  63507. 8019cb4: 3708 adds r7, #8
  63508. 8019cb6: 46bd mov sp, r7
  63509. 8019cb8: bd80 pop {r7, pc}
  63510. 8019cba: bf00 nop
  63511. 8019cbc: 0802dec0 .word 0x0802dec0
  63512. 8019cc0: 0802e0a8 .word 0x0802e0a8
  63513. 8019cc4: 0802df10 .word 0x0802df10
  63514. 08019cc8 <netif_set_link_down>:
  63515. * @ingroup netif
  63516. * Called by a driver when its link goes down
  63517. */
  63518. void
  63519. netif_set_link_down(struct netif *netif)
  63520. {
  63521. 8019cc8: b580 push {r7, lr}
  63522. 8019cca: b082 sub sp, #8
  63523. 8019ccc: af00 add r7, sp, #0
  63524. 8019cce: 6078 str r0, [r7, #4]
  63525. LWIP_ASSERT_CORE_LOCKED();
  63526. 8019cd0: f7f6 fc38 bl 8010544 <sys_check_core_locking>
  63527. LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return);
  63528. 8019cd4: 687b ldr r3, [r7, #4]
  63529. 8019cd6: 2b00 cmp r3, #0
  63530. 8019cd8: d107 bne.n 8019cea <netif_set_link_down+0x22>
  63531. 8019cda: 4b11 ldr r3, [pc, #68] @ (8019d20 <netif_set_link_down+0x58>)
  63532. 8019cdc: f240 4206 movw r2, #1030 @ 0x406
  63533. 8019ce0: 4910 ldr r1, [pc, #64] @ (8019d24 <netif_set_link_down+0x5c>)
  63534. 8019ce2: 4811 ldr r0, [pc, #68] @ (8019d28 <netif_set_link_down+0x60>)
  63535. 8019ce4: f00f fe7a bl 80299dc <iprintf>
  63536. 8019ce8: e017 b.n 8019d1a <netif_set_link_down+0x52>
  63537. if (netif->flags & NETIF_FLAG_LINK_UP) {
  63538. 8019cea: 687b ldr r3, [r7, #4]
  63539. 8019cec: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63540. 8019cf0: f003 0304 and.w r3, r3, #4
  63541. 8019cf4: 2b00 cmp r3, #0
  63542. 8019cf6: d010 beq.n 8019d1a <netif_set_link_down+0x52>
  63543. netif_clear_flags(netif, NETIF_FLAG_LINK_UP);
  63544. 8019cf8: 687b ldr r3, [r7, #4]
  63545. 8019cfa: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  63546. 8019cfe: f023 0304 bic.w r3, r3, #4
  63547. 8019d02: b2da uxtb r2, r3
  63548. 8019d04: 687b ldr r3, [r7, #4]
  63549. 8019d06: f883 2031 strb.w r2, [r3, #49] @ 0x31
  63550. NETIF_LINK_CALLBACK(netif);
  63551. 8019d0a: 687b ldr r3, [r7, #4]
  63552. 8019d0c: 69db ldr r3, [r3, #28]
  63553. 8019d0e: 2b00 cmp r3, #0
  63554. 8019d10: d003 beq.n 8019d1a <netif_set_link_down+0x52>
  63555. 8019d12: 687b ldr r3, [r7, #4]
  63556. 8019d14: 69db ldr r3, [r3, #28]
  63557. 8019d16: 6878 ldr r0, [r7, #4]
  63558. 8019d18: 4798 blx r3
  63559. args.link_changed.state = 0;
  63560. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  63561. }
  63562. #endif
  63563. }
  63564. }
  63565. 8019d1a: 3708 adds r7, #8
  63566. 8019d1c: 46bd mov sp, r7
  63567. 8019d1e: bd80 pop {r7, pc}
  63568. 8019d20: 0802dec0 .word 0x0802dec0
  63569. 8019d24: 0802e0cc .word 0x0802e0cc
  63570. 8019d28: 0802df10 .word 0x0802df10
  63571. 08019d2c <netif_set_link_callback>:
  63572. * @ingroup netif
  63573. * Set callback to be called when link is brought up/down
  63574. */
  63575. void
  63576. netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback)
  63577. {
  63578. 8019d2c: b580 push {r7, lr}
  63579. 8019d2e: b082 sub sp, #8
  63580. 8019d30: af00 add r7, sp, #0
  63581. 8019d32: 6078 str r0, [r7, #4]
  63582. 8019d34: 6039 str r1, [r7, #0]
  63583. LWIP_ASSERT_CORE_LOCKED();
  63584. 8019d36: f7f6 fc05 bl 8010544 <sys_check_core_locking>
  63585. if (netif) {
  63586. 8019d3a: 687b ldr r3, [r7, #4]
  63587. 8019d3c: 2b00 cmp r3, #0
  63588. 8019d3e: d002 beq.n 8019d46 <netif_set_link_callback+0x1a>
  63589. netif->link_callback = link_callback;
  63590. 8019d40: 687b ldr r3, [r7, #4]
  63591. 8019d42: 683a ldr r2, [r7, #0]
  63592. 8019d44: 61da str r2, [r3, #28]
  63593. }
  63594. }
  63595. 8019d46: bf00 nop
  63596. 8019d48: 3708 adds r7, #8
  63597. 8019d4a: 46bd mov sp, r7
  63598. 8019d4c: bd80 pop {r7, pc}
  63599. 08019d4e <netif_null_output_ip4>:
  63600. #if LWIP_IPV4
  63601. /** Dummy IPv4 output function for netifs not supporting IPv4
  63602. */
  63603. static err_t
  63604. netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
  63605. {
  63606. 8019d4e: b480 push {r7}
  63607. 8019d50: b085 sub sp, #20
  63608. 8019d52: af00 add r7, sp, #0
  63609. 8019d54: 60f8 str r0, [r7, #12]
  63610. 8019d56: 60b9 str r1, [r7, #8]
  63611. 8019d58: 607a str r2, [r7, #4]
  63612. LWIP_UNUSED_ARG(netif);
  63613. LWIP_UNUSED_ARG(p);
  63614. LWIP_UNUSED_ARG(ipaddr);
  63615. return ERR_IF;
  63616. 8019d5a: f06f 030b mvn.w r3, #11
  63617. }
  63618. 8019d5e: 4618 mov r0, r3
  63619. 8019d60: 3714 adds r7, #20
  63620. 8019d62: 46bd mov sp, r7
  63621. 8019d64: f85d 7b04 ldr.w r7, [sp], #4
  63622. 8019d68: 4770 bx lr
  63623. ...
  63624. 08019d6c <netif_get_by_index>:
  63625. *
  63626. * @param idx index of netif to find
  63627. */
  63628. struct netif *
  63629. netif_get_by_index(u8_t idx)
  63630. {
  63631. 8019d6c: b580 push {r7, lr}
  63632. 8019d6e: b084 sub sp, #16
  63633. 8019d70: af00 add r7, sp, #0
  63634. 8019d72: 4603 mov r3, r0
  63635. 8019d74: 71fb strb r3, [r7, #7]
  63636. struct netif *netif;
  63637. LWIP_ASSERT_CORE_LOCKED();
  63638. 8019d76: f7f6 fbe5 bl 8010544 <sys_check_core_locking>
  63639. if (idx != NETIF_NO_INDEX) {
  63640. 8019d7a: 79fb ldrb r3, [r7, #7]
  63641. 8019d7c: 2b00 cmp r3, #0
  63642. 8019d7e: d013 beq.n 8019da8 <netif_get_by_index+0x3c>
  63643. NETIF_FOREACH(netif) {
  63644. 8019d80: 4b0c ldr r3, [pc, #48] @ (8019db4 <netif_get_by_index+0x48>)
  63645. 8019d82: 681b ldr r3, [r3, #0]
  63646. 8019d84: 60fb str r3, [r7, #12]
  63647. 8019d86: e00c b.n 8019da2 <netif_get_by_index+0x36>
  63648. if (idx == netif_get_index(netif)) {
  63649. 8019d88: 68fb ldr r3, [r7, #12]
  63650. 8019d8a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  63651. 8019d8e: 3301 adds r3, #1
  63652. 8019d90: b2db uxtb r3, r3
  63653. 8019d92: 79fa ldrb r2, [r7, #7]
  63654. 8019d94: 429a cmp r2, r3
  63655. 8019d96: d101 bne.n 8019d9c <netif_get_by_index+0x30>
  63656. return netif; /* found! */
  63657. 8019d98: 68fb ldr r3, [r7, #12]
  63658. 8019d9a: e006 b.n 8019daa <netif_get_by_index+0x3e>
  63659. NETIF_FOREACH(netif) {
  63660. 8019d9c: 68fb ldr r3, [r7, #12]
  63661. 8019d9e: 681b ldr r3, [r3, #0]
  63662. 8019da0: 60fb str r3, [r7, #12]
  63663. 8019da2: 68fb ldr r3, [r7, #12]
  63664. 8019da4: 2b00 cmp r3, #0
  63665. 8019da6: d1ef bne.n 8019d88 <netif_get_by_index+0x1c>
  63666. }
  63667. }
  63668. }
  63669. return NULL;
  63670. 8019da8: 2300 movs r3, #0
  63671. }
  63672. 8019daa: 4618 mov r0, r3
  63673. 8019dac: 3710 adds r7, #16
  63674. 8019dae: 46bd mov sp, r7
  63675. 8019db0: bd80 pop {r7, pc}
  63676. 8019db2: bf00 nop
  63677. 8019db4: 2402ae7c .word 0x2402ae7c
  63678. 08019db8 <pbuf_free_ooseq>:
  63679. #if !NO_SYS
  63680. static
  63681. #endif /* !NO_SYS */
  63682. void
  63683. pbuf_free_ooseq(void)
  63684. {
  63685. 8019db8: b580 push {r7, lr}
  63686. 8019dba: b082 sub sp, #8
  63687. 8019dbc: af00 add r7, sp, #0
  63688. struct tcp_pcb *pcb;
  63689. SYS_ARCH_SET(pbuf_free_ooseq_pending, 0);
  63690. 8019dbe: f00c fb77 bl 80264b0 <sys_arch_protect>
  63691. 8019dc2: 6038 str r0, [r7, #0]
  63692. 8019dc4: 4b0d ldr r3, [pc, #52] @ (8019dfc <pbuf_free_ooseq+0x44>)
  63693. 8019dc6: 2200 movs r2, #0
  63694. 8019dc8: 701a strb r2, [r3, #0]
  63695. 8019dca: 6838 ldr r0, [r7, #0]
  63696. 8019dcc: f00c fb7e bl 80264cc <sys_arch_unprotect>
  63697. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  63698. 8019dd0: 4b0b ldr r3, [pc, #44] @ (8019e00 <pbuf_free_ooseq+0x48>)
  63699. 8019dd2: 681b ldr r3, [r3, #0]
  63700. 8019dd4: 607b str r3, [r7, #4]
  63701. 8019dd6: e00a b.n 8019dee <pbuf_free_ooseq+0x36>
  63702. if (pcb->ooseq != NULL) {
  63703. 8019dd8: 687b ldr r3, [r7, #4]
  63704. 8019dda: 6f5b ldr r3, [r3, #116] @ 0x74
  63705. 8019ddc: 2b00 cmp r3, #0
  63706. 8019dde: d003 beq.n 8019de8 <pbuf_free_ooseq+0x30>
  63707. /** Free the ooseq pbufs of one PCB only */
  63708. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free_ooseq: freeing out-of-sequence pbufs\n"));
  63709. tcp_free_ooseq(pcb);
  63710. 8019de0: 6878 ldr r0, [r7, #4]
  63711. 8019de2: f002 fc55 bl 801c690 <tcp_free_ooseq>
  63712. return;
  63713. 8019de6: e005 b.n 8019df4 <pbuf_free_ooseq+0x3c>
  63714. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  63715. 8019de8: 687b ldr r3, [r7, #4]
  63716. 8019dea: 68db ldr r3, [r3, #12]
  63717. 8019dec: 607b str r3, [r7, #4]
  63718. 8019dee: 687b ldr r3, [r7, #4]
  63719. 8019df0: 2b00 cmp r3, #0
  63720. 8019df2: d1f1 bne.n 8019dd8 <pbuf_free_ooseq+0x20>
  63721. }
  63722. }
  63723. }
  63724. 8019df4: 3708 adds r7, #8
  63725. 8019df6: 46bd mov sp, r7
  63726. 8019df8: bd80 pop {r7, pc}
  63727. 8019dfa: bf00 nop
  63728. 8019dfc: 2402ae85 .word 0x2402ae85
  63729. 8019e00: 2402ae94 .word 0x2402ae94
  63730. 08019e04 <pbuf_free_ooseq_callback>:
  63731. /**
  63732. * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq().
  63733. */
  63734. static void
  63735. pbuf_free_ooseq_callback(void *arg)
  63736. {
  63737. 8019e04: b580 push {r7, lr}
  63738. 8019e06: b082 sub sp, #8
  63739. 8019e08: af00 add r7, sp, #0
  63740. 8019e0a: 6078 str r0, [r7, #4]
  63741. LWIP_UNUSED_ARG(arg);
  63742. pbuf_free_ooseq();
  63743. 8019e0c: f7ff ffd4 bl 8019db8 <pbuf_free_ooseq>
  63744. }
  63745. 8019e10: bf00 nop
  63746. 8019e12: 3708 adds r7, #8
  63747. 8019e14: 46bd mov sp, r7
  63748. 8019e16: bd80 pop {r7, pc}
  63749. 08019e18 <pbuf_pool_is_empty>:
  63750. #endif /* !NO_SYS */
  63751. /** Queue a call to pbuf_free_ooseq if not already queued. */
  63752. static void
  63753. pbuf_pool_is_empty(void)
  63754. {
  63755. 8019e18: b580 push {r7, lr}
  63756. 8019e1a: b082 sub sp, #8
  63757. 8019e1c: af00 add r7, sp, #0
  63758. #ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL
  63759. SYS_ARCH_SET(pbuf_free_ooseq_pending, 1);
  63760. #else /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  63761. u8_t queued;
  63762. SYS_ARCH_DECL_PROTECT(old_level);
  63763. SYS_ARCH_PROTECT(old_level);
  63764. 8019e1e: f00c fb47 bl 80264b0 <sys_arch_protect>
  63765. 8019e22: 6078 str r0, [r7, #4]
  63766. queued = pbuf_free_ooseq_pending;
  63767. 8019e24: 4b0f ldr r3, [pc, #60] @ (8019e64 <pbuf_pool_is_empty+0x4c>)
  63768. 8019e26: 781b ldrb r3, [r3, #0]
  63769. 8019e28: 70fb strb r3, [r7, #3]
  63770. pbuf_free_ooseq_pending = 1;
  63771. 8019e2a: 4b0e ldr r3, [pc, #56] @ (8019e64 <pbuf_pool_is_empty+0x4c>)
  63772. 8019e2c: 2201 movs r2, #1
  63773. 8019e2e: 701a strb r2, [r3, #0]
  63774. SYS_ARCH_UNPROTECT(old_level);
  63775. 8019e30: 6878 ldr r0, [r7, #4]
  63776. 8019e32: f00c fb4b bl 80264cc <sys_arch_unprotect>
  63777. if (!queued) {
  63778. 8019e36: 78fb ldrb r3, [r7, #3]
  63779. 8019e38: 2b00 cmp r3, #0
  63780. 8019e3a: d10f bne.n 8019e5c <pbuf_pool_is_empty+0x44>
  63781. /* queue a call to pbuf_free_ooseq if not already queued */
  63782. PBUF_POOL_FREE_OOSEQ_QUEUE_CALL();
  63783. 8019e3c: 2100 movs r1, #0
  63784. 8019e3e: 480a ldr r0, [pc, #40] @ (8019e68 <pbuf_pool_is_empty+0x50>)
  63785. 8019e40: f7fe fdd6 bl 80189f0 <tcpip_try_callback>
  63786. 8019e44: 4603 mov r3, r0
  63787. 8019e46: 2b00 cmp r3, #0
  63788. 8019e48: d008 beq.n 8019e5c <pbuf_pool_is_empty+0x44>
  63789. 8019e4a: f00c fb31 bl 80264b0 <sys_arch_protect>
  63790. 8019e4e: 6078 str r0, [r7, #4]
  63791. 8019e50: 4b04 ldr r3, [pc, #16] @ (8019e64 <pbuf_pool_is_empty+0x4c>)
  63792. 8019e52: 2200 movs r2, #0
  63793. 8019e54: 701a strb r2, [r3, #0]
  63794. 8019e56: 6878 ldr r0, [r7, #4]
  63795. 8019e58: f00c fb38 bl 80264cc <sys_arch_unprotect>
  63796. }
  63797. #endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  63798. }
  63799. 8019e5c: bf00 nop
  63800. 8019e5e: 3708 adds r7, #8
  63801. 8019e60: 46bd mov sp, r7
  63802. 8019e62: bd80 pop {r7, pc}
  63803. 8019e64: 2402ae85 .word 0x2402ae85
  63804. 8019e68: 08019e05 .word 0x08019e05
  63805. 08019e6c <pbuf_init_alloced_pbuf>:
  63806. #endif /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */
  63807. /* Initialize members of struct pbuf after allocation */
  63808. static void
  63809. pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags)
  63810. {
  63811. 8019e6c: b480 push {r7}
  63812. 8019e6e: b085 sub sp, #20
  63813. 8019e70: af00 add r7, sp, #0
  63814. 8019e72: 60f8 str r0, [r7, #12]
  63815. 8019e74: 60b9 str r1, [r7, #8]
  63816. 8019e76: 4611 mov r1, r2
  63817. 8019e78: 461a mov r2, r3
  63818. 8019e7a: 460b mov r3, r1
  63819. 8019e7c: 80fb strh r3, [r7, #6]
  63820. 8019e7e: 4613 mov r3, r2
  63821. 8019e80: 80bb strh r3, [r7, #4]
  63822. p->next = NULL;
  63823. 8019e82: 68fb ldr r3, [r7, #12]
  63824. 8019e84: 2200 movs r2, #0
  63825. 8019e86: 601a str r2, [r3, #0]
  63826. p->payload = payload;
  63827. 8019e88: 68fb ldr r3, [r7, #12]
  63828. 8019e8a: 68ba ldr r2, [r7, #8]
  63829. 8019e8c: 605a str r2, [r3, #4]
  63830. p->tot_len = tot_len;
  63831. 8019e8e: 68fb ldr r3, [r7, #12]
  63832. 8019e90: 88fa ldrh r2, [r7, #6]
  63833. 8019e92: 811a strh r2, [r3, #8]
  63834. p->len = len;
  63835. 8019e94: 68fb ldr r3, [r7, #12]
  63836. 8019e96: 88ba ldrh r2, [r7, #4]
  63837. 8019e98: 815a strh r2, [r3, #10]
  63838. p->type_internal = (u8_t)type;
  63839. 8019e9a: 8b3b ldrh r3, [r7, #24]
  63840. 8019e9c: b2da uxtb r2, r3
  63841. 8019e9e: 68fb ldr r3, [r7, #12]
  63842. 8019ea0: 731a strb r2, [r3, #12]
  63843. p->flags = flags;
  63844. 8019ea2: 68fb ldr r3, [r7, #12]
  63845. 8019ea4: 7f3a ldrb r2, [r7, #28]
  63846. 8019ea6: 735a strb r2, [r3, #13]
  63847. p->ref = 1;
  63848. 8019ea8: 68fb ldr r3, [r7, #12]
  63849. 8019eaa: 2201 movs r2, #1
  63850. 8019eac: 739a strb r2, [r3, #14]
  63851. p->if_idx = NETIF_NO_INDEX;
  63852. 8019eae: 68fb ldr r3, [r7, #12]
  63853. 8019eb0: 2200 movs r2, #0
  63854. 8019eb2: 73da strb r2, [r3, #15]
  63855. }
  63856. 8019eb4: bf00 nop
  63857. 8019eb6: 3714 adds r7, #20
  63858. 8019eb8: 46bd mov sp, r7
  63859. 8019eba: f85d 7b04 ldr.w r7, [sp], #4
  63860. 8019ebe: 4770 bx lr
  63861. 08019ec0 <pbuf_alloc>:
  63862. * @return the allocated pbuf. If multiple pbufs where allocated, this
  63863. * is the first pbuf of a pbuf chain.
  63864. */
  63865. struct pbuf *
  63866. pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
  63867. {
  63868. 8019ec0: b580 push {r7, lr}
  63869. 8019ec2: b08c sub sp, #48 @ 0x30
  63870. 8019ec4: af02 add r7, sp, #8
  63871. 8019ec6: 4603 mov r3, r0
  63872. 8019ec8: 71fb strb r3, [r7, #7]
  63873. 8019eca: 460b mov r3, r1
  63874. 8019ecc: 80bb strh r3, [r7, #4]
  63875. 8019ece: 4613 mov r3, r2
  63876. 8019ed0: 807b strh r3, [r7, #2]
  63877. struct pbuf *p;
  63878. u16_t offset = (u16_t)layer;
  63879. 8019ed2: 79fb ldrb r3, [r7, #7]
  63880. 8019ed4: 847b strh r3, [r7, #34] @ 0x22
  63881. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length));
  63882. switch (type) {
  63883. 8019ed6: 887b ldrh r3, [r7, #2]
  63884. 8019ed8: f5b3 7f20 cmp.w r3, #640 @ 0x280
  63885. 8019edc: f000 8082 beq.w 8019fe4 <pbuf_alloc+0x124>
  63886. 8019ee0: f5b3 7f20 cmp.w r3, #640 @ 0x280
  63887. 8019ee4: f300 80c9 bgt.w 801a07a <pbuf_alloc+0x1ba>
  63888. 8019ee8: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  63889. 8019eec: d010 beq.n 8019f10 <pbuf_alloc+0x50>
  63890. 8019eee: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  63891. 8019ef2: f300 80c2 bgt.w 801a07a <pbuf_alloc+0x1ba>
  63892. 8019ef6: 2b01 cmp r3, #1
  63893. 8019ef8: d002 beq.n 8019f00 <pbuf_alloc+0x40>
  63894. 8019efa: 2b41 cmp r3, #65 @ 0x41
  63895. 8019efc: f040 80bd bne.w 801a07a <pbuf_alloc+0x1ba>
  63896. case PBUF_REF: /* fall through */
  63897. case PBUF_ROM:
  63898. p = pbuf_alloc_reference(NULL, length, type);
  63899. 8019f00: 887a ldrh r2, [r7, #2]
  63900. 8019f02: 88bb ldrh r3, [r7, #4]
  63901. 8019f04: 4619 mov r1, r3
  63902. 8019f06: 2000 movs r0, #0
  63903. 8019f08: f000 f8d2 bl 801a0b0 <pbuf_alloc_reference>
  63904. 8019f0c: 6278 str r0, [r7, #36] @ 0x24
  63905. break;
  63906. 8019f0e: e0be b.n 801a08e <pbuf_alloc+0x1ce>
  63907. case PBUF_POOL: {
  63908. struct pbuf *q, *last;
  63909. u16_t rem_len; /* remaining length */
  63910. p = NULL;
  63911. 8019f10: 2300 movs r3, #0
  63912. 8019f12: 627b str r3, [r7, #36] @ 0x24
  63913. last = NULL;
  63914. 8019f14: 2300 movs r3, #0
  63915. 8019f16: 61fb str r3, [r7, #28]
  63916. rem_len = length;
  63917. 8019f18: 88bb ldrh r3, [r7, #4]
  63918. 8019f1a: 837b strh r3, [r7, #26]
  63919. do {
  63920. u16_t qlen;
  63921. q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL);
  63922. 8019f1c: 200c movs r0, #12
  63923. 8019f1e: f7ff fb81 bl 8019624 <memp_malloc>
  63924. 8019f22: 6138 str r0, [r7, #16]
  63925. if (q == NULL) {
  63926. 8019f24: 693b ldr r3, [r7, #16]
  63927. 8019f26: 2b00 cmp r3, #0
  63928. 8019f28: d109 bne.n 8019f3e <pbuf_alloc+0x7e>
  63929. PBUF_POOL_IS_EMPTY();
  63930. 8019f2a: f7ff ff75 bl 8019e18 <pbuf_pool_is_empty>
  63931. /* free chain so far allocated */
  63932. if (p) {
  63933. 8019f2e: 6a7b ldr r3, [r7, #36] @ 0x24
  63934. 8019f30: 2b00 cmp r3, #0
  63935. 8019f32: d002 beq.n 8019f3a <pbuf_alloc+0x7a>
  63936. pbuf_free(p);
  63937. 8019f34: 6a78 ldr r0, [r7, #36] @ 0x24
  63938. 8019f36: f000 fad9 bl 801a4ec <pbuf_free>
  63939. }
  63940. /* bail out unsuccessfully */
  63941. return NULL;
  63942. 8019f3a: 2300 movs r3, #0
  63943. 8019f3c: e0a8 b.n 801a090 <pbuf_alloc+0x1d0>
  63944. }
  63945. qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)));
  63946. 8019f3e: 8c7b ldrh r3, [r7, #34] @ 0x22
  63947. 8019f40: 3303 adds r3, #3
  63948. 8019f42: b29b uxth r3, r3
  63949. 8019f44: f023 0303 bic.w r3, r3, #3
  63950. 8019f48: b29a uxth r2, r3
  63951. 8019f4a: f240 53ec movw r3, #1516 @ 0x5ec
  63952. 8019f4e: 1a9b subs r3, r3, r2
  63953. 8019f50: b29b uxth r3, r3
  63954. 8019f52: 8b7a ldrh r2, [r7, #26]
  63955. 8019f54: 4293 cmp r3, r2
  63956. 8019f56: bf28 it cs
  63957. 8019f58: 4613 movcs r3, r2
  63958. 8019f5a: 81fb strh r3, [r7, #14]
  63959. pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)),
  63960. 8019f5c: 8c7b ldrh r3, [r7, #34] @ 0x22
  63961. 8019f5e: 3310 adds r3, #16
  63962. 8019f60: 693a ldr r2, [r7, #16]
  63963. 8019f62: 4413 add r3, r2
  63964. 8019f64: 3303 adds r3, #3
  63965. 8019f66: f023 0303 bic.w r3, r3, #3
  63966. 8019f6a: 4618 mov r0, r3
  63967. 8019f6c: 89f9 ldrh r1, [r7, #14]
  63968. 8019f6e: 8b7a ldrh r2, [r7, #26]
  63969. 8019f70: 2300 movs r3, #0
  63970. 8019f72: 9301 str r3, [sp, #4]
  63971. 8019f74: 887b ldrh r3, [r7, #2]
  63972. 8019f76: 9300 str r3, [sp, #0]
  63973. 8019f78: 460b mov r3, r1
  63974. 8019f7a: 4601 mov r1, r0
  63975. 8019f7c: 6938 ldr r0, [r7, #16]
  63976. 8019f7e: f7ff ff75 bl 8019e6c <pbuf_init_alloced_pbuf>
  63977. rem_len, qlen, type, 0);
  63978. LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned",
  63979. 8019f82: 693b ldr r3, [r7, #16]
  63980. 8019f84: 685b ldr r3, [r3, #4]
  63981. 8019f86: f003 0303 and.w r3, r3, #3
  63982. 8019f8a: 2b00 cmp r3, #0
  63983. 8019f8c: d006 beq.n 8019f9c <pbuf_alloc+0xdc>
  63984. 8019f8e: 4b42 ldr r3, [pc, #264] @ (801a098 <pbuf_alloc+0x1d8>)
  63985. 8019f90: f44f 7280 mov.w r2, #256 @ 0x100
  63986. 8019f94: 4941 ldr r1, [pc, #260] @ (801a09c <pbuf_alloc+0x1dc>)
  63987. 8019f96: 4842 ldr r0, [pc, #264] @ (801a0a0 <pbuf_alloc+0x1e0>)
  63988. 8019f98: f00f fd20 bl 80299dc <iprintf>
  63989. ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
  63990. LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT",
  63991. 8019f9c: 8c7b ldrh r3, [r7, #34] @ 0x22
  63992. 8019f9e: 3303 adds r3, #3
  63993. 8019fa0: f023 0303 bic.w r3, r3, #3
  63994. 8019fa4: f240 52ec movw r2, #1516 @ 0x5ec
  63995. 8019fa8: 4293 cmp r3, r2
  63996. 8019faa: d106 bne.n 8019fba <pbuf_alloc+0xfa>
  63997. 8019fac: 4b3a ldr r3, [pc, #232] @ (801a098 <pbuf_alloc+0x1d8>)
  63998. 8019fae: f44f 7281 mov.w r2, #258 @ 0x102
  63999. 8019fb2: 493c ldr r1, [pc, #240] @ (801a0a4 <pbuf_alloc+0x1e4>)
  64000. 8019fb4: 483a ldr r0, [pc, #232] @ (801a0a0 <pbuf_alloc+0x1e0>)
  64001. 8019fb6: f00f fd11 bl 80299dc <iprintf>
  64002. (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 );
  64003. if (p == NULL) {
  64004. 8019fba: 6a7b ldr r3, [r7, #36] @ 0x24
  64005. 8019fbc: 2b00 cmp r3, #0
  64006. 8019fbe: d102 bne.n 8019fc6 <pbuf_alloc+0x106>
  64007. /* allocated head of pbuf chain (into p) */
  64008. p = q;
  64009. 8019fc0: 693b ldr r3, [r7, #16]
  64010. 8019fc2: 627b str r3, [r7, #36] @ 0x24
  64011. 8019fc4: e002 b.n 8019fcc <pbuf_alloc+0x10c>
  64012. } else {
  64013. /* make previous pbuf point to this pbuf */
  64014. last->next = q;
  64015. 8019fc6: 69fb ldr r3, [r7, #28]
  64016. 8019fc8: 693a ldr r2, [r7, #16]
  64017. 8019fca: 601a str r2, [r3, #0]
  64018. }
  64019. last = q;
  64020. 8019fcc: 693b ldr r3, [r7, #16]
  64021. 8019fce: 61fb str r3, [r7, #28]
  64022. rem_len = (u16_t)(rem_len - qlen);
  64023. 8019fd0: 8b7a ldrh r2, [r7, #26]
  64024. 8019fd2: 89fb ldrh r3, [r7, #14]
  64025. 8019fd4: 1ad3 subs r3, r2, r3
  64026. 8019fd6: 837b strh r3, [r7, #26]
  64027. offset = 0;
  64028. 8019fd8: 2300 movs r3, #0
  64029. 8019fda: 847b strh r3, [r7, #34] @ 0x22
  64030. } while (rem_len > 0);
  64031. 8019fdc: 8b7b ldrh r3, [r7, #26]
  64032. 8019fde: 2b00 cmp r3, #0
  64033. 8019fe0: d19c bne.n 8019f1c <pbuf_alloc+0x5c>
  64034. break;
  64035. 8019fe2: e054 b.n 801a08e <pbuf_alloc+0x1ce>
  64036. }
  64037. case PBUF_RAM: {
  64038. u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length));
  64039. 8019fe4: 8c7b ldrh r3, [r7, #34] @ 0x22
  64040. 8019fe6: 3303 adds r3, #3
  64041. 8019fe8: b29b uxth r3, r3
  64042. 8019fea: f023 0303 bic.w r3, r3, #3
  64043. 8019fee: b29a uxth r2, r3
  64044. 8019ff0: 88bb ldrh r3, [r7, #4]
  64045. 8019ff2: 3303 adds r3, #3
  64046. 8019ff4: b29b uxth r3, r3
  64047. 8019ff6: f023 0303 bic.w r3, r3, #3
  64048. 8019ffa: b29b uxth r3, r3
  64049. 8019ffc: 4413 add r3, r2
  64050. 8019ffe: 833b strh r3, [r7, #24]
  64051. mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len);
  64052. 801a000: 8b3b ldrh r3, [r7, #24]
  64053. 801a002: 3310 adds r3, #16
  64054. 801a004: 617b str r3, [r7, #20]
  64055. /* bug #50040: Check for integer overflow when calculating alloc_len */
  64056. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  64057. 801a006: 8b3a ldrh r2, [r7, #24]
  64058. 801a008: 88bb ldrh r3, [r7, #4]
  64059. 801a00a: 3303 adds r3, #3
  64060. 801a00c: f023 0303 bic.w r3, r3, #3
  64061. 801a010: 429a cmp r2, r3
  64062. 801a012: d306 bcc.n 801a022 <pbuf_alloc+0x162>
  64063. (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) {
  64064. 801a014: 88bb ldrh r3, [r7, #4]
  64065. 801a016: 3303 adds r3, #3
  64066. 801a018: f023 0303 bic.w r3, r3, #3
  64067. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  64068. 801a01c: 697a ldr r2, [r7, #20]
  64069. 801a01e: 429a cmp r2, r3
  64070. 801a020: d201 bcs.n 801a026 <pbuf_alloc+0x166>
  64071. return NULL;
  64072. 801a022: 2300 movs r3, #0
  64073. 801a024: e034 b.n 801a090 <pbuf_alloc+0x1d0>
  64074. }
  64075. /* If pbuf is to be allocated in RAM, allocate memory for it. */
  64076. p = (struct pbuf *)mem_malloc(alloc_len);
  64077. 801a026: 6978 ldr r0, [r7, #20]
  64078. 801a028: f7ff f960 bl 80192ec <mem_malloc>
  64079. 801a02c: 6278 str r0, [r7, #36] @ 0x24
  64080. if (p == NULL) {
  64081. 801a02e: 6a7b ldr r3, [r7, #36] @ 0x24
  64082. 801a030: 2b00 cmp r3, #0
  64083. 801a032: d101 bne.n 801a038 <pbuf_alloc+0x178>
  64084. return NULL;
  64085. 801a034: 2300 movs r3, #0
  64086. 801a036: e02b b.n 801a090 <pbuf_alloc+0x1d0>
  64087. }
  64088. pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)),
  64089. 801a038: 8c7b ldrh r3, [r7, #34] @ 0x22
  64090. 801a03a: 3310 adds r3, #16
  64091. 801a03c: 6a7a ldr r2, [r7, #36] @ 0x24
  64092. 801a03e: 4413 add r3, r2
  64093. 801a040: 3303 adds r3, #3
  64094. 801a042: f023 0303 bic.w r3, r3, #3
  64095. 801a046: 4618 mov r0, r3
  64096. 801a048: 88b9 ldrh r1, [r7, #4]
  64097. 801a04a: 88ba ldrh r2, [r7, #4]
  64098. 801a04c: 2300 movs r3, #0
  64099. 801a04e: 9301 str r3, [sp, #4]
  64100. 801a050: 887b ldrh r3, [r7, #2]
  64101. 801a052: 9300 str r3, [sp, #0]
  64102. 801a054: 460b mov r3, r1
  64103. 801a056: 4601 mov r1, r0
  64104. 801a058: 6a78 ldr r0, [r7, #36] @ 0x24
  64105. 801a05a: f7ff ff07 bl 8019e6c <pbuf_init_alloced_pbuf>
  64106. length, length, type, 0);
  64107. LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned",
  64108. 801a05e: 6a7b ldr r3, [r7, #36] @ 0x24
  64109. 801a060: 685b ldr r3, [r3, #4]
  64110. 801a062: f003 0303 and.w r3, r3, #3
  64111. 801a066: 2b00 cmp r3, #0
  64112. 801a068: d010 beq.n 801a08c <pbuf_alloc+0x1cc>
  64113. 801a06a: 4b0b ldr r3, [pc, #44] @ (801a098 <pbuf_alloc+0x1d8>)
  64114. 801a06c: f44f 7291 mov.w r2, #290 @ 0x122
  64115. 801a070: 490d ldr r1, [pc, #52] @ (801a0a8 <pbuf_alloc+0x1e8>)
  64116. 801a072: 480b ldr r0, [pc, #44] @ (801a0a0 <pbuf_alloc+0x1e0>)
  64117. 801a074: f00f fcb2 bl 80299dc <iprintf>
  64118. ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
  64119. break;
  64120. 801a078: e008 b.n 801a08c <pbuf_alloc+0x1cc>
  64121. }
  64122. default:
  64123. LWIP_ASSERT("pbuf_alloc: erroneous type", 0);
  64124. 801a07a: 4b07 ldr r3, [pc, #28] @ (801a098 <pbuf_alloc+0x1d8>)
  64125. 801a07c: f240 1227 movw r2, #295 @ 0x127
  64126. 801a080: 490a ldr r1, [pc, #40] @ (801a0ac <pbuf_alloc+0x1ec>)
  64127. 801a082: 4807 ldr r0, [pc, #28] @ (801a0a0 <pbuf_alloc+0x1e0>)
  64128. 801a084: f00f fcaa bl 80299dc <iprintf>
  64129. return NULL;
  64130. 801a088: 2300 movs r3, #0
  64131. 801a08a: e001 b.n 801a090 <pbuf_alloc+0x1d0>
  64132. break;
  64133. 801a08c: bf00 nop
  64134. }
  64135. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p));
  64136. return p;
  64137. 801a08e: 6a7b ldr r3, [r7, #36] @ 0x24
  64138. }
  64139. 801a090: 4618 mov r0, r3
  64140. 801a092: 3728 adds r7, #40 @ 0x28
  64141. 801a094: 46bd mov sp, r7
  64142. 801a096: bd80 pop {r7, pc}
  64143. 801a098: 0802e0f0 .word 0x0802e0f0
  64144. 801a09c: 0802e120 .word 0x0802e120
  64145. 801a0a0: 0802e150 .word 0x0802e150
  64146. 801a0a4: 0802e178 .word 0x0802e178
  64147. 801a0a8: 0802e1ac .word 0x0802e1ac
  64148. 801a0ac: 0802e1d8 .word 0x0802e1d8
  64149. 0801a0b0 <pbuf_alloc_reference>:
  64150. *
  64151. * @return the allocated pbuf.
  64152. */
  64153. struct pbuf *
  64154. pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type)
  64155. {
  64156. 801a0b0: b580 push {r7, lr}
  64157. 801a0b2: b086 sub sp, #24
  64158. 801a0b4: af02 add r7, sp, #8
  64159. 801a0b6: 6078 str r0, [r7, #4]
  64160. 801a0b8: 460b mov r3, r1
  64161. 801a0ba: 807b strh r3, [r7, #2]
  64162. 801a0bc: 4613 mov r3, r2
  64163. 801a0be: 803b strh r3, [r7, #0]
  64164. struct pbuf *p;
  64165. LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM));
  64166. 801a0c0: 883b ldrh r3, [r7, #0]
  64167. 801a0c2: 2b41 cmp r3, #65 @ 0x41
  64168. 801a0c4: d009 beq.n 801a0da <pbuf_alloc_reference+0x2a>
  64169. 801a0c6: 883b ldrh r3, [r7, #0]
  64170. 801a0c8: 2b01 cmp r3, #1
  64171. 801a0ca: d006 beq.n 801a0da <pbuf_alloc_reference+0x2a>
  64172. 801a0cc: 4b0f ldr r3, [pc, #60] @ (801a10c <pbuf_alloc_reference+0x5c>)
  64173. 801a0ce: f44f 72a5 mov.w r2, #330 @ 0x14a
  64174. 801a0d2: 490f ldr r1, [pc, #60] @ (801a110 <pbuf_alloc_reference+0x60>)
  64175. 801a0d4: 480f ldr r0, [pc, #60] @ (801a114 <pbuf_alloc_reference+0x64>)
  64176. 801a0d6: f00f fc81 bl 80299dc <iprintf>
  64177. /* only allocate memory for the pbuf structure */
  64178. p = (struct pbuf *)memp_malloc(MEMP_PBUF);
  64179. 801a0da: 200b movs r0, #11
  64180. 801a0dc: f7ff faa2 bl 8019624 <memp_malloc>
  64181. 801a0e0: 60f8 str r0, [r7, #12]
  64182. if (p == NULL) {
  64183. 801a0e2: 68fb ldr r3, [r7, #12]
  64184. 801a0e4: 2b00 cmp r3, #0
  64185. 801a0e6: d101 bne.n 801a0ec <pbuf_alloc_reference+0x3c>
  64186. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  64187. ("pbuf_alloc_reference: Could not allocate MEMP_PBUF for PBUF_%s.\n",
  64188. (type == PBUF_ROM) ? "ROM" : "REF"));
  64189. return NULL;
  64190. 801a0e8: 2300 movs r3, #0
  64191. 801a0ea: e00b b.n 801a104 <pbuf_alloc_reference+0x54>
  64192. }
  64193. pbuf_init_alloced_pbuf(p, payload, length, length, type, 0);
  64194. 801a0ec: 8879 ldrh r1, [r7, #2]
  64195. 801a0ee: 887a ldrh r2, [r7, #2]
  64196. 801a0f0: 2300 movs r3, #0
  64197. 801a0f2: 9301 str r3, [sp, #4]
  64198. 801a0f4: 883b ldrh r3, [r7, #0]
  64199. 801a0f6: 9300 str r3, [sp, #0]
  64200. 801a0f8: 460b mov r3, r1
  64201. 801a0fa: 6879 ldr r1, [r7, #4]
  64202. 801a0fc: 68f8 ldr r0, [r7, #12]
  64203. 801a0fe: f7ff feb5 bl 8019e6c <pbuf_init_alloced_pbuf>
  64204. return p;
  64205. 801a102: 68fb ldr r3, [r7, #12]
  64206. }
  64207. 801a104: 4618 mov r0, r3
  64208. 801a106: 3710 adds r7, #16
  64209. 801a108: 46bd mov sp, r7
  64210. 801a10a: bd80 pop {r7, pc}
  64211. 801a10c: 0802e0f0 .word 0x0802e0f0
  64212. 801a110: 0802e1f4 .word 0x0802e1f4
  64213. 801a114: 0802e150 .word 0x0802e150
  64214. 0801a118 <pbuf_alloced_custom>:
  64215. * big enough to hold 'length' plus the header size
  64216. */
  64217. struct pbuf *
  64218. pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p,
  64219. void *payload_mem, u16_t payload_mem_len)
  64220. {
  64221. 801a118: b580 push {r7, lr}
  64222. 801a11a: b088 sub sp, #32
  64223. 801a11c: af02 add r7, sp, #8
  64224. 801a11e: 607b str r3, [r7, #4]
  64225. 801a120: 4603 mov r3, r0
  64226. 801a122: 73fb strb r3, [r7, #15]
  64227. 801a124: 460b mov r3, r1
  64228. 801a126: 81bb strh r3, [r7, #12]
  64229. 801a128: 4613 mov r3, r2
  64230. 801a12a: 817b strh r3, [r7, #10]
  64231. u16_t offset = (u16_t)l;
  64232. 801a12c: 7bfb ldrb r3, [r7, #15]
  64233. 801a12e: 827b strh r3, [r7, #18]
  64234. void *payload;
  64235. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloced_custom(length=%"U16_F")\n", length));
  64236. if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) {
  64237. 801a130: 8a7b ldrh r3, [r7, #18]
  64238. 801a132: 3303 adds r3, #3
  64239. 801a134: f023 0203 bic.w r2, r3, #3
  64240. 801a138: 89bb ldrh r3, [r7, #12]
  64241. 801a13a: 441a add r2, r3
  64242. 801a13c: 8cbb ldrh r3, [r7, #36] @ 0x24
  64243. 801a13e: 429a cmp r2, r3
  64244. 801a140: d901 bls.n 801a146 <pbuf_alloced_custom+0x2e>
  64245. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length));
  64246. return NULL;
  64247. 801a142: 2300 movs r3, #0
  64248. 801a144: e018 b.n 801a178 <pbuf_alloced_custom+0x60>
  64249. }
  64250. if (payload_mem != NULL) {
  64251. 801a146: 6a3b ldr r3, [r7, #32]
  64252. 801a148: 2b00 cmp r3, #0
  64253. 801a14a: d007 beq.n 801a15c <pbuf_alloced_custom+0x44>
  64254. payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset);
  64255. 801a14c: 8a7b ldrh r3, [r7, #18]
  64256. 801a14e: 3303 adds r3, #3
  64257. 801a150: f023 0303 bic.w r3, r3, #3
  64258. 801a154: 6a3a ldr r2, [r7, #32]
  64259. 801a156: 4413 add r3, r2
  64260. 801a158: 617b str r3, [r7, #20]
  64261. 801a15a: e001 b.n 801a160 <pbuf_alloced_custom+0x48>
  64262. } else {
  64263. payload = NULL;
  64264. 801a15c: 2300 movs r3, #0
  64265. 801a15e: 617b str r3, [r7, #20]
  64266. }
  64267. pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM);
  64268. 801a160: 6878 ldr r0, [r7, #4]
  64269. 801a162: 89b9 ldrh r1, [r7, #12]
  64270. 801a164: 89ba ldrh r2, [r7, #12]
  64271. 801a166: 2302 movs r3, #2
  64272. 801a168: 9301 str r3, [sp, #4]
  64273. 801a16a: 897b ldrh r3, [r7, #10]
  64274. 801a16c: 9300 str r3, [sp, #0]
  64275. 801a16e: 460b mov r3, r1
  64276. 801a170: 6979 ldr r1, [r7, #20]
  64277. 801a172: f7ff fe7b bl 8019e6c <pbuf_init_alloced_pbuf>
  64278. return &p->pbuf;
  64279. 801a176: 687b ldr r3, [r7, #4]
  64280. }
  64281. 801a178: 4618 mov r0, r3
  64282. 801a17a: 3718 adds r7, #24
  64283. 801a17c: 46bd mov sp, r7
  64284. 801a17e: bd80 pop {r7, pc}
  64285. 0801a180 <pbuf_realloc>:
  64286. *
  64287. * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain).
  64288. */
  64289. void
  64290. pbuf_realloc(struct pbuf *p, u16_t new_len)
  64291. {
  64292. 801a180: b580 push {r7, lr}
  64293. 801a182: b084 sub sp, #16
  64294. 801a184: af00 add r7, sp, #0
  64295. 801a186: 6078 str r0, [r7, #4]
  64296. 801a188: 460b mov r3, r1
  64297. 801a18a: 807b strh r3, [r7, #2]
  64298. struct pbuf *q;
  64299. u16_t rem_len; /* remaining length */
  64300. u16_t shrink;
  64301. LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL);
  64302. 801a18c: 687b ldr r3, [r7, #4]
  64303. 801a18e: 2b00 cmp r3, #0
  64304. 801a190: d106 bne.n 801a1a0 <pbuf_realloc+0x20>
  64305. 801a192: 4b39 ldr r3, [pc, #228] @ (801a278 <pbuf_realloc+0xf8>)
  64306. 801a194: f44f 72cc mov.w r2, #408 @ 0x198
  64307. 801a198: 4938 ldr r1, [pc, #224] @ (801a27c <pbuf_realloc+0xfc>)
  64308. 801a19a: 4839 ldr r0, [pc, #228] @ (801a280 <pbuf_realloc+0x100>)
  64309. 801a19c: f00f fc1e bl 80299dc <iprintf>
  64310. /* desired length larger than current length? */
  64311. if (new_len >= p->tot_len) {
  64312. 801a1a0: 687b ldr r3, [r7, #4]
  64313. 801a1a2: 891b ldrh r3, [r3, #8]
  64314. 801a1a4: 887a ldrh r2, [r7, #2]
  64315. 801a1a6: 429a cmp r2, r3
  64316. 801a1a8: d261 bcs.n 801a26e <pbuf_realloc+0xee>
  64317. return;
  64318. }
  64319. /* the pbuf chain grows by (new_len - p->tot_len) bytes
  64320. * (which may be negative in case of shrinking) */
  64321. shrink = (u16_t)(p->tot_len - new_len);
  64322. 801a1aa: 687b ldr r3, [r7, #4]
  64323. 801a1ac: 891a ldrh r2, [r3, #8]
  64324. 801a1ae: 887b ldrh r3, [r7, #2]
  64325. 801a1b0: 1ad3 subs r3, r2, r3
  64326. 801a1b2: 813b strh r3, [r7, #8]
  64327. /* first, step over any pbufs that should remain in the chain */
  64328. rem_len = new_len;
  64329. 801a1b4: 887b ldrh r3, [r7, #2]
  64330. 801a1b6: 817b strh r3, [r7, #10]
  64331. q = p;
  64332. 801a1b8: 687b ldr r3, [r7, #4]
  64333. 801a1ba: 60fb str r3, [r7, #12]
  64334. /* should this pbuf be kept? */
  64335. while (rem_len > q->len) {
  64336. 801a1bc: e018 b.n 801a1f0 <pbuf_realloc+0x70>
  64337. /* decrease remaining length by pbuf length */
  64338. rem_len = (u16_t)(rem_len - q->len);
  64339. 801a1be: 68fb ldr r3, [r7, #12]
  64340. 801a1c0: 895b ldrh r3, [r3, #10]
  64341. 801a1c2: 897a ldrh r2, [r7, #10]
  64342. 801a1c4: 1ad3 subs r3, r2, r3
  64343. 801a1c6: 817b strh r3, [r7, #10]
  64344. /* decrease total length indicator */
  64345. q->tot_len = (u16_t)(q->tot_len - shrink);
  64346. 801a1c8: 68fb ldr r3, [r7, #12]
  64347. 801a1ca: 891a ldrh r2, [r3, #8]
  64348. 801a1cc: 893b ldrh r3, [r7, #8]
  64349. 801a1ce: 1ad3 subs r3, r2, r3
  64350. 801a1d0: b29a uxth r2, r3
  64351. 801a1d2: 68fb ldr r3, [r7, #12]
  64352. 801a1d4: 811a strh r2, [r3, #8]
  64353. /* proceed to next pbuf in chain */
  64354. q = q->next;
  64355. 801a1d6: 68fb ldr r3, [r7, #12]
  64356. 801a1d8: 681b ldr r3, [r3, #0]
  64357. 801a1da: 60fb str r3, [r7, #12]
  64358. LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL);
  64359. 801a1dc: 68fb ldr r3, [r7, #12]
  64360. 801a1de: 2b00 cmp r3, #0
  64361. 801a1e0: d106 bne.n 801a1f0 <pbuf_realloc+0x70>
  64362. 801a1e2: 4b25 ldr r3, [pc, #148] @ (801a278 <pbuf_realloc+0xf8>)
  64363. 801a1e4: f240 12af movw r2, #431 @ 0x1af
  64364. 801a1e8: 4926 ldr r1, [pc, #152] @ (801a284 <pbuf_realloc+0x104>)
  64365. 801a1ea: 4825 ldr r0, [pc, #148] @ (801a280 <pbuf_realloc+0x100>)
  64366. 801a1ec: f00f fbf6 bl 80299dc <iprintf>
  64367. while (rem_len > q->len) {
  64368. 801a1f0: 68fb ldr r3, [r7, #12]
  64369. 801a1f2: 895b ldrh r3, [r3, #10]
  64370. 801a1f4: 897a ldrh r2, [r7, #10]
  64371. 801a1f6: 429a cmp r2, r3
  64372. 801a1f8: d8e1 bhi.n 801a1be <pbuf_realloc+0x3e>
  64373. /* we have now reached the new last pbuf (in q) */
  64374. /* rem_len == desired length for pbuf q */
  64375. /* shrink allocated memory for PBUF_RAM */
  64376. /* (other types merely adjust their length fields */
  64377. if (pbuf_match_allocsrc(q, PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) && (rem_len != q->len)
  64378. 801a1fa: 68fb ldr r3, [r7, #12]
  64379. 801a1fc: 7b1b ldrb r3, [r3, #12]
  64380. 801a1fe: f003 030f and.w r3, r3, #15
  64381. 801a202: 2b00 cmp r3, #0
  64382. 801a204: d11f bne.n 801a246 <pbuf_realloc+0xc6>
  64383. 801a206: 68fb ldr r3, [r7, #12]
  64384. 801a208: 895b ldrh r3, [r3, #10]
  64385. 801a20a: 897a ldrh r2, [r7, #10]
  64386. 801a20c: 429a cmp r2, r3
  64387. 801a20e: d01a beq.n 801a246 <pbuf_realloc+0xc6>
  64388. #if LWIP_SUPPORT_CUSTOM_PBUF
  64389. && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0)
  64390. 801a210: 68fb ldr r3, [r7, #12]
  64391. 801a212: 7b5b ldrb r3, [r3, #13]
  64392. 801a214: f003 0302 and.w r3, r3, #2
  64393. 801a218: 2b00 cmp r3, #0
  64394. 801a21a: d114 bne.n 801a246 <pbuf_realloc+0xc6>
  64395. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  64396. ) {
  64397. /* reallocate and adjust the length of the pbuf that will be split */
  64398. q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len));
  64399. 801a21c: 68fb ldr r3, [r7, #12]
  64400. 801a21e: 685a ldr r2, [r3, #4]
  64401. 801a220: 68fb ldr r3, [r7, #12]
  64402. 801a222: 1ad2 subs r2, r2, r3
  64403. 801a224: 897b ldrh r3, [r7, #10]
  64404. 801a226: 4413 add r3, r2
  64405. 801a228: 4619 mov r1, r3
  64406. 801a22a: 68f8 ldr r0, [r7, #12]
  64407. 801a22c: f7fe ff5c bl 80190e8 <mem_trim>
  64408. 801a230: 60f8 str r0, [r7, #12]
  64409. LWIP_ASSERT("mem_trim returned q == NULL", q != NULL);
  64410. 801a232: 68fb ldr r3, [r7, #12]
  64411. 801a234: 2b00 cmp r3, #0
  64412. 801a236: d106 bne.n 801a246 <pbuf_realloc+0xc6>
  64413. 801a238: 4b0f ldr r3, [pc, #60] @ (801a278 <pbuf_realloc+0xf8>)
  64414. 801a23a: f240 12bd movw r2, #445 @ 0x1bd
  64415. 801a23e: 4912 ldr r1, [pc, #72] @ (801a288 <pbuf_realloc+0x108>)
  64416. 801a240: 480f ldr r0, [pc, #60] @ (801a280 <pbuf_realloc+0x100>)
  64417. 801a242: f00f fbcb bl 80299dc <iprintf>
  64418. }
  64419. /* adjust length fields for new last pbuf */
  64420. q->len = rem_len;
  64421. 801a246: 68fb ldr r3, [r7, #12]
  64422. 801a248: 897a ldrh r2, [r7, #10]
  64423. 801a24a: 815a strh r2, [r3, #10]
  64424. q->tot_len = q->len;
  64425. 801a24c: 68fb ldr r3, [r7, #12]
  64426. 801a24e: 895a ldrh r2, [r3, #10]
  64427. 801a250: 68fb ldr r3, [r7, #12]
  64428. 801a252: 811a strh r2, [r3, #8]
  64429. /* any remaining pbufs in chain? */
  64430. if (q->next != NULL) {
  64431. 801a254: 68fb ldr r3, [r7, #12]
  64432. 801a256: 681b ldr r3, [r3, #0]
  64433. 801a258: 2b00 cmp r3, #0
  64434. 801a25a: d004 beq.n 801a266 <pbuf_realloc+0xe6>
  64435. /* free remaining pbufs in chain */
  64436. pbuf_free(q->next);
  64437. 801a25c: 68fb ldr r3, [r7, #12]
  64438. 801a25e: 681b ldr r3, [r3, #0]
  64439. 801a260: 4618 mov r0, r3
  64440. 801a262: f000 f943 bl 801a4ec <pbuf_free>
  64441. }
  64442. /* q is last packet in chain */
  64443. q->next = NULL;
  64444. 801a266: 68fb ldr r3, [r7, #12]
  64445. 801a268: 2200 movs r2, #0
  64446. 801a26a: 601a str r2, [r3, #0]
  64447. 801a26c: e000 b.n 801a270 <pbuf_realloc+0xf0>
  64448. return;
  64449. 801a26e: bf00 nop
  64450. }
  64451. 801a270: 3710 adds r7, #16
  64452. 801a272: 46bd mov sp, r7
  64453. 801a274: bd80 pop {r7, pc}
  64454. 801a276: bf00 nop
  64455. 801a278: 0802e0f0 .word 0x0802e0f0
  64456. 801a27c: 0802e208 .word 0x0802e208
  64457. 801a280: 0802e150 .word 0x0802e150
  64458. 801a284: 0802e220 .word 0x0802e220
  64459. 801a288: 0802e238 .word 0x0802e238
  64460. 0801a28c <pbuf_add_header_impl>:
  64461. * @return non-zero on failure, zero on success.
  64462. *
  64463. */
  64464. static u8_t
  64465. pbuf_add_header_impl(struct pbuf *p, size_t header_size_increment, u8_t force)
  64466. {
  64467. 801a28c: b580 push {r7, lr}
  64468. 801a28e: b086 sub sp, #24
  64469. 801a290: af00 add r7, sp, #0
  64470. 801a292: 60f8 str r0, [r7, #12]
  64471. 801a294: 60b9 str r1, [r7, #8]
  64472. 801a296: 4613 mov r3, r2
  64473. 801a298: 71fb strb r3, [r7, #7]
  64474. u16_t type_internal;
  64475. void *payload;
  64476. u16_t increment_magnitude;
  64477. LWIP_ASSERT("p != NULL", p != NULL);
  64478. 801a29a: 68fb ldr r3, [r7, #12]
  64479. 801a29c: 2b00 cmp r3, #0
  64480. 801a29e: d106 bne.n 801a2ae <pbuf_add_header_impl+0x22>
  64481. 801a2a0: 4b2b ldr r3, [pc, #172] @ (801a350 <pbuf_add_header_impl+0xc4>)
  64482. 801a2a2: f240 12df movw r2, #479 @ 0x1df
  64483. 801a2a6: 492b ldr r1, [pc, #172] @ (801a354 <pbuf_add_header_impl+0xc8>)
  64484. 801a2a8: 482b ldr r0, [pc, #172] @ (801a358 <pbuf_add_header_impl+0xcc>)
  64485. 801a2aa: f00f fb97 bl 80299dc <iprintf>
  64486. if ((p == NULL) || (header_size_increment > 0xFFFF)) {
  64487. 801a2ae: 68fb ldr r3, [r7, #12]
  64488. 801a2b0: 2b00 cmp r3, #0
  64489. 801a2b2: d003 beq.n 801a2bc <pbuf_add_header_impl+0x30>
  64490. 801a2b4: 68bb ldr r3, [r7, #8]
  64491. 801a2b6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  64492. 801a2ba: d301 bcc.n 801a2c0 <pbuf_add_header_impl+0x34>
  64493. return 1;
  64494. 801a2bc: 2301 movs r3, #1
  64495. 801a2be: e043 b.n 801a348 <pbuf_add_header_impl+0xbc>
  64496. }
  64497. if (header_size_increment == 0) {
  64498. 801a2c0: 68bb ldr r3, [r7, #8]
  64499. 801a2c2: 2b00 cmp r3, #0
  64500. 801a2c4: d101 bne.n 801a2ca <pbuf_add_header_impl+0x3e>
  64501. return 0;
  64502. 801a2c6: 2300 movs r3, #0
  64503. 801a2c8: e03e b.n 801a348 <pbuf_add_header_impl+0xbc>
  64504. }
  64505. increment_magnitude = (u16_t)header_size_increment;
  64506. 801a2ca: 68bb ldr r3, [r7, #8]
  64507. 801a2cc: 827b strh r3, [r7, #18]
  64508. /* Do not allow tot_len to wrap as a result. */
  64509. if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) {
  64510. 801a2ce: 68fb ldr r3, [r7, #12]
  64511. 801a2d0: 891a ldrh r2, [r3, #8]
  64512. 801a2d2: 8a7b ldrh r3, [r7, #18]
  64513. 801a2d4: 4413 add r3, r2
  64514. 801a2d6: b29b uxth r3, r3
  64515. 801a2d8: 8a7a ldrh r2, [r7, #18]
  64516. 801a2da: 429a cmp r2, r3
  64517. 801a2dc: d901 bls.n 801a2e2 <pbuf_add_header_impl+0x56>
  64518. return 1;
  64519. 801a2de: 2301 movs r3, #1
  64520. 801a2e0: e032 b.n 801a348 <pbuf_add_header_impl+0xbc>
  64521. }
  64522. type_internal = p->type_internal;
  64523. 801a2e2: 68fb ldr r3, [r7, #12]
  64524. 801a2e4: 7b1b ldrb r3, [r3, #12]
  64525. 801a2e6: 823b strh r3, [r7, #16]
  64526. /* pbuf types containing payloads? */
  64527. if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) {
  64528. 801a2e8: 8a3b ldrh r3, [r7, #16]
  64529. 801a2ea: f003 0380 and.w r3, r3, #128 @ 0x80
  64530. 801a2ee: 2b00 cmp r3, #0
  64531. 801a2f0: d00c beq.n 801a30c <pbuf_add_header_impl+0x80>
  64532. /* set new payload pointer */
  64533. payload = (u8_t *)p->payload - header_size_increment;
  64534. 801a2f2: 68fb ldr r3, [r7, #12]
  64535. 801a2f4: 685a ldr r2, [r3, #4]
  64536. 801a2f6: 68bb ldr r3, [r7, #8]
  64537. 801a2f8: 425b negs r3, r3
  64538. 801a2fa: 4413 add r3, r2
  64539. 801a2fc: 617b str r3, [r7, #20]
  64540. /* boundary check fails? */
  64541. if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) {
  64542. 801a2fe: 68fb ldr r3, [r7, #12]
  64543. 801a300: 3310 adds r3, #16
  64544. 801a302: 697a ldr r2, [r7, #20]
  64545. 801a304: 429a cmp r2, r3
  64546. 801a306: d20d bcs.n 801a324 <pbuf_add_header_impl+0x98>
  64547. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE,
  64548. ("pbuf_add_header: failed as %p < %p (not enough space for new header size)\n",
  64549. (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF)));
  64550. /* bail out unsuccessfully */
  64551. return 1;
  64552. 801a308: 2301 movs r3, #1
  64553. 801a30a: e01d b.n 801a348 <pbuf_add_header_impl+0xbc>
  64554. }
  64555. /* pbuf types referring to external payloads? */
  64556. } else {
  64557. /* hide a header in the payload? */
  64558. if (force) {
  64559. 801a30c: 79fb ldrb r3, [r7, #7]
  64560. 801a30e: 2b00 cmp r3, #0
  64561. 801a310: d006 beq.n 801a320 <pbuf_add_header_impl+0x94>
  64562. payload = (u8_t *)p->payload - header_size_increment;
  64563. 801a312: 68fb ldr r3, [r7, #12]
  64564. 801a314: 685a ldr r2, [r3, #4]
  64565. 801a316: 68bb ldr r3, [r7, #8]
  64566. 801a318: 425b negs r3, r3
  64567. 801a31a: 4413 add r3, r2
  64568. 801a31c: 617b str r3, [r7, #20]
  64569. 801a31e: e001 b.n 801a324 <pbuf_add_header_impl+0x98>
  64570. } else {
  64571. /* cannot expand payload to front (yet!)
  64572. * bail out unsuccessfully */
  64573. return 1;
  64574. 801a320: 2301 movs r3, #1
  64575. 801a322: e011 b.n 801a348 <pbuf_add_header_impl+0xbc>
  64576. }
  64577. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: old %p new %p (%"U16_F")\n",
  64578. (void *)p->payload, (void *)payload, increment_magnitude));
  64579. /* modify pbuf fields */
  64580. p->payload = payload;
  64581. 801a324: 68fb ldr r3, [r7, #12]
  64582. 801a326: 697a ldr r2, [r7, #20]
  64583. 801a328: 605a str r2, [r3, #4]
  64584. p->len = (u16_t)(p->len + increment_magnitude);
  64585. 801a32a: 68fb ldr r3, [r7, #12]
  64586. 801a32c: 895a ldrh r2, [r3, #10]
  64587. 801a32e: 8a7b ldrh r3, [r7, #18]
  64588. 801a330: 4413 add r3, r2
  64589. 801a332: b29a uxth r2, r3
  64590. 801a334: 68fb ldr r3, [r7, #12]
  64591. 801a336: 815a strh r2, [r3, #10]
  64592. p->tot_len = (u16_t)(p->tot_len + increment_magnitude);
  64593. 801a338: 68fb ldr r3, [r7, #12]
  64594. 801a33a: 891a ldrh r2, [r3, #8]
  64595. 801a33c: 8a7b ldrh r3, [r7, #18]
  64596. 801a33e: 4413 add r3, r2
  64597. 801a340: b29a uxth r2, r3
  64598. 801a342: 68fb ldr r3, [r7, #12]
  64599. 801a344: 811a strh r2, [r3, #8]
  64600. return 0;
  64601. 801a346: 2300 movs r3, #0
  64602. }
  64603. 801a348: 4618 mov r0, r3
  64604. 801a34a: 3718 adds r7, #24
  64605. 801a34c: 46bd mov sp, r7
  64606. 801a34e: bd80 pop {r7, pc}
  64607. 801a350: 0802e0f0 .word 0x0802e0f0
  64608. 801a354: 0802e254 .word 0x0802e254
  64609. 801a358: 0802e150 .word 0x0802e150
  64610. 0801a35c <pbuf_add_header>:
  64611. * @return non-zero on failure, zero on success.
  64612. *
  64613. */
  64614. u8_t
  64615. pbuf_add_header(struct pbuf *p, size_t header_size_increment)
  64616. {
  64617. 801a35c: b580 push {r7, lr}
  64618. 801a35e: b082 sub sp, #8
  64619. 801a360: af00 add r7, sp, #0
  64620. 801a362: 6078 str r0, [r7, #4]
  64621. 801a364: 6039 str r1, [r7, #0]
  64622. return pbuf_add_header_impl(p, header_size_increment, 0);
  64623. 801a366: 2200 movs r2, #0
  64624. 801a368: 6839 ldr r1, [r7, #0]
  64625. 801a36a: 6878 ldr r0, [r7, #4]
  64626. 801a36c: f7ff ff8e bl 801a28c <pbuf_add_header_impl>
  64627. 801a370: 4603 mov r3, r0
  64628. }
  64629. 801a372: 4618 mov r0, r3
  64630. 801a374: 3708 adds r7, #8
  64631. 801a376: 46bd mov sp, r7
  64632. 801a378: bd80 pop {r7, pc}
  64633. ...
  64634. 0801a37c <pbuf_remove_header>:
  64635. * @return non-zero on failure, zero on success.
  64636. *
  64637. */
  64638. u8_t
  64639. pbuf_remove_header(struct pbuf *p, size_t header_size_decrement)
  64640. {
  64641. 801a37c: b580 push {r7, lr}
  64642. 801a37e: b084 sub sp, #16
  64643. 801a380: af00 add r7, sp, #0
  64644. 801a382: 6078 str r0, [r7, #4]
  64645. 801a384: 6039 str r1, [r7, #0]
  64646. void *payload;
  64647. u16_t increment_magnitude;
  64648. LWIP_ASSERT("p != NULL", p != NULL);
  64649. 801a386: 687b ldr r3, [r7, #4]
  64650. 801a388: 2b00 cmp r3, #0
  64651. 801a38a: d106 bne.n 801a39a <pbuf_remove_header+0x1e>
  64652. 801a38c: 4b20 ldr r3, [pc, #128] @ (801a410 <pbuf_remove_header+0x94>)
  64653. 801a38e: f240 224b movw r2, #587 @ 0x24b
  64654. 801a392: 4920 ldr r1, [pc, #128] @ (801a414 <pbuf_remove_header+0x98>)
  64655. 801a394: 4820 ldr r0, [pc, #128] @ (801a418 <pbuf_remove_header+0x9c>)
  64656. 801a396: f00f fb21 bl 80299dc <iprintf>
  64657. if ((p == NULL) || (header_size_decrement > 0xFFFF)) {
  64658. 801a39a: 687b ldr r3, [r7, #4]
  64659. 801a39c: 2b00 cmp r3, #0
  64660. 801a39e: d003 beq.n 801a3a8 <pbuf_remove_header+0x2c>
  64661. 801a3a0: 683b ldr r3, [r7, #0]
  64662. 801a3a2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  64663. 801a3a6: d301 bcc.n 801a3ac <pbuf_remove_header+0x30>
  64664. return 1;
  64665. 801a3a8: 2301 movs r3, #1
  64666. 801a3aa: e02c b.n 801a406 <pbuf_remove_header+0x8a>
  64667. }
  64668. if (header_size_decrement == 0) {
  64669. 801a3ac: 683b ldr r3, [r7, #0]
  64670. 801a3ae: 2b00 cmp r3, #0
  64671. 801a3b0: d101 bne.n 801a3b6 <pbuf_remove_header+0x3a>
  64672. return 0;
  64673. 801a3b2: 2300 movs r3, #0
  64674. 801a3b4: e027 b.n 801a406 <pbuf_remove_header+0x8a>
  64675. }
  64676. increment_magnitude = (u16_t)header_size_decrement;
  64677. 801a3b6: 683b ldr r3, [r7, #0]
  64678. 801a3b8: 81fb strh r3, [r7, #14]
  64679. /* Check that we aren't going to move off the end of the pbuf */
  64680. LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;);
  64681. 801a3ba: 687b ldr r3, [r7, #4]
  64682. 801a3bc: 895b ldrh r3, [r3, #10]
  64683. 801a3be: 89fa ldrh r2, [r7, #14]
  64684. 801a3c0: 429a cmp r2, r3
  64685. 801a3c2: d908 bls.n 801a3d6 <pbuf_remove_header+0x5a>
  64686. 801a3c4: 4b12 ldr r3, [pc, #72] @ (801a410 <pbuf_remove_header+0x94>)
  64687. 801a3c6: f240 2255 movw r2, #597 @ 0x255
  64688. 801a3ca: 4914 ldr r1, [pc, #80] @ (801a41c <pbuf_remove_header+0xa0>)
  64689. 801a3cc: 4812 ldr r0, [pc, #72] @ (801a418 <pbuf_remove_header+0x9c>)
  64690. 801a3ce: f00f fb05 bl 80299dc <iprintf>
  64691. 801a3d2: 2301 movs r3, #1
  64692. 801a3d4: e017 b.n 801a406 <pbuf_remove_header+0x8a>
  64693. /* remember current payload pointer */
  64694. payload = p->payload;
  64695. 801a3d6: 687b ldr r3, [r7, #4]
  64696. 801a3d8: 685b ldr r3, [r3, #4]
  64697. 801a3da: 60bb str r3, [r7, #8]
  64698. LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
  64699. /* increase payload pointer (guarded by length check above) */
  64700. p->payload = (u8_t *)p->payload + header_size_decrement;
  64701. 801a3dc: 687b ldr r3, [r7, #4]
  64702. 801a3de: 685a ldr r2, [r3, #4]
  64703. 801a3e0: 683b ldr r3, [r7, #0]
  64704. 801a3e2: 441a add r2, r3
  64705. 801a3e4: 687b ldr r3, [r7, #4]
  64706. 801a3e6: 605a str r2, [r3, #4]
  64707. /* modify pbuf length fields */
  64708. p->len = (u16_t)(p->len - increment_magnitude);
  64709. 801a3e8: 687b ldr r3, [r7, #4]
  64710. 801a3ea: 895a ldrh r2, [r3, #10]
  64711. 801a3ec: 89fb ldrh r3, [r7, #14]
  64712. 801a3ee: 1ad3 subs r3, r2, r3
  64713. 801a3f0: b29a uxth r2, r3
  64714. 801a3f2: 687b ldr r3, [r7, #4]
  64715. 801a3f4: 815a strh r2, [r3, #10]
  64716. p->tot_len = (u16_t)(p->tot_len - increment_magnitude);
  64717. 801a3f6: 687b ldr r3, [r7, #4]
  64718. 801a3f8: 891a ldrh r2, [r3, #8]
  64719. 801a3fa: 89fb ldrh r3, [r7, #14]
  64720. 801a3fc: 1ad3 subs r3, r2, r3
  64721. 801a3fe: b29a uxth r2, r3
  64722. 801a400: 687b ldr r3, [r7, #4]
  64723. 801a402: 811a strh r2, [r3, #8]
  64724. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_remove_header: old %p new %p (%"U16_F")\n",
  64725. (void *)payload, (void *)p->payload, increment_magnitude));
  64726. return 0;
  64727. 801a404: 2300 movs r3, #0
  64728. }
  64729. 801a406: 4618 mov r0, r3
  64730. 801a408: 3710 adds r7, #16
  64731. 801a40a: 46bd mov sp, r7
  64732. 801a40c: bd80 pop {r7, pc}
  64733. 801a40e: bf00 nop
  64734. 801a410: 0802e0f0 .word 0x0802e0f0
  64735. 801a414: 0802e254 .word 0x0802e254
  64736. 801a418: 0802e150 .word 0x0802e150
  64737. 801a41c: 0802e260 .word 0x0802e260
  64738. 0801a420 <pbuf_header_impl>:
  64739. static u8_t
  64740. pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
  64741. {
  64742. 801a420: b580 push {r7, lr}
  64743. 801a422: b082 sub sp, #8
  64744. 801a424: af00 add r7, sp, #0
  64745. 801a426: 6078 str r0, [r7, #4]
  64746. 801a428: 460b mov r3, r1
  64747. 801a42a: 807b strh r3, [r7, #2]
  64748. 801a42c: 4613 mov r3, r2
  64749. 801a42e: 707b strb r3, [r7, #1]
  64750. if (header_size_increment < 0) {
  64751. 801a430: f9b7 3002 ldrsh.w r3, [r7, #2]
  64752. 801a434: 2b00 cmp r3, #0
  64753. 801a436: da08 bge.n 801a44a <pbuf_header_impl+0x2a>
  64754. return pbuf_remove_header(p, (size_t) - header_size_increment);
  64755. 801a438: f9b7 3002 ldrsh.w r3, [r7, #2]
  64756. 801a43c: 425b negs r3, r3
  64757. 801a43e: 4619 mov r1, r3
  64758. 801a440: 6878 ldr r0, [r7, #4]
  64759. 801a442: f7ff ff9b bl 801a37c <pbuf_remove_header>
  64760. 801a446: 4603 mov r3, r0
  64761. 801a448: e007 b.n 801a45a <pbuf_header_impl+0x3a>
  64762. } else {
  64763. return pbuf_add_header_impl(p, (size_t)header_size_increment, force);
  64764. 801a44a: f9b7 3002 ldrsh.w r3, [r7, #2]
  64765. 801a44e: 787a ldrb r2, [r7, #1]
  64766. 801a450: 4619 mov r1, r3
  64767. 801a452: 6878 ldr r0, [r7, #4]
  64768. 801a454: f7ff ff1a bl 801a28c <pbuf_add_header_impl>
  64769. 801a458: 4603 mov r3, r0
  64770. }
  64771. }
  64772. 801a45a: 4618 mov r0, r3
  64773. 801a45c: 3708 adds r7, #8
  64774. 801a45e: 46bd mov sp, r7
  64775. 801a460: bd80 pop {r7, pc}
  64776. 0801a462 <pbuf_header_force>:
  64777. * Same as pbuf_header but does not check if 'header_size > 0' is allowed.
  64778. * This is used internally only, to allow PBUF_REF for RX.
  64779. */
  64780. u8_t
  64781. pbuf_header_force(struct pbuf *p, s16_t header_size_increment)
  64782. {
  64783. 801a462: b580 push {r7, lr}
  64784. 801a464: b082 sub sp, #8
  64785. 801a466: af00 add r7, sp, #0
  64786. 801a468: 6078 str r0, [r7, #4]
  64787. 801a46a: 460b mov r3, r1
  64788. 801a46c: 807b strh r3, [r7, #2]
  64789. return pbuf_header_impl(p, header_size_increment, 1);
  64790. 801a46e: f9b7 3002 ldrsh.w r3, [r7, #2]
  64791. 801a472: 2201 movs r2, #1
  64792. 801a474: 4619 mov r1, r3
  64793. 801a476: 6878 ldr r0, [r7, #4]
  64794. 801a478: f7ff ffd2 bl 801a420 <pbuf_header_impl>
  64795. 801a47c: 4603 mov r3, r0
  64796. }
  64797. 801a47e: 4618 mov r0, r3
  64798. 801a480: 3708 adds r7, #8
  64799. 801a482: 46bd mov sp, r7
  64800. 801a484: bd80 pop {r7, pc}
  64801. 0801a486 <pbuf_free_header>:
  64802. * takes an u16_t not s16_t!
  64803. * @return the new head pbuf
  64804. */
  64805. struct pbuf *
  64806. pbuf_free_header(struct pbuf *q, u16_t size)
  64807. {
  64808. 801a486: b580 push {r7, lr}
  64809. 801a488: b086 sub sp, #24
  64810. 801a48a: af00 add r7, sp, #0
  64811. 801a48c: 6078 str r0, [r7, #4]
  64812. 801a48e: 460b mov r3, r1
  64813. 801a490: 807b strh r3, [r7, #2]
  64814. struct pbuf *p = q;
  64815. 801a492: 687b ldr r3, [r7, #4]
  64816. 801a494: 617b str r3, [r7, #20]
  64817. u16_t free_left = size;
  64818. 801a496: 887b ldrh r3, [r7, #2]
  64819. 801a498: 827b strh r3, [r7, #18]
  64820. while (free_left && p) {
  64821. 801a49a: e01c b.n 801a4d6 <pbuf_free_header+0x50>
  64822. if (free_left >= p->len) {
  64823. 801a49c: 697b ldr r3, [r7, #20]
  64824. 801a49e: 895b ldrh r3, [r3, #10]
  64825. 801a4a0: 8a7a ldrh r2, [r7, #18]
  64826. 801a4a2: 429a cmp r2, r3
  64827. 801a4a4: d310 bcc.n 801a4c8 <pbuf_free_header+0x42>
  64828. struct pbuf *f = p;
  64829. 801a4a6: 697b ldr r3, [r7, #20]
  64830. 801a4a8: 60fb str r3, [r7, #12]
  64831. free_left = (u16_t)(free_left - p->len);
  64832. 801a4aa: 697b ldr r3, [r7, #20]
  64833. 801a4ac: 895b ldrh r3, [r3, #10]
  64834. 801a4ae: 8a7a ldrh r2, [r7, #18]
  64835. 801a4b0: 1ad3 subs r3, r2, r3
  64836. 801a4b2: 827b strh r3, [r7, #18]
  64837. p = p->next;
  64838. 801a4b4: 697b ldr r3, [r7, #20]
  64839. 801a4b6: 681b ldr r3, [r3, #0]
  64840. 801a4b8: 617b str r3, [r7, #20]
  64841. f->next = 0;
  64842. 801a4ba: 68fb ldr r3, [r7, #12]
  64843. 801a4bc: 2200 movs r2, #0
  64844. 801a4be: 601a str r2, [r3, #0]
  64845. pbuf_free(f);
  64846. 801a4c0: 68f8 ldr r0, [r7, #12]
  64847. 801a4c2: f000 f813 bl 801a4ec <pbuf_free>
  64848. 801a4c6: e006 b.n 801a4d6 <pbuf_free_header+0x50>
  64849. } else {
  64850. pbuf_remove_header(p, free_left);
  64851. 801a4c8: 8a7b ldrh r3, [r7, #18]
  64852. 801a4ca: 4619 mov r1, r3
  64853. 801a4cc: 6978 ldr r0, [r7, #20]
  64854. 801a4ce: f7ff ff55 bl 801a37c <pbuf_remove_header>
  64855. free_left = 0;
  64856. 801a4d2: 2300 movs r3, #0
  64857. 801a4d4: 827b strh r3, [r7, #18]
  64858. while (free_left && p) {
  64859. 801a4d6: 8a7b ldrh r3, [r7, #18]
  64860. 801a4d8: 2b00 cmp r3, #0
  64861. 801a4da: d002 beq.n 801a4e2 <pbuf_free_header+0x5c>
  64862. 801a4dc: 697b ldr r3, [r7, #20]
  64863. 801a4de: 2b00 cmp r3, #0
  64864. 801a4e0: d1dc bne.n 801a49c <pbuf_free_header+0x16>
  64865. }
  64866. }
  64867. return p;
  64868. 801a4e2: 697b ldr r3, [r7, #20]
  64869. }
  64870. 801a4e4: 4618 mov r0, r3
  64871. 801a4e6: 3718 adds r7, #24
  64872. 801a4e8: 46bd mov sp, r7
  64873. 801a4ea: bd80 pop {r7, pc}
  64874. 0801a4ec <pbuf_free>:
  64875. * 1->1->1 becomes .......
  64876. *
  64877. */
  64878. u8_t
  64879. pbuf_free(struct pbuf *p)
  64880. {
  64881. 801a4ec: b580 push {r7, lr}
  64882. 801a4ee: b088 sub sp, #32
  64883. 801a4f0: af00 add r7, sp, #0
  64884. 801a4f2: 6078 str r0, [r7, #4]
  64885. u8_t alloc_src;
  64886. struct pbuf *q;
  64887. u8_t count;
  64888. if (p == NULL) {
  64889. 801a4f4: 687b ldr r3, [r7, #4]
  64890. 801a4f6: 2b00 cmp r3, #0
  64891. 801a4f8: d10b bne.n 801a512 <pbuf_free+0x26>
  64892. LWIP_ASSERT("p != NULL", p != NULL);
  64893. 801a4fa: 687b ldr r3, [r7, #4]
  64894. 801a4fc: 2b00 cmp r3, #0
  64895. 801a4fe: d106 bne.n 801a50e <pbuf_free+0x22>
  64896. 801a500: 4b3b ldr r3, [pc, #236] @ (801a5f0 <pbuf_free+0x104>)
  64897. 801a502: f44f 7237 mov.w r2, #732 @ 0x2dc
  64898. 801a506: 493b ldr r1, [pc, #236] @ (801a5f4 <pbuf_free+0x108>)
  64899. 801a508: 483b ldr r0, [pc, #236] @ (801a5f8 <pbuf_free+0x10c>)
  64900. 801a50a: f00f fa67 bl 80299dc <iprintf>
  64901. /* if assertions are disabled, proceed with debug output */
  64902. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  64903. ("pbuf_free(p == NULL) was called.\n"));
  64904. return 0;
  64905. 801a50e: 2300 movs r3, #0
  64906. 801a510: e069 b.n 801a5e6 <pbuf_free+0xfa>
  64907. }
  64908. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p));
  64909. PERF_START;
  64910. count = 0;
  64911. 801a512: 2300 movs r3, #0
  64912. 801a514: 77fb strb r3, [r7, #31]
  64913. /* de-allocate all consecutive pbufs from the head of the chain that
  64914. * obtain a zero reference count after decrementing*/
  64915. while (p != NULL) {
  64916. 801a516: e062 b.n 801a5de <pbuf_free+0xf2>
  64917. LWIP_PBUF_REF_T ref;
  64918. SYS_ARCH_DECL_PROTECT(old_level);
  64919. /* Since decrementing ref cannot be guaranteed to be a single machine operation
  64920. * we must protect it. We put the new ref into a local variable to prevent
  64921. * further protection. */
  64922. SYS_ARCH_PROTECT(old_level);
  64923. 801a518: f00b ffca bl 80264b0 <sys_arch_protect>
  64924. 801a51c: 61b8 str r0, [r7, #24]
  64925. /* all pbufs in a chain are referenced at least once */
  64926. LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
  64927. 801a51e: 687b ldr r3, [r7, #4]
  64928. 801a520: 7b9b ldrb r3, [r3, #14]
  64929. 801a522: 2b00 cmp r3, #0
  64930. 801a524: d106 bne.n 801a534 <pbuf_free+0x48>
  64931. 801a526: 4b32 ldr r3, [pc, #200] @ (801a5f0 <pbuf_free+0x104>)
  64932. 801a528: f240 22f1 movw r2, #753 @ 0x2f1
  64933. 801a52c: 4933 ldr r1, [pc, #204] @ (801a5fc <pbuf_free+0x110>)
  64934. 801a52e: 4832 ldr r0, [pc, #200] @ (801a5f8 <pbuf_free+0x10c>)
  64935. 801a530: f00f fa54 bl 80299dc <iprintf>
  64936. /* decrease reference count (number of pointers to pbuf) */
  64937. ref = --(p->ref);
  64938. 801a534: 687b ldr r3, [r7, #4]
  64939. 801a536: 7b9b ldrb r3, [r3, #14]
  64940. 801a538: 3b01 subs r3, #1
  64941. 801a53a: b2da uxtb r2, r3
  64942. 801a53c: 687b ldr r3, [r7, #4]
  64943. 801a53e: 739a strb r2, [r3, #14]
  64944. 801a540: 687b ldr r3, [r7, #4]
  64945. 801a542: 7b9b ldrb r3, [r3, #14]
  64946. 801a544: 75fb strb r3, [r7, #23]
  64947. SYS_ARCH_UNPROTECT(old_level);
  64948. 801a546: 69b8 ldr r0, [r7, #24]
  64949. 801a548: f00b ffc0 bl 80264cc <sys_arch_unprotect>
  64950. /* this pbuf is no longer referenced to? */
  64951. if (ref == 0) {
  64952. 801a54c: 7dfb ldrb r3, [r7, #23]
  64953. 801a54e: 2b00 cmp r3, #0
  64954. 801a550: d143 bne.n 801a5da <pbuf_free+0xee>
  64955. /* remember next pbuf in chain for next iteration */
  64956. q = p->next;
  64957. 801a552: 687b ldr r3, [r7, #4]
  64958. 801a554: 681b ldr r3, [r3, #0]
  64959. 801a556: 613b str r3, [r7, #16]
  64960. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p));
  64961. alloc_src = pbuf_get_allocsrc(p);
  64962. 801a558: 687b ldr r3, [r7, #4]
  64963. 801a55a: 7b1b ldrb r3, [r3, #12]
  64964. 801a55c: f003 030f and.w r3, r3, #15
  64965. 801a560: 73fb strb r3, [r7, #15]
  64966. #if LWIP_SUPPORT_CUSTOM_PBUF
  64967. /* is this a custom pbuf? */
  64968. if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) {
  64969. 801a562: 687b ldr r3, [r7, #4]
  64970. 801a564: 7b5b ldrb r3, [r3, #13]
  64971. 801a566: f003 0302 and.w r3, r3, #2
  64972. 801a56a: 2b00 cmp r3, #0
  64973. 801a56c: d011 beq.n 801a592 <pbuf_free+0xa6>
  64974. struct pbuf_custom *pc = (struct pbuf_custom *)p;
  64975. 801a56e: 687b ldr r3, [r7, #4]
  64976. 801a570: 60bb str r3, [r7, #8]
  64977. LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL);
  64978. 801a572: 68bb ldr r3, [r7, #8]
  64979. 801a574: 691b ldr r3, [r3, #16]
  64980. 801a576: 2b00 cmp r3, #0
  64981. 801a578: d106 bne.n 801a588 <pbuf_free+0x9c>
  64982. 801a57a: 4b1d ldr r3, [pc, #116] @ (801a5f0 <pbuf_free+0x104>)
  64983. 801a57c: f240 22ff movw r2, #767 @ 0x2ff
  64984. 801a580: 491f ldr r1, [pc, #124] @ (801a600 <pbuf_free+0x114>)
  64985. 801a582: 481d ldr r0, [pc, #116] @ (801a5f8 <pbuf_free+0x10c>)
  64986. 801a584: f00f fa2a bl 80299dc <iprintf>
  64987. pc->custom_free_function(p);
  64988. 801a588: 68bb ldr r3, [r7, #8]
  64989. 801a58a: 691b ldr r3, [r3, #16]
  64990. 801a58c: 6878 ldr r0, [r7, #4]
  64991. 801a58e: 4798 blx r3
  64992. 801a590: e01d b.n 801a5ce <pbuf_free+0xe2>
  64993. } else
  64994. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  64995. {
  64996. /* is this a pbuf from the pool? */
  64997. if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) {
  64998. 801a592: 7bfb ldrb r3, [r7, #15]
  64999. 801a594: 2b02 cmp r3, #2
  65000. 801a596: d104 bne.n 801a5a2 <pbuf_free+0xb6>
  65001. memp_free(MEMP_PBUF_POOL, p);
  65002. 801a598: 6879 ldr r1, [r7, #4]
  65003. 801a59a: 200c movs r0, #12
  65004. 801a59c: f7ff f8b8 bl 8019710 <memp_free>
  65005. 801a5a0: e015 b.n 801a5ce <pbuf_free+0xe2>
  65006. /* is this a ROM or RAM referencing pbuf? */
  65007. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) {
  65008. 801a5a2: 7bfb ldrb r3, [r7, #15]
  65009. 801a5a4: 2b01 cmp r3, #1
  65010. 801a5a6: d104 bne.n 801a5b2 <pbuf_free+0xc6>
  65011. memp_free(MEMP_PBUF, p);
  65012. 801a5a8: 6879 ldr r1, [r7, #4]
  65013. 801a5aa: 200b movs r0, #11
  65014. 801a5ac: f7ff f8b0 bl 8019710 <memp_free>
  65015. 801a5b0: e00d b.n 801a5ce <pbuf_free+0xe2>
  65016. /* type == PBUF_RAM */
  65017. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) {
  65018. 801a5b2: 7bfb ldrb r3, [r7, #15]
  65019. 801a5b4: 2b00 cmp r3, #0
  65020. 801a5b6: d103 bne.n 801a5c0 <pbuf_free+0xd4>
  65021. mem_free(p);
  65022. 801a5b8: 6878 ldr r0, [r7, #4]
  65023. 801a5ba: f7fe fd05 bl 8018fc8 <mem_free>
  65024. 801a5be: e006 b.n 801a5ce <pbuf_free+0xe2>
  65025. } else {
  65026. /* @todo: support freeing other types */
  65027. LWIP_ASSERT("invalid pbuf type", 0);
  65028. 801a5c0: 4b0b ldr r3, [pc, #44] @ (801a5f0 <pbuf_free+0x104>)
  65029. 801a5c2: f240 320f movw r2, #783 @ 0x30f
  65030. 801a5c6: 490f ldr r1, [pc, #60] @ (801a604 <pbuf_free+0x118>)
  65031. 801a5c8: 480b ldr r0, [pc, #44] @ (801a5f8 <pbuf_free+0x10c>)
  65032. 801a5ca: f00f fa07 bl 80299dc <iprintf>
  65033. }
  65034. }
  65035. count++;
  65036. 801a5ce: 7ffb ldrb r3, [r7, #31]
  65037. 801a5d0: 3301 adds r3, #1
  65038. 801a5d2: 77fb strb r3, [r7, #31]
  65039. /* proceed to next pbuf */
  65040. p = q;
  65041. 801a5d4: 693b ldr r3, [r7, #16]
  65042. 801a5d6: 607b str r3, [r7, #4]
  65043. 801a5d8: e001 b.n 801a5de <pbuf_free+0xf2>
  65044. /* p->ref > 0, this pbuf is still referenced to */
  65045. /* (and so the remaining pbufs in chain as well) */
  65046. } else {
  65047. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref));
  65048. /* stop walking through the chain */
  65049. p = NULL;
  65050. 801a5da: 2300 movs r3, #0
  65051. 801a5dc: 607b str r3, [r7, #4]
  65052. while (p != NULL) {
  65053. 801a5de: 687b ldr r3, [r7, #4]
  65054. 801a5e0: 2b00 cmp r3, #0
  65055. 801a5e2: d199 bne.n 801a518 <pbuf_free+0x2c>
  65056. }
  65057. }
  65058. PERF_STOP("pbuf_free");
  65059. /* return number of de-allocated pbufs */
  65060. return count;
  65061. 801a5e4: 7ffb ldrb r3, [r7, #31]
  65062. }
  65063. 801a5e6: 4618 mov r0, r3
  65064. 801a5e8: 3720 adds r7, #32
  65065. 801a5ea: 46bd mov sp, r7
  65066. 801a5ec: bd80 pop {r7, pc}
  65067. 801a5ee: bf00 nop
  65068. 801a5f0: 0802e0f0 .word 0x0802e0f0
  65069. 801a5f4: 0802e254 .word 0x0802e254
  65070. 801a5f8: 0802e150 .word 0x0802e150
  65071. 801a5fc: 0802e280 .word 0x0802e280
  65072. 801a600: 0802e298 .word 0x0802e298
  65073. 801a604: 0802e2bc .word 0x0802e2bc
  65074. 0801a608 <pbuf_clen>:
  65075. * @param p first pbuf of chain
  65076. * @return the number of pbufs in a chain
  65077. */
  65078. u16_t
  65079. pbuf_clen(const struct pbuf *p)
  65080. {
  65081. 801a608: b480 push {r7}
  65082. 801a60a: b085 sub sp, #20
  65083. 801a60c: af00 add r7, sp, #0
  65084. 801a60e: 6078 str r0, [r7, #4]
  65085. u16_t len;
  65086. len = 0;
  65087. 801a610: 2300 movs r3, #0
  65088. 801a612: 81fb strh r3, [r7, #14]
  65089. while (p != NULL) {
  65090. 801a614: e005 b.n 801a622 <pbuf_clen+0x1a>
  65091. ++len;
  65092. 801a616: 89fb ldrh r3, [r7, #14]
  65093. 801a618: 3301 adds r3, #1
  65094. 801a61a: 81fb strh r3, [r7, #14]
  65095. p = p->next;
  65096. 801a61c: 687b ldr r3, [r7, #4]
  65097. 801a61e: 681b ldr r3, [r3, #0]
  65098. 801a620: 607b str r3, [r7, #4]
  65099. while (p != NULL) {
  65100. 801a622: 687b ldr r3, [r7, #4]
  65101. 801a624: 2b00 cmp r3, #0
  65102. 801a626: d1f6 bne.n 801a616 <pbuf_clen+0xe>
  65103. }
  65104. return len;
  65105. 801a628: 89fb ldrh r3, [r7, #14]
  65106. }
  65107. 801a62a: 4618 mov r0, r3
  65108. 801a62c: 3714 adds r7, #20
  65109. 801a62e: 46bd mov sp, r7
  65110. 801a630: f85d 7b04 ldr.w r7, [sp], #4
  65111. 801a634: 4770 bx lr
  65112. ...
  65113. 0801a638 <pbuf_ref>:
  65114. * @param p pbuf to increase reference counter of
  65115. *
  65116. */
  65117. void
  65118. pbuf_ref(struct pbuf *p)
  65119. {
  65120. 801a638: b580 push {r7, lr}
  65121. 801a63a: b084 sub sp, #16
  65122. 801a63c: af00 add r7, sp, #0
  65123. 801a63e: 6078 str r0, [r7, #4]
  65124. /* pbuf given? */
  65125. if (p != NULL) {
  65126. 801a640: 687b ldr r3, [r7, #4]
  65127. 801a642: 2b00 cmp r3, #0
  65128. 801a644: d016 beq.n 801a674 <pbuf_ref+0x3c>
  65129. SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1));
  65130. 801a646: f00b ff33 bl 80264b0 <sys_arch_protect>
  65131. 801a64a: 60f8 str r0, [r7, #12]
  65132. 801a64c: 687b ldr r3, [r7, #4]
  65133. 801a64e: 7b9b ldrb r3, [r3, #14]
  65134. 801a650: 3301 adds r3, #1
  65135. 801a652: b2da uxtb r2, r3
  65136. 801a654: 687b ldr r3, [r7, #4]
  65137. 801a656: 739a strb r2, [r3, #14]
  65138. 801a658: 68f8 ldr r0, [r7, #12]
  65139. 801a65a: f00b ff37 bl 80264cc <sys_arch_unprotect>
  65140. LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
  65141. 801a65e: 687b ldr r3, [r7, #4]
  65142. 801a660: 7b9b ldrb r3, [r3, #14]
  65143. 801a662: 2b00 cmp r3, #0
  65144. 801a664: d106 bne.n 801a674 <pbuf_ref+0x3c>
  65145. 801a666: 4b05 ldr r3, [pc, #20] @ (801a67c <pbuf_ref+0x44>)
  65146. 801a668: f240 3242 movw r2, #834 @ 0x342
  65147. 801a66c: 4904 ldr r1, [pc, #16] @ (801a680 <pbuf_ref+0x48>)
  65148. 801a66e: 4805 ldr r0, [pc, #20] @ (801a684 <pbuf_ref+0x4c>)
  65149. 801a670: f00f f9b4 bl 80299dc <iprintf>
  65150. }
  65151. }
  65152. 801a674: bf00 nop
  65153. 801a676: 3710 adds r7, #16
  65154. 801a678: 46bd mov sp, r7
  65155. 801a67a: bd80 pop {r7, pc}
  65156. 801a67c: 0802e0f0 .word 0x0802e0f0
  65157. 801a680: 0802e2d0 .word 0x0802e2d0
  65158. 801a684: 0802e150 .word 0x0802e150
  65159. 0801a688 <pbuf_cat>:
  65160. *
  65161. * @see pbuf_chain()
  65162. */
  65163. void
  65164. pbuf_cat(struct pbuf *h, struct pbuf *t)
  65165. {
  65166. 801a688: b580 push {r7, lr}
  65167. 801a68a: b084 sub sp, #16
  65168. 801a68c: af00 add r7, sp, #0
  65169. 801a68e: 6078 str r0, [r7, #4]
  65170. 801a690: 6039 str r1, [r7, #0]
  65171. struct pbuf *p;
  65172. LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)",
  65173. 801a692: 687b ldr r3, [r7, #4]
  65174. 801a694: 2b00 cmp r3, #0
  65175. 801a696: d002 beq.n 801a69e <pbuf_cat+0x16>
  65176. 801a698: 683b ldr r3, [r7, #0]
  65177. 801a69a: 2b00 cmp r3, #0
  65178. 801a69c: d107 bne.n 801a6ae <pbuf_cat+0x26>
  65179. 801a69e: 4b20 ldr r3, [pc, #128] @ (801a720 <pbuf_cat+0x98>)
  65180. 801a6a0: f240 3259 movw r2, #857 @ 0x359
  65181. 801a6a4: 491f ldr r1, [pc, #124] @ (801a724 <pbuf_cat+0x9c>)
  65182. 801a6a6: 4820 ldr r0, [pc, #128] @ (801a728 <pbuf_cat+0xa0>)
  65183. 801a6a8: f00f f998 bl 80299dc <iprintf>
  65184. 801a6ac: e034 b.n 801a718 <pbuf_cat+0x90>
  65185. ((h != NULL) && (t != NULL)), return;);
  65186. /* proceed to last pbuf of chain */
  65187. for (p = h; p->next != NULL; p = p->next) {
  65188. 801a6ae: 687b ldr r3, [r7, #4]
  65189. 801a6b0: 60fb str r3, [r7, #12]
  65190. 801a6b2: e00a b.n 801a6ca <pbuf_cat+0x42>
  65191. /* add total length of second chain to all totals of first chain */
  65192. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  65193. 801a6b4: 68fb ldr r3, [r7, #12]
  65194. 801a6b6: 891a ldrh r2, [r3, #8]
  65195. 801a6b8: 683b ldr r3, [r7, #0]
  65196. 801a6ba: 891b ldrh r3, [r3, #8]
  65197. 801a6bc: 4413 add r3, r2
  65198. 801a6be: b29a uxth r2, r3
  65199. 801a6c0: 68fb ldr r3, [r7, #12]
  65200. 801a6c2: 811a strh r2, [r3, #8]
  65201. for (p = h; p->next != NULL; p = p->next) {
  65202. 801a6c4: 68fb ldr r3, [r7, #12]
  65203. 801a6c6: 681b ldr r3, [r3, #0]
  65204. 801a6c8: 60fb str r3, [r7, #12]
  65205. 801a6ca: 68fb ldr r3, [r7, #12]
  65206. 801a6cc: 681b ldr r3, [r3, #0]
  65207. 801a6ce: 2b00 cmp r3, #0
  65208. 801a6d0: d1f0 bne.n 801a6b4 <pbuf_cat+0x2c>
  65209. }
  65210. /* { p is last pbuf of first h chain, p->next == NULL } */
  65211. LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len);
  65212. 801a6d2: 68fb ldr r3, [r7, #12]
  65213. 801a6d4: 891a ldrh r2, [r3, #8]
  65214. 801a6d6: 68fb ldr r3, [r7, #12]
  65215. 801a6d8: 895b ldrh r3, [r3, #10]
  65216. 801a6da: 429a cmp r2, r3
  65217. 801a6dc: d006 beq.n 801a6ec <pbuf_cat+0x64>
  65218. 801a6de: 4b10 ldr r3, [pc, #64] @ (801a720 <pbuf_cat+0x98>)
  65219. 801a6e0: f240 3262 movw r2, #866 @ 0x362
  65220. 801a6e4: 4911 ldr r1, [pc, #68] @ (801a72c <pbuf_cat+0xa4>)
  65221. 801a6e6: 4810 ldr r0, [pc, #64] @ (801a728 <pbuf_cat+0xa0>)
  65222. 801a6e8: f00f f978 bl 80299dc <iprintf>
  65223. LWIP_ASSERT("p->next == NULL", p->next == NULL);
  65224. 801a6ec: 68fb ldr r3, [r7, #12]
  65225. 801a6ee: 681b ldr r3, [r3, #0]
  65226. 801a6f0: 2b00 cmp r3, #0
  65227. 801a6f2: d006 beq.n 801a702 <pbuf_cat+0x7a>
  65228. 801a6f4: 4b0a ldr r3, [pc, #40] @ (801a720 <pbuf_cat+0x98>)
  65229. 801a6f6: f240 3263 movw r2, #867 @ 0x363
  65230. 801a6fa: 490d ldr r1, [pc, #52] @ (801a730 <pbuf_cat+0xa8>)
  65231. 801a6fc: 480a ldr r0, [pc, #40] @ (801a728 <pbuf_cat+0xa0>)
  65232. 801a6fe: f00f f96d bl 80299dc <iprintf>
  65233. /* add total length of second chain to last pbuf total of first chain */
  65234. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  65235. 801a702: 68fb ldr r3, [r7, #12]
  65236. 801a704: 891a ldrh r2, [r3, #8]
  65237. 801a706: 683b ldr r3, [r7, #0]
  65238. 801a708: 891b ldrh r3, [r3, #8]
  65239. 801a70a: 4413 add r3, r2
  65240. 801a70c: b29a uxth r2, r3
  65241. 801a70e: 68fb ldr r3, [r7, #12]
  65242. 801a710: 811a strh r2, [r3, #8]
  65243. /* chain last pbuf of head (p) with first of tail (t) */
  65244. p->next = t;
  65245. 801a712: 68fb ldr r3, [r7, #12]
  65246. 801a714: 683a ldr r2, [r7, #0]
  65247. 801a716: 601a str r2, [r3, #0]
  65248. /* p->next now references t, but the caller will drop its reference to t,
  65249. * so netto there is no change to the reference count of t.
  65250. */
  65251. }
  65252. 801a718: 3710 adds r7, #16
  65253. 801a71a: 46bd mov sp, r7
  65254. 801a71c: bd80 pop {r7, pc}
  65255. 801a71e: bf00 nop
  65256. 801a720: 0802e0f0 .word 0x0802e0f0
  65257. 801a724: 0802e2e4 .word 0x0802e2e4
  65258. 801a728: 0802e150 .word 0x0802e150
  65259. 801a72c: 0802e31c .word 0x0802e31c
  65260. 801a730: 0802e34c .word 0x0802e34c
  65261. 0801a734 <pbuf_chain>:
  65262. * The ->ref field of the first pbuf of the tail chain is adjusted.
  65263. *
  65264. */
  65265. void
  65266. pbuf_chain(struct pbuf *h, struct pbuf *t)
  65267. {
  65268. 801a734: b580 push {r7, lr}
  65269. 801a736: b082 sub sp, #8
  65270. 801a738: af00 add r7, sp, #0
  65271. 801a73a: 6078 str r0, [r7, #4]
  65272. 801a73c: 6039 str r1, [r7, #0]
  65273. pbuf_cat(h, t);
  65274. 801a73e: 6839 ldr r1, [r7, #0]
  65275. 801a740: 6878 ldr r0, [r7, #4]
  65276. 801a742: f7ff ffa1 bl 801a688 <pbuf_cat>
  65277. /* t is now referenced by h */
  65278. pbuf_ref(t);
  65279. 801a746: 6838 ldr r0, [r7, #0]
  65280. 801a748: f7ff ff76 bl 801a638 <pbuf_ref>
  65281. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t));
  65282. }
  65283. 801a74c: bf00 nop
  65284. 801a74e: 3708 adds r7, #8
  65285. 801a750: 46bd mov sp, r7
  65286. 801a752: bd80 pop {r7, pc}
  65287. 0801a754 <pbuf_copy>:
  65288. * ERR_ARG if one of the pbufs is NULL or p_to is not big
  65289. * enough to hold p_from
  65290. */
  65291. err_t
  65292. pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
  65293. {
  65294. 801a754: b580 push {r7, lr}
  65295. 801a756: b086 sub sp, #24
  65296. 801a758: af00 add r7, sp, #0
  65297. 801a75a: 6078 str r0, [r7, #4]
  65298. 801a75c: 6039 str r1, [r7, #0]
  65299. size_t offset_to = 0, offset_from = 0, len;
  65300. 801a75e: 2300 movs r3, #0
  65301. 801a760: 617b str r3, [r7, #20]
  65302. 801a762: 2300 movs r3, #0
  65303. 801a764: 613b str r3, [r7, #16]
  65304. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n",
  65305. (const void *)p_to, (const void *)p_from));
  65306. /* is the target big enough to hold the source? */
  65307. LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) &&
  65308. 801a766: 687b ldr r3, [r7, #4]
  65309. 801a768: 2b00 cmp r3, #0
  65310. 801a76a: d008 beq.n 801a77e <pbuf_copy+0x2a>
  65311. 801a76c: 683b ldr r3, [r7, #0]
  65312. 801a76e: 2b00 cmp r3, #0
  65313. 801a770: d005 beq.n 801a77e <pbuf_copy+0x2a>
  65314. 801a772: 687b ldr r3, [r7, #4]
  65315. 801a774: 891a ldrh r2, [r3, #8]
  65316. 801a776: 683b ldr r3, [r7, #0]
  65317. 801a778: 891b ldrh r3, [r3, #8]
  65318. 801a77a: 429a cmp r2, r3
  65319. 801a77c: d209 bcs.n 801a792 <pbuf_copy+0x3e>
  65320. 801a77e: 4b57 ldr r3, [pc, #348] @ (801a8dc <pbuf_copy+0x188>)
  65321. 801a780: f240 32c9 movw r2, #969 @ 0x3c9
  65322. 801a784: 4956 ldr r1, [pc, #344] @ (801a8e0 <pbuf_copy+0x18c>)
  65323. 801a786: 4857 ldr r0, [pc, #348] @ (801a8e4 <pbuf_copy+0x190>)
  65324. 801a788: f00f f928 bl 80299dc <iprintf>
  65325. 801a78c: f06f 030f mvn.w r3, #15
  65326. 801a790: e09f b.n 801a8d2 <pbuf_copy+0x17e>
  65327. (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;);
  65328. /* iterate through pbuf chain */
  65329. do {
  65330. /* copy one part of the original chain */
  65331. if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
  65332. 801a792: 687b ldr r3, [r7, #4]
  65333. 801a794: 895b ldrh r3, [r3, #10]
  65334. 801a796: 461a mov r2, r3
  65335. 801a798: 697b ldr r3, [r7, #20]
  65336. 801a79a: 1ad2 subs r2, r2, r3
  65337. 801a79c: 683b ldr r3, [r7, #0]
  65338. 801a79e: 895b ldrh r3, [r3, #10]
  65339. 801a7a0: 4619 mov r1, r3
  65340. 801a7a2: 693b ldr r3, [r7, #16]
  65341. 801a7a4: 1acb subs r3, r1, r3
  65342. 801a7a6: 429a cmp r2, r3
  65343. 801a7a8: d306 bcc.n 801a7b8 <pbuf_copy+0x64>
  65344. /* complete current p_from fits into current p_to */
  65345. len = p_from->len - offset_from;
  65346. 801a7aa: 683b ldr r3, [r7, #0]
  65347. 801a7ac: 895b ldrh r3, [r3, #10]
  65348. 801a7ae: 461a mov r2, r3
  65349. 801a7b0: 693b ldr r3, [r7, #16]
  65350. 801a7b2: 1ad3 subs r3, r2, r3
  65351. 801a7b4: 60fb str r3, [r7, #12]
  65352. 801a7b6: e005 b.n 801a7c4 <pbuf_copy+0x70>
  65353. } else {
  65354. /* current p_from does not fit into current p_to */
  65355. len = p_to->len - offset_to;
  65356. 801a7b8: 687b ldr r3, [r7, #4]
  65357. 801a7ba: 895b ldrh r3, [r3, #10]
  65358. 801a7bc: 461a mov r2, r3
  65359. 801a7be: 697b ldr r3, [r7, #20]
  65360. 801a7c0: 1ad3 subs r3, r2, r3
  65361. 801a7c2: 60fb str r3, [r7, #12]
  65362. }
  65363. MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len);
  65364. 801a7c4: 687b ldr r3, [r7, #4]
  65365. 801a7c6: 685a ldr r2, [r3, #4]
  65366. 801a7c8: 697b ldr r3, [r7, #20]
  65367. 801a7ca: 18d0 adds r0, r2, r3
  65368. 801a7cc: 683b ldr r3, [r7, #0]
  65369. 801a7ce: 685a ldr r2, [r3, #4]
  65370. 801a7d0: 693b ldr r3, [r7, #16]
  65371. 801a7d2: 4413 add r3, r2
  65372. 801a7d4: 68fa ldr r2, [r7, #12]
  65373. 801a7d6: 4619 mov r1, r3
  65374. 801a7d8: f00f fb89 bl 8029eee <memcpy>
  65375. offset_to += len;
  65376. 801a7dc: 697a ldr r2, [r7, #20]
  65377. 801a7de: 68fb ldr r3, [r7, #12]
  65378. 801a7e0: 4413 add r3, r2
  65379. 801a7e2: 617b str r3, [r7, #20]
  65380. offset_from += len;
  65381. 801a7e4: 693a ldr r2, [r7, #16]
  65382. 801a7e6: 68fb ldr r3, [r7, #12]
  65383. 801a7e8: 4413 add r3, r2
  65384. 801a7ea: 613b str r3, [r7, #16]
  65385. LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len);
  65386. 801a7ec: 687b ldr r3, [r7, #4]
  65387. 801a7ee: 895b ldrh r3, [r3, #10]
  65388. 801a7f0: 461a mov r2, r3
  65389. 801a7f2: 697b ldr r3, [r7, #20]
  65390. 801a7f4: 4293 cmp r3, r2
  65391. 801a7f6: d906 bls.n 801a806 <pbuf_copy+0xb2>
  65392. 801a7f8: 4b38 ldr r3, [pc, #224] @ (801a8dc <pbuf_copy+0x188>)
  65393. 801a7fa: f240 32d9 movw r2, #985 @ 0x3d9
  65394. 801a7fe: 493a ldr r1, [pc, #232] @ (801a8e8 <pbuf_copy+0x194>)
  65395. 801a800: 4838 ldr r0, [pc, #224] @ (801a8e4 <pbuf_copy+0x190>)
  65396. 801a802: f00f f8eb bl 80299dc <iprintf>
  65397. LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len);
  65398. 801a806: 683b ldr r3, [r7, #0]
  65399. 801a808: 895b ldrh r3, [r3, #10]
  65400. 801a80a: 461a mov r2, r3
  65401. 801a80c: 693b ldr r3, [r7, #16]
  65402. 801a80e: 4293 cmp r3, r2
  65403. 801a810: d906 bls.n 801a820 <pbuf_copy+0xcc>
  65404. 801a812: 4b32 ldr r3, [pc, #200] @ (801a8dc <pbuf_copy+0x188>)
  65405. 801a814: f240 32da movw r2, #986 @ 0x3da
  65406. 801a818: 4934 ldr r1, [pc, #208] @ (801a8ec <pbuf_copy+0x198>)
  65407. 801a81a: 4832 ldr r0, [pc, #200] @ (801a8e4 <pbuf_copy+0x190>)
  65408. 801a81c: f00f f8de bl 80299dc <iprintf>
  65409. if (offset_from >= p_from->len) {
  65410. 801a820: 683b ldr r3, [r7, #0]
  65411. 801a822: 895b ldrh r3, [r3, #10]
  65412. 801a824: 461a mov r2, r3
  65413. 801a826: 693b ldr r3, [r7, #16]
  65414. 801a828: 4293 cmp r3, r2
  65415. 801a82a: d304 bcc.n 801a836 <pbuf_copy+0xe2>
  65416. /* on to next p_from (if any) */
  65417. offset_from = 0;
  65418. 801a82c: 2300 movs r3, #0
  65419. 801a82e: 613b str r3, [r7, #16]
  65420. p_from = p_from->next;
  65421. 801a830: 683b ldr r3, [r7, #0]
  65422. 801a832: 681b ldr r3, [r3, #0]
  65423. 801a834: 603b str r3, [r7, #0]
  65424. }
  65425. if (offset_to == p_to->len) {
  65426. 801a836: 687b ldr r3, [r7, #4]
  65427. 801a838: 895b ldrh r3, [r3, #10]
  65428. 801a83a: 461a mov r2, r3
  65429. 801a83c: 697b ldr r3, [r7, #20]
  65430. 801a83e: 4293 cmp r3, r2
  65431. 801a840: d114 bne.n 801a86c <pbuf_copy+0x118>
  65432. /* on to next p_to (if any) */
  65433. offset_to = 0;
  65434. 801a842: 2300 movs r3, #0
  65435. 801a844: 617b str r3, [r7, #20]
  65436. p_to = p_to->next;
  65437. 801a846: 687b ldr r3, [r7, #4]
  65438. 801a848: 681b ldr r3, [r3, #0]
  65439. 801a84a: 607b str r3, [r7, #4]
  65440. LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;);
  65441. 801a84c: 687b ldr r3, [r7, #4]
  65442. 801a84e: 2b00 cmp r3, #0
  65443. 801a850: d10c bne.n 801a86c <pbuf_copy+0x118>
  65444. 801a852: 683b ldr r3, [r7, #0]
  65445. 801a854: 2b00 cmp r3, #0
  65446. 801a856: d009 beq.n 801a86c <pbuf_copy+0x118>
  65447. 801a858: 4b20 ldr r3, [pc, #128] @ (801a8dc <pbuf_copy+0x188>)
  65448. 801a85a: f44f 7279 mov.w r2, #996 @ 0x3e4
  65449. 801a85e: 4924 ldr r1, [pc, #144] @ (801a8f0 <pbuf_copy+0x19c>)
  65450. 801a860: 4820 ldr r0, [pc, #128] @ (801a8e4 <pbuf_copy+0x190>)
  65451. 801a862: f00f f8bb bl 80299dc <iprintf>
  65452. 801a866: f06f 030f mvn.w r3, #15
  65453. 801a86a: e032 b.n 801a8d2 <pbuf_copy+0x17e>
  65454. }
  65455. if ((p_from != NULL) && (p_from->len == p_from->tot_len)) {
  65456. 801a86c: 683b ldr r3, [r7, #0]
  65457. 801a86e: 2b00 cmp r3, #0
  65458. 801a870: d013 beq.n 801a89a <pbuf_copy+0x146>
  65459. 801a872: 683b ldr r3, [r7, #0]
  65460. 801a874: 895a ldrh r2, [r3, #10]
  65461. 801a876: 683b ldr r3, [r7, #0]
  65462. 801a878: 891b ldrh r3, [r3, #8]
  65463. 801a87a: 429a cmp r2, r3
  65464. 801a87c: d10d bne.n 801a89a <pbuf_copy+0x146>
  65465. /* don't copy more than one packet! */
  65466. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  65467. 801a87e: 683b ldr r3, [r7, #0]
  65468. 801a880: 681b ldr r3, [r3, #0]
  65469. 801a882: 2b00 cmp r3, #0
  65470. 801a884: d009 beq.n 801a89a <pbuf_copy+0x146>
  65471. 801a886: 4b15 ldr r3, [pc, #84] @ (801a8dc <pbuf_copy+0x188>)
  65472. 801a888: f240 32e9 movw r2, #1001 @ 0x3e9
  65473. 801a88c: 4919 ldr r1, [pc, #100] @ (801a8f4 <pbuf_copy+0x1a0>)
  65474. 801a88e: 4815 ldr r0, [pc, #84] @ (801a8e4 <pbuf_copy+0x190>)
  65475. 801a890: f00f f8a4 bl 80299dc <iprintf>
  65476. 801a894: f06f 0305 mvn.w r3, #5
  65477. 801a898: e01b b.n 801a8d2 <pbuf_copy+0x17e>
  65478. (p_from->next == NULL), return ERR_VAL;);
  65479. }
  65480. if ((p_to != NULL) && (p_to->len == p_to->tot_len)) {
  65481. 801a89a: 687b ldr r3, [r7, #4]
  65482. 801a89c: 2b00 cmp r3, #0
  65483. 801a89e: d013 beq.n 801a8c8 <pbuf_copy+0x174>
  65484. 801a8a0: 687b ldr r3, [r7, #4]
  65485. 801a8a2: 895a ldrh r2, [r3, #10]
  65486. 801a8a4: 687b ldr r3, [r7, #4]
  65487. 801a8a6: 891b ldrh r3, [r3, #8]
  65488. 801a8a8: 429a cmp r2, r3
  65489. 801a8aa: d10d bne.n 801a8c8 <pbuf_copy+0x174>
  65490. /* don't copy more than one packet! */
  65491. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  65492. 801a8ac: 687b ldr r3, [r7, #4]
  65493. 801a8ae: 681b ldr r3, [r3, #0]
  65494. 801a8b0: 2b00 cmp r3, #0
  65495. 801a8b2: d009 beq.n 801a8c8 <pbuf_copy+0x174>
  65496. 801a8b4: 4b09 ldr r3, [pc, #36] @ (801a8dc <pbuf_copy+0x188>)
  65497. 801a8b6: f240 32ee movw r2, #1006 @ 0x3ee
  65498. 801a8ba: 490e ldr r1, [pc, #56] @ (801a8f4 <pbuf_copy+0x1a0>)
  65499. 801a8bc: 4809 ldr r0, [pc, #36] @ (801a8e4 <pbuf_copy+0x190>)
  65500. 801a8be: f00f f88d bl 80299dc <iprintf>
  65501. 801a8c2: f06f 0305 mvn.w r3, #5
  65502. 801a8c6: e004 b.n 801a8d2 <pbuf_copy+0x17e>
  65503. (p_to->next == NULL), return ERR_VAL;);
  65504. }
  65505. } while (p_from);
  65506. 801a8c8: 683b ldr r3, [r7, #0]
  65507. 801a8ca: 2b00 cmp r3, #0
  65508. 801a8cc: f47f af61 bne.w 801a792 <pbuf_copy+0x3e>
  65509. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n"));
  65510. return ERR_OK;
  65511. 801a8d0: 2300 movs r3, #0
  65512. }
  65513. 801a8d2: 4618 mov r0, r3
  65514. 801a8d4: 3718 adds r7, #24
  65515. 801a8d6: 46bd mov sp, r7
  65516. 801a8d8: bd80 pop {r7, pc}
  65517. 801a8da: bf00 nop
  65518. 801a8dc: 0802e0f0 .word 0x0802e0f0
  65519. 801a8e0: 0802e398 .word 0x0802e398
  65520. 801a8e4: 0802e150 .word 0x0802e150
  65521. 801a8e8: 0802e3c8 .word 0x0802e3c8
  65522. 801a8ec: 0802e3e0 .word 0x0802e3e0
  65523. 801a8f0: 0802e3fc .word 0x0802e3fc
  65524. 801a8f4: 0802e40c .word 0x0802e40c
  65525. 0801a8f8 <pbuf_copy_partial>:
  65526. * @param offset offset into the packet buffer from where to begin copying len bytes
  65527. * @return the number of bytes copied, or 0 on failure
  65528. */
  65529. u16_t
  65530. pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
  65531. {
  65532. 801a8f8: b580 push {r7, lr}
  65533. 801a8fa: b088 sub sp, #32
  65534. 801a8fc: af00 add r7, sp, #0
  65535. 801a8fe: 60f8 str r0, [r7, #12]
  65536. 801a900: 60b9 str r1, [r7, #8]
  65537. 801a902: 4611 mov r1, r2
  65538. 801a904: 461a mov r2, r3
  65539. 801a906: 460b mov r3, r1
  65540. 801a908: 80fb strh r3, [r7, #6]
  65541. 801a90a: 4613 mov r3, r2
  65542. 801a90c: 80bb strh r3, [r7, #4]
  65543. const struct pbuf *p;
  65544. u16_t left = 0;
  65545. 801a90e: 2300 movs r3, #0
  65546. 801a910: 837b strh r3, [r7, #26]
  65547. u16_t buf_copy_len;
  65548. u16_t copied_total = 0;
  65549. 801a912: 2300 movs r3, #0
  65550. 801a914: 82fb strh r3, [r7, #22]
  65551. LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;);
  65552. 801a916: 68fb ldr r3, [r7, #12]
  65553. 801a918: 2b00 cmp r3, #0
  65554. 801a91a: d108 bne.n 801a92e <pbuf_copy_partial+0x36>
  65555. 801a91c: 4b2b ldr r3, [pc, #172] @ (801a9cc <pbuf_copy_partial+0xd4>)
  65556. 801a91e: f240 420a movw r2, #1034 @ 0x40a
  65557. 801a922: 492b ldr r1, [pc, #172] @ (801a9d0 <pbuf_copy_partial+0xd8>)
  65558. 801a924: 482b ldr r0, [pc, #172] @ (801a9d4 <pbuf_copy_partial+0xdc>)
  65559. 801a926: f00f f859 bl 80299dc <iprintf>
  65560. 801a92a: 2300 movs r3, #0
  65561. 801a92c: e04a b.n 801a9c4 <pbuf_copy_partial+0xcc>
  65562. LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;);
  65563. 801a92e: 68bb ldr r3, [r7, #8]
  65564. 801a930: 2b00 cmp r3, #0
  65565. 801a932: d108 bne.n 801a946 <pbuf_copy_partial+0x4e>
  65566. 801a934: 4b25 ldr r3, [pc, #148] @ (801a9cc <pbuf_copy_partial+0xd4>)
  65567. 801a936: f240 420b movw r2, #1035 @ 0x40b
  65568. 801a93a: 4927 ldr r1, [pc, #156] @ (801a9d8 <pbuf_copy_partial+0xe0>)
  65569. 801a93c: 4825 ldr r0, [pc, #148] @ (801a9d4 <pbuf_copy_partial+0xdc>)
  65570. 801a93e: f00f f84d bl 80299dc <iprintf>
  65571. 801a942: 2300 movs r3, #0
  65572. 801a944: e03e b.n 801a9c4 <pbuf_copy_partial+0xcc>
  65573. /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
  65574. for (p = buf; len != 0 && p != NULL; p = p->next) {
  65575. 801a946: 68fb ldr r3, [r7, #12]
  65576. 801a948: 61fb str r3, [r7, #28]
  65577. 801a94a: e034 b.n 801a9b6 <pbuf_copy_partial+0xbe>
  65578. if ((offset != 0) && (offset >= p->len)) {
  65579. 801a94c: 88bb ldrh r3, [r7, #4]
  65580. 801a94e: 2b00 cmp r3, #0
  65581. 801a950: d00a beq.n 801a968 <pbuf_copy_partial+0x70>
  65582. 801a952: 69fb ldr r3, [r7, #28]
  65583. 801a954: 895b ldrh r3, [r3, #10]
  65584. 801a956: 88ba ldrh r2, [r7, #4]
  65585. 801a958: 429a cmp r2, r3
  65586. 801a95a: d305 bcc.n 801a968 <pbuf_copy_partial+0x70>
  65587. /* don't copy from this buffer -> on to the next */
  65588. offset = (u16_t)(offset - p->len);
  65589. 801a95c: 69fb ldr r3, [r7, #28]
  65590. 801a95e: 895b ldrh r3, [r3, #10]
  65591. 801a960: 88ba ldrh r2, [r7, #4]
  65592. 801a962: 1ad3 subs r3, r2, r3
  65593. 801a964: 80bb strh r3, [r7, #4]
  65594. 801a966: e023 b.n 801a9b0 <pbuf_copy_partial+0xb8>
  65595. } else {
  65596. /* copy from this buffer. maybe only partially. */
  65597. buf_copy_len = (u16_t)(p->len - offset);
  65598. 801a968: 69fb ldr r3, [r7, #28]
  65599. 801a96a: 895a ldrh r2, [r3, #10]
  65600. 801a96c: 88bb ldrh r3, [r7, #4]
  65601. 801a96e: 1ad3 subs r3, r2, r3
  65602. 801a970: 833b strh r3, [r7, #24]
  65603. if (buf_copy_len > len) {
  65604. 801a972: 8b3a ldrh r2, [r7, #24]
  65605. 801a974: 88fb ldrh r3, [r7, #6]
  65606. 801a976: 429a cmp r2, r3
  65607. 801a978: d901 bls.n 801a97e <pbuf_copy_partial+0x86>
  65608. buf_copy_len = len;
  65609. 801a97a: 88fb ldrh r3, [r7, #6]
  65610. 801a97c: 833b strh r3, [r7, #24]
  65611. }
  65612. /* copy the necessary parts of the buffer */
  65613. MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
  65614. 801a97e: 8b7b ldrh r3, [r7, #26]
  65615. 801a980: 68ba ldr r2, [r7, #8]
  65616. 801a982: 18d0 adds r0, r2, r3
  65617. 801a984: 69fb ldr r3, [r7, #28]
  65618. 801a986: 685a ldr r2, [r3, #4]
  65619. 801a988: 88bb ldrh r3, [r7, #4]
  65620. 801a98a: 4413 add r3, r2
  65621. 801a98c: 8b3a ldrh r2, [r7, #24]
  65622. 801a98e: 4619 mov r1, r3
  65623. 801a990: f00f faad bl 8029eee <memcpy>
  65624. copied_total = (u16_t)(copied_total + buf_copy_len);
  65625. 801a994: 8afa ldrh r2, [r7, #22]
  65626. 801a996: 8b3b ldrh r3, [r7, #24]
  65627. 801a998: 4413 add r3, r2
  65628. 801a99a: 82fb strh r3, [r7, #22]
  65629. left = (u16_t)(left + buf_copy_len);
  65630. 801a99c: 8b7a ldrh r2, [r7, #26]
  65631. 801a99e: 8b3b ldrh r3, [r7, #24]
  65632. 801a9a0: 4413 add r3, r2
  65633. 801a9a2: 837b strh r3, [r7, #26]
  65634. len = (u16_t)(len - buf_copy_len);
  65635. 801a9a4: 88fa ldrh r2, [r7, #6]
  65636. 801a9a6: 8b3b ldrh r3, [r7, #24]
  65637. 801a9a8: 1ad3 subs r3, r2, r3
  65638. 801a9aa: 80fb strh r3, [r7, #6]
  65639. offset = 0;
  65640. 801a9ac: 2300 movs r3, #0
  65641. 801a9ae: 80bb strh r3, [r7, #4]
  65642. for (p = buf; len != 0 && p != NULL; p = p->next) {
  65643. 801a9b0: 69fb ldr r3, [r7, #28]
  65644. 801a9b2: 681b ldr r3, [r3, #0]
  65645. 801a9b4: 61fb str r3, [r7, #28]
  65646. 801a9b6: 88fb ldrh r3, [r7, #6]
  65647. 801a9b8: 2b00 cmp r3, #0
  65648. 801a9ba: d002 beq.n 801a9c2 <pbuf_copy_partial+0xca>
  65649. 801a9bc: 69fb ldr r3, [r7, #28]
  65650. 801a9be: 2b00 cmp r3, #0
  65651. 801a9c0: d1c4 bne.n 801a94c <pbuf_copy_partial+0x54>
  65652. }
  65653. }
  65654. return copied_total;
  65655. 801a9c2: 8afb ldrh r3, [r7, #22]
  65656. }
  65657. 801a9c4: 4618 mov r0, r3
  65658. 801a9c6: 3720 adds r7, #32
  65659. 801a9c8: 46bd mov sp, r7
  65660. 801a9ca: bd80 pop {r7, pc}
  65661. 801a9cc: 0802e0f0 .word 0x0802e0f0
  65662. 801a9d0: 0802e438 .word 0x0802e438
  65663. 801a9d4: 0802e150 .word 0x0802e150
  65664. 801a9d8: 0802e458 .word 0x0802e458
  65665. 0801a9dc <pbuf_clone>:
  65666. *
  65667. * @return a new pbuf or NULL if allocation fails
  65668. */
  65669. struct pbuf *
  65670. pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p)
  65671. {
  65672. 801a9dc: b580 push {r7, lr}
  65673. 801a9de: b084 sub sp, #16
  65674. 801a9e0: af00 add r7, sp, #0
  65675. 801a9e2: 4603 mov r3, r0
  65676. 801a9e4: 603a str r2, [r7, #0]
  65677. 801a9e6: 71fb strb r3, [r7, #7]
  65678. 801a9e8: 460b mov r3, r1
  65679. 801a9ea: 80bb strh r3, [r7, #4]
  65680. struct pbuf *q;
  65681. err_t err;
  65682. q = pbuf_alloc(layer, p->tot_len, type);
  65683. 801a9ec: 683b ldr r3, [r7, #0]
  65684. 801a9ee: 8919 ldrh r1, [r3, #8]
  65685. 801a9f0: 88ba ldrh r2, [r7, #4]
  65686. 801a9f2: 79fb ldrb r3, [r7, #7]
  65687. 801a9f4: 4618 mov r0, r3
  65688. 801a9f6: f7ff fa63 bl 8019ec0 <pbuf_alloc>
  65689. 801a9fa: 60f8 str r0, [r7, #12]
  65690. if (q == NULL) {
  65691. 801a9fc: 68fb ldr r3, [r7, #12]
  65692. 801a9fe: 2b00 cmp r3, #0
  65693. 801aa00: d101 bne.n 801aa06 <pbuf_clone+0x2a>
  65694. return NULL;
  65695. 801aa02: 2300 movs r3, #0
  65696. 801aa04: e011 b.n 801aa2a <pbuf_clone+0x4e>
  65697. }
  65698. err = pbuf_copy(q, p);
  65699. 801aa06: 6839 ldr r1, [r7, #0]
  65700. 801aa08: 68f8 ldr r0, [r7, #12]
  65701. 801aa0a: f7ff fea3 bl 801a754 <pbuf_copy>
  65702. 801aa0e: 4603 mov r3, r0
  65703. 801aa10: 72fb strb r3, [r7, #11]
  65704. LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */
  65705. LWIP_ASSERT("pbuf_copy failed", err == ERR_OK);
  65706. 801aa12: f997 300b ldrsb.w r3, [r7, #11]
  65707. 801aa16: 2b00 cmp r3, #0
  65708. 801aa18: d006 beq.n 801aa28 <pbuf_clone+0x4c>
  65709. 801aa1a: 4b06 ldr r3, [pc, #24] @ (801aa34 <pbuf_clone+0x58>)
  65710. 801aa1c: f240 5224 movw r2, #1316 @ 0x524
  65711. 801aa20: 4905 ldr r1, [pc, #20] @ (801aa38 <pbuf_clone+0x5c>)
  65712. 801aa22: 4806 ldr r0, [pc, #24] @ (801aa3c <pbuf_clone+0x60>)
  65713. 801aa24: f00e ffda bl 80299dc <iprintf>
  65714. return q;
  65715. 801aa28: 68fb ldr r3, [r7, #12]
  65716. }
  65717. 801aa2a: 4618 mov r0, r3
  65718. 801aa2c: 3710 adds r7, #16
  65719. 801aa2e: 46bd mov sp, r7
  65720. 801aa30: bd80 pop {r7, pc}
  65721. 801aa32: bf00 nop
  65722. 801aa34: 0802e0f0 .word 0x0802e0f0
  65723. 801aa38: 0802e564 .word 0x0802e564
  65724. 801aa3c: 0802e150 .word 0x0802e150
  65725. 0801aa40 <tcp_init>:
  65726. /**
  65727. * Initialize this module.
  65728. */
  65729. void
  65730. tcp_init(void)
  65731. {
  65732. 801aa40: b580 push {r7, lr}
  65733. 801aa42: af00 add r7, sp, #0
  65734. #ifdef LWIP_RAND
  65735. tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  65736. 801aa44: f00d fca0 bl 8028388 <rand>
  65737. 801aa48: 4603 mov r3, r0
  65738. 801aa4a: b29b uxth r3, r3
  65739. 801aa4c: f3c3 030d ubfx r3, r3, #0, #14
  65740. 801aa50: b29b uxth r3, r3
  65741. 801aa52: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  65742. 801aa56: b29a uxth r2, r3
  65743. 801aa58: 4b01 ldr r3, [pc, #4] @ (801aa60 <tcp_init+0x20>)
  65744. 801aa5a: 801a strh r2, [r3, #0]
  65745. #endif /* LWIP_RAND */
  65746. }
  65747. 801aa5c: bf00 nop
  65748. 801aa5e: bd80 pop {r7, pc}
  65749. 801aa60: 2400004c .word 0x2400004c
  65750. 0801aa64 <tcp_free>:
  65751. /** Free a tcp pcb */
  65752. void
  65753. tcp_free(struct tcp_pcb *pcb)
  65754. {
  65755. 801aa64: b580 push {r7, lr}
  65756. 801aa66: b082 sub sp, #8
  65757. 801aa68: af00 add r7, sp, #0
  65758. 801aa6a: 6078 str r0, [r7, #4]
  65759. LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN);
  65760. 801aa6c: 687b ldr r3, [r7, #4]
  65761. 801aa6e: 7d1b ldrb r3, [r3, #20]
  65762. 801aa70: 2b01 cmp r3, #1
  65763. 801aa72: d105 bne.n 801aa80 <tcp_free+0x1c>
  65764. 801aa74: 4b06 ldr r3, [pc, #24] @ (801aa90 <tcp_free+0x2c>)
  65765. 801aa76: 22d4 movs r2, #212 @ 0xd4
  65766. 801aa78: 4906 ldr r1, [pc, #24] @ (801aa94 <tcp_free+0x30>)
  65767. 801aa7a: 4807 ldr r0, [pc, #28] @ (801aa98 <tcp_free+0x34>)
  65768. 801aa7c: f00e ffae bl 80299dc <iprintf>
  65769. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  65770. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  65771. #endif
  65772. memp_free(MEMP_TCP_PCB, pcb);
  65773. 801aa80: 6879 ldr r1, [r7, #4]
  65774. 801aa82: 2001 movs r0, #1
  65775. 801aa84: f7fe fe44 bl 8019710 <memp_free>
  65776. }
  65777. 801aa88: bf00 nop
  65778. 801aa8a: 3708 adds r7, #8
  65779. 801aa8c: 46bd mov sp, r7
  65780. 801aa8e: bd80 pop {r7, pc}
  65781. 801aa90: 0802e5f0 .word 0x0802e5f0
  65782. 801aa94: 0802e620 .word 0x0802e620
  65783. 801aa98: 0802e634 .word 0x0802e634
  65784. 0801aa9c <tcp_free_listen>:
  65785. /** Free a tcp listen pcb */
  65786. static void
  65787. tcp_free_listen(struct tcp_pcb *pcb)
  65788. {
  65789. 801aa9c: b580 push {r7, lr}
  65790. 801aa9e: b082 sub sp, #8
  65791. 801aaa0: af00 add r7, sp, #0
  65792. 801aaa2: 6078 str r0, [r7, #4]
  65793. LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN);
  65794. 801aaa4: 687b ldr r3, [r7, #4]
  65795. 801aaa6: 7d1b ldrb r3, [r3, #20]
  65796. 801aaa8: 2b01 cmp r3, #1
  65797. 801aaaa: d105 bne.n 801aab8 <tcp_free_listen+0x1c>
  65798. 801aaac: 4b06 ldr r3, [pc, #24] @ (801aac8 <tcp_free_listen+0x2c>)
  65799. 801aaae: 22df movs r2, #223 @ 0xdf
  65800. 801aab0: 4906 ldr r1, [pc, #24] @ (801aacc <tcp_free_listen+0x30>)
  65801. 801aab2: 4807 ldr r0, [pc, #28] @ (801aad0 <tcp_free_listen+0x34>)
  65802. 801aab4: f00e ff92 bl 80299dc <iprintf>
  65803. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  65804. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  65805. #endif
  65806. memp_free(MEMP_TCP_PCB_LISTEN, pcb);
  65807. 801aab8: 6879 ldr r1, [r7, #4]
  65808. 801aaba: 2002 movs r0, #2
  65809. 801aabc: f7fe fe28 bl 8019710 <memp_free>
  65810. }
  65811. 801aac0: bf00 nop
  65812. 801aac2: 3708 adds r7, #8
  65813. 801aac4: 46bd mov sp, r7
  65814. 801aac6: bd80 pop {r7, pc}
  65815. 801aac8: 0802e5f0 .word 0x0802e5f0
  65816. 801aacc: 0802e65c .word 0x0802e65c
  65817. 801aad0: 0802e634 .word 0x0802e634
  65818. 0801aad4 <tcp_tmr>:
  65819. /**
  65820. * Called periodically to dispatch TCP timers.
  65821. */
  65822. void
  65823. tcp_tmr(void)
  65824. {
  65825. 801aad4: b580 push {r7, lr}
  65826. 801aad6: af00 add r7, sp, #0
  65827. /* Call tcp_fasttmr() every 250 ms */
  65828. tcp_fasttmr();
  65829. 801aad8: f001 f86a bl 801bbb0 <tcp_fasttmr>
  65830. if (++tcp_timer & 1) {
  65831. 801aadc: 4b07 ldr r3, [pc, #28] @ (801aafc <tcp_tmr+0x28>)
  65832. 801aade: 781b ldrb r3, [r3, #0]
  65833. 801aae0: 3301 adds r3, #1
  65834. 801aae2: b2da uxtb r2, r3
  65835. 801aae4: 4b05 ldr r3, [pc, #20] @ (801aafc <tcp_tmr+0x28>)
  65836. 801aae6: 701a strb r2, [r3, #0]
  65837. 801aae8: 4b04 ldr r3, [pc, #16] @ (801aafc <tcp_tmr+0x28>)
  65838. 801aaea: 781b ldrb r3, [r3, #0]
  65839. 801aaec: f003 0301 and.w r3, r3, #1
  65840. 801aaf0: 2b00 cmp r3, #0
  65841. 801aaf2: d001 beq.n 801aaf8 <tcp_tmr+0x24>
  65842. /* Call tcp_slowtmr() every 500 ms, i.e., every other timer
  65843. tcp_tmr() is called. */
  65844. tcp_slowtmr();
  65845. 801aaf4: f000 fd1a bl 801b52c <tcp_slowtmr>
  65846. }
  65847. }
  65848. 801aaf8: bf00 nop
  65849. 801aafa: bd80 pop {r7, pc}
  65850. 801aafc: 2402ae9d .word 0x2402ae9d
  65851. 0801ab00 <tcp_remove_listener>:
  65852. /** Called when a listen pcb is closed. Iterates one pcb list and removes the
  65853. * closed listener pcb from pcb->listener if matching.
  65854. */
  65855. static void
  65856. tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb)
  65857. {
  65858. 801ab00: b580 push {r7, lr}
  65859. 801ab02: b084 sub sp, #16
  65860. 801ab04: af00 add r7, sp, #0
  65861. 801ab06: 6078 str r0, [r7, #4]
  65862. 801ab08: 6039 str r1, [r7, #0]
  65863. struct tcp_pcb *pcb;
  65864. LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL);
  65865. 801ab0a: 683b ldr r3, [r7, #0]
  65866. 801ab0c: 2b00 cmp r3, #0
  65867. 801ab0e: d105 bne.n 801ab1c <tcp_remove_listener+0x1c>
  65868. 801ab10: 4b0d ldr r3, [pc, #52] @ (801ab48 <tcp_remove_listener+0x48>)
  65869. 801ab12: 22ff movs r2, #255 @ 0xff
  65870. 801ab14: 490d ldr r1, [pc, #52] @ (801ab4c <tcp_remove_listener+0x4c>)
  65871. 801ab16: 480e ldr r0, [pc, #56] @ (801ab50 <tcp_remove_listener+0x50>)
  65872. 801ab18: f00e ff60 bl 80299dc <iprintf>
  65873. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  65874. 801ab1c: 687b ldr r3, [r7, #4]
  65875. 801ab1e: 60fb str r3, [r7, #12]
  65876. 801ab20: e00a b.n 801ab38 <tcp_remove_listener+0x38>
  65877. if (pcb->listener == lpcb) {
  65878. 801ab22: 68fb ldr r3, [r7, #12]
  65879. 801ab24: 6fdb ldr r3, [r3, #124] @ 0x7c
  65880. 801ab26: 683a ldr r2, [r7, #0]
  65881. 801ab28: 429a cmp r2, r3
  65882. 801ab2a: d102 bne.n 801ab32 <tcp_remove_listener+0x32>
  65883. pcb->listener = NULL;
  65884. 801ab2c: 68fb ldr r3, [r7, #12]
  65885. 801ab2e: 2200 movs r2, #0
  65886. 801ab30: 67da str r2, [r3, #124] @ 0x7c
  65887. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  65888. 801ab32: 68fb ldr r3, [r7, #12]
  65889. 801ab34: 68db ldr r3, [r3, #12]
  65890. 801ab36: 60fb str r3, [r7, #12]
  65891. 801ab38: 68fb ldr r3, [r7, #12]
  65892. 801ab3a: 2b00 cmp r3, #0
  65893. 801ab3c: d1f1 bne.n 801ab22 <tcp_remove_listener+0x22>
  65894. }
  65895. }
  65896. }
  65897. 801ab3e: bf00 nop
  65898. 801ab40: bf00 nop
  65899. 801ab42: 3710 adds r7, #16
  65900. 801ab44: 46bd mov sp, r7
  65901. 801ab46: bd80 pop {r7, pc}
  65902. 801ab48: 0802e5f0 .word 0x0802e5f0
  65903. 801ab4c: 0802e678 .word 0x0802e678
  65904. 801ab50: 0802e634 .word 0x0802e634
  65905. 0801ab54 <tcp_listen_closed>:
  65906. /** Called when a listen pcb is closed. Iterates all pcb lists and removes the
  65907. * closed listener pcb from pcb->listener if matching.
  65908. */
  65909. static void
  65910. tcp_listen_closed(struct tcp_pcb *pcb)
  65911. {
  65912. 801ab54: b580 push {r7, lr}
  65913. 801ab56: b084 sub sp, #16
  65914. 801ab58: af00 add r7, sp, #0
  65915. 801ab5a: 6078 str r0, [r7, #4]
  65916. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  65917. size_t i;
  65918. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  65919. 801ab5c: 687b ldr r3, [r7, #4]
  65920. 801ab5e: 2b00 cmp r3, #0
  65921. 801ab60: d106 bne.n 801ab70 <tcp_listen_closed+0x1c>
  65922. 801ab62: 4b14 ldr r3, [pc, #80] @ (801abb4 <tcp_listen_closed+0x60>)
  65923. 801ab64: f240 1211 movw r2, #273 @ 0x111
  65924. 801ab68: 4913 ldr r1, [pc, #76] @ (801abb8 <tcp_listen_closed+0x64>)
  65925. 801ab6a: 4814 ldr r0, [pc, #80] @ (801abbc <tcp_listen_closed+0x68>)
  65926. 801ab6c: f00e ff36 bl 80299dc <iprintf>
  65927. LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN);
  65928. 801ab70: 687b ldr r3, [r7, #4]
  65929. 801ab72: 7d1b ldrb r3, [r3, #20]
  65930. 801ab74: 2b01 cmp r3, #1
  65931. 801ab76: d006 beq.n 801ab86 <tcp_listen_closed+0x32>
  65932. 801ab78: 4b0e ldr r3, [pc, #56] @ (801abb4 <tcp_listen_closed+0x60>)
  65933. 801ab7a: f44f 7289 mov.w r2, #274 @ 0x112
  65934. 801ab7e: 4910 ldr r1, [pc, #64] @ (801abc0 <tcp_listen_closed+0x6c>)
  65935. 801ab80: 480e ldr r0, [pc, #56] @ (801abbc <tcp_listen_closed+0x68>)
  65936. 801ab82: f00e ff2b bl 80299dc <iprintf>
  65937. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  65938. 801ab86: 2301 movs r3, #1
  65939. 801ab88: 60fb str r3, [r7, #12]
  65940. 801ab8a: e00b b.n 801aba4 <tcp_listen_closed+0x50>
  65941. tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb);
  65942. 801ab8c: 4a0d ldr r2, [pc, #52] @ (801abc4 <tcp_listen_closed+0x70>)
  65943. 801ab8e: 68fb ldr r3, [r7, #12]
  65944. 801ab90: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  65945. 801ab94: 681b ldr r3, [r3, #0]
  65946. 801ab96: 6879 ldr r1, [r7, #4]
  65947. 801ab98: 4618 mov r0, r3
  65948. 801ab9a: f7ff ffb1 bl 801ab00 <tcp_remove_listener>
  65949. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  65950. 801ab9e: 68fb ldr r3, [r7, #12]
  65951. 801aba0: 3301 adds r3, #1
  65952. 801aba2: 60fb str r3, [r7, #12]
  65953. 801aba4: 68fb ldr r3, [r7, #12]
  65954. 801aba6: 2b03 cmp r3, #3
  65955. 801aba8: d9f0 bls.n 801ab8c <tcp_listen_closed+0x38>
  65956. }
  65957. #endif
  65958. LWIP_UNUSED_ARG(pcb);
  65959. }
  65960. 801abaa: bf00 nop
  65961. 801abac: bf00 nop
  65962. 801abae: 3710 adds r7, #16
  65963. 801abb0: 46bd mov sp, r7
  65964. 801abb2: bd80 pop {r7, pc}
  65965. 801abb4: 0802e5f0 .word 0x0802e5f0
  65966. 801abb8: 0802e6a0 .word 0x0802e6a0
  65967. 801abbc: 0802e634 .word 0x0802e634
  65968. 801abc0: 0802e6ac .word 0x0802e6ac
  65969. 801abc4: 08030c30 .word 0x08030c30
  65970. 0801abc8 <tcp_close_shutdown>:
  65971. * @return ERR_OK if connection has been closed
  65972. * another err_t if closing failed and pcb is not freed
  65973. */
  65974. static err_t
  65975. tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
  65976. {
  65977. 801abc8: b5b0 push {r4, r5, r7, lr}
  65978. 801abca: b088 sub sp, #32
  65979. 801abcc: af04 add r7, sp, #16
  65980. 801abce: 6078 str r0, [r7, #4]
  65981. 801abd0: 460b mov r3, r1
  65982. 801abd2: 70fb strb r3, [r7, #3]
  65983. LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL);
  65984. 801abd4: 687b ldr r3, [r7, #4]
  65985. 801abd6: 2b00 cmp r3, #0
  65986. 801abd8: d106 bne.n 801abe8 <tcp_close_shutdown+0x20>
  65987. 801abda: 4b63 ldr r3, [pc, #396] @ (801ad68 <tcp_close_shutdown+0x1a0>)
  65988. 801abdc: f44f 72af mov.w r2, #350 @ 0x15e
  65989. 801abe0: 4962 ldr r1, [pc, #392] @ (801ad6c <tcp_close_shutdown+0x1a4>)
  65990. 801abe2: 4863 ldr r0, [pc, #396] @ (801ad70 <tcp_close_shutdown+0x1a8>)
  65991. 801abe4: f00e fefa bl 80299dc <iprintf>
  65992. if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) {
  65993. 801abe8: 78fb ldrb r3, [r7, #3]
  65994. 801abea: 2b00 cmp r3, #0
  65995. 801abec: d067 beq.n 801acbe <tcp_close_shutdown+0xf6>
  65996. 801abee: 687b ldr r3, [r7, #4]
  65997. 801abf0: 7d1b ldrb r3, [r3, #20]
  65998. 801abf2: 2b04 cmp r3, #4
  65999. 801abf4: d003 beq.n 801abfe <tcp_close_shutdown+0x36>
  66000. 801abf6: 687b ldr r3, [r7, #4]
  66001. 801abf8: 7d1b ldrb r3, [r3, #20]
  66002. 801abfa: 2b07 cmp r3, #7
  66003. 801abfc: d15f bne.n 801acbe <tcp_close_shutdown+0xf6>
  66004. if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) {
  66005. 801abfe: 687b ldr r3, [r7, #4]
  66006. 801ac00: 6f9b ldr r3, [r3, #120] @ 0x78
  66007. 801ac02: 2b00 cmp r3, #0
  66008. 801ac04: d105 bne.n 801ac12 <tcp_close_shutdown+0x4a>
  66009. 801ac06: 687b ldr r3, [r7, #4]
  66010. 801ac08: 8d1b ldrh r3, [r3, #40] @ 0x28
  66011. 801ac0a: f241 62d0 movw r2, #5840 @ 0x16d0
  66012. 801ac0e: 4293 cmp r3, r2
  66013. 801ac10: d055 beq.n 801acbe <tcp_close_shutdown+0xf6>
  66014. /* Not all data received by application, send RST to tell the remote
  66015. side about this. */
  66016. LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED);
  66017. 801ac12: 687b ldr r3, [r7, #4]
  66018. 801ac14: 8b5b ldrh r3, [r3, #26]
  66019. 801ac16: f003 0310 and.w r3, r3, #16
  66020. 801ac1a: 2b00 cmp r3, #0
  66021. 801ac1c: d106 bne.n 801ac2c <tcp_close_shutdown+0x64>
  66022. 801ac1e: 4b52 ldr r3, [pc, #328] @ (801ad68 <tcp_close_shutdown+0x1a0>)
  66023. 801ac20: f44f 72b2 mov.w r2, #356 @ 0x164
  66024. 801ac24: 4953 ldr r1, [pc, #332] @ (801ad74 <tcp_close_shutdown+0x1ac>)
  66025. 801ac26: 4852 ldr r0, [pc, #328] @ (801ad70 <tcp_close_shutdown+0x1a8>)
  66026. 801ac28: f00e fed8 bl 80299dc <iprintf>
  66027. /* don't call tcp_abort here: we must not deallocate the pcb since
  66028. that might not be expected when calling tcp_close */
  66029. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  66030. 801ac2c: 687b ldr r3, [r7, #4]
  66031. 801ac2e: 6d18 ldr r0, [r3, #80] @ 0x50
  66032. 801ac30: 687b ldr r3, [r7, #4]
  66033. 801ac32: 6a5c ldr r4, [r3, #36] @ 0x24
  66034. 801ac34: 687d ldr r5, [r7, #4]
  66035. 801ac36: 687b ldr r3, [r7, #4]
  66036. 801ac38: 3304 adds r3, #4
  66037. 801ac3a: 687a ldr r2, [r7, #4]
  66038. 801ac3c: 8ad2 ldrh r2, [r2, #22]
  66039. 801ac3e: 6879 ldr r1, [r7, #4]
  66040. 801ac40: 8b09 ldrh r1, [r1, #24]
  66041. 801ac42: 9102 str r1, [sp, #8]
  66042. 801ac44: 9201 str r2, [sp, #4]
  66043. 801ac46: 9300 str r3, [sp, #0]
  66044. 801ac48: 462b mov r3, r5
  66045. 801ac4a: 4622 mov r2, r4
  66046. 801ac4c: 4601 mov r1, r0
  66047. 801ac4e: 6878 ldr r0, [r7, #4]
  66048. 801ac50: f005 fdfa bl 8020848 <tcp_rst>
  66049. pcb->local_port, pcb->remote_port);
  66050. tcp_pcb_purge(pcb);
  66051. 801ac54: 6878 ldr r0, [r7, #4]
  66052. 801ac56: f001 fb67 bl 801c328 <tcp_pcb_purge>
  66053. TCP_RMV_ACTIVE(pcb);
  66054. 801ac5a: 4b47 ldr r3, [pc, #284] @ (801ad78 <tcp_close_shutdown+0x1b0>)
  66055. 801ac5c: 681b ldr r3, [r3, #0]
  66056. 801ac5e: 687a ldr r2, [r7, #4]
  66057. 801ac60: 429a cmp r2, r3
  66058. 801ac62: d105 bne.n 801ac70 <tcp_close_shutdown+0xa8>
  66059. 801ac64: 4b44 ldr r3, [pc, #272] @ (801ad78 <tcp_close_shutdown+0x1b0>)
  66060. 801ac66: 681b ldr r3, [r3, #0]
  66061. 801ac68: 68db ldr r3, [r3, #12]
  66062. 801ac6a: 4a43 ldr r2, [pc, #268] @ (801ad78 <tcp_close_shutdown+0x1b0>)
  66063. 801ac6c: 6013 str r3, [r2, #0]
  66064. 801ac6e: e013 b.n 801ac98 <tcp_close_shutdown+0xd0>
  66065. 801ac70: 4b41 ldr r3, [pc, #260] @ (801ad78 <tcp_close_shutdown+0x1b0>)
  66066. 801ac72: 681b ldr r3, [r3, #0]
  66067. 801ac74: 60fb str r3, [r7, #12]
  66068. 801ac76: e00c b.n 801ac92 <tcp_close_shutdown+0xca>
  66069. 801ac78: 68fb ldr r3, [r7, #12]
  66070. 801ac7a: 68db ldr r3, [r3, #12]
  66071. 801ac7c: 687a ldr r2, [r7, #4]
  66072. 801ac7e: 429a cmp r2, r3
  66073. 801ac80: d104 bne.n 801ac8c <tcp_close_shutdown+0xc4>
  66074. 801ac82: 687b ldr r3, [r7, #4]
  66075. 801ac84: 68da ldr r2, [r3, #12]
  66076. 801ac86: 68fb ldr r3, [r7, #12]
  66077. 801ac88: 60da str r2, [r3, #12]
  66078. 801ac8a: e005 b.n 801ac98 <tcp_close_shutdown+0xd0>
  66079. 801ac8c: 68fb ldr r3, [r7, #12]
  66080. 801ac8e: 68db ldr r3, [r3, #12]
  66081. 801ac90: 60fb str r3, [r7, #12]
  66082. 801ac92: 68fb ldr r3, [r7, #12]
  66083. 801ac94: 2b00 cmp r3, #0
  66084. 801ac96: d1ef bne.n 801ac78 <tcp_close_shutdown+0xb0>
  66085. 801ac98: 687b ldr r3, [r7, #4]
  66086. 801ac9a: 2200 movs r2, #0
  66087. 801ac9c: 60da str r2, [r3, #12]
  66088. 801ac9e: 4b37 ldr r3, [pc, #220] @ (801ad7c <tcp_close_shutdown+0x1b4>)
  66089. 801aca0: 2201 movs r2, #1
  66090. 801aca2: 701a strb r2, [r3, #0]
  66091. /* Deallocate the pcb since we already sent a RST for it */
  66092. if (tcp_input_pcb == pcb) {
  66093. 801aca4: 4b36 ldr r3, [pc, #216] @ (801ad80 <tcp_close_shutdown+0x1b8>)
  66094. 801aca6: 681b ldr r3, [r3, #0]
  66095. 801aca8: 687a ldr r2, [r7, #4]
  66096. 801acaa: 429a cmp r2, r3
  66097. 801acac: d102 bne.n 801acb4 <tcp_close_shutdown+0xec>
  66098. /* prevent using a deallocated pcb: free it from tcp_input later */
  66099. tcp_trigger_input_pcb_close();
  66100. 801acae: f003 ffff bl 801ecb0 <tcp_trigger_input_pcb_close>
  66101. 801acb2: e002 b.n 801acba <tcp_close_shutdown+0xf2>
  66102. } else {
  66103. tcp_free(pcb);
  66104. 801acb4: 6878 ldr r0, [r7, #4]
  66105. 801acb6: f7ff fed5 bl 801aa64 <tcp_free>
  66106. }
  66107. return ERR_OK;
  66108. 801acba: 2300 movs r3, #0
  66109. 801acbc: e050 b.n 801ad60 <tcp_close_shutdown+0x198>
  66110. }
  66111. }
  66112. /* - states which free the pcb are handled here,
  66113. - states which send FIN and change state are handled in tcp_close_shutdown_fin() */
  66114. switch (pcb->state) {
  66115. 801acbe: 687b ldr r3, [r7, #4]
  66116. 801acc0: 7d1b ldrb r3, [r3, #20]
  66117. 801acc2: 2b02 cmp r3, #2
  66118. 801acc4: d03b beq.n 801ad3e <tcp_close_shutdown+0x176>
  66119. 801acc6: 2b02 cmp r3, #2
  66120. 801acc8: dc44 bgt.n 801ad54 <tcp_close_shutdown+0x18c>
  66121. 801acca: 2b00 cmp r3, #0
  66122. 801accc: d002 beq.n 801acd4 <tcp_close_shutdown+0x10c>
  66123. 801acce: 2b01 cmp r3, #1
  66124. 801acd0: d02a beq.n 801ad28 <tcp_close_shutdown+0x160>
  66125. 801acd2: e03f b.n 801ad54 <tcp_close_shutdown+0x18c>
  66126. * and the user needs some way to free it should the need arise.
  66127. * Calling tcp_close() with a pcb that has already been closed, (i.e. twice)
  66128. * or for a pcb that has been used and then entered the CLOSED state
  66129. * is erroneous, but this should never happen as the pcb has in those cases
  66130. * been freed, and so any remaining handles are bogus. */
  66131. if (pcb->local_port != 0) {
  66132. 801acd4: 687b ldr r3, [r7, #4]
  66133. 801acd6: 8adb ldrh r3, [r3, #22]
  66134. 801acd8: 2b00 cmp r3, #0
  66135. 801acda: d021 beq.n 801ad20 <tcp_close_shutdown+0x158>
  66136. TCP_RMV(&tcp_bound_pcbs, pcb);
  66137. 801acdc: 4b29 ldr r3, [pc, #164] @ (801ad84 <tcp_close_shutdown+0x1bc>)
  66138. 801acde: 681b ldr r3, [r3, #0]
  66139. 801ace0: 687a ldr r2, [r7, #4]
  66140. 801ace2: 429a cmp r2, r3
  66141. 801ace4: d105 bne.n 801acf2 <tcp_close_shutdown+0x12a>
  66142. 801ace6: 4b27 ldr r3, [pc, #156] @ (801ad84 <tcp_close_shutdown+0x1bc>)
  66143. 801ace8: 681b ldr r3, [r3, #0]
  66144. 801acea: 68db ldr r3, [r3, #12]
  66145. 801acec: 4a25 ldr r2, [pc, #148] @ (801ad84 <tcp_close_shutdown+0x1bc>)
  66146. 801acee: 6013 str r3, [r2, #0]
  66147. 801acf0: e013 b.n 801ad1a <tcp_close_shutdown+0x152>
  66148. 801acf2: 4b24 ldr r3, [pc, #144] @ (801ad84 <tcp_close_shutdown+0x1bc>)
  66149. 801acf4: 681b ldr r3, [r3, #0]
  66150. 801acf6: 60bb str r3, [r7, #8]
  66151. 801acf8: e00c b.n 801ad14 <tcp_close_shutdown+0x14c>
  66152. 801acfa: 68bb ldr r3, [r7, #8]
  66153. 801acfc: 68db ldr r3, [r3, #12]
  66154. 801acfe: 687a ldr r2, [r7, #4]
  66155. 801ad00: 429a cmp r2, r3
  66156. 801ad02: d104 bne.n 801ad0e <tcp_close_shutdown+0x146>
  66157. 801ad04: 687b ldr r3, [r7, #4]
  66158. 801ad06: 68da ldr r2, [r3, #12]
  66159. 801ad08: 68bb ldr r3, [r7, #8]
  66160. 801ad0a: 60da str r2, [r3, #12]
  66161. 801ad0c: e005 b.n 801ad1a <tcp_close_shutdown+0x152>
  66162. 801ad0e: 68bb ldr r3, [r7, #8]
  66163. 801ad10: 68db ldr r3, [r3, #12]
  66164. 801ad12: 60bb str r3, [r7, #8]
  66165. 801ad14: 68bb ldr r3, [r7, #8]
  66166. 801ad16: 2b00 cmp r3, #0
  66167. 801ad18: d1ef bne.n 801acfa <tcp_close_shutdown+0x132>
  66168. 801ad1a: 687b ldr r3, [r7, #4]
  66169. 801ad1c: 2200 movs r2, #0
  66170. 801ad1e: 60da str r2, [r3, #12]
  66171. }
  66172. tcp_free(pcb);
  66173. 801ad20: 6878 ldr r0, [r7, #4]
  66174. 801ad22: f7ff fe9f bl 801aa64 <tcp_free>
  66175. break;
  66176. 801ad26: e01a b.n 801ad5e <tcp_close_shutdown+0x196>
  66177. case LISTEN:
  66178. tcp_listen_closed(pcb);
  66179. 801ad28: 6878 ldr r0, [r7, #4]
  66180. 801ad2a: f7ff ff13 bl 801ab54 <tcp_listen_closed>
  66181. tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb);
  66182. 801ad2e: 6879 ldr r1, [r7, #4]
  66183. 801ad30: 4815 ldr r0, [pc, #84] @ (801ad88 <tcp_close_shutdown+0x1c0>)
  66184. 801ad32: f001 fb49 bl 801c3c8 <tcp_pcb_remove>
  66185. tcp_free_listen(pcb);
  66186. 801ad36: 6878 ldr r0, [r7, #4]
  66187. 801ad38: f7ff feb0 bl 801aa9c <tcp_free_listen>
  66188. break;
  66189. 801ad3c: e00f b.n 801ad5e <tcp_close_shutdown+0x196>
  66190. case SYN_SENT:
  66191. TCP_PCB_REMOVE_ACTIVE(pcb);
  66192. 801ad3e: 6879 ldr r1, [r7, #4]
  66193. 801ad40: 480d ldr r0, [pc, #52] @ (801ad78 <tcp_close_shutdown+0x1b0>)
  66194. 801ad42: f001 fb41 bl 801c3c8 <tcp_pcb_remove>
  66195. 801ad46: 4b0d ldr r3, [pc, #52] @ (801ad7c <tcp_close_shutdown+0x1b4>)
  66196. 801ad48: 2201 movs r2, #1
  66197. 801ad4a: 701a strb r2, [r3, #0]
  66198. tcp_free(pcb);
  66199. 801ad4c: 6878 ldr r0, [r7, #4]
  66200. 801ad4e: f7ff fe89 bl 801aa64 <tcp_free>
  66201. MIB2_STATS_INC(mib2.tcpattemptfails);
  66202. break;
  66203. 801ad52: e004 b.n 801ad5e <tcp_close_shutdown+0x196>
  66204. default:
  66205. return tcp_close_shutdown_fin(pcb);
  66206. 801ad54: 6878 ldr r0, [r7, #4]
  66207. 801ad56: f000 f819 bl 801ad8c <tcp_close_shutdown_fin>
  66208. 801ad5a: 4603 mov r3, r0
  66209. 801ad5c: e000 b.n 801ad60 <tcp_close_shutdown+0x198>
  66210. }
  66211. return ERR_OK;
  66212. 801ad5e: 2300 movs r3, #0
  66213. }
  66214. 801ad60: 4618 mov r0, r3
  66215. 801ad62: 3710 adds r7, #16
  66216. 801ad64: 46bd mov sp, r7
  66217. 801ad66: bdb0 pop {r4, r5, r7, pc}
  66218. 801ad68: 0802e5f0 .word 0x0802e5f0
  66219. 801ad6c: 0802e6c4 .word 0x0802e6c4
  66220. 801ad70: 0802e634 .word 0x0802e634
  66221. 801ad74: 0802e6e4 .word 0x0802e6e4
  66222. 801ad78: 2402ae94 .word 0x2402ae94
  66223. 801ad7c: 2402ae9c .word 0x2402ae9c
  66224. 801ad80: 2402aed8 .word 0x2402aed8
  66225. 801ad84: 2402ae8c .word 0x2402ae8c
  66226. 801ad88: 2402ae90 .word 0x2402ae90
  66227. 0801ad8c <tcp_close_shutdown_fin>:
  66228. static err_t
  66229. tcp_close_shutdown_fin(struct tcp_pcb *pcb)
  66230. {
  66231. 801ad8c: b580 push {r7, lr}
  66232. 801ad8e: b084 sub sp, #16
  66233. 801ad90: af00 add r7, sp, #0
  66234. 801ad92: 6078 str r0, [r7, #4]
  66235. err_t err;
  66236. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  66237. 801ad94: 687b ldr r3, [r7, #4]
  66238. 801ad96: 2b00 cmp r3, #0
  66239. 801ad98: d106 bne.n 801ada8 <tcp_close_shutdown_fin+0x1c>
  66240. 801ad9a: 4b2e ldr r3, [pc, #184] @ (801ae54 <tcp_close_shutdown_fin+0xc8>)
  66241. 801ad9c: f44f 72ce mov.w r2, #412 @ 0x19c
  66242. 801ada0: 492d ldr r1, [pc, #180] @ (801ae58 <tcp_close_shutdown_fin+0xcc>)
  66243. 801ada2: 482e ldr r0, [pc, #184] @ (801ae5c <tcp_close_shutdown_fin+0xd0>)
  66244. 801ada4: f00e fe1a bl 80299dc <iprintf>
  66245. switch (pcb->state) {
  66246. 801ada8: 687b ldr r3, [r7, #4]
  66247. 801adaa: 7d1b ldrb r3, [r3, #20]
  66248. 801adac: 2b07 cmp r3, #7
  66249. 801adae: d020 beq.n 801adf2 <tcp_close_shutdown_fin+0x66>
  66250. 801adb0: 2b07 cmp r3, #7
  66251. 801adb2: dc2b bgt.n 801ae0c <tcp_close_shutdown_fin+0x80>
  66252. 801adb4: 2b03 cmp r3, #3
  66253. 801adb6: d002 beq.n 801adbe <tcp_close_shutdown_fin+0x32>
  66254. 801adb8: 2b04 cmp r3, #4
  66255. 801adba: d00d beq.n 801add8 <tcp_close_shutdown_fin+0x4c>
  66256. 801adbc: e026 b.n 801ae0c <tcp_close_shutdown_fin+0x80>
  66257. case SYN_RCVD:
  66258. err = tcp_send_fin(pcb);
  66259. 801adbe: 6878 ldr r0, [r7, #4]
  66260. 801adc0: f004 fe42 bl 801fa48 <tcp_send_fin>
  66261. 801adc4: 4603 mov r3, r0
  66262. 801adc6: 73fb strb r3, [r7, #15]
  66263. if (err == ERR_OK) {
  66264. 801adc8: f997 300f ldrsb.w r3, [r7, #15]
  66265. 801adcc: 2b00 cmp r3, #0
  66266. 801adce: d11f bne.n 801ae10 <tcp_close_shutdown_fin+0x84>
  66267. tcp_backlog_accepted(pcb);
  66268. MIB2_STATS_INC(mib2.tcpattemptfails);
  66269. pcb->state = FIN_WAIT_1;
  66270. 801add0: 687b ldr r3, [r7, #4]
  66271. 801add2: 2205 movs r2, #5
  66272. 801add4: 751a strb r2, [r3, #20]
  66273. }
  66274. break;
  66275. 801add6: e01b b.n 801ae10 <tcp_close_shutdown_fin+0x84>
  66276. case ESTABLISHED:
  66277. err = tcp_send_fin(pcb);
  66278. 801add8: 6878 ldr r0, [r7, #4]
  66279. 801adda: f004 fe35 bl 801fa48 <tcp_send_fin>
  66280. 801adde: 4603 mov r3, r0
  66281. 801ade0: 73fb strb r3, [r7, #15]
  66282. if (err == ERR_OK) {
  66283. 801ade2: f997 300f ldrsb.w r3, [r7, #15]
  66284. 801ade6: 2b00 cmp r3, #0
  66285. 801ade8: d114 bne.n 801ae14 <tcp_close_shutdown_fin+0x88>
  66286. MIB2_STATS_INC(mib2.tcpestabresets);
  66287. pcb->state = FIN_WAIT_1;
  66288. 801adea: 687b ldr r3, [r7, #4]
  66289. 801adec: 2205 movs r2, #5
  66290. 801adee: 751a strb r2, [r3, #20]
  66291. }
  66292. break;
  66293. 801adf0: e010 b.n 801ae14 <tcp_close_shutdown_fin+0x88>
  66294. case CLOSE_WAIT:
  66295. err = tcp_send_fin(pcb);
  66296. 801adf2: 6878 ldr r0, [r7, #4]
  66297. 801adf4: f004 fe28 bl 801fa48 <tcp_send_fin>
  66298. 801adf8: 4603 mov r3, r0
  66299. 801adfa: 73fb strb r3, [r7, #15]
  66300. if (err == ERR_OK) {
  66301. 801adfc: f997 300f ldrsb.w r3, [r7, #15]
  66302. 801ae00: 2b00 cmp r3, #0
  66303. 801ae02: d109 bne.n 801ae18 <tcp_close_shutdown_fin+0x8c>
  66304. MIB2_STATS_INC(mib2.tcpestabresets);
  66305. pcb->state = LAST_ACK;
  66306. 801ae04: 687b ldr r3, [r7, #4]
  66307. 801ae06: 2209 movs r2, #9
  66308. 801ae08: 751a strb r2, [r3, #20]
  66309. }
  66310. break;
  66311. 801ae0a: e005 b.n 801ae18 <tcp_close_shutdown_fin+0x8c>
  66312. default:
  66313. /* Has already been closed, do nothing. */
  66314. return ERR_OK;
  66315. 801ae0c: 2300 movs r3, #0
  66316. 801ae0e: e01c b.n 801ae4a <tcp_close_shutdown_fin+0xbe>
  66317. break;
  66318. 801ae10: bf00 nop
  66319. 801ae12: e002 b.n 801ae1a <tcp_close_shutdown_fin+0x8e>
  66320. break;
  66321. 801ae14: bf00 nop
  66322. 801ae16: e000 b.n 801ae1a <tcp_close_shutdown_fin+0x8e>
  66323. break;
  66324. 801ae18: bf00 nop
  66325. }
  66326. if (err == ERR_OK) {
  66327. 801ae1a: f997 300f ldrsb.w r3, [r7, #15]
  66328. 801ae1e: 2b00 cmp r3, #0
  66329. 801ae20: d103 bne.n 801ae2a <tcp_close_shutdown_fin+0x9e>
  66330. /* To ensure all data has been sent when tcp_close returns, we have
  66331. to make sure tcp_output doesn't fail.
  66332. Since we don't really have to ensure all data has been sent when tcp_close
  66333. returns (unsent data is sent from tcp timer functions, also), we don't care
  66334. for the return value of tcp_output for now. */
  66335. tcp_output(pcb);
  66336. 801ae22: 6878 ldr r0, [r7, #4]
  66337. 801ae24: f004 ff4e bl 801fcc4 <tcp_output>
  66338. 801ae28: e00d b.n 801ae46 <tcp_close_shutdown_fin+0xba>
  66339. } else if (err == ERR_MEM) {
  66340. 801ae2a: f997 300f ldrsb.w r3, [r7, #15]
  66341. 801ae2e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  66342. 801ae32: d108 bne.n 801ae46 <tcp_close_shutdown_fin+0xba>
  66343. /* Mark this pcb for closing. Closing is retried from tcp_tmr. */
  66344. tcp_set_flags(pcb, TF_CLOSEPEND);
  66345. 801ae34: 687b ldr r3, [r7, #4]
  66346. 801ae36: 8b5b ldrh r3, [r3, #26]
  66347. 801ae38: f043 0308 orr.w r3, r3, #8
  66348. 801ae3c: b29a uxth r2, r3
  66349. 801ae3e: 687b ldr r3, [r7, #4]
  66350. 801ae40: 835a strh r2, [r3, #26]
  66351. /* We have to return ERR_OK from here to indicate to the callers that this
  66352. pcb should not be used any more as it will be freed soon via tcp_tmr.
  66353. This is OK here since sending FIN does not guarantee a time frime for
  66354. actually freeing the pcb, either (it is left in closure states for
  66355. remote ACK or timeout) */
  66356. return ERR_OK;
  66357. 801ae42: 2300 movs r3, #0
  66358. 801ae44: e001 b.n 801ae4a <tcp_close_shutdown_fin+0xbe>
  66359. }
  66360. return err;
  66361. 801ae46: f997 300f ldrsb.w r3, [r7, #15]
  66362. }
  66363. 801ae4a: 4618 mov r0, r3
  66364. 801ae4c: 3710 adds r7, #16
  66365. 801ae4e: 46bd mov sp, r7
  66366. 801ae50: bd80 pop {r7, pc}
  66367. 801ae52: bf00 nop
  66368. 801ae54: 0802e5f0 .word 0x0802e5f0
  66369. 801ae58: 0802e6a0 .word 0x0802e6a0
  66370. 801ae5c: 0802e634 .word 0x0802e634
  66371. 0801ae60 <tcp_close>:
  66372. * @return ERR_OK if connection has been closed
  66373. * another err_t if closing failed and pcb is not freed
  66374. */
  66375. err_t
  66376. tcp_close(struct tcp_pcb *pcb)
  66377. {
  66378. 801ae60: b580 push {r7, lr}
  66379. 801ae62: b082 sub sp, #8
  66380. 801ae64: af00 add r7, sp, #0
  66381. 801ae66: 6078 str r0, [r7, #4]
  66382. LWIP_ASSERT_CORE_LOCKED();
  66383. 801ae68: f7f5 fb6c bl 8010544 <sys_check_core_locking>
  66384. LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG);
  66385. 801ae6c: 687b ldr r3, [r7, #4]
  66386. 801ae6e: 2b00 cmp r3, #0
  66387. 801ae70: d109 bne.n 801ae86 <tcp_close+0x26>
  66388. 801ae72: 4b0f ldr r3, [pc, #60] @ (801aeb0 <tcp_close+0x50>)
  66389. 801ae74: f44f 72f4 mov.w r2, #488 @ 0x1e8
  66390. 801ae78: 490e ldr r1, [pc, #56] @ (801aeb4 <tcp_close+0x54>)
  66391. 801ae7a: 480f ldr r0, [pc, #60] @ (801aeb8 <tcp_close+0x58>)
  66392. 801ae7c: f00e fdae bl 80299dc <iprintf>
  66393. 801ae80: f06f 030f mvn.w r3, #15
  66394. 801ae84: e00f b.n 801aea6 <tcp_close+0x46>
  66395. LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
  66396. tcp_debug_print_state(pcb->state);
  66397. if (pcb->state != LISTEN) {
  66398. 801ae86: 687b ldr r3, [r7, #4]
  66399. 801ae88: 7d1b ldrb r3, [r3, #20]
  66400. 801ae8a: 2b01 cmp r3, #1
  66401. 801ae8c: d006 beq.n 801ae9c <tcp_close+0x3c>
  66402. /* Set a flag not to receive any more data... */
  66403. tcp_set_flags(pcb, TF_RXCLOSED);
  66404. 801ae8e: 687b ldr r3, [r7, #4]
  66405. 801ae90: 8b5b ldrh r3, [r3, #26]
  66406. 801ae92: f043 0310 orr.w r3, r3, #16
  66407. 801ae96: b29a uxth r2, r3
  66408. 801ae98: 687b ldr r3, [r7, #4]
  66409. 801ae9a: 835a strh r2, [r3, #26]
  66410. }
  66411. /* ... and close */
  66412. return tcp_close_shutdown(pcb, 1);
  66413. 801ae9c: 2101 movs r1, #1
  66414. 801ae9e: 6878 ldr r0, [r7, #4]
  66415. 801aea0: f7ff fe92 bl 801abc8 <tcp_close_shutdown>
  66416. 801aea4: 4603 mov r3, r0
  66417. }
  66418. 801aea6: 4618 mov r0, r3
  66419. 801aea8: 3708 adds r7, #8
  66420. 801aeaa: 46bd mov sp, r7
  66421. 801aeac: bd80 pop {r7, pc}
  66422. 801aeae: bf00 nop
  66423. 801aeb0: 0802e5f0 .word 0x0802e5f0
  66424. 801aeb4: 0802e700 .word 0x0802e700
  66425. 801aeb8: 0802e634 .word 0x0802e634
  66426. 0801aebc <tcp_shutdown>:
  66427. * @return ERR_OK if shutdown succeeded (or the PCB has already been shut down)
  66428. * another err_t on error.
  66429. */
  66430. err_t
  66431. tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx)
  66432. {
  66433. 801aebc: b580 push {r7, lr}
  66434. 801aebe: b084 sub sp, #16
  66435. 801aec0: af00 add r7, sp, #0
  66436. 801aec2: 60f8 str r0, [r7, #12]
  66437. 801aec4: 60b9 str r1, [r7, #8]
  66438. 801aec6: 607a str r2, [r7, #4]
  66439. LWIP_ASSERT_CORE_LOCKED();
  66440. 801aec8: f7f5 fb3c bl 8010544 <sys_check_core_locking>
  66441. LWIP_ERROR("tcp_shutdown: invalid pcb", pcb != NULL, return ERR_ARG);
  66442. 801aecc: 68fb ldr r3, [r7, #12]
  66443. 801aece: 2b00 cmp r3, #0
  66444. 801aed0: d109 bne.n 801aee6 <tcp_shutdown+0x2a>
  66445. 801aed2: 4b26 ldr r3, [pc, #152] @ (801af6c <tcp_shutdown+0xb0>)
  66446. 801aed4: f240 2207 movw r2, #519 @ 0x207
  66447. 801aed8: 4925 ldr r1, [pc, #148] @ (801af70 <tcp_shutdown+0xb4>)
  66448. 801aeda: 4826 ldr r0, [pc, #152] @ (801af74 <tcp_shutdown+0xb8>)
  66449. 801aedc: f00e fd7e bl 80299dc <iprintf>
  66450. 801aee0: f06f 030f mvn.w r3, #15
  66451. 801aee4: e03d b.n 801af62 <tcp_shutdown+0xa6>
  66452. if (pcb->state == LISTEN) {
  66453. 801aee6: 68fb ldr r3, [r7, #12]
  66454. 801aee8: 7d1b ldrb r3, [r3, #20]
  66455. 801aeea: 2b01 cmp r3, #1
  66456. 801aeec: d102 bne.n 801aef4 <tcp_shutdown+0x38>
  66457. return ERR_CONN;
  66458. 801aeee: f06f 030a mvn.w r3, #10
  66459. 801aef2: e036 b.n 801af62 <tcp_shutdown+0xa6>
  66460. }
  66461. if (shut_rx) {
  66462. 801aef4: 68bb ldr r3, [r7, #8]
  66463. 801aef6: 2b00 cmp r3, #0
  66464. 801aef8: d01b beq.n 801af32 <tcp_shutdown+0x76>
  66465. /* shut down the receive side: set a flag not to receive any more data... */
  66466. tcp_set_flags(pcb, TF_RXCLOSED);
  66467. 801aefa: 68fb ldr r3, [r7, #12]
  66468. 801aefc: 8b5b ldrh r3, [r3, #26]
  66469. 801aefe: f043 0310 orr.w r3, r3, #16
  66470. 801af02: b29a uxth r2, r3
  66471. 801af04: 68fb ldr r3, [r7, #12]
  66472. 801af06: 835a strh r2, [r3, #26]
  66473. if (shut_tx) {
  66474. 801af08: 687b ldr r3, [r7, #4]
  66475. 801af0a: 2b00 cmp r3, #0
  66476. 801af0c: d005 beq.n 801af1a <tcp_shutdown+0x5e>
  66477. /* shutting down the tx AND rx side is the same as closing for the raw API */
  66478. return tcp_close_shutdown(pcb, 1);
  66479. 801af0e: 2101 movs r1, #1
  66480. 801af10: 68f8 ldr r0, [r7, #12]
  66481. 801af12: f7ff fe59 bl 801abc8 <tcp_close_shutdown>
  66482. 801af16: 4603 mov r3, r0
  66483. 801af18: e023 b.n 801af62 <tcp_shutdown+0xa6>
  66484. }
  66485. /* ... and free buffered data */
  66486. if (pcb->refused_data != NULL) {
  66487. 801af1a: 68fb ldr r3, [r7, #12]
  66488. 801af1c: 6f9b ldr r3, [r3, #120] @ 0x78
  66489. 801af1e: 2b00 cmp r3, #0
  66490. 801af20: d007 beq.n 801af32 <tcp_shutdown+0x76>
  66491. pbuf_free(pcb->refused_data);
  66492. 801af22: 68fb ldr r3, [r7, #12]
  66493. 801af24: 6f9b ldr r3, [r3, #120] @ 0x78
  66494. 801af26: 4618 mov r0, r3
  66495. 801af28: f7ff fae0 bl 801a4ec <pbuf_free>
  66496. pcb->refused_data = NULL;
  66497. 801af2c: 68fb ldr r3, [r7, #12]
  66498. 801af2e: 2200 movs r2, #0
  66499. 801af30: 679a str r2, [r3, #120] @ 0x78
  66500. }
  66501. }
  66502. if (shut_tx) {
  66503. 801af32: 687b ldr r3, [r7, #4]
  66504. 801af34: 2b00 cmp r3, #0
  66505. 801af36: d013 beq.n 801af60 <tcp_shutdown+0xa4>
  66506. /* This can't happen twice since if it succeeds, the pcb's state is changed.
  66507. Only close in these states as the others directly deallocate the PCB */
  66508. switch (pcb->state) {
  66509. 801af38: 68fb ldr r3, [r7, #12]
  66510. 801af3a: 7d1b ldrb r3, [r3, #20]
  66511. 801af3c: 2b04 cmp r3, #4
  66512. 801af3e: dc02 bgt.n 801af46 <tcp_shutdown+0x8a>
  66513. 801af40: 2b03 cmp r3, #3
  66514. 801af42: da02 bge.n 801af4a <tcp_shutdown+0x8e>
  66515. 801af44: e009 b.n 801af5a <tcp_shutdown+0x9e>
  66516. 801af46: 2b07 cmp r3, #7
  66517. 801af48: d107 bne.n 801af5a <tcp_shutdown+0x9e>
  66518. case SYN_RCVD:
  66519. case ESTABLISHED:
  66520. case CLOSE_WAIT:
  66521. return tcp_close_shutdown(pcb, (u8_t)shut_rx);
  66522. 801af4a: 68bb ldr r3, [r7, #8]
  66523. 801af4c: b2db uxtb r3, r3
  66524. 801af4e: 4619 mov r1, r3
  66525. 801af50: 68f8 ldr r0, [r7, #12]
  66526. 801af52: f7ff fe39 bl 801abc8 <tcp_close_shutdown>
  66527. 801af56: 4603 mov r3, r0
  66528. 801af58: e003 b.n 801af62 <tcp_shutdown+0xa6>
  66529. default:
  66530. /* Not (yet?) connected, cannot shutdown the TX side as that would bring us
  66531. into CLOSED state, where the PCB is deallocated. */
  66532. return ERR_CONN;
  66533. 801af5a: f06f 030a mvn.w r3, #10
  66534. 801af5e: e000 b.n 801af62 <tcp_shutdown+0xa6>
  66535. }
  66536. }
  66537. return ERR_OK;
  66538. 801af60: 2300 movs r3, #0
  66539. }
  66540. 801af62: 4618 mov r0, r3
  66541. 801af64: 3710 adds r7, #16
  66542. 801af66: 46bd mov sp, r7
  66543. 801af68: bd80 pop {r7, pc}
  66544. 801af6a: bf00 nop
  66545. 801af6c: 0802e5f0 .word 0x0802e5f0
  66546. 801af70: 0802e718 .word 0x0802e718
  66547. 801af74: 0802e634 .word 0x0802e634
  66548. 0801af78 <tcp_abandon>:
  66549. * @param pcb the tcp_pcb to abort
  66550. * @param reset boolean to indicate whether a reset should be sent
  66551. */
  66552. void
  66553. tcp_abandon(struct tcp_pcb *pcb, int reset)
  66554. {
  66555. 801af78: b580 push {r7, lr}
  66556. 801af7a: b08e sub sp, #56 @ 0x38
  66557. 801af7c: af04 add r7, sp, #16
  66558. 801af7e: 6078 str r0, [r7, #4]
  66559. 801af80: 6039 str r1, [r7, #0]
  66560. #if LWIP_CALLBACK_API
  66561. tcp_err_fn errf;
  66562. #endif /* LWIP_CALLBACK_API */
  66563. void *errf_arg;
  66564. LWIP_ASSERT_CORE_LOCKED();
  66565. 801af82: f7f5 fadf bl 8010544 <sys_check_core_locking>
  66566. LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return);
  66567. 801af86: 687b ldr r3, [r7, #4]
  66568. 801af88: 2b00 cmp r3, #0
  66569. 801af8a: d107 bne.n 801af9c <tcp_abandon+0x24>
  66570. 801af8c: 4b52 ldr r3, [pc, #328] @ (801b0d8 <tcp_abandon+0x160>)
  66571. 801af8e: f240 223d movw r2, #573 @ 0x23d
  66572. 801af92: 4952 ldr r1, [pc, #328] @ (801b0dc <tcp_abandon+0x164>)
  66573. 801af94: 4852 ldr r0, [pc, #328] @ (801b0e0 <tcp_abandon+0x168>)
  66574. 801af96: f00e fd21 bl 80299dc <iprintf>
  66575. 801af9a: e099 b.n 801b0d0 <tcp_abandon+0x158>
  66576. /* pcb->state LISTEN not allowed here */
  66577. LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs",
  66578. 801af9c: 687b ldr r3, [r7, #4]
  66579. 801af9e: 7d1b ldrb r3, [r3, #20]
  66580. 801afa0: 2b01 cmp r3, #1
  66581. 801afa2: d106 bne.n 801afb2 <tcp_abandon+0x3a>
  66582. 801afa4: 4b4c ldr r3, [pc, #304] @ (801b0d8 <tcp_abandon+0x160>)
  66583. 801afa6: f44f 7210 mov.w r2, #576 @ 0x240
  66584. 801afaa: 494e ldr r1, [pc, #312] @ (801b0e4 <tcp_abandon+0x16c>)
  66585. 801afac: 484c ldr r0, [pc, #304] @ (801b0e0 <tcp_abandon+0x168>)
  66586. 801afae: f00e fd15 bl 80299dc <iprintf>
  66587. pcb->state != LISTEN);
  66588. /* Figure out on which TCP PCB list we are, and remove us. If we
  66589. are in an active state, call the receive function associated with
  66590. the PCB with a NULL argument, and send an RST to the remote end. */
  66591. if (pcb->state == TIME_WAIT) {
  66592. 801afb2: 687b ldr r3, [r7, #4]
  66593. 801afb4: 7d1b ldrb r3, [r3, #20]
  66594. 801afb6: 2b0a cmp r3, #10
  66595. 801afb8: d107 bne.n 801afca <tcp_abandon+0x52>
  66596. tcp_pcb_remove(&tcp_tw_pcbs, pcb);
  66597. 801afba: 6879 ldr r1, [r7, #4]
  66598. 801afbc: 484a ldr r0, [pc, #296] @ (801b0e8 <tcp_abandon+0x170>)
  66599. 801afbe: f001 fa03 bl 801c3c8 <tcp_pcb_remove>
  66600. tcp_free(pcb);
  66601. 801afc2: 6878 ldr r0, [r7, #4]
  66602. 801afc4: f7ff fd4e bl 801aa64 <tcp_free>
  66603. 801afc8: e082 b.n 801b0d0 <tcp_abandon+0x158>
  66604. } else {
  66605. int send_rst = 0;
  66606. 801afca: 2300 movs r3, #0
  66607. 801afcc: 627b str r3, [r7, #36] @ 0x24
  66608. u16_t local_port = 0;
  66609. 801afce: 2300 movs r3, #0
  66610. 801afd0: 847b strh r3, [r7, #34] @ 0x22
  66611. enum tcp_state last_state;
  66612. seqno = pcb->snd_nxt;
  66613. 801afd2: 687b ldr r3, [r7, #4]
  66614. 801afd4: 6d1b ldr r3, [r3, #80] @ 0x50
  66615. 801afd6: 61bb str r3, [r7, #24]
  66616. ackno = pcb->rcv_nxt;
  66617. 801afd8: 687b ldr r3, [r7, #4]
  66618. 801afda: 6a5b ldr r3, [r3, #36] @ 0x24
  66619. 801afdc: 617b str r3, [r7, #20]
  66620. #if LWIP_CALLBACK_API
  66621. errf = pcb->errf;
  66622. 801afde: 687b ldr r3, [r7, #4]
  66623. 801afe0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  66624. 801afe4: 613b str r3, [r7, #16]
  66625. #endif /* LWIP_CALLBACK_API */
  66626. errf_arg = pcb->callback_arg;
  66627. 801afe6: 687b ldr r3, [r7, #4]
  66628. 801afe8: 691b ldr r3, [r3, #16]
  66629. 801afea: 60fb str r3, [r7, #12]
  66630. if (pcb->state == CLOSED) {
  66631. 801afec: 687b ldr r3, [r7, #4]
  66632. 801afee: 7d1b ldrb r3, [r3, #20]
  66633. 801aff0: 2b00 cmp r3, #0
  66634. 801aff2: d126 bne.n 801b042 <tcp_abandon+0xca>
  66635. if (pcb->local_port != 0) {
  66636. 801aff4: 687b ldr r3, [r7, #4]
  66637. 801aff6: 8adb ldrh r3, [r3, #22]
  66638. 801aff8: 2b00 cmp r3, #0
  66639. 801affa: d02e beq.n 801b05a <tcp_abandon+0xe2>
  66640. /* bound, not yet opened */
  66641. TCP_RMV(&tcp_bound_pcbs, pcb);
  66642. 801affc: 4b3b ldr r3, [pc, #236] @ (801b0ec <tcp_abandon+0x174>)
  66643. 801affe: 681b ldr r3, [r3, #0]
  66644. 801b000: 687a ldr r2, [r7, #4]
  66645. 801b002: 429a cmp r2, r3
  66646. 801b004: d105 bne.n 801b012 <tcp_abandon+0x9a>
  66647. 801b006: 4b39 ldr r3, [pc, #228] @ (801b0ec <tcp_abandon+0x174>)
  66648. 801b008: 681b ldr r3, [r3, #0]
  66649. 801b00a: 68db ldr r3, [r3, #12]
  66650. 801b00c: 4a37 ldr r2, [pc, #220] @ (801b0ec <tcp_abandon+0x174>)
  66651. 801b00e: 6013 str r3, [r2, #0]
  66652. 801b010: e013 b.n 801b03a <tcp_abandon+0xc2>
  66653. 801b012: 4b36 ldr r3, [pc, #216] @ (801b0ec <tcp_abandon+0x174>)
  66654. 801b014: 681b ldr r3, [r3, #0]
  66655. 801b016: 61fb str r3, [r7, #28]
  66656. 801b018: e00c b.n 801b034 <tcp_abandon+0xbc>
  66657. 801b01a: 69fb ldr r3, [r7, #28]
  66658. 801b01c: 68db ldr r3, [r3, #12]
  66659. 801b01e: 687a ldr r2, [r7, #4]
  66660. 801b020: 429a cmp r2, r3
  66661. 801b022: d104 bne.n 801b02e <tcp_abandon+0xb6>
  66662. 801b024: 687b ldr r3, [r7, #4]
  66663. 801b026: 68da ldr r2, [r3, #12]
  66664. 801b028: 69fb ldr r3, [r7, #28]
  66665. 801b02a: 60da str r2, [r3, #12]
  66666. 801b02c: e005 b.n 801b03a <tcp_abandon+0xc2>
  66667. 801b02e: 69fb ldr r3, [r7, #28]
  66668. 801b030: 68db ldr r3, [r3, #12]
  66669. 801b032: 61fb str r3, [r7, #28]
  66670. 801b034: 69fb ldr r3, [r7, #28]
  66671. 801b036: 2b00 cmp r3, #0
  66672. 801b038: d1ef bne.n 801b01a <tcp_abandon+0xa2>
  66673. 801b03a: 687b ldr r3, [r7, #4]
  66674. 801b03c: 2200 movs r2, #0
  66675. 801b03e: 60da str r2, [r3, #12]
  66676. 801b040: e00b b.n 801b05a <tcp_abandon+0xe2>
  66677. }
  66678. } else {
  66679. send_rst = reset;
  66680. 801b042: 683b ldr r3, [r7, #0]
  66681. 801b044: 627b str r3, [r7, #36] @ 0x24
  66682. local_port = pcb->local_port;
  66683. 801b046: 687b ldr r3, [r7, #4]
  66684. 801b048: 8adb ldrh r3, [r3, #22]
  66685. 801b04a: 847b strh r3, [r7, #34] @ 0x22
  66686. TCP_PCB_REMOVE_ACTIVE(pcb);
  66687. 801b04c: 6879 ldr r1, [r7, #4]
  66688. 801b04e: 4828 ldr r0, [pc, #160] @ (801b0f0 <tcp_abandon+0x178>)
  66689. 801b050: f001 f9ba bl 801c3c8 <tcp_pcb_remove>
  66690. 801b054: 4b27 ldr r3, [pc, #156] @ (801b0f4 <tcp_abandon+0x17c>)
  66691. 801b056: 2201 movs r2, #1
  66692. 801b058: 701a strb r2, [r3, #0]
  66693. }
  66694. if (pcb->unacked != NULL) {
  66695. 801b05a: 687b ldr r3, [r7, #4]
  66696. 801b05c: 6f1b ldr r3, [r3, #112] @ 0x70
  66697. 801b05e: 2b00 cmp r3, #0
  66698. 801b060: d004 beq.n 801b06c <tcp_abandon+0xf4>
  66699. tcp_segs_free(pcb->unacked);
  66700. 801b062: 687b ldr r3, [r7, #4]
  66701. 801b064: 6f1b ldr r3, [r3, #112] @ 0x70
  66702. 801b066: 4618 mov r0, r3
  66703. 801b068: f000 fe84 bl 801bd74 <tcp_segs_free>
  66704. }
  66705. if (pcb->unsent != NULL) {
  66706. 801b06c: 687b ldr r3, [r7, #4]
  66707. 801b06e: 6edb ldr r3, [r3, #108] @ 0x6c
  66708. 801b070: 2b00 cmp r3, #0
  66709. 801b072: d004 beq.n 801b07e <tcp_abandon+0x106>
  66710. tcp_segs_free(pcb->unsent);
  66711. 801b074: 687b ldr r3, [r7, #4]
  66712. 801b076: 6edb ldr r3, [r3, #108] @ 0x6c
  66713. 801b078: 4618 mov r0, r3
  66714. 801b07a: f000 fe7b bl 801bd74 <tcp_segs_free>
  66715. }
  66716. #if TCP_QUEUE_OOSEQ
  66717. if (pcb->ooseq != NULL) {
  66718. 801b07e: 687b ldr r3, [r7, #4]
  66719. 801b080: 6f5b ldr r3, [r3, #116] @ 0x74
  66720. 801b082: 2b00 cmp r3, #0
  66721. 801b084: d004 beq.n 801b090 <tcp_abandon+0x118>
  66722. tcp_segs_free(pcb->ooseq);
  66723. 801b086: 687b ldr r3, [r7, #4]
  66724. 801b088: 6f5b ldr r3, [r3, #116] @ 0x74
  66725. 801b08a: 4618 mov r0, r3
  66726. 801b08c: f000 fe72 bl 801bd74 <tcp_segs_free>
  66727. }
  66728. #endif /* TCP_QUEUE_OOSEQ */
  66729. tcp_backlog_accepted(pcb);
  66730. if (send_rst) {
  66731. 801b090: 6a7b ldr r3, [r7, #36] @ 0x24
  66732. 801b092: 2b00 cmp r3, #0
  66733. 801b094: d00e beq.n 801b0b4 <tcp_abandon+0x13c>
  66734. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_abandon: sending RST\n"));
  66735. tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port);
  66736. 801b096: 6879 ldr r1, [r7, #4]
  66737. 801b098: 687b ldr r3, [r7, #4]
  66738. 801b09a: 3304 adds r3, #4
  66739. 801b09c: 687a ldr r2, [r7, #4]
  66740. 801b09e: 8b12 ldrh r2, [r2, #24]
  66741. 801b0a0: 9202 str r2, [sp, #8]
  66742. 801b0a2: 8c7a ldrh r2, [r7, #34] @ 0x22
  66743. 801b0a4: 9201 str r2, [sp, #4]
  66744. 801b0a6: 9300 str r3, [sp, #0]
  66745. 801b0a8: 460b mov r3, r1
  66746. 801b0aa: 697a ldr r2, [r7, #20]
  66747. 801b0ac: 69b9 ldr r1, [r7, #24]
  66748. 801b0ae: 6878 ldr r0, [r7, #4]
  66749. 801b0b0: f005 fbca bl 8020848 <tcp_rst>
  66750. }
  66751. last_state = pcb->state;
  66752. 801b0b4: 687b ldr r3, [r7, #4]
  66753. 801b0b6: 7d1b ldrb r3, [r3, #20]
  66754. 801b0b8: 72fb strb r3, [r7, #11]
  66755. tcp_free(pcb);
  66756. 801b0ba: 6878 ldr r0, [r7, #4]
  66757. 801b0bc: f7ff fcd2 bl 801aa64 <tcp_free>
  66758. TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT);
  66759. 801b0c0: 693b ldr r3, [r7, #16]
  66760. 801b0c2: 2b00 cmp r3, #0
  66761. 801b0c4: d004 beq.n 801b0d0 <tcp_abandon+0x158>
  66762. 801b0c6: 693b ldr r3, [r7, #16]
  66763. 801b0c8: f06f 010c mvn.w r1, #12
  66764. 801b0cc: 68f8 ldr r0, [r7, #12]
  66765. 801b0ce: 4798 blx r3
  66766. }
  66767. }
  66768. 801b0d0: 3728 adds r7, #40 @ 0x28
  66769. 801b0d2: 46bd mov sp, r7
  66770. 801b0d4: bd80 pop {r7, pc}
  66771. 801b0d6: bf00 nop
  66772. 801b0d8: 0802e5f0 .word 0x0802e5f0
  66773. 801b0dc: 0802e734 .word 0x0802e734
  66774. 801b0e0: 0802e634 .word 0x0802e634
  66775. 801b0e4: 0802e750 .word 0x0802e750
  66776. 801b0e8: 2402ae98 .word 0x2402ae98
  66777. 801b0ec: 2402ae8c .word 0x2402ae8c
  66778. 801b0f0: 2402ae94 .word 0x2402ae94
  66779. 801b0f4: 2402ae9c .word 0x2402ae9c
  66780. 0801b0f8 <tcp_abort>:
  66781. *
  66782. * @param pcb the tcp pcb to abort
  66783. */
  66784. void
  66785. tcp_abort(struct tcp_pcb *pcb)
  66786. {
  66787. 801b0f8: b580 push {r7, lr}
  66788. 801b0fa: b082 sub sp, #8
  66789. 801b0fc: af00 add r7, sp, #0
  66790. 801b0fe: 6078 str r0, [r7, #4]
  66791. tcp_abandon(pcb, 1);
  66792. 801b100: 2101 movs r1, #1
  66793. 801b102: 6878 ldr r0, [r7, #4]
  66794. 801b104: f7ff ff38 bl 801af78 <tcp_abandon>
  66795. }
  66796. 801b108: bf00 nop
  66797. 801b10a: 3708 adds r7, #8
  66798. 801b10c: 46bd mov sp, r7
  66799. 801b10e: bd80 pop {r7, pc}
  66800. 0801b110 <tcp_update_rcv_ann_wnd>:
  66801. * Returns how much extra window would be advertised if we sent an
  66802. * update now.
  66803. */
  66804. u32_t
  66805. tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb)
  66806. {
  66807. 801b110: b580 push {r7, lr}
  66808. 801b112: b084 sub sp, #16
  66809. 801b114: af00 add r7, sp, #0
  66810. 801b116: 6078 str r0, [r7, #4]
  66811. u32_t new_right_edge;
  66812. LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL);
  66813. 801b118: 687b ldr r3, [r7, #4]
  66814. 801b11a: 2b00 cmp r3, #0
  66815. 801b11c: d106 bne.n 801b12c <tcp_update_rcv_ann_wnd+0x1c>
  66816. 801b11e: 4b25 ldr r3, [pc, #148] @ (801b1b4 <tcp_update_rcv_ann_wnd+0xa4>)
  66817. 801b120: f240 32a6 movw r2, #934 @ 0x3a6
  66818. 801b124: 4924 ldr r1, [pc, #144] @ (801b1b8 <tcp_update_rcv_ann_wnd+0xa8>)
  66819. 801b126: 4825 ldr r0, [pc, #148] @ (801b1bc <tcp_update_rcv_ann_wnd+0xac>)
  66820. 801b128: f00e fc58 bl 80299dc <iprintf>
  66821. new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd;
  66822. 801b12c: 687b ldr r3, [r7, #4]
  66823. 801b12e: 6a5b ldr r3, [r3, #36] @ 0x24
  66824. 801b130: 687a ldr r2, [r7, #4]
  66825. 801b132: 8d12 ldrh r2, [r2, #40] @ 0x28
  66826. 801b134: 4413 add r3, r2
  66827. 801b136: 60fb str r3, [r7, #12]
  66828. if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) {
  66829. 801b138: 687b ldr r3, [r7, #4]
  66830. 801b13a: 6adb ldr r3, [r3, #44] @ 0x2c
  66831. 801b13c: 687a ldr r2, [r7, #4]
  66832. 801b13e: 8e52 ldrh r2, [r2, #50] @ 0x32
  66833. 801b140: f640 3168 movw r1, #2920 @ 0xb68
  66834. 801b144: 428a cmp r2, r1
  66835. 801b146: bf28 it cs
  66836. 801b148: 460a movcs r2, r1
  66837. 801b14a: b292 uxth r2, r2
  66838. 801b14c: 4413 add r3, r2
  66839. 801b14e: 68fa ldr r2, [r7, #12]
  66840. 801b150: 1ad3 subs r3, r2, r3
  66841. 801b152: 2b00 cmp r3, #0
  66842. 801b154: db08 blt.n 801b168 <tcp_update_rcv_ann_wnd+0x58>
  66843. /* we can advertise more window */
  66844. pcb->rcv_ann_wnd = pcb->rcv_wnd;
  66845. 801b156: 687b ldr r3, [r7, #4]
  66846. 801b158: 8d1a ldrh r2, [r3, #40] @ 0x28
  66847. 801b15a: 687b ldr r3, [r7, #4]
  66848. 801b15c: 855a strh r2, [r3, #42] @ 0x2a
  66849. return new_right_edge - pcb->rcv_ann_right_edge;
  66850. 801b15e: 687b ldr r3, [r7, #4]
  66851. 801b160: 6adb ldr r3, [r3, #44] @ 0x2c
  66852. 801b162: 68fa ldr r2, [r7, #12]
  66853. 801b164: 1ad3 subs r3, r2, r3
  66854. 801b166: e020 b.n 801b1aa <tcp_update_rcv_ann_wnd+0x9a>
  66855. } else {
  66856. if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) {
  66857. 801b168: 687b ldr r3, [r7, #4]
  66858. 801b16a: 6a5a ldr r2, [r3, #36] @ 0x24
  66859. 801b16c: 687b ldr r3, [r7, #4]
  66860. 801b16e: 6adb ldr r3, [r3, #44] @ 0x2c
  66861. 801b170: 1ad3 subs r3, r2, r3
  66862. 801b172: 2b00 cmp r3, #0
  66863. 801b174: dd03 ble.n 801b17e <tcp_update_rcv_ann_wnd+0x6e>
  66864. /* Can happen due to other end sending out of advertised window,
  66865. * but within actual available (but not yet advertised) window */
  66866. pcb->rcv_ann_wnd = 0;
  66867. 801b176: 687b ldr r3, [r7, #4]
  66868. 801b178: 2200 movs r2, #0
  66869. 801b17a: 855a strh r2, [r3, #42] @ 0x2a
  66870. 801b17c: e014 b.n 801b1a8 <tcp_update_rcv_ann_wnd+0x98>
  66871. } else {
  66872. /* keep the right edge of window constant */
  66873. u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt;
  66874. 801b17e: 687b ldr r3, [r7, #4]
  66875. 801b180: 6ada ldr r2, [r3, #44] @ 0x2c
  66876. 801b182: 687b ldr r3, [r7, #4]
  66877. 801b184: 6a5b ldr r3, [r3, #36] @ 0x24
  66878. 801b186: 1ad3 subs r3, r2, r3
  66879. 801b188: 60bb str r3, [r7, #8]
  66880. #if !LWIP_WND_SCALE
  66881. LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff);
  66882. 801b18a: 68bb ldr r3, [r7, #8]
  66883. 801b18c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  66884. 801b190: d306 bcc.n 801b1a0 <tcp_update_rcv_ann_wnd+0x90>
  66885. 801b192: 4b08 ldr r3, [pc, #32] @ (801b1b4 <tcp_update_rcv_ann_wnd+0xa4>)
  66886. 801b194: f240 32b6 movw r2, #950 @ 0x3b6
  66887. 801b198: 4909 ldr r1, [pc, #36] @ (801b1c0 <tcp_update_rcv_ann_wnd+0xb0>)
  66888. 801b19a: 4808 ldr r0, [pc, #32] @ (801b1bc <tcp_update_rcv_ann_wnd+0xac>)
  66889. 801b19c: f00e fc1e bl 80299dc <iprintf>
  66890. #endif
  66891. pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd;
  66892. 801b1a0: 68bb ldr r3, [r7, #8]
  66893. 801b1a2: b29a uxth r2, r3
  66894. 801b1a4: 687b ldr r3, [r7, #4]
  66895. 801b1a6: 855a strh r2, [r3, #42] @ 0x2a
  66896. }
  66897. return 0;
  66898. 801b1a8: 2300 movs r3, #0
  66899. }
  66900. }
  66901. 801b1aa: 4618 mov r0, r3
  66902. 801b1ac: 3710 adds r7, #16
  66903. 801b1ae: 46bd mov sp, r7
  66904. 801b1b0: bd80 pop {r7, pc}
  66905. 801b1b2: bf00 nop
  66906. 801b1b4: 0802e5f0 .word 0x0802e5f0
  66907. 801b1b8: 0802e84c .word 0x0802e84c
  66908. 801b1bc: 0802e634 .word 0x0802e634
  66909. 801b1c0: 0802e870 .word 0x0802e870
  66910. 0801b1c4 <tcp_recved>:
  66911. * @param pcb the tcp_pcb for which data is read
  66912. * @param len the amount of bytes that have been read by the application
  66913. */
  66914. void
  66915. tcp_recved(struct tcp_pcb *pcb, u16_t len)
  66916. {
  66917. 801b1c4: b580 push {r7, lr}
  66918. 801b1c6: b084 sub sp, #16
  66919. 801b1c8: af00 add r7, sp, #0
  66920. 801b1ca: 6078 str r0, [r7, #4]
  66921. 801b1cc: 460b mov r3, r1
  66922. 801b1ce: 807b strh r3, [r7, #2]
  66923. u32_t wnd_inflation;
  66924. tcpwnd_size_t rcv_wnd;
  66925. LWIP_ASSERT_CORE_LOCKED();
  66926. 801b1d0: f7f5 f9b8 bl 8010544 <sys_check_core_locking>
  66927. LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return);
  66928. 801b1d4: 687b ldr r3, [r7, #4]
  66929. 801b1d6: 2b00 cmp r3, #0
  66930. 801b1d8: d107 bne.n 801b1ea <tcp_recved+0x26>
  66931. 801b1da: 4b20 ldr r3, [pc, #128] @ (801b25c <tcp_recved+0x98>)
  66932. 801b1dc: f240 32cf movw r2, #975 @ 0x3cf
  66933. 801b1e0: 491f ldr r1, [pc, #124] @ (801b260 <tcp_recved+0x9c>)
  66934. 801b1e2: 4820 ldr r0, [pc, #128] @ (801b264 <tcp_recved+0xa0>)
  66935. 801b1e4: f00e fbfa bl 80299dc <iprintf>
  66936. 801b1e8: e034 b.n 801b254 <tcp_recved+0x90>
  66937. /* pcb->state LISTEN not allowed here */
  66938. LWIP_ASSERT("don't call tcp_recved for listen-pcbs",
  66939. 801b1ea: 687b ldr r3, [r7, #4]
  66940. 801b1ec: 7d1b ldrb r3, [r3, #20]
  66941. 801b1ee: 2b01 cmp r3, #1
  66942. 801b1f0: d106 bne.n 801b200 <tcp_recved+0x3c>
  66943. 801b1f2: 4b1a ldr r3, [pc, #104] @ (801b25c <tcp_recved+0x98>)
  66944. 801b1f4: f240 32d2 movw r2, #978 @ 0x3d2
  66945. 801b1f8: 491b ldr r1, [pc, #108] @ (801b268 <tcp_recved+0xa4>)
  66946. 801b1fa: 481a ldr r0, [pc, #104] @ (801b264 <tcp_recved+0xa0>)
  66947. 801b1fc: f00e fbee bl 80299dc <iprintf>
  66948. pcb->state != LISTEN);
  66949. rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len);
  66950. 801b200: 687b ldr r3, [r7, #4]
  66951. 801b202: 8d1a ldrh r2, [r3, #40] @ 0x28
  66952. 801b204: 887b ldrh r3, [r7, #2]
  66953. 801b206: 4413 add r3, r2
  66954. 801b208: 81fb strh r3, [r7, #14]
  66955. if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) {
  66956. 801b20a: 89fb ldrh r3, [r7, #14]
  66957. 801b20c: f241 62d0 movw r2, #5840 @ 0x16d0
  66958. 801b210: 4293 cmp r3, r2
  66959. 801b212: d804 bhi.n 801b21e <tcp_recved+0x5a>
  66960. 801b214: 687b ldr r3, [r7, #4]
  66961. 801b216: 8d1b ldrh r3, [r3, #40] @ 0x28
  66962. 801b218: 89fa ldrh r2, [r7, #14]
  66963. 801b21a: 429a cmp r2, r3
  66964. 801b21c: d204 bcs.n 801b228 <tcp_recved+0x64>
  66965. /* window got too big or tcpwnd_size_t overflow */
  66966. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: window got too big or tcpwnd_size_t overflow\n"));
  66967. pcb->rcv_wnd = TCP_WND_MAX(pcb);
  66968. 801b21e: 687b ldr r3, [r7, #4]
  66969. 801b220: f241 62d0 movw r2, #5840 @ 0x16d0
  66970. 801b224: 851a strh r2, [r3, #40] @ 0x28
  66971. 801b226: e002 b.n 801b22e <tcp_recved+0x6a>
  66972. } else {
  66973. pcb->rcv_wnd = rcv_wnd;
  66974. 801b228: 687b ldr r3, [r7, #4]
  66975. 801b22a: 89fa ldrh r2, [r7, #14]
  66976. 801b22c: 851a strh r2, [r3, #40] @ 0x28
  66977. }
  66978. wnd_inflation = tcp_update_rcv_ann_wnd(pcb);
  66979. 801b22e: 6878 ldr r0, [r7, #4]
  66980. 801b230: f7ff ff6e bl 801b110 <tcp_update_rcv_ann_wnd>
  66981. 801b234: 60b8 str r0, [r7, #8]
  66982. /* If the change in the right edge of window is significant (default
  66983. * watermark is TCP_WND/4), then send an explicit update now.
  66984. * Otherwise wait for a packet to be sent in the normal course of
  66985. * events (or more window to be available later) */
  66986. if (wnd_inflation >= TCP_WND_UPDATE_THRESHOLD) {
  66987. 801b236: 68bb ldr r3, [r7, #8]
  66988. 801b238: f240 52b3 movw r2, #1459 @ 0x5b3
  66989. 801b23c: 4293 cmp r3, r2
  66990. 801b23e: d909 bls.n 801b254 <tcp_recved+0x90>
  66991. tcp_ack_now(pcb);
  66992. 801b240: 687b ldr r3, [r7, #4]
  66993. 801b242: 8b5b ldrh r3, [r3, #26]
  66994. 801b244: f043 0302 orr.w r3, r3, #2
  66995. 801b248: b29a uxth r2, r3
  66996. 801b24a: 687b ldr r3, [r7, #4]
  66997. 801b24c: 835a strh r2, [r3, #26]
  66998. tcp_output(pcb);
  66999. 801b24e: 6878 ldr r0, [r7, #4]
  67000. 801b250: f004 fd38 bl 801fcc4 <tcp_output>
  67001. }
  67002. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: received %"U16_F" bytes, wnd %"TCPWNDSIZE_F" (%"TCPWNDSIZE_F").\n",
  67003. len, pcb->rcv_wnd, (u16_t)(TCP_WND_MAX(pcb) - pcb->rcv_wnd)));
  67004. }
  67005. 801b254: 3710 adds r7, #16
  67006. 801b256: 46bd mov sp, r7
  67007. 801b258: bd80 pop {r7, pc}
  67008. 801b25a: bf00 nop
  67009. 801b25c: 0802e5f0 .word 0x0802e5f0
  67010. 801b260: 0802e88c .word 0x0802e88c
  67011. 801b264: 0802e634 .word 0x0802e634
  67012. 801b268: 0802e8a4 .word 0x0802e8a4
  67013. 0801b26c <tcp_new_port>:
  67014. *
  67015. * @return a new (free) local TCP port number
  67016. */
  67017. static u16_t
  67018. tcp_new_port(void)
  67019. {
  67020. 801b26c: b480 push {r7}
  67021. 801b26e: b083 sub sp, #12
  67022. 801b270: af00 add r7, sp, #0
  67023. u8_t i;
  67024. u16_t n = 0;
  67025. 801b272: 2300 movs r3, #0
  67026. 801b274: 80bb strh r3, [r7, #4]
  67027. struct tcp_pcb *pcb;
  67028. again:
  67029. tcp_port++;
  67030. 801b276: 4b1e ldr r3, [pc, #120] @ (801b2f0 <tcp_new_port+0x84>)
  67031. 801b278: 881b ldrh r3, [r3, #0]
  67032. 801b27a: 3301 adds r3, #1
  67033. 801b27c: b29a uxth r2, r3
  67034. 801b27e: 4b1c ldr r3, [pc, #112] @ (801b2f0 <tcp_new_port+0x84>)
  67035. 801b280: 801a strh r2, [r3, #0]
  67036. if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
  67037. 801b282: 4b1b ldr r3, [pc, #108] @ (801b2f0 <tcp_new_port+0x84>)
  67038. 801b284: 881b ldrh r3, [r3, #0]
  67039. 801b286: f64f 72ff movw r2, #65535 @ 0xffff
  67040. 801b28a: 4293 cmp r3, r2
  67041. 801b28c: d103 bne.n 801b296 <tcp_new_port+0x2a>
  67042. tcp_port = TCP_LOCAL_PORT_RANGE_START;
  67043. 801b28e: 4b18 ldr r3, [pc, #96] @ (801b2f0 <tcp_new_port+0x84>)
  67044. 801b290: f44f 4240 mov.w r2, #49152 @ 0xc000
  67045. 801b294: 801a strh r2, [r3, #0]
  67046. }
  67047. /* Check all PCB lists. */
  67048. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  67049. 801b296: 2300 movs r3, #0
  67050. 801b298: 71fb strb r3, [r7, #7]
  67051. 801b29a: e01e b.n 801b2da <tcp_new_port+0x6e>
  67052. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  67053. 801b29c: 79fb ldrb r3, [r7, #7]
  67054. 801b29e: 4a15 ldr r2, [pc, #84] @ (801b2f4 <tcp_new_port+0x88>)
  67055. 801b2a0: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  67056. 801b2a4: 681b ldr r3, [r3, #0]
  67057. 801b2a6: 603b str r3, [r7, #0]
  67058. 801b2a8: e011 b.n 801b2ce <tcp_new_port+0x62>
  67059. if (pcb->local_port == tcp_port) {
  67060. 801b2aa: 683b ldr r3, [r7, #0]
  67061. 801b2ac: 8ada ldrh r2, [r3, #22]
  67062. 801b2ae: 4b10 ldr r3, [pc, #64] @ (801b2f0 <tcp_new_port+0x84>)
  67063. 801b2b0: 881b ldrh r3, [r3, #0]
  67064. 801b2b2: 429a cmp r2, r3
  67065. 801b2b4: d108 bne.n 801b2c8 <tcp_new_port+0x5c>
  67066. n++;
  67067. 801b2b6: 88bb ldrh r3, [r7, #4]
  67068. 801b2b8: 3301 adds r3, #1
  67069. 801b2ba: 80bb strh r3, [r7, #4]
  67070. if (n > (TCP_LOCAL_PORT_RANGE_END - TCP_LOCAL_PORT_RANGE_START)) {
  67071. 801b2bc: 88bb ldrh r3, [r7, #4]
  67072. 801b2be: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  67073. 801b2c2: d3d8 bcc.n 801b276 <tcp_new_port+0xa>
  67074. return 0;
  67075. 801b2c4: 2300 movs r3, #0
  67076. 801b2c6: e00d b.n 801b2e4 <tcp_new_port+0x78>
  67077. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  67078. 801b2c8: 683b ldr r3, [r7, #0]
  67079. 801b2ca: 68db ldr r3, [r3, #12]
  67080. 801b2cc: 603b str r3, [r7, #0]
  67081. 801b2ce: 683b ldr r3, [r7, #0]
  67082. 801b2d0: 2b00 cmp r3, #0
  67083. 801b2d2: d1ea bne.n 801b2aa <tcp_new_port+0x3e>
  67084. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  67085. 801b2d4: 79fb ldrb r3, [r7, #7]
  67086. 801b2d6: 3301 adds r3, #1
  67087. 801b2d8: 71fb strb r3, [r7, #7]
  67088. 801b2da: 79fb ldrb r3, [r7, #7]
  67089. 801b2dc: 2b03 cmp r3, #3
  67090. 801b2de: d9dd bls.n 801b29c <tcp_new_port+0x30>
  67091. }
  67092. goto again;
  67093. }
  67094. }
  67095. }
  67096. return tcp_port;
  67097. 801b2e0: 4b03 ldr r3, [pc, #12] @ (801b2f0 <tcp_new_port+0x84>)
  67098. 801b2e2: 881b ldrh r3, [r3, #0]
  67099. }
  67100. 801b2e4: 4618 mov r0, r3
  67101. 801b2e6: 370c adds r7, #12
  67102. 801b2e8: 46bd mov sp, r7
  67103. 801b2ea: f85d 7b04 ldr.w r7, [sp], #4
  67104. 801b2ee: 4770 bx lr
  67105. 801b2f0: 2400004c .word 0x2400004c
  67106. 801b2f4: 08030c30 .word 0x08030c30
  67107. 0801b2f8 <tcp_connect>:
  67108. * other err_t values if connect request couldn't be sent
  67109. */
  67110. err_t
  67111. tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port,
  67112. tcp_connected_fn connected)
  67113. {
  67114. 801b2f8: b580 push {r7, lr}
  67115. 801b2fa: b08a sub sp, #40 @ 0x28
  67116. 801b2fc: af00 add r7, sp, #0
  67117. 801b2fe: 60f8 str r0, [r7, #12]
  67118. 801b300: 60b9 str r1, [r7, #8]
  67119. 801b302: 603b str r3, [r7, #0]
  67120. 801b304: 4613 mov r3, r2
  67121. 801b306: 80fb strh r3, [r7, #6]
  67122. struct netif *netif = NULL;
  67123. 801b308: 2300 movs r3, #0
  67124. 801b30a: 627b str r3, [r7, #36] @ 0x24
  67125. err_t ret;
  67126. u32_t iss;
  67127. u16_t old_local_port;
  67128. LWIP_ASSERT_CORE_LOCKED();
  67129. 801b30c: f7f5 f91a bl 8010544 <sys_check_core_locking>
  67130. LWIP_ERROR("tcp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  67131. 801b310: 68fb ldr r3, [r7, #12]
  67132. 801b312: 2b00 cmp r3, #0
  67133. 801b314: d109 bne.n 801b32a <tcp_connect+0x32>
  67134. 801b316: 4b7d ldr r3, [pc, #500] @ (801b50c <tcp_connect+0x214>)
  67135. 801b318: f240 4235 movw r2, #1077 @ 0x435
  67136. 801b31c: 497c ldr r1, [pc, #496] @ (801b510 <tcp_connect+0x218>)
  67137. 801b31e: 487d ldr r0, [pc, #500] @ (801b514 <tcp_connect+0x21c>)
  67138. 801b320: f00e fb5c bl 80299dc <iprintf>
  67139. 801b324: f06f 030f mvn.w r3, #15
  67140. 801b328: e0ec b.n 801b504 <tcp_connect+0x20c>
  67141. LWIP_ERROR("tcp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  67142. 801b32a: 68bb ldr r3, [r7, #8]
  67143. 801b32c: 2b00 cmp r3, #0
  67144. 801b32e: d109 bne.n 801b344 <tcp_connect+0x4c>
  67145. 801b330: 4b76 ldr r3, [pc, #472] @ (801b50c <tcp_connect+0x214>)
  67146. 801b332: f240 4236 movw r2, #1078 @ 0x436
  67147. 801b336: 4978 ldr r1, [pc, #480] @ (801b518 <tcp_connect+0x220>)
  67148. 801b338: 4876 ldr r0, [pc, #472] @ (801b514 <tcp_connect+0x21c>)
  67149. 801b33a: f00e fb4f bl 80299dc <iprintf>
  67150. 801b33e: f06f 030f mvn.w r3, #15
  67151. 801b342: e0df b.n 801b504 <tcp_connect+0x20c>
  67152. LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN);
  67153. 801b344: 68fb ldr r3, [r7, #12]
  67154. 801b346: 7d1b ldrb r3, [r3, #20]
  67155. 801b348: 2b00 cmp r3, #0
  67156. 801b34a: d009 beq.n 801b360 <tcp_connect+0x68>
  67157. 801b34c: 4b6f ldr r3, [pc, #444] @ (801b50c <tcp_connect+0x214>)
  67158. 801b34e: f44f 6287 mov.w r2, #1080 @ 0x438
  67159. 801b352: 4972 ldr r1, [pc, #456] @ (801b51c <tcp_connect+0x224>)
  67160. 801b354: 486f ldr r0, [pc, #444] @ (801b514 <tcp_connect+0x21c>)
  67161. 801b356: f00e fb41 bl 80299dc <iprintf>
  67162. 801b35a: f06f 0309 mvn.w r3, #9
  67163. 801b35e: e0d1 b.n 801b504 <tcp_connect+0x20c>
  67164. LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port));
  67165. ip_addr_set(&pcb->remote_ip, ipaddr);
  67166. 801b360: 68bb ldr r3, [r7, #8]
  67167. 801b362: 2b00 cmp r3, #0
  67168. 801b364: d002 beq.n 801b36c <tcp_connect+0x74>
  67169. 801b366: 68bb ldr r3, [r7, #8]
  67170. 801b368: 681b ldr r3, [r3, #0]
  67171. 801b36a: e000 b.n 801b36e <tcp_connect+0x76>
  67172. 801b36c: 2300 movs r3, #0
  67173. 801b36e: 68fa ldr r2, [r7, #12]
  67174. 801b370: 6053 str r3, [r2, #4]
  67175. pcb->remote_port = port;
  67176. 801b372: 68fb ldr r3, [r7, #12]
  67177. 801b374: 88fa ldrh r2, [r7, #6]
  67178. 801b376: 831a strh r2, [r3, #24]
  67179. if (pcb->netif_idx != NETIF_NO_INDEX) {
  67180. 801b378: 68fb ldr r3, [r7, #12]
  67181. 801b37a: 7a1b ldrb r3, [r3, #8]
  67182. 801b37c: 2b00 cmp r3, #0
  67183. 801b37e: d006 beq.n 801b38e <tcp_connect+0x96>
  67184. netif = netif_get_by_index(pcb->netif_idx);
  67185. 801b380: 68fb ldr r3, [r7, #12]
  67186. 801b382: 7a1b ldrb r3, [r3, #8]
  67187. 801b384: 4618 mov r0, r3
  67188. 801b386: f7fe fcf1 bl 8019d6c <netif_get_by_index>
  67189. 801b38a: 6278 str r0, [r7, #36] @ 0x24
  67190. 801b38c: e005 b.n 801b39a <tcp_connect+0xa2>
  67191. } else {
  67192. /* check if we have a route to the remote host */
  67193. netif = ip_route(&pcb->local_ip, &pcb->remote_ip);
  67194. 801b38e: 68fb ldr r3, [r7, #12]
  67195. 801b390: 3304 adds r3, #4
  67196. 801b392: 4618 mov r0, r3
  67197. 801b394: f009 fb14 bl 80249c0 <ip4_route>
  67198. 801b398: 6278 str r0, [r7, #36] @ 0x24
  67199. }
  67200. if (netif == NULL) {
  67201. 801b39a: 6a7b ldr r3, [r7, #36] @ 0x24
  67202. 801b39c: 2b00 cmp r3, #0
  67203. 801b39e: d102 bne.n 801b3a6 <tcp_connect+0xae>
  67204. /* Don't even try to send a SYN packet if we have no route since that will fail. */
  67205. return ERR_RTE;
  67206. 801b3a0: f06f 0303 mvn.w r3, #3
  67207. 801b3a4: e0ae b.n 801b504 <tcp_connect+0x20c>
  67208. }
  67209. /* check if local IP has been assigned to pcb, if not, get one */
  67210. if (ip_addr_isany(&pcb->local_ip)) {
  67211. 801b3a6: 68fb ldr r3, [r7, #12]
  67212. 801b3a8: 2b00 cmp r3, #0
  67213. 801b3aa: d003 beq.n 801b3b4 <tcp_connect+0xbc>
  67214. 801b3ac: 68fb ldr r3, [r7, #12]
  67215. 801b3ae: 681b ldr r3, [r3, #0]
  67216. 801b3b0: 2b00 cmp r3, #0
  67217. 801b3b2: d111 bne.n 801b3d8 <tcp_connect+0xe0>
  67218. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, ipaddr);
  67219. 801b3b4: 6a7b ldr r3, [r7, #36] @ 0x24
  67220. 801b3b6: 2b00 cmp r3, #0
  67221. 801b3b8: d002 beq.n 801b3c0 <tcp_connect+0xc8>
  67222. 801b3ba: 6a7b ldr r3, [r7, #36] @ 0x24
  67223. 801b3bc: 3304 adds r3, #4
  67224. 801b3be: e000 b.n 801b3c2 <tcp_connect+0xca>
  67225. 801b3c0: 2300 movs r3, #0
  67226. 801b3c2: 61fb str r3, [r7, #28]
  67227. if (local_ip == NULL) {
  67228. 801b3c4: 69fb ldr r3, [r7, #28]
  67229. 801b3c6: 2b00 cmp r3, #0
  67230. 801b3c8: d102 bne.n 801b3d0 <tcp_connect+0xd8>
  67231. return ERR_RTE;
  67232. 801b3ca: f06f 0303 mvn.w r3, #3
  67233. 801b3ce: e099 b.n 801b504 <tcp_connect+0x20c>
  67234. }
  67235. ip_addr_copy(pcb->local_ip, *local_ip);
  67236. 801b3d0: 69fb ldr r3, [r7, #28]
  67237. 801b3d2: 681a ldr r2, [r3, #0]
  67238. 801b3d4: 68fb ldr r3, [r7, #12]
  67239. 801b3d6: 601a str r2, [r3, #0]
  67240. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) {
  67241. ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif);
  67242. }
  67243. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  67244. old_local_port = pcb->local_port;
  67245. 801b3d8: 68fb ldr r3, [r7, #12]
  67246. 801b3da: 8adb ldrh r3, [r3, #22]
  67247. 801b3dc: 837b strh r3, [r7, #26]
  67248. if (pcb->local_port == 0) {
  67249. 801b3de: 68fb ldr r3, [r7, #12]
  67250. 801b3e0: 8adb ldrh r3, [r3, #22]
  67251. 801b3e2: 2b00 cmp r3, #0
  67252. 801b3e4: d10c bne.n 801b400 <tcp_connect+0x108>
  67253. pcb->local_port = tcp_new_port();
  67254. 801b3e6: f7ff ff41 bl 801b26c <tcp_new_port>
  67255. 801b3ea: 4603 mov r3, r0
  67256. 801b3ec: 461a mov r2, r3
  67257. 801b3ee: 68fb ldr r3, [r7, #12]
  67258. 801b3f0: 82da strh r2, [r3, #22]
  67259. if (pcb->local_port == 0) {
  67260. 801b3f2: 68fb ldr r3, [r7, #12]
  67261. 801b3f4: 8adb ldrh r3, [r3, #22]
  67262. 801b3f6: 2b00 cmp r3, #0
  67263. 801b3f8: d102 bne.n 801b400 <tcp_connect+0x108>
  67264. return ERR_BUF;
  67265. 801b3fa: f06f 0301 mvn.w r3, #1
  67266. 801b3fe: e081 b.n 801b504 <tcp_connect+0x20c>
  67267. }
  67268. }
  67269. #endif /* SO_REUSE */
  67270. }
  67271. iss = tcp_next_iss(pcb);
  67272. 801b400: 68f8 ldr r0, [r7, #12]
  67273. 801b402: f001 f875 bl 801c4f0 <tcp_next_iss>
  67274. 801b406: 6178 str r0, [r7, #20]
  67275. pcb->rcv_nxt = 0;
  67276. 801b408: 68fb ldr r3, [r7, #12]
  67277. 801b40a: 2200 movs r2, #0
  67278. 801b40c: 625a str r2, [r3, #36] @ 0x24
  67279. pcb->snd_nxt = iss;
  67280. 801b40e: 68fb ldr r3, [r7, #12]
  67281. 801b410: 697a ldr r2, [r7, #20]
  67282. 801b412: 651a str r2, [r3, #80] @ 0x50
  67283. pcb->lastack = iss - 1;
  67284. 801b414: 697b ldr r3, [r7, #20]
  67285. 801b416: 1e5a subs r2, r3, #1
  67286. 801b418: 68fb ldr r3, [r7, #12]
  67287. 801b41a: 645a str r2, [r3, #68] @ 0x44
  67288. pcb->snd_wl2 = iss - 1;
  67289. 801b41c: 697b ldr r3, [r7, #20]
  67290. 801b41e: 1e5a subs r2, r3, #1
  67291. 801b420: 68fb ldr r3, [r7, #12]
  67292. 801b422: 659a str r2, [r3, #88] @ 0x58
  67293. pcb->snd_lbb = iss - 1;
  67294. 801b424: 697b ldr r3, [r7, #20]
  67295. 801b426: 1e5a subs r2, r3, #1
  67296. 801b428: 68fb ldr r3, [r7, #12]
  67297. 801b42a: 65da str r2, [r3, #92] @ 0x5c
  67298. /* Start with a window that does not need scaling. When window scaling is
  67299. enabled and used, the window is enlarged when both sides agree on scaling. */
  67300. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  67301. 801b42c: 68fb ldr r3, [r7, #12]
  67302. 801b42e: f241 62d0 movw r2, #5840 @ 0x16d0
  67303. 801b432: 855a strh r2, [r3, #42] @ 0x2a
  67304. 801b434: 68fb ldr r3, [r7, #12]
  67305. 801b436: 8d5a ldrh r2, [r3, #42] @ 0x2a
  67306. 801b438: 68fb ldr r3, [r7, #12]
  67307. 801b43a: 851a strh r2, [r3, #40] @ 0x28
  67308. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  67309. 801b43c: 68fb ldr r3, [r7, #12]
  67310. 801b43e: 6a5a ldr r2, [r3, #36] @ 0x24
  67311. 801b440: 68fb ldr r3, [r7, #12]
  67312. 801b442: 62da str r2, [r3, #44] @ 0x2c
  67313. pcb->snd_wnd = TCP_WND;
  67314. 801b444: 68fb ldr r3, [r7, #12]
  67315. 801b446: f241 62d0 movw r2, #5840 @ 0x16d0
  67316. 801b44a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  67317. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  67318. The send MSS is updated when an MSS option is received. */
  67319. pcb->mss = INITIAL_MSS;
  67320. 801b44e: 68fb ldr r3, [r7, #12]
  67321. 801b450: f44f 7206 mov.w r2, #536 @ 0x218
  67322. 801b454: 865a strh r2, [r3, #50] @ 0x32
  67323. #if TCP_CALCULATE_EFF_SEND_MSS
  67324. pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip);
  67325. 801b456: 68fb ldr r3, [r7, #12]
  67326. 801b458: 8e58 ldrh r0, [r3, #50] @ 0x32
  67327. 801b45a: 68fb ldr r3, [r7, #12]
  67328. 801b45c: 3304 adds r3, #4
  67329. 801b45e: 461a mov r2, r3
  67330. 801b460: 6a79 ldr r1, [r7, #36] @ 0x24
  67331. 801b462: f001 f86b bl 801c53c <tcp_eff_send_mss_netif>
  67332. 801b466: 4603 mov r3, r0
  67333. 801b468: 461a mov r2, r3
  67334. 801b46a: 68fb ldr r3, [r7, #12]
  67335. 801b46c: 865a strh r2, [r3, #50] @ 0x32
  67336. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  67337. pcb->cwnd = 1;
  67338. 801b46e: 68fb ldr r3, [r7, #12]
  67339. 801b470: 2201 movs r2, #1
  67340. 801b472: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  67341. #if LWIP_CALLBACK_API
  67342. pcb->connected = connected;
  67343. 801b476: 68fb ldr r3, [r7, #12]
  67344. 801b478: 683a ldr r2, [r7, #0]
  67345. 801b47a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  67346. #else /* LWIP_CALLBACK_API */
  67347. LWIP_UNUSED_ARG(connected);
  67348. #endif /* LWIP_CALLBACK_API */
  67349. /* Send a SYN together with the MSS option. */
  67350. ret = tcp_enqueue_flags(pcb, TCP_SYN);
  67351. 801b47e: 2102 movs r1, #2
  67352. 801b480: 68f8 ldr r0, [r7, #12]
  67353. 801b482: f004 fb31 bl 801fae8 <tcp_enqueue_flags>
  67354. 801b486: 4603 mov r3, r0
  67355. 801b488: 74fb strb r3, [r7, #19]
  67356. if (ret == ERR_OK) {
  67357. 801b48a: f997 3013 ldrsb.w r3, [r7, #19]
  67358. 801b48e: 2b00 cmp r3, #0
  67359. 801b490: d136 bne.n 801b500 <tcp_connect+0x208>
  67360. /* SYN segment was enqueued, changed the pcbs state now */
  67361. pcb->state = SYN_SENT;
  67362. 801b492: 68fb ldr r3, [r7, #12]
  67363. 801b494: 2202 movs r2, #2
  67364. 801b496: 751a strb r2, [r3, #20]
  67365. if (old_local_port != 0) {
  67366. 801b498: 8b7b ldrh r3, [r7, #26]
  67367. 801b49a: 2b00 cmp r3, #0
  67368. 801b49c: d021 beq.n 801b4e2 <tcp_connect+0x1ea>
  67369. TCP_RMV(&tcp_bound_pcbs, pcb);
  67370. 801b49e: 4b20 ldr r3, [pc, #128] @ (801b520 <tcp_connect+0x228>)
  67371. 801b4a0: 681b ldr r3, [r3, #0]
  67372. 801b4a2: 68fa ldr r2, [r7, #12]
  67373. 801b4a4: 429a cmp r2, r3
  67374. 801b4a6: d105 bne.n 801b4b4 <tcp_connect+0x1bc>
  67375. 801b4a8: 4b1d ldr r3, [pc, #116] @ (801b520 <tcp_connect+0x228>)
  67376. 801b4aa: 681b ldr r3, [r3, #0]
  67377. 801b4ac: 68db ldr r3, [r3, #12]
  67378. 801b4ae: 4a1c ldr r2, [pc, #112] @ (801b520 <tcp_connect+0x228>)
  67379. 801b4b0: 6013 str r3, [r2, #0]
  67380. 801b4b2: e013 b.n 801b4dc <tcp_connect+0x1e4>
  67381. 801b4b4: 4b1a ldr r3, [pc, #104] @ (801b520 <tcp_connect+0x228>)
  67382. 801b4b6: 681b ldr r3, [r3, #0]
  67383. 801b4b8: 623b str r3, [r7, #32]
  67384. 801b4ba: e00c b.n 801b4d6 <tcp_connect+0x1de>
  67385. 801b4bc: 6a3b ldr r3, [r7, #32]
  67386. 801b4be: 68db ldr r3, [r3, #12]
  67387. 801b4c0: 68fa ldr r2, [r7, #12]
  67388. 801b4c2: 429a cmp r2, r3
  67389. 801b4c4: d104 bne.n 801b4d0 <tcp_connect+0x1d8>
  67390. 801b4c6: 68fb ldr r3, [r7, #12]
  67391. 801b4c8: 68da ldr r2, [r3, #12]
  67392. 801b4ca: 6a3b ldr r3, [r7, #32]
  67393. 801b4cc: 60da str r2, [r3, #12]
  67394. 801b4ce: e005 b.n 801b4dc <tcp_connect+0x1e4>
  67395. 801b4d0: 6a3b ldr r3, [r7, #32]
  67396. 801b4d2: 68db ldr r3, [r3, #12]
  67397. 801b4d4: 623b str r3, [r7, #32]
  67398. 801b4d6: 6a3b ldr r3, [r7, #32]
  67399. 801b4d8: 2b00 cmp r3, #0
  67400. 801b4da: d1ef bne.n 801b4bc <tcp_connect+0x1c4>
  67401. 801b4dc: 68fb ldr r3, [r7, #12]
  67402. 801b4de: 2200 movs r2, #0
  67403. 801b4e0: 60da str r2, [r3, #12]
  67404. }
  67405. TCP_REG_ACTIVE(pcb);
  67406. 801b4e2: 4b10 ldr r3, [pc, #64] @ (801b524 <tcp_connect+0x22c>)
  67407. 801b4e4: 681a ldr r2, [r3, #0]
  67408. 801b4e6: 68fb ldr r3, [r7, #12]
  67409. 801b4e8: 60da str r2, [r3, #12]
  67410. 801b4ea: 4a0e ldr r2, [pc, #56] @ (801b524 <tcp_connect+0x22c>)
  67411. 801b4ec: 68fb ldr r3, [r7, #12]
  67412. 801b4ee: 6013 str r3, [r2, #0]
  67413. 801b4f0: f005 fb6c bl 8020bcc <tcp_timer_needed>
  67414. 801b4f4: 4b0c ldr r3, [pc, #48] @ (801b528 <tcp_connect+0x230>)
  67415. 801b4f6: 2201 movs r2, #1
  67416. 801b4f8: 701a strb r2, [r3, #0]
  67417. MIB2_STATS_INC(mib2.tcpactiveopens);
  67418. tcp_output(pcb);
  67419. 801b4fa: 68f8 ldr r0, [r7, #12]
  67420. 801b4fc: f004 fbe2 bl 801fcc4 <tcp_output>
  67421. }
  67422. return ret;
  67423. 801b500: f997 3013 ldrsb.w r3, [r7, #19]
  67424. }
  67425. 801b504: 4618 mov r0, r3
  67426. 801b506: 3728 adds r7, #40 @ 0x28
  67427. 801b508: 46bd mov sp, r7
  67428. 801b50a: bd80 pop {r7, pc}
  67429. 801b50c: 0802e5f0 .word 0x0802e5f0
  67430. 801b510: 0802e8cc .word 0x0802e8cc
  67431. 801b514: 0802e634 .word 0x0802e634
  67432. 801b518: 0802e8e8 .word 0x0802e8e8
  67433. 801b51c: 0802e904 .word 0x0802e904
  67434. 801b520: 2402ae8c .word 0x2402ae8c
  67435. 801b524: 2402ae94 .word 0x2402ae94
  67436. 801b528: 2402ae9c .word 0x2402ae9c
  67437. 0801b52c <tcp_slowtmr>:
  67438. *
  67439. * Automatically called from tcp_tmr().
  67440. */
  67441. void
  67442. tcp_slowtmr(void)
  67443. {
  67444. 801b52c: b5b0 push {r4, r5, r7, lr}
  67445. 801b52e: b090 sub sp, #64 @ 0x40
  67446. 801b530: af04 add r7, sp, #16
  67447. tcpwnd_size_t eff_wnd;
  67448. u8_t pcb_remove; /* flag if a PCB should be removed */
  67449. u8_t pcb_reset; /* flag if a RST should be sent when removing */
  67450. err_t err;
  67451. err = ERR_OK;
  67452. 801b532: 2300 movs r3, #0
  67453. 801b534: f887 3025 strb.w r3, [r7, #37] @ 0x25
  67454. ++tcp_ticks;
  67455. 801b538: 4b95 ldr r3, [pc, #596] @ (801b790 <tcp_slowtmr+0x264>)
  67456. 801b53a: 681b ldr r3, [r3, #0]
  67457. 801b53c: 3301 adds r3, #1
  67458. 801b53e: 4a94 ldr r2, [pc, #592] @ (801b790 <tcp_slowtmr+0x264>)
  67459. 801b540: 6013 str r3, [r2, #0]
  67460. ++tcp_timer_ctr;
  67461. 801b542: 4b94 ldr r3, [pc, #592] @ (801b794 <tcp_slowtmr+0x268>)
  67462. 801b544: 781b ldrb r3, [r3, #0]
  67463. 801b546: 3301 adds r3, #1
  67464. 801b548: b2da uxtb r2, r3
  67465. 801b54a: 4b92 ldr r3, [pc, #584] @ (801b794 <tcp_slowtmr+0x268>)
  67466. 801b54c: 701a strb r2, [r3, #0]
  67467. 801b54e: e000 b.n 801b552 <tcp_slowtmr+0x26>
  67468. prev->polltmr = 0;
  67469. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n"));
  67470. tcp_active_pcbs_changed = 0;
  67471. TCP_EVENT_POLL(prev, err);
  67472. if (tcp_active_pcbs_changed) {
  67473. goto tcp_slowtmr_start;
  67474. 801b550: bf00 nop
  67475. prev = NULL;
  67476. 801b552: 2300 movs r3, #0
  67477. 801b554: 62bb str r3, [r7, #40] @ 0x28
  67478. pcb = tcp_active_pcbs;
  67479. 801b556: 4b90 ldr r3, [pc, #576] @ (801b798 <tcp_slowtmr+0x26c>)
  67480. 801b558: 681b ldr r3, [r3, #0]
  67481. 801b55a: 62fb str r3, [r7, #44] @ 0x2c
  67482. while (pcb != NULL) {
  67483. 801b55c: e29d b.n 801ba9a <tcp_slowtmr+0x56e>
  67484. LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED);
  67485. 801b55e: 6afb ldr r3, [r7, #44] @ 0x2c
  67486. 801b560: 7d1b ldrb r3, [r3, #20]
  67487. 801b562: 2b00 cmp r3, #0
  67488. 801b564: d106 bne.n 801b574 <tcp_slowtmr+0x48>
  67489. 801b566: 4b8d ldr r3, [pc, #564] @ (801b79c <tcp_slowtmr+0x270>)
  67490. 801b568: f240 42be movw r2, #1214 @ 0x4be
  67491. 801b56c: 498c ldr r1, [pc, #560] @ (801b7a0 <tcp_slowtmr+0x274>)
  67492. 801b56e: 488d ldr r0, [pc, #564] @ (801b7a4 <tcp_slowtmr+0x278>)
  67493. 801b570: f00e fa34 bl 80299dc <iprintf>
  67494. LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN);
  67495. 801b574: 6afb ldr r3, [r7, #44] @ 0x2c
  67496. 801b576: 7d1b ldrb r3, [r3, #20]
  67497. 801b578: 2b01 cmp r3, #1
  67498. 801b57a: d106 bne.n 801b58a <tcp_slowtmr+0x5e>
  67499. 801b57c: 4b87 ldr r3, [pc, #540] @ (801b79c <tcp_slowtmr+0x270>)
  67500. 801b57e: f240 42bf movw r2, #1215 @ 0x4bf
  67501. 801b582: 4989 ldr r1, [pc, #548] @ (801b7a8 <tcp_slowtmr+0x27c>)
  67502. 801b584: 4887 ldr r0, [pc, #540] @ (801b7a4 <tcp_slowtmr+0x278>)
  67503. 801b586: f00e fa29 bl 80299dc <iprintf>
  67504. LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT);
  67505. 801b58a: 6afb ldr r3, [r7, #44] @ 0x2c
  67506. 801b58c: 7d1b ldrb r3, [r3, #20]
  67507. 801b58e: 2b0a cmp r3, #10
  67508. 801b590: d106 bne.n 801b5a0 <tcp_slowtmr+0x74>
  67509. 801b592: 4b82 ldr r3, [pc, #520] @ (801b79c <tcp_slowtmr+0x270>)
  67510. 801b594: f44f 6298 mov.w r2, #1216 @ 0x4c0
  67511. 801b598: 4984 ldr r1, [pc, #528] @ (801b7ac <tcp_slowtmr+0x280>)
  67512. 801b59a: 4882 ldr r0, [pc, #520] @ (801b7a4 <tcp_slowtmr+0x278>)
  67513. 801b59c: f00e fa1e bl 80299dc <iprintf>
  67514. if (pcb->last_timer == tcp_timer_ctr) {
  67515. 801b5a0: 6afb ldr r3, [r7, #44] @ 0x2c
  67516. 801b5a2: 7f9a ldrb r2, [r3, #30]
  67517. 801b5a4: 4b7b ldr r3, [pc, #492] @ (801b794 <tcp_slowtmr+0x268>)
  67518. 801b5a6: 781b ldrb r3, [r3, #0]
  67519. 801b5a8: 429a cmp r2, r3
  67520. 801b5aa: d105 bne.n 801b5b8 <tcp_slowtmr+0x8c>
  67521. prev = pcb;
  67522. 801b5ac: 6afb ldr r3, [r7, #44] @ 0x2c
  67523. 801b5ae: 62bb str r3, [r7, #40] @ 0x28
  67524. pcb = pcb->next;
  67525. 801b5b0: 6afb ldr r3, [r7, #44] @ 0x2c
  67526. 801b5b2: 68db ldr r3, [r3, #12]
  67527. 801b5b4: 62fb str r3, [r7, #44] @ 0x2c
  67528. continue;
  67529. 801b5b6: e270 b.n 801ba9a <tcp_slowtmr+0x56e>
  67530. pcb->last_timer = tcp_timer_ctr;
  67531. 801b5b8: 4b76 ldr r3, [pc, #472] @ (801b794 <tcp_slowtmr+0x268>)
  67532. 801b5ba: 781a ldrb r2, [r3, #0]
  67533. 801b5bc: 6afb ldr r3, [r7, #44] @ 0x2c
  67534. 801b5be: 779a strb r2, [r3, #30]
  67535. pcb_remove = 0;
  67536. 801b5c0: 2300 movs r3, #0
  67537. 801b5c2: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67538. pcb_reset = 0;
  67539. 801b5c6: 2300 movs r3, #0
  67540. 801b5c8: f887 3026 strb.w r3, [r7, #38] @ 0x26
  67541. if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) {
  67542. 801b5cc: 6afb ldr r3, [r7, #44] @ 0x2c
  67543. 801b5ce: 7d1b ldrb r3, [r3, #20]
  67544. 801b5d0: 2b02 cmp r3, #2
  67545. 801b5d2: d10a bne.n 801b5ea <tcp_slowtmr+0xbe>
  67546. 801b5d4: 6afb ldr r3, [r7, #44] @ 0x2c
  67547. 801b5d6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  67548. 801b5da: 2b05 cmp r3, #5
  67549. 801b5dc: d905 bls.n 801b5ea <tcp_slowtmr+0xbe>
  67550. ++pcb_remove;
  67551. 801b5de: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67552. 801b5e2: 3301 adds r3, #1
  67553. 801b5e4: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67554. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n"));
  67555. 801b5e8: e11e b.n 801b828 <tcp_slowtmr+0x2fc>
  67556. } else if (pcb->nrtx >= TCP_MAXRTX) {
  67557. 801b5ea: 6afb ldr r3, [r7, #44] @ 0x2c
  67558. 801b5ec: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  67559. 801b5f0: 2b0b cmp r3, #11
  67560. 801b5f2: d905 bls.n 801b600 <tcp_slowtmr+0xd4>
  67561. ++pcb_remove;
  67562. 801b5f4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67563. 801b5f8: 3301 adds r3, #1
  67564. 801b5fa: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67565. 801b5fe: e113 b.n 801b828 <tcp_slowtmr+0x2fc>
  67566. if (pcb->persist_backoff > 0) {
  67567. 801b600: 6afb ldr r3, [r7, #44] @ 0x2c
  67568. 801b602: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  67569. 801b606: 2b00 cmp r3, #0
  67570. 801b608: d075 beq.n 801b6f6 <tcp_slowtmr+0x1ca>
  67571. LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL);
  67572. 801b60a: 6afb ldr r3, [r7, #44] @ 0x2c
  67573. 801b60c: 6f1b ldr r3, [r3, #112] @ 0x70
  67574. 801b60e: 2b00 cmp r3, #0
  67575. 801b610: d006 beq.n 801b620 <tcp_slowtmr+0xf4>
  67576. 801b612: 4b62 ldr r3, [pc, #392] @ (801b79c <tcp_slowtmr+0x270>)
  67577. 801b614: f240 42d4 movw r2, #1236 @ 0x4d4
  67578. 801b618: 4965 ldr r1, [pc, #404] @ (801b7b0 <tcp_slowtmr+0x284>)
  67579. 801b61a: 4862 ldr r0, [pc, #392] @ (801b7a4 <tcp_slowtmr+0x278>)
  67580. 801b61c: f00e f9de bl 80299dc <iprintf>
  67581. LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL);
  67582. 801b620: 6afb ldr r3, [r7, #44] @ 0x2c
  67583. 801b622: 6edb ldr r3, [r3, #108] @ 0x6c
  67584. 801b624: 2b00 cmp r3, #0
  67585. 801b626: d106 bne.n 801b636 <tcp_slowtmr+0x10a>
  67586. 801b628: 4b5c ldr r3, [pc, #368] @ (801b79c <tcp_slowtmr+0x270>)
  67587. 801b62a: f240 42d5 movw r2, #1237 @ 0x4d5
  67588. 801b62e: 4961 ldr r1, [pc, #388] @ (801b7b4 <tcp_slowtmr+0x288>)
  67589. 801b630: 485c ldr r0, [pc, #368] @ (801b7a4 <tcp_slowtmr+0x278>)
  67590. 801b632: f00e f9d3 bl 80299dc <iprintf>
  67591. if (pcb->persist_probe >= TCP_MAXRTX) {
  67592. 801b636: 6afb ldr r3, [r7, #44] @ 0x2c
  67593. 801b638: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  67594. 801b63c: 2b0b cmp r3, #11
  67595. 801b63e: d905 bls.n 801b64c <tcp_slowtmr+0x120>
  67596. ++pcb_remove; /* max probes reached */
  67597. 801b640: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67598. 801b644: 3301 adds r3, #1
  67599. 801b646: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67600. 801b64a: e0ed b.n 801b828 <tcp_slowtmr+0x2fc>
  67601. u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1];
  67602. 801b64c: 6afb ldr r3, [r7, #44] @ 0x2c
  67603. 801b64e: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  67604. 801b652: 3b01 subs r3, #1
  67605. 801b654: 4a58 ldr r2, [pc, #352] @ (801b7b8 <tcp_slowtmr+0x28c>)
  67606. 801b656: 5cd3 ldrb r3, [r2, r3]
  67607. 801b658: 747b strb r3, [r7, #17]
  67608. if (pcb->persist_cnt < backoff_cnt) {
  67609. 801b65a: 6afb ldr r3, [r7, #44] @ 0x2c
  67610. 801b65c: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  67611. 801b660: 7c7a ldrb r2, [r7, #17]
  67612. 801b662: 429a cmp r2, r3
  67613. 801b664: d907 bls.n 801b676 <tcp_slowtmr+0x14a>
  67614. pcb->persist_cnt++;
  67615. 801b666: 6afb ldr r3, [r7, #44] @ 0x2c
  67616. 801b668: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  67617. 801b66c: 3301 adds r3, #1
  67618. 801b66e: b2da uxtb r2, r3
  67619. 801b670: 6afb ldr r3, [r7, #44] @ 0x2c
  67620. 801b672: f883 2098 strb.w r2, [r3, #152] @ 0x98
  67621. if (pcb->persist_cnt >= backoff_cnt) {
  67622. 801b676: 6afb ldr r3, [r7, #44] @ 0x2c
  67623. 801b678: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  67624. 801b67c: 7c7a ldrb r2, [r7, #17]
  67625. 801b67e: 429a cmp r2, r3
  67626. 801b680: f200 80d2 bhi.w 801b828 <tcp_slowtmr+0x2fc>
  67627. int next_slot = 1; /* increment timer to next slot */
  67628. 801b684: 2301 movs r3, #1
  67629. 801b686: 623b str r3, [r7, #32]
  67630. if (pcb->snd_wnd == 0) {
  67631. 801b688: 6afb ldr r3, [r7, #44] @ 0x2c
  67632. 801b68a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  67633. 801b68e: 2b00 cmp r3, #0
  67634. 801b690: d108 bne.n 801b6a4 <tcp_slowtmr+0x178>
  67635. if (tcp_zero_window_probe(pcb) != ERR_OK) {
  67636. 801b692: 6af8 ldr r0, [r7, #44] @ 0x2c
  67637. 801b694: f005 f9cc bl 8020a30 <tcp_zero_window_probe>
  67638. 801b698: 4603 mov r3, r0
  67639. 801b69a: 2b00 cmp r3, #0
  67640. 801b69c: d014 beq.n 801b6c8 <tcp_slowtmr+0x19c>
  67641. next_slot = 0; /* try probe again with current slot */
  67642. 801b69e: 2300 movs r3, #0
  67643. 801b6a0: 623b str r3, [r7, #32]
  67644. 801b6a2: e011 b.n 801b6c8 <tcp_slowtmr+0x19c>
  67645. if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) {
  67646. 801b6a4: 6afb ldr r3, [r7, #44] @ 0x2c
  67647. 801b6a6: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  67648. 801b6aa: 4619 mov r1, r3
  67649. 801b6ac: 6af8 ldr r0, [r7, #44] @ 0x2c
  67650. 801b6ae: f004 f87f bl 801f7b0 <tcp_split_unsent_seg>
  67651. 801b6b2: 4603 mov r3, r0
  67652. 801b6b4: 2b00 cmp r3, #0
  67653. 801b6b6: d107 bne.n 801b6c8 <tcp_slowtmr+0x19c>
  67654. if (tcp_output(pcb) == ERR_OK) {
  67655. 801b6b8: 6af8 ldr r0, [r7, #44] @ 0x2c
  67656. 801b6ba: f004 fb03 bl 801fcc4 <tcp_output>
  67657. 801b6be: 4603 mov r3, r0
  67658. 801b6c0: 2b00 cmp r3, #0
  67659. 801b6c2: d101 bne.n 801b6c8 <tcp_slowtmr+0x19c>
  67660. next_slot = 0;
  67661. 801b6c4: 2300 movs r3, #0
  67662. 801b6c6: 623b str r3, [r7, #32]
  67663. if (next_slot) {
  67664. 801b6c8: 6a3b ldr r3, [r7, #32]
  67665. 801b6ca: 2b00 cmp r3, #0
  67666. 801b6cc: f000 80ac beq.w 801b828 <tcp_slowtmr+0x2fc>
  67667. pcb->persist_cnt = 0;
  67668. 801b6d0: 6afb ldr r3, [r7, #44] @ 0x2c
  67669. 801b6d2: 2200 movs r2, #0
  67670. 801b6d4: f883 2098 strb.w r2, [r3, #152] @ 0x98
  67671. if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) {
  67672. 801b6d8: 6afb ldr r3, [r7, #44] @ 0x2c
  67673. 801b6da: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  67674. 801b6de: 2b06 cmp r3, #6
  67675. 801b6e0: f200 80a2 bhi.w 801b828 <tcp_slowtmr+0x2fc>
  67676. pcb->persist_backoff++;
  67677. 801b6e4: 6afb ldr r3, [r7, #44] @ 0x2c
  67678. 801b6e6: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  67679. 801b6ea: 3301 adds r3, #1
  67680. 801b6ec: b2da uxtb r2, r3
  67681. 801b6ee: 6afb ldr r3, [r7, #44] @ 0x2c
  67682. 801b6f0: f883 2099 strb.w r2, [r3, #153] @ 0x99
  67683. 801b6f4: e098 b.n 801b828 <tcp_slowtmr+0x2fc>
  67684. if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) {
  67685. 801b6f6: 6afb ldr r3, [r7, #44] @ 0x2c
  67686. 801b6f8: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  67687. 801b6fc: 2b00 cmp r3, #0
  67688. 801b6fe: db0f blt.n 801b720 <tcp_slowtmr+0x1f4>
  67689. 801b700: 6afb ldr r3, [r7, #44] @ 0x2c
  67690. 801b702: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  67691. 801b706: f647 72ff movw r2, #32767 @ 0x7fff
  67692. 801b70a: 4293 cmp r3, r2
  67693. 801b70c: d008 beq.n 801b720 <tcp_slowtmr+0x1f4>
  67694. ++pcb->rtime;
  67695. 801b70e: 6afb ldr r3, [r7, #44] @ 0x2c
  67696. 801b710: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  67697. 801b714: b29b uxth r3, r3
  67698. 801b716: 3301 adds r3, #1
  67699. 801b718: b29b uxth r3, r3
  67700. 801b71a: b21a sxth r2, r3
  67701. 801b71c: 6afb ldr r3, [r7, #44] @ 0x2c
  67702. 801b71e: 861a strh r2, [r3, #48] @ 0x30
  67703. if (pcb->rtime >= pcb->rto) {
  67704. 801b720: 6afb ldr r3, [r7, #44] @ 0x2c
  67705. 801b722: f9b3 2030 ldrsh.w r2, [r3, #48] @ 0x30
  67706. 801b726: 6afb ldr r3, [r7, #44] @ 0x2c
  67707. 801b728: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  67708. 801b72c: 429a cmp r2, r3
  67709. 801b72e: db7b blt.n 801b828 <tcp_slowtmr+0x2fc>
  67710. if ((tcp_rexmit_rto_prepare(pcb) == ERR_OK) || ((pcb->unacked == NULL) && (pcb->unsent != NULL))) {
  67711. 801b730: 6af8 ldr r0, [r7, #44] @ 0x2c
  67712. 801b732: f004 fdbf bl 80202b4 <tcp_rexmit_rto_prepare>
  67713. 801b736: 4603 mov r3, r0
  67714. 801b738: 2b00 cmp r3, #0
  67715. 801b73a: d007 beq.n 801b74c <tcp_slowtmr+0x220>
  67716. 801b73c: 6afb ldr r3, [r7, #44] @ 0x2c
  67717. 801b73e: 6f1b ldr r3, [r3, #112] @ 0x70
  67718. 801b740: 2b00 cmp r3, #0
  67719. 801b742: d171 bne.n 801b828 <tcp_slowtmr+0x2fc>
  67720. 801b744: 6afb ldr r3, [r7, #44] @ 0x2c
  67721. 801b746: 6edb ldr r3, [r3, #108] @ 0x6c
  67722. 801b748: 2b00 cmp r3, #0
  67723. 801b74a: d06d beq.n 801b828 <tcp_slowtmr+0x2fc>
  67724. if (pcb->state != SYN_SENT) {
  67725. 801b74c: 6afb ldr r3, [r7, #44] @ 0x2c
  67726. 801b74e: 7d1b ldrb r3, [r3, #20]
  67727. 801b750: 2b02 cmp r3, #2
  67728. 801b752: d03a beq.n 801b7ca <tcp_slowtmr+0x29e>
  67729. u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1);
  67730. 801b754: 6afb ldr r3, [r7, #44] @ 0x2c
  67731. 801b756: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  67732. 801b75a: 2b0c cmp r3, #12
  67733. 801b75c: bf28 it cs
  67734. 801b75e: 230c movcs r3, #12
  67735. 801b760: 76fb strb r3, [r7, #27]
  67736. int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx];
  67737. 801b762: 6afb ldr r3, [r7, #44] @ 0x2c
  67738. 801b764: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  67739. 801b768: 10db asrs r3, r3, #3
  67740. 801b76a: b21b sxth r3, r3
  67741. 801b76c: 461a mov r2, r3
  67742. 801b76e: 6afb ldr r3, [r7, #44] @ 0x2c
  67743. 801b770: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  67744. 801b774: 4413 add r3, r2
  67745. 801b776: 7efa ldrb r2, [r7, #27]
  67746. 801b778: 4910 ldr r1, [pc, #64] @ (801b7bc <tcp_slowtmr+0x290>)
  67747. 801b77a: 5c8a ldrb r2, [r1, r2]
  67748. 801b77c: 4093 lsls r3, r2
  67749. 801b77e: 617b str r3, [r7, #20]
  67750. pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF);
  67751. 801b780: 697b ldr r3, [r7, #20]
  67752. 801b782: f647 72fe movw r2, #32766 @ 0x7ffe
  67753. 801b786: 4293 cmp r3, r2
  67754. 801b788: dc1a bgt.n 801b7c0 <tcp_slowtmr+0x294>
  67755. 801b78a: 697b ldr r3, [r7, #20]
  67756. 801b78c: b21a sxth r2, r3
  67757. 801b78e: e019 b.n 801b7c4 <tcp_slowtmr+0x298>
  67758. 801b790: 2402ae88 .word 0x2402ae88
  67759. 801b794: 2402ae9e .word 0x2402ae9e
  67760. 801b798: 2402ae94 .word 0x2402ae94
  67761. 801b79c: 0802e5f0 .word 0x0802e5f0
  67762. 801b7a0: 0802e934 .word 0x0802e934
  67763. 801b7a4: 0802e634 .word 0x0802e634
  67764. 801b7a8: 0802e960 .word 0x0802e960
  67765. 801b7ac: 0802e98c .word 0x0802e98c
  67766. 801b7b0: 0802e9bc .word 0x0802e9bc
  67767. 801b7b4: 0802e9f0 .word 0x0802e9f0
  67768. 801b7b8: 08030c28 .word 0x08030c28
  67769. 801b7bc: 08030c18 .word 0x08030c18
  67770. 801b7c0: f647 72ff movw r2, #32767 @ 0x7fff
  67771. 801b7c4: 6afb ldr r3, [r7, #44] @ 0x2c
  67772. 801b7c6: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  67773. pcb->rtime = 0;
  67774. 801b7ca: 6afb ldr r3, [r7, #44] @ 0x2c
  67775. 801b7cc: 2200 movs r2, #0
  67776. 801b7ce: 861a strh r2, [r3, #48] @ 0x30
  67777. eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd);
  67778. 801b7d0: 6afb ldr r3, [r7, #44] @ 0x2c
  67779. 801b7d2: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  67780. 801b7d6: 6afb ldr r3, [r7, #44] @ 0x2c
  67781. 801b7d8: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  67782. 801b7dc: 4293 cmp r3, r2
  67783. 801b7de: bf28 it cs
  67784. 801b7e0: 4613 movcs r3, r2
  67785. 801b7e2: 827b strh r3, [r7, #18]
  67786. pcb->ssthresh = eff_wnd >> 1;
  67787. 801b7e4: 8a7b ldrh r3, [r7, #18]
  67788. 801b7e6: 085b lsrs r3, r3, #1
  67789. 801b7e8: b29a uxth r2, r3
  67790. 801b7ea: 6afb ldr r3, [r7, #44] @ 0x2c
  67791. 801b7ec: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  67792. if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) {
  67793. 801b7f0: 6afb ldr r3, [r7, #44] @ 0x2c
  67794. 801b7f2: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  67795. 801b7f6: 6afb ldr r3, [r7, #44] @ 0x2c
  67796. 801b7f8: 8e5b ldrh r3, [r3, #50] @ 0x32
  67797. 801b7fa: 005b lsls r3, r3, #1
  67798. 801b7fc: b29b uxth r3, r3
  67799. 801b7fe: 429a cmp r2, r3
  67800. 801b800: d206 bcs.n 801b810 <tcp_slowtmr+0x2e4>
  67801. pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1);
  67802. 801b802: 6afb ldr r3, [r7, #44] @ 0x2c
  67803. 801b804: 8e5b ldrh r3, [r3, #50] @ 0x32
  67804. 801b806: 005b lsls r3, r3, #1
  67805. 801b808: b29a uxth r2, r3
  67806. 801b80a: 6afb ldr r3, [r7, #44] @ 0x2c
  67807. 801b80c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  67808. pcb->cwnd = pcb->mss;
  67809. 801b810: 6afb ldr r3, [r7, #44] @ 0x2c
  67810. 801b812: 8e5a ldrh r2, [r3, #50] @ 0x32
  67811. 801b814: 6afb ldr r3, [r7, #44] @ 0x2c
  67812. 801b816: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  67813. pcb->bytes_acked = 0;
  67814. 801b81a: 6afb ldr r3, [r7, #44] @ 0x2c
  67815. 801b81c: 2200 movs r2, #0
  67816. 801b81e: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  67817. tcp_rexmit_rto_commit(pcb);
  67818. 801b822: 6af8 ldr r0, [r7, #44] @ 0x2c
  67819. 801b824: f004 fdc0 bl 80203a8 <tcp_rexmit_rto_commit>
  67820. if (pcb->state == FIN_WAIT_2) {
  67821. 801b828: 6afb ldr r3, [r7, #44] @ 0x2c
  67822. 801b82a: 7d1b ldrb r3, [r3, #20]
  67823. 801b82c: 2b06 cmp r3, #6
  67824. 801b82e: d111 bne.n 801b854 <tcp_slowtmr+0x328>
  67825. if (pcb->flags & TF_RXCLOSED) {
  67826. 801b830: 6afb ldr r3, [r7, #44] @ 0x2c
  67827. 801b832: 8b5b ldrh r3, [r3, #26]
  67828. 801b834: f003 0310 and.w r3, r3, #16
  67829. 801b838: 2b00 cmp r3, #0
  67830. 801b83a: d00b beq.n 801b854 <tcp_slowtmr+0x328>
  67831. if ((u32_t)(tcp_ticks - pcb->tmr) >
  67832. 801b83c: 4b9c ldr r3, [pc, #624] @ (801bab0 <tcp_slowtmr+0x584>)
  67833. 801b83e: 681a ldr r2, [r3, #0]
  67834. 801b840: 6afb ldr r3, [r7, #44] @ 0x2c
  67835. 801b842: 6a1b ldr r3, [r3, #32]
  67836. 801b844: 1ad3 subs r3, r2, r3
  67837. 801b846: 2b28 cmp r3, #40 @ 0x28
  67838. 801b848: d904 bls.n 801b854 <tcp_slowtmr+0x328>
  67839. ++pcb_remove;
  67840. 801b84a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67841. 801b84e: 3301 adds r3, #1
  67842. 801b850: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67843. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  67844. 801b854: 6afb ldr r3, [r7, #44] @ 0x2c
  67845. 801b856: 7a5b ldrb r3, [r3, #9]
  67846. 801b858: f003 0308 and.w r3, r3, #8
  67847. 801b85c: 2b00 cmp r3, #0
  67848. 801b85e: d04a beq.n 801b8f6 <tcp_slowtmr+0x3ca>
  67849. ((pcb->state == ESTABLISHED) ||
  67850. 801b860: 6afb ldr r3, [r7, #44] @ 0x2c
  67851. 801b862: 7d1b ldrb r3, [r3, #20]
  67852. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  67853. 801b864: 2b04 cmp r3, #4
  67854. 801b866: d003 beq.n 801b870 <tcp_slowtmr+0x344>
  67855. (pcb->state == CLOSE_WAIT))) {
  67856. 801b868: 6afb ldr r3, [r7, #44] @ 0x2c
  67857. 801b86a: 7d1b ldrb r3, [r3, #20]
  67858. ((pcb->state == ESTABLISHED) ||
  67859. 801b86c: 2b07 cmp r3, #7
  67860. 801b86e: d142 bne.n 801b8f6 <tcp_slowtmr+0x3ca>
  67861. if ((u32_t)(tcp_ticks - pcb->tmr) >
  67862. 801b870: 4b8f ldr r3, [pc, #572] @ (801bab0 <tcp_slowtmr+0x584>)
  67863. 801b872: 681a ldr r2, [r3, #0]
  67864. 801b874: 6afb ldr r3, [r7, #44] @ 0x2c
  67865. 801b876: 6a1b ldr r3, [r3, #32]
  67866. 801b878: 1ad2 subs r2, r2, r3
  67867. (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) {
  67868. 801b87a: 6afb ldr r3, [r7, #44] @ 0x2c
  67869. 801b87c: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  67870. 801b880: 4b8c ldr r3, [pc, #560] @ (801bab4 <tcp_slowtmr+0x588>)
  67871. 801b882: 440b add r3, r1
  67872. 801b884: 498c ldr r1, [pc, #560] @ (801bab8 <tcp_slowtmr+0x58c>)
  67873. 801b886: fba1 1303 umull r1, r3, r1, r3
  67874. 801b88a: 095b lsrs r3, r3, #5
  67875. if ((u32_t)(tcp_ticks - pcb->tmr) >
  67876. 801b88c: 429a cmp r2, r3
  67877. 801b88e: d90a bls.n 801b8a6 <tcp_slowtmr+0x37a>
  67878. ++pcb_remove;
  67879. 801b890: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67880. 801b894: 3301 adds r3, #1
  67881. 801b896: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67882. ++pcb_reset;
  67883. 801b89a: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  67884. 801b89e: 3301 adds r3, #1
  67885. 801b8a0: f887 3026 strb.w r3, [r7, #38] @ 0x26
  67886. 801b8a4: e027 b.n 801b8f6 <tcp_slowtmr+0x3ca>
  67887. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  67888. 801b8a6: 4b82 ldr r3, [pc, #520] @ (801bab0 <tcp_slowtmr+0x584>)
  67889. 801b8a8: 681a ldr r2, [r3, #0]
  67890. 801b8aa: 6afb ldr r3, [r7, #44] @ 0x2c
  67891. 801b8ac: 6a1b ldr r3, [r3, #32]
  67892. 801b8ae: 1ad2 subs r2, r2, r3
  67893. (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb))
  67894. 801b8b0: 6afb ldr r3, [r7, #44] @ 0x2c
  67895. 801b8b2: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  67896. 801b8b6: 6afb ldr r3, [r7, #44] @ 0x2c
  67897. 801b8b8: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  67898. 801b8bc: 4618 mov r0, r3
  67899. 801b8be: 4b7f ldr r3, [pc, #508] @ (801babc <tcp_slowtmr+0x590>)
  67900. 801b8c0: fb00 f303 mul.w r3, r0, r3
  67901. 801b8c4: 440b add r3, r1
  67902. / TCP_SLOW_INTERVAL) {
  67903. 801b8c6: 497c ldr r1, [pc, #496] @ (801bab8 <tcp_slowtmr+0x58c>)
  67904. 801b8c8: fba1 1303 umull r1, r3, r1, r3
  67905. 801b8cc: 095b lsrs r3, r3, #5
  67906. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  67907. 801b8ce: 429a cmp r2, r3
  67908. 801b8d0: d911 bls.n 801b8f6 <tcp_slowtmr+0x3ca>
  67909. err = tcp_keepalive(pcb);
  67910. 801b8d2: 6af8 ldr r0, [r7, #44] @ 0x2c
  67911. 801b8d4: f005 f86c bl 80209b0 <tcp_keepalive>
  67912. 801b8d8: 4603 mov r3, r0
  67913. 801b8da: f887 3025 strb.w r3, [r7, #37] @ 0x25
  67914. if (err == ERR_OK) {
  67915. 801b8de: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  67916. 801b8e2: 2b00 cmp r3, #0
  67917. 801b8e4: d107 bne.n 801b8f6 <tcp_slowtmr+0x3ca>
  67918. pcb->keep_cnt_sent++;
  67919. 801b8e6: 6afb ldr r3, [r7, #44] @ 0x2c
  67920. 801b8e8: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  67921. 801b8ec: 3301 adds r3, #1
  67922. 801b8ee: b2da uxtb r2, r3
  67923. 801b8f0: 6afb ldr r3, [r7, #44] @ 0x2c
  67924. 801b8f2: f883 209b strb.w r2, [r3, #155] @ 0x9b
  67925. if (pcb->ooseq != NULL &&
  67926. 801b8f6: 6afb ldr r3, [r7, #44] @ 0x2c
  67927. 801b8f8: 6f5b ldr r3, [r3, #116] @ 0x74
  67928. 801b8fa: 2b00 cmp r3, #0
  67929. 801b8fc: d011 beq.n 801b922 <tcp_slowtmr+0x3f6>
  67930. (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) {
  67931. 801b8fe: 4b6c ldr r3, [pc, #432] @ (801bab0 <tcp_slowtmr+0x584>)
  67932. 801b900: 681a ldr r2, [r3, #0]
  67933. 801b902: 6afb ldr r3, [r7, #44] @ 0x2c
  67934. 801b904: 6a1b ldr r3, [r3, #32]
  67935. 801b906: 1ad2 subs r2, r2, r3
  67936. 801b908: 6afb ldr r3, [r7, #44] @ 0x2c
  67937. 801b90a: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  67938. 801b90e: 4619 mov r1, r3
  67939. 801b910: 460b mov r3, r1
  67940. 801b912: 005b lsls r3, r3, #1
  67941. 801b914: 440b add r3, r1
  67942. 801b916: 005b lsls r3, r3, #1
  67943. if (pcb->ooseq != NULL &&
  67944. 801b918: 429a cmp r2, r3
  67945. 801b91a: d302 bcc.n 801b922 <tcp_slowtmr+0x3f6>
  67946. tcp_free_ooseq(pcb);
  67947. 801b91c: 6af8 ldr r0, [r7, #44] @ 0x2c
  67948. 801b91e: f000 feb7 bl 801c690 <tcp_free_ooseq>
  67949. if (pcb->state == SYN_RCVD) {
  67950. 801b922: 6afb ldr r3, [r7, #44] @ 0x2c
  67951. 801b924: 7d1b ldrb r3, [r3, #20]
  67952. 801b926: 2b03 cmp r3, #3
  67953. 801b928: d10b bne.n 801b942 <tcp_slowtmr+0x416>
  67954. if ((u32_t)(tcp_ticks - pcb->tmr) >
  67955. 801b92a: 4b61 ldr r3, [pc, #388] @ (801bab0 <tcp_slowtmr+0x584>)
  67956. 801b92c: 681a ldr r2, [r3, #0]
  67957. 801b92e: 6afb ldr r3, [r7, #44] @ 0x2c
  67958. 801b930: 6a1b ldr r3, [r3, #32]
  67959. 801b932: 1ad3 subs r3, r2, r3
  67960. 801b934: 2b28 cmp r3, #40 @ 0x28
  67961. 801b936: d904 bls.n 801b942 <tcp_slowtmr+0x416>
  67962. ++pcb_remove;
  67963. 801b938: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67964. 801b93c: 3301 adds r3, #1
  67965. 801b93e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67966. if (pcb->state == LAST_ACK) {
  67967. 801b942: 6afb ldr r3, [r7, #44] @ 0x2c
  67968. 801b944: 7d1b ldrb r3, [r3, #20]
  67969. 801b946: 2b09 cmp r3, #9
  67970. 801b948: d10b bne.n 801b962 <tcp_slowtmr+0x436>
  67971. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  67972. 801b94a: 4b59 ldr r3, [pc, #356] @ (801bab0 <tcp_slowtmr+0x584>)
  67973. 801b94c: 681a ldr r2, [r3, #0]
  67974. 801b94e: 6afb ldr r3, [r7, #44] @ 0x2c
  67975. 801b950: 6a1b ldr r3, [r3, #32]
  67976. 801b952: 1ad3 subs r3, r2, r3
  67977. 801b954: 2bf0 cmp r3, #240 @ 0xf0
  67978. 801b956: d904 bls.n 801b962 <tcp_slowtmr+0x436>
  67979. ++pcb_remove;
  67980. 801b958: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67981. 801b95c: 3301 adds r3, #1
  67982. 801b95e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  67983. if (pcb_remove) {
  67984. 801b962: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  67985. 801b966: 2b00 cmp r3, #0
  67986. 801b968: d060 beq.n 801ba2c <tcp_slowtmr+0x500>
  67987. tcp_err_fn err_fn = pcb->errf;
  67988. 801b96a: 6afb ldr r3, [r7, #44] @ 0x2c
  67989. 801b96c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  67990. 801b970: 60fb str r3, [r7, #12]
  67991. tcp_pcb_purge(pcb);
  67992. 801b972: 6af8 ldr r0, [r7, #44] @ 0x2c
  67993. 801b974: f000 fcd8 bl 801c328 <tcp_pcb_purge>
  67994. if (prev != NULL) {
  67995. 801b978: 6abb ldr r3, [r7, #40] @ 0x28
  67996. 801b97a: 2b00 cmp r3, #0
  67997. 801b97c: d010 beq.n 801b9a0 <tcp_slowtmr+0x474>
  67998. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs);
  67999. 801b97e: 4b50 ldr r3, [pc, #320] @ (801bac0 <tcp_slowtmr+0x594>)
  68000. 801b980: 681b ldr r3, [r3, #0]
  68001. 801b982: 6afa ldr r2, [r7, #44] @ 0x2c
  68002. 801b984: 429a cmp r2, r3
  68003. 801b986: d106 bne.n 801b996 <tcp_slowtmr+0x46a>
  68004. 801b988: 4b4e ldr r3, [pc, #312] @ (801bac4 <tcp_slowtmr+0x598>)
  68005. 801b98a: f240 526d movw r2, #1389 @ 0x56d
  68006. 801b98e: 494e ldr r1, [pc, #312] @ (801bac8 <tcp_slowtmr+0x59c>)
  68007. 801b990: 484e ldr r0, [pc, #312] @ (801bacc <tcp_slowtmr+0x5a0>)
  68008. 801b992: f00e f823 bl 80299dc <iprintf>
  68009. prev->next = pcb->next;
  68010. 801b996: 6afb ldr r3, [r7, #44] @ 0x2c
  68011. 801b998: 68da ldr r2, [r3, #12]
  68012. 801b99a: 6abb ldr r3, [r7, #40] @ 0x28
  68013. 801b99c: 60da str r2, [r3, #12]
  68014. 801b99e: e00f b.n 801b9c0 <tcp_slowtmr+0x494>
  68015. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb);
  68016. 801b9a0: 4b47 ldr r3, [pc, #284] @ (801bac0 <tcp_slowtmr+0x594>)
  68017. 801b9a2: 681b ldr r3, [r3, #0]
  68018. 801b9a4: 6afa ldr r2, [r7, #44] @ 0x2c
  68019. 801b9a6: 429a cmp r2, r3
  68020. 801b9a8: d006 beq.n 801b9b8 <tcp_slowtmr+0x48c>
  68021. 801b9aa: 4b46 ldr r3, [pc, #280] @ (801bac4 <tcp_slowtmr+0x598>)
  68022. 801b9ac: f240 5271 movw r2, #1393 @ 0x571
  68023. 801b9b0: 4947 ldr r1, [pc, #284] @ (801bad0 <tcp_slowtmr+0x5a4>)
  68024. 801b9b2: 4846 ldr r0, [pc, #280] @ (801bacc <tcp_slowtmr+0x5a0>)
  68025. 801b9b4: f00e f812 bl 80299dc <iprintf>
  68026. tcp_active_pcbs = pcb->next;
  68027. 801b9b8: 6afb ldr r3, [r7, #44] @ 0x2c
  68028. 801b9ba: 68db ldr r3, [r3, #12]
  68029. 801b9bc: 4a40 ldr r2, [pc, #256] @ (801bac0 <tcp_slowtmr+0x594>)
  68030. 801b9be: 6013 str r3, [r2, #0]
  68031. if (pcb_reset) {
  68032. 801b9c0: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  68033. 801b9c4: 2b00 cmp r3, #0
  68034. 801b9c6: d013 beq.n 801b9f0 <tcp_slowtmr+0x4c4>
  68035. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  68036. 801b9c8: 6afb ldr r3, [r7, #44] @ 0x2c
  68037. 801b9ca: 6d18 ldr r0, [r3, #80] @ 0x50
  68038. 801b9cc: 6afb ldr r3, [r7, #44] @ 0x2c
  68039. 801b9ce: 6a5c ldr r4, [r3, #36] @ 0x24
  68040. 801b9d0: 6afd ldr r5, [r7, #44] @ 0x2c
  68041. 801b9d2: 6afb ldr r3, [r7, #44] @ 0x2c
  68042. 801b9d4: 3304 adds r3, #4
  68043. 801b9d6: 6afa ldr r2, [r7, #44] @ 0x2c
  68044. 801b9d8: 8ad2 ldrh r2, [r2, #22]
  68045. 801b9da: 6af9 ldr r1, [r7, #44] @ 0x2c
  68046. 801b9dc: 8b09 ldrh r1, [r1, #24]
  68047. 801b9de: 9102 str r1, [sp, #8]
  68048. 801b9e0: 9201 str r2, [sp, #4]
  68049. 801b9e2: 9300 str r3, [sp, #0]
  68050. 801b9e4: 462b mov r3, r5
  68051. 801b9e6: 4622 mov r2, r4
  68052. 801b9e8: 4601 mov r1, r0
  68053. 801b9ea: 6af8 ldr r0, [r7, #44] @ 0x2c
  68054. 801b9ec: f004 ff2c bl 8020848 <tcp_rst>
  68055. err_arg = pcb->callback_arg;
  68056. 801b9f0: 6afb ldr r3, [r7, #44] @ 0x2c
  68057. 801b9f2: 691b ldr r3, [r3, #16]
  68058. 801b9f4: 60bb str r3, [r7, #8]
  68059. last_state = pcb->state;
  68060. 801b9f6: 6afb ldr r3, [r7, #44] @ 0x2c
  68061. 801b9f8: 7d1b ldrb r3, [r3, #20]
  68062. 801b9fa: 71fb strb r3, [r7, #7]
  68063. pcb2 = pcb;
  68064. 801b9fc: 6afb ldr r3, [r7, #44] @ 0x2c
  68065. 801b9fe: 603b str r3, [r7, #0]
  68066. pcb = pcb->next;
  68067. 801ba00: 6afb ldr r3, [r7, #44] @ 0x2c
  68068. 801ba02: 68db ldr r3, [r3, #12]
  68069. 801ba04: 62fb str r3, [r7, #44] @ 0x2c
  68070. tcp_free(pcb2);
  68071. 801ba06: 6838 ldr r0, [r7, #0]
  68072. 801ba08: f7ff f82c bl 801aa64 <tcp_free>
  68073. tcp_active_pcbs_changed = 0;
  68074. 801ba0c: 4b31 ldr r3, [pc, #196] @ (801bad4 <tcp_slowtmr+0x5a8>)
  68075. 801ba0e: 2200 movs r2, #0
  68076. 801ba10: 701a strb r2, [r3, #0]
  68077. TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT);
  68078. 801ba12: 68fb ldr r3, [r7, #12]
  68079. 801ba14: 2b00 cmp r3, #0
  68080. 801ba16: d004 beq.n 801ba22 <tcp_slowtmr+0x4f6>
  68081. 801ba18: 68fb ldr r3, [r7, #12]
  68082. 801ba1a: f06f 010c mvn.w r1, #12
  68083. 801ba1e: 68b8 ldr r0, [r7, #8]
  68084. 801ba20: 4798 blx r3
  68085. if (tcp_active_pcbs_changed) {
  68086. 801ba22: 4b2c ldr r3, [pc, #176] @ (801bad4 <tcp_slowtmr+0x5a8>)
  68087. 801ba24: 781b ldrb r3, [r3, #0]
  68088. 801ba26: 2b00 cmp r3, #0
  68089. 801ba28: d037 beq.n 801ba9a <tcp_slowtmr+0x56e>
  68090. goto tcp_slowtmr_start;
  68091. 801ba2a: e592 b.n 801b552 <tcp_slowtmr+0x26>
  68092. prev = pcb;
  68093. 801ba2c: 6afb ldr r3, [r7, #44] @ 0x2c
  68094. 801ba2e: 62bb str r3, [r7, #40] @ 0x28
  68095. pcb = pcb->next;
  68096. 801ba30: 6afb ldr r3, [r7, #44] @ 0x2c
  68097. 801ba32: 68db ldr r3, [r3, #12]
  68098. 801ba34: 62fb str r3, [r7, #44] @ 0x2c
  68099. ++prev->polltmr;
  68100. 801ba36: 6abb ldr r3, [r7, #40] @ 0x28
  68101. 801ba38: 7f1b ldrb r3, [r3, #28]
  68102. 801ba3a: 3301 adds r3, #1
  68103. 801ba3c: b2da uxtb r2, r3
  68104. 801ba3e: 6abb ldr r3, [r7, #40] @ 0x28
  68105. 801ba40: 771a strb r2, [r3, #28]
  68106. if (prev->polltmr >= prev->pollinterval) {
  68107. 801ba42: 6abb ldr r3, [r7, #40] @ 0x28
  68108. 801ba44: 7f1a ldrb r2, [r3, #28]
  68109. 801ba46: 6abb ldr r3, [r7, #40] @ 0x28
  68110. 801ba48: 7f5b ldrb r3, [r3, #29]
  68111. 801ba4a: 429a cmp r2, r3
  68112. 801ba4c: d325 bcc.n 801ba9a <tcp_slowtmr+0x56e>
  68113. prev->polltmr = 0;
  68114. 801ba4e: 6abb ldr r3, [r7, #40] @ 0x28
  68115. 801ba50: 2200 movs r2, #0
  68116. 801ba52: 771a strb r2, [r3, #28]
  68117. tcp_active_pcbs_changed = 0;
  68118. 801ba54: 4b1f ldr r3, [pc, #124] @ (801bad4 <tcp_slowtmr+0x5a8>)
  68119. 801ba56: 2200 movs r2, #0
  68120. 801ba58: 701a strb r2, [r3, #0]
  68121. TCP_EVENT_POLL(prev, err);
  68122. 801ba5a: 6abb ldr r3, [r7, #40] @ 0x28
  68123. 801ba5c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  68124. 801ba60: 2b00 cmp r3, #0
  68125. 801ba62: d00b beq.n 801ba7c <tcp_slowtmr+0x550>
  68126. 801ba64: 6abb ldr r3, [r7, #40] @ 0x28
  68127. 801ba66: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  68128. 801ba6a: 6aba ldr r2, [r7, #40] @ 0x28
  68129. 801ba6c: 6912 ldr r2, [r2, #16]
  68130. 801ba6e: 6ab9 ldr r1, [r7, #40] @ 0x28
  68131. 801ba70: 4610 mov r0, r2
  68132. 801ba72: 4798 blx r3
  68133. 801ba74: 4603 mov r3, r0
  68134. 801ba76: f887 3025 strb.w r3, [r7, #37] @ 0x25
  68135. 801ba7a: e002 b.n 801ba82 <tcp_slowtmr+0x556>
  68136. 801ba7c: 2300 movs r3, #0
  68137. 801ba7e: f887 3025 strb.w r3, [r7, #37] @ 0x25
  68138. if (tcp_active_pcbs_changed) {
  68139. 801ba82: 4b14 ldr r3, [pc, #80] @ (801bad4 <tcp_slowtmr+0x5a8>)
  68140. 801ba84: 781b ldrb r3, [r3, #0]
  68141. 801ba86: 2b00 cmp r3, #0
  68142. 801ba88: f47f ad62 bne.w 801b550 <tcp_slowtmr+0x24>
  68143. }
  68144. /* if err == ERR_ABRT, 'prev' is already deallocated */
  68145. if (err == ERR_OK) {
  68146. 801ba8c: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  68147. 801ba90: 2b00 cmp r3, #0
  68148. 801ba92: d102 bne.n 801ba9a <tcp_slowtmr+0x56e>
  68149. tcp_output(prev);
  68150. 801ba94: 6ab8 ldr r0, [r7, #40] @ 0x28
  68151. 801ba96: f004 f915 bl 801fcc4 <tcp_output>
  68152. while (pcb != NULL) {
  68153. 801ba9a: 6afb ldr r3, [r7, #44] @ 0x2c
  68154. 801ba9c: 2b00 cmp r3, #0
  68155. 801ba9e: f47f ad5e bne.w 801b55e <tcp_slowtmr+0x32>
  68156. }
  68157. }
  68158. /* Steps through all of the TIME-WAIT PCBs. */
  68159. prev = NULL;
  68160. 801baa2: 2300 movs r3, #0
  68161. 801baa4: 62bb str r3, [r7, #40] @ 0x28
  68162. pcb = tcp_tw_pcbs;
  68163. 801baa6: 4b0c ldr r3, [pc, #48] @ (801bad8 <tcp_slowtmr+0x5ac>)
  68164. 801baa8: 681b ldr r3, [r3, #0]
  68165. 801baaa: 62fb str r3, [r7, #44] @ 0x2c
  68166. while (pcb != NULL) {
  68167. 801baac: e069 b.n 801bb82 <tcp_slowtmr+0x656>
  68168. 801baae: bf00 nop
  68169. 801bab0: 2402ae88 .word 0x2402ae88
  68170. 801bab4: 000a4cb8 .word 0x000a4cb8
  68171. 801bab8: 10624dd3 .word 0x10624dd3
  68172. 801babc: 000124f8 .word 0x000124f8
  68173. 801bac0: 2402ae94 .word 0x2402ae94
  68174. 801bac4: 0802e5f0 .word 0x0802e5f0
  68175. 801bac8: 0802ea28 .word 0x0802ea28
  68176. 801bacc: 0802e634 .word 0x0802e634
  68177. 801bad0: 0802ea54 .word 0x0802ea54
  68178. 801bad4: 2402ae9c .word 0x2402ae9c
  68179. 801bad8: 2402ae98 .word 0x2402ae98
  68180. LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  68181. 801badc: 6afb ldr r3, [r7, #44] @ 0x2c
  68182. 801bade: 7d1b ldrb r3, [r3, #20]
  68183. 801bae0: 2b0a cmp r3, #10
  68184. 801bae2: d006 beq.n 801baf2 <tcp_slowtmr+0x5c6>
  68185. 801bae4: 4b2b ldr r3, [pc, #172] @ (801bb94 <tcp_slowtmr+0x668>)
  68186. 801bae6: f240 52a1 movw r2, #1441 @ 0x5a1
  68187. 801baea: 492b ldr r1, [pc, #172] @ (801bb98 <tcp_slowtmr+0x66c>)
  68188. 801baec: 482b ldr r0, [pc, #172] @ (801bb9c <tcp_slowtmr+0x670>)
  68189. 801baee: f00d ff75 bl 80299dc <iprintf>
  68190. pcb_remove = 0;
  68191. 801baf2: 2300 movs r3, #0
  68192. 801baf4: f887 3027 strb.w r3, [r7, #39] @ 0x27
  68193. /* Check if this PCB has stayed long enough in TIME-WAIT */
  68194. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  68195. 801baf8: 4b29 ldr r3, [pc, #164] @ (801bba0 <tcp_slowtmr+0x674>)
  68196. 801bafa: 681a ldr r2, [r3, #0]
  68197. 801bafc: 6afb ldr r3, [r7, #44] @ 0x2c
  68198. 801bafe: 6a1b ldr r3, [r3, #32]
  68199. 801bb00: 1ad3 subs r3, r2, r3
  68200. 801bb02: 2bf0 cmp r3, #240 @ 0xf0
  68201. 801bb04: d904 bls.n 801bb10 <tcp_slowtmr+0x5e4>
  68202. ++pcb_remove;
  68203. 801bb06: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  68204. 801bb0a: 3301 adds r3, #1
  68205. 801bb0c: f887 3027 strb.w r3, [r7, #39] @ 0x27
  68206. }
  68207. /* If the PCB should be removed, do it. */
  68208. if (pcb_remove) {
  68209. 801bb10: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  68210. 801bb14: 2b00 cmp r3, #0
  68211. 801bb16: d02f beq.n 801bb78 <tcp_slowtmr+0x64c>
  68212. struct tcp_pcb *pcb2;
  68213. tcp_pcb_purge(pcb);
  68214. 801bb18: 6af8 ldr r0, [r7, #44] @ 0x2c
  68215. 801bb1a: f000 fc05 bl 801c328 <tcp_pcb_purge>
  68216. /* Remove PCB from tcp_tw_pcbs list. */
  68217. if (prev != NULL) {
  68218. 801bb1e: 6abb ldr r3, [r7, #40] @ 0x28
  68219. 801bb20: 2b00 cmp r3, #0
  68220. 801bb22: d010 beq.n 801bb46 <tcp_slowtmr+0x61a>
  68221. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs);
  68222. 801bb24: 4b1f ldr r3, [pc, #124] @ (801bba4 <tcp_slowtmr+0x678>)
  68223. 801bb26: 681b ldr r3, [r3, #0]
  68224. 801bb28: 6afa ldr r2, [r7, #44] @ 0x2c
  68225. 801bb2a: 429a cmp r2, r3
  68226. 801bb2c: d106 bne.n 801bb3c <tcp_slowtmr+0x610>
  68227. 801bb2e: 4b19 ldr r3, [pc, #100] @ (801bb94 <tcp_slowtmr+0x668>)
  68228. 801bb30: f240 52af movw r2, #1455 @ 0x5af
  68229. 801bb34: 491c ldr r1, [pc, #112] @ (801bba8 <tcp_slowtmr+0x67c>)
  68230. 801bb36: 4819 ldr r0, [pc, #100] @ (801bb9c <tcp_slowtmr+0x670>)
  68231. 801bb38: f00d ff50 bl 80299dc <iprintf>
  68232. prev->next = pcb->next;
  68233. 801bb3c: 6afb ldr r3, [r7, #44] @ 0x2c
  68234. 801bb3e: 68da ldr r2, [r3, #12]
  68235. 801bb40: 6abb ldr r3, [r7, #40] @ 0x28
  68236. 801bb42: 60da str r2, [r3, #12]
  68237. 801bb44: e00f b.n 801bb66 <tcp_slowtmr+0x63a>
  68238. } else {
  68239. /* This PCB was the first. */
  68240. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb);
  68241. 801bb46: 4b17 ldr r3, [pc, #92] @ (801bba4 <tcp_slowtmr+0x678>)
  68242. 801bb48: 681b ldr r3, [r3, #0]
  68243. 801bb4a: 6afa ldr r2, [r7, #44] @ 0x2c
  68244. 801bb4c: 429a cmp r2, r3
  68245. 801bb4e: d006 beq.n 801bb5e <tcp_slowtmr+0x632>
  68246. 801bb50: 4b10 ldr r3, [pc, #64] @ (801bb94 <tcp_slowtmr+0x668>)
  68247. 801bb52: f240 52b3 movw r2, #1459 @ 0x5b3
  68248. 801bb56: 4915 ldr r1, [pc, #84] @ (801bbac <tcp_slowtmr+0x680>)
  68249. 801bb58: 4810 ldr r0, [pc, #64] @ (801bb9c <tcp_slowtmr+0x670>)
  68250. 801bb5a: f00d ff3f bl 80299dc <iprintf>
  68251. tcp_tw_pcbs = pcb->next;
  68252. 801bb5e: 6afb ldr r3, [r7, #44] @ 0x2c
  68253. 801bb60: 68db ldr r3, [r3, #12]
  68254. 801bb62: 4a10 ldr r2, [pc, #64] @ (801bba4 <tcp_slowtmr+0x678>)
  68255. 801bb64: 6013 str r3, [r2, #0]
  68256. }
  68257. pcb2 = pcb;
  68258. 801bb66: 6afb ldr r3, [r7, #44] @ 0x2c
  68259. 801bb68: 61fb str r3, [r7, #28]
  68260. pcb = pcb->next;
  68261. 801bb6a: 6afb ldr r3, [r7, #44] @ 0x2c
  68262. 801bb6c: 68db ldr r3, [r3, #12]
  68263. 801bb6e: 62fb str r3, [r7, #44] @ 0x2c
  68264. tcp_free(pcb2);
  68265. 801bb70: 69f8 ldr r0, [r7, #28]
  68266. 801bb72: f7fe ff77 bl 801aa64 <tcp_free>
  68267. 801bb76: e004 b.n 801bb82 <tcp_slowtmr+0x656>
  68268. } else {
  68269. prev = pcb;
  68270. 801bb78: 6afb ldr r3, [r7, #44] @ 0x2c
  68271. 801bb7a: 62bb str r3, [r7, #40] @ 0x28
  68272. pcb = pcb->next;
  68273. 801bb7c: 6afb ldr r3, [r7, #44] @ 0x2c
  68274. 801bb7e: 68db ldr r3, [r3, #12]
  68275. 801bb80: 62fb str r3, [r7, #44] @ 0x2c
  68276. while (pcb != NULL) {
  68277. 801bb82: 6afb ldr r3, [r7, #44] @ 0x2c
  68278. 801bb84: 2b00 cmp r3, #0
  68279. 801bb86: d1a9 bne.n 801badc <tcp_slowtmr+0x5b0>
  68280. }
  68281. }
  68282. }
  68283. 801bb88: bf00 nop
  68284. 801bb8a: bf00 nop
  68285. 801bb8c: 3730 adds r7, #48 @ 0x30
  68286. 801bb8e: 46bd mov sp, r7
  68287. 801bb90: bdb0 pop {r4, r5, r7, pc}
  68288. 801bb92: bf00 nop
  68289. 801bb94: 0802e5f0 .word 0x0802e5f0
  68290. 801bb98: 0802ea80 .word 0x0802ea80
  68291. 801bb9c: 0802e634 .word 0x0802e634
  68292. 801bba0: 2402ae88 .word 0x2402ae88
  68293. 801bba4: 2402ae98 .word 0x2402ae98
  68294. 801bba8: 0802eab0 .word 0x0802eab0
  68295. 801bbac: 0802ead8 .word 0x0802ead8
  68296. 0801bbb0 <tcp_fasttmr>:
  68297. *
  68298. * Automatically called from tcp_tmr().
  68299. */
  68300. void
  68301. tcp_fasttmr(void)
  68302. {
  68303. 801bbb0: b580 push {r7, lr}
  68304. 801bbb2: b082 sub sp, #8
  68305. 801bbb4: af00 add r7, sp, #0
  68306. struct tcp_pcb *pcb;
  68307. ++tcp_timer_ctr;
  68308. 801bbb6: 4b2d ldr r3, [pc, #180] @ (801bc6c <tcp_fasttmr+0xbc>)
  68309. 801bbb8: 781b ldrb r3, [r3, #0]
  68310. 801bbba: 3301 adds r3, #1
  68311. 801bbbc: b2da uxtb r2, r3
  68312. 801bbbe: 4b2b ldr r3, [pc, #172] @ (801bc6c <tcp_fasttmr+0xbc>)
  68313. 801bbc0: 701a strb r2, [r3, #0]
  68314. tcp_fasttmr_start:
  68315. pcb = tcp_active_pcbs;
  68316. 801bbc2: 4b2b ldr r3, [pc, #172] @ (801bc70 <tcp_fasttmr+0xc0>)
  68317. 801bbc4: 681b ldr r3, [r3, #0]
  68318. 801bbc6: 607b str r3, [r7, #4]
  68319. while (pcb != NULL) {
  68320. 801bbc8: e048 b.n 801bc5c <tcp_fasttmr+0xac>
  68321. if (pcb->last_timer != tcp_timer_ctr) {
  68322. 801bbca: 687b ldr r3, [r7, #4]
  68323. 801bbcc: 7f9a ldrb r2, [r3, #30]
  68324. 801bbce: 4b27 ldr r3, [pc, #156] @ (801bc6c <tcp_fasttmr+0xbc>)
  68325. 801bbd0: 781b ldrb r3, [r3, #0]
  68326. 801bbd2: 429a cmp r2, r3
  68327. 801bbd4: d03f beq.n 801bc56 <tcp_fasttmr+0xa6>
  68328. struct tcp_pcb *next;
  68329. pcb->last_timer = tcp_timer_ctr;
  68330. 801bbd6: 4b25 ldr r3, [pc, #148] @ (801bc6c <tcp_fasttmr+0xbc>)
  68331. 801bbd8: 781a ldrb r2, [r3, #0]
  68332. 801bbda: 687b ldr r3, [r7, #4]
  68333. 801bbdc: 779a strb r2, [r3, #30]
  68334. /* send delayed ACKs */
  68335. if (pcb->flags & TF_ACK_DELAY) {
  68336. 801bbde: 687b ldr r3, [r7, #4]
  68337. 801bbe0: 8b5b ldrh r3, [r3, #26]
  68338. 801bbe2: f003 0301 and.w r3, r3, #1
  68339. 801bbe6: 2b00 cmp r3, #0
  68340. 801bbe8: d010 beq.n 801bc0c <tcp_fasttmr+0x5c>
  68341. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n"));
  68342. tcp_ack_now(pcb);
  68343. 801bbea: 687b ldr r3, [r7, #4]
  68344. 801bbec: 8b5b ldrh r3, [r3, #26]
  68345. 801bbee: f043 0302 orr.w r3, r3, #2
  68346. 801bbf2: b29a uxth r2, r3
  68347. 801bbf4: 687b ldr r3, [r7, #4]
  68348. 801bbf6: 835a strh r2, [r3, #26]
  68349. tcp_output(pcb);
  68350. 801bbf8: 6878 ldr r0, [r7, #4]
  68351. 801bbfa: f004 f863 bl 801fcc4 <tcp_output>
  68352. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  68353. 801bbfe: 687b ldr r3, [r7, #4]
  68354. 801bc00: 8b5b ldrh r3, [r3, #26]
  68355. 801bc02: f023 0303 bic.w r3, r3, #3
  68356. 801bc06: b29a uxth r2, r3
  68357. 801bc08: 687b ldr r3, [r7, #4]
  68358. 801bc0a: 835a strh r2, [r3, #26]
  68359. }
  68360. /* send pending FIN */
  68361. if (pcb->flags & TF_CLOSEPEND) {
  68362. 801bc0c: 687b ldr r3, [r7, #4]
  68363. 801bc0e: 8b5b ldrh r3, [r3, #26]
  68364. 801bc10: f003 0308 and.w r3, r3, #8
  68365. 801bc14: 2b00 cmp r3, #0
  68366. 801bc16: d009 beq.n 801bc2c <tcp_fasttmr+0x7c>
  68367. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n"));
  68368. tcp_clear_flags(pcb, TF_CLOSEPEND);
  68369. 801bc18: 687b ldr r3, [r7, #4]
  68370. 801bc1a: 8b5b ldrh r3, [r3, #26]
  68371. 801bc1c: f023 0308 bic.w r3, r3, #8
  68372. 801bc20: b29a uxth r2, r3
  68373. 801bc22: 687b ldr r3, [r7, #4]
  68374. 801bc24: 835a strh r2, [r3, #26]
  68375. tcp_close_shutdown_fin(pcb);
  68376. 801bc26: 6878 ldr r0, [r7, #4]
  68377. 801bc28: f7ff f8b0 bl 801ad8c <tcp_close_shutdown_fin>
  68378. }
  68379. next = pcb->next;
  68380. 801bc2c: 687b ldr r3, [r7, #4]
  68381. 801bc2e: 68db ldr r3, [r3, #12]
  68382. 801bc30: 603b str r3, [r7, #0]
  68383. /* If there is data which was previously "refused" by upper layer */
  68384. if (pcb->refused_data != NULL) {
  68385. 801bc32: 687b ldr r3, [r7, #4]
  68386. 801bc34: 6f9b ldr r3, [r3, #120] @ 0x78
  68387. 801bc36: 2b00 cmp r3, #0
  68388. 801bc38: d00a beq.n 801bc50 <tcp_fasttmr+0xa0>
  68389. tcp_active_pcbs_changed = 0;
  68390. 801bc3a: 4b0e ldr r3, [pc, #56] @ (801bc74 <tcp_fasttmr+0xc4>)
  68391. 801bc3c: 2200 movs r2, #0
  68392. 801bc3e: 701a strb r2, [r3, #0]
  68393. tcp_process_refused_data(pcb);
  68394. 801bc40: 6878 ldr r0, [r7, #4]
  68395. 801bc42: f000 f819 bl 801bc78 <tcp_process_refused_data>
  68396. if (tcp_active_pcbs_changed) {
  68397. 801bc46: 4b0b ldr r3, [pc, #44] @ (801bc74 <tcp_fasttmr+0xc4>)
  68398. 801bc48: 781b ldrb r3, [r3, #0]
  68399. 801bc4a: 2b00 cmp r3, #0
  68400. 801bc4c: d000 beq.n 801bc50 <tcp_fasttmr+0xa0>
  68401. /* application callback has changed the pcb list: restart the loop */
  68402. goto tcp_fasttmr_start;
  68403. 801bc4e: e7b8 b.n 801bbc2 <tcp_fasttmr+0x12>
  68404. }
  68405. }
  68406. pcb = next;
  68407. 801bc50: 683b ldr r3, [r7, #0]
  68408. 801bc52: 607b str r3, [r7, #4]
  68409. 801bc54: e002 b.n 801bc5c <tcp_fasttmr+0xac>
  68410. } else {
  68411. pcb = pcb->next;
  68412. 801bc56: 687b ldr r3, [r7, #4]
  68413. 801bc58: 68db ldr r3, [r3, #12]
  68414. 801bc5a: 607b str r3, [r7, #4]
  68415. while (pcb != NULL) {
  68416. 801bc5c: 687b ldr r3, [r7, #4]
  68417. 801bc5e: 2b00 cmp r3, #0
  68418. 801bc60: d1b3 bne.n 801bbca <tcp_fasttmr+0x1a>
  68419. }
  68420. }
  68421. }
  68422. 801bc62: bf00 nop
  68423. 801bc64: bf00 nop
  68424. 801bc66: 3708 adds r7, #8
  68425. 801bc68: 46bd mov sp, r7
  68426. 801bc6a: bd80 pop {r7, pc}
  68427. 801bc6c: 2402ae9e .word 0x2402ae9e
  68428. 801bc70: 2402ae94 .word 0x2402ae94
  68429. 801bc74: 2402ae9c .word 0x2402ae9c
  68430. 0801bc78 <tcp_process_refused_data>:
  68431. }
  68432. /** Pass pcb->refused_data to the recv callback */
  68433. err_t
  68434. tcp_process_refused_data(struct tcp_pcb *pcb)
  68435. {
  68436. 801bc78: b590 push {r4, r7, lr}
  68437. 801bc7a: b085 sub sp, #20
  68438. 801bc7c: af00 add r7, sp, #0
  68439. 801bc7e: 6078 str r0, [r7, #4]
  68440. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  68441. struct pbuf *rest;
  68442. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  68443. LWIP_ERROR("tcp_process_refused_data: invalid pcb", pcb != NULL, return ERR_ARG);
  68444. 801bc80: 687b ldr r3, [r7, #4]
  68445. 801bc82: 2b00 cmp r3, #0
  68446. 801bc84: d109 bne.n 801bc9a <tcp_process_refused_data+0x22>
  68447. 801bc86: 4b38 ldr r3, [pc, #224] @ (801bd68 <tcp_process_refused_data+0xf0>)
  68448. 801bc88: f240 6209 movw r2, #1545 @ 0x609
  68449. 801bc8c: 4937 ldr r1, [pc, #220] @ (801bd6c <tcp_process_refused_data+0xf4>)
  68450. 801bc8e: 4838 ldr r0, [pc, #224] @ (801bd70 <tcp_process_refused_data+0xf8>)
  68451. 801bc90: f00d fea4 bl 80299dc <iprintf>
  68452. 801bc94: f06f 030f mvn.w r3, #15
  68453. 801bc98: e061 b.n 801bd5e <tcp_process_refused_data+0xe6>
  68454. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  68455. while (pcb->refused_data != NULL)
  68456. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  68457. {
  68458. err_t err;
  68459. u8_t refused_flags = pcb->refused_data->flags;
  68460. 801bc9a: 687b ldr r3, [r7, #4]
  68461. 801bc9c: 6f9b ldr r3, [r3, #120] @ 0x78
  68462. 801bc9e: 7b5b ldrb r3, [r3, #13]
  68463. 801bca0: 73bb strb r3, [r7, #14]
  68464. /* set pcb->refused_data to NULL in case the callback frees it and then
  68465. closes the pcb */
  68466. struct pbuf *refused_data = pcb->refused_data;
  68467. 801bca2: 687b ldr r3, [r7, #4]
  68468. 801bca4: 6f9b ldr r3, [r3, #120] @ 0x78
  68469. 801bca6: 60bb str r3, [r7, #8]
  68470. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  68471. pbuf_split_64k(refused_data, &rest);
  68472. pcb->refused_data = rest;
  68473. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  68474. pcb->refused_data = NULL;
  68475. 801bca8: 687b ldr r3, [r7, #4]
  68476. 801bcaa: 2200 movs r2, #0
  68477. 801bcac: 679a str r2, [r3, #120] @ 0x78
  68478. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  68479. /* Notify again application with data previously received. */
  68480. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: notify kept packet\n"));
  68481. TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err);
  68482. 801bcae: 687b ldr r3, [r7, #4]
  68483. 801bcb0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  68484. 801bcb4: 2b00 cmp r3, #0
  68485. 801bcb6: d00b beq.n 801bcd0 <tcp_process_refused_data+0x58>
  68486. 801bcb8: 687b ldr r3, [r7, #4]
  68487. 801bcba: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  68488. 801bcbe: 687b ldr r3, [r7, #4]
  68489. 801bcc0: 6918 ldr r0, [r3, #16]
  68490. 801bcc2: 2300 movs r3, #0
  68491. 801bcc4: 68ba ldr r2, [r7, #8]
  68492. 801bcc6: 6879 ldr r1, [r7, #4]
  68493. 801bcc8: 47a0 blx r4
  68494. 801bcca: 4603 mov r3, r0
  68495. 801bccc: 73fb strb r3, [r7, #15]
  68496. 801bcce: e007 b.n 801bce0 <tcp_process_refused_data+0x68>
  68497. 801bcd0: 2300 movs r3, #0
  68498. 801bcd2: 68ba ldr r2, [r7, #8]
  68499. 801bcd4: 6879 ldr r1, [r7, #4]
  68500. 801bcd6: 2000 movs r0, #0
  68501. 801bcd8: f000 f8a6 bl 801be28 <tcp_recv_null>
  68502. 801bcdc: 4603 mov r3, r0
  68503. 801bcde: 73fb strb r3, [r7, #15]
  68504. if (err == ERR_OK) {
  68505. 801bce0: f997 300f ldrsb.w r3, [r7, #15]
  68506. 801bce4: 2b00 cmp r3, #0
  68507. 801bce6: d12b bne.n 801bd40 <tcp_process_refused_data+0xc8>
  68508. /* did refused_data include a FIN? */
  68509. if ((refused_flags & PBUF_FLAG_TCP_FIN)
  68510. 801bce8: 7bbb ldrb r3, [r7, #14]
  68511. 801bcea: f003 0320 and.w r3, r3, #32
  68512. 801bcee: 2b00 cmp r3, #0
  68513. 801bcf0: d034 beq.n 801bd5c <tcp_process_refused_data+0xe4>
  68514. && (rest == NULL)
  68515. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  68516. ) {
  68517. /* correct rcv_wnd as the application won't call tcp_recved()
  68518. for the FIN's seqno */
  68519. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  68520. 801bcf2: 687b ldr r3, [r7, #4]
  68521. 801bcf4: 8d1b ldrh r3, [r3, #40] @ 0x28
  68522. 801bcf6: f241 62d0 movw r2, #5840 @ 0x16d0
  68523. 801bcfa: 4293 cmp r3, r2
  68524. 801bcfc: d005 beq.n 801bd0a <tcp_process_refused_data+0x92>
  68525. pcb->rcv_wnd++;
  68526. 801bcfe: 687b ldr r3, [r7, #4]
  68527. 801bd00: 8d1b ldrh r3, [r3, #40] @ 0x28
  68528. 801bd02: 3301 adds r3, #1
  68529. 801bd04: b29a uxth r2, r3
  68530. 801bd06: 687b ldr r3, [r7, #4]
  68531. 801bd08: 851a strh r2, [r3, #40] @ 0x28
  68532. }
  68533. TCP_EVENT_CLOSED(pcb, err);
  68534. 801bd0a: 687b ldr r3, [r7, #4]
  68535. 801bd0c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  68536. 801bd10: 2b00 cmp r3, #0
  68537. 801bd12: d00b beq.n 801bd2c <tcp_process_refused_data+0xb4>
  68538. 801bd14: 687b ldr r3, [r7, #4]
  68539. 801bd16: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  68540. 801bd1a: 687b ldr r3, [r7, #4]
  68541. 801bd1c: 6918 ldr r0, [r3, #16]
  68542. 801bd1e: 2300 movs r3, #0
  68543. 801bd20: 2200 movs r2, #0
  68544. 801bd22: 6879 ldr r1, [r7, #4]
  68545. 801bd24: 47a0 blx r4
  68546. 801bd26: 4603 mov r3, r0
  68547. 801bd28: 73fb strb r3, [r7, #15]
  68548. 801bd2a: e001 b.n 801bd30 <tcp_process_refused_data+0xb8>
  68549. 801bd2c: 2300 movs r3, #0
  68550. 801bd2e: 73fb strb r3, [r7, #15]
  68551. if (err == ERR_ABRT) {
  68552. 801bd30: f997 300f ldrsb.w r3, [r7, #15]
  68553. 801bd34: f113 0f0d cmn.w r3, #13
  68554. 801bd38: d110 bne.n 801bd5c <tcp_process_refused_data+0xe4>
  68555. return ERR_ABRT;
  68556. 801bd3a: f06f 030c mvn.w r3, #12
  68557. 801bd3e: e00e b.n 801bd5e <tcp_process_refused_data+0xe6>
  68558. }
  68559. }
  68560. } else if (err == ERR_ABRT) {
  68561. 801bd40: f997 300f ldrsb.w r3, [r7, #15]
  68562. 801bd44: f113 0f0d cmn.w r3, #13
  68563. 801bd48: d102 bne.n 801bd50 <tcp_process_refused_data+0xd8>
  68564. /* if err == ERR_ABRT, 'pcb' is already deallocated */
  68565. /* Drop incoming packets because pcb is "full" (only if the incoming
  68566. segment contains data). */
  68567. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: drop incoming packets, because pcb is \"full\"\n"));
  68568. return ERR_ABRT;
  68569. 801bd4a: f06f 030c mvn.w r3, #12
  68570. 801bd4e: e006 b.n 801bd5e <tcp_process_refused_data+0xe6>
  68571. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  68572. if (rest != NULL) {
  68573. pbuf_cat(refused_data, rest);
  68574. }
  68575. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  68576. pcb->refused_data = refused_data;
  68577. 801bd50: 687b ldr r3, [r7, #4]
  68578. 801bd52: 68ba ldr r2, [r7, #8]
  68579. 801bd54: 679a str r2, [r3, #120] @ 0x78
  68580. return ERR_INPROGRESS;
  68581. 801bd56: f06f 0304 mvn.w r3, #4
  68582. 801bd5a: e000 b.n 801bd5e <tcp_process_refused_data+0xe6>
  68583. }
  68584. }
  68585. return ERR_OK;
  68586. 801bd5c: 2300 movs r3, #0
  68587. }
  68588. 801bd5e: 4618 mov r0, r3
  68589. 801bd60: 3714 adds r7, #20
  68590. 801bd62: 46bd mov sp, r7
  68591. 801bd64: bd90 pop {r4, r7, pc}
  68592. 801bd66: bf00 nop
  68593. 801bd68: 0802e5f0 .word 0x0802e5f0
  68594. 801bd6c: 0802eb00 .word 0x0802eb00
  68595. 801bd70: 0802e634 .word 0x0802e634
  68596. 0801bd74 <tcp_segs_free>:
  68597. *
  68598. * @param seg tcp_seg list of TCP segments to free
  68599. */
  68600. void
  68601. tcp_segs_free(struct tcp_seg *seg)
  68602. {
  68603. 801bd74: b580 push {r7, lr}
  68604. 801bd76: b084 sub sp, #16
  68605. 801bd78: af00 add r7, sp, #0
  68606. 801bd7a: 6078 str r0, [r7, #4]
  68607. while (seg != NULL) {
  68608. 801bd7c: e007 b.n 801bd8e <tcp_segs_free+0x1a>
  68609. struct tcp_seg *next = seg->next;
  68610. 801bd7e: 687b ldr r3, [r7, #4]
  68611. 801bd80: 681b ldr r3, [r3, #0]
  68612. 801bd82: 60fb str r3, [r7, #12]
  68613. tcp_seg_free(seg);
  68614. 801bd84: 6878 ldr r0, [r7, #4]
  68615. 801bd86: f000 f80a bl 801bd9e <tcp_seg_free>
  68616. seg = next;
  68617. 801bd8a: 68fb ldr r3, [r7, #12]
  68618. 801bd8c: 607b str r3, [r7, #4]
  68619. while (seg != NULL) {
  68620. 801bd8e: 687b ldr r3, [r7, #4]
  68621. 801bd90: 2b00 cmp r3, #0
  68622. 801bd92: d1f4 bne.n 801bd7e <tcp_segs_free+0xa>
  68623. }
  68624. }
  68625. 801bd94: bf00 nop
  68626. 801bd96: bf00 nop
  68627. 801bd98: 3710 adds r7, #16
  68628. 801bd9a: 46bd mov sp, r7
  68629. 801bd9c: bd80 pop {r7, pc}
  68630. 0801bd9e <tcp_seg_free>:
  68631. *
  68632. * @param seg single tcp_seg to free
  68633. */
  68634. void
  68635. tcp_seg_free(struct tcp_seg *seg)
  68636. {
  68637. 801bd9e: b580 push {r7, lr}
  68638. 801bda0: b082 sub sp, #8
  68639. 801bda2: af00 add r7, sp, #0
  68640. 801bda4: 6078 str r0, [r7, #4]
  68641. if (seg != NULL) {
  68642. 801bda6: 687b ldr r3, [r7, #4]
  68643. 801bda8: 2b00 cmp r3, #0
  68644. 801bdaa: d00c beq.n 801bdc6 <tcp_seg_free+0x28>
  68645. if (seg->p != NULL) {
  68646. 801bdac: 687b ldr r3, [r7, #4]
  68647. 801bdae: 685b ldr r3, [r3, #4]
  68648. 801bdb0: 2b00 cmp r3, #0
  68649. 801bdb2: d004 beq.n 801bdbe <tcp_seg_free+0x20>
  68650. pbuf_free(seg->p);
  68651. 801bdb4: 687b ldr r3, [r7, #4]
  68652. 801bdb6: 685b ldr r3, [r3, #4]
  68653. 801bdb8: 4618 mov r0, r3
  68654. 801bdba: f7fe fb97 bl 801a4ec <pbuf_free>
  68655. #if TCP_DEBUG
  68656. seg->p = NULL;
  68657. #endif /* TCP_DEBUG */
  68658. }
  68659. memp_free(MEMP_TCP_SEG, seg);
  68660. 801bdbe: 6879 ldr r1, [r7, #4]
  68661. 801bdc0: 2003 movs r0, #3
  68662. 801bdc2: f7fd fca5 bl 8019710 <memp_free>
  68663. }
  68664. }
  68665. 801bdc6: bf00 nop
  68666. 801bdc8: 3708 adds r7, #8
  68667. 801bdca: 46bd mov sp, r7
  68668. 801bdcc: bd80 pop {r7, pc}
  68669. ...
  68670. 0801bdd0 <tcp_seg_copy>:
  68671. * @param seg the old tcp_seg
  68672. * @return a copy of seg
  68673. */
  68674. struct tcp_seg *
  68675. tcp_seg_copy(struct tcp_seg *seg)
  68676. {
  68677. 801bdd0: b580 push {r7, lr}
  68678. 801bdd2: b084 sub sp, #16
  68679. 801bdd4: af00 add r7, sp, #0
  68680. 801bdd6: 6078 str r0, [r7, #4]
  68681. struct tcp_seg *cseg;
  68682. LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL);
  68683. 801bdd8: 687b ldr r3, [r7, #4]
  68684. 801bdda: 2b00 cmp r3, #0
  68685. 801bddc: d106 bne.n 801bdec <tcp_seg_copy+0x1c>
  68686. 801bdde: 4b0f ldr r3, [pc, #60] @ (801be1c <tcp_seg_copy+0x4c>)
  68687. 801bde0: f240 6282 movw r2, #1666 @ 0x682
  68688. 801bde4: 490e ldr r1, [pc, #56] @ (801be20 <tcp_seg_copy+0x50>)
  68689. 801bde6: 480f ldr r0, [pc, #60] @ (801be24 <tcp_seg_copy+0x54>)
  68690. 801bde8: f00d fdf8 bl 80299dc <iprintf>
  68691. cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG);
  68692. 801bdec: 2003 movs r0, #3
  68693. 801bdee: f7fd fc19 bl 8019624 <memp_malloc>
  68694. 801bdf2: 60f8 str r0, [r7, #12]
  68695. if (cseg == NULL) {
  68696. 801bdf4: 68fb ldr r3, [r7, #12]
  68697. 801bdf6: 2b00 cmp r3, #0
  68698. 801bdf8: d101 bne.n 801bdfe <tcp_seg_copy+0x2e>
  68699. return NULL;
  68700. 801bdfa: 2300 movs r3, #0
  68701. 801bdfc: e00a b.n 801be14 <tcp_seg_copy+0x44>
  68702. }
  68703. SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg));
  68704. 801bdfe: 2214 movs r2, #20
  68705. 801be00: 6879 ldr r1, [r7, #4]
  68706. 801be02: 68f8 ldr r0, [r7, #12]
  68707. 801be04: f00e f873 bl 8029eee <memcpy>
  68708. pbuf_ref(cseg->p);
  68709. 801be08: 68fb ldr r3, [r7, #12]
  68710. 801be0a: 685b ldr r3, [r3, #4]
  68711. 801be0c: 4618 mov r0, r3
  68712. 801be0e: f7fe fc13 bl 801a638 <pbuf_ref>
  68713. return cseg;
  68714. 801be12: 68fb ldr r3, [r7, #12]
  68715. }
  68716. 801be14: 4618 mov r0, r3
  68717. 801be16: 3710 adds r7, #16
  68718. 801be18: 46bd mov sp, r7
  68719. 801be1a: bd80 pop {r7, pc}
  68720. 801be1c: 0802e5f0 .word 0x0802e5f0
  68721. 801be20: 0802eb44 .word 0x0802eb44
  68722. 801be24: 0802e634 .word 0x0802e634
  68723. 0801be28 <tcp_recv_null>:
  68724. * Default receive callback that is called if the user didn't register
  68725. * a recv callback for the pcb.
  68726. */
  68727. err_t
  68728. tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  68729. {
  68730. 801be28: b580 push {r7, lr}
  68731. 801be2a: b084 sub sp, #16
  68732. 801be2c: af00 add r7, sp, #0
  68733. 801be2e: 60f8 str r0, [r7, #12]
  68734. 801be30: 60b9 str r1, [r7, #8]
  68735. 801be32: 607a str r2, [r7, #4]
  68736. 801be34: 70fb strb r3, [r7, #3]
  68737. LWIP_UNUSED_ARG(arg);
  68738. LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG);
  68739. 801be36: 68bb ldr r3, [r7, #8]
  68740. 801be38: 2b00 cmp r3, #0
  68741. 801be3a: d109 bne.n 801be50 <tcp_recv_null+0x28>
  68742. 801be3c: 4b12 ldr r3, [pc, #72] @ (801be88 <tcp_recv_null+0x60>)
  68743. 801be3e: f44f 62d3 mov.w r2, #1688 @ 0x698
  68744. 801be42: 4912 ldr r1, [pc, #72] @ (801be8c <tcp_recv_null+0x64>)
  68745. 801be44: 4812 ldr r0, [pc, #72] @ (801be90 <tcp_recv_null+0x68>)
  68746. 801be46: f00d fdc9 bl 80299dc <iprintf>
  68747. 801be4a: f06f 030f mvn.w r3, #15
  68748. 801be4e: e016 b.n 801be7e <tcp_recv_null+0x56>
  68749. if (p != NULL) {
  68750. 801be50: 687b ldr r3, [r7, #4]
  68751. 801be52: 2b00 cmp r3, #0
  68752. 801be54: d009 beq.n 801be6a <tcp_recv_null+0x42>
  68753. tcp_recved(pcb, p->tot_len);
  68754. 801be56: 687b ldr r3, [r7, #4]
  68755. 801be58: 891b ldrh r3, [r3, #8]
  68756. 801be5a: 4619 mov r1, r3
  68757. 801be5c: 68b8 ldr r0, [r7, #8]
  68758. 801be5e: f7ff f9b1 bl 801b1c4 <tcp_recved>
  68759. pbuf_free(p);
  68760. 801be62: 6878 ldr r0, [r7, #4]
  68761. 801be64: f7fe fb42 bl 801a4ec <pbuf_free>
  68762. 801be68: e008 b.n 801be7c <tcp_recv_null+0x54>
  68763. } else if (err == ERR_OK) {
  68764. 801be6a: f997 3003 ldrsb.w r3, [r7, #3]
  68765. 801be6e: 2b00 cmp r3, #0
  68766. 801be70: d104 bne.n 801be7c <tcp_recv_null+0x54>
  68767. return tcp_close(pcb);
  68768. 801be72: 68b8 ldr r0, [r7, #8]
  68769. 801be74: f7fe fff4 bl 801ae60 <tcp_close>
  68770. 801be78: 4603 mov r3, r0
  68771. 801be7a: e000 b.n 801be7e <tcp_recv_null+0x56>
  68772. }
  68773. return ERR_OK;
  68774. 801be7c: 2300 movs r3, #0
  68775. }
  68776. 801be7e: 4618 mov r0, r3
  68777. 801be80: 3710 adds r7, #16
  68778. 801be82: 46bd mov sp, r7
  68779. 801be84: bd80 pop {r7, pc}
  68780. 801be86: bf00 nop
  68781. 801be88: 0802e5f0 .word 0x0802e5f0
  68782. 801be8c: 0802eb60 .word 0x0802eb60
  68783. 801be90: 0802e634 .word 0x0802e634
  68784. 0801be94 <tcp_kill_prio>:
  68785. *
  68786. * @param prio minimum priority
  68787. */
  68788. static void
  68789. tcp_kill_prio(u8_t prio)
  68790. {
  68791. 801be94: b580 push {r7, lr}
  68792. 801be96: b086 sub sp, #24
  68793. 801be98: af00 add r7, sp, #0
  68794. 801be9a: 4603 mov r3, r0
  68795. 801be9c: 71fb strb r3, [r7, #7]
  68796. struct tcp_pcb *pcb, *inactive;
  68797. u32_t inactivity;
  68798. u8_t mprio;
  68799. mprio = LWIP_MIN(TCP_PRIO_MAX, prio);
  68800. 801be9e: f997 3007 ldrsb.w r3, [r7, #7]
  68801. 801bea2: 2b00 cmp r3, #0
  68802. 801bea4: db01 blt.n 801beaa <tcp_kill_prio+0x16>
  68803. 801bea6: 79fb ldrb r3, [r7, #7]
  68804. 801bea8: e000 b.n 801beac <tcp_kill_prio+0x18>
  68805. 801beaa: 237f movs r3, #127 @ 0x7f
  68806. 801beac: 72fb strb r3, [r7, #11]
  68807. /* We want to kill connections with a lower prio, so bail out if
  68808. * supplied prio is 0 - there can never be a lower prio
  68809. */
  68810. if (mprio == 0) {
  68811. 801beae: 7afb ldrb r3, [r7, #11]
  68812. 801beb0: 2b00 cmp r3, #0
  68813. 801beb2: d034 beq.n 801bf1e <tcp_kill_prio+0x8a>
  68814. /* We only want kill connections with a lower prio, so decrement prio by one
  68815. * and start searching for oldest connection with same or lower priority than mprio.
  68816. * We want to find the connections with the lowest possible prio, and among
  68817. * these the one with the longest inactivity time.
  68818. */
  68819. mprio--;
  68820. 801beb4: 7afb ldrb r3, [r7, #11]
  68821. 801beb6: 3b01 subs r3, #1
  68822. 801beb8: 72fb strb r3, [r7, #11]
  68823. inactivity = 0;
  68824. 801beba: 2300 movs r3, #0
  68825. 801bebc: 60fb str r3, [r7, #12]
  68826. inactive = NULL;
  68827. 801bebe: 2300 movs r3, #0
  68828. 801bec0: 613b str r3, [r7, #16]
  68829. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  68830. 801bec2: 4b19 ldr r3, [pc, #100] @ (801bf28 <tcp_kill_prio+0x94>)
  68831. 801bec4: 681b ldr r3, [r3, #0]
  68832. 801bec6: 617b str r3, [r7, #20]
  68833. 801bec8: e01f b.n 801bf0a <tcp_kill_prio+0x76>
  68834. /* lower prio is always a kill candidate */
  68835. if ((pcb->prio < mprio) ||
  68836. 801beca: 697b ldr r3, [r7, #20]
  68837. 801becc: 7d5b ldrb r3, [r3, #21]
  68838. 801bece: 7afa ldrb r2, [r7, #11]
  68839. 801bed0: 429a cmp r2, r3
  68840. 801bed2: d80c bhi.n 801beee <tcp_kill_prio+0x5a>
  68841. /* longer inactivity is also a kill candidate */
  68842. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  68843. 801bed4: 697b ldr r3, [r7, #20]
  68844. 801bed6: 7d5b ldrb r3, [r3, #21]
  68845. if ((pcb->prio < mprio) ||
  68846. 801bed8: 7afa ldrb r2, [r7, #11]
  68847. 801beda: 429a cmp r2, r3
  68848. 801bedc: d112 bne.n 801bf04 <tcp_kill_prio+0x70>
  68849. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  68850. 801bede: 4b13 ldr r3, [pc, #76] @ (801bf2c <tcp_kill_prio+0x98>)
  68851. 801bee0: 681a ldr r2, [r3, #0]
  68852. 801bee2: 697b ldr r3, [r7, #20]
  68853. 801bee4: 6a1b ldr r3, [r3, #32]
  68854. 801bee6: 1ad3 subs r3, r2, r3
  68855. 801bee8: 68fa ldr r2, [r7, #12]
  68856. 801beea: 429a cmp r2, r3
  68857. 801beec: d80a bhi.n 801bf04 <tcp_kill_prio+0x70>
  68858. inactivity = tcp_ticks - pcb->tmr;
  68859. 801beee: 4b0f ldr r3, [pc, #60] @ (801bf2c <tcp_kill_prio+0x98>)
  68860. 801bef0: 681a ldr r2, [r3, #0]
  68861. 801bef2: 697b ldr r3, [r7, #20]
  68862. 801bef4: 6a1b ldr r3, [r3, #32]
  68863. 801bef6: 1ad3 subs r3, r2, r3
  68864. 801bef8: 60fb str r3, [r7, #12]
  68865. inactive = pcb;
  68866. 801befa: 697b ldr r3, [r7, #20]
  68867. 801befc: 613b str r3, [r7, #16]
  68868. mprio = pcb->prio;
  68869. 801befe: 697b ldr r3, [r7, #20]
  68870. 801bf00: 7d5b ldrb r3, [r3, #21]
  68871. 801bf02: 72fb strb r3, [r7, #11]
  68872. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  68873. 801bf04: 697b ldr r3, [r7, #20]
  68874. 801bf06: 68db ldr r3, [r3, #12]
  68875. 801bf08: 617b str r3, [r7, #20]
  68876. 801bf0a: 697b ldr r3, [r7, #20]
  68877. 801bf0c: 2b00 cmp r3, #0
  68878. 801bf0e: d1dc bne.n 801beca <tcp_kill_prio+0x36>
  68879. }
  68880. }
  68881. if (inactive != NULL) {
  68882. 801bf10: 693b ldr r3, [r7, #16]
  68883. 801bf12: 2b00 cmp r3, #0
  68884. 801bf14: d004 beq.n 801bf20 <tcp_kill_prio+0x8c>
  68885. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n",
  68886. (void *)inactive, inactivity));
  68887. tcp_abort(inactive);
  68888. 801bf16: 6938 ldr r0, [r7, #16]
  68889. 801bf18: f7ff f8ee bl 801b0f8 <tcp_abort>
  68890. 801bf1c: e000 b.n 801bf20 <tcp_kill_prio+0x8c>
  68891. return;
  68892. 801bf1e: bf00 nop
  68893. }
  68894. }
  68895. 801bf20: 3718 adds r7, #24
  68896. 801bf22: 46bd mov sp, r7
  68897. 801bf24: bd80 pop {r7, pc}
  68898. 801bf26: bf00 nop
  68899. 801bf28: 2402ae94 .word 0x2402ae94
  68900. 801bf2c: 2402ae88 .word 0x2402ae88
  68901. 0801bf30 <tcp_kill_state>:
  68902. * Kills the oldest connection that is in specific state.
  68903. * Called from tcp_alloc() for LAST_ACK and CLOSING if no more connections are available.
  68904. */
  68905. static void
  68906. tcp_kill_state(enum tcp_state state)
  68907. {
  68908. 801bf30: b580 push {r7, lr}
  68909. 801bf32: b086 sub sp, #24
  68910. 801bf34: af00 add r7, sp, #0
  68911. 801bf36: 4603 mov r3, r0
  68912. 801bf38: 71fb strb r3, [r7, #7]
  68913. struct tcp_pcb *pcb, *inactive;
  68914. u32_t inactivity;
  68915. LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK));
  68916. 801bf3a: 79fb ldrb r3, [r7, #7]
  68917. 801bf3c: 2b08 cmp r3, #8
  68918. 801bf3e: d009 beq.n 801bf54 <tcp_kill_state+0x24>
  68919. 801bf40: 79fb ldrb r3, [r7, #7]
  68920. 801bf42: 2b09 cmp r3, #9
  68921. 801bf44: d006 beq.n 801bf54 <tcp_kill_state+0x24>
  68922. 801bf46: 4b1a ldr r3, [pc, #104] @ (801bfb0 <tcp_kill_state+0x80>)
  68923. 801bf48: f240 62dd movw r2, #1757 @ 0x6dd
  68924. 801bf4c: 4919 ldr r1, [pc, #100] @ (801bfb4 <tcp_kill_state+0x84>)
  68925. 801bf4e: 481a ldr r0, [pc, #104] @ (801bfb8 <tcp_kill_state+0x88>)
  68926. 801bf50: f00d fd44 bl 80299dc <iprintf>
  68927. inactivity = 0;
  68928. 801bf54: 2300 movs r3, #0
  68929. 801bf56: 60fb str r3, [r7, #12]
  68930. inactive = NULL;
  68931. 801bf58: 2300 movs r3, #0
  68932. 801bf5a: 613b str r3, [r7, #16]
  68933. /* Go through the list of active pcbs and get the oldest pcb that is in state
  68934. CLOSING/LAST_ACK. */
  68935. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  68936. 801bf5c: 4b17 ldr r3, [pc, #92] @ (801bfbc <tcp_kill_state+0x8c>)
  68937. 801bf5e: 681b ldr r3, [r3, #0]
  68938. 801bf60: 617b str r3, [r7, #20]
  68939. 801bf62: e017 b.n 801bf94 <tcp_kill_state+0x64>
  68940. if (pcb->state == state) {
  68941. 801bf64: 697b ldr r3, [r7, #20]
  68942. 801bf66: 7d1b ldrb r3, [r3, #20]
  68943. 801bf68: 79fa ldrb r2, [r7, #7]
  68944. 801bf6a: 429a cmp r2, r3
  68945. 801bf6c: d10f bne.n 801bf8e <tcp_kill_state+0x5e>
  68946. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  68947. 801bf6e: 4b14 ldr r3, [pc, #80] @ (801bfc0 <tcp_kill_state+0x90>)
  68948. 801bf70: 681a ldr r2, [r3, #0]
  68949. 801bf72: 697b ldr r3, [r7, #20]
  68950. 801bf74: 6a1b ldr r3, [r3, #32]
  68951. 801bf76: 1ad3 subs r3, r2, r3
  68952. 801bf78: 68fa ldr r2, [r7, #12]
  68953. 801bf7a: 429a cmp r2, r3
  68954. 801bf7c: d807 bhi.n 801bf8e <tcp_kill_state+0x5e>
  68955. inactivity = tcp_ticks - pcb->tmr;
  68956. 801bf7e: 4b10 ldr r3, [pc, #64] @ (801bfc0 <tcp_kill_state+0x90>)
  68957. 801bf80: 681a ldr r2, [r3, #0]
  68958. 801bf82: 697b ldr r3, [r7, #20]
  68959. 801bf84: 6a1b ldr r3, [r3, #32]
  68960. 801bf86: 1ad3 subs r3, r2, r3
  68961. 801bf88: 60fb str r3, [r7, #12]
  68962. inactive = pcb;
  68963. 801bf8a: 697b ldr r3, [r7, #20]
  68964. 801bf8c: 613b str r3, [r7, #16]
  68965. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  68966. 801bf8e: 697b ldr r3, [r7, #20]
  68967. 801bf90: 68db ldr r3, [r3, #12]
  68968. 801bf92: 617b str r3, [r7, #20]
  68969. 801bf94: 697b ldr r3, [r7, #20]
  68970. 801bf96: 2b00 cmp r3, #0
  68971. 801bf98: d1e4 bne.n 801bf64 <tcp_kill_state+0x34>
  68972. }
  68973. }
  68974. }
  68975. if (inactive != NULL) {
  68976. 801bf9a: 693b ldr r3, [r7, #16]
  68977. 801bf9c: 2b00 cmp r3, #0
  68978. 801bf9e: d003 beq.n 801bfa8 <tcp_kill_state+0x78>
  68979. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_closing: killing oldest %s PCB %p (%"S32_F")\n",
  68980. tcp_state_str[state], (void *)inactive, inactivity));
  68981. /* Don't send a RST, since no data is lost. */
  68982. tcp_abandon(inactive, 0);
  68983. 801bfa0: 2100 movs r1, #0
  68984. 801bfa2: 6938 ldr r0, [r7, #16]
  68985. 801bfa4: f7fe ffe8 bl 801af78 <tcp_abandon>
  68986. }
  68987. }
  68988. 801bfa8: bf00 nop
  68989. 801bfaa: 3718 adds r7, #24
  68990. 801bfac: 46bd mov sp, r7
  68991. 801bfae: bd80 pop {r7, pc}
  68992. 801bfb0: 0802e5f0 .word 0x0802e5f0
  68993. 801bfb4: 0802eb7c .word 0x0802eb7c
  68994. 801bfb8: 0802e634 .word 0x0802e634
  68995. 801bfbc: 2402ae94 .word 0x2402ae94
  68996. 801bfc0: 2402ae88 .word 0x2402ae88
  68997. 0801bfc4 <tcp_kill_timewait>:
  68998. * Kills the oldest connection that is in TIME_WAIT state.
  68999. * Called from tcp_alloc() if no more connections are available.
  69000. */
  69001. static void
  69002. tcp_kill_timewait(void)
  69003. {
  69004. 801bfc4: b580 push {r7, lr}
  69005. 801bfc6: b084 sub sp, #16
  69006. 801bfc8: af00 add r7, sp, #0
  69007. struct tcp_pcb *pcb, *inactive;
  69008. u32_t inactivity;
  69009. inactivity = 0;
  69010. 801bfca: 2300 movs r3, #0
  69011. 801bfcc: 607b str r3, [r7, #4]
  69012. inactive = NULL;
  69013. 801bfce: 2300 movs r3, #0
  69014. 801bfd0: 60bb str r3, [r7, #8]
  69015. /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */
  69016. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  69017. 801bfd2: 4b12 ldr r3, [pc, #72] @ (801c01c <tcp_kill_timewait+0x58>)
  69018. 801bfd4: 681b ldr r3, [r3, #0]
  69019. 801bfd6: 60fb str r3, [r7, #12]
  69020. 801bfd8: e012 b.n 801c000 <tcp_kill_timewait+0x3c>
  69021. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  69022. 801bfda: 4b11 ldr r3, [pc, #68] @ (801c020 <tcp_kill_timewait+0x5c>)
  69023. 801bfdc: 681a ldr r2, [r3, #0]
  69024. 801bfde: 68fb ldr r3, [r7, #12]
  69025. 801bfe0: 6a1b ldr r3, [r3, #32]
  69026. 801bfe2: 1ad3 subs r3, r2, r3
  69027. 801bfe4: 687a ldr r2, [r7, #4]
  69028. 801bfe6: 429a cmp r2, r3
  69029. 801bfe8: d807 bhi.n 801bffa <tcp_kill_timewait+0x36>
  69030. inactivity = tcp_ticks - pcb->tmr;
  69031. 801bfea: 4b0d ldr r3, [pc, #52] @ (801c020 <tcp_kill_timewait+0x5c>)
  69032. 801bfec: 681a ldr r2, [r3, #0]
  69033. 801bfee: 68fb ldr r3, [r7, #12]
  69034. 801bff0: 6a1b ldr r3, [r3, #32]
  69035. 801bff2: 1ad3 subs r3, r2, r3
  69036. 801bff4: 607b str r3, [r7, #4]
  69037. inactive = pcb;
  69038. 801bff6: 68fb ldr r3, [r7, #12]
  69039. 801bff8: 60bb str r3, [r7, #8]
  69040. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  69041. 801bffa: 68fb ldr r3, [r7, #12]
  69042. 801bffc: 68db ldr r3, [r3, #12]
  69043. 801bffe: 60fb str r3, [r7, #12]
  69044. 801c000: 68fb ldr r3, [r7, #12]
  69045. 801c002: 2b00 cmp r3, #0
  69046. 801c004: d1e9 bne.n 801bfda <tcp_kill_timewait+0x16>
  69047. }
  69048. }
  69049. if (inactive != NULL) {
  69050. 801c006: 68bb ldr r3, [r7, #8]
  69051. 801c008: 2b00 cmp r3, #0
  69052. 801c00a: d002 beq.n 801c012 <tcp_kill_timewait+0x4e>
  69053. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n",
  69054. (void *)inactive, inactivity));
  69055. tcp_abort(inactive);
  69056. 801c00c: 68b8 ldr r0, [r7, #8]
  69057. 801c00e: f7ff f873 bl 801b0f8 <tcp_abort>
  69058. }
  69059. }
  69060. 801c012: bf00 nop
  69061. 801c014: 3710 adds r7, #16
  69062. 801c016: 46bd mov sp, r7
  69063. 801c018: bd80 pop {r7, pc}
  69064. 801c01a: bf00 nop
  69065. 801c01c: 2402ae98 .word 0x2402ae98
  69066. 801c020: 2402ae88 .word 0x2402ae88
  69067. 0801c024 <tcp_handle_closepend>:
  69068. * now send the FIN (which failed before), the pcb might be in a state that is
  69069. * OK for us to now free it.
  69070. */
  69071. static void
  69072. tcp_handle_closepend(void)
  69073. {
  69074. 801c024: b580 push {r7, lr}
  69075. 801c026: b082 sub sp, #8
  69076. 801c028: af00 add r7, sp, #0
  69077. struct tcp_pcb *pcb = tcp_active_pcbs;
  69078. 801c02a: 4b10 ldr r3, [pc, #64] @ (801c06c <tcp_handle_closepend+0x48>)
  69079. 801c02c: 681b ldr r3, [r3, #0]
  69080. 801c02e: 607b str r3, [r7, #4]
  69081. while (pcb != NULL) {
  69082. 801c030: e014 b.n 801c05c <tcp_handle_closepend+0x38>
  69083. struct tcp_pcb *next = pcb->next;
  69084. 801c032: 687b ldr r3, [r7, #4]
  69085. 801c034: 68db ldr r3, [r3, #12]
  69086. 801c036: 603b str r3, [r7, #0]
  69087. /* send pending FIN */
  69088. if (pcb->flags & TF_CLOSEPEND) {
  69089. 801c038: 687b ldr r3, [r7, #4]
  69090. 801c03a: 8b5b ldrh r3, [r3, #26]
  69091. 801c03c: f003 0308 and.w r3, r3, #8
  69092. 801c040: 2b00 cmp r3, #0
  69093. 801c042: d009 beq.n 801c058 <tcp_handle_closepend+0x34>
  69094. LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n"));
  69095. tcp_clear_flags(pcb, TF_CLOSEPEND);
  69096. 801c044: 687b ldr r3, [r7, #4]
  69097. 801c046: 8b5b ldrh r3, [r3, #26]
  69098. 801c048: f023 0308 bic.w r3, r3, #8
  69099. 801c04c: b29a uxth r2, r3
  69100. 801c04e: 687b ldr r3, [r7, #4]
  69101. 801c050: 835a strh r2, [r3, #26]
  69102. tcp_close_shutdown_fin(pcb);
  69103. 801c052: 6878 ldr r0, [r7, #4]
  69104. 801c054: f7fe fe9a bl 801ad8c <tcp_close_shutdown_fin>
  69105. }
  69106. pcb = next;
  69107. 801c058: 683b ldr r3, [r7, #0]
  69108. 801c05a: 607b str r3, [r7, #4]
  69109. while (pcb != NULL) {
  69110. 801c05c: 687b ldr r3, [r7, #4]
  69111. 801c05e: 2b00 cmp r3, #0
  69112. 801c060: d1e7 bne.n 801c032 <tcp_handle_closepend+0xe>
  69113. }
  69114. }
  69115. 801c062: bf00 nop
  69116. 801c064: bf00 nop
  69117. 801c066: 3708 adds r7, #8
  69118. 801c068: 46bd mov sp, r7
  69119. 801c06a: bd80 pop {r7, pc}
  69120. 801c06c: 2402ae94 .word 0x2402ae94
  69121. 0801c070 <tcp_alloc>:
  69122. * @param prio priority for the new pcb
  69123. * @return a new tcp_pcb that initially is in state CLOSED
  69124. */
  69125. struct tcp_pcb *
  69126. tcp_alloc(u8_t prio)
  69127. {
  69128. 801c070: b580 push {r7, lr}
  69129. 801c072: b084 sub sp, #16
  69130. 801c074: af00 add r7, sp, #0
  69131. 801c076: 4603 mov r3, r0
  69132. 801c078: 71fb strb r3, [r7, #7]
  69133. struct tcp_pcb *pcb;
  69134. LWIP_ASSERT_CORE_LOCKED();
  69135. 801c07a: f7f4 fa63 bl 8010544 <sys_check_core_locking>
  69136. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  69137. 801c07e: 2001 movs r0, #1
  69138. 801c080: f7fd fad0 bl 8019624 <memp_malloc>
  69139. 801c084: 60f8 str r0, [r7, #12]
  69140. if (pcb == NULL) {
  69141. 801c086: 68fb ldr r3, [r7, #12]
  69142. 801c088: 2b00 cmp r3, #0
  69143. 801c08a: d126 bne.n 801c0da <tcp_alloc+0x6a>
  69144. /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */
  69145. tcp_handle_closepend();
  69146. 801c08c: f7ff ffca bl 801c024 <tcp_handle_closepend>
  69147. /* Try killing oldest connection in TIME-WAIT. */
  69148. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n"));
  69149. tcp_kill_timewait();
  69150. 801c090: f7ff ff98 bl 801bfc4 <tcp_kill_timewait>
  69151. /* Try to allocate a tcp_pcb again. */
  69152. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  69153. 801c094: 2001 movs r0, #1
  69154. 801c096: f7fd fac5 bl 8019624 <memp_malloc>
  69155. 801c09a: 60f8 str r0, [r7, #12]
  69156. if (pcb == NULL) {
  69157. 801c09c: 68fb ldr r3, [r7, #12]
  69158. 801c09e: 2b00 cmp r3, #0
  69159. 801c0a0: d11b bne.n 801c0da <tcp_alloc+0x6a>
  69160. /* Try killing oldest connection in LAST-ACK (these wouldn't go to TIME-WAIT). */
  69161. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest LAST-ACK connection\n"));
  69162. tcp_kill_state(LAST_ACK);
  69163. 801c0a2: 2009 movs r0, #9
  69164. 801c0a4: f7ff ff44 bl 801bf30 <tcp_kill_state>
  69165. /* Try to allocate a tcp_pcb again. */
  69166. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  69167. 801c0a8: 2001 movs r0, #1
  69168. 801c0aa: f7fd fabb bl 8019624 <memp_malloc>
  69169. 801c0ae: 60f8 str r0, [r7, #12]
  69170. if (pcb == NULL) {
  69171. 801c0b0: 68fb ldr r3, [r7, #12]
  69172. 801c0b2: 2b00 cmp r3, #0
  69173. 801c0b4: d111 bne.n 801c0da <tcp_alloc+0x6a>
  69174. /* Try killing oldest connection in CLOSING. */
  69175. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n"));
  69176. tcp_kill_state(CLOSING);
  69177. 801c0b6: 2008 movs r0, #8
  69178. 801c0b8: f7ff ff3a bl 801bf30 <tcp_kill_state>
  69179. /* Try to allocate a tcp_pcb again. */
  69180. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  69181. 801c0bc: 2001 movs r0, #1
  69182. 801c0be: f7fd fab1 bl 8019624 <memp_malloc>
  69183. 801c0c2: 60f8 str r0, [r7, #12]
  69184. if (pcb == NULL) {
  69185. 801c0c4: 68fb ldr r3, [r7, #12]
  69186. 801c0c6: 2b00 cmp r3, #0
  69187. 801c0c8: d107 bne.n 801c0da <tcp_alloc+0x6a>
  69188. /* Try killing oldest active connection with lower priority than the new one. */
  69189. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio));
  69190. tcp_kill_prio(prio);
  69191. 801c0ca: 79fb ldrb r3, [r7, #7]
  69192. 801c0cc: 4618 mov r0, r3
  69193. 801c0ce: f7ff fee1 bl 801be94 <tcp_kill_prio>
  69194. /* Try to allocate a tcp_pcb again. */
  69195. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  69196. 801c0d2: 2001 movs r0, #1
  69197. 801c0d4: f7fd faa6 bl 8019624 <memp_malloc>
  69198. 801c0d8: 60f8 str r0, [r7, #12]
  69199. if (pcb != NULL) {
  69200. /* adjust err stats: memp_malloc failed above */
  69201. MEMP_STATS_DEC(err, MEMP_TCP_PCB);
  69202. }
  69203. }
  69204. if (pcb != NULL) {
  69205. 801c0da: 68fb ldr r3, [r7, #12]
  69206. 801c0dc: 2b00 cmp r3, #0
  69207. 801c0de: d03f beq.n 801c160 <tcp_alloc+0xf0>
  69208. /* zero out the whole pcb, so there is no need to initialize members to zero */
  69209. memset(pcb, 0, sizeof(struct tcp_pcb));
  69210. 801c0e0: 229c movs r2, #156 @ 0x9c
  69211. 801c0e2: 2100 movs r1, #0
  69212. 801c0e4: 68f8 ldr r0, [r7, #12]
  69213. 801c0e6: f00d fe0b bl 8029d00 <memset>
  69214. pcb->prio = prio;
  69215. 801c0ea: 68fb ldr r3, [r7, #12]
  69216. 801c0ec: 79fa ldrb r2, [r7, #7]
  69217. 801c0ee: 755a strb r2, [r3, #21]
  69218. pcb->snd_buf = TCP_SND_BUF;
  69219. 801c0f0: 68fb ldr r3, [r7, #12]
  69220. 801c0f2: f241 62d0 movw r2, #5840 @ 0x16d0
  69221. 801c0f6: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  69222. /* Start with a window that does not need scaling. When window scaling is
  69223. enabled and used, the window is enlarged when both sides agree on scaling. */
  69224. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  69225. 801c0fa: 68fb ldr r3, [r7, #12]
  69226. 801c0fc: f241 62d0 movw r2, #5840 @ 0x16d0
  69227. 801c100: 855a strh r2, [r3, #42] @ 0x2a
  69228. 801c102: 68fb ldr r3, [r7, #12]
  69229. 801c104: 8d5a ldrh r2, [r3, #42] @ 0x2a
  69230. 801c106: 68fb ldr r3, [r7, #12]
  69231. 801c108: 851a strh r2, [r3, #40] @ 0x28
  69232. pcb->ttl = TCP_TTL;
  69233. 801c10a: 68fb ldr r3, [r7, #12]
  69234. 801c10c: 22ff movs r2, #255 @ 0xff
  69235. 801c10e: 72da strb r2, [r3, #11]
  69236. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  69237. The send MSS is updated when an MSS option is received. */
  69238. pcb->mss = INITIAL_MSS;
  69239. 801c110: 68fb ldr r3, [r7, #12]
  69240. 801c112: f44f 7206 mov.w r2, #536 @ 0x218
  69241. 801c116: 865a strh r2, [r3, #50] @ 0x32
  69242. pcb->rto = 3000 / TCP_SLOW_INTERVAL;
  69243. 801c118: 68fb ldr r3, [r7, #12]
  69244. 801c11a: 2206 movs r2, #6
  69245. 801c11c: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  69246. pcb->sv = 3000 / TCP_SLOW_INTERVAL;
  69247. 801c120: 68fb ldr r3, [r7, #12]
  69248. 801c122: 2206 movs r2, #6
  69249. 801c124: 87da strh r2, [r3, #62] @ 0x3e
  69250. pcb->rtime = -1;
  69251. 801c126: 68fb ldr r3, [r7, #12]
  69252. 801c128: f64f 72ff movw r2, #65535 @ 0xffff
  69253. 801c12c: 861a strh r2, [r3, #48] @ 0x30
  69254. pcb->cwnd = 1;
  69255. 801c12e: 68fb ldr r3, [r7, #12]
  69256. 801c130: 2201 movs r2, #1
  69257. 801c132: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  69258. pcb->tmr = tcp_ticks;
  69259. 801c136: 4b0d ldr r3, [pc, #52] @ (801c16c <tcp_alloc+0xfc>)
  69260. 801c138: 681a ldr r2, [r3, #0]
  69261. 801c13a: 68fb ldr r3, [r7, #12]
  69262. 801c13c: 621a str r2, [r3, #32]
  69263. pcb->last_timer = tcp_timer_ctr;
  69264. 801c13e: 4b0c ldr r3, [pc, #48] @ (801c170 <tcp_alloc+0x100>)
  69265. 801c140: 781a ldrb r2, [r3, #0]
  69266. 801c142: 68fb ldr r3, [r7, #12]
  69267. 801c144: 779a strb r2, [r3, #30]
  69268. of using the largest advertised receive window. We've seen complications with
  69269. receiving TCPs that use window scaling and/or window auto-tuning where the
  69270. initial advertised window is very small and then grows rapidly once the
  69271. connection is established. To avoid these complications, we set ssthresh to the
  69272. largest effective cwnd (amount of in-flight data) that the sender can have. */
  69273. pcb->ssthresh = TCP_SND_BUF;
  69274. 801c146: 68fb ldr r3, [r7, #12]
  69275. 801c148: f241 62d0 movw r2, #5840 @ 0x16d0
  69276. 801c14c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  69277. #if LWIP_CALLBACK_API
  69278. pcb->recv = tcp_recv_null;
  69279. 801c150: 68fb ldr r3, [r7, #12]
  69280. 801c152: 4a08 ldr r2, [pc, #32] @ (801c174 <tcp_alloc+0x104>)
  69281. 801c154: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  69282. #endif /* LWIP_CALLBACK_API */
  69283. /* Init KEEPALIVE timer */
  69284. pcb->keep_idle = TCP_KEEPIDLE_DEFAULT;
  69285. 801c158: 68fb ldr r3, [r7, #12]
  69286. 801c15a: 4a07 ldr r2, [pc, #28] @ (801c178 <tcp_alloc+0x108>)
  69287. 801c15c: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  69288. #if LWIP_TCP_KEEPALIVE
  69289. pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT;
  69290. pcb->keep_cnt = TCP_KEEPCNT_DEFAULT;
  69291. #endif /* LWIP_TCP_KEEPALIVE */
  69292. }
  69293. return pcb;
  69294. 801c160: 68fb ldr r3, [r7, #12]
  69295. }
  69296. 801c162: 4618 mov r0, r3
  69297. 801c164: 3710 adds r7, #16
  69298. 801c166: 46bd mov sp, r7
  69299. 801c168: bd80 pop {r7, pc}
  69300. 801c16a: bf00 nop
  69301. 801c16c: 2402ae88 .word 0x2402ae88
  69302. 801c170: 2402ae9e .word 0x2402ae9e
  69303. 801c174: 0801be29 .word 0x0801be29
  69304. 801c178: 006ddd00 .word 0x006ddd00
  69305. 0801c17c <tcp_new_ip_type>:
  69306. * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
  69307. * @return a new tcp_pcb that initially is in state CLOSED
  69308. */
  69309. struct tcp_pcb *
  69310. tcp_new_ip_type(u8_t type)
  69311. {
  69312. 801c17c: b580 push {r7, lr}
  69313. 801c17e: b084 sub sp, #16
  69314. 801c180: af00 add r7, sp, #0
  69315. 801c182: 4603 mov r3, r0
  69316. 801c184: 71fb strb r3, [r7, #7]
  69317. struct tcp_pcb *pcb;
  69318. pcb = tcp_alloc(TCP_PRIO_NORMAL);
  69319. 801c186: 2040 movs r0, #64 @ 0x40
  69320. 801c188: f7ff ff72 bl 801c070 <tcp_alloc>
  69321. 801c18c: 60f8 str r0, [r7, #12]
  69322. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  69323. }
  69324. #else
  69325. LWIP_UNUSED_ARG(type);
  69326. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  69327. return pcb;
  69328. 801c18e: 68fb ldr r3, [r7, #12]
  69329. }
  69330. 801c190: 4618 mov r0, r3
  69331. 801c192: 3710 adds r7, #16
  69332. 801c194: 46bd mov sp, r7
  69333. 801c196: bd80 pop {r7, pc}
  69334. 0801c198 <tcp_arg>:
  69335. * @param pcb tcp_pcb to set the callback argument
  69336. * @param arg void pointer argument to pass to callback functions
  69337. */
  69338. void
  69339. tcp_arg(struct tcp_pcb *pcb, void *arg)
  69340. {
  69341. 801c198: b580 push {r7, lr}
  69342. 801c19a: b082 sub sp, #8
  69343. 801c19c: af00 add r7, sp, #0
  69344. 801c19e: 6078 str r0, [r7, #4]
  69345. 801c1a0: 6039 str r1, [r7, #0]
  69346. LWIP_ASSERT_CORE_LOCKED();
  69347. 801c1a2: f7f4 f9cf bl 8010544 <sys_check_core_locking>
  69348. /* This function is allowed to be called for both listen pcbs and
  69349. connection pcbs. */
  69350. if (pcb != NULL) {
  69351. 801c1a6: 687b ldr r3, [r7, #4]
  69352. 801c1a8: 2b00 cmp r3, #0
  69353. 801c1aa: d002 beq.n 801c1b2 <tcp_arg+0x1a>
  69354. pcb->callback_arg = arg;
  69355. 801c1ac: 687b ldr r3, [r7, #4]
  69356. 801c1ae: 683a ldr r2, [r7, #0]
  69357. 801c1b0: 611a str r2, [r3, #16]
  69358. }
  69359. }
  69360. 801c1b2: bf00 nop
  69361. 801c1b4: 3708 adds r7, #8
  69362. 801c1b6: 46bd mov sp, r7
  69363. 801c1b8: bd80 pop {r7, pc}
  69364. ...
  69365. 0801c1bc <tcp_recv>:
  69366. * @param pcb tcp_pcb to set the recv callback
  69367. * @param recv callback function to call for this pcb when data is received
  69368. */
  69369. void
  69370. tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv)
  69371. {
  69372. 801c1bc: b580 push {r7, lr}
  69373. 801c1be: b082 sub sp, #8
  69374. 801c1c0: af00 add r7, sp, #0
  69375. 801c1c2: 6078 str r0, [r7, #4]
  69376. 801c1c4: 6039 str r1, [r7, #0]
  69377. LWIP_ASSERT_CORE_LOCKED();
  69378. 801c1c6: f7f4 f9bd bl 8010544 <sys_check_core_locking>
  69379. if (pcb != NULL) {
  69380. 801c1ca: 687b ldr r3, [r7, #4]
  69381. 801c1cc: 2b00 cmp r3, #0
  69382. 801c1ce: d00e beq.n 801c1ee <tcp_recv+0x32>
  69383. LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN);
  69384. 801c1d0: 687b ldr r3, [r7, #4]
  69385. 801c1d2: 7d1b ldrb r3, [r3, #20]
  69386. 801c1d4: 2b01 cmp r3, #1
  69387. 801c1d6: d106 bne.n 801c1e6 <tcp_recv+0x2a>
  69388. 801c1d8: 4b07 ldr r3, [pc, #28] @ (801c1f8 <tcp_recv+0x3c>)
  69389. 801c1da: f240 72df movw r2, #2015 @ 0x7df
  69390. 801c1de: 4907 ldr r1, [pc, #28] @ (801c1fc <tcp_recv+0x40>)
  69391. 801c1e0: 4807 ldr r0, [pc, #28] @ (801c200 <tcp_recv+0x44>)
  69392. 801c1e2: f00d fbfb bl 80299dc <iprintf>
  69393. pcb->recv = recv;
  69394. 801c1e6: 687b ldr r3, [r7, #4]
  69395. 801c1e8: 683a ldr r2, [r7, #0]
  69396. 801c1ea: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  69397. }
  69398. }
  69399. 801c1ee: bf00 nop
  69400. 801c1f0: 3708 adds r7, #8
  69401. 801c1f2: 46bd mov sp, r7
  69402. 801c1f4: bd80 pop {r7, pc}
  69403. 801c1f6: bf00 nop
  69404. 801c1f8: 0802e5f0 .word 0x0802e5f0
  69405. 801c1fc: 0802eb8c .word 0x0802eb8c
  69406. 801c200: 0802e634 .word 0x0802e634
  69407. 0801c204 <tcp_sent>:
  69408. * @param pcb tcp_pcb to set the sent callback
  69409. * @param sent callback function to call for this pcb when data is successfully sent
  69410. */
  69411. void
  69412. tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent)
  69413. {
  69414. 801c204: b580 push {r7, lr}
  69415. 801c206: b082 sub sp, #8
  69416. 801c208: af00 add r7, sp, #0
  69417. 801c20a: 6078 str r0, [r7, #4]
  69418. 801c20c: 6039 str r1, [r7, #0]
  69419. LWIP_ASSERT_CORE_LOCKED();
  69420. 801c20e: f7f4 f999 bl 8010544 <sys_check_core_locking>
  69421. if (pcb != NULL) {
  69422. 801c212: 687b ldr r3, [r7, #4]
  69423. 801c214: 2b00 cmp r3, #0
  69424. 801c216: d00e beq.n 801c236 <tcp_sent+0x32>
  69425. LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN);
  69426. 801c218: 687b ldr r3, [r7, #4]
  69427. 801c21a: 7d1b ldrb r3, [r3, #20]
  69428. 801c21c: 2b01 cmp r3, #1
  69429. 801c21e: d106 bne.n 801c22e <tcp_sent+0x2a>
  69430. 801c220: 4b07 ldr r3, [pc, #28] @ (801c240 <tcp_sent+0x3c>)
  69431. 801c222: f240 72f3 movw r2, #2035 @ 0x7f3
  69432. 801c226: 4907 ldr r1, [pc, #28] @ (801c244 <tcp_sent+0x40>)
  69433. 801c228: 4807 ldr r0, [pc, #28] @ (801c248 <tcp_sent+0x44>)
  69434. 801c22a: f00d fbd7 bl 80299dc <iprintf>
  69435. pcb->sent = sent;
  69436. 801c22e: 687b ldr r3, [r7, #4]
  69437. 801c230: 683a ldr r2, [r7, #0]
  69438. 801c232: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  69439. }
  69440. }
  69441. 801c236: bf00 nop
  69442. 801c238: 3708 adds r7, #8
  69443. 801c23a: 46bd mov sp, r7
  69444. 801c23c: bd80 pop {r7, pc}
  69445. 801c23e: bf00 nop
  69446. 801c240: 0802e5f0 .word 0x0802e5f0
  69447. 801c244: 0802ebb4 .word 0x0802ebb4
  69448. 801c248: 0802e634 .word 0x0802e634
  69449. 0801c24c <tcp_err>:
  69450. * @param err callback function to call for this pcb when a fatal error
  69451. * has occurred on the connection
  69452. */
  69453. void
  69454. tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
  69455. {
  69456. 801c24c: b580 push {r7, lr}
  69457. 801c24e: b082 sub sp, #8
  69458. 801c250: af00 add r7, sp, #0
  69459. 801c252: 6078 str r0, [r7, #4]
  69460. 801c254: 6039 str r1, [r7, #0]
  69461. LWIP_ASSERT_CORE_LOCKED();
  69462. 801c256: f7f4 f975 bl 8010544 <sys_check_core_locking>
  69463. if (pcb != NULL) {
  69464. 801c25a: 687b ldr r3, [r7, #4]
  69465. 801c25c: 2b00 cmp r3, #0
  69466. 801c25e: d00e beq.n 801c27e <tcp_err+0x32>
  69467. LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
  69468. 801c260: 687b ldr r3, [r7, #4]
  69469. 801c262: 7d1b ldrb r3, [r3, #20]
  69470. 801c264: 2b01 cmp r3, #1
  69471. 801c266: d106 bne.n 801c276 <tcp_err+0x2a>
  69472. 801c268: 4b07 ldr r3, [pc, #28] @ (801c288 <tcp_err+0x3c>)
  69473. 801c26a: f640 020d movw r2, #2061 @ 0x80d
  69474. 801c26e: 4907 ldr r1, [pc, #28] @ (801c28c <tcp_err+0x40>)
  69475. 801c270: 4807 ldr r0, [pc, #28] @ (801c290 <tcp_err+0x44>)
  69476. 801c272: f00d fbb3 bl 80299dc <iprintf>
  69477. pcb->errf = err;
  69478. 801c276: 687b ldr r3, [r7, #4]
  69479. 801c278: 683a ldr r2, [r7, #0]
  69480. 801c27a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  69481. }
  69482. }
  69483. 801c27e: bf00 nop
  69484. 801c280: 3708 adds r7, #8
  69485. 801c282: 46bd mov sp, r7
  69486. 801c284: bd80 pop {r7, pc}
  69487. 801c286: bf00 nop
  69488. 801c288: 0802e5f0 .word 0x0802e5f0
  69489. 801c28c: 0802ebdc .word 0x0802ebdc
  69490. 801c290: 0802e634 .word 0x0802e634
  69491. 0801c294 <tcp_accept>:
  69492. * @param accept callback function to call for this pcb when LISTENing
  69493. * connection has been connected to another host
  69494. */
  69495. void
  69496. tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept)
  69497. {
  69498. 801c294: b580 push {r7, lr}
  69499. 801c296: b084 sub sp, #16
  69500. 801c298: af00 add r7, sp, #0
  69501. 801c29a: 6078 str r0, [r7, #4]
  69502. 801c29c: 6039 str r1, [r7, #0]
  69503. LWIP_ASSERT_CORE_LOCKED();
  69504. 801c29e: f7f4 f951 bl 8010544 <sys_check_core_locking>
  69505. if ((pcb != NULL) && (pcb->state == LISTEN)) {
  69506. 801c2a2: 687b ldr r3, [r7, #4]
  69507. 801c2a4: 2b00 cmp r3, #0
  69508. 801c2a6: d008 beq.n 801c2ba <tcp_accept+0x26>
  69509. 801c2a8: 687b ldr r3, [r7, #4]
  69510. 801c2aa: 7d1b ldrb r3, [r3, #20]
  69511. 801c2ac: 2b01 cmp r3, #1
  69512. 801c2ae: d104 bne.n 801c2ba <tcp_accept+0x26>
  69513. struct tcp_pcb_listen *lpcb = (struct tcp_pcb_listen *)pcb;
  69514. 801c2b0: 687b ldr r3, [r7, #4]
  69515. 801c2b2: 60fb str r3, [r7, #12]
  69516. lpcb->accept = accept;
  69517. 801c2b4: 68fb ldr r3, [r7, #12]
  69518. 801c2b6: 683a ldr r2, [r7, #0]
  69519. 801c2b8: 619a str r2, [r3, #24]
  69520. }
  69521. }
  69522. 801c2ba: bf00 nop
  69523. 801c2bc: 3710 adds r7, #16
  69524. 801c2be: 46bd mov sp, r7
  69525. 801c2c0: bd80 pop {r7, pc}
  69526. ...
  69527. 0801c2c4 <tcp_poll>:
  69528. * the application may use the polling functionality to call tcp_write()
  69529. * again when the connection has been idle for a while.
  69530. */
  69531. void
  69532. tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval)
  69533. {
  69534. 801c2c4: b580 push {r7, lr}
  69535. 801c2c6: b084 sub sp, #16
  69536. 801c2c8: af00 add r7, sp, #0
  69537. 801c2ca: 60f8 str r0, [r7, #12]
  69538. 801c2cc: 60b9 str r1, [r7, #8]
  69539. 801c2ce: 4613 mov r3, r2
  69540. 801c2d0: 71fb strb r3, [r7, #7]
  69541. LWIP_ASSERT_CORE_LOCKED();
  69542. 801c2d2: f7f4 f937 bl 8010544 <sys_check_core_locking>
  69543. LWIP_ERROR("tcp_poll: invalid pcb", pcb != NULL, return);
  69544. 801c2d6: 68fb ldr r3, [r7, #12]
  69545. 801c2d8: 2b00 cmp r3, #0
  69546. 801c2da: d107 bne.n 801c2ec <tcp_poll+0x28>
  69547. 801c2dc: 4b0e ldr r3, [pc, #56] @ (801c318 <tcp_poll+0x54>)
  69548. 801c2de: f640 023d movw r2, #2109 @ 0x83d
  69549. 801c2e2: 490e ldr r1, [pc, #56] @ (801c31c <tcp_poll+0x58>)
  69550. 801c2e4: 480e ldr r0, [pc, #56] @ (801c320 <tcp_poll+0x5c>)
  69551. 801c2e6: f00d fb79 bl 80299dc <iprintf>
  69552. 801c2ea: e011 b.n 801c310 <tcp_poll+0x4c>
  69553. LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN);
  69554. 801c2ec: 68fb ldr r3, [r7, #12]
  69555. 801c2ee: 7d1b ldrb r3, [r3, #20]
  69556. 801c2f0: 2b01 cmp r3, #1
  69557. 801c2f2: d106 bne.n 801c302 <tcp_poll+0x3e>
  69558. 801c2f4: 4b08 ldr r3, [pc, #32] @ (801c318 <tcp_poll+0x54>)
  69559. 801c2f6: f640 023e movw r2, #2110 @ 0x83e
  69560. 801c2fa: 490a ldr r1, [pc, #40] @ (801c324 <tcp_poll+0x60>)
  69561. 801c2fc: 4808 ldr r0, [pc, #32] @ (801c320 <tcp_poll+0x5c>)
  69562. 801c2fe: f00d fb6d bl 80299dc <iprintf>
  69563. #if LWIP_CALLBACK_API
  69564. pcb->poll = poll;
  69565. 801c302: 68fb ldr r3, [r7, #12]
  69566. 801c304: 68ba ldr r2, [r7, #8]
  69567. 801c306: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  69568. #else /* LWIP_CALLBACK_API */
  69569. LWIP_UNUSED_ARG(poll);
  69570. #endif /* LWIP_CALLBACK_API */
  69571. pcb->pollinterval = interval;
  69572. 801c30a: 68fb ldr r3, [r7, #12]
  69573. 801c30c: 79fa ldrb r2, [r7, #7]
  69574. 801c30e: 775a strb r2, [r3, #29]
  69575. }
  69576. 801c310: 3710 adds r7, #16
  69577. 801c312: 46bd mov sp, r7
  69578. 801c314: bd80 pop {r7, pc}
  69579. 801c316: bf00 nop
  69580. 801c318: 0802e5f0 .word 0x0802e5f0
  69581. 801c31c: 0802ec04 .word 0x0802ec04
  69582. 801c320: 0802e634 .word 0x0802e634
  69583. 801c324: 0802ec1c .word 0x0802ec1c
  69584. 0801c328 <tcp_pcb_purge>:
  69585. *
  69586. * @param pcb tcp_pcb to purge. The pcb itself is not deallocated!
  69587. */
  69588. void
  69589. tcp_pcb_purge(struct tcp_pcb *pcb)
  69590. {
  69591. 801c328: b580 push {r7, lr}
  69592. 801c32a: b082 sub sp, #8
  69593. 801c32c: af00 add r7, sp, #0
  69594. 801c32e: 6078 str r0, [r7, #4]
  69595. LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return);
  69596. 801c330: 687b ldr r3, [r7, #4]
  69597. 801c332: 2b00 cmp r3, #0
  69598. 801c334: d107 bne.n 801c346 <tcp_pcb_purge+0x1e>
  69599. 801c336: 4b21 ldr r3, [pc, #132] @ (801c3bc <tcp_pcb_purge+0x94>)
  69600. 801c338: f640 0251 movw r2, #2129 @ 0x851
  69601. 801c33c: 4920 ldr r1, [pc, #128] @ (801c3c0 <tcp_pcb_purge+0x98>)
  69602. 801c33e: 4821 ldr r0, [pc, #132] @ (801c3c4 <tcp_pcb_purge+0x9c>)
  69603. 801c340: f00d fb4c bl 80299dc <iprintf>
  69604. 801c344: e037 b.n 801c3b6 <tcp_pcb_purge+0x8e>
  69605. if (pcb->state != CLOSED &&
  69606. 801c346: 687b ldr r3, [r7, #4]
  69607. 801c348: 7d1b ldrb r3, [r3, #20]
  69608. 801c34a: 2b00 cmp r3, #0
  69609. 801c34c: d033 beq.n 801c3b6 <tcp_pcb_purge+0x8e>
  69610. pcb->state != TIME_WAIT &&
  69611. 801c34e: 687b ldr r3, [r7, #4]
  69612. 801c350: 7d1b ldrb r3, [r3, #20]
  69613. if (pcb->state != CLOSED &&
  69614. 801c352: 2b0a cmp r3, #10
  69615. 801c354: d02f beq.n 801c3b6 <tcp_pcb_purge+0x8e>
  69616. pcb->state != LISTEN) {
  69617. 801c356: 687b ldr r3, [r7, #4]
  69618. 801c358: 7d1b ldrb r3, [r3, #20]
  69619. pcb->state != TIME_WAIT &&
  69620. 801c35a: 2b01 cmp r3, #1
  69621. 801c35c: d02b beq.n 801c3b6 <tcp_pcb_purge+0x8e>
  69622. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n"));
  69623. tcp_backlog_accepted(pcb);
  69624. if (pcb->refused_data != NULL) {
  69625. 801c35e: 687b ldr r3, [r7, #4]
  69626. 801c360: 6f9b ldr r3, [r3, #120] @ 0x78
  69627. 801c362: 2b00 cmp r3, #0
  69628. 801c364: d007 beq.n 801c376 <tcp_pcb_purge+0x4e>
  69629. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n"));
  69630. pbuf_free(pcb->refused_data);
  69631. 801c366: 687b ldr r3, [r7, #4]
  69632. 801c368: 6f9b ldr r3, [r3, #120] @ 0x78
  69633. 801c36a: 4618 mov r0, r3
  69634. 801c36c: f7fe f8be bl 801a4ec <pbuf_free>
  69635. pcb->refused_data = NULL;
  69636. 801c370: 687b ldr r3, [r7, #4]
  69637. 801c372: 2200 movs r2, #0
  69638. 801c374: 679a str r2, [r3, #120] @ 0x78
  69639. }
  69640. if (pcb->unacked != NULL) {
  69641. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n"));
  69642. }
  69643. #if TCP_QUEUE_OOSEQ
  69644. if (pcb->ooseq != NULL) {
  69645. 801c376: 687b ldr r3, [r7, #4]
  69646. 801c378: 6f5b ldr r3, [r3, #116] @ 0x74
  69647. 801c37a: 2b00 cmp r3, #0
  69648. 801c37c: d002 beq.n 801c384 <tcp_pcb_purge+0x5c>
  69649. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
  69650. tcp_free_ooseq(pcb);
  69651. 801c37e: 6878 ldr r0, [r7, #4]
  69652. 801c380: f000 f986 bl 801c690 <tcp_free_ooseq>
  69653. }
  69654. #endif /* TCP_QUEUE_OOSEQ */
  69655. /* Stop the retransmission timer as it will expect data on unacked
  69656. queue if it fires */
  69657. pcb->rtime = -1;
  69658. 801c384: 687b ldr r3, [r7, #4]
  69659. 801c386: f64f 72ff movw r2, #65535 @ 0xffff
  69660. 801c38a: 861a strh r2, [r3, #48] @ 0x30
  69661. tcp_segs_free(pcb->unsent);
  69662. 801c38c: 687b ldr r3, [r7, #4]
  69663. 801c38e: 6edb ldr r3, [r3, #108] @ 0x6c
  69664. 801c390: 4618 mov r0, r3
  69665. 801c392: f7ff fcef bl 801bd74 <tcp_segs_free>
  69666. tcp_segs_free(pcb->unacked);
  69667. 801c396: 687b ldr r3, [r7, #4]
  69668. 801c398: 6f1b ldr r3, [r3, #112] @ 0x70
  69669. 801c39a: 4618 mov r0, r3
  69670. 801c39c: f7ff fcea bl 801bd74 <tcp_segs_free>
  69671. pcb->unacked = pcb->unsent = NULL;
  69672. 801c3a0: 687b ldr r3, [r7, #4]
  69673. 801c3a2: 2200 movs r2, #0
  69674. 801c3a4: 66da str r2, [r3, #108] @ 0x6c
  69675. 801c3a6: 687b ldr r3, [r7, #4]
  69676. 801c3a8: 6eda ldr r2, [r3, #108] @ 0x6c
  69677. 801c3aa: 687b ldr r3, [r7, #4]
  69678. 801c3ac: 671a str r2, [r3, #112] @ 0x70
  69679. #if TCP_OVERSIZE
  69680. pcb->unsent_oversize = 0;
  69681. 801c3ae: 687b ldr r3, [r7, #4]
  69682. 801c3b0: 2200 movs r2, #0
  69683. 801c3b2: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  69684. #endif /* TCP_OVERSIZE */
  69685. }
  69686. }
  69687. 801c3b6: 3708 adds r7, #8
  69688. 801c3b8: 46bd mov sp, r7
  69689. 801c3ba: bd80 pop {r7, pc}
  69690. 801c3bc: 0802e5f0 .word 0x0802e5f0
  69691. 801c3c0: 0802ec3c .word 0x0802ec3c
  69692. 801c3c4: 0802e634 .word 0x0802e634
  69693. 0801c3c8 <tcp_pcb_remove>:
  69694. * @param pcblist PCB list to purge.
  69695. * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated!
  69696. */
  69697. void
  69698. tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
  69699. {
  69700. 801c3c8: b580 push {r7, lr}
  69701. 801c3ca: b084 sub sp, #16
  69702. 801c3cc: af00 add r7, sp, #0
  69703. 801c3ce: 6078 str r0, [r7, #4]
  69704. 801c3d0: 6039 str r1, [r7, #0]
  69705. LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL);
  69706. 801c3d2: 683b ldr r3, [r7, #0]
  69707. 801c3d4: 2b00 cmp r3, #0
  69708. 801c3d6: d106 bne.n 801c3e6 <tcp_pcb_remove+0x1e>
  69709. 801c3d8: 4b3e ldr r3, [pc, #248] @ (801c4d4 <tcp_pcb_remove+0x10c>)
  69710. 801c3da: f640 0283 movw r2, #2179 @ 0x883
  69711. 801c3de: 493e ldr r1, [pc, #248] @ (801c4d8 <tcp_pcb_remove+0x110>)
  69712. 801c3e0: 483e ldr r0, [pc, #248] @ (801c4dc <tcp_pcb_remove+0x114>)
  69713. 801c3e2: f00d fafb bl 80299dc <iprintf>
  69714. LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL);
  69715. 801c3e6: 687b ldr r3, [r7, #4]
  69716. 801c3e8: 2b00 cmp r3, #0
  69717. 801c3ea: d106 bne.n 801c3fa <tcp_pcb_remove+0x32>
  69718. 801c3ec: 4b39 ldr r3, [pc, #228] @ (801c4d4 <tcp_pcb_remove+0x10c>)
  69719. 801c3ee: f640 0284 movw r2, #2180 @ 0x884
  69720. 801c3f2: 493b ldr r1, [pc, #236] @ (801c4e0 <tcp_pcb_remove+0x118>)
  69721. 801c3f4: 4839 ldr r0, [pc, #228] @ (801c4dc <tcp_pcb_remove+0x114>)
  69722. 801c3f6: f00d faf1 bl 80299dc <iprintf>
  69723. TCP_RMV(pcblist, pcb);
  69724. 801c3fa: 687b ldr r3, [r7, #4]
  69725. 801c3fc: 681b ldr r3, [r3, #0]
  69726. 801c3fe: 683a ldr r2, [r7, #0]
  69727. 801c400: 429a cmp r2, r3
  69728. 801c402: d105 bne.n 801c410 <tcp_pcb_remove+0x48>
  69729. 801c404: 687b ldr r3, [r7, #4]
  69730. 801c406: 681b ldr r3, [r3, #0]
  69731. 801c408: 68da ldr r2, [r3, #12]
  69732. 801c40a: 687b ldr r3, [r7, #4]
  69733. 801c40c: 601a str r2, [r3, #0]
  69734. 801c40e: e013 b.n 801c438 <tcp_pcb_remove+0x70>
  69735. 801c410: 687b ldr r3, [r7, #4]
  69736. 801c412: 681b ldr r3, [r3, #0]
  69737. 801c414: 60fb str r3, [r7, #12]
  69738. 801c416: e00c b.n 801c432 <tcp_pcb_remove+0x6a>
  69739. 801c418: 68fb ldr r3, [r7, #12]
  69740. 801c41a: 68db ldr r3, [r3, #12]
  69741. 801c41c: 683a ldr r2, [r7, #0]
  69742. 801c41e: 429a cmp r2, r3
  69743. 801c420: d104 bne.n 801c42c <tcp_pcb_remove+0x64>
  69744. 801c422: 683b ldr r3, [r7, #0]
  69745. 801c424: 68da ldr r2, [r3, #12]
  69746. 801c426: 68fb ldr r3, [r7, #12]
  69747. 801c428: 60da str r2, [r3, #12]
  69748. 801c42a: e005 b.n 801c438 <tcp_pcb_remove+0x70>
  69749. 801c42c: 68fb ldr r3, [r7, #12]
  69750. 801c42e: 68db ldr r3, [r3, #12]
  69751. 801c430: 60fb str r3, [r7, #12]
  69752. 801c432: 68fb ldr r3, [r7, #12]
  69753. 801c434: 2b00 cmp r3, #0
  69754. 801c436: d1ef bne.n 801c418 <tcp_pcb_remove+0x50>
  69755. 801c438: 683b ldr r3, [r7, #0]
  69756. 801c43a: 2200 movs r2, #0
  69757. 801c43c: 60da str r2, [r3, #12]
  69758. tcp_pcb_purge(pcb);
  69759. 801c43e: 6838 ldr r0, [r7, #0]
  69760. 801c440: f7ff ff72 bl 801c328 <tcp_pcb_purge>
  69761. /* if there is an outstanding delayed ACKs, send it */
  69762. if ((pcb->state != TIME_WAIT) &&
  69763. 801c444: 683b ldr r3, [r7, #0]
  69764. 801c446: 7d1b ldrb r3, [r3, #20]
  69765. 801c448: 2b0a cmp r3, #10
  69766. 801c44a: d013 beq.n 801c474 <tcp_pcb_remove+0xac>
  69767. (pcb->state != LISTEN) &&
  69768. 801c44c: 683b ldr r3, [r7, #0]
  69769. 801c44e: 7d1b ldrb r3, [r3, #20]
  69770. if ((pcb->state != TIME_WAIT) &&
  69771. 801c450: 2b01 cmp r3, #1
  69772. 801c452: d00f beq.n 801c474 <tcp_pcb_remove+0xac>
  69773. (pcb->flags & TF_ACK_DELAY)) {
  69774. 801c454: 683b ldr r3, [r7, #0]
  69775. 801c456: 8b5b ldrh r3, [r3, #26]
  69776. 801c458: f003 0301 and.w r3, r3, #1
  69777. (pcb->state != LISTEN) &&
  69778. 801c45c: 2b00 cmp r3, #0
  69779. 801c45e: d009 beq.n 801c474 <tcp_pcb_remove+0xac>
  69780. tcp_ack_now(pcb);
  69781. 801c460: 683b ldr r3, [r7, #0]
  69782. 801c462: 8b5b ldrh r3, [r3, #26]
  69783. 801c464: f043 0302 orr.w r3, r3, #2
  69784. 801c468: b29a uxth r2, r3
  69785. 801c46a: 683b ldr r3, [r7, #0]
  69786. 801c46c: 835a strh r2, [r3, #26]
  69787. tcp_output(pcb);
  69788. 801c46e: 6838 ldr r0, [r7, #0]
  69789. 801c470: f003 fc28 bl 801fcc4 <tcp_output>
  69790. }
  69791. if (pcb->state != LISTEN) {
  69792. 801c474: 683b ldr r3, [r7, #0]
  69793. 801c476: 7d1b ldrb r3, [r3, #20]
  69794. 801c478: 2b01 cmp r3, #1
  69795. 801c47a: d020 beq.n 801c4be <tcp_pcb_remove+0xf6>
  69796. LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL);
  69797. 801c47c: 683b ldr r3, [r7, #0]
  69798. 801c47e: 6edb ldr r3, [r3, #108] @ 0x6c
  69799. 801c480: 2b00 cmp r3, #0
  69800. 801c482: d006 beq.n 801c492 <tcp_pcb_remove+0xca>
  69801. 801c484: 4b13 ldr r3, [pc, #76] @ (801c4d4 <tcp_pcb_remove+0x10c>)
  69802. 801c486: f640 0293 movw r2, #2195 @ 0x893
  69803. 801c48a: 4916 ldr r1, [pc, #88] @ (801c4e4 <tcp_pcb_remove+0x11c>)
  69804. 801c48c: 4813 ldr r0, [pc, #76] @ (801c4dc <tcp_pcb_remove+0x114>)
  69805. 801c48e: f00d faa5 bl 80299dc <iprintf>
  69806. LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL);
  69807. 801c492: 683b ldr r3, [r7, #0]
  69808. 801c494: 6f1b ldr r3, [r3, #112] @ 0x70
  69809. 801c496: 2b00 cmp r3, #0
  69810. 801c498: d006 beq.n 801c4a8 <tcp_pcb_remove+0xe0>
  69811. 801c49a: 4b0e ldr r3, [pc, #56] @ (801c4d4 <tcp_pcb_remove+0x10c>)
  69812. 801c49c: f640 0294 movw r2, #2196 @ 0x894
  69813. 801c4a0: 4911 ldr r1, [pc, #68] @ (801c4e8 <tcp_pcb_remove+0x120>)
  69814. 801c4a2: 480e ldr r0, [pc, #56] @ (801c4dc <tcp_pcb_remove+0x114>)
  69815. 801c4a4: f00d fa9a bl 80299dc <iprintf>
  69816. #if TCP_QUEUE_OOSEQ
  69817. LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL);
  69818. 801c4a8: 683b ldr r3, [r7, #0]
  69819. 801c4aa: 6f5b ldr r3, [r3, #116] @ 0x74
  69820. 801c4ac: 2b00 cmp r3, #0
  69821. 801c4ae: d006 beq.n 801c4be <tcp_pcb_remove+0xf6>
  69822. 801c4b0: 4b08 ldr r3, [pc, #32] @ (801c4d4 <tcp_pcb_remove+0x10c>)
  69823. 801c4b2: f640 0296 movw r2, #2198 @ 0x896
  69824. 801c4b6: 490d ldr r1, [pc, #52] @ (801c4ec <tcp_pcb_remove+0x124>)
  69825. 801c4b8: 4808 ldr r0, [pc, #32] @ (801c4dc <tcp_pcb_remove+0x114>)
  69826. 801c4ba: f00d fa8f bl 80299dc <iprintf>
  69827. #endif /* TCP_QUEUE_OOSEQ */
  69828. }
  69829. pcb->state = CLOSED;
  69830. 801c4be: 683b ldr r3, [r7, #0]
  69831. 801c4c0: 2200 movs r2, #0
  69832. 801c4c2: 751a strb r2, [r3, #20]
  69833. /* reset the local port to prevent the pcb from being 'bound' */
  69834. pcb->local_port = 0;
  69835. 801c4c4: 683b ldr r3, [r7, #0]
  69836. 801c4c6: 2200 movs r2, #0
  69837. 801c4c8: 82da strh r2, [r3, #22]
  69838. LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane());
  69839. }
  69840. 801c4ca: bf00 nop
  69841. 801c4cc: 3710 adds r7, #16
  69842. 801c4ce: 46bd mov sp, r7
  69843. 801c4d0: bd80 pop {r7, pc}
  69844. 801c4d2: bf00 nop
  69845. 801c4d4: 0802e5f0 .word 0x0802e5f0
  69846. 801c4d8: 0802ec58 .word 0x0802ec58
  69847. 801c4dc: 0802e634 .word 0x0802e634
  69848. 801c4e0: 0802ec74 .word 0x0802ec74
  69849. 801c4e4: 0802ec94 .word 0x0802ec94
  69850. 801c4e8: 0802ecac .word 0x0802ecac
  69851. 801c4ec: 0802ecc8 .word 0x0802ecc8
  69852. 0801c4f0 <tcp_next_iss>:
  69853. *
  69854. * @return u32_t pseudo random sequence number
  69855. */
  69856. u32_t
  69857. tcp_next_iss(struct tcp_pcb *pcb)
  69858. {
  69859. 801c4f0: b580 push {r7, lr}
  69860. 801c4f2: b082 sub sp, #8
  69861. 801c4f4: af00 add r7, sp, #0
  69862. 801c4f6: 6078 str r0, [r7, #4]
  69863. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  69864. return LWIP_HOOK_TCP_ISN(&pcb->local_ip, pcb->local_port, &pcb->remote_ip, pcb->remote_port);
  69865. #else /* LWIP_HOOK_TCP_ISN */
  69866. static u32_t iss = 6510;
  69867. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  69868. 801c4f8: 687b ldr r3, [r7, #4]
  69869. 801c4fa: 2b00 cmp r3, #0
  69870. 801c4fc: d106 bne.n 801c50c <tcp_next_iss+0x1c>
  69871. 801c4fe: 4b0a ldr r3, [pc, #40] @ (801c528 <tcp_next_iss+0x38>)
  69872. 801c500: f640 02af movw r2, #2223 @ 0x8af
  69873. 801c504: 4909 ldr r1, [pc, #36] @ (801c52c <tcp_next_iss+0x3c>)
  69874. 801c506: 480a ldr r0, [pc, #40] @ (801c530 <tcp_next_iss+0x40>)
  69875. 801c508: f00d fa68 bl 80299dc <iprintf>
  69876. LWIP_UNUSED_ARG(pcb);
  69877. iss += tcp_ticks; /* XXX */
  69878. 801c50c: 4b09 ldr r3, [pc, #36] @ (801c534 <tcp_next_iss+0x44>)
  69879. 801c50e: 681a ldr r2, [r3, #0]
  69880. 801c510: 4b09 ldr r3, [pc, #36] @ (801c538 <tcp_next_iss+0x48>)
  69881. 801c512: 681b ldr r3, [r3, #0]
  69882. 801c514: 4413 add r3, r2
  69883. 801c516: 4a07 ldr r2, [pc, #28] @ (801c534 <tcp_next_iss+0x44>)
  69884. 801c518: 6013 str r3, [r2, #0]
  69885. return iss;
  69886. 801c51a: 4b06 ldr r3, [pc, #24] @ (801c534 <tcp_next_iss+0x44>)
  69887. 801c51c: 681b ldr r3, [r3, #0]
  69888. #endif /* LWIP_HOOK_TCP_ISN */
  69889. }
  69890. 801c51e: 4618 mov r0, r3
  69891. 801c520: 3708 adds r7, #8
  69892. 801c522: 46bd mov sp, r7
  69893. 801c524: bd80 pop {r7, pc}
  69894. 801c526: bf00 nop
  69895. 801c528: 0802e5f0 .word 0x0802e5f0
  69896. 801c52c: 0802ece0 .word 0x0802ece0
  69897. 801c530: 0802e634 .word 0x0802e634
  69898. 801c534: 24000050 .word 0x24000050
  69899. 801c538: 2402ae88 .word 0x2402ae88
  69900. 0801c53c <tcp_eff_send_mss_netif>:
  69901. * by calculating the minimum of TCP_MSS and the mtu (if set) of the target
  69902. * netif (if not NULL).
  69903. */
  69904. u16_t
  69905. tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest)
  69906. {
  69907. 801c53c: b580 push {r7, lr}
  69908. 801c53e: b086 sub sp, #24
  69909. 801c540: af00 add r7, sp, #0
  69910. 801c542: 4603 mov r3, r0
  69911. 801c544: 60b9 str r1, [r7, #8]
  69912. 801c546: 607a str r2, [r7, #4]
  69913. 801c548: 81fb strh r3, [r7, #14]
  69914. u16_t mss_s;
  69915. u16_t mtu;
  69916. LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */
  69917. LWIP_ASSERT("tcp_eff_send_mss_netif: invalid dst_ip", dest != NULL);
  69918. 801c54a: 687b ldr r3, [r7, #4]
  69919. 801c54c: 2b00 cmp r3, #0
  69920. 801c54e: d106 bne.n 801c55e <tcp_eff_send_mss_netif+0x22>
  69921. 801c550: 4b14 ldr r3, [pc, #80] @ (801c5a4 <tcp_eff_send_mss_netif+0x68>)
  69922. 801c552: f640 02c5 movw r2, #2245 @ 0x8c5
  69923. 801c556: 4914 ldr r1, [pc, #80] @ (801c5a8 <tcp_eff_send_mss_netif+0x6c>)
  69924. 801c558: 4814 ldr r0, [pc, #80] @ (801c5ac <tcp_eff_send_mss_netif+0x70>)
  69925. 801c55a: f00d fa3f bl 80299dc <iprintf>
  69926. else
  69927. #endif /* LWIP_IPV4 */
  69928. #endif /* LWIP_IPV6 */
  69929. #if LWIP_IPV4
  69930. {
  69931. if (outif == NULL) {
  69932. 801c55e: 68bb ldr r3, [r7, #8]
  69933. 801c560: 2b00 cmp r3, #0
  69934. 801c562: d101 bne.n 801c568 <tcp_eff_send_mss_netif+0x2c>
  69935. return sendmss;
  69936. 801c564: 89fb ldrh r3, [r7, #14]
  69937. 801c566: e019 b.n 801c59c <tcp_eff_send_mss_netif+0x60>
  69938. }
  69939. mtu = outif->mtu;
  69940. 801c568: 68bb ldr r3, [r7, #8]
  69941. 801c56a: 8d1b ldrh r3, [r3, #40] @ 0x28
  69942. 801c56c: 82fb strh r3, [r7, #22]
  69943. }
  69944. #endif /* LWIP_IPV4 */
  69945. if (mtu != 0) {
  69946. 801c56e: 8afb ldrh r3, [r7, #22]
  69947. 801c570: 2b00 cmp r3, #0
  69948. 801c572: d012 beq.n 801c59a <tcp_eff_send_mss_netif+0x5e>
  69949. else
  69950. #endif /* LWIP_IPV4 */
  69951. #endif /* LWIP_IPV6 */
  69952. #if LWIP_IPV4
  69953. {
  69954. offset = IP_HLEN + TCP_HLEN;
  69955. 801c574: 2328 movs r3, #40 @ 0x28
  69956. 801c576: 82bb strh r3, [r7, #20]
  69957. }
  69958. #endif /* LWIP_IPV4 */
  69959. mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0;
  69960. 801c578: 8afa ldrh r2, [r7, #22]
  69961. 801c57a: 8abb ldrh r3, [r7, #20]
  69962. 801c57c: 429a cmp r2, r3
  69963. 801c57e: d904 bls.n 801c58a <tcp_eff_send_mss_netif+0x4e>
  69964. 801c580: 8afa ldrh r2, [r7, #22]
  69965. 801c582: 8abb ldrh r3, [r7, #20]
  69966. 801c584: 1ad3 subs r3, r2, r3
  69967. 801c586: b29b uxth r3, r3
  69968. 801c588: e000 b.n 801c58c <tcp_eff_send_mss_netif+0x50>
  69969. 801c58a: 2300 movs r3, #0
  69970. 801c58c: 827b strh r3, [r7, #18]
  69971. /* RFC 1122, chap 4.2.2.6:
  69972. * Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize
  69973. * We correct for TCP options in tcp_write(), and don't support IP options.
  69974. */
  69975. sendmss = LWIP_MIN(sendmss, mss_s);
  69976. 801c58e: 8a7a ldrh r2, [r7, #18]
  69977. 801c590: 89fb ldrh r3, [r7, #14]
  69978. 801c592: 4293 cmp r3, r2
  69979. 801c594: bf28 it cs
  69980. 801c596: 4613 movcs r3, r2
  69981. 801c598: 81fb strh r3, [r7, #14]
  69982. }
  69983. return sendmss;
  69984. 801c59a: 89fb ldrh r3, [r7, #14]
  69985. }
  69986. 801c59c: 4618 mov r0, r3
  69987. 801c59e: 3718 adds r7, #24
  69988. 801c5a0: 46bd mov sp, r7
  69989. 801c5a2: bd80 pop {r7, pc}
  69990. 801c5a4: 0802e5f0 .word 0x0802e5f0
  69991. 801c5a8: 0802ecfc .word 0x0802ecfc
  69992. 801c5ac: 0802e634 .word 0x0802e634
  69993. 0801c5b0 <tcp_netif_ip_addr_changed_pcblist>:
  69994. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  69995. /** Helper function for tcp_netif_ip_addr_changed() that iterates a pcb list */
  69996. static void
  69997. tcp_netif_ip_addr_changed_pcblist(const ip_addr_t *old_addr, struct tcp_pcb *pcb_list)
  69998. {
  69999. 801c5b0: b580 push {r7, lr}
  70000. 801c5b2: b084 sub sp, #16
  70001. 801c5b4: af00 add r7, sp, #0
  70002. 801c5b6: 6078 str r0, [r7, #4]
  70003. 801c5b8: 6039 str r1, [r7, #0]
  70004. struct tcp_pcb *pcb;
  70005. pcb = pcb_list;
  70006. 801c5ba: 683b ldr r3, [r7, #0]
  70007. 801c5bc: 60fb str r3, [r7, #12]
  70008. LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL);
  70009. 801c5be: 687b ldr r3, [r7, #4]
  70010. 801c5c0: 2b00 cmp r3, #0
  70011. 801c5c2: d119 bne.n 801c5f8 <tcp_netif_ip_addr_changed_pcblist+0x48>
  70012. 801c5c4: 4b10 ldr r3, [pc, #64] @ (801c608 <tcp_netif_ip_addr_changed_pcblist+0x58>)
  70013. 801c5c6: f44f 6210 mov.w r2, #2304 @ 0x900
  70014. 801c5ca: 4910 ldr r1, [pc, #64] @ (801c60c <tcp_netif_ip_addr_changed_pcblist+0x5c>)
  70015. 801c5cc: 4810 ldr r0, [pc, #64] @ (801c610 <tcp_netif_ip_addr_changed_pcblist+0x60>)
  70016. 801c5ce: f00d fa05 bl 80299dc <iprintf>
  70017. while (pcb != NULL) {
  70018. 801c5d2: e011 b.n 801c5f8 <tcp_netif_ip_addr_changed_pcblist+0x48>
  70019. /* PCB bound to current local interface address? */
  70020. if (ip_addr_cmp(&pcb->local_ip, old_addr)
  70021. 801c5d4: 68fb ldr r3, [r7, #12]
  70022. 801c5d6: 681a ldr r2, [r3, #0]
  70023. 801c5d8: 687b ldr r3, [r7, #4]
  70024. 801c5da: 681b ldr r3, [r3, #0]
  70025. 801c5dc: 429a cmp r2, r3
  70026. 801c5de: d108 bne.n 801c5f2 <tcp_netif_ip_addr_changed_pcblist+0x42>
  70027. /* connections to link-local addresses must persist (RFC3927 ch. 1.9) */
  70028. && (!IP_IS_V4_VAL(pcb->local_ip) || !ip4_addr_islinklocal(ip_2_ip4(&pcb->local_ip)))
  70029. #endif /* LWIP_AUTOIP */
  70030. ) {
  70031. /* this connection must be aborted */
  70032. struct tcp_pcb *next = pcb->next;
  70033. 801c5e0: 68fb ldr r3, [r7, #12]
  70034. 801c5e2: 68db ldr r3, [r3, #12]
  70035. 801c5e4: 60bb str r3, [r7, #8]
  70036. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb));
  70037. tcp_abort(pcb);
  70038. 801c5e6: 68f8 ldr r0, [r7, #12]
  70039. 801c5e8: f7fe fd86 bl 801b0f8 <tcp_abort>
  70040. pcb = next;
  70041. 801c5ec: 68bb ldr r3, [r7, #8]
  70042. 801c5ee: 60fb str r3, [r7, #12]
  70043. 801c5f0: e002 b.n 801c5f8 <tcp_netif_ip_addr_changed_pcblist+0x48>
  70044. } else {
  70045. pcb = pcb->next;
  70046. 801c5f2: 68fb ldr r3, [r7, #12]
  70047. 801c5f4: 68db ldr r3, [r3, #12]
  70048. 801c5f6: 60fb str r3, [r7, #12]
  70049. while (pcb != NULL) {
  70050. 801c5f8: 68fb ldr r3, [r7, #12]
  70051. 801c5fa: 2b00 cmp r3, #0
  70052. 801c5fc: d1ea bne.n 801c5d4 <tcp_netif_ip_addr_changed_pcblist+0x24>
  70053. }
  70054. }
  70055. }
  70056. 801c5fe: bf00 nop
  70057. 801c600: bf00 nop
  70058. 801c602: 3710 adds r7, #16
  70059. 801c604: 46bd mov sp, r7
  70060. 801c606: bd80 pop {r7, pc}
  70061. 801c608: 0802e5f0 .word 0x0802e5f0
  70062. 801c60c: 0802ed24 .word 0x0802ed24
  70063. 801c610: 0802e634 .word 0x0802e634
  70064. 0801c614 <tcp_netif_ip_addr_changed>:
  70065. * @param old_addr IP address of the netif before change
  70066. * @param new_addr IP address of the netif after change or NULL if netif has been removed
  70067. */
  70068. void
  70069. tcp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  70070. {
  70071. 801c614: b580 push {r7, lr}
  70072. 801c616: b084 sub sp, #16
  70073. 801c618: af00 add r7, sp, #0
  70074. 801c61a: 6078 str r0, [r7, #4]
  70075. 801c61c: 6039 str r1, [r7, #0]
  70076. struct tcp_pcb_listen *lpcb;
  70077. if (!ip_addr_isany(old_addr)) {
  70078. 801c61e: 687b ldr r3, [r7, #4]
  70079. 801c620: 2b00 cmp r3, #0
  70080. 801c622: d02a beq.n 801c67a <tcp_netif_ip_addr_changed+0x66>
  70081. 801c624: 687b ldr r3, [r7, #4]
  70082. 801c626: 681b ldr r3, [r3, #0]
  70083. 801c628: 2b00 cmp r3, #0
  70084. 801c62a: d026 beq.n 801c67a <tcp_netif_ip_addr_changed+0x66>
  70085. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs);
  70086. 801c62c: 4b15 ldr r3, [pc, #84] @ (801c684 <tcp_netif_ip_addr_changed+0x70>)
  70087. 801c62e: 681b ldr r3, [r3, #0]
  70088. 801c630: 4619 mov r1, r3
  70089. 801c632: 6878 ldr r0, [r7, #4]
  70090. 801c634: f7ff ffbc bl 801c5b0 <tcp_netif_ip_addr_changed_pcblist>
  70091. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs);
  70092. 801c638: 4b13 ldr r3, [pc, #76] @ (801c688 <tcp_netif_ip_addr_changed+0x74>)
  70093. 801c63a: 681b ldr r3, [r3, #0]
  70094. 801c63c: 4619 mov r1, r3
  70095. 801c63e: 6878 ldr r0, [r7, #4]
  70096. 801c640: f7ff ffb6 bl 801c5b0 <tcp_netif_ip_addr_changed_pcblist>
  70097. if (!ip_addr_isany(new_addr)) {
  70098. 801c644: 683b ldr r3, [r7, #0]
  70099. 801c646: 2b00 cmp r3, #0
  70100. 801c648: d017 beq.n 801c67a <tcp_netif_ip_addr_changed+0x66>
  70101. 801c64a: 683b ldr r3, [r7, #0]
  70102. 801c64c: 681b ldr r3, [r3, #0]
  70103. 801c64e: 2b00 cmp r3, #0
  70104. 801c650: d013 beq.n 801c67a <tcp_netif_ip_addr_changed+0x66>
  70105. /* PCB bound to current local interface address? */
  70106. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  70107. 801c652: 4b0e ldr r3, [pc, #56] @ (801c68c <tcp_netif_ip_addr_changed+0x78>)
  70108. 801c654: 681b ldr r3, [r3, #0]
  70109. 801c656: 60fb str r3, [r7, #12]
  70110. 801c658: e00c b.n 801c674 <tcp_netif_ip_addr_changed+0x60>
  70111. /* PCB bound to current local interface address? */
  70112. if (ip_addr_cmp(&lpcb->local_ip, old_addr)) {
  70113. 801c65a: 68fb ldr r3, [r7, #12]
  70114. 801c65c: 681a ldr r2, [r3, #0]
  70115. 801c65e: 687b ldr r3, [r7, #4]
  70116. 801c660: 681b ldr r3, [r3, #0]
  70117. 801c662: 429a cmp r2, r3
  70118. 801c664: d103 bne.n 801c66e <tcp_netif_ip_addr_changed+0x5a>
  70119. /* The PCB is listening to the old ipaddr and
  70120. * is set to listen to the new one instead */
  70121. ip_addr_copy(lpcb->local_ip, *new_addr);
  70122. 801c666: 683b ldr r3, [r7, #0]
  70123. 801c668: 681a ldr r2, [r3, #0]
  70124. 801c66a: 68fb ldr r3, [r7, #12]
  70125. 801c66c: 601a str r2, [r3, #0]
  70126. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  70127. 801c66e: 68fb ldr r3, [r7, #12]
  70128. 801c670: 68db ldr r3, [r3, #12]
  70129. 801c672: 60fb str r3, [r7, #12]
  70130. 801c674: 68fb ldr r3, [r7, #12]
  70131. 801c676: 2b00 cmp r3, #0
  70132. 801c678: d1ef bne.n 801c65a <tcp_netif_ip_addr_changed+0x46>
  70133. }
  70134. }
  70135. }
  70136. }
  70137. }
  70138. 801c67a: bf00 nop
  70139. 801c67c: 3710 adds r7, #16
  70140. 801c67e: 46bd mov sp, r7
  70141. 801c680: bd80 pop {r7, pc}
  70142. 801c682: bf00 nop
  70143. 801c684: 2402ae94 .word 0x2402ae94
  70144. 801c688: 2402ae8c .word 0x2402ae8c
  70145. 801c68c: 2402ae90 .word 0x2402ae90
  70146. 0801c690 <tcp_free_ooseq>:
  70147. #if TCP_QUEUE_OOSEQ
  70148. /* Free all ooseq pbufs (and possibly reset SACK state) */
  70149. void
  70150. tcp_free_ooseq(struct tcp_pcb *pcb)
  70151. {
  70152. 801c690: b580 push {r7, lr}
  70153. 801c692: b082 sub sp, #8
  70154. 801c694: af00 add r7, sp, #0
  70155. 801c696: 6078 str r0, [r7, #4]
  70156. if (pcb->ooseq) {
  70157. 801c698: 687b ldr r3, [r7, #4]
  70158. 801c69a: 6f5b ldr r3, [r3, #116] @ 0x74
  70159. 801c69c: 2b00 cmp r3, #0
  70160. 801c69e: d007 beq.n 801c6b0 <tcp_free_ooseq+0x20>
  70161. tcp_segs_free(pcb->ooseq);
  70162. 801c6a0: 687b ldr r3, [r7, #4]
  70163. 801c6a2: 6f5b ldr r3, [r3, #116] @ 0x74
  70164. 801c6a4: 4618 mov r0, r3
  70165. 801c6a6: f7ff fb65 bl 801bd74 <tcp_segs_free>
  70166. pcb->ooseq = NULL;
  70167. 801c6aa: 687b ldr r3, [r7, #4]
  70168. 801c6ac: 2200 movs r2, #0
  70169. 801c6ae: 675a str r2, [r3, #116] @ 0x74
  70170. #if LWIP_TCP_SACK_OUT
  70171. memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks));
  70172. #endif /* LWIP_TCP_SACK_OUT */
  70173. }
  70174. }
  70175. 801c6b0: bf00 nop
  70176. 801c6b2: 3708 adds r7, #8
  70177. 801c6b4: 46bd mov sp, r7
  70178. 801c6b6: bd80 pop {r7, pc}
  70179. 0801c6b8 <tcp_input>:
  70180. * @param p received TCP segment to process (p->payload pointing to the TCP header)
  70181. * @param inp network interface on which this segment was received
  70182. */
  70183. void
  70184. tcp_input(struct pbuf *p, struct netif *inp)
  70185. {
  70186. 801c6b8: b590 push {r4, r7, lr}
  70187. 801c6ba: b08d sub sp, #52 @ 0x34
  70188. 801c6bc: af04 add r7, sp, #16
  70189. 801c6be: 6078 str r0, [r7, #4]
  70190. 801c6c0: 6039 str r1, [r7, #0]
  70191. #endif /* SO_REUSE */
  70192. u8_t hdrlen_bytes;
  70193. err_t err;
  70194. LWIP_UNUSED_ARG(inp);
  70195. LWIP_ASSERT_CORE_LOCKED();
  70196. 801c6c2: f7f3 ff3f bl 8010544 <sys_check_core_locking>
  70197. LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL);
  70198. 801c6c6: 687b ldr r3, [r7, #4]
  70199. 801c6c8: 2b00 cmp r3, #0
  70200. 801c6ca: d105 bne.n 801c6d8 <tcp_input+0x20>
  70201. 801c6cc: 4b9b ldr r3, [pc, #620] @ (801c93c <tcp_input+0x284>)
  70202. 801c6ce: 2283 movs r2, #131 @ 0x83
  70203. 801c6d0: 499b ldr r1, [pc, #620] @ (801c940 <tcp_input+0x288>)
  70204. 801c6d2: 489c ldr r0, [pc, #624] @ (801c944 <tcp_input+0x28c>)
  70205. 801c6d4: f00d f982 bl 80299dc <iprintf>
  70206. PERF_START;
  70207. TCP_STATS_INC(tcp.recv);
  70208. MIB2_STATS_INC(mib2.tcpinsegs);
  70209. tcphdr = (struct tcp_hdr *)p->payload;
  70210. 801c6d8: 687b ldr r3, [r7, #4]
  70211. 801c6da: 685b ldr r3, [r3, #4]
  70212. 801c6dc: 4a9a ldr r2, [pc, #616] @ (801c948 <tcp_input+0x290>)
  70213. 801c6de: 6013 str r3, [r2, #0]
  70214. #if TCP_INPUT_DEBUG
  70215. tcp_debug_print(tcphdr);
  70216. #endif
  70217. /* Check that TCP header fits in payload */
  70218. if (p->len < TCP_HLEN) {
  70219. 801c6e0: 687b ldr r3, [r7, #4]
  70220. 801c6e2: 895b ldrh r3, [r3, #10]
  70221. 801c6e4: 2b13 cmp r3, #19
  70222. 801c6e6: f240 83d1 bls.w 801ce8c <tcp_input+0x7d4>
  70223. TCP_STATS_INC(tcp.lenerr);
  70224. goto dropped;
  70225. }
  70226. /* Don't even process incoming broadcasts/multicasts. */
  70227. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  70228. 801c6ea: 4b98 ldr r3, [pc, #608] @ (801c94c <tcp_input+0x294>)
  70229. 801c6ec: 695b ldr r3, [r3, #20]
  70230. 801c6ee: 4a97 ldr r2, [pc, #604] @ (801c94c <tcp_input+0x294>)
  70231. 801c6f0: 6812 ldr r2, [r2, #0]
  70232. 801c6f2: 4611 mov r1, r2
  70233. 801c6f4: 4618 mov r0, r3
  70234. 801c6f6: f008 fc1b bl 8024f30 <ip4_addr_isbroadcast_u32>
  70235. 801c6fa: 4603 mov r3, r0
  70236. 801c6fc: 2b00 cmp r3, #0
  70237. 801c6fe: f040 83c7 bne.w 801ce90 <tcp_input+0x7d8>
  70238. ip_addr_ismulticast(ip_current_dest_addr())) {
  70239. 801c702: 4b92 ldr r3, [pc, #584] @ (801c94c <tcp_input+0x294>)
  70240. 801c704: 695b ldr r3, [r3, #20]
  70241. 801c706: f003 03f0 and.w r3, r3, #240 @ 0xf0
  70242. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  70243. 801c70a: 2be0 cmp r3, #224 @ 0xe0
  70244. 801c70c: f000 83c0 beq.w 801ce90 <tcp_input+0x7d8>
  70245. }
  70246. }
  70247. #endif /* CHECKSUM_CHECK_TCP */
  70248. /* sanity-check header length */
  70249. hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr);
  70250. 801c710: 4b8d ldr r3, [pc, #564] @ (801c948 <tcp_input+0x290>)
  70251. 801c712: 681b ldr r3, [r3, #0]
  70252. 801c714: 899b ldrh r3, [r3, #12]
  70253. 801c716: b29b uxth r3, r3
  70254. 801c718: 4618 mov r0, r3
  70255. 801c71a: f7fc fa05 bl 8018b28 <lwip_htons>
  70256. 801c71e: 4603 mov r3, r0
  70257. 801c720: 0b1b lsrs r3, r3, #12
  70258. 801c722: b29b uxth r3, r3
  70259. 801c724: b2db uxtb r3, r3
  70260. 801c726: 009b lsls r3, r3, #2
  70261. 801c728: 74bb strb r3, [r7, #18]
  70262. if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) {
  70263. 801c72a: 7cbb ldrb r3, [r7, #18]
  70264. 801c72c: 2b13 cmp r3, #19
  70265. 801c72e: f240 83b1 bls.w 801ce94 <tcp_input+0x7dc>
  70266. 801c732: 7cbb ldrb r3, [r7, #18]
  70267. 801c734: b29a uxth r2, r3
  70268. 801c736: 687b ldr r3, [r7, #4]
  70269. 801c738: 891b ldrh r3, [r3, #8]
  70270. 801c73a: 429a cmp r2, r3
  70271. 801c73c: f200 83aa bhi.w 801ce94 <tcp_input+0x7dc>
  70272. goto dropped;
  70273. }
  70274. /* Move the payload pointer in the pbuf so that it points to the
  70275. TCP data instead of the TCP header. */
  70276. tcphdr_optlen = (u16_t)(hdrlen_bytes - TCP_HLEN);
  70277. 801c740: 7cbb ldrb r3, [r7, #18]
  70278. 801c742: b29b uxth r3, r3
  70279. 801c744: 3b14 subs r3, #20
  70280. 801c746: b29a uxth r2, r3
  70281. 801c748: 4b81 ldr r3, [pc, #516] @ (801c950 <tcp_input+0x298>)
  70282. 801c74a: 801a strh r2, [r3, #0]
  70283. tcphdr_opt2 = NULL;
  70284. 801c74c: 4b81 ldr r3, [pc, #516] @ (801c954 <tcp_input+0x29c>)
  70285. 801c74e: 2200 movs r2, #0
  70286. 801c750: 601a str r2, [r3, #0]
  70287. if (p->len >= hdrlen_bytes) {
  70288. 801c752: 687b ldr r3, [r7, #4]
  70289. 801c754: 895a ldrh r2, [r3, #10]
  70290. 801c756: 7cbb ldrb r3, [r7, #18]
  70291. 801c758: b29b uxth r3, r3
  70292. 801c75a: 429a cmp r2, r3
  70293. 801c75c: d309 bcc.n 801c772 <tcp_input+0xba>
  70294. /* all options are in the first pbuf */
  70295. tcphdr_opt1len = tcphdr_optlen;
  70296. 801c75e: 4b7c ldr r3, [pc, #496] @ (801c950 <tcp_input+0x298>)
  70297. 801c760: 881a ldrh r2, [r3, #0]
  70298. 801c762: 4b7d ldr r3, [pc, #500] @ (801c958 <tcp_input+0x2a0>)
  70299. 801c764: 801a strh r2, [r3, #0]
  70300. pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */
  70301. 801c766: 7cbb ldrb r3, [r7, #18]
  70302. 801c768: 4619 mov r1, r3
  70303. 801c76a: 6878 ldr r0, [r7, #4]
  70304. 801c76c: f7fd fe06 bl 801a37c <pbuf_remove_header>
  70305. 801c770: e04e b.n 801c810 <tcp_input+0x158>
  70306. } else {
  70307. u16_t opt2len;
  70308. /* TCP header fits into first pbuf, options don't - data is in the next pbuf */
  70309. /* there must be a next pbuf, due to hdrlen_bytes sanity check above */
  70310. LWIP_ASSERT("p->next != NULL", p->next != NULL);
  70311. 801c772: 687b ldr r3, [r7, #4]
  70312. 801c774: 681b ldr r3, [r3, #0]
  70313. 801c776: 2b00 cmp r3, #0
  70314. 801c778: d105 bne.n 801c786 <tcp_input+0xce>
  70315. 801c77a: 4b70 ldr r3, [pc, #448] @ (801c93c <tcp_input+0x284>)
  70316. 801c77c: 22c2 movs r2, #194 @ 0xc2
  70317. 801c77e: 4977 ldr r1, [pc, #476] @ (801c95c <tcp_input+0x2a4>)
  70318. 801c780: 4870 ldr r0, [pc, #448] @ (801c944 <tcp_input+0x28c>)
  70319. 801c782: f00d f92b bl 80299dc <iprintf>
  70320. /* advance over the TCP header (cannot fail) */
  70321. pbuf_remove_header(p, TCP_HLEN);
  70322. 801c786: 2114 movs r1, #20
  70323. 801c788: 6878 ldr r0, [r7, #4]
  70324. 801c78a: f7fd fdf7 bl 801a37c <pbuf_remove_header>
  70325. /* determine how long the first and second parts of the options are */
  70326. tcphdr_opt1len = p->len;
  70327. 801c78e: 687b ldr r3, [r7, #4]
  70328. 801c790: 895a ldrh r2, [r3, #10]
  70329. 801c792: 4b71 ldr r3, [pc, #452] @ (801c958 <tcp_input+0x2a0>)
  70330. 801c794: 801a strh r2, [r3, #0]
  70331. opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len);
  70332. 801c796: 4b6e ldr r3, [pc, #440] @ (801c950 <tcp_input+0x298>)
  70333. 801c798: 881a ldrh r2, [r3, #0]
  70334. 801c79a: 4b6f ldr r3, [pc, #444] @ (801c958 <tcp_input+0x2a0>)
  70335. 801c79c: 881b ldrh r3, [r3, #0]
  70336. 801c79e: 1ad3 subs r3, r2, r3
  70337. 801c7a0: 823b strh r3, [r7, #16]
  70338. /* options continue in the next pbuf: set p to zero length and hide the
  70339. options in the next pbuf (adjusting p->tot_len) */
  70340. pbuf_remove_header(p, tcphdr_opt1len);
  70341. 801c7a2: 4b6d ldr r3, [pc, #436] @ (801c958 <tcp_input+0x2a0>)
  70342. 801c7a4: 881b ldrh r3, [r3, #0]
  70343. 801c7a6: 4619 mov r1, r3
  70344. 801c7a8: 6878 ldr r0, [r7, #4]
  70345. 801c7aa: f7fd fde7 bl 801a37c <pbuf_remove_header>
  70346. /* check that the options fit in the second pbuf */
  70347. if (opt2len > p->next->len) {
  70348. 801c7ae: 687b ldr r3, [r7, #4]
  70349. 801c7b0: 681b ldr r3, [r3, #0]
  70350. 801c7b2: 895b ldrh r3, [r3, #10]
  70351. 801c7b4: 8a3a ldrh r2, [r7, #16]
  70352. 801c7b6: 429a cmp r2, r3
  70353. 801c7b8: f200 836e bhi.w 801ce98 <tcp_input+0x7e0>
  70354. TCP_STATS_INC(tcp.lenerr);
  70355. goto dropped;
  70356. }
  70357. /* remember the pointer to the second part of the options */
  70358. tcphdr_opt2 = (u8_t *)p->next->payload;
  70359. 801c7bc: 687b ldr r3, [r7, #4]
  70360. 801c7be: 681b ldr r3, [r3, #0]
  70361. 801c7c0: 685b ldr r3, [r3, #4]
  70362. 801c7c2: 4a64 ldr r2, [pc, #400] @ (801c954 <tcp_input+0x29c>)
  70363. 801c7c4: 6013 str r3, [r2, #0]
  70364. /* advance p->next to point after the options, and manually
  70365. adjust p->tot_len to keep it consistent with the changed p->next */
  70366. pbuf_remove_header(p->next, opt2len);
  70367. 801c7c6: 687b ldr r3, [r7, #4]
  70368. 801c7c8: 681b ldr r3, [r3, #0]
  70369. 801c7ca: 8a3a ldrh r2, [r7, #16]
  70370. 801c7cc: 4611 mov r1, r2
  70371. 801c7ce: 4618 mov r0, r3
  70372. 801c7d0: f7fd fdd4 bl 801a37c <pbuf_remove_header>
  70373. p->tot_len = (u16_t)(p->tot_len - opt2len);
  70374. 801c7d4: 687b ldr r3, [r7, #4]
  70375. 801c7d6: 891a ldrh r2, [r3, #8]
  70376. 801c7d8: 8a3b ldrh r3, [r7, #16]
  70377. 801c7da: 1ad3 subs r3, r2, r3
  70378. 801c7dc: b29a uxth r2, r3
  70379. 801c7de: 687b ldr r3, [r7, #4]
  70380. 801c7e0: 811a strh r2, [r3, #8]
  70381. LWIP_ASSERT("p->len == 0", p->len == 0);
  70382. 801c7e2: 687b ldr r3, [r7, #4]
  70383. 801c7e4: 895b ldrh r3, [r3, #10]
  70384. 801c7e6: 2b00 cmp r3, #0
  70385. 801c7e8: d005 beq.n 801c7f6 <tcp_input+0x13e>
  70386. 801c7ea: 4b54 ldr r3, [pc, #336] @ (801c93c <tcp_input+0x284>)
  70387. 801c7ec: 22df movs r2, #223 @ 0xdf
  70388. 801c7ee: 495c ldr r1, [pc, #368] @ (801c960 <tcp_input+0x2a8>)
  70389. 801c7f0: 4854 ldr r0, [pc, #336] @ (801c944 <tcp_input+0x28c>)
  70390. 801c7f2: f00d f8f3 bl 80299dc <iprintf>
  70391. LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
  70392. 801c7f6: 687b ldr r3, [r7, #4]
  70393. 801c7f8: 891a ldrh r2, [r3, #8]
  70394. 801c7fa: 687b ldr r3, [r7, #4]
  70395. 801c7fc: 681b ldr r3, [r3, #0]
  70396. 801c7fe: 891b ldrh r3, [r3, #8]
  70397. 801c800: 429a cmp r2, r3
  70398. 801c802: d005 beq.n 801c810 <tcp_input+0x158>
  70399. 801c804: 4b4d ldr r3, [pc, #308] @ (801c93c <tcp_input+0x284>)
  70400. 801c806: 22e0 movs r2, #224 @ 0xe0
  70401. 801c808: 4956 ldr r1, [pc, #344] @ (801c964 <tcp_input+0x2ac>)
  70402. 801c80a: 484e ldr r0, [pc, #312] @ (801c944 <tcp_input+0x28c>)
  70403. 801c80c: f00d f8e6 bl 80299dc <iprintf>
  70404. }
  70405. /* Convert fields in TCP header to host byte order. */
  70406. tcphdr->src = lwip_ntohs(tcphdr->src);
  70407. 801c810: 4b4d ldr r3, [pc, #308] @ (801c948 <tcp_input+0x290>)
  70408. 801c812: 681b ldr r3, [r3, #0]
  70409. 801c814: 881b ldrh r3, [r3, #0]
  70410. 801c816: b29b uxth r3, r3
  70411. 801c818: 4a4b ldr r2, [pc, #300] @ (801c948 <tcp_input+0x290>)
  70412. 801c81a: 6814 ldr r4, [r2, #0]
  70413. 801c81c: 4618 mov r0, r3
  70414. 801c81e: f7fc f983 bl 8018b28 <lwip_htons>
  70415. 801c822: 4603 mov r3, r0
  70416. 801c824: 8023 strh r3, [r4, #0]
  70417. tcphdr->dest = lwip_ntohs(tcphdr->dest);
  70418. 801c826: 4b48 ldr r3, [pc, #288] @ (801c948 <tcp_input+0x290>)
  70419. 801c828: 681b ldr r3, [r3, #0]
  70420. 801c82a: 885b ldrh r3, [r3, #2]
  70421. 801c82c: b29b uxth r3, r3
  70422. 801c82e: 4a46 ldr r2, [pc, #280] @ (801c948 <tcp_input+0x290>)
  70423. 801c830: 6814 ldr r4, [r2, #0]
  70424. 801c832: 4618 mov r0, r3
  70425. 801c834: f7fc f978 bl 8018b28 <lwip_htons>
  70426. 801c838: 4603 mov r3, r0
  70427. 801c83a: 8063 strh r3, [r4, #2]
  70428. seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno);
  70429. 801c83c: 4b42 ldr r3, [pc, #264] @ (801c948 <tcp_input+0x290>)
  70430. 801c83e: 681b ldr r3, [r3, #0]
  70431. 801c840: 685b ldr r3, [r3, #4]
  70432. 801c842: 4a41 ldr r2, [pc, #260] @ (801c948 <tcp_input+0x290>)
  70433. 801c844: 6814 ldr r4, [r2, #0]
  70434. 801c846: 4618 mov r0, r3
  70435. 801c848: f7fc f983 bl 8018b52 <lwip_htonl>
  70436. 801c84c: 4603 mov r3, r0
  70437. 801c84e: 6063 str r3, [r4, #4]
  70438. 801c850: 6863 ldr r3, [r4, #4]
  70439. 801c852: 4a45 ldr r2, [pc, #276] @ (801c968 <tcp_input+0x2b0>)
  70440. 801c854: 6013 str r3, [r2, #0]
  70441. ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno);
  70442. 801c856: 4b3c ldr r3, [pc, #240] @ (801c948 <tcp_input+0x290>)
  70443. 801c858: 681b ldr r3, [r3, #0]
  70444. 801c85a: 689b ldr r3, [r3, #8]
  70445. 801c85c: 4a3a ldr r2, [pc, #232] @ (801c948 <tcp_input+0x290>)
  70446. 801c85e: 6814 ldr r4, [r2, #0]
  70447. 801c860: 4618 mov r0, r3
  70448. 801c862: f7fc f976 bl 8018b52 <lwip_htonl>
  70449. 801c866: 4603 mov r3, r0
  70450. 801c868: 60a3 str r3, [r4, #8]
  70451. 801c86a: 68a3 ldr r3, [r4, #8]
  70452. 801c86c: 4a3f ldr r2, [pc, #252] @ (801c96c <tcp_input+0x2b4>)
  70453. 801c86e: 6013 str r3, [r2, #0]
  70454. tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
  70455. 801c870: 4b35 ldr r3, [pc, #212] @ (801c948 <tcp_input+0x290>)
  70456. 801c872: 681b ldr r3, [r3, #0]
  70457. 801c874: 89db ldrh r3, [r3, #14]
  70458. 801c876: b29b uxth r3, r3
  70459. 801c878: 4a33 ldr r2, [pc, #204] @ (801c948 <tcp_input+0x290>)
  70460. 801c87a: 6814 ldr r4, [r2, #0]
  70461. 801c87c: 4618 mov r0, r3
  70462. 801c87e: f7fc f953 bl 8018b28 <lwip_htons>
  70463. 801c882: 4603 mov r3, r0
  70464. 801c884: 81e3 strh r3, [r4, #14]
  70465. flags = TCPH_FLAGS(tcphdr);
  70466. 801c886: 4b30 ldr r3, [pc, #192] @ (801c948 <tcp_input+0x290>)
  70467. 801c888: 681b ldr r3, [r3, #0]
  70468. 801c88a: 899b ldrh r3, [r3, #12]
  70469. 801c88c: b29b uxth r3, r3
  70470. 801c88e: 4618 mov r0, r3
  70471. 801c890: f7fc f94a bl 8018b28 <lwip_htons>
  70472. 801c894: 4603 mov r3, r0
  70473. 801c896: b2db uxtb r3, r3
  70474. 801c898: f003 033f and.w r3, r3, #63 @ 0x3f
  70475. 801c89c: b2da uxtb r2, r3
  70476. 801c89e: 4b34 ldr r3, [pc, #208] @ (801c970 <tcp_input+0x2b8>)
  70477. 801c8a0: 701a strb r2, [r3, #0]
  70478. tcplen = p->tot_len;
  70479. 801c8a2: 687b ldr r3, [r7, #4]
  70480. 801c8a4: 891a ldrh r2, [r3, #8]
  70481. 801c8a6: 4b33 ldr r3, [pc, #204] @ (801c974 <tcp_input+0x2bc>)
  70482. 801c8a8: 801a strh r2, [r3, #0]
  70483. if (flags & (TCP_FIN | TCP_SYN)) {
  70484. 801c8aa: 4b31 ldr r3, [pc, #196] @ (801c970 <tcp_input+0x2b8>)
  70485. 801c8ac: 781b ldrb r3, [r3, #0]
  70486. 801c8ae: f003 0303 and.w r3, r3, #3
  70487. 801c8b2: 2b00 cmp r3, #0
  70488. 801c8b4: d00c beq.n 801c8d0 <tcp_input+0x218>
  70489. tcplen++;
  70490. 801c8b6: 4b2f ldr r3, [pc, #188] @ (801c974 <tcp_input+0x2bc>)
  70491. 801c8b8: 881b ldrh r3, [r3, #0]
  70492. 801c8ba: 3301 adds r3, #1
  70493. 801c8bc: b29a uxth r2, r3
  70494. 801c8be: 4b2d ldr r3, [pc, #180] @ (801c974 <tcp_input+0x2bc>)
  70495. 801c8c0: 801a strh r2, [r3, #0]
  70496. if (tcplen < p->tot_len) {
  70497. 801c8c2: 687b ldr r3, [r7, #4]
  70498. 801c8c4: 891a ldrh r2, [r3, #8]
  70499. 801c8c6: 4b2b ldr r3, [pc, #172] @ (801c974 <tcp_input+0x2bc>)
  70500. 801c8c8: 881b ldrh r3, [r3, #0]
  70501. 801c8ca: 429a cmp r2, r3
  70502. 801c8cc: f200 82e6 bhi.w 801ce9c <tcp_input+0x7e4>
  70503. }
  70504. }
  70505. /* Demultiplex an incoming segment. First, we check if it is destined
  70506. for an active connection. */
  70507. prev = NULL;
  70508. 801c8d0: 2300 movs r3, #0
  70509. 801c8d2: 61fb str r3, [r7, #28]
  70510. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70511. 801c8d4: 4b28 ldr r3, [pc, #160] @ (801c978 <tcp_input+0x2c0>)
  70512. 801c8d6: 681b ldr r3, [r3, #0]
  70513. 801c8d8: 61bb str r3, [r7, #24]
  70514. 801c8da: e09d b.n 801ca18 <tcp_input+0x360>
  70515. LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
  70516. 801c8dc: 69bb ldr r3, [r7, #24]
  70517. 801c8de: 7d1b ldrb r3, [r3, #20]
  70518. 801c8e0: 2b00 cmp r3, #0
  70519. 801c8e2: d105 bne.n 801c8f0 <tcp_input+0x238>
  70520. 801c8e4: 4b15 ldr r3, [pc, #84] @ (801c93c <tcp_input+0x284>)
  70521. 801c8e6: 22fb movs r2, #251 @ 0xfb
  70522. 801c8e8: 4924 ldr r1, [pc, #144] @ (801c97c <tcp_input+0x2c4>)
  70523. 801c8ea: 4816 ldr r0, [pc, #88] @ (801c944 <tcp_input+0x28c>)
  70524. 801c8ec: f00d f876 bl 80299dc <iprintf>
  70525. LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
  70526. 801c8f0: 69bb ldr r3, [r7, #24]
  70527. 801c8f2: 7d1b ldrb r3, [r3, #20]
  70528. 801c8f4: 2b0a cmp r3, #10
  70529. 801c8f6: d105 bne.n 801c904 <tcp_input+0x24c>
  70530. 801c8f8: 4b10 ldr r3, [pc, #64] @ (801c93c <tcp_input+0x284>)
  70531. 801c8fa: 22fc movs r2, #252 @ 0xfc
  70532. 801c8fc: 4920 ldr r1, [pc, #128] @ (801c980 <tcp_input+0x2c8>)
  70533. 801c8fe: 4811 ldr r0, [pc, #68] @ (801c944 <tcp_input+0x28c>)
  70534. 801c900: f00d f86c bl 80299dc <iprintf>
  70535. LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
  70536. 801c904: 69bb ldr r3, [r7, #24]
  70537. 801c906: 7d1b ldrb r3, [r3, #20]
  70538. 801c908: 2b01 cmp r3, #1
  70539. 801c90a: d105 bne.n 801c918 <tcp_input+0x260>
  70540. 801c90c: 4b0b ldr r3, [pc, #44] @ (801c93c <tcp_input+0x284>)
  70541. 801c90e: 22fd movs r2, #253 @ 0xfd
  70542. 801c910: 491c ldr r1, [pc, #112] @ (801c984 <tcp_input+0x2cc>)
  70543. 801c912: 480c ldr r0, [pc, #48] @ (801c944 <tcp_input+0x28c>)
  70544. 801c914: f00d f862 bl 80299dc <iprintf>
  70545. /* check if PCB is bound to specific netif */
  70546. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  70547. 801c918: 69bb ldr r3, [r7, #24]
  70548. 801c91a: 7a1b ldrb r3, [r3, #8]
  70549. 801c91c: 2b00 cmp r3, #0
  70550. 801c91e: d033 beq.n 801c988 <tcp_input+0x2d0>
  70551. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  70552. 801c920: 69bb ldr r3, [r7, #24]
  70553. 801c922: 7a1a ldrb r2, [r3, #8]
  70554. 801c924: 4b09 ldr r3, [pc, #36] @ (801c94c <tcp_input+0x294>)
  70555. 801c926: 685b ldr r3, [r3, #4]
  70556. 801c928: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  70557. 801c92c: 3301 adds r3, #1
  70558. 801c92e: b2db uxtb r3, r3
  70559. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  70560. 801c930: 429a cmp r2, r3
  70561. 801c932: d029 beq.n 801c988 <tcp_input+0x2d0>
  70562. prev = pcb;
  70563. 801c934: 69bb ldr r3, [r7, #24]
  70564. 801c936: 61fb str r3, [r7, #28]
  70565. continue;
  70566. 801c938: e06b b.n 801ca12 <tcp_input+0x35a>
  70567. 801c93a: bf00 nop
  70568. 801c93c: 0802ed58 .word 0x0802ed58
  70569. 801c940: 0802ed8c .word 0x0802ed8c
  70570. 801c944: 0802eda4 .word 0x0802eda4
  70571. 801c948: 2402aeb4 .word 0x2402aeb4
  70572. 801c94c: 24024338 .word 0x24024338
  70573. 801c950: 2402aeb8 .word 0x2402aeb8
  70574. 801c954: 2402aebc .word 0x2402aebc
  70575. 801c958: 2402aeba .word 0x2402aeba
  70576. 801c95c: 0802edcc .word 0x0802edcc
  70577. 801c960: 0802eddc .word 0x0802eddc
  70578. 801c964: 0802ede8 .word 0x0802ede8
  70579. 801c968: 2402aec4 .word 0x2402aec4
  70580. 801c96c: 2402aec8 .word 0x2402aec8
  70581. 801c970: 2402aed0 .word 0x2402aed0
  70582. 801c974: 2402aece .word 0x2402aece
  70583. 801c978: 2402ae94 .word 0x2402ae94
  70584. 801c97c: 0802ee08 .word 0x0802ee08
  70585. 801c980: 0802ee30 .word 0x0802ee30
  70586. 801c984: 0802ee5c .word 0x0802ee5c
  70587. }
  70588. if (pcb->remote_port == tcphdr->src &&
  70589. 801c988: 69bb ldr r3, [r7, #24]
  70590. 801c98a: 8b1a ldrh r2, [r3, #24]
  70591. 801c98c: 4b72 ldr r3, [pc, #456] @ (801cb58 <tcp_input+0x4a0>)
  70592. 801c98e: 681b ldr r3, [r3, #0]
  70593. 801c990: 881b ldrh r3, [r3, #0]
  70594. 801c992: b29b uxth r3, r3
  70595. 801c994: 429a cmp r2, r3
  70596. 801c996: d13a bne.n 801ca0e <tcp_input+0x356>
  70597. pcb->local_port == tcphdr->dest &&
  70598. 801c998: 69bb ldr r3, [r7, #24]
  70599. 801c99a: 8ada ldrh r2, [r3, #22]
  70600. 801c99c: 4b6e ldr r3, [pc, #440] @ (801cb58 <tcp_input+0x4a0>)
  70601. 801c99e: 681b ldr r3, [r3, #0]
  70602. 801c9a0: 885b ldrh r3, [r3, #2]
  70603. 801c9a2: b29b uxth r3, r3
  70604. if (pcb->remote_port == tcphdr->src &&
  70605. 801c9a4: 429a cmp r2, r3
  70606. 801c9a6: d132 bne.n 801ca0e <tcp_input+0x356>
  70607. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  70608. 801c9a8: 69bb ldr r3, [r7, #24]
  70609. 801c9aa: 685a ldr r2, [r3, #4]
  70610. 801c9ac: 4b6b ldr r3, [pc, #428] @ (801cb5c <tcp_input+0x4a4>)
  70611. 801c9ae: 691b ldr r3, [r3, #16]
  70612. pcb->local_port == tcphdr->dest &&
  70613. 801c9b0: 429a cmp r2, r3
  70614. 801c9b2: d12c bne.n 801ca0e <tcp_input+0x356>
  70615. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  70616. 801c9b4: 69bb ldr r3, [r7, #24]
  70617. 801c9b6: 681a ldr r2, [r3, #0]
  70618. 801c9b8: 4b68 ldr r3, [pc, #416] @ (801cb5c <tcp_input+0x4a4>)
  70619. 801c9ba: 695b ldr r3, [r3, #20]
  70620. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  70621. 801c9bc: 429a cmp r2, r3
  70622. 801c9be: d126 bne.n 801ca0e <tcp_input+0x356>
  70623. /* Move this PCB to the front of the list so that subsequent
  70624. lookups will be faster (we exploit locality in TCP segment
  70625. arrivals). */
  70626. LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb);
  70627. 801c9c0: 69bb ldr r3, [r7, #24]
  70628. 801c9c2: 68db ldr r3, [r3, #12]
  70629. 801c9c4: 69ba ldr r2, [r7, #24]
  70630. 801c9c6: 429a cmp r2, r3
  70631. 801c9c8: d106 bne.n 801c9d8 <tcp_input+0x320>
  70632. 801c9ca: 4b65 ldr r3, [pc, #404] @ (801cb60 <tcp_input+0x4a8>)
  70633. 801c9cc: f240 120d movw r2, #269 @ 0x10d
  70634. 801c9d0: 4964 ldr r1, [pc, #400] @ (801cb64 <tcp_input+0x4ac>)
  70635. 801c9d2: 4865 ldr r0, [pc, #404] @ (801cb68 <tcp_input+0x4b0>)
  70636. 801c9d4: f00d f802 bl 80299dc <iprintf>
  70637. if (prev != NULL) {
  70638. 801c9d8: 69fb ldr r3, [r7, #28]
  70639. 801c9da: 2b00 cmp r3, #0
  70640. 801c9dc: d00a beq.n 801c9f4 <tcp_input+0x33c>
  70641. prev->next = pcb->next;
  70642. 801c9de: 69bb ldr r3, [r7, #24]
  70643. 801c9e0: 68da ldr r2, [r3, #12]
  70644. 801c9e2: 69fb ldr r3, [r7, #28]
  70645. 801c9e4: 60da str r2, [r3, #12]
  70646. pcb->next = tcp_active_pcbs;
  70647. 801c9e6: 4b61 ldr r3, [pc, #388] @ (801cb6c <tcp_input+0x4b4>)
  70648. 801c9e8: 681a ldr r2, [r3, #0]
  70649. 801c9ea: 69bb ldr r3, [r7, #24]
  70650. 801c9ec: 60da str r2, [r3, #12]
  70651. tcp_active_pcbs = pcb;
  70652. 801c9ee: 4a5f ldr r2, [pc, #380] @ (801cb6c <tcp_input+0x4b4>)
  70653. 801c9f0: 69bb ldr r3, [r7, #24]
  70654. 801c9f2: 6013 str r3, [r2, #0]
  70655. } else {
  70656. TCP_STATS_INC(tcp.cachehit);
  70657. }
  70658. LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb);
  70659. 801c9f4: 69bb ldr r3, [r7, #24]
  70660. 801c9f6: 68db ldr r3, [r3, #12]
  70661. 801c9f8: 69ba ldr r2, [r7, #24]
  70662. 801c9fa: 429a cmp r2, r3
  70663. 801c9fc: d111 bne.n 801ca22 <tcp_input+0x36a>
  70664. 801c9fe: 4b58 ldr r3, [pc, #352] @ (801cb60 <tcp_input+0x4a8>)
  70665. 801ca00: f240 1215 movw r2, #277 @ 0x115
  70666. 801ca04: 495a ldr r1, [pc, #360] @ (801cb70 <tcp_input+0x4b8>)
  70667. 801ca06: 4858 ldr r0, [pc, #352] @ (801cb68 <tcp_input+0x4b0>)
  70668. 801ca08: f00c ffe8 bl 80299dc <iprintf>
  70669. break;
  70670. 801ca0c: e009 b.n 801ca22 <tcp_input+0x36a>
  70671. }
  70672. prev = pcb;
  70673. 801ca0e: 69bb ldr r3, [r7, #24]
  70674. 801ca10: 61fb str r3, [r7, #28]
  70675. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70676. 801ca12: 69bb ldr r3, [r7, #24]
  70677. 801ca14: 68db ldr r3, [r3, #12]
  70678. 801ca16: 61bb str r3, [r7, #24]
  70679. 801ca18: 69bb ldr r3, [r7, #24]
  70680. 801ca1a: 2b00 cmp r3, #0
  70681. 801ca1c: f47f af5e bne.w 801c8dc <tcp_input+0x224>
  70682. 801ca20: e000 b.n 801ca24 <tcp_input+0x36c>
  70683. break;
  70684. 801ca22: bf00 nop
  70685. }
  70686. if (pcb == NULL) {
  70687. 801ca24: 69bb ldr r3, [r7, #24]
  70688. 801ca26: 2b00 cmp r3, #0
  70689. 801ca28: f040 80aa bne.w 801cb80 <tcp_input+0x4c8>
  70690. /* If it did not go to an active connection, we check the connections
  70691. in the TIME-WAIT state. */
  70692. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  70693. 801ca2c: 4b51 ldr r3, [pc, #324] @ (801cb74 <tcp_input+0x4bc>)
  70694. 801ca2e: 681b ldr r3, [r3, #0]
  70695. 801ca30: 61bb str r3, [r7, #24]
  70696. 801ca32: e03f b.n 801cab4 <tcp_input+0x3fc>
  70697. LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  70698. 801ca34: 69bb ldr r3, [r7, #24]
  70699. 801ca36: 7d1b ldrb r3, [r3, #20]
  70700. 801ca38: 2b0a cmp r3, #10
  70701. 801ca3a: d006 beq.n 801ca4a <tcp_input+0x392>
  70702. 801ca3c: 4b48 ldr r3, [pc, #288] @ (801cb60 <tcp_input+0x4a8>)
  70703. 801ca3e: f240 121f movw r2, #287 @ 0x11f
  70704. 801ca42: 494d ldr r1, [pc, #308] @ (801cb78 <tcp_input+0x4c0>)
  70705. 801ca44: 4848 ldr r0, [pc, #288] @ (801cb68 <tcp_input+0x4b0>)
  70706. 801ca46: f00c ffc9 bl 80299dc <iprintf>
  70707. /* check if PCB is bound to specific netif */
  70708. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  70709. 801ca4a: 69bb ldr r3, [r7, #24]
  70710. 801ca4c: 7a1b ldrb r3, [r3, #8]
  70711. 801ca4e: 2b00 cmp r3, #0
  70712. 801ca50: d009 beq.n 801ca66 <tcp_input+0x3ae>
  70713. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  70714. 801ca52: 69bb ldr r3, [r7, #24]
  70715. 801ca54: 7a1a ldrb r2, [r3, #8]
  70716. 801ca56: 4b41 ldr r3, [pc, #260] @ (801cb5c <tcp_input+0x4a4>)
  70717. 801ca58: 685b ldr r3, [r3, #4]
  70718. 801ca5a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  70719. 801ca5e: 3301 adds r3, #1
  70720. 801ca60: b2db uxtb r3, r3
  70721. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  70722. 801ca62: 429a cmp r2, r3
  70723. 801ca64: d122 bne.n 801caac <tcp_input+0x3f4>
  70724. continue;
  70725. }
  70726. if (pcb->remote_port == tcphdr->src &&
  70727. 801ca66: 69bb ldr r3, [r7, #24]
  70728. 801ca68: 8b1a ldrh r2, [r3, #24]
  70729. 801ca6a: 4b3b ldr r3, [pc, #236] @ (801cb58 <tcp_input+0x4a0>)
  70730. 801ca6c: 681b ldr r3, [r3, #0]
  70731. 801ca6e: 881b ldrh r3, [r3, #0]
  70732. 801ca70: b29b uxth r3, r3
  70733. 801ca72: 429a cmp r2, r3
  70734. 801ca74: d11b bne.n 801caae <tcp_input+0x3f6>
  70735. pcb->local_port == tcphdr->dest &&
  70736. 801ca76: 69bb ldr r3, [r7, #24]
  70737. 801ca78: 8ada ldrh r2, [r3, #22]
  70738. 801ca7a: 4b37 ldr r3, [pc, #220] @ (801cb58 <tcp_input+0x4a0>)
  70739. 801ca7c: 681b ldr r3, [r3, #0]
  70740. 801ca7e: 885b ldrh r3, [r3, #2]
  70741. 801ca80: b29b uxth r3, r3
  70742. if (pcb->remote_port == tcphdr->src &&
  70743. 801ca82: 429a cmp r2, r3
  70744. 801ca84: d113 bne.n 801caae <tcp_input+0x3f6>
  70745. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  70746. 801ca86: 69bb ldr r3, [r7, #24]
  70747. 801ca88: 685a ldr r2, [r3, #4]
  70748. 801ca8a: 4b34 ldr r3, [pc, #208] @ (801cb5c <tcp_input+0x4a4>)
  70749. 801ca8c: 691b ldr r3, [r3, #16]
  70750. pcb->local_port == tcphdr->dest &&
  70751. 801ca8e: 429a cmp r2, r3
  70752. 801ca90: d10d bne.n 801caae <tcp_input+0x3f6>
  70753. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  70754. 801ca92: 69bb ldr r3, [r7, #24]
  70755. 801ca94: 681a ldr r2, [r3, #0]
  70756. 801ca96: 4b31 ldr r3, [pc, #196] @ (801cb5c <tcp_input+0x4a4>)
  70757. 801ca98: 695b ldr r3, [r3, #20]
  70758. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  70759. 801ca9a: 429a cmp r2, r3
  70760. 801ca9c: d107 bne.n 801caae <tcp_input+0x3f6>
  70761. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  70762. if (LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, tcphdr_opt1len,
  70763. tcphdr_opt2, p) == ERR_OK)
  70764. #endif
  70765. {
  70766. tcp_timewait_input(pcb);
  70767. 801ca9e: 69b8 ldr r0, [r7, #24]
  70768. 801caa0: f000 fb56 bl 801d150 <tcp_timewait_input>
  70769. }
  70770. pbuf_free(p);
  70771. 801caa4: 6878 ldr r0, [r7, #4]
  70772. 801caa6: f7fd fd21 bl 801a4ec <pbuf_free>
  70773. return;
  70774. 801caaa: e1fd b.n 801cea8 <tcp_input+0x7f0>
  70775. continue;
  70776. 801caac: bf00 nop
  70777. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  70778. 801caae: 69bb ldr r3, [r7, #24]
  70779. 801cab0: 68db ldr r3, [r3, #12]
  70780. 801cab2: 61bb str r3, [r7, #24]
  70781. 801cab4: 69bb ldr r3, [r7, #24]
  70782. 801cab6: 2b00 cmp r3, #0
  70783. 801cab8: d1bc bne.n 801ca34 <tcp_input+0x37c>
  70784. }
  70785. }
  70786. /* Finally, if we still did not get a match, we check all PCBs that
  70787. are LISTENing for incoming connections. */
  70788. prev = NULL;
  70789. 801caba: 2300 movs r3, #0
  70790. 801cabc: 61fb str r3, [r7, #28]
  70791. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  70792. 801cabe: 4b2f ldr r3, [pc, #188] @ (801cb7c <tcp_input+0x4c4>)
  70793. 801cac0: 681b ldr r3, [r3, #0]
  70794. 801cac2: 617b str r3, [r7, #20]
  70795. 801cac4: e02a b.n 801cb1c <tcp_input+0x464>
  70796. /* check if PCB is bound to specific netif */
  70797. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  70798. 801cac6: 697b ldr r3, [r7, #20]
  70799. 801cac8: 7a1b ldrb r3, [r3, #8]
  70800. 801caca: 2b00 cmp r3, #0
  70801. 801cacc: d00c beq.n 801cae8 <tcp_input+0x430>
  70802. (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  70803. 801cace: 697b ldr r3, [r7, #20]
  70804. 801cad0: 7a1a ldrb r2, [r3, #8]
  70805. 801cad2: 4b22 ldr r3, [pc, #136] @ (801cb5c <tcp_input+0x4a4>)
  70806. 801cad4: 685b ldr r3, [r3, #4]
  70807. 801cad6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  70808. 801cada: 3301 adds r3, #1
  70809. 801cadc: b2db uxtb r3, r3
  70810. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  70811. 801cade: 429a cmp r2, r3
  70812. 801cae0: d002 beq.n 801cae8 <tcp_input+0x430>
  70813. prev = (struct tcp_pcb *)lpcb;
  70814. 801cae2: 697b ldr r3, [r7, #20]
  70815. 801cae4: 61fb str r3, [r7, #28]
  70816. continue;
  70817. 801cae6: e016 b.n 801cb16 <tcp_input+0x45e>
  70818. }
  70819. if (lpcb->local_port == tcphdr->dest) {
  70820. 801cae8: 697b ldr r3, [r7, #20]
  70821. 801caea: 8ada ldrh r2, [r3, #22]
  70822. 801caec: 4b1a ldr r3, [pc, #104] @ (801cb58 <tcp_input+0x4a0>)
  70823. 801caee: 681b ldr r3, [r3, #0]
  70824. 801caf0: 885b ldrh r3, [r3, #2]
  70825. 801caf2: b29b uxth r3, r3
  70826. 801caf4: 429a cmp r2, r3
  70827. 801caf6: d10c bne.n 801cb12 <tcp_input+0x45a>
  70828. lpcb_prev = prev;
  70829. #else /* SO_REUSE */
  70830. break;
  70831. #endif /* SO_REUSE */
  70832. } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) {
  70833. if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) {
  70834. 801caf8: 697b ldr r3, [r7, #20]
  70835. 801cafa: 681a ldr r2, [r3, #0]
  70836. 801cafc: 4b17 ldr r3, [pc, #92] @ (801cb5c <tcp_input+0x4a4>)
  70837. 801cafe: 695b ldr r3, [r3, #20]
  70838. 801cb00: 429a cmp r2, r3
  70839. 801cb02: d00f beq.n 801cb24 <tcp_input+0x46c>
  70840. /* found an exact match */
  70841. break;
  70842. } else if (ip_addr_isany(&lpcb->local_ip)) {
  70843. 801cb04: 697b ldr r3, [r7, #20]
  70844. 801cb06: 2b00 cmp r3, #0
  70845. 801cb08: d00d beq.n 801cb26 <tcp_input+0x46e>
  70846. 801cb0a: 697b ldr r3, [r7, #20]
  70847. 801cb0c: 681b ldr r3, [r3, #0]
  70848. 801cb0e: 2b00 cmp r3, #0
  70849. 801cb10: d009 beq.n 801cb26 <tcp_input+0x46e>
  70850. break;
  70851. #endif /* SO_REUSE */
  70852. }
  70853. }
  70854. }
  70855. prev = (struct tcp_pcb *)lpcb;
  70856. 801cb12: 697b ldr r3, [r7, #20]
  70857. 801cb14: 61fb str r3, [r7, #28]
  70858. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  70859. 801cb16: 697b ldr r3, [r7, #20]
  70860. 801cb18: 68db ldr r3, [r3, #12]
  70861. 801cb1a: 617b str r3, [r7, #20]
  70862. 801cb1c: 697b ldr r3, [r7, #20]
  70863. 801cb1e: 2b00 cmp r3, #0
  70864. 801cb20: d1d1 bne.n 801cac6 <tcp_input+0x40e>
  70865. 801cb22: e000 b.n 801cb26 <tcp_input+0x46e>
  70866. break;
  70867. 801cb24: bf00 nop
  70868. /* only pass to ANY if no specific local IP has been found */
  70869. lpcb = lpcb_any;
  70870. prev = lpcb_prev;
  70871. }
  70872. #endif /* SO_REUSE */
  70873. if (lpcb != NULL) {
  70874. 801cb26: 697b ldr r3, [r7, #20]
  70875. 801cb28: 2b00 cmp r3, #0
  70876. 801cb2a: d029 beq.n 801cb80 <tcp_input+0x4c8>
  70877. /* Move this PCB to the front of the list so that subsequent
  70878. lookups will be faster (we exploit locality in TCP segment
  70879. arrivals). */
  70880. if (prev != NULL) {
  70881. 801cb2c: 69fb ldr r3, [r7, #28]
  70882. 801cb2e: 2b00 cmp r3, #0
  70883. 801cb30: d00a beq.n 801cb48 <tcp_input+0x490>
  70884. ((struct tcp_pcb_listen *)prev)->next = lpcb->next;
  70885. 801cb32: 697b ldr r3, [r7, #20]
  70886. 801cb34: 68da ldr r2, [r3, #12]
  70887. 801cb36: 69fb ldr r3, [r7, #28]
  70888. 801cb38: 60da str r2, [r3, #12]
  70889. /* our successor is the remainder of the listening list */
  70890. lpcb->next = tcp_listen_pcbs.listen_pcbs;
  70891. 801cb3a: 4b10 ldr r3, [pc, #64] @ (801cb7c <tcp_input+0x4c4>)
  70892. 801cb3c: 681a ldr r2, [r3, #0]
  70893. 801cb3e: 697b ldr r3, [r7, #20]
  70894. 801cb40: 60da str r2, [r3, #12]
  70895. /* put this listening pcb at the head of the listening list */
  70896. tcp_listen_pcbs.listen_pcbs = lpcb;
  70897. 801cb42: 4a0e ldr r2, [pc, #56] @ (801cb7c <tcp_input+0x4c4>)
  70898. 801cb44: 697b ldr r3, [r7, #20]
  70899. 801cb46: 6013 str r3, [r2, #0]
  70900. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  70901. if (LWIP_HOOK_TCP_INPACKET_PCB((struct tcp_pcb *)lpcb, tcphdr, tcphdr_optlen,
  70902. tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK)
  70903. #endif
  70904. {
  70905. tcp_listen_input(lpcb);
  70906. 801cb48: 6978 ldr r0, [r7, #20]
  70907. 801cb4a: f000 fa03 bl 801cf54 <tcp_listen_input>
  70908. }
  70909. pbuf_free(p);
  70910. 801cb4e: 6878 ldr r0, [r7, #4]
  70911. 801cb50: f7fd fccc bl 801a4ec <pbuf_free>
  70912. return;
  70913. 801cb54: e1a8 b.n 801cea8 <tcp_input+0x7f0>
  70914. 801cb56: bf00 nop
  70915. 801cb58: 2402aeb4 .word 0x2402aeb4
  70916. 801cb5c: 24024338 .word 0x24024338
  70917. 801cb60: 0802ed58 .word 0x0802ed58
  70918. 801cb64: 0802ee84 .word 0x0802ee84
  70919. 801cb68: 0802eda4 .word 0x0802eda4
  70920. 801cb6c: 2402ae94 .word 0x2402ae94
  70921. 801cb70: 0802eeb0 .word 0x0802eeb0
  70922. 801cb74: 2402ae98 .word 0x2402ae98
  70923. 801cb78: 0802eedc .word 0x0802eedc
  70924. 801cb7c: 2402ae90 .word 0x2402ae90
  70925. tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) {
  70926. pbuf_free(p);
  70927. return;
  70928. }
  70929. #endif
  70930. if (pcb != NULL) {
  70931. 801cb80: 69bb ldr r3, [r7, #24]
  70932. 801cb82: 2b00 cmp r3, #0
  70933. 801cb84: f000 8158 beq.w 801ce38 <tcp_input+0x780>
  70934. #if TCP_INPUT_DEBUG
  70935. tcp_debug_print_state(pcb->state);
  70936. #endif /* TCP_INPUT_DEBUG */
  70937. /* Set up a tcp_seg structure. */
  70938. inseg.next = NULL;
  70939. 801cb88: 4b95 ldr r3, [pc, #596] @ (801cde0 <tcp_input+0x728>)
  70940. 801cb8a: 2200 movs r2, #0
  70941. 801cb8c: 601a str r2, [r3, #0]
  70942. inseg.len = p->tot_len;
  70943. 801cb8e: 687b ldr r3, [r7, #4]
  70944. 801cb90: 891a ldrh r2, [r3, #8]
  70945. 801cb92: 4b93 ldr r3, [pc, #588] @ (801cde0 <tcp_input+0x728>)
  70946. 801cb94: 811a strh r2, [r3, #8]
  70947. inseg.p = p;
  70948. 801cb96: 4a92 ldr r2, [pc, #584] @ (801cde0 <tcp_input+0x728>)
  70949. 801cb98: 687b ldr r3, [r7, #4]
  70950. 801cb9a: 6053 str r3, [r2, #4]
  70951. inseg.tcphdr = tcphdr;
  70952. 801cb9c: 4b91 ldr r3, [pc, #580] @ (801cde4 <tcp_input+0x72c>)
  70953. 801cb9e: 681b ldr r3, [r3, #0]
  70954. 801cba0: 4a8f ldr r2, [pc, #572] @ (801cde0 <tcp_input+0x728>)
  70955. 801cba2: 6113 str r3, [r2, #16]
  70956. recv_data = NULL;
  70957. 801cba4: 4b90 ldr r3, [pc, #576] @ (801cde8 <tcp_input+0x730>)
  70958. 801cba6: 2200 movs r2, #0
  70959. 801cba8: 601a str r2, [r3, #0]
  70960. recv_flags = 0;
  70961. 801cbaa: 4b90 ldr r3, [pc, #576] @ (801cdec <tcp_input+0x734>)
  70962. 801cbac: 2200 movs r2, #0
  70963. 801cbae: 701a strb r2, [r3, #0]
  70964. recv_acked = 0;
  70965. 801cbb0: 4b8f ldr r3, [pc, #572] @ (801cdf0 <tcp_input+0x738>)
  70966. 801cbb2: 2200 movs r2, #0
  70967. 801cbb4: 801a strh r2, [r3, #0]
  70968. if (flags & TCP_PSH) {
  70969. 801cbb6: 4b8f ldr r3, [pc, #572] @ (801cdf4 <tcp_input+0x73c>)
  70970. 801cbb8: 781b ldrb r3, [r3, #0]
  70971. 801cbba: f003 0308 and.w r3, r3, #8
  70972. 801cbbe: 2b00 cmp r3, #0
  70973. 801cbc0: d006 beq.n 801cbd0 <tcp_input+0x518>
  70974. p->flags |= PBUF_FLAG_PUSH;
  70975. 801cbc2: 687b ldr r3, [r7, #4]
  70976. 801cbc4: 7b5b ldrb r3, [r3, #13]
  70977. 801cbc6: f043 0301 orr.w r3, r3, #1
  70978. 801cbca: b2da uxtb r2, r3
  70979. 801cbcc: 687b ldr r3, [r7, #4]
  70980. 801cbce: 735a strb r2, [r3, #13]
  70981. }
  70982. /* If there is data which was previously "refused" by upper layer */
  70983. if (pcb->refused_data != NULL) {
  70984. 801cbd0: 69bb ldr r3, [r7, #24]
  70985. 801cbd2: 6f9b ldr r3, [r3, #120] @ 0x78
  70986. 801cbd4: 2b00 cmp r3, #0
  70987. 801cbd6: d017 beq.n 801cc08 <tcp_input+0x550>
  70988. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  70989. 801cbd8: 69b8 ldr r0, [r7, #24]
  70990. 801cbda: f7ff f84d bl 801bc78 <tcp_process_refused_data>
  70991. 801cbde: 4603 mov r3, r0
  70992. 801cbe0: f113 0f0d cmn.w r3, #13
  70993. 801cbe4: d007 beq.n 801cbf6 <tcp_input+0x53e>
  70994. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  70995. 801cbe6: 69bb ldr r3, [r7, #24]
  70996. 801cbe8: 6f9b ldr r3, [r3, #120] @ 0x78
  70997. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  70998. 801cbea: 2b00 cmp r3, #0
  70999. 801cbec: d00c beq.n 801cc08 <tcp_input+0x550>
  71000. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  71001. 801cbee: 4b82 ldr r3, [pc, #520] @ (801cdf8 <tcp_input+0x740>)
  71002. 801cbf0: 881b ldrh r3, [r3, #0]
  71003. 801cbf2: 2b00 cmp r3, #0
  71004. 801cbf4: d008 beq.n 801cc08 <tcp_input+0x550>
  71005. /* pcb has been aborted or refused data is still refused and the new
  71006. segment contains data */
  71007. if (pcb->rcv_ann_wnd == 0) {
  71008. 801cbf6: 69bb ldr r3, [r7, #24]
  71009. 801cbf8: 8d5b ldrh r3, [r3, #42] @ 0x2a
  71010. 801cbfa: 2b00 cmp r3, #0
  71011. 801cbfc: f040 80e4 bne.w 801cdc8 <tcp_input+0x710>
  71012. /* this is a zero-window probe, we respond to it with current RCV.NXT
  71013. and drop the data segment */
  71014. tcp_send_empty_ack(pcb);
  71015. 801cc00: 69b8 ldr r0, [r7, #24]
  71016. 801cc02: f003 fe73 bl 80208ec <tcp_send_empty_ack>
  71017. }
  71018. TCP_STATS_INC(tcp.drop);
  71019. MIB2_STATS_INC(mib2.tcpinerrs);
  71020. goto aborted;
  71021. 801cc06: e0df b.n 801cdc8 <tcp_input+0x710>
  71022. }
  71023. }
  71024. tcp_input_pcb = pcb;
  71025. 801cc08: 4a7c ldr r2, [pc, #496] @ (801cdfc <tcp_input+0x744>)
  71026. 801cc0a: 69bb ldr r3, [r7, #24]
  71027. 801cc0c: 6013 str r3, [r2, #0]
  71028. err = tcp_process(pcb);
  71029. 801cc0e: 69b8 ldr r0, [r7, #24]
  71030. 801cc10: f000 fb18 bl 801d244 <tcp_process>
  71031. 801cc14: 4603 mov r3, r0
  71032. 801cc16: 74fb strb r3, [r7, #19]
  71033. /* A return value of ERR_ABRT means that tcp_abort() was called
  71034. and that the pcb has been freed. If so, we don't do anything. */
  71035. if (err != ERR_ABRT) {
  71036. 801cc18: f997 3013 ldrsb.w r3, [r7, #19]
  71037. 801cc1c: f113 0f0d cmn.w r3, #13
  71038. 801cc20: f000 80d4 beq.w 801cdcc <tcp_input+0x714>
  71039. if (recv_flags & TF_RESET) {
  71040. 801cc24: 4b71 ldr r3, [pc, #452] @ (801cdec <tcp_input+0x734>)
  71041. 801cc26: 781b ldrb r3, [r3, #0]
  71042. 801cc28: f003 0308 and.w r3, r3, #8
  71043. 801cc2c: 2b00 cmp r3, #0
  71044. 801cc2e: d015 beq.n 801cc5c <tcp_input+0x5a4>
  71045. /* TF_RESET means that the connection was reset by the other
  71046. end. We then call the error callback to inform the
  71047. application that the connection is dead before we
  71048. deallocate the PCB. */
  71049. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_RST);
  71050. 801cc30: 69bb ldr r3, [r7, #24]
  71051. 801cc32: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  71052. 801cc36: 2b00 cmp r3, #0
  71053. 801cc38: d008 beq.n 801cc4c <tcp_input+0x594>
  71054. 801cc3a: 69bb ldr r3, [r7, #24]
  71055. 801cc3c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  71056. 801cc40: 69ba ldr r2, [r7, #24]
  71057. 801cc42: 6912 ldr r2, [r2, #16]
  71058. 801cc44: f06f 010d mvn.w r1, #13
  71059. 801cc48: 4610 mov r0, r2
  71060. 801cc4a: 4798 blx r3
  71061. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  71062. 801cc4c: 69b9 ldr r1, [r7, #24]
  71063. 801cc4e: 486c ldr r0, [pc, #432] @ (801ce00 <tcp_input+0x748>)
  71064. 801cc50: f7ff fbba bl 801c3c8 <tcp_pcb_remove>
  71065. tcp_free(pcb);
  71066. 801cc54: 69b8 ldr r0, [r7, #24]
  71067. 801cc56: f7fd ff05 bl 801aa64 <tcp_free>
  71068. 801cc5a: e0da b.n 801ce12 <tcp_input+0x75a>
  71069. } else {
  71070. err = ERR_OK;
  71071. 801cc5c: 2300 movs r3, #0
  71072. 801cc5e: 74fb strb r3, [r7, #19]
  71073. /* If the application has registered a "sent" function to be
  71074. called when new send buffer space is available, we call it
  71075. now. */
  71076. if (recv_acked > 0) {
  71077. 801cc60: 4b63 ldr r3, [pc, #396] @ (801cdf0 <tcp_input+0x738>)
  71078. 801cc62: 881b ldrh r3, [r3, #0]
  71079. 801cc64: 2b00 cmp r3, #0
  71080. 801cc66: d01d beq.n 801cca4 <tcp_input+0x5ec>
  71081. while (acked > 0) {
  71082. acked16 = (u16_t)LWIP_MIN(acked, 0xffffu);
  71083. acked -= acked16;
  71084. #else
  71085. {
  71086. acked16 = recv_acked;
  71087. 801cc68: 4b61 ldr r3, [pc, #388] @ (801cdf0 <tcp_input+0x738>)
  71088. 801cc6a: 881b ldrh r3, [r3, #0]
  71089. 801cc6c: 81fb strh r3, [r7, #14]
  71090. #endif
  71091. TCP_EVENT_SENT(pcb, (u16_t)acked16, err);
  71092. 801cc6e: 69bb ldr r3, [r7, #24]
  71093. 801cc70: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  71094. 801cc74: 2b00 cmp r3, #0
  71095. 801cc76: d00a beq.n 801cc8e <tcp_input+0x5d6>
  71096. 801cc78: 69bb ldr r3, [r7, #24]
  71097. 801cc7a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  71098. 801cc7e: 69ba ldr r2, [r7, #24]
  71099. 801cc80: 6910 ldr r0, [r2, #16]
  71100. 801cc82: 89fa ldrh r2, [r7, #14]
  71101. 801cc84: 69b9 ldr r1, [r7, #24]
  71102. 801cc86: 4798 blx r3
  71103. 801cc88: 4603 mov r3, r0
  71104. 801cc8a: 74fb strb r3, [r7, #19]
  71105. 801cc8c: e001 b.n 801cc92 <tcp_input+0x5da>
  71106. 801cc8e: 2300 movs r3, #0
  71107. 801cc90: 74fb strb r3, [r7, #19]
  71108. if (err == ERR_ABRT) {
  71109. 801cc92: f997 3013 ldrsb.w r3, [r7, #19]
  71110. 801cc96: f113 0f0d cmn.w r3, #13
  71111. 801cc9a: f000 8099 beq.w 801cdd0 <tcp_input+0x718>
  71112. goto aborted;
  71113. }
  71114. }
  71115. recv_acked = 0;
  71116. 801cc9e: 4b54 ldr r3, [pc, #336] @ (801cdf0 <tcp_input+0x738>)
  71117. 801cca0: 2200 movs r2, #0
  71118. 801cca2: 801a strh r2, [r3, #0]
  71119. }
  71120. if (tcp_input_delayed_close(pcb)) {
  71121. 801cca4: 69b8 ldr r0, [r7, #24]
  71122. 801cca6: f000 f915 bl 801ced4 <tcp_input_delayed_close>
  71123. 801ccaa: 4603 mov r3, r0
  71124. 801ccac: 2b00 cmp r3, #0
  71125. 801ccae: f040 8091 bne.w 801cdd4 <tcp_input+0x71c>
  71126. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  71127. while (recv_data != NULL) {
  71128. struct pbuf *rest = NULL;
  71129. pbuf_split_64k(recv_data, &rest);
  71130. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  71131. if (recv_data != NULL) {
  71132. 801ccb2: 4b4d ldr r3, [pc, #308] @ (801cde8 <tcp_input+0x730>)
  71133. 801ccb4: 681b ldr r3, [r3, #0]
  71134. 801ccb6: 2b00 cmp r3, #0
  71135. 801ccb8: d041 beq.n 801cd3e <tcp_input+0x686>
  71136. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  71137. LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL);
  71138. 801ccba: 69bb ldr r3, [r7, #24]
  71139. 801ccbc: 6f9b ldr r3, [r3, #120] @ 0x78
  71140. 801ccbe: 2b00 cmp r3, #0
  71141. 801ccc0: d006 beq.n 801ccd0 <tcp_input+0x618>
  71142. 801ccc2: 4b50 ldr r3, [pc, #320] @ (801ce04 <tcp_input+0x74c>)
  71143. 801ccc4: f44f 72f3 mov.w r2, #486 @ 0x1e6
  71144. 801ccc8: 494f ldr r1, [pc, #316] @ (801ce08 <tcp_input+0x750>)
  71145. 801ccca: 4850 ldr r0, [pc, #320] @ (801ce0c <tcp_input+0x754>)
  71146. 801cccc: f00c fe86 bl 80299dc <iprintf>
  71147. if (pcb->flags & TF_RXCLOSED) {
  71148. 801ccd0: 69bb ldr r3, [r7, #24]
  71149. 801ccd2: 8b5b ldrh r3, [r3, #26]
  71150. 801ccd4: f003 0310 and.w r3, r3, #16
  71151. 801ccd8: 2b00 cmp r3, #0
  71152. 801ccda: d008 beq.n 801ccee <tcp_input+0x636>
  71153. /* received data although already closed -> abort (send RST) to
  71154. notify the remote host that not all data has been processed */
  71155. pbuf_free(recv_data);
  71156. 801ccdc: 4b42 ldr r3, [pc, #264] @ (801cde8 <tcp_input+0x730>)
  71157. 801ccde: 681b ldr r3, [r3, #0]
  71158. 801cce0: 4618 mov r0, r3
  71159. 801cce2: f7fd fc03 bl 801a4ec <pbuf_free>
  71160. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  71161. if (rest != NULL) {
  71162. pbuf_free(rest);
  71163. }
  71164. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  71165. tcp_abort(pcb);
  71166. 801cce6: 69b8 ldr r0, [r7, #24]
  71167. 801cce8: f7fe fa06 bl 801b0f8 <tcp_abort>
  71168. goto aborted;
  71169. 801ccec: e091 b.n 801ce12 <tcp_input+0x75a>
  71170. }
  71171. /* Notify application that data has been received. */
  71172. TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
  71173. 801ccee: 69bb ldr r3, [r7, #24]
  71174. 801ccf0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  71175. 801ccf4: 2b00 cmp r3, #0
  71176. 801ccf6: d00c beq.n 801cd12 <tcp_input+0x65a>
  71177. 801ccf8: 69bb ldr r3, [r7, #24]
  71178. 801ccfa: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  71179. 801ccfe: 69bb ldr r3, [r7, #24]
  71180. 801cd00: 6918 ldr r0, [r3, #16]
  71181. 801cd02: 4b39 ldr r3, [pc, #228] @ (801cde8 <tcp_input+0x730>)
  71182. 801cd04: 681a ldr r2, [r3, #0]
  71183. 801cd06: 2300 movs r3, #0
  71184. 801cd08: 69b9 ldr r1, [r7, #24]
  71185. 801cd0a: 47a0 blx r4
  71186. 801cd0c: 4603 mov r3, r0
  71187. 801cd0e: 74fb strb r3, [r7, #19]
  71188. 801cd10: e008 b.n 801cd24 <tcp_input+0x66c>
  71189. 801cd12: 4b35 ldr r3, [pc, #212] @ (801cde8 <tcp_input+0x730>)
  71190. 801cd14: 681a ldr r2, [r3, #0]
  71191. 801cd16: 2300 movs r3, #0
  71192. 801cd18: 69b9 ldr r1, [r7, #24]
  71193. 801cd1a: 2000 movs r0, #0
  71194. 801cd1c: f7ff f884 bl 801be28 <tcp_recv_null>
  71195. 801cd20: 4603 mov r3, r0
  71196. 801cd22: 74fb strb r3, [r7, #19]
  71197. if (err == ERR_ABRT) {
  71198. 801cd24: f997 3013 ldrsb.w r3, [r7, #19]
  71199. 801cd28: f113 0f0d cmn.w r3, #13
  71200. 801cd2c: d054 beq.n 801cdd8 <tcp_input+0x720>
  71201. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  71202. goto aborted;
  71203. }
  71204. /* If the upper layer can't receive this data, store it */
  71205. if (err != ERR_OK) {
  71206. 801cd2e: f997 3013 ldrsb.w r3, [r7, #19]
  71207. 801cd32: 2b00 cmp r3, #0
  71208. 801cd34: d003 beq.n 801cd3e <tcp_input+0x686>
  71209. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  71210. if (rest != NULL) {
  71211. pbuf_cat(recv_data, rest);
  71212. }
  71213. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  71214. pcb->refused_data = recv_data;
  71215. 801cd36: 4b2c ldr r3, [pc, #176] @ (801cde8 <tcp_input+0x730>)
  71216. 801cd38: 681a ldr r2, [r3, #0]
  71217. 801cd3a: 69bb ldr r3, [r7, #24]
  71218. 801cd3c: 679a str r2, [r3, #120] @ 0x78
  71219. }
  71220. }
  71221. /* If a FIN segment was received, we call the callback
  71222. function with a NULL buffer to indicate EOF. */
  71223. if (recv_flags & TF_GOT_FIN) {
  71224. 801cd3e: 4b2b ldr r3, [pc, #172] @ (801cdec <tcp_input+0x734>)
  71225. 801cd40: 781b ldrb r3, [r3, #0]
  71226. 801cd42: f003 0320 and.w r3, r3, #32
  71227. 801cd46: 2b00 cmp r3, #0
  71228. 801cd48: d031 beq.n 801cdae <tcp_input+0x6f6>
  71229. if (pcb->refused_data != NULL) {
  71230. 801cd4a: 69bb ldr r3, [r7, #24]
  71231. 801cd4c: 6f9b ldr r3, [r3, #120] @ 0x78
  71232. 801cd4e: 2b00 cmp r3, #0
  71233. 801cd50: d009 beq.n 801cd66 <tcp_input+0x6ae>
  71234. /* Delay this if we have refused data. */
  71235. pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN;
  71236. 801cd52: 69bb ldr r3, [r7, #24]
  71237. 801cd54: 6f9b ldr r3, [r3, #120] @ 0x78
  71238. 801cd56: 7b5a ldrb r2, [r3, #13]
  71239. 801cd58: 69bb ldr r3, [r7, #24]
  71240. 801cd5a: 6f9b ldr r3, [r3, #120] @ 0x78
  71241. 801cd5c: f042 0220 orr.w r2, r2, #32
  71242. 801cd60: b2d2 uxtb r2, r2
  71243. 801cd62: 735a strb r2, [r3, #13]
  71244. 801cd64: e023 b.n 801cdae <tcp_input+0x6f6>
  71245. } else {
  71246. /* correct rcv_wnd as the application won't call tcp_recved()
  71247. for the FIN's seqno */
  71248. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  71249. 801cd66: 69bb ldr r3, [r7, #24]
  71250. 801cd68: 8d1b ldrh r3, [r3, #40] @ 0x28
  71251. 801cd6a: f241 62d0 movw r2, #5840 @ 0x16d0
  71252. 801cd6e: 4293 cmp r3, r2
  71253. 801cd70: d005 beq.n 801cd7e <tcp_input+0x6c6>
  71254. pcb->rcv_wnd++;
  71255. 801cd72: 69bb ldr r3, [r7, #24]
  71256. 801cd74: 8d1b ldrh r3, [r3, #40] @ 0x28
  71257. 801cd76: 3301 adds r3, #1
  71258. 801cd78: b29a uxth r2, r3
  71259. 801cd7a: 69bb ldr r3, [r7, #24]
  71260. 801cd7c: 851a strh r2, [r3, #40] @ 0x28
  71261. }
  71262. TCP_EVENT_CLOSED(pcb, err);
  71263. 801cd7e: 69bb ldr r3, [r7, #24]
  71264. 801cd80: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  71265. 801cd84: 2b00 cmp r3, #0
  71266. 801cd86: d00b beq.n 801cda0 <tcp_input+0x6e8>
  71267. 801cd88: 69bb ldr r3, [r7, #24]
  71268. 801cd8a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  71269. 801cd8e: 69bb ldr r3, [r7, #24]
  71270. 801cd90: 6918 ldr r0, [r3, #16]
  71271. 801cd92: 2300 movs r3, #0
  71272. 801cd94: 2200 movs r2, #0
  71273. 801cd96: 69b9 ldr r1, [r7, #24]
  71274. 801cd98: 47a0 blx r4
  71275. 801cd9a: 4603 mov r3, r0
  71276. 801cd9c: 74fb strb r3, [r7, #19]
  71277. 801cd9e: e001 b.n 801cda4 <tcp_input+0x6ec>
  71278. 801cda0: 2300 movs r3, #0
  71279. 801cda2: 74fb strb r3, [r7, #19]
  71280. if (err == ERR_ABRT) {
  71281. 801cda4: f997 3013 ldrsb.w r3, [r7, #19]
  71282. 801cda8: f113 0f0d cmn.w r3, #13
  71283. 801cdac: d016 beq.n 801cddc <tcp_input+0x724>
  71284. goto aborted;
  71285. }
  71286. }
  71287. }
  71288. tcp_input_pcb = NULL;
  71289. 801cdae: 4b13 ldr r3, [pc, #76] @ (801cdfc <tcp_input+0x744>)
  71290. 801cdb0: 2200 movs r2, #0
  71291. 801cdb2: 601a str r2, [r3, #0]
  71292. if (tcp_input_delayed_close(pcb)) {
  71293. 801cdb4: 69b8 ldr r0, [r7, #24]
  71294. 801cdb6: f000 f88d bl 801ced4 <tcp_input_delayed_close>
  71295. 801cdba: 4603 mov r3, r0
  71296. 801cdbc: 2b00 cmp r3, #0
  71297. 801cdbe: d127 bne.n 801ce10 <tcp_input+0x758>
  71298. goto aborted;
  71299. }
  71300. /* Try to send something out. */
  71301. tcp_output(pcb);
  71302. 801cdc0: 69b8 ldr r0, [r7, #24]
  71303. 801cdc2: f002 ff7f bl 801fcc4 <tcp_output>
  71304. 801cdc6: e024 b.n 801ce12 <tcp_input+0x75a>
  71305. goto aborted;
  71306. 801cdc8: bf00 nop
  71307. 801cdca: e022 b.n 801ce12 <tcp_input+0x75a>
  71308. #endif /* TCP_INPUT_DEBUG */
  71309. }
  71310. }
  71311. /* Jump target if pcb has been aborted in a callback (by calling tcp_abort()).
  71312. Below this line, 'pcb' may not be dereferenced! */
  71313. aborted:
  71314. 801cdcc: bf00 nop
  71315. 801cdce: e020 b.n 801ce12 <tcp_input+0x75a>
  71316. goto aborted;
  71317. 801cdd0: bf00 nop
  71318. 801cdd2: e01e b.n 801ce12 <tcp_input+0x75a>
  71319. goto aborted;
  71320. 801cdd4: bf00 nop
  71321. 801cdd6: e01c b.n 801ce12 <tcp_input+0x75a>
  71322. goto aborted;
  71323. 801cdd8: bf00 nop
  71324. 801cdda: e01a b.n 801ce12 <tcp_input+0x75a>
  71325. goto aborted;
  71326. 801cddc: bf00 nop
  71327. 801cdde: e018 b.n 801ce12 <tcp_input+0x75a>
  71328. 801cde0: 2402aea0 .word 0x2402aea0
  71329. 801cde4: 2402aeb4 .word 0x2402aeb4
  71330. 801cde8: 2402aed4 .word 0x2402aed4
  71331. 801cdec: 2402aed1 .word 0x2402aed1
  71332. 801cdf0: 2402aecc .word 0x2402aecc
  71333. 801cdf4: 2402aed0 .word 0x2402aed0
  71334. 801cdf8: 2402aece .word 0x2402aece
  71335. 801cdfc: 2402aed8 .word 0x2402aed8
  71336. 801ce00: 2402ae94 .word 0x2402ae94
  71337. 801ce04: 0802ed58 .word 0x0802ed58
  71338. 801ce08: 0802ef0c .word 0x0802ef0c
  71339. 801ce0c: 0802eda4 .word 0x0802eda4
  71340. goto aborted;
  71341. 801ce10: bf00 nop
  71342. tcp_input_pcb = NULL;
  71343. 801ce12: 4b27 ldr r3, [pc, #156] @ (801ceb0 <tcp_input+0x7f8>)
  71344. 801ce14: 2200 movs r2, #0
  71345. 801ce16: 601a str r2, [r3, #0]
  71346. recv_data = NULL;
  71347. 801ce18: 4b26 ldr r3, [pc, #152] @ (801ceb4 <tcp_input+0x7fc>)
  71348. 801ce1a: 2200 movs r2, #0
  71349. 801ce1c: 601a str r2, [r3, #0]
  71350. /* give up our reference to inseg.p */
  71351. if (inseg.p != NULL) {
  71352. 801ce1e: 4b26 ldr r3, [pc, #152] @ (801ceb8 <tcp_input+0x800>)
  71353. 801ce20: 685b ldr r3, [r3, #4]
  71354. 801ce22: 2b00 cmp r3, #0
  71355. 801ce24: d03f beq.n 801cea6 <tcp_input+0x7ee>
  71356. pbuf_free(inseg.p);
  71357. 801ce26: 4b24 ldr r3, [pc, #144] @ (801ceb8 <tcp_input+0x800>)
  71358. 801ce28: 685b ldr r3, [r3, #4]
  71359. 801ce2a: 4618 mov r0, r3
  71360. 801ce2c: f7fd fb5e bl 801a4ec <pbuf_free>
  71361. inseg.p = NULL;
  71362. 801ce30: 4b21 ldr r3, [pc, #132] @ (801ceb8 <tcp_input+0x800>)
  71363. 801ce32: 2200 movs r2, #0
  71364. 801ce34: 605a str r2, [r3, #4]
  71365. pbuf_free(p);
  71366. }
  71367. LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
  71368. PERF_STOP("tcp_input");
  71369. return;
  71370. 801ce36: e036 b.n 801cea6 <tcp_input+0x7ee>
  71371. if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) {
  71372. 801ce38: 4b20 ldr r3, [pc, #128] @ (801cebc <tcp_input+0x804>)
  71373. 801ce3a: 681b ldr r3, [r3, #0]
  71374. 801ce3c: 899b ldrh r3, [r3, #12]
  71375. 801ce3e: b29b uxth r3, r3
  71376. 801ce40: 4618 mov r0, r3
  71377. 801ce42: f7fb fe71 bl 8018b28 <lwip_htons>
  71378. 801ce46: 4603 mov r3, r0
  71379. 801ce48: b2db uxtb r3, r3
  71380. 801ce4a: f003 0304 and.w r3, r3, #4
  71381. 801ce4e: 2b00 cmp r3, #0
  71382. 801ce50: d118 bne.n 801ce84 <tcp_input+0x7cc>
  71383. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  71384. 801ce52: 4b1b ldr r3, [pc, #108] @ (801cec0 <tcp_input+0x808>)
  71385. 801ce54: 6819 ldr r1, [r3, #0]
  71386. 801ce56: 4b1b ldr r3, [pc, #108] @ (801cec4 <tcp_input+0x80c>)
  71387. 801ce58: 881b ldrh r3, [r3, #0]
  71388. 801ce5a: 461a mov r2, r3
  71389. 801ce5c: 4b1a ldr r3, [pc, #104] @ (801cec8 <tcp_input+0x810>)
  71390. 801ce5e: 681b ldr r3, [r3, #0]
  71391. 801ce60: 18d0 adds r0, r2, r3
  71392. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71393. 801ce62: 4b16 ldr r3, [pc, #88] @ (801cebc <tcp_input+0x804>)
  71394. 801ce64: 681b ldr r3, [r3, #0]
  71395. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  71396. 801ce66: 885b ldrh r3, [r3, #2]
  71397. 801ce68: b29b uxth r3, r3
  71398. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71399. 801ce6a: 4a14 ldr r2, [pc, #80] @ (801cebc <tcp_input+0x804>)
  71400. 801ce6c: 6812 ldr r2, [r2, #0]
  71401. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  71402. 801ce6e: 8812 ldrh r2, [r2, #0]
  71403. 801ce70: b292 uxth r2, r2
  71404. 801ce72: 9202 str r2, [sp, #8]
  71405. 801ce74: 9301 str r3, [sp, #4]
  71406. 801ce76: 4b15 ldr r3, [pc, #84] @ (801cecc <tcp_input+0x814>)
  71407. 801ce78: 9300 str r3, [sp, #0]
  71408. 801ce7a: 4b15 ldr r3, [pc, #84] @ (801ced0 <tcp_input+0x818>)
  71409. 801ce7c: 4602 mov r2, r0
  71410. 801ce7e: 2000 movs r0, #0
  71411. 801ce80: f003 fce2 bl 8020848 <tcp_rst>
  71412. pbuf_free(p);
  71413. 801ce84: 6878 ldr r0, [r7, #4]
  71414. 801ce86: f7fd fb31 bl 801a4ec <pbuf_free>
  71415. return;
  71416. 801ce8a: e00c b.n 801cea6 <tcp_input+0x7ee>
  71417. goto dropped;
  71418. 801ce8c: bf00 nop
  71419. 801ce8e: e006 b.n 801ce9e <tcp_input+0x7e6>
  71420. goto dropped;
  71421. 801ce90: bf00 nop
  71422. 801ce92: e004 b.n 801ce9e <tcp_input+0x7e6>
  71423. goto dropped;
  71424. 801ce94: bf00 nop
  71425. 801ce96: e002 b.n 801ce9e <tcp_input+0x7e6>
  71426. goto dropped;
  71427. 801ce98: bf00 nop
  71428. 801ce9a: e000 b.n 801ce9e <tcp_input+0x7e6>
  71429. goto dropped;
  71430. 801ce9c: bf00 nop
  71431. dropped:
  71432. TCP_STATS_INC(tcp.drop);
  71433. MIB2_STATS_INC(mib2.tcpinerrs);
  71434. pbuf_free(p);
  71435. 801ce9e: 6878 ldr r0, [r7, #4]
  71436. 801cea0: f7fd fb24 bl 801a4ec <pbuf_free>
  71437. 801cea4: e000 b.n 801cea8 <tcp_input+0x7f0>
  71438. return;
  71439. 801cea6: bf00 nop
  71440. }
  71441. 801cea8: 3724 adds r7, #36 @ 0x24
  71442. 801ceaa: 46bd mov sp, r7
  71443. 801ceac: bd90 pop {r4, r7, pc}
  71444. 801ceae: bf00 nop
  71445. 801ceb0: 2402aed8 .word 0x2402aed8
  71446. 801ceb4: 2402aed4 .word 0x2402aed4
  71447. 801ceb8: 2402aea0 .word 0x2402aea0
  71448. 801cebc: 2402aeb4 .word 0x2402aeb4
  71449. 801cec0: 2402aec8 .word 0x2402aec8
  71450. 801cec4: 2402aece .word 0x2402aece
  71451. 801cec8: 2402aec4 .word 0x2402aec4
  71452. 801cecc: 24024348 .word 0x24024348
  71453. 801ced0: 2402434c .word 0x2402434c
  71454. 0801ced4 <tcp_input_delayed_close>:
  71455. * any more.
  71456. * @returns 1 if the pcb has been closed and deallocated, 0 otherwise
  71457. */
  71458. static int
  71459. tcp_input_delayed_close(struct tcp_pcb *pcb)
  71460. {
  71461. 801ced4: b580 push {r7, lr}
  71462. 801ced6: b082 sub sp, #8
  71463. 801ced8: af00 add r7, sp, #0
  71464. 801ceda: 6078 str r0, [r7, #4]
  71465. LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL);
  71466. 801cedc: 687b ldr r3, [r7, #4]
  71467. 801cede: 2b00 cmp r3, #0
  71468. 801cee0: d106 bne.n 801cef0 <tcp_input_delayed_close+0x1c>
  71469. 801cee2: 4b17 ldr r3, [pc, #92] @ (801cf40 <tcp_input_delayed_close+0x6c>)
  71470. 801cee4: f240 225a movw r2, #602 @ 0x25a
  71471. 801cee8: 4916 ldr r1, [pc, #88] @ (801cf44 <tcp_input_delayed_close+0x70>)
  71472. 801ceea: 4817 ldr r0, [pc, #92] @ (801cf48 <tcp_input_delayed_close+0x74>)
  71473. 801ceec: f00c fd76 bl 80299dc <iprintf>
  71474. if (recv_flags & TF_CLOSED) {
  71475. 801cef0: 4b16 ldr r3, [pc, #88] @ (801cf4c <tcp_input_delayed_close+0x78>)
  71476. 801cef2: 781b ldrb r3, [r3, #0]
  71477. 801cef4: f003 0310 and.w r3, r3, #16
  71478. 801cef8: 2b00 cmp r3, #0
  71479. 801cefa: d01c beq.n 801cf36 <tcp_input_delayed_close+0x62>
  71480. /* The connection has been closed and we will deallocate the
  71481. PCB. */
  71482. if (!(pcb->flags & TF_RXCLOSED)) {
  71483. 801cefc: 687b ldr r3, [r7, #4]
  71484. 801cefe: 8b5b ldrh r3, [r3, #26]
  71485. 801cf00: f003 0310 and.w r3, r3, #16
  71486. 801cf04: 2b00 cmp r3, #0
  71487. 801cf06: d10d bne.n 801cf24 <tcp_input_delayed_close+0x50>
  71488. /* Connection closed although the application has only shut down the
  71489. tx side: call the PCB's err callback and indicate the closure to
  71490. ensure the application doesn't continue using the PCB. */
  71491. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_CLSD);
  71492. 801cf08: 687b ldr r3, [r7, #4]
  71493. 801cf0a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  71494. 801cf0e: 2b00 cmp r3, #0
  71495. 801cf10: d008 beq.n 801cf24 <tcp_input_delayed_close+0x50>
  71496. 801cf12: 687b ldr r3, [r7, #4]
  71497. 801cf14: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  71498. 801cf18: 687a ldr r2, [r7, #4]
  71499. 801cf1a: 6912 ldr r2, [r2, #16]
  71500. 801cf1c: f06f 010e mvn.w r1, #14
  71501. 801cf20: 4610 mov r0, r2
  71502. 801cf22: 4798 blx r3
  71503. }
  71504. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  71505. 801cf24: 6879 ldr r1, [r7, #4]
  71506. 801cf26: 480a ldr r0, [pc, #40] @ (801cf50 <tcp_input_delayed_close+0x7c>)
  71507. 801cf28: f7ff fa4e bl 801c3c8 <tcp_pcb_remove>
  71508. tcp_free(pcb);
  71509. 801cf2c: 6878 ldr r0, [r7, #4]
  71510. 801cf2e: f7fd fd99 bl 801aa64 <tcp_free>
  71511. return 1;
  71512. 801cf32: 2301 movs r3, #1
  71513. 801cf34: e000 b.n 801cf38 <tcp_input_delayed_close+0x64>
  71514. }
  71515. return 0;
  71516. 801cf36: 2300 movs r3, #0
  71517. }
  71518. 801cf38: 4618 mov r0, r3
  71519. 801cf3a: 3708 adds r7, #8
  71520. 801cf3c: 46bd mov sp, r7
  71521. 801cf3e: bd80 pop {r7, pc}
  71522. 801cf40: 0802ed58 .word 0x0802ed58
  71523. 801cf44: 0802ef28 .word 0x0802ef28
  71524. 801cf48: 0802eda4 .word 0x0802eda4
  71525. 801cf4c: 2402aed1 .word 0x2402aed1
  71526. 801cf50: 2402ae94 .word 0x2402ae94
  71527. 0801cf54 <tcp_listen_input>:
  71528. * @note the segment which arrived is saved in global variables, therefore only the pcb
  71529. * involved is passed as a parameter to this function
  71530. */
  71531. static void
  71532. tcp_listen_input(struct tcp_pcb_listen *pcb)
  71533. {
  71534. 801cf54: b590 push {r4, r7, lr}
  71535. 801cf56: b08b sub sp, #44 @ 0x2c
  71536. 801cf58: af04 add r7, sp, #16
  71537. 801cf5a: 6078 str r0, [r7, #4]
  71538. struct tcp_pcb *npcb;
  71539. u32_t iss;
  71540. err_t rc;
  71541. if (flags & TCP_RST) {
  71542. 801cf5c: 4b6f ldr r3, [pc, #444] @ (801d11c <tcp_listen_input+0x1c8>)
  71543. 801cf5e: 781b ldrb r3, [r3, #0]
  71544. 801cf60: f003 0304 and.w r3, r3, #4
  71545. 801cf64: 2b00 cmp r3, #0
  71546. 801cf66: f040 80d2 bne.w 801d10e <tcp_listen_input+0x1ba>
  71547. /* An incoming RST should be ignored. Return. */
  71548. return;
  71549. }
  71550. LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL);
  71551. 801cf6a: 687b ldr r3, [r7, #4]
  71552. 801cf6c: 2b00 cmp r3, #0
  71553. 801cf6e: d106 bne.n 801cf7e <tcp_listen_input+0x2a>
  71554. 801cf70: 4b6b ldr r3, [pc, #428] @ (801d120 <tcp_listen_input+0x1cc>)
  71555. 801cf72: f240 2281 movw r2, #641 @ 0x281
  71556. 801cf76: 496b ldr r1, [pc, #428] @ (801d124 <tcp_listen_input+0x1d0>)
  71557. 801cf78: 486b ldr r0, [pc, #428] @ (801d128 <tcp_listen_input+0x1d4>)
  71558. 801cf7a: f00c fd2f bl 80299dc <iprintf>
  71559. /* In the LISTEN state, we check for incoming SYN segments,
  71560. creates a new PCB, and responds with a SYN|ACK. */
  71561. if (flags & TCP_ACK) {
  71562. 801cf7e: 4b67 ldr r3, [pc, #412] @ (801d11c <tcp_listen_input+0x1c8>)
  71563. 801cf80: 781b ldrb r3, [r3, #0]
  71564. 801cf82: f003 0310 and.w r3, r3, #16
  71565. 801cf86: 2b00 cmp r3, #0
  71566. 801cf88: d019 beq.n 801cfbe <tcp_listen_input+0x6a>
  71567. /* For incoming segments with the ACK flag set, respond with a
  71568. RST. */
  71569. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n"));
  71570. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71571. 801cf8a: 4b68 ldr r3, [pc, #416] @ (801d12c <tcp_listen_input+0x1d8>)
  71572. 801cf8c: 6819 ldr r1, [r3, #0]
  71573. 801cf8e: 4b68 ldr r3, [pc, #416] @ (801d130 <tcp_listen_input+0x1dc>)
  71574. 801cf90: 881b ldrh r3, [r3, #0]
  71575. 801cf92: 461a mov r2, r3
  71576. 801cf94: 4b67 ldr r3, [pc, #412] @ (801d134 <tcp_listen_input+0x1e0>)
  71577. 801cf96: 681b ldr r3, [r3, #0]
  71578. 801cf98: 18d0 adds r0, r2, r3
  71579. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71580. 801cf9a: 4b67 ldr r3, [pc, #412] @ (801d138 <tcp_listen_input+0x1e4>)
  71581. 801cf9c: 681b ldr r3, [r3, #0]
  71582. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71583. 801cf9e: 885b ldrh r3, [r3, #2]
  71584. 801cfa0: b29b uxth r3, r3
  71585. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71586. 801cfa2: 4a65 ldr r2, [pc, #404] @ (801d138 <tcp_listen_input+0x1e4>)
  71587. 801cfa4: 6812 ldr r2, [r2, #0]
  71588. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71589. 801cfa6: 8812 ldrh r2, [r2, #0]
  71590. 801cfa8: b292 uxth r2, r2
  71591. 801cfaa: 9202 str r2, [sp, #8]
  71592. 801cfac: 9301 str r3, [sp, #4]
  71593. 801cfae: 4b63 ldr r3, [pc, #396] @ (801d13c <tcp_listen_input+0x1e8>)
  71594. 801cfb0: 9300 str r3, [sp, #0]
  71595. 801cfb2: 4b63 ldr r3, [pc, #396] @ (801d140 <tcp_listen_input+0x1ec>)
  71596. 801cfb4: 4602 mov r2, r0
  71597. 801cfb6: 6878 ldr r0, [r7, #4]
  71598. 801cfb8: f003 fc46 bl 8020848 <tcp_rst>
  71599. tcp_abandon(npcb, 0);
  71600. return;
  71601. }
  71602. tcp_output(npcb);
  71603. }
  71604. return;
  71605. 801cfbc: e0a9 b.n 801d112 <tcp_listen_input+0x1be>
  71606. } else if (flags & TCP_SYN) {
  71607. 801cfbe: 4b57 ldr r3, [pc, #348] @ (801d11c <tcp_listen_input+0x1c8>)
  71608. 801cfc0: 781b ldrb r3, [r3, #0]
  71609. 801cfc2: f003 0302 and.w r3, r3, #2
  71610. 801cfc6: 2b00 cmp r3, #0
  71611. 801cfc8: f000 80a3 beq.w 801d112 <tcp_listen_input+0x1be>
  71612. npcb = tcp_alloc(pcb->prio);
  71613. 801cfcc: 687b ldr r3, [r7, #4]
  71614. 801cfce: 7d5b ldrb r3, [r3, #21]
  71615. 801cfd0: 4618 mov r0, r3
  71616. 801cfd2: f7ff f84d bl 801c070 <tcp_alloc>
  71617. 801cfd6: 6178 str r0, [r7, #20]
  71618. if (npcb == NULL) {
  71619. 801cfd8: 697b ldr r3, [r7, #20]
  71620. 801cfda: 2b00 cmp r3, #0
  71621. 801cfdc: d111 bne.n 801d002 <tcp_listen_input+0xae>
  71622. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  71623. 801cfde: 687b ldr r3, [r7, #4]
  71624. 801cfe0: 699b ldr r3, [r3, #24]
  71625. 801cfe2: 2b00 cmp r3, #0
  71626. 801cfe4: d00a beq.n 801cffc <tcp_listen_input+0xa8>
  71627. 801cfe6: 687b ldr r3, [r7, #4]
  71628. 801cfe8: 699b ldr r3, [r3, #24]
  71629. 801cfea: 687a ldr r2, [r7, #4]
  71630. 801cfec: 6910 ldr r0, [r2, #16]
  71631. 801cfee: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  71632. 801cff2: 2100 movs r1, #0
  71633. 801cff4: 4798 blx r3
  71634. 801cff6: 4603 mov r3, r0
  71635. 801cff8: 73bb strb r3, [r7, #14]
  71636. return;
  71637. 801cffa: e08b b.n 801d114 <tcp_listen_input+0x1c0>
  71638. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  71639. 801cffc: 23f0 movs r3, #240 @ 0xf0
  71640. 801cffe: 73bb strb r3, [r7, #14]
  71641. return;
  71642. 801d000: e088 b.n 801d114 <tcp_listen_input+0x1c0>
  71643. ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
  71644. 801d002: 4b50 ldr r3, [pc, #320] @ (801d144 <tcp_listen_input+0x1f0>)
  71645. 801d004: 695a ldr r2, [r3, #20]
  71646. 801d006: 697b ldr r3, [r7, #20]
  71647. 801d008: 601a str r2, [r3, #0]
  71648. ip_addr_copy(npcb->remote_ip, *ip_current_src_addr());
  71649. 801d00a: 4b4e ldr r3, [pc, #312] @ (801d144 <tcp_listen_input+0x1f0>)
  71650. 801d00c: 691a ldr r2, [r3, #16]
  71651. 801d00e: 697b ldr r3, [r7, #20]
  71652. 801d010: 605a str r2, [r3, #4]
  71653. npcb->local_port = pcb->local_port;
  71654. 801d012: 687b ldr r3, [r7, #4]
  71655. 801d014: 8ada ldrh r2, [r3, #22]
  71656. 801d016: 697b ldr r3, [r7, #20]
  71657. 801d018: 82da strh r2, [r3, #22]
  71658. npcb->remote_port = tcphdr->src;
  71659. 801d01a: 4b47 ldr r3, [pc, #284] @ (801d138 <tcp_listen_input+0x1e4>)
  71660. 801d01c: 681b ldr r3, [r3, #0]
  71661. 801d01e: 881b ldrh r3, [r3, #0]
  71662. 801d020: b29a uxth r2, r3
  71663. 801d022: 697b ldr r3, [r7, #20]
  71664. 801d024: 831a strh r2, [r3, #24]
  71665. npcb->state = SYN_RCVD;
  71666. 801d026: 697b ldr r3, [r7, #20]
  71667. 801d028: 2203 movs r2, #3
  71668. 801d02a: 751a strb r2, [r3, #20]
  71669. npcb->rcv_nxt = seqno + 1;
  71670. 801d02c: 4b41 ldr r3, [pc, #260] @ (801d134 <tcp_listen_input+0x1e0>)
  71671. 801d02e: 681b ldr r3, [r3, #0]
  71672. 801d030: 1c5a adds r2, r3, #1
  71673. 801d032: 697b ldr r3, [r7, #20]
  71674. 801d034: 625a str r2, [r3, #36] @ 0x24
  71675. npcb->rcv_ann_right_edge = npcb->rcv_nxt;
  71676. 801d036: 697b ldr r3, [r7, #20]
  71677. 801d038: 6a5a ldr r2, [r3, #36] @ 0x24
  71678. 801d03a: 697b ldr r3, [r7, #20]
  71679. 801d03c: 62da str r2, [r3, #44] @ 0x2c
  71680. iss = tcp_next_iss(npcb);
  71681. 801d03e: 6978 ldr r0, [r7, #20]
  71682. 801d040: f7ff fa56 bl 801c4f0 <tcp_next_iss>
  71683. 801d044: 6138 str r0, [r7, #16]
  71684. npcb->snd_wl2 = iss;
  71685. 801d046: 697b ldr r3, [r7, #20]
  71686. 801d048: 693a ldr r2, [r7, #16]
  71687. 801d04a: 659a str r2, [r3, #88] @ 0x58
  71688. npcb->snd_nxt = iss;
  71689. 801d04c: 697b ldr r3, [r7, #20]
  71690. 801d04e: 693a ldr r2, [r7, #16]
  71691. 801d050: 651a str r2, [r3, #80] @ 0x50
  71692. npcb->lastack = iss;
  71693. 801d052: 697b ldr r3, [r7, #20]
  71694. 801d054: 693a ldr r2, [r7, #16]
  71695. 801d056: 645a str r2, [r3, #68] @ 0x44
  71696. npcb->snd_lbb = iss;
  71697. 801d058: 697b ldr r3, [r7, #20]
  71698. 801d05a: 693a ldr r2, [r7, #16]
  71699. 801d05c: 65da str r2, [r3, #92] @ 0x5c
  71700. npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */
  71701. 801d05e: 4b35 ldr r3, [pc, #212] @ (801d134 <tcp_listen_input+0x1e0>)
  71702. 801d060: 681b ldr r3, [r3, #0]
  71703. 801d062: 1e5a subs r2, r3, #1
  71704. 801d064: 697b ldr r3, [r7, #20]
  71705. 801d066: 655a str r2, [r3, #84] @ 0x54
  71706. npcb->callback_arg = pcb->callback_arg;
  71707. 801d068: 687b ldr r3, [r7, #4]
  71708. 801d06a: 691a ldr r2, [r3, #16]
  71709. 801d06c: 697b ldr r3, [r7, #20]
  71710. 801d06e: 611a str r2, [r3, #16]
  71711. npcb->listener = pcb;
  71712. 801d070: 697b ldr r3, [r7, #20]
  71713. 801d072: 687a ldr r2, [r7, #4]
  71714. 801d074: 67da str r2, [r3, #124] @ 0x7c
  71715. npcb->so_options = pcb->so_options & SOF_INHERITED;
  71716. 801d076: 687b ldr r3, [r7, #4]
  71717. 801d078: 7a5b ldrb r3, [r3, #9]
  71718. 801d07a: f003 030c and.w r3, r3, #12
  71719. 801d07e: b2da uxtb r2, r3
  71720. 801d080: 697b ldr r3, [r7, #20]
  71721. 801d082: 725a strb r2, [r3, #9]
  71722. npcb->netif_idx = pcb->netif_idx;
  71723. 801d084: 687b ldr r3, [r7, #4]
  71724. 801d086: 7a1a ldrb r2, [r3, #8]
  71725. 801d088: 697b ldr r3, [r7, #20]
  71726. 801d08a: 721a strb r2, [r3, #8]
  71727. TCP_REG_ACTIVE(npcb);
  71728. 801d08c: 4b2e ldr r3, [pc, #184] @ (801d148 <tcp_listen_input+0x1f4>)
  71729. 801d08e: 681a ldr r2, [r3, #0]
  71730. 801d090: 697b ldr r3, [r7, #20]
  71731. 801d092: 60da str r2, [r3, #12]
  71732. 801d094: 4a2c ldr r2, [pc, #176] @ (801d148 <tcp_listen_input+0x1f4>)
  71733. 801d096: 697b ldr r3, [r7, #20]
  71734. 801d098: 6013 str r3, [r2, #0]
  71735. 801d09a: f003 fd97 bl 8020bcc <tcp_timer_needed>
  71736. 801d09e: 4b2b ldr r3, [pc, #172] @ (801d14c <tcp_listen_input+0x1f8>)
  71737. 801d0a0: 2201 movs r2, #1
  71738. 801d0a2: 701a strb r2, [r3, #0]
  71739. tcp_parseopt(npcb);
  71740. 801d0a4: 6978 ldr r0, [r7, #20]
  71741. 801d0a6: f001 fd8b bl 801ebc0 <tcp_parseopt>
  71742. npcb->snd_wnd = tcphdr->wnd;
  71743. 801d0aa: 4b23 ldr r3, [pc, #140] @ (801d138 <tcp_listen_input+0x1e4>)
  71744. 801d0ac: 681b ldr r3, [r3, #0]
  71745. 801d0ae: 89db ldrh r3, [r3, #14]
  71746. 801d0b0: b29a uxth r2, r3
  71747. 801d0b2: 697b ldr r3, [r7, #20]
  71748. 801d0b4: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  71749. npcb->snd_wnd_max = npcb->snd_wnd;
  71750. 801d0b8: 697b ldr r3, [r7, #20]
  71751. 801d0ba: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  71752. 801d0be: 697b ldr r3, [r7, #20]
  71753. 801d0c0: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  71754. npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
  71755. 801d0c4: 697b ldr r3, [r7, #20]
  71756. 801d0c6: 8e5c ldrh r4, [r3, #50] @ 0x32
  71757. 801d0c8: 697b ldr r3, [r7, #20]
  71758. 801d0ca: 3304 adds r3, #4
  71759. 801d0cc: 4618 mov r0, r3
  71760. 801d0ce: f007 fc77 bl 80249c0 <ip4_route>
  71761. 801d0d2: 4601 mov r1, r0
  71762. 801d0d4: 697b ldr r3, [r7, #20]
  71763. 801d0d6: 3304 adds r3, #4
  71764. 801d0d8: 461a mov r2, r3
  71765. 801d0da: 4620 mov r0, r4
  71766. 801d0dc: f7ff fa2e bl 801c53c <tcp_eff_send_mss_netif>
  71767. 801d0e0: 4603 mov r3, r0
  71768. 801d0e2: 461a mov r2, r3
  71769. 801d0e4: 697b ldr r3, [r7, #20]
  71770. 801d0e6: 865a strh r2, [r3, #50] @ 0x32
  71771. rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK);
  71772. 801d0e8: 2112 movs r1, #18
  71773. 801d0ea: 6978 ldr r0, [r7, #20]
  71774. 801d0ec: f002 fcfc bl 801fae8 <tcp_enqueue_flags>
  71775. 801d0f0: 4603 mov r3, r0
  71776. 801d0f2: 73fb strb r3, [r7, #15]
  71777. if (rc != ERR_OK) {
  71778. 801d0f4: f997 300f ldrsb.w r3, [r7, #15]
  71779. 801d0f8: 2b00 cmp r3, #0
  71780. 801d0fa: d004 beq.n 801d106 <tcp_listen_input+0x1b2>
  71781. tcp_abandon(npcb, 0);
  71782. 801d0fc: 2100 movs r1, #0
  71783. 801d0fe: 6978 ldr r0, [r7, #20]
  71784. 801d100: f7fd ff3a bl 801af78 <tcp_abandon>
  71785. return;
  71786. 801d104: e006 b.n 801d114 <tcp_listen_input+0x1c0>
  71787. tcp_output(npcb);
  71788. 801d106: 6978 ldr r0, [r7, #20]
  71789. 801d108: f002 fddc bl 801fcc4 <tcp_output>
  71790. return;
  71791. 801d10c: e001 b.n 801d112 <tcp_listen_input+0x1be>
  71792. return;
  71793. 801d10e: bf00 nop
  71794. 801d110: e000 b.n 801d114 <tcp_listen_input+0x1c0>
  71795. return;
  71796. 801d112: bf00 nop
  71797. }
  71798. 801d114: 371c adds r7, #28
  71799. 801d116: 46bd mov sp, r7
  71800. 801d118: bd90 pop {r4, r7, pc}
  71801. 801d11a: bf00 nop
  71802. 801d11c: 2402aed0 .word 0x2402aed0
  71803. 801d120: 0802ed58 .word 0x0802ed58
  71804. 801d124: 0802ef50 .word 0x0802ef50
  71805. 801d128: 0802eda4 .word 0x0802eda4
  71806. 801d12c: 2402aec8 .word 0x2402aec8
  71807. 801d130: 2402aece .word 0x2402aece
  71808. 801d134: 2402aec4 .word 0x2402aec4
  71809. 801d138: 2402aeb4 .word 0x2402aeb4
  71810. 801d13c: 24024348 .word 0x24024348
  71811. 801d140: 2402434c .word 0x2402434c
  71812. 801d144: 24024338 .word 0x24024338
  71813. 801d148: 2402ae94 .word 0x2402ae94
  71814. 801d14c: 2402ae9c .word 0x2402ae9c
  71815. 0801d150 <tcp_timewait_input>:
  71816. * @note the segment which arrived is saved in global variables, therefore only the pcb
  71817. * involved is passed as a parameter to this function
  71818. */
  71819. static void
  71820. tcp_timewait_input(struct tcp_pcb *pcb)
  71821. {
  71822. 801d150: b580 push {r7, lr}
  71823. 801d152: b086 sub sp, #24
  71824. 801d154: af04 add r7, sp, #16
  71825. 801d156: 6078 str r0, [r7, #4]
  71826. /* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable' segments */
  71827. /* RFC 793 3.9 Event Processing - Segment Arrives:
  71828. * - first check sequence number - we skip that one in TIME_WAIT (always
  71829. * acceptable since we only send ACKs)
  71830. * - second check the RST bit (... return) */
  71831. if (flags & TCP_RST) {
  71832. 801d158: 4b2f ldr r3, [pc, #188] @ (801d218 <tcp_timewait_input+0xc8>)
  71833. 801d15a: 781b ldrb r3, [r3, #0]
  71834. 801d15c: f003 0304 and.w r3, r3, #4
  71835. 801d160: 2b00 cmp r3, #0
  71836. 801d162: d153 bne.n 801d20c <tcp_timewait_input+0xbc>
  71837. return;
  71838. }
  71839. LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL);
  71840. 801d164: 687b ldr r3, [r7, #4]
  71841. 801d166: 2b00 cmp r3, #0
  71842. 801d168: d106 bne.n 801d178 <tcp_timewait_input+0x28>
  71843. 801d16a: 4b2c ldr r3, [pc, #176] @ (801d21c <tcp_timewait_input+0xcc>)
  71844. 801d16c: f240 22ee movw r2, #750 @ 0x2ee
  71845. 801d170: 492b ldr r1, [pc, #172] @ (801d220 <tcp_timewait_input+0xd0>)
  71846. 801d172: 482c ldr r0, [pc, #176] @ (801d224 <tcp_timewait_input+0xd4>)
  71847. 801d174: f00c fc32 bl 80299dc <iprintf>
  71848. /* - fourth, check the SYN bit, */
  71849. if (flags & TCP_SYN) {
  71850. 801d178: 4b27 ldr r3, [pc, #156] @ (801d218 <tcp_timewait_input+0xc8>)
  71851. 801d17a: 781b ldrb r3, [r3, #0]
  71852. 801d17c: f003 0302 and.w r3, r3, #2
  71853. 801d180: 2b00 cmp r3, #0
  71854. 801d182: d02a beq.n 801d1da <tcp_timewait_input+0x8a>
  71855. /* If an incoming segment is not acceptable, an acknowledgment
  71856. should be sent in reply */
  71857. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd)) {
  71858. 801d184: 4b28 ldr r3, [pc, #160] @ (801d228 <tcp_timewait_input+0xd8>)
  71859. 801d186: 681a ldr r2, [r3, #0]
  71860. 801d188: 687b ldr r3, [r7, #4]
  71861. 801d18a: 6a5b ldr r3, [r3, #36] @ 0x24
  71862. 801d18c: 1ad3 subs r3, r2, r3
  71863. 801d18e: 2b00 cmp r3, #0
  71864. 801d190: db2d blt.n 801d1ee <tcp_timewait_input+0x9e>
  71865. 801d192: 4b25 ldr r3, [pc, #148] @ (801d228 <tcp_timewait_input+0xd8>)
  71866. 801d194: 681a ldr r2, [r3, #0]
  71867. 801d196: 687b ldr r3, [r7, #4]
  71868. 801d198: 6a5b ldr r3, [r3, #36] @ 0x24
  71869. 801d19a: 6879 ldr r1, [r7, #4]
  71870. 801d19c: 8d09 ldrh r1, [r1, #40] @ 0x28
  71871. 801d19e: 440b add r3, r1
  71872. 801d1a0: 1ad3 subs r3, r2, r3
  71873. 801d1a2: 2b00 cmp r3, #0
  71874. 801d1a4: dc23 bgt.n 801d1ee <tcp_timewait_input+0x9e>
  71875. /* If the SYN is in the window it is an error, send a reset */
  71876. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71877. 801d1a6: 4b21 ldr r3, [pc, #132] @ (801d22c <tcp_timewait_input+0xdc>)
  71878. 801d1a8: 6819 ldr r1, [r3, #0]
  71879. 801d1aa: 4b21 ldr r3, [pc, #132] @ (801d230 <tcp_timewait_input+0xe0>)
  71880. 801d1ac: 881b ldrh r3, [r3, #0]
  71881. 801d1ae: 461a mov r2, r3
  71882. 801d1b0: 4b1d ldr r3, [pc, #116] @ (801d228 <tcp_timewait_input+0xd8>)
  71883. 801d1b2: 681b ldr r3, [r3, #0]
  71884. 801d1b4: 18d0 adds r0, r2, r3
  71885. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71886. 801d1b6: 4b1f ldr r3, [pc, #124] @ (801d234 <tcp_timewait_input+0xe4>)
  71887. 801d1b8: 681b ldr r3, [r3, #0]
  71888. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71889. 801d1ba: 885b ldrh r3, [r3, #2]
  71890. 801d1bc: b29b uxth r3, r3
  71891. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  71892. 801d1be: 4a1d ldr r2, [pc, #116] @ (801d234 <tcp_timewait_input+0xe4>)
  71893. 801d1c0: 6812 ldr r2, [r2, #0]
  71894. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  71895. 801d1c2: 8812 ldrh r2, [r2, #0]
  71896. 801d1c4: b292 uxth r2, r2
  71897. 801d1c6: 9202 str r2, [sp, #8]
  71898. 801d1c8: 9301 str r3, [sp, #4]
  71899. 801d1ca: 4b1b ldr r3, [pc, #108] @ (801d238 <tcp_timewait_input+0xe8>)
  71900. 801d1cc: 9300 str r3, [sp, #0]
  71901. 801d1ce: 4b1b ldr r3, [pc, #108] @ (801d23c <tcp_timewait_input+0xec>)
  71902. 801d1d0: 4602 mov r2, r0
  71903. 801d1d2: 6878 ldr r0, [r7, #4]
  71904. 801d1d4: f003 fb38 bl 8020848 <tcp_rst>
  71905. return;
  71906. 801d1d8: e01b b.n 801d212 <tcp_timewait_input+0xc2>
  71907. }
  71908. } else if (flags & TCP_FIN) {
  71909. 801d1da: 4b0f ldr r3, [pc, #60] @ (801d218 <tcp_timewait_input+0xc8>)
  71910. 801d1dc: 781b ldrb r3, [r3, #0]
  71911. 801d1de: f003 0301 and.w r3, r3, #1
  71912. 801d1e2: 2b00 cmp r3, #0
  71913. 801d1e4: d003 beq.n 801d1ee <tcp_timewait_input+0x9e>
  71914. /* - eighth, check the FIN bit: Remain in the TIME-WAIT state.
  71915. Restart the 2 MSL time-wait timeout.*/
  71916. pcb->tmr = tcp_ticks;
  71917. 801d1e6: 4b16 ldr r3, [pc, #88] @ (801d240 <tcp_timewait_input+0xf0>)
  71918. 801d1e8: 681a ldr r2, [r3, #0]
  71919. 801d1ea: 687b ldr r3, [r7, #4]
  71920. 801d1ec: 621a str r2, [r3, #32]
  71921. }
  71922. if ((tcplen > 0)) {
  71923. 801d1ee: 4b10 ldr r3, [pc, #64] @ (801d230 <tcp_timewait_input+0xe0>)
  71924. 801d1f0: 881b ldrh r3, [r3, #0]
  71925. 801d1f2: 2b00 cmp r3, #0
  71926. 801d1f4: d00c beq.n 801d210 <tcp_timewait_input+0xc0>
  71927. /* Acknowledge data, FIN or out-of-window SYN */
  71928. tcp_ack_now(pcb);
  71929. 801d1f6: 687b ldr r3, [r7, #4]
  71930. 801d1f8: 8b5b ldrh r3, [r3, #26]
  71931. 801d1fa: f043 0302 orr.w r3, r3, #2
  71932. 801d1fe: b29a uxth r2, r3
  71933. 801d200: 687b ldr r3, [r7, #4]
  71934. 801d202: 835a strh r2, [r3, #26]
  71935. tcp_output(pcb);
  71936. 801d204: 6878 ldr r0, [r7, #4]
  71937. 801d206: f002 fd5d bl 801fcc4 <tcp_output>
  71938. }
  71939. return;
  71940. 801d20a: e001 b.n 801d210 <tcp_timewait_input+0xc0>
  71941. return;
  71942. 801d20c: bf00 nop
  71943. 801d20e: e000 b.n 801d212 <tcp_timewait_input+0xc2>
  71944. return;
  71945. 801d210: bf00 nop
  71946. }
  71947. 801d212: 3708 adds r7, #8
  71948. 801d214: 46bd mov sp, r7
  71949. 801d216: bd80 pop {r7, pc}
  71950. 801d218: 2402aed0 .word 0x2402aed0
  71951. 801d21c: 0802ed58 .word 0x0802ed58
  71952. 801d220: 0802ef70 .word 0x0802ef70
  71953. 801d224: 0802eda4 .word 0x0802eda4
  71954. 801d228: 2402aec4 .word 0x2402aec4
  71955. 801d22c: 2402aec8 .word 0x2402aec8
  71956. 801d230: 2402aece .word 0x2402aece
  71957. 801d234: 2402aeb4 .word 0x2402aeb4
  71958. 801d238: 24024348 .word 0x24024348
  71959. 801d23c: 2402434c .word 0x2402434c
  71960. 801d240: 2402ae88 .word 0x2402ae88
  71961. 0801d244 <tcp_process>:
  71962. * @note the segment which arrived is saved in global variables, therefore only the pcb
  71963. * involved is passed as a parameter to this function
  71964. */
  71965. static err_t
  71966. tcp_process(struct tcp_pcb *pcb)
  71967. {
  71968. 801d244: b590 push {r4, r7, lr}
  71969. 801d246: b08d sub sp, #52 @ 0x34
  71970. 801d248: af04 add r7, sp, #16
  71971. 801d24a: 6078 str r0, [r7, #4]
  71972. struct tcp_seg *rseg;
  71973. u8_t acceptable = 0;
  71974. 801d24c: 2300 movs r3, #0
  71975. 801d24e: 77fb strb r3, [r7, #31]
  71976. err_t err;
  71977. err = ERR_OK;
  71978. 801d250: 2300 movs r3, #0
  71979. 801d252: 77bb strb r3, [r7, #30]
  71980. LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL);
  71981. 801d254: 687b ldr r3, [r7, #4]
  71982. 801d256: 2b00 cmp r3, #0
  71983. 801d258: d106 bne.n 801d268 <tcp_process+0x24>
  71984. 801d25a: 4b9d ldr r3, [pc, #628] @ (801d4d0 <tcp_process+0x28c>)
  71985. 801d25c: f44f 7247 mov.w r2, #796 @ 0x31c
  71986. 801d260: 499c ldr r1, [pc, #624] @ (801d4d4 <tcp_process+0x290>)
  71987. 801d262: 489d ldr r0, [pc, #628] @ (801d4d8 <tcp_process+0x294>)
  71988. 801d264: f00c fbba bl 80299dc <iprintf>
  71989. /* Process incoming RST segments. */
  71990. if (flags & TCP_RST) {
  71991. 801d268: 4b9c ldr r3, [pc, #624] @ (801d4dc <tcp_process+0x298>)
  71992. 801d26a: 781b ldrb r3, [r3, #0]
  71993. 801d26c: f003 0304 and.w r3, r3, #4
  71994. 801d270: 2b00 cmp r3, #0
  71995. 801d272: d04e beq.n 801d312 <tcp_process+0xce>
  71996. /* First, determine if the reset is acceptable. */
  71997. if (pcb->state == SYN_SENT) {
  71998. 801d274: 687b ldr r3, [r7, #4]
  71999. 801d276: 7d1b ldrb r3, [r3, #20]
  72000. 801d278: 2b02 cmp r3, #2
  72001. 801d27a: d108 bne.n 801d28e <tcp_process+0x4a>
  72002. /* "In the SYN-SENT state (a RST received in response to an initial SYN),
  72003. the RST is acceptable if the ACK field acknowledges the SYN." */
  72004. if (ackno == pcb->snd_nxt) {
  72005. 801d27c: 687b ldr r3, [r7, #4]
  72006. 801d27e: 6d1a ldr r2, [r3, #80] @ 0x50
  72007. 801d280: 4b97 ldr r3, [pc, #604] @ (801d4e0 <tcp_process+0x29c>)
  72008. 801d282: 681b ldr r3, [r3, #0]
  72009. 801d284: 429a cmp r2, r3
  72010. 801d286: d123 bne.n 801d2d0 <tcp_process+0x8c>
  72011. acceptable = 1;
  72012. 801d288: 2301 movs r3, #1
  72013. 801d28a: 77fb strb r3, [r7, #31]
  72014. 801d28c: e020 b.n 801d2d0 <tcp_process+0x8c>
  72015. }
  72016. } else {
  72017. /* "In all states except SYN-SENT, all reset (RST) segments are validated
  72018. by checking their SEQ-fields." */
  72019. if (seqno == pcb->rcv_nxt) {
  72020. 801d28e: 687b ldr r3, [r7, #4]
  72021. 801d290: 6a5a ldr r2, [r3, #36] @ 0x24
  72022. 801d292: 4b94 ldr r3, [pc, #592] @ (801d4e4 <tcp_process+0x2a0>)
  72023. 801d294: 681b ldr r3, [r3, #0]
  72024. 801d296: 429a cmp r2, r3
  72025. 801d298: d102 bne.n 801d2a0 <tcp_process+0x5c>
  72026. acceptable = 1;
  72027. 801d29a: 2301 movs r3, #1
  72028. 801d29c: 77fb strb r3, [r7, #31]
  72029. 801d29e: e017 b.n 801d2d0 <tcp_process+0x8c>
  72030. } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  72031. 801d2a0: 4b90 ldr r3, [pc, #576] @ (801d4e4 <tcp_process+0x2a0>)
  72032. 801d2a2: 681a ldr r2, [r3, #0]
  72033. 801d2a4: 687b ldr r3, [r7, #4]
  72034. 801d2a6: 6a5b ldr r3, [r3, #36] @ 0x24
  72035. 801d2a8: 1ad3 subs r3, r2, r3
  72036. 801d2aa: 2b00 cmp r3, #0
  72037. 801d2ac: db10 blt.n 801d2d0 <tcp_process+0x8c>
  72038. 801d2ae: 4b8d ldr r3, [pc, #564] @ (801d4e4 <tcp_process+0x2a0>)
  72039. 801d2b0: 681a ldr r2, [r3, #0]
  72040. 801d2b2: 687b ldr r3, [r7, #4]
  72041. 801d2b4: 6a5b ldr r3, [r3, #36] @ 0x24
  72042. 801d2b6: 6879 ldr r1, [r7, #4]
  72043. 801d2b8: 8d09 ldrh r1, [r1, #40] @ 0x28
  72044. 801d2ba: 440b add r3, r1
  72045. 801d2bc: 1ad3 subs r3, r2, r3
  72046. 801d2be: 2b00 cmp r3, #0
  72047. 801d2c0: dc06 bgt.n 801d2d0 <tcp_process+0x8c>
  72048. pcb->rcv_nxt + pcb->rcv_wnd)) {
  72049. /* If the sequence number is inside the window, we send a challenge ACK
  72050. and wait for a re-send with matching sequence number.
  72051. This follows RFC 5961 section 3.2 and addresses CVE-2004-0230
  72052. (RST spoofing attack), which is present in RFC 793 RST handling. */
  72053. tcp_ack_now(pcb);
  72054. 801d2c2: 687b ldr r3, [r7, #4]
  72055. 801d2c4: 8b5b ldrh r3, [r3, #26]
  72056. 801d2c6: f043 0302 orr.w r3, r3, #2
  72057. 801d2ca: b29a uxth r2, r3
  72058. 801d2cc: 687b ldr r3, [r7, #4]
  72059. 801d2ce: 835a strh r2, [r3, #26]
  72060. }
  72061. }
  72062. if (acceptable) {
  72063. 801d2d0: 7ffb ldrb r3, [r7, #31]
  72064. 801d2d2: 2b00 cmp r3, #0
  72065. 801d2d4: d01b beq.n 801d30e <tcp_process+0xca>
  72066. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n"));
  72067. LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED);
  72068. 801d2d6: 687b ldr r3, [r7, #4]
  72069. 801d2d8: 7d1b ldrb r3, [r3, #20]
  72070. 801d2da: 2b00 cmp r3, #0
  72071. 801d2dc: d106 bne.n 801d2ec <tcp_process+0xa8>
  72072. 801d2de: 4b7c ldr r3, [pc, #496] @ (801d4d0 <tcp_process+0x28c>)
  72073. 801d2e0: f44f 724e mov.w r2, #824 @ 0x338
  72074. 801d2e4: 4980 ldr r1, [pc, #512] @ (801d4e8 <tcp_process+0x2a4>)
  72075. 801d2e6: 487c ldr r0, [pc, #496] @ (801d4d8 <tcp_process+0x294>)
  72076. 801d2e8: f00c fb78 bl 80299dc <iprintf>
  72077. recv_flags |= TF_RESET;
  72078. 801d2ec: 4b7f ldr r3, [pc, #508] @ (801d4ec <tcp_process+0x2a8>)
  72079. 801d2ee: 781b ldrb r3, [r3, #0]
  72080. 801d2f0: f043 0308 orr.w r3, r3, #8
  72081. 801d2f4: b2da uxtb r2, r3
  72082. 801d2f6: 4b7d ldr r3, [pc, #500] @ (801d4ec <tcp_process+0x2a8>)
  72083. 801d2f8: 701a strb r2, [r3, #0]
  72084. tcp_clear_flags(pcb, TF_ACK_DELAY);
  72085. 801d2fa: 687b ldr r3, [r7, #4]
  72086. 801d2fc: 8b5b ldrh r3, [r3, #26]
  72087. 801d2fe: f023 0301 bic.w r3, r3, #1
  72088. 801d302: b29a uxth r2, r3
  72089. 801d304: 687b ldr r3, [r7, #4]
  72090. 801d306: 835a strh r2, [r3, #26]
  72091. return ERR_RST;
  72092. 801d308: f06f 030d mvn.w r3, #13
  72093. 801d30c: e37a b.n 801da04 <tcp_process+0x7c0>
  72094. } else {
  72095. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  72096. seqno, pcb->rcv_nxt));
  72097. LWIP_DEBUGF(TCP_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  72098. seqno, pcb->rcv_nxt));
  72099. return ERR_OK;
  72100. 801d30e: 2300 movs r3, #0
  72101. 801d310: e378 b.n 801da04 <tcp_process+0x7c0>
  72102. }
  72103. }
  72104. if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) {
  72105. 801d312: 4b72 ldr r3, [pc, #456] @ (801d4dc <tcp_process+0x298>)
  72106. 801d314: 781b ldrb r3, [r3, #0]
  72107. 801d316: f003 0302 and.w r3, r3, #2
  72108. 801d31a: 2b00 cmp r3, #0
  72109. 801d31c: d010 beq.n 801d340 <tcp_process+0xfc>
  72110. 801d31e: 687b ldr r3, [r7, #4]
  72111. 801d320: 7d1b ldrb r3, [r3, #20]
  72112. 801d322: 2b02 cmp r3, #2
  72113. 801d324: d00c beq.n 801d340 <tcp_process+0xfc>
  72114. 801d326: 687b ldr r3, [r7, #4]
  72115. 801d328: 7d1b ldrb r3, [r3, #20]
  72116. 801d32a: 2b03 cmp r3, #3
  72117. 801d32c: d008 beq.n 801d340 <tcp_process+0xfc>
  72118. /* Cope with new connection attempt after remote end crashed */
  72119. tcp_ack_now(pcb);
  72120. 801d32e: 687b ldr r3, [r7, #4]
  72121. 801d330: 8b5b ldrh r3, [r3, #26]
  72122. 801d332: f043 0302 orr.w r3, r3, #2
  72123. 801d336: b29a uxth r2, r3
  72124. 801d338: 687b ldr r3, [r7, #4]
  72125. 801d33a: 835a strh r2, [r3, #26]
  72126. return ERR_OK;
  72127. 801d33c: 2300 movs r3, #0
  72128. 801d33e: e361 b.n 801da04 <tcp_process+0x7c0>
  72129. }
  72130. if ((pcb->flags & TF_RXCLOSED) == 0) {
  72131. 801d340: 687b ldr r3, [r7, #4]
  72132. 801d342: 8b5b ldrh r3, [r3, #26]
  72133. 801d344: f003 0310 and.w r3, r3, #16
  72134. 801d348: 2b00 cmp r3, #0
  72135. 801d34a: d103 bne.n 801d354 <tcp_process+0x110>
  72136. /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */
  72137. pcb->tmr = tcp_ticks;
  72138. 801d34c: 4b68 ldr r3, [pc, #416] @ (801d4f0 <tcp_process+0x2ac>)
  72139. 801d34e: 681a ldr r2, [r3, #0]
  72140. 801d350: 687b ldr r3, [r7, #4]
  72141. 801d352: 621a str r2, [r3, #32]
  72142. }
  72143. pcb->keep_cnt_sent = 0;
  72144. 801d354: 687b ldr r3, [r7, #4]
  72145. 801d356: 2200 movs r2, #0
  72146. 801d358: f883 209b strb.w r2, [r3, #155] @ 0x9b
  72147. pcb->persist_probe = 0;
  72148. 801d35c: 687b ldr r3, [r7, #4]
  72149. 801d35e: 2200 movs r2, #0
  72150. 801d360: f883 209a strb.w r2, [r3, #154] @ 0x9a
  72151. tcp_parseopt(pcb);
  72152. 801d364: 6878 ldr r0, [r7, #4]
  72153. 801d366: f001 fc2b bl 801ebc0 <tcp_parseopt>
  72154. /* Do different things depending on the TCP state. */
  72155. switch (pcb->state) {
  72156. 801d36a: 687b ldr r3, [r7, #4]
  72157. 801d36c: 7d1b ldrb r3, [r3, #20]
  72158. 801d36e: 3b02 subs r3, #2
  72159. 801d370: 2b07 cmp r3, #7
  72160. 801d372: f200 8337 bhi.w 801d9e4 <tcp_process+0x7a0>
  72161. 801d376: a201 add r2, pc, #4 @ (adr r2, 801d37c <tcp_process+0x138>)
  72162. 801d378: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  72163. 801d37c: 0801d39d .word 0x0801d39d
  72164. 801d380: 0801d5cd .word 0x0801d5cd
  72165. 801d384: 0801d745 .word 0x0801d745
  72166. 801d388: 0801d76f .word 0x0801d76f
  72167. 801d38c: 0801d893 .word 0x0801d893
  72168. 801d390: 0801d745 .word 0x0801d745
  72169. 801d394: 0801d91f .word 0x0801d91f
  72170. 801d398: 0801d9af .word 0x0801d9af
  72171. case SYN_SENT:
  72172. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno,
  72173. pcb->snd_nxt, lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  72174. /* received SYN ACK with expected sequence number? */
  72175. if ((flags & TCP_ACK) && (flags & TCP_SYN)
  72176. 801d39c: 4b4f ldr r3, [pc, #316] @ (801d4dc <tcp_process+0x298>)
  72177. 801d39e: 781b ldrb r3, [r3, #0]
  72178. 801d3a0: f003 0310 and.w r3, r3, #16
  72179. 801d3a4: 2b00 cmp r3, #0
  72180. 801d3a6: f000 80e4 beq.w 801d572 <tcp_process+0x32e>
  72181. 801d3aa: 4b4c ldr r3, [pc, #304] @ (801d4dc <tcp_process+0x298>)
  72182. 801d3ac: 781b ldrb r3, [r3, #0]
  72183. 801d3ae: f003 0302 and.w r3, r3, #2
  72184. 801d3b2: 2b00 cmp r3, #0
  72185. 801d3b4: f000 80dd beq.w 801d572 <tcp_process+0x32e>
  72186. && (ackno == pcb->lastack + 1)) {
  72187. 801d3b8: 687b ldr r3, [r7, #4]
  72188. 801d3ba: 6c5b ldr r3, [r3, #68] @ 0x44
  72189. 801d3bc: 1c5a adds r2, r3, #1
  72190. 801d3be: 4b48 ldr r3, [pc, #288] @ (801d4e0 <tcp_process+0x29c>)
  72191. 801d3c0: 681b ldr r3, [r3, #0]
  72192. 801d3c2: 429a cmp r2, r3
  72193. 801d3c4: f040 80d5 bne.w 801d572 <tcp_process+0x32e>
  72194. pcb->rcv_nxt = seqno + 1;
  72195. 801d3c8: 4b46 ldr r3, [pc, #280] @ (801d4e4 <tcp_process+0x2a0>)
  72196. 801d3ca: 681b ldr r3, [r3, #0]
  72197. 801d3cc: 1c5a adds r2, r3, #1
  72198. 801d3ce: 687b ldr r3, [r7, #4]
  72199. 801d3d0: 625a str r2, [r3, #36] @ 0x24
  72200. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  72201. 801d3d2: 687b ldr r3, [r7, #4]
  72202. 801d3d4: 6a5a ldr r2, [r3, #36] @ 0x24
  72203. 801d3d6: 687b ldr r3, [r7, #4]
  72204. 801d3d8: 62da str r2, [r3, #44] @ 0x2c
  72205. pcb->lastack = ackno;
  72206. 801d3da: 4b41 ldr r3, [pc, #260] @ (801d4e0 <tcp_process+0x29c>)
  72207. 801d3dc: 681a ldr r2, [r3, #0]
  72208. 801d3de: 687b ldr r3, [r7, #4]
  72209. 801d3e0: 645a str r2, [r3, #68] @ 0x44
  72210. pcb->snd_wnd = tcphdr->wnd;
  72211. 801d3e2: 4b44 ldr r3, [pc, #272] @ (801d4f4 <tcp_process+0x2b0>)
  72212. 801d3e4: 681b ldr r3, [r3, #0]
  72213. 801d3e6: 89db ldrh r3, [r3, #14]
  72214. 801d3e8: b29a uxth r2, r3
  72215. 801d3ea: 687b ldr r3, [r7, #4]
  72216. 801d3ec: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  72217. pcb->snd_wnd_max = pcb->snd_wnd;
  72218. 801d3f0: 687b ldr r3, [r7, #4]
  72219. 801d3f2: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  72220. 801d3f6: 687b ldr r3, [r7, #4]
  72221. 801d3f8: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  72222. pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */
  72223. 801d3fc: 4b39 ldr r3, [pc, #228] @ (801d4e4 <tcp_process+0x2a0>)
  72224. 801d3fe: 681b ldr r3, [r3, #0]
  72225. 801d400: 1e5a subs r2, r3, #1
  72226. 801d402: 687b ldr r3, [r7, #4]
  72227. 801d404: 655a str r2, [r3, #84] @ 0x54
  72228. pcb->state = ESTABLISHED;
  72229. 801d406: 687b ldr r3, [r7, #4]
  72230. 801d408: 2204 movs r2, #4
  72231. 801d40a: 751a strb r2, [r3, #20]
  72232. #if TCP_CALCULATE_EFF_SEND_MSS
  72233. pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
  72234. 801d40c: 687b ldr r3, [r7, #4]
  72235. 801d40e: 8e5c ldrh r4, [r3, #50] @ 0x32
  72236. 801d410: 687b ldr r3, [r7, #4]
  72237. 801d412: 3304 adds r3, #4
  72238. 801d414: 4618 mov r0, r3
  72239. 801d416: f007 fad3 bl 80249c0 <ip4_route>
  72240. 801d41a: 4601 mov r1, r0
  72241. 801d41c: 687b ldr r3, [r7, #4]
  72242. 801d41e: 3304 adds r3, #4
  72243. 801d420: 461a mov r2, r3
  72244. 801d422: 4620 mov r0, r4
  72245. 801d424: f7ff f88a bl 801c53c <tcp_eff_send_mss_netif>
  72246. 801d428: 4603 mov r3, r0
  72247. 801d42a: 461a mov r2, r3
  72248. 801d42c: 687b ldr r3, [r7, #4]
  72249. 801d42e: 865a strh r2, [r3, #50] @ 0x32
  72250. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  72251. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  72252. 801d430: 687b ldr r3, [r7, #4]
  72253. 801d432: 8e5b ldrh r3, [r3, #50] @ 0x32
  72254. 801d434: 009a lsls r2, r3, #2
  72255. 801d436: 687b ldr r3, [r7, #4]
  72256. 801d438: 8e5b ldrh r3, [r3, #50] @ 0x32
  72257. 801d43a: 005b lsls r3, r3, #1
  72258. 801d43c: f241 111c movw r1, #4380 @ 0x111c
  72259. 801d440: 428b cmp r3, r1
  72260. 801d442: bf38 it cc
  72261. 801d444: 460b movcc r3, r1
  72262. 801d446: 429a cmp r2, r3
  72263. 801d448: d204 bcs.n 801d454 <tcp_process+0x210>
  72264. 801d44a: 687b ldr r3, [r7, #4]
  72265. 801d44c: 8e5b ldrh r3, [r3, #50] @ 0x32
  72266. 801d44e: 009b lsls r3, r3, #2
  72267. 801d450: b29b uxth r3, r3
  72268. 801d452: e00d b.n 801d470 <tcp_process+0x22c>
  72269. 801d454: 687b ldr r3, [r7, #4]
  72270. 801d456: 8e5b ldrh r3, [r3, #50] @ 0x32
  72271. 801d458: 005b lsls r3, r3, #1
  72272. 801d45a: f241 121c movw r2, #4380 @ 0x111c
  72273. 801d45e: 4293 cmp r3, r2
  72274. 801d460: d904 bls.n 801d46c <tcp_process+0x228>
  72275. 801d462: 687b ldr r3, [r7, #4]
  72276. 801d464: 8e5b ldrh r3, [r3, #50] @ 0x32
  72277. 801d466: 005b lsls r3, r3, #1
  72278. 801d468: b29b uxth r3, r3
  72279. 801d46a: e001 b.n 801d470 <tcp_process+0x22c>
  72280. 801d46c: f241 131c movw r3, #4380 @ 0x111c
  72281. 801d470: 687a ldr r2, [r7, #4]
  72282. 801d472: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  72283. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SENT): cwnd %"TCPWNDSIZE_F
  72284. " ssthresh %"TCPWNDSIZE_F"\n",
  72285. pcb->cwnd, pcb->ssthresh));
  72286. LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0));
  72287. 801d476: 687b ldr r3, [r7, #4]
  72288. 801d478: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  72289. 801d47c: 2b00 cmp r3, #0
  72290. 801d47e: d106 bne.n 801d48e <tcp_process+0x24a>
  72291. 801d480: 4b13 ldr r3, [pc, #76] @ (801d4d0 <tcp_process+0x28c>)
  72292. 801d482: f44f 725b mov.w r2, #876 @ 0x36c
  72293. 801d486: 491c ldr r1, [pc, #112] @ (801d4f8 <tcp_process+0x2b4>)
  72294. 801d488: 4813 ldr r0, [pc, #76] @ (801d4d8 <tcp_process+0x294>)
  72295. 801d48a: f00c faa7 bl 80299dc <iprintf>
  72296. --pcb->snd_queuelen;
  72297. 801d48e: 687b ldr r3, [r7, #4]
  72298. 801d490: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  72299. 801d494: 3b01 subs r3, #1
  72300. 801d496: b29a uxth r2, r3
  72301. 801d498: 687b ldr r3, [r7, #4]
  72302. 801d49a: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  72303. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  72304. rseg = pcb->unacked;
  72305. 801d49e: 687b ldr r3, [r7, #4]
  72306. 801d4a0: 6f1b ldr r3, [r3, #112] @ 0x70
  72307. 801d4a2: 617b str r3, [r7, #20]
  72308. if (rseg == NULL) {
  72309. 801d4a4: 697b ldr r3, [r7, #20]
  72310. 801d4a6: 2b00 cmp r3, #0
  72311. 801d4a8: d12a bne.n 801d500 <tcp_process+0x2bc>
  72312. /* might happen if tcp_output fails in tcp_rexmit_rto()
  72313. in which case the segment is on the unsent list */
  72314. rseg = pcb->unsent;
  72315. 801d4aa: 687b ldr r3, [r7, #4]
  72316. 801d4ac: 6edb ldr r3, [r3, #108] @ 0x6c
  72317. 801d4ae: 617b str r3, [r7, #20]
  72318. LWIP_ASSERT("no segment to free", rseg != NULL);
  72319. 801d4b0: 697b ldr r3, [r7, #20]
  72320. 801d4b2: 2b00 cmp r3, #0
  72321. 801d4b4: d106 bne.n 801d4c4 <tcp_process+0x280>
  72322. 801d4b6: 4b06 ldr r3, [pc, #24] @ (801d4d0 <tcp_process+0x28c>)
  72323. 801d4b8: f44f 725d mov.w r2, #884 @ 0x374
  72324. 801d4bc: 490f ldr r1, [pc, #60] @ (801d4fc <tcp_process+0x2b8>)
  72325. 801d4be: 4806 ldr r0, [pc, #24] @ (801d4d8 <tcp_process+0x294>)
  72326. 801d4c0: f00c fa8c bl 80299dc <iprintf>
  72327. pcb->unsent = rseg->next;
  72328. 801d4c4: 697b ldr r3, [r7, #20]
  72329. 801d4c6: 681a ldr r2, [r3, #0]
  72330. 801d4c8: 687b ldr r3, [r7, #4]
  72331. 801d4ca: 66da str r2, [r3, #108] @ 0x6c
  72332. 801d4cc: e01c b.n 801d508 <tcp_process+0x2c4>
  72333. 801d4ce: bf00 nop
  72334. 801d4d0: 0802ed58 .word 0x0802ed58
  72335. 801d4d4: 0802ef90 .word 0x0802ef90
  72336. 801d4d8: 0802eda4 .word 0x0802eda4
  72337. 801d4dc: 2402aed0 .word 0x2402aed0
  72338. 801d4e0: 2402aec8 .word 0x2402aec8
  72339. 801d4e4: 2402aec4 .word 0x2402aec4
  72340. 801d4e8: 0802efac .word 0x0802efac
  72341. 801d4ec: 2402aed1 .word 0x2402aed1
  72342. 801d4f0: 2402ae88 .word 0x2402ae88
  72343. 801d4f4: 2402aeb4 .word 0x2402aeb4
  72344. 801d4f8: 0802efcc .word 0x0802efcc
  72345. 801d4fc: 0802efe4 .word 0x0802efe4
  72346. } else {
  72347. pcb->unacked = rseg->next;
  72348. 801d500: 697b ldr r3, [r7, #20]
  72349. 801d502: 681a ldr r2, [r3, #0]
  72350. 801d504: 687b ldr r3, [r7, #4]
  72351. 801d506: 671a str r2, [r3, #112] @ 0x70
  72352. }
  72353. tcp_seg_free(rseg);
  72354. 801d508: 6978 ldr r0, [r7, #20]
  72355. 801d50a: f7fe fc48 bl 801bd9e <tcp_seg_free>
  72356. /* If there's nothing left to acknowledge, stop the retransmit
  72357. timer, otherwise reset it to start again */
  72358. if (pcb->unacked == NULL) {
  72359. 801d50e: 687b ldr r3, [r7, #4]
  72360. 801d510: 6f1b ldr r3, [r3, #112] @ 0x70
  72361. 801d512: 2b00 cmp r3, #0
  72362. 801d514: d104 bne.n 801d520 <tcp_process+0x2dc>
  72363. pcb->rtime = -1;
  72364. 801d516: 687b ldr r3, [r7, #4]
  72365. 801d518: f64f 72ff movw r2, #65535 @ 0xffff
  72366. 801d51c: 861a strh r2, [r3, #48] @ 0x30
  72367. 801d51e: e006 b.n 801d52e <tcp_process+0x2ea>
  72368. } else {
  72369. pcb->rtime = 0;
  72370. 801d520: 687b ldr r3, [r7, #4]
  72371. 801d522: 2200 movs r2, #0
  72372. 801d524: 861a strh r2, [r3, #48] @ 0x30
  72373. pcb->nrtx = 0;
  72374. 801d526: 687b ldr r3, [r7, #4]
  72375. 801d528: 2200 movs r2, #0
  72376. 801d52a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  72377. }
  72378. /* Call the user specified function to call when successfully
  72379. * connected. */
  72380. TCP_EVENT_CONNECTED(pcb, ERR_OK, err);
  72381. 801d52e: 687b ldr r3, [r7, #4]
  72382. 801d530: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  72383. 801d534: 2b00 cmp r3, #0
  72384. 801d536: d00a beq.n 801d54e <tcp_process+0x30a>
  72385. 801d538: 687b ldr r3, [r7, #4]
  72386. 801d53a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  72387. 801d53e: 687a ldr r2, [r7, #4]
  72388. 801d540: 6910 ldr r0, [r2, #16]
  72389. 801d542: 2200 movs r2, #0
  72390. 801d544: 6879 ldr r1, [r7, #4]
  72391. 801d546: 4798 blx r3
  72392. 801d548: 4603 mov r3, r0
  72393. 801d54a: 77bb strb r3, [r7, #30]
  72394. 801d54c: e001 b.n 801d552 <tcp_process+0x30e>
  72395. 801d54e: 2300 movs r3, #0
  72396. 801d550: 77bb strb r3, [r7, #30]
  72397. if (err == ERR_ABRT) {
  72398. 801d552: f997 301e ldrsb.w r3, [r7, #30]
  72399. 801d556: f113 0f0d cmn.w r3, #13
  72400. 801d55a: d102 bne.n 801d562 <tcp_process+0x31e>
  72401. return ERR_ABRT;
  72402. 801d55c: f06f 030c mvn.w r3, #12
  72403. 801d560: e250 b.n 801da04 <tcp_process+0x7c0>
  72404. }
  72405. tcp_ack_now(pcb);
  72406. 801d562: 687b ldr r3, [r7, #4]
  72407. 801d564: 8b5b ldrh r3, [r3, #26]
  72408. 801d566: f043 0302 orr.w r3, r3, #2
  72409. 801d56a: b29a uxth r2, r3
  72410. 801d56c: 687b ldr r3, [r7, #4]
  72411. 801d56e: 835a strh r2, [r3, #26]
  72412. if (pcb->nrtx < TCP_SYNMAXRTX) {
  72413. pcb->rtime = 0;
  72414. tcp_rexmit_rto(pcb);
  72415. }
  72416. }
  72417. break;
  72418. 801d570: e23a b.n 801d9e8 <tcp_process+0x7a4>
  72419. else if (flags & TCP_ACK) {
  72420. 801d572: 4b98 ldr r3, [pc, #608] @ (801d7d4 <tcp_process+0x590>)
  72421. 801d574: 781b ldrb r3, [r3, #0]
  72422. 801d576: f003 0310 and.w r3, r3, #16
  72423. 801d57a: 2b00 cmp r3, #0
  72424. 801d57c: f000 8234 beq.w 801d9e8 <tcp_process+0x7a4>
  72425. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72426. 801d580: 4b95 ldr r3, [pc, #596] @ (801d7d8 <tcp_process+0x594>)
  72427. 801d582: 6819 ldr r1, [r3, #0]
  72428. 801d584: 4b95 ldr r3, [pc, #596] @ (801d7dc <tcp_process+0x598>)
  72429. 801d586: 881b ldrh r3, [r3, #0]
  72430. 801d588: 461a mov r2, r3
  72431. 801d58a: 4b95 ldr r3, [pc, #596] @ (801d7e0 <tcp_process+0x59c>)
  72432. 801d58c: 681b ldr r3, [r3, #0]
  72433. 801d58e: 18d0 adds r0, r2, r3
  72434. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72435. 801d590: 4b94 ldr r3, [pc, #592] @ (801d7e4 <tcp_process+0x5a0>)
  72436. 801d592: 681b ldr r3, [r3, #0]
  72437. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72438. 801d594: 885b ldrh r3, [r3, #2]
  72439. 801d596: b29b uxth r3, r3
  72440. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72441. 801d598: 4a92 ldr r2, [pc, #584] @ (801d7e4 <tcp_process+0x5a0>)
  72442. 801d59a: 6812 ldr r2, [r2, #0]
  72443. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72444. 801d59c: 8812 ldrh r2, [r2, #0]
  72445. 801d59e: b292 uxth r2, r2
  72446. 801d5a0: 9202 str r2, [sp, #8]
  72447. 801d5a2: 9301 str r3, [sp, #4]
  72448. 801d5a4: 4b90 ldr r3, [pc, #576] @ (801d7e8 <tcp_process+0x5a4>)
  72449. 801d5a6: 9300 str r3, [sp, #0]
  72450. 801d5a8: 4b90 ldr r3, [pc, #576] @ (801d7ec <tcp_process+0x5a8>)
  72451. 801d5aa: 4602 mov r2, r0
  72452. 801d5ac: 6878 ldr r0, [r7, #4]
  72453. 801d5ae: f003 f94b bl 8020848 <tcp_rst>
  72454. if (pcb->nrtx < TCP_SYNMAXRTX) {
  72455. 801d5b2: 687b ldr r3, [r7, #4]
  72456. 801d5b4: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  72457. 801d5b8: 2b05 cmp r3, #5
  72458. 801d5ba: f200 8215 bhi.w 801d9e8 <tcp_process+0x7a4>
  72459. pcb->rtime = 0;
  72460. 801d5be: 687b ldr r3, [r7, #4]
  72461. 801d5c0: 2200 movs r2, #0
  72462. 801d5c2: 861a strh r2, [r3, #48] @ 0x30
  72463. tcp_rexmit_rto(pcb);
  72464. 801d5c4: 6878 ldr r0, [r7, #4]
  72465. 801d5c6: f002 ff17 bl 80203f8 <tcp_rexmit_rto>
  72466. break;
  72467. 801d5ca: e20d b.n 801d9e8 <tcp_process+0x7a4>
  72468. case SYN_RCVD:
  72469. if (flags & TCP_ACK) {
  72470. 801d5cc: 4b81 ldr r3, [pc, #516] @ (801d7d4 <tcp_process+0x590>)
  72471. 801d5ce: 781b ldrb r3, [r3, #0]
  72472. 801d5d0: f003 0310 and.w r3, r3, #16
  72473. 801d5d4: 2b00 cmp r3, #0
  72474. 801d5d6: f000 80a1 beq.w 801d71c <tcp_process+0x4d8>
  72475. /* expected ACK number? */
  72476. if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  72477. 801d5da: 4b7f ldr r3, [pc, #508] @ (801d7d8 <tcp_process+0x594>)
  72478. 801d5dc: 681a ldr r2, [r3, #0]
  72479. 801d5de: 687b ldr r3, [r7, #4]
  72480. 801d5e0: 6c5b ldr r3, [r3, #68] @ 0x44
  72481. 801d5e2: 1ad3 subs r3, r2, r3
  72482. 801d5e4: 3b01 subs r3, #1
  72483. 801d5e6: 2b00 cmp r3, #0
  72484. 801d5e8: db7e blt.n 801d6e8 <tcp_process+0x4a4>
  72485. 801d5ea: 4b7b ldr r3, [pc, #492] @ (801d7d8 <tcp_process+0x594>)
  72486. 801d5ec: 681a ldr r2, [r3, #0]
  72487. 801d5ee: 687b ldr r3, [r7, #4]
  72488. 801d5f0: 6d1b ldr r3, [r3, #80] @ 0x50
  72489. 801d5f2: 1ad3 subs r3, r2, r3
  72490. 801d5f4: 2b00 cmp r3, #0
  72491. 801d5f6: dc77 bgt.n 801d6e8 <tcp_process+0x4a4>
  72492. pcb->state = ESTABLISHED;
  72493. 801d5f8: 687b ldr r3, [r7, #4]
  72494. 801d5fa: 2204 movs r2, #4
  72495. 801d5fc: 751a strb r2, [r3, #20]
  72496. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection established %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72497. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  72498. if (pcb->listener == NULL) {
  72499. 801d5fe: 687b ldr r3, [r7, #4]
  72500. 801d600: 6fdb ldr r3, [r3, #124] @ 0x7c
  72501. 801d602: 2b00 cmp r3, #0
  72502. 801d604: d102 bne.n 801d60c <tcp_process+0x3c8>
  72503. /* listen pcb might be closed by now */
  72504. err = ERR_VAL;
  72505. 801d606: 23fa movs r3, #250 @ 0xfa
  72506. 801d608: 77bb strb r3, [r7, #30]
  72507. 801d60a: e01d b.n 801d648 <tcp_process+0x404>
  72508. } else
  72509. #endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */
  72510. {
  72511. #if LWIP_CALLBACK_API
  72512. LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL);
  72513. 801d60c: 687b ldr r3, [r7, #4]
  72514. 801d60e: 6fdb ldr r3, [r3, #124] @ 0x7c
  72515. 801d610: 699b ldr r3, [r3, #24]
  72516. 801d612: 2b00 cmp r3, #0
  72517. 801d614: d106 bne.n 801d624 <tcp_process+0x3e0>
  72518. 801d616: 4b76 ldr r3, [pc, #472] @ (801d7f0 <tcp_process+0x5ac>)
  72519. 801d618: f44f 726a mov.w r2, #936 @ 0x3a8
  72520. 801d61c: 4975 ldr r1, [pc, #468] @ (801d7f4 <tcp_process+0x5b0>)
  72521. 801d61e: 4876 ldr r0, [pc, #472] @ (801d7f8 <tcp_process+0x5b4>)
  72522. 801d620: f00c f9dc bl 80299dc <iprintf>
  72523. #endif
  72524. tcp_backlog_accepted(pcb);
  72525. /* Call the accept function. */
  72526. TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err);
  72527. 801d624: 687b ldr r3, [r7, #4]
  72528. 801d626: 6fdb ldr r3, [r3, #124] @ 0x7c
  72529. 801d628: 699b ldr r3, [r3, #24]
  72530. 801d62a: 2b00 cmp r3, #0
  72531. 801d62c: d00a beq.n 801d644 <tcp_process+0x400>
  72532. 801d62e: 687b ldr r3, [r7, #4]
  72533. 801d630: 6fdb ldr r3, [r3, #124] @ 0x7c
  72534. 801d632: 699b ldr r3, [r3, #24]
  72535. 801d634: 687a ldr r2, [r7, #4]
  72536. 801d636: 6910 ldr r0, [r2, #16]
  72537. 801d638: 2200 movs r2, #0
  72538. 801d63a: 6879 ldr r1, [r7, #4]
  72539. 801d63c: 4798 blx r3
  72540. 801d63e: 4603 mov r3, r0
  72541. 801d640: 77bb strb r3, [r7, #30]
  72542. 801d642: e001 b.n 801d648 <tcp_process+0x404>
  72543. 801d644: 23f0 movs r3, #240 @ 0xf0
  72544. 801d646: 77bb strb r3, [r7, #30]
  72545. }
  72546. if (err != ERR_OK) {
  72547. 801d648: f997 301e ldrsb.w r3, [r7, #30]
  72548. 801d64c: 2b00 cmp r3, #0
  72549. 801d64e: d00a beq.n 801d666 <tcp_process+0x422>
  72550. /* If the accept function returns with an error, we abort
  72551. * the connection. */
  72552. /* Already aborted? */
  72553. if (err != ERR_ABRT) {
  72554. 801d650: f997 301e ldrsb.w r3, [r7, #30]
  72555. 801d654: f113 0f0d cmn.w r3, #13
  72556. 801d658: d002 beq.n 801d660 <tcp_process+0x41c>
  72557. tcp_abort(pcb);
  72558. 801d65a: 6878 ldr r0, [r7, #4]
  72559. 801d65c: f7fd fd4c bl 801b0f8 <tcp_abort>
  72560. }
  72561. return ERR_ABRT;
  72562. 801d660: f06f 030c mvn.w r3, #12
  72563. 801d664: e1ce b.n 801da04 <tcp_process+0x7c0>
  72564. }
  72565. /* If there was any data contained within this ACK,
  72566. * we'd better pass it on to the application as well. */
  72567. tcp_receive(pcb);
  72568. 801d666: 6878 ldr r0, [r7, #4]
  72569. 801d668: f000 fae0 bl 801dc2c <tcp_receive>
  72570. /* Prevent ACK for SYN to generate a sent event */
  72571. if (recv_acked != 0) {
  72572. 801d66c: 4b63 ldr r3, [pc, #396] @ (801d7fc <tcp_process+0x5b8>)
  72573. 801d66e: 881b ldrh r3, [r3, #0]
  72574. 801d670: 2b00 cmp r3, #0
  72575. 801d672: d005 beq.n 801d680 <tcp_process+0x43c>
  72576. recv_acked--;
  72577. 801d674: 4b61 ldr r3, [pc, #388] @ (801d7fc <tcp_process+0x5b8>)
  72578. 801d676: 881b ldrh r3, [r3, #0]
  72579. 801d678: 3b01 subs r3, #1
  72580. 801d67a: b29a uxth r2, r3
  72581. 801d67c: 4b5f ldr r3, [pc, #380] @ (801d7fc <tcp_process+0x5b8>)
  72582. 801d67e: 801a strh r2, [r3, #0]
  72583. }
  72584. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  72585. 801d680: 687b ldr r3, [r7, #4]
  72586. 801d682: 8e5b ldrh r3, [r3, #50] @ 0x32
  72587. 801d684: 009a lsls r2, r3, #2
  72588. 801d686: 687b ldr r3, [r7, #4]
  72589. 801d688: 8e5b ldrh r3, [r3, #50] @ 0x32
  72590. 801d68a: 005b lsls r3, r3, #1
  72591. 801d68c: f241 111c movw r1, #4380 @ 0x111c
  72592. 801d690: 428b cmp r3, r1
  72593. 801d692: bf38 it cc
  72594. 801d694: 460b movcc r3, r1
  72595. 801d696: 429a cmp r2, r3
  72596. 801d698: d204 bcs.n 801d6a4 <tcp_process+0x460>
  72597. 801d69a: 687b ldr r3, [r7, #4]
  72598. 801d69c: 8e5b ldrh r3, [r3, #50] @ 0x32
  72599. 801d69e: 009b lsls r3, r3, #2
  72600. 801d6a0: b29b uxth r3, r3
  72601. 801d6a2: e00d b.n 801d6c0 <tcp_process+0x47c>
  72602. 801d6a4: 687b ldr r3, [r7, #4]
  72603. 801d6a6: 8e5b ldrh r3, [r3, #50] @ 0x32
  72604. 801d6a8: 005b lsls r3, r3, #1
  72605. 801d6aa: f241 121c movw r2, #4380 @ 0x111c
  72606. 801d6ae: 4293 cmp r3, r2
  72607. 801d6b0: d904 bls.n 801d6bc <tcp_process+0x478>
  72608. 801d6b2: 687b ldr r3, [r7, #4]
  72609. 801d6b4: 8e5b ldrh r3, [r3, #50] @ 0x32
  72610. 801d6b6: 005b lsls r3, r3, #1
  72611. 801d6b8: b29b uxth r3, r3
  72612. 801d6ba: e001 b.n 801d6c0 <tcp_process+0x47c>
  72613. 801d6bc: f241 131c movw r3, #4380 @ 0x111c
  72614. 801d6c0: 687a ldr r2, [r7, #4]
  72615. 801d6c2: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  72616. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SYN_RCVD): cwnd %"TCPWNDSIZE_F
  72617. " ssthresh %"TCPWNDSIZE_F"\n",
  72618. pcb->cwnd, pcb->ssthresh));
  72619. if (recv_flags & TF_GOT_FIN) {
  72620. 801d6c6: 4b4e ldr r3, [pc, #312] @ (801d800 <tcp_process+0x5bc>)
  72621. 801d6c8: 781b ldrb r3, [r3, #0]
  72622. 801d6ca: f003 0320 and.w r3, r3, #32
  72623. 801d6ce: 2b00 cmp r3, #0
  72624. 801d6d0: d037 beq.n 801d742 <tcp_process+0x4fe>
  72625. tcp_ack_now(pcb);
  72626. 801d6d2: 687b ldr r3, [r7, #4]
  72627. 801d6d4: 8b5b ldrh r3, [r3, #26]
  72628. 801d6d6: f043 0302 orr.w r3, r3, #2
  72629. 801d6da: b29a uxth r2, r3
  72630. 801d6dc: 687b ldr r3, [r7, #4]
  72631. 801d6de: 835a strh r2, [r3, #26]
  72632. pcb->state = CLOSE_WAIT;
  72633. 801d6e0: 687b ldr r3, [r7, #4]
  72634. 801d6e2: 2207 movs r2, #7
  72635. 801d6e4: 751a strb r2, [r3, #20]
  72636. if (recv_flags & TF_GOT_FIN) {
  72637. 801d6e6: e02c b.n 801d742 <tcp_process+0x4fe>
  72638. }
  72639. } else {
  72640. /* incorrect ACK number, send RST */
  72641. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72642. 801d6e8: 4b3b ldr r3, [pc, #236] @ (801d7d8 <tcp_process+0x594>)
  72643. 801d6ea: 6819 ldr r1, [r3, #0]
  72644. 801d6ec: 4b3b ldr r3, [pc, #236] @ (801d7dc <tcp_process+0x598>)
  72645. 801d6ee: 881b ldrh r3, [r3, #0]
  72646. 801d6f0: 461a mov r2, r3
  72647. 801d6f2: 4b3b ldr r3, [pc, #236] @ (801d7e0 <tcp_process+0x59c>)
  72648. 801d6f4: 681b ldr r3, [r3, #0]
  72649. 801d6f6: 18d0 adds r0, r2, r3
  72650. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72651. 801d6f8: 4b3a ldr r3, [pc, #232] @ (801d7e4 <tcp_process+0x5a0>)
  72652. 801d6fa: 681b ldr r3, [r3, #0]
  72653. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72654. 801d6fc: 885b ldrh r3, [r3, #2]
  72655. 801d6fe: b29b uxth r3, r3
  72656. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72657. 801d700: 4a38 ldr r2, [pc, #224] @ (801d7e4 <tcp_process+0x5a0>)
  72658. 801d702: 6812 ldr r2, [r2, #0]
  72659. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72660. 801d704: 8812 ldrh r2, [r2, #0]
  72661. 801d706: b292 uxth r2, r2
  72662. 801d708: 9202 str r2, [sp, #8]
  72663. 801d70a: 9301 str r3, [sp, #4]
  72664. 801d70c: 4b36 ldr r3, [pc, #216] @ (801d7e8 <tcp_process+0x5a4>)
  72665. 801d70e: 9300 str r3, [sp, #0]
  72666. 801d710: 4b36 ldr r3, [pc, #216] @ (801d7ec <tcp_process+0x5a8>)
  72667. 801d712: 4602 mov r2, r0
  72668. 801d714: 6878 ldr r0, [r7, #4]
  72669. 801d716: f003 f897 bl 8020848 <tcp_rst>
  72670. }
  72671. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  72672. /* Looks like another copy of the SYN - retransmit our SYN-ACK */
  72673. tcp_rexmit(pcb);
  72674. }
  72675. break;
  72676. 801d71a: e167 b.n 801d9ec <tcp_process+0x7a8>
  72677. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  72678. 801d71c: 4b2d ldr r3, [pc, #180] @ (801d7d4 <tcp_process+0x590>)
  72679. 801d71e: 781b ldrb r3, [r3, #0]
  72680. 801d720: f003 0302 and.w r3, r3, #2
  72681. 801d724: 2b00 cmp r3, #0
  72682. 801d726: f000 8161 beq.w 801d9ec <tcp_process+0x7a8>
  72683. 801d72a: 687b ldr r3, [r7, #4]
  72684. 801d72c: 6a5b ldr r3, [r3, #36] @ 0x24
  72685. 801d72e: 1e5a subs r2, r3, #1
  72686. 801d730: 4b2b ldr r3, [pc, #172] @ (801d7e0 <tcp_process+0x59c>)
  72687. 801d732: 681b ldr r3, [r3, #0]
  72688. 801d734: 429a cmp r2, r3
  72689. 801d736: f040 8159 bne.w 801d9ec <tcp_process+0x7a8>
  72690. tcp_rexmit(pcb);
  72691. 801d73a: 6878 ldr r0, [r7, #4]
  72692. 801d73c: f002 fe7e bl 802043c <tcp_rexmit>
  72693. break;
  72694. 801d740: e154 b.n 801d9ec <tcp_process+0x7a8>
  72695. 801d742: e153 b.n 801d9ec <tcp_process+0x7a8>
  72696. case CLOSE_WAIT:
  72697. /* FALLTHROUGH */
  72698. case ESTABLISHED:
  72699. tcp_receive(pcb);
  72700. 801d744: 6878 ldr r0, [r7, #4]
  72701. 801d746: f000 fa71 bl 801dc2c <tcp_receive>
  72702. if (recv_flags & TF_GOT_FIN) { /* passive close */
  72703. 801d74a: 4b2d ldr r3, [pc, #180] @ (801d800 <tcp_process+0x5bc>)
  72704. 801d74c: 781b ldrb r3, [r3, #0]
  72705. 801d74e: f003 0320 and.w r3, r3, #32
  72706. 801d752: 2b00 cmp r3, #0
  72707. 801d754: f000 814c beq.w 801d9f0 <tcp_process+0x7ac>
  72708. tcp_ack_now(pcb);
  72709. 801d758: 687b ldr r3, [r7, #4]
  72710. 801d75a: 8b5b ldrh r3, [r3, #26]
  72711. 801d75c: f043 0302 orr.w r3, r3, #2
  72712. 801d760: b29a uxth r2, r3
  72713. 801d762: 687b ldr r3, [r7, #4]
  72714. 801d764: 835a strh r2, [r3, #26]
  72715. pcb->state = CLOSE_WAIT;
  72716. 801d766: 687b ldr r3, [r7, #4]
  72717. 801d768: 2207 movs r2, #7
  72718. 801d76a: 751a strb r2, [r3, #20]
  72719. }
  72720. break;
  72721. 801d76c: e140 b.n 801d9f0 <tcp_process+0x7ac>
  72722. case FIN_WAIT_1:
  72723. tcp_receive(pcb);
  72724. 801d76e: 6878 ldr r0, [r7, #4]
  72725. 801d770: f000 fa5c bl 801dc2c <tcp_receive>
  72726. if (recv_flags & TF_GOT_FIN) {
  72727. 801d774: 4b22 ldr r3, [pc, #136] @ (801d800 <tcp_process+0x5bc>)
  72728. 801d776: 781b ldrb r3, [r3, #0]
  72729. 801d778: f003 0320 and.w r3, r3, #32
  72730. 801d77c: 2b00 cmp r3, #0
  72731. 801d77e: d071 beq.n 801d864 <tcp_process+0x620>
  72732. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  72733. 801d780: 4b14 ldr r3, [pc, #80] @ (801d7d4 <tcp_process+0x590>)
  72734. 801d782: 781b ldrb r3, [r3, #0]
  72735. 801d784: f003 0310 and.w r3, r3, #16
  72736. 801d788: 2b00 cmp r3, #0
  72737. 801d78a: d060 beq.n 801d84e <tcp_process+0x60a>
  72738. 801d78c: 687b ldr r3, [r7, #4]
  72739. 801d78e: 6d1a ldr r2, [r3, #80] @ 0x50
  72740. 801d790: 4b11 ldr r3, [pc, #68] @ (801d7d8 <tcp_process+0x594>)
  72741. 801d792: 681b ldr r3, [r3, #0]
  72742. 801d794: 429a cmp r2, r3
  72743. 801d796: d15a bne.n 801d84e <tcp_process+0x60a>
  72744. pcb->unsent == NULL) {
  72745. 801d798: 687b ldr r3, [r7, #4]
  72746. 801d79a: 6edb ldr r3, [r3, #108] @ 0x6c
  72747. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  72748. 801d79c: 2b00 cmp r3, #0
  72749. 801d79e: d156 bne.n 801d84e <tcp_process+0x60a>
  72750. LWIP_DEBUGF(TCP_DEBUG,
  72751. ("TCP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72752. tcp_ack_now(pcb);
  72753. 801d7a0: 687b ldr r3, [r7, #4]
  72754. 801d7a2: 8b5b ldrh r3, [r3, #26]
  72755. 801d7a4: f043 0302 orr.w r3, r3, #2
  72756. 801d7a8: b29a uxth r2, r3
  72757. 801d7aa: 687b ldr r3, [r7, #4]
  72758. 801d7ac: 835a strh r2, [r3, #26]
  72759. tcp_pcb_purge(pcb);
  72760. 801d7ae: 6878 ldr r0, [r7, #4]
  72761. 801d7b0: f7fe fdba bl 801c328 <tcp_pcb_purge>
  72762. TCP_RMV_ACTIVE(pcb);
  72763. 801d7b4: 4b13 ldr r3, [pc, #76] @ (801d804 <tcp_process+0x5c0>)
  72764. 801d7b6: 681b ldr r3, [r3, #0]
  72765. 801d7b8: 687a ldr r2, [r7, #4]
  72766. 801d7ba: 429a cmp r2, r3
  72767. 801d7bc: d105 bne.n 801d7ca <tcp_process+0x586>
  72768. 801d7be: 4b11 ldr r3, [pc, #68] @ (801d804 <tcp_process+0x5c0>)
  72769. 801d7c0: 681b ldr r3, [r3, #0]
  72770. 801d7c2: 68db ldr r3, [r3, #12]
  72771. 801d7c4: 4a0f ldr r2, [pc, #60] @ (801d804 <tcp_process+0x5c0>)
  72772. 801d7c6: 6013 str r3, [r2, #0]
  72773. 801d7c8: e02e b.n 801d828 <tcp_process+0x5e4>
  72774. 801d7ca: 4b0e ldr r3, [pc, #56] @ (801d804 <tcp_process+0x5c0>)
  72775. 801d7cc: 681b ldr r3, [r3, #0]
  72776. 801d7ce: 613b str r3, [r7, #16]
  72777. 801d7d0: e027 b.n 801d822 <tcp_process+0x5de>
  72778. 801d7d2: bf00 nop
  72779. 801d7d4: 2402aed0 .word 0x2402aed0
  72780. 801d7d8: 2402aec8 .word 0x2402aec8
  72781. 801d7dc: 2402aece .word 0x2402aece
  72782. 801d7e0: 2402aec4 .word 0x2402aec4
  72783. 801d7e4: 2402aeb4 .word 0x2402aeb4
  72784. 801d7e8: 24024348 .word 0x24024348
  72785. 801d7ec: 2402434c .word 0x2402434c
  72786. 801d7f0: 0802ed58 .word 0x0802ed58
  72787. 801d7f4: 0802eff8 .word 0x0802eff8
  72788. 801d7f8: 0802eda4 .word 0x0802eda4
  72789. 801d7fc: 2402aecc .word 0x2402aecc
  72790. 801d800: 2402aed1 .word 0x2402aed1
  72791. 801d804: 2402ae94 .word 0x2402ae94
  72792. 801d808: 693b ldr r3, [r7, #16]
  72793. 801d80a: 68db ldr r3, [r3, #12]
  72794. 801d80c: 687a ldr r2, [r7, #4]
  72795. 801d80e: 429a cmp r2, r3
  72796. 801d810: d104 bne.n 801d81c <tcp_process+0x5d8>
  72797. 801d812: 687b ldr r3, [r7, #4]
  72798. 801d814: 68da ldr r2, [r3, #12]
  72799. 801d816: 693b ldr r3, [r7, #16]
  72800. 801d818: 60da str r2, [r3, #12]
  72801. 801d81a: e005 b.n 801d828 <tcp_process+0x5e4>
  72802. 801d81c: 693b ldr r3, [r7, #16]
  72803. 801d81e: 68db ldr r3, [r3, #12]
  72804. 801d820: 613b str r3, [r7, #16]
  72805. 801d822: 693b ldr r3, [r7, #16]
  72806. 801d824: 2b00 cmp r3, #0
  72807. 801d826: d1ef bne.n 801d808 <tcp_process+0x5c4>
  72808. 801d828: 687b ldr r3, [r7, #4]
  72809. 801d82a: 2200 movs r2, #0
  72810. 801d82c: 60da str r2, [r3, #12]
  72811. 801d82e: 4b77 ldr r3, [pc, #476] @ (801da0c <tcp_process+0x7c8>)
  72812. 801d830: 2201 movs r2, #1
  72813. 801d832: 701a strb r2, [r3, #0]
  72814. pcb->state = TIME_WAIT;
  72815. 801d834: 687b ldr r3, [r7, #4]
  72816. 801d836: 220a movs r2, #10
  72817. 801d838: 751a strb r2, [r3, #20]
  72818. TCP_REG(&tcp_tw_pcbs, pcb);
  72819. 801d83a: 4b75 ldr r3, [pc, #468] @ (801da10 <tcp_process+0x7cc>)
  72820. 801d83c: 681a ldr r2, [r3, #0]
  72821. 801d83e: 687b ldr r3, [r7, #4]
  72822. 801d840: 60da str r2, [r3, #12]
  72823. 801d842: 4a73 ldr r2, [pc, #460] @ (801da10 <tcp_process+0x7cc>)
  72824. 801d844: 687b ldr r3, [r7, #4]
  72825. 801d846: 6013 str r3, [r2, #0]
  72826. 801d848: f003 f9c0 bl 8020bcc <tcp_timer_needed>
  72827. }
  72828. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  72829. pcb->unsent == NULL) {
  72830. pcb->state = FIN_WAIT_2;
  72831. }
  72832. break;
  72833. 801d84c: e0d2 b.n 801d9f4 <tcp_process+0x7b0>
  72834. tcp_ack_now(pcb);
  72835. 801d84e: 687b ldr r3, [r7, #4]
  72836. 801d850: 8b5b ldrh r3, [r3, #26]
  72837. 801d852: f043 0302 orr.w r3, r3, #2
  72838. 801d856: b29a uxth r2, r3
  72839. 801d858: 687b ldr r3, [r7, #4]
  72840. 801d85a: 835a strh r2, [r3, #26]
  72841. pcb->state = CLOSING;
  72842. 801d85c: 687b ldr r3, [r7, #4]
  72843. 801d85e: 2208 movs r2, #8
  72844. 801d860: 751a strb r2, [r3, #20]
  72845. break;
  72846. 801d862: e0c7 b.n 801d9f4 <tcp_process+0x7b0>
  72847. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  72848. 801d864: 4b6b ldr r3, [pc, #428] @ (801da14 <tcp_process+0x7d0>)
  72849. 801d866: 781b ldrb r3, [r3, #0]
  72850. 801d868: f003 0310 and.w r3, r3, #16
  72851. 801d86c: 2b00 cmp r3, #0
  72852. 801d86e: f000 80c1 beq.w 801d9f4 <tcp_process+0x7b0>
  72853. 801d872: 687b ldr r3, [r7, #4]
  72854. 801d874: 6d1a ldr r2, [r3, #80] @ 0x50
  72855. 801d876: 4b68 ldr r3, [pc, #416] @ (801da18 <tcp_process+0x7d4>)
  72856. 801d878: 681b ldr r3, [r3, #0]
  72857. 801d87a: 429a cmp r2, r3
  72858. 801d87c: f040 80ba bne.w 801d9f4 <tcp_process+0x7b0>
  72859. pcb->unsent == NULL) {
  72860. 801d880: 687b ldr r3, [r7, #4]
  72861. 801d882: 6edb ldr r3, [r3, #108] @ 0x6c
  72862. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  72863. 801d884: 2b00 cmp r3, #0
  72864. 801d886: f040 80b5 bne.w 801d9f4 <tcp_process+0x7b0>
  72865. pcb->state = FIN_WAIT_2;
  72866. 801d88a: 687b ldr r3, [r7, #4]
  72867. 801d88c: 2206 movs r2, #6
  72868. 801d88e: 751a strb r2, [r3, #20]
  72869. break;
  72870. 801d890: e0b0 b.n 801d9f4 <tcp_process+0x7b0>
  72871. case FIN_WAIT_2:
  72872. tcp_receive(pcb);
  72873. 801d892: 6878 ldr r0, [r7, #4]
  72874. 801d894: f000 f9ca bl 801dc2c <tcp_receive>
  72875. if (recv_flags & TF_GOT_FIN) {
  72876. 801d898: 4b60 ldr r3, [pc, #384] @ (801da1c <tcp_process+0x7d8>)
  72877. 801d89a: 781b ldrb r3, [r3, #0]
  72878. 801d89c: f003 0320 and.w r3, r3, #32
  72879. 801d8a0: 2b00 cmp r3, #0
  72880. 801d8a2: f000 80a9 beq.w 801d9f8 <tcp_process+0x7b4>
  72881. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72882. tcp_ack_now(pcb);
  72883. 801d8a6: 687b ldr r3, [r7, #4]
  72884. 801d8a8: 8b5b ldrh r3, [r3, #26]
  72885. 801d8aa: f043 0302 orr.w r3, r3, #2
  72886. 801d8ae: b29a uxth r2, r3
  72887. 801d8b0: 687b ldr r3, [r7, #4]
  72888. 801d8b2: 835a strh r2, [r3, #26]
  72889. tcp_pcb_purge(pcb);
  72890. 801d8b4: 6878 ldr r0, [r7, #4]
  72891. 801d8b6: f7fe fd37 bl 801c328 <tcp_pcb_purge>
  72892. TCP_RMV_ACTIVE(pcb);
  72893. 801d8ba: 4b59 ldr r3, [pc, #356] @ (801da20 <tcp_process+0x7dc>)
  72894. 801d8bc: 681b ldr r3, [r3, #0]
  72895. 801d8be: 687a ldr r2, [r7, #4]
  72896. 801d8c0: 429a cmp r2, r3
  72897. 801d8c2: d105 bne.n 801d8d0 <tcp_process+0x68c>
  72898. 801d8c4: 4b56 ldr r3, [pc, #344] @ (801da20 <tcp_process+0x7dc>)
  72899. 801d8c6: 681b ldr r3, [r3, #0]
  72900. 801d8c8: 68db ldr r3, [r3, #12]
  72901. 801d8ca: 4a55 ldr r2, [pc, #340] @ (801da20 <tcp_process+0x7dc>)
  72902. 801d8cc: 6013 str r3, [r2, #0]
  72903. 801d8ce: e013 b.n 801d8f8 <tcp_process+0x6b4>
  72904. 801d8d0: 4b53 ldr r3, [pc, #332] @ (801da20 <tcp_process+0x7dc>)
  72905. 801d8d2: 681b ldr r3, [r3, #0]
  72906. 801d8d4: 60fb str r3, [r7, #12]
  72907. 801d8d6: e00c b.n 801d8f2 <tcp_process+0x6ae>
  72908. 801d8d8: 68fb ldr r3, [r7, #12]
  72909. 801d8da: 68db ldr r3, [r3, #12]
  72910. 801d8dc: 687a ldr r2, [r7, #4]
  72911. 801d8de: 429a cmp r2, r3
  72912. 801d8e0: d104 bne.n 801d8ec <tcp_process+0x6a8>
  72913. 801d8e2: 687b ldr r3, [r7, #4]
  72914. 801d8e4: 68da ldr r2, [r3, #12]
  72915. 801d8e6: 68fb ldr r3, [r7, #12]
  72916. 801d8e8: 60da str r2, [r3, #12]
  72917. 801d8ea: e005 b.n 801d8f8 <tcp_process+0x6b4>
  72918. 801d8ec: 68fb ldr r3, [r7, #12]
  72919. 801d8ee: 68db ldr r3, [r3, #12]
  72920. 801d8f0: 60fb str r3, [r7, #12]
  72921. 801d8f2: 68fb ldr r3, [r7, #12]
  72922. 801d8f4: 2b00 cmp r3, #0
  72923. 801d8f6: d1ef bne.n 801d8d8 <tcp_process+0x694>
  72924. 801d8f8: 687b ldr r3, [r7, #4]
  72925. 801d8fa: 2200 movs r2, #0
  72926. 801d8fc: 60da str r2, [r3, #12]
  72927. 801d8fe: 4b43 ldr r3, [pc, #268] @ (801da0c <tcp_process+0x7c8>)
  72928. 801d900: 2201 movs r2, #1
  72929. 801d902: 701a strb r2, [r3, #0]
  72930. pcb->state = TIME_WAIT;
  72931. 801d904: 687b ldr r3, [r7, #4]
  72932. 801d906: 220a movs r2, #10
  72933. 801d908: 751a strb r2, [r3, #20]
  72934. TCP_REG(&tcp_tw_pcbs, pcb);
  72935. 801d90a: 4b41 ldr r3, [pc, #260] @ (801da10 <tcp_process+0x7cc>)
  72936. 801d90c: 681a ldr r2, [r3, #0]
  72937. 801d90e: 687b ldr r3, [r7, #4]
  72938. 801d910: 60da str r2, [r3, #12]
  72939. 801d912: 4a3f ldr r2, [pc, #252] @ (801da10 <tcp_process+0x7cc>)
  72940. 801d914: 687b ldr r3, [r7, #4]
  72941. 801d916: 6013 str r3, [r2, #0]
  72942. 801d918: f003 f958 bl 8020bcc <tcp_timer_needed>
  72943. }
  72944. break;
  72945. 801d91c: e06c b.n 801d9f8 <tcp_process+0x7b4>
  72946. case CLOSING:
  72947. tcp_receive(pcb);
  72948. 801d91e: 6878 ldr r0, [r7, #4]
  72949. 801d920: f000 f984 bl 801dc2c <tcp_receive>
  72950. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  72951. 801d924: 4b3b ldr r3, [pc, #236] @ (801da14 <tcp_process+0x7d0>)
  72952. 801d926: 781b ldrb r3, [r3, #0]
  72953. 801d928: f003 0310 and.w r3, r3, #16
  72954. 801d92c: 2b00 cmp r3, #0
  72955. 801d92e: d065 beq.n 801d9fc <tcp_process+0x7b8>
  72956. 801d930: 687b ldr r3, [r7, #4]
  72957. 801d932: 6d1a ldr r2, [r3, #80] @ 0x50
  72958. 801d934: 4b38 ldr r3, [pc, #224] @ (801da18 <tcp_process+0x7d4>)
  72959. 801d936: 681b ldr r3, [r3, #0]
  72960. 801d938: 429a cmp r2, r3
  72961. 801d93a: d15f bne.n 801d9fc <tcp_process+0x7b8>
  72962. 801d93c: 687b ldr r3, [r7, #4]
  72963. 801d93e: 6edb ldr r3, [r3, #108] @ 0x6c
  72964. 801d940: 2b00 cmp r3, #0
  72965. 801d942: d15b bne.n 801d9fc <tcp_process+0x7b8>
  72966. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  72967. tcp_pcb_purge(pcb);
  72968. 801d944: 6878 ldr r0, [r7, #4]
  72969. 801d946: f7fe fcef bl 801c328 <tcp_pcb_purge>
  72970. TCP_RMV_ACTIVE(pcb);
  72971. 801d94a: 4b35 ldr r3, [pc, #212] @ (801da20 <tcp_process+0x7dc>)
  72972. 801d94c: 681b ldr r3, [r3, #0]
  72973. 801d94e: 687a ldr r2, [r7, #4]
  72974. 801d950: 429a cmp r2, r3
  72975. 801d952: d105 bne.n 801d960 <tcp_process+0x71c>
  72976. 801d954: 4b32 ldr r3, [pc, #200] @ (801da20 <tcp_process+0x7dc>)
  72977. 801d956: 681b ldr r3, [r3, #0]
  72978. 801d958: 68db ldr r3, [r3, #12]
  72979. 801d95a: 4a31 ldr r2, [pc, #196] @ (801da20 <tcp_process+0x7dc>)
  72980. 801d95c: 6013 str r3, [r2, #0]
  72981. 801d95e: e013 b.n 801d988 <tcp_process+0x744>
  72982. 801d960: 4b2f ldr r3, [pc, #188] @ (801da20 <tcp_process+0x7dc>)
  72983. 801d962: 681b ldr r3, [r3, #0]
  72984. 801d964: 61bb str r3, [r7, #24]
  72985. 801d966: e00c b.n 801d982 <tcp_process+0x73e>
  72986. 801d968: 69bb ldr r3, [r7, #24]
  72987. 801d96a: 68db ldr r3, [r3, #12]
  72988. 801d96c: 687a ldr r2, [r7, #4]
  72989. 801d96e: 429a cmp r2, r3
  72990. 801d970: d104 bne.n 801d97c <tcp_process+0x738>
  72991. 801d972: 687b ldr r3, [r7, #4]
  72992. 801d974: 68da ldr r2, [r3, #12]
  72993. 801d976: 69bb ldr r3, [r7, #24]
  72994. 801d978: 60da str r2, [r3, #12]
  72995. 801d97a: e005 b.n 801d988 <tcp_process+0x744>
  72996. 801d97c: 69bb ldr r3, [r7, #24]
  72997. 801d97e: 68db ldr r3, [r3, #12]
  72998. 801d980: 61bb str r3, [r7, #24]
  72999. 801d982: 69bb ldr r3, [r7, #24]
  73000. 801d984: 2b00 cmp r3, #0
  73001. 801d986: d1ef bne.n 801d968 <tcp_process+0x724>
  73002. 801d988: 687b ldr r3, [r7, #4]
  73003. 801d98a: 2200 movs r2, #0
  73004. 801d98c: 60da str r2, [r3, #12]
  73005. 801d98e: 4b1f ldr r3, [pc, #124] @ (801da0c <tcp_process+0x7c8>)
  73006. 801d990: 2201 movs r2, #1
  73007. 801d992: 701a strb r2, [r3, #0]
  73008. pcb->state = TIME_WAIT;
  73009. 801d994: 687b ldr r3, [r7, #4]
  73010. 801d996: 220a movs r2, #10
  73011. 801d998: 751a strb r2, [r3, #20]
  73012. TCP_REG(&tcp_tw_pcbs, pcb);
  73013. 801d99a: 4b1d ldr r3, [pc, #116] @ (801da10 <tcp_process+0x7cc>)
  73014. 801d99c: 681a ldr r2, [r3, #0]
  73015. 801d99e: 687b ldr r3, [r7, #4]
  73016. 801d9a0: 60da str r2, [r3, #12]
  73017. 801d9a2: 4a1b ldr r2, [pc, #108] @ (801da10 <tcp_process+0x7cc>)
  73018. 801d9a4: 687b ldr r3, [r7, #4]
  73019. 801d9a6: 6013 str r3, [r2, #0]
  73020. 801d9a8: f003 f910 bl 8020bcc <tcp_timer_needed>
  73021. }
  73022. break;
  73023. 801d9ac: e026 b.n 801d9fc <tcp_process+0x7b8>
  73024. case LAST_ACK:
  73025. tcp_receive(pcb);
  73026. 801d9ae: 6878 ldr r0, [r7, #4]
  73027. 801d9b0: f000 f93c bl 801dc2c <tcp_receive>
  73028. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  73029. 801d9b4: 4b17 ldr r3, [pc, #92] @ (801da14 <tcp_process+0x7d0>)
  73030. 801d9b6: 781b ldrb r3, [r3, #0]
  73031. 801d9b8: f003 0310 and.w r3, r3, #16
  73032. 801d9bc: 2b00 cmp r3, #0
  73033. 801d9be: d01f beq.n 801da00 <tcp_process+0x7bc>
  73034. 801d9c0: 687b ldr r3, [r7, #4]
  73035. 801d9c2: 6d1a ldr r2, [r3, #80] @ 0x50
  73036. 801d9c4: 4b14 ldr r3, [pc, #80] @ (801da18 <tcp_process+0x7d4>)
  73037. 801d9c6: 681b ldr r3, [r3, #0]
  73038. 801d9c8: 429a cmp r2, r3
  73039. 801d9ca: d119 bne.n 801da00 <tcp_process+0x7bc>
  73040. 801d9cc: 687b ldr r3, [r7, #4]
  73041. 801d9ce: 6edb ldr r3, [r3, #108] @ 0x6c
  73042. 801d9d0: 2b00 cmp r3, #0
  73043. 801d9d2: d115 bne.n 801da00 <tcp_process+0x7bc>
  73044. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: LAST_ACK %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  73045. /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */
  73046. recv_flags |= TF_CLOSED;
  73047. 801d9d4: 4b11 ldr r3, [pc, #68] @ (801da1c <tcp_process+0x7d8>)
  73048. 801d9d6: 781b ldrb r3, [r3, #0]
  73049. 801d9d8: f043 0310 orr.w r3, r3, #16
  73050. 801d9dc: b2da uxtb r2, r3
  73051. 801d9de: 4b0f ldr r3, [pc, #60] @ (801da1c <tcp_process+0x7d8>)
  73052. 801d9e0: 701a strb r2, [r3, #0]
  73053. }
  73054. break;
  73055. 801d9e2: e00d b.n 801da00 <tcp_process+0x7bc>
  73056. default:
  73057. break;
  73058. 801d9e4: bf00 nop
  73059. 801d9e6: e00c b.n 801da02 <tcp_process+0x7be>
  73060. break;
  73061. 801d9e8: bf00 nop
  73062. 801d9ea: e00a b.n 801da02 <tcp_process+0x7be>
  73063. break;
  73064. 801d9ec: bf00 nop
  73065. 801d9ee: e008 b.n 801da02 <tcp_process+0x7be>
  73066. break;
  73067. 801d9f0: bf00 nop
  73068. 801d9f2: e006 b.n 801da02 <tcp_process+0x7be>
  73069. break;
  73070. 801d9f4: bf00 nop
  73071. 801d9f6: e004 b.n 801da02 <tcp_process+0x7be>
  73072. break;
  73073. 801d9f8: bf00 nop
  73074. 801d9fa: e002 b.n 801da02 <tcp_process+0x7be>
  73075. break;
  73076. 801d9fc: bf00 nop
  73077. 801d9fe: e000 b.n 801da02 <tcp_process+0x7be>
  73078. break;
  73079. 801da00: bf00 nop
  73080. }
  73081. return ERR_OK;
  73082. 801da02: 2300 movs r3, #0
  73083. }
  73084. 801da04: 4618 mov r0, r3
  73085. 801da06: 3724 adds r7, #36 @ 0x24
  73086. 801da08: 46bd mov sp, r7
  73087. 801da0a: bd90 pop {r4, r7, pc}
  73088. 801da0c: 2402ae9c .word 0x2402ae9c
  73089. 801da10: 2402ae98 .word 0x2402ae98
  73090. 801da14: 2402aed0 .word 0x2402aed0
  73091. 801da18: 2402aec8 .word 0x2402aec8
  73092. 801da1c: 2402aed1 .word 0x2402aed1
  73093. 801da20: 2402ae94 .word 0x2402ae94
  73094. 0801da24 <tcp_oos_insert_segment>:
  73095. *
  73096. * Called from tcp_receive()
  73097. */
  73098. static void
  73099. tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next)
  73100. {
  73101. 801da24: b590 push {r4, r7, lr}
  73102. 801da26: b085 sub sp, #20
  73103. 801da28: af00 add r7, sp, #0
  73104. 801da2a: 6078 str r0, [r7, #4]
  73105. 801da2c: 6039 str r1, [r7, #0]
  73106. struct tcp_seg *old_seg;
  73107. LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL);
  73108. 801da2e: 687b ldr r3, [r7, #4]
  73109. 801da30: 2b00 cmp r3, #0
  73110. 801da32: d106 bne.n 801da42 <tcp_oos_insert_segment+0x1e>
  73111. 801da34: 4b3b ldr r3, [pc, #236] @ (801db24 <tcp_oos_insert_segment+0x100>)
  73112. 801da36: f240 421f movw r2, #1055 @ 0x41f
  73113. 801da3a: 493b ldr r1, [pc, #236] @ (801db28 <tcp_oos_insert_segment+0x104>)
  73114. 801da3c: 483b ldr r0, [pc, #236] @ (801db2c <tcp_oos_insert_segment+0x108>)
  73115. 801da3e: f00b ffcd bl 80299dc <iprintf>
  73116. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  73117. 801da42: 687b ldr r3, [r7, #4]
  73118. 801da44: 691b ldr r3, [r3, #16]
  73119. 801da46: 899b ldrh r3, [r3, #12]
  73120. 801da48: b29b uxth r3, r3
  73121. 801da4a: 4618 mov r0, r3
  73122. 801da4c: f7fb f86c bl 8018b28 <lwip_htons>
  73123. 801da50: 4603 mov r3, r0
  73124. 801da52: b2db uxtb r3, r3
  73125. 801da54: f003 0301 and.w r3, r3, #1
  73126. 801da58: 2b00 cmp r3, #0
  73127. 801da5a: d028 beq.n 801daae <tcp_oos_insert_segment+0x8a>
  73128. /* received segment overlaps all following segments */
  73129. tcp_segs_free(next);
  73130. 801da5c: 6838 ldr r0, [r7, #0]
  73131. 801da5e: f7fe f989 bl 801bd74 <tcp_segs_free>
  73132. next = NULL;
  73133. 801da62: 2300 movs r3, #0
  73134. 801da64: 603b str r3, [r7, #0]
  73135. 801da66: e056 b.n 801db16 <tcp_oos_insert_segment+0xf2>
  73136. oos queue may have segments with FIN flag */
  73137. while (next &&
  73138. TCP_SEQ_GEQ((seqno + cseg->len),
  73139. (next->tcphdr->seqno + next->len))) {
  73140. /* cseg with FIN already processed */
  73141. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  73142. 801da68: 683b ldr r3, [r7, #0]
  73143. 801da6a: 691b ldr r3, [r3, #16]
  73144. 801da6c: 899b ldrh r3, [r3, #12]
  73145. 801da6e: b29b uxth r3, r3
  73146. 801da70: 4618 mov r0, r3
  73147. 801da72: f7fb f859 bl 8018b28 <lwip_htons>
  73148. 801da76: 4603 mov r3, r0
  73149. 801da78: b2db uxtb r3, r3
  73150. 801da7a: f003 0301 and.w r3, r3, #1
  73151. 801da7e: 2b00 cmp r3, #0
  73152. 801da80: d00d beq.n 801da9e <tcp_oos_insert_segment+0x7a>
  73153. TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN);
  73154. 801da82: 687b ldr r3, [r7, #4]
  73155. 801da84: 691b ldr r3, [r3, #16]
  73156. 801da86: 899b ldrh r3, [r3, #12]
  73157. 801da88: b29c uxth r4, r3
  73158. 801da8a: 2001 movs r0, #1
  73159. 801da8c: f7fb f84c bl 8018b28 <lwip_htons>
  73160. 801da90: 4603 mov r3, r0
  73161. 801da92: 461a mov r2, r3
  73162. 801da94: 687b ldr r3, [r7, #4]
  73163. 801da96: 691b ldr r3, [r3, #16]
  73164. 801da98: 4322 orrs r2, r4
  73165. 801da9a: b292 uxth r2, r2
  73166. 801da9c: 819a strh r2, [r3, #12]
  73167. }
  73168. old_seg = next;
  73169. 801da9e: 683b ldr r3, [r7, #0]
  73170. 801daa0: 60fb str r3, [r7, #12]
  73171. next = next->next;
  73172. 801daa2: 683b ldr r3, [r7, #0]
  73173. 801daa4: 681b ldr r3, [r3, #0]
  73174. 801daa6: 603b str r3, [r7, #0]
  73175. tcp_seg_free(old_seg);
  73176. 801daa8: 68f8 ldr r0, [r7, #12]
  73177. 801daaa: f7fe f978 bl 801bd9e <tcp_seg_free>
  73178. while (next &&
  73179. 801daae: 683b ldr r3, [r7, #0]
  73180. 801dab0: 2b00 cmp r3, #0
  73181. 801dab2: d00e beq.n 801dad2 <tcp_oos_insert_segment+0xae>
  73182. TCP_SEQ_GEQ((seqno + cseg->len),
  73183. 801dab4: 687b ldr r3, [r7, #4]
  73184. 801dab6: 891b ldrh r3, [r3, #8]
  73185. 801dab8: 461a mov r2, r3
  73186. 801daba: 4b1d ldr r3, [pc, #116] @ (801db30 <tcp_oos_insert_segment+0x10c>)
  73187. 801dabc: 681b ldr r3, [r3, #0]
  73188. 801dabe: 441a add r2, r3
  73189. 801dac0: 683b ldr r3, [r7, #0]
  73190. 801dac2: 691b ldr r3, [r3, #16]
  73191. 801dac4: 685b ldr r3, [r3, #4]
  73192. 801dac6: 6839 ldr r1, [r7, #0]
  73193. 801dac8: 8909 ldrh r1, [r1, #8]
  73194. 801daca: 440b add r3, r1
  73195. 801dacc: 1ad3 subs r3, r2, r3
  73196. while (next &&
  73197. 801dace: 2b00 cmp r3, #0
  73198. 801dad0: daca bge.n 801da68 <tcp_oos_insert_segment+0x44>
  73199. }
  73200. if (next &&
  73201. 801dad2: 683b ldr r3, [r7, #0]
  73202. 801dad4: 2b00 cmp r3, #0
  73203. 801dad6: d01e beq.n 801db16 <tcp_oos_insert_segment+0xf2>
  73204. TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) {
  73205. 801dad8: 687b ldr r3, [r7, #4]
  73206. 801dada: 891b ldrh r3, [r3, #8]
  73207. 801dadc: 461a mov r2, r3
  73208. 801dade: 4b14 ldr r3, [pc, #80] @ (801db30 <tcp_oos_insert_segment+0x10c>)
  73209. 801dae0: 681b ldr r3, [r3, #0]
  73210. 801dae2: 441a add r2, r3
  73211. 801dae4: 683b ldr r3, [r7, #0]
  73212. 801dae6: 691b ldr r3, [r3, #16]
  73213. 801dae8: 685b ldr r3, [r3, #4]
  73214. 801daea: 1ad3 subs r3, r2, r3
  73215. if (next &&
  73216. 801daec: 2b00 cmp r3, #0
  73217. 801daee: dd12 ble.n 801db16 <tcp_oos_insert_segment+0xf2>
  73218. /* We need to trim the incoming segment. */
  73219. cseg->len = (u16_t)(next->tcphdr->seqno - seqno);
  73220. 801daf0: 683b ldr r3, [r7, #0]
  73221. 801daf2: 691b ldr r3, [r3, #16]
  73222. 801daf4: 685b ldr r3, [r3, #4]
  73223. 801daf6: b29a uxth r2, r3
  73224. 801daf8: 4b0d ldr r3, [pc, #52] @ (801db30 <tcp_oos_insert_segment+0x10c>)
  73225. 801dafa: 681b ldr r3, [r3, #0]
  73226. 801dafc: b29b uxth r3, r3
  73227. 801dafe: 1ad3 subs r3, r2, r3
  73228. 801db00: b29a uxth r2, r3
  73229. 801db02: 687b ldr r3, [r7, #4]
  73230. 801db04: 811a strh r2, [r3, #8]
  73231. pbuf_realloc(cseg->p, cseg->len);
  73232. 801db06: 687b ldr r3, [r7, #4]
  73233. 801db08: 685a ldr r2, [r3, #4]
  73234. 801db0a: 687b ldr r3, [r7, #4]
  73235. 801db0c: 891b ldrh r3, [r3, #8]
  73236. 801db0e: 4619 mov r1, r3
  73237. 801db10: 4610 mov r0, r2
  73238. 801db12: f7fc fb35 bl 801a180 <pbuf_realloc>
  73239. }
  73240. }
  73241. cseg->next = next;
  73242. 801db16: 687b ldr r3, [r7, #4]
  73243. 801db18: 683a ldr r2, [r7, #0]
  73244. 801db1a: 601a str r2, [r3, #0]
  73245. }
  73246. 801db1c: bf00 nop
  73247. 801db1e: 3714 adds r7, #20
  73248. 801db20: 46bd mov sp, r7
  73249. 801db22: bd90 pop {r4, r7, pc}
  73250. 801db24: 0802ed58 .word 0x0802ed58
  73251. 801db28: 0802f018 .word 0x0802f018
  73252. 801db2c: 0802eda4 .word 0x0802eda4
  73253. 801db30: 2402aec4 .word 0x2402aec4
  73254. 0801db34 <tcp_free_acked_segments>:
  73255. /** Remove segments from a list if the incoming ACK acknowledges them */
  73256. static struct tcp_seg *
  73257. tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const char *dbg_list_name,
  73258. struct tcp_seg *dbg_other_seg_list)
  73259. {
  73260. 801db34: b5b0 push {r4, r5, r7, lr}
  73261. 801db36: b086 sub sp, #24
  73262. 801db38: af00 add r7, sp, #0
  73263. 801db3a: 60f8 str r0, [r7, #12]
  73264. 801db3c: 60b9 str r1, [r7, #8]
  73265. 801db3e: 607a str r2, [r7, #4]
  73266. 801db40: 603b str r3, [r7, #0]
  73267. u16_t clen;
  73268. LWIP_UNUSED_ARG(dbg_list_name);
  73269. LWIP_UNUSED_ARG(dbg_other_seg_list);
  73270. while (seg_list != NULL &&
  73271. 801db42: e03e b.n 801dbc2 <tcp_free_acked_segments+0x8e>
  73272. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: removing %"U32_F":%"U32_F" from pcb->%s\n",
  73273. lwip_ntohl(seg_list->tcphdr->seqno),
  73274. lwip_ntohl(seg_list->tcphdr->seqno) + TCP_TCPLEN(seg_list),
  73275. dbg_list_name));
  73276. next = seg_list;
  73277. 801db44: 68bb ldr r3, [r7, #8]
  73278. 801db46: 617b str r3, [r7, #20]
  73279. seg_list = seg_list->next;
  73280. 801db48: 68bb ldr r3, [r7, #8]
  73281. 801db4a: 681b ldr r3, [r3, #0]
  73282. 801db4c: 60bb str r3, [r7, #8]
  73283. clen = pbuf_clen(next->p);
  73284. 801db4e: 697b ldr r3, [r7, #20]
  73285. 801db50: 685b ldr r3, [r3, #4]
  73286. 801db52: 4618 mov r0, r3
  73287. 801db54: f7fc fd58 bl 801a608 <pbuf_clen>
  73288. 801db58: 4603 mov r3, r0
  73289. 801db5a: 827b strh r3, [r7, #18]
  73290. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"TCPWNDSIZE_F" ... ",
  73291. (tcpwnd_size_t)pcb->snd_queuelen));
  73292. LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen));
  73293. 801db5c: 68fb ldr r3, [r7, #12]
  73294. 801db5e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  73295. 801db62: 8a7a ldrh r2, [r7, #18]
  73296. 801db64: 429a cmp r2, r3
  73297. 801db66: d906 bls.n 801db76 <tcp_free_acked_segments+0x42>
  73298. 801db68: 4b2a ldr r3, [pc, #168] @ (801dc14 <tcp_free_acked_segments+0xe0>)
  73299. 801db6a: f240 4257 movw r2, #1111 @ 0x457
  73300. 801db6e: 492a ldr r1, [pc, #168] @ (801dc18 <tcp_free_acked_segments+0xe4>)
  73301. 801db70: 482a ldr r0, [pc, #168] @ (801dc1c <tcp_free_acked_segments+0xe8>)
  73302. 801db72: f00b ff33 bl 80299dc <iprintf>
  73303. pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen);
  73304. 801db76: 68fb ldr r3, [r7, #12]
  73305. 801db78: f8b3 2066 ldrh.w r2, [r3, #102] @ 0x66
  73306. 801db7c: 8a7b ldrh r3, [r7, #18]
  73307. 801db7e: 1ad3 subs r3, r2, r3
  73308. 801db80: b29a uxth r2, r3
  73309. 801db82: 68fb ldr r3, [r7, #12]
  73310. 801db84: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  73311. recv_acked = (tcpwnd_size_t)(recv_acked + next->len);
  73312. 801db88: 697b ldr r3, [r7, #20]
  73313. 801db8a: 891a ldrh r2, [r3, #8]
  73314. 801db8c: 4b24 ldr r3, [pc, #144] @ (801dc20 <tcp_free_acked_segments+0xec>)
  73315. 801db8e: 881b ldrh r3, [r3, #0]
  73316. 801db90: 4413 add r3, r2
  73317. 801db92: b29a uxth r2, r3
  73318. 801db94: 4b22 ldr r3, [pc, #136] @ (801dc20 <tcp_free_acked_segments+0xec>)
  73319. 801db96: 801a strh r2, [r3, #0]
  73320. tcp_seg_free(next);
  73321. 801db98: 6978 ldr r0, [r7, #20]
  73322. 801db9a: f7fe f900 bl 801bd9e <tcp_seg_free>
  73323. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("%"TCPWNDSIZE_F" (after freeing %s)\n",
  73324. (tcpwnd_size_t)pcb->snd_queuelen,
  73325. dbg_list_name));
  73326. if (pcb->snd_queuelen != 0) {
  73327. 801db9e: 68fb ldr r3, [r7, #12]
  73328. 801dba0: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  73329. 801dba4: 2b00 cmp r3, #0
  73330. 801dba6: d00c beq.n 801dbc2 <tcp_free_acked_segments+0x8e>
  73331. LWIP_ASSERT("tcp_receive: valid queue length",
  73332. 801dba8: 68bb ldr r3, [r7, #8]
  73333. 801dbaa: 2b00 cmp r3, #0
  73334. 801dbac: d109 bne.n 801dbc2 <tcp_free_acked_segments+0x8e>
  73335. 801dbae: 683b ldr r3, [r7, #0]
  73336. 801dbb0: 2b00 cmp r3, #0
  73337. 801dbb2: d106 bne.n 801dbc2 <tcp_free_acked_segments+0x8e>
  73338. 801dbb4: 4b17 ldr r3, [pc, #92] @ (801dc14 <tcp_free_acked_segments+0xe0>)
  73339. 801dbb6: f240 4261 movw r2, #1121 @ 0x461
  73340. 801dbba: 491a ldr r1, [pc, #104] @ (801dc24 <tcp_free_acked_segments+0xf0>)
  73341. 801dbbc: 4817 ldr r0, [pc, #92] @ (801dc1c <tcp_free_acked_segments+0xe8>)
  73342. 801dbbe: f00b ff0d bl 80299dc <iprintf>
  73343. while (seg_list != NULL &&
  73344. 801dbc2: 68bb ldr r3, [r7, #8]
  73345. 801dbc4: 2b00 cmp r3, #0
  73346. 801dbc6: d020 beq.n 801dc0a <tcp_free_acked_segments+0xd6>
  73347. TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) +
  73348. 801dbc8: 68bb ldr r3, [r7, #8]
  73349. 801dbca: 691b ldr r3, [r3, #16]
  73350. 801dbcc: 685b ldr r3, [r3, #4]
  73351. 801dbce: 4618 mov r0, r3
  73352. 801dbd0: f7fa ffbf bl 8018b52 <lwip_htonl>
  73353. 801dbd4: 4604 mov r4, r0
  73354. 801dbd6: 68bb ldr r3, [r7, #8]
  73355. 801dbd8: 891b ldrh r3, [r3, #8]
  73356. 801dbda: 461d mov r5, r3
  73357. 801dbdc: 68bb ldr r3, [r7, #8]
  73358. 801dbde: 691b ldr r3, [r3, #16]
  73359. 801dbe0: 899b ldrh r3, [r3, #12]
  73360. 801dbe2: b29b uxth r3, r3
  73361. 801dbe4: 4618 mov r0, r3
  73362. 801dbe6: f7fa ff9f bl 8018b28 <lwip_htons>
  73363. 801dbea: 4603 mov r3, r0
  73364. 801dbec: b2db uxtb r3, r3
  73365. 801dbee: f003 0303 and.w r3, r3, #3
  73366. 801dbf2: 2b00 cmp r3, #0
  73367. 801dbf4: d001 beq.n 801dbfa <tcp_free_acked_segments+0xc6>
  73368. 801dbf6: 2301 movs r3, #1
  73369. 801dbf8: e000 b.n 801dbfc <tcp_free_acked_segments+0xc8>
  73370. 801dbfa: 2300 movs r3, #0
  73371. 801dbfc: 442b add r3, r5
  73372. 801dbfe: 18e2 adds r2, r4, r3
  73373. 801dc00: 4b09 ldr r3, [pc, #36] @ (801dc28 <tcp_free_acked_segments+0xf4>)
  73374. 801dc02: 681b ldr r3, [r3, #0]
  73375. 801dc04: 1ad3 subs r3, r2, r3
  73376. while (seg_list != NULL &&
  73377. 801dc06: 2b00 cmp r3, #0
  73378. 801dc08: dd9c ble.n 801db44 <tcp_free_acked_segments+0x10>
  73379. seg_list != NULL || dbg_other_seg_list != NULL);
  73380. }
  73381. }
  73382. return seg_list;
  73383. 801dc0a: 68bb ldr r3, [r7, #8]
  73384. }
  73385. 801dc0c: 4618 mov r0, r3
  73386. 801dc0e: 3718 adds r7, #24
  73387. 801dc10: 46bd mov sp, r7
  73388. 801dc12: bdb0 pop {r4, r5, r7, pc}
  73389. 801dc14: 0802ed58 .word 0x0802ed58
  73390. 801dc18: 0802f040 .word 0x0802f040
  73391. 801dc1c: 0802eda4 .word 0x0802eda4
  73392. 801dc20: 2402aecc .word 0x2402aecc
  73393. 801dc24: 0802f068 .word 0x0802f068
  73394. 801dc28: 2402aec8 .word 0x2402aec8
  73395. 0801dc2c <tcp_receive>:
  73396. *
  73397. * Called from tcp_process().
  73398. */
  73399. static void
  73400. tcp_receive(struct tcp_pcb *pcb)
  73401. {
  73402. 801dc2c: b5b0 push {r4, r5, r7, lr}
  73403. 801dc2e: b094 sub sp, #80 @ 0x50
  73404. 801dc30: af00 add r7, sp, #0
  73405. 801dc32: 6078 str r0, [r7, #4]
  73406. s16_t m;
  73407. u32_t right_wnd_edge;
  73408. int found_dupack = 0;
  73409. 801dc34: 2300 movs r3, #0
  73410. 801dc36: 64bb str r3, [r7, #72] @ 0x48
  73411. LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL);
  73412. 801dc38: 687b ldr r3, [r7, #4]
  73413. 801dc3a: 2b00 cmp r3, #0
  73414. 801dc3c: d106 bne.n 801dc4c <tcp_receive+0x20>
  73415. 801dc3e: 4b91 ldr r3, [pc, #580] @ (801de84 <tcp_receive+0x258>)
  73416. 801dc40: f240 427b movw r2, #1147 @ 0x47b
  73417. 801dc44: 4990 ldr r1, [pc, #576] @ (801de88 <tcp_receive+0x25c>)
  73418. 801dc46: 4891 ldr r0, [pc, #580] @ (801de8c <tcp_receive+0x260>)
  73419. 801dc48: f00b fec8 bl 80299dc <iprintf>
  73420. LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED);
  73421. 801dc4c: 687b ldr r3, [r7, #4]
  73422. 801dc4e: 7d1b ldrb r3, [r3, #20]
  73423. 801dc50: 2b03 cmp r3, #3
  73424. 801dc52: d806 bhi.n 801dc62 <tcp_receive+0x36>
  73425. 801dc54: 4b8b ldr r3, [pc, #556] @ (801de84 <tcp_receive+0x258>)
  73426. 801dc56: f240 427c movw r2, #1148 @ 0x47c
  73427. 801dc5a: 498d ldr r1, [pc, #564] @ (801de90 <tcp_receive+0x264>)
  73428. 801dc5c: 488b ldr r0, [pc, #556] @ (801de8c <tcp_receive+0x260>)
  73429. 801dc5e: f00b febd bl 80299dc <iprintf>
  73430. if (flags & TCP_ACK) {
  73431. 801dc62: 4b8c ldr r3, [pc, #560] @ (801de94 <tcp_receive+0x268>)
  73432. 801dc64: 781b ldrb r3, [r3, #0]
  73433. 801dc66: f003 0310 and.w r3, r3, #16
  73434. 801dc6a: 2b00 cmp r3, #0
  73435. 801dc6c: f000 8264 beq.w 801e138 <tcp_receive+0x50c>
  73436. right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2;
  73437. 801dc70: 687b ldr r3, [r7, #4]
  73438. 801dc72: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  73439. 801dc76: 461a mov r2, r3
  73440. 801dc78: 687b ldr r3, [r7, #4]
  73441. 801dc7a: 6d9b ldr r3, [r3, #88] @ 0x58
  73442. 801dc7c: 4413 add r3, r2
  73443. 801dc7e: 633b str r3, [r7, #48] @ 0x30
  73444. /* Update window. */
  73445. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  73446. 801dc80: 687b ldr r3, [r7, #4]
  73447. 801dc82: 6d5a ldr r2, [r3, #84] @ 0x54
  73448. 801dc84: 4b84 ldr r3, [pc, #528] @ (801de98 <tcp_receive+0x26c>)
  73449. 801dc86: 681b ldr r3, [r3, #0]
  73450. 801dc88: 1ad3 subs r3, r2, r3
  73451. 801dc8a: 2b00 cmp r3, #0
  73452. 801dc8c: db1b blt.n 801dcc6 <tcp_receive+0x9a>
  73453. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  73454. 801dc8e: 687b ldr r3, [r7, #4]
  73455. 801dc90: 6d5a ldr r2, [r3, #84] @ 0x54
  73456. 801dc92: 4b81 ldr r3, [pc, #516] @ (801de98 <tcp_receive+0x26c>)
  73457. 801dc94: 681b ldr r3, [r3, #0]
  73458. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  73459. 801dc96: 429a cmp r2, r3
  73460. 801dc98: d106 bne.n 801dca8 <tcp_receive+0x7c>
  73461. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  73462. 801dc9a: 687b ldr r3, [r7, #4]
  73463. 801dc9c: 6d9a ldr r2, [r3, #88] @ 0x58
  73464. 801dc9e: 4b7f ldr r3, [pc, #508] @ (801de9c <tcp_receive+0x270>)
  73465. 801dca0: 681b ldr r3, [r3, #0]
  73466. 801dca2: 1ad3 subs r3, r2, r3
  73467. 801dca4: 2b00 cmp r3, #0
  73468. 801dca6: db0e blt.n 801dcc6 <tcp_receive+0x9a>
  73469. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  73470. 801dca8: 687b ldr r3, [r7, #4]
  73471. 801dcaa: 6d9a ldr r2, [r3, #88] @ 0x58
  73472. 801dcac: 4b7b ldr r3, [pc, #492] @ (801de9c <tcp_receive+0x270>)
  73473. 801dcae: 681b ldr r3, [r3, #0]
  73474. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  73475. 801dcb0: 429a cmp r2, r3
  73476. 801dcb2: d125 bne.n 801dd00 <tcp_receive+0xd4>
  73477. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  73478. 801dcb4: 4b7a ldr r3, [pc, #488] @ (801dea0 <tcp_receive+0x274>)
  73479. 801dcb6: 681b ldr r3, [r3, #0]
  73480. 801dcb8: 89db ldrh r3, [r3, #14]
  73481. 801dcba: b29a uxth r2, r3
  73482. 801dcbc: 687b ldr r3, [r7, #4]
  73483. 801dcbe: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  73484. 801dcc2: 429a cmp r2, r3
  73485. 801dcc4: d91c bls.n 801dd00 <tcp_receive+0xd4>
  73486. pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd);
  73487. 801dcc6: 4b76 ldr r3, [pc, #472] @ (801dea0 <tcp_receive+0x274>)
  73488. 801dcc8: 681b ldr r3, [r3, #0]
  73489. 801dcca: 89db ldrh r3, [r3, #14]
  73490. 801dccc: b29a uxth r2, r3
  73491. 801dcce: 687b ldr r3, [r7, #4]
  73492. 801dcd0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  73493. /* keep track of the biggest window announced by the remote host to calculate
  73494. the maximum segment size */
  73495. if (pcb->snd_wnd_max < pcb->snd_wnd) {
  73496. 801dcd4: 687b ldr r3, [r7, #4]
  73497. 801dcd6: f8b3 2062 ldrh.w r2, [r3, #98] @ 0x62
  73498. 801dcda: 687b ldr r3, [r7, #4]
  73499. 801dcdc: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  73500. 801dce0: 429a cmp r2, r3
  73501. 801dce2: d205 bcs.n 801dcf0 <tcp_receive+0xc4>
  73502. pcb->snd_wnd_max = pcb->snd_wnd;
  73503. 801dce4: 687b ldr r3, [r7, #4]
  73504. 801dce6: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  73505. 801dcea: 687b ldr r3, [r7, #4]
  73506. 801dcec: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  73507. }
  73508. pcb->snd_wl1 = seqno;
  73509. 801dcf0: 4b69 ldr r3, [pc, #420] @ (801de98 <tcp_receive+0x26c>)
  73510. 801dcf2: 681a ldr r2, [r3, #0]
  73511. 801dcf4: 687b ldr r3, [r7, #4]
  73512. 801dcf6: 655a str r2, [r3, #84] @ 0x54
  73513. pcb->snd_wl2 = ackno;
  73514. 801dcf8: 4b68 ldr r3, [pc, #416] @ (801de9c <tcp_receive+0x270>)
  73515. 801dcfa: 681a ldr r2, [r3, #0]
  73516. 801dcfc: 687b ldr r3, [r7, #4]
  73517. 801dcfe: 659a str r2, [r3, #88] @ 0x58
  73518. * If it only passes 1, should reset dupack counter
  73519. *
  73520. */
  73521. /* Clause 1 */
  73522. if (TCP_SEQ_LEQ(ackno, pcb->lastack)) {
  73523. 801dd00: 4b66 ldr r3, [pc, #408] @ (801de9c <tcp_receive+0x270>)
  73524. 801dd02: 681a ldr r2, [r3, #0]
  73525. 801dd04: 687b ldr r3, [r7, #4]
  73526. 801dd06: 6c5b ldr r3, [r3, #68] @ 0x44
  73527. 801dd08: 1ad3 subs r3, r2, r3
  73528. 801dd0a: 2b00 cmp r3, #0
  73529. 801dd0c: dc58 bgt.n 801ddc0 <tcp_receive+0x194>
  73530. /* Clause 2 */
  73531. if (tcplen == 0) {
  73532. 801dd0e: 4b65 ldr r3, [pc, #404] @ (801dea4 <tcp_receive+0x278>)
  73533. 801dd10: 881b ldrh r3, [r3, #0]
  73534. 801dd12: 2b00 cmp r3, #0
  73535. 801dd14: d14b bne.n 801ddae <tcp_receive+0x182>
  73536. /* Clause 3 */
  73537. if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) {
  73538. 801dd16: 687b ldr r3, [r7, #4]
  73539. 801dd18: 6d9b ldr r3, [r3, #88] @ 0x58
  73540. 801dd1a: 687a ldr r2, [r7, #4]
  73541. 801dd1c: f8b2 2060 ldrh.w r2, [r2, #96] @ 0x60
  73542. 801dd20: 4413 add r3, r2
  73543. 801dd22: 6b3a ldr r2, [r7, #48] @ 0x30
  73544. 801dd24: 429a cmp r2, r3
  73545. 801dd26: d142 bne.n 801ddae <tcp_receive+0x182>
  73546. /* Clause 4 */
  73547. if (pcb->rtime >= 0) {
  73548. 801dd28: 687b ldr r3, [r7, #4]
  73549. 801dd2a: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  73550. 801dd2e: 2b00 cmp r3, #0
  73551. 801dd30: db3d blt.n 801ddae <tcp_receive+0x182>
  73552. /* Clause 5 */
  73553. if (pcb->lastack == ackno) {
  73554. 801dd32: 687b ldr r3, [r7, #4]
  73555. 801dd34: 6c5a ldr r2, [r3, #68] @ 0x44
  73556. 801dd36: 4b59 ldr r3, [pc, #356] @ (801de9c <tcp_receive+0x270>)
  73557. 801dd38: 681b ldr r3, [r3, #0]
  73558. 801dd3a: 429a cmp r2, r3
  73559. 801dd3c: d137 bne.n 801ddae <tcp_receive+0x182>
  73560. found_dupack = 1;
  73561. 801dd3e: 2301 movs r3, #1
  73562. 801dd40: 64bb str r3, [r7, #72] @ 0x48
  73563. if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) {
  73564. 801dd42: 687b ldr r3, [r7, #4]
  73565. 801dd44: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  73566. 801dd48: 2bff cmp r3, #255 @ 0xff
  73567. 801dd4a: d007 beq.n 801dd5c <tcp_receive+0x130>
  73568. ++pcb->dupacks;
  73569. 801dd4c: 687b ldr r3, [r7, #4]
  73570. 801dd4e: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  73571. 801dd52: 3301 adds r3, #1
  73572. 801dd54: b2da uxtb r2, r3
  73573. 801dd56: 687b ldr r3, [r7, #4]
  73574. 801dd58: f883 2043 strb.w r2, [r3, #67] @ 0x43
  73575. }
  73576. if (pcb->dupacks > 3) {
  73577. 801dd5c: 687b ldr r3, [r7, #4]
  73578. 801dd5e: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  73579. 801dd62: 2b03 cmp r3, #3
  73580. 801dd64: d91b bls.n 801dd9e <tcp_receive+0x172>
  73581. /* Inflate the congestion window */
  73582. TCP_WND_INC(pcb->cwnd, pcb->mss);
  73583. 801dd66: 687b ldr r3, [r7, #4]
  73584. 801dd68: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73585. 801dd6c: 687b ldr r3, [r7, #4]
  73586. 801dd6e: 8e5b ldrh r3, [r3, #50] @ 0x32
  73587. 801dd70: 4413 add r3, r2
  73588. 801dd72: b29a uxth r2, r3
  73589. 801dd74: 687b ldr r3, [r7, #4]
  73590. 801dd76: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  73591. 801dd7a: 429a cmp r2, r3
  73592. 801dd7c: d30a bcc.n 801dd94 <tcp_receive+0x168>
  73593. 801dd7e: 687b ldr r3, [r7, #4]
  73594. 801dd80: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73595. 801dd84: 687b ldr r3, [r7, #4]
  73596. 801dd86: 8e5b ldrh r3, [r3, #50] @ 0x32
  73597. 801dd88: 4413 add r3, r2
  73598. 801dd8a: b29a uxth r2, r3
  73599. 801dd8c: 687b ldr r3, [r7, #4]
  73600. 801dd8e: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73601. 801dd92: e004 b.n 801dd9e <tcp_receive+0x172>
  73602. 801dd94: 687b ldr r3, [r7, #4]
  73603. 801dd96: f64f 72ff movw r2, #65535 @ 0xffff
  73604. 801dd9a: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73605. }
  73606. if (pcb->dupacks >= 3) {
  73607. 801dd9e: 687b ldr r3, [r7, #4]
  73608. 801dda0: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  73609. 801dda4: 2b02 cmp r3, #2
  73610. 801dda6: d902 bls.n 801ddae <tcp_receive+0x182>
  73611. /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */
  73612. tcp_rexmit_fast(pcb);
  73613. 801dda8: 6878 ldr r0, [r7, #4]
  73614. 801ddaa: f002 fbb3 bl 8020514 <tcp_rexmit_fast>
  73615. }
  73616. }
  73617. }
  73618. /* If Clause (1) or more is true, but not a duplicate ack, reset
  73619. * count of consecutive duplicate acks */
  73620. if (!found_dupack) {
  73621. 801ddae: 6cbb ldr r3, [r7, #72] @ 0x48
  73622. 801ddb0: 2b00 cmp r3, #0
  73623. 801ddb2: f040 8161 bne.w 801e078 <tcp_receive+0x44c>
  73624. pcb->dupacks = 0;
  73625. 801ddb6: 687b ldr r3, [r7, #4]
  73626. 801ddb8: 2200 movs r2, #0
  73627. 801ddba: f883 2043 strb.w r2, [r3, #67] @ 0x43
  73628. 801ddbe: e15b b.n 801e078 <tcp_receive+0x44c>
  73629. }
  73630. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73631. 801ddc0: 4b36 ldr r3, [pc, #216] @ (801de9c <tcp_receive+0x270>)
  73632. 801ddc2: 681a ldr r2, [r3, #0]
  73633. 801ddc4: 687b ldr r3, [r7, #4]
  73634. 801ddc6: 6c5b ldr r3, [r3, #68] @ 0x44
  73635. 801ddc8: 1ad3 subs r3, r2, r3
  73636. 801ddca: 3b01 subs r3, #1
  73637. 801ddcc: 2b00 cmp r3, #0
  73638. 801ddce: f2c0 814e blt.w 801e06e <tcp_receive+0x442>
  73639. 801ddd2: 4b32 ldr r3, [pc, #200] @ (801de9c <tcp_receive+0x270>)
  73640. 801ddd4: 681a ldr r2, [r3, #0]
  73641. 801ddd6: 687b ldr r3, [r7, #4]
  73642. 801ddd8: 6d1b ldr r3, [r3, #80] @ 0x50
  73643. 801ddda: 1ad3 subs r3, r2, r3
  73644. 801dddc: 2b00 cmp r3, #0
  73645. 801ddde: f300 8146 bgt.w 801e06e <tcp_receive+0x442>
  73646. tcpwnd_size_t acked;
  73647. /* Reset the "IN Fast Retransmit" flag, since we are no longer
  73648. in fast retransmit. Also reset the congestion window to the
  73649. slow start threshold. */
  73650. if (pcb->flags & TF_INFR) {
  73651. 801dde2: 687b ldr r3, [r7, #4]
  73652. 801dde4: 8b5b ldrh r3, [r3, #26]
  73653. 801dde6: f003 0304 and.w r3, r3, #4
  73654. 801ddea: 2b00 cmp r3, #0
  73655. 801ddec: d010 beq.n 801de10 <tcp_receive+0x1e4>
  73656. tcp_clear_flags(pcb, TF_INFR);
  73657. 801ddee: 687b ldr r3, [r7, #4]
  73658. 801ddf0: 8b5b ldrh r3, [r3, #26]
  73659. 801ddf2: f023 0304 bic.w r3, r3, #4
  73660. 801ddf6: b29a uxth r2, r3
  73661. 801ddf8: 687b ldr r3, [r7, #4]
  73662. 801ddfa: 835a strh r2, [r3, #26]
  73663. pcb->cwnd = pcb->ssthresh;
  73664. 801ddfc: 687b ldr r3, [r7, #4]
  73665. 801ddfe: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  73666. 801de02: 687b ldr r3, [r7, #4]
  73667. 801de04: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73668. pcb->bytes_acked = 0;
  73669. 801de08: 687b ldr r3, [r7, #4]
  73670. 801de0a: 2200 movs r2, #0
  73671. 801de0c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  73672. }
  73673. /* Reset the number of retransmissions. */
  73674. pcb->nrtx = 0;
  73675. 801de10: 687b ldr r3, [r7, #4]
  73676. 801de12: 2200 movs r2, #0
  73677. 801de14: f883 2042 strb.w r2, [r3, #66] @ 0x42
  73678. /* Reset the retransmission time-out. */
  73679. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  73680. 801de18: 687b ldr r3, [r7, #4]
  73681. 801de1a: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  73682. 801de1e: 10db asrs r3, r3, #3
  73683. 801de20: b21b sxth r3, r3
  73684. 801de22: b29a uxth r2, r3
  73685. 801de24: 687b ldr r3, [r7, #4]
  73686. 801de26: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  73687. 801de2a: b29b uxth r3, r3
  73688. 801de2c: 4413 add r3, r2
  73689. 801de2e: b29b uxth r3, r3
  73690. 801de30: b21a sxth r2, r3
  73691. 801de32: 687b ldr r3, [r7, #4]
  73692. 801de34: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  73693. /* Record how much data this ACK acks */
  73694. acked = (tcpwnd_size_t)(ackno - pcb->lastack);
  73695. 801de38: 4b18 ldr r3, [pc, #96] @ (801de9c <tcp_receive+0x270>)
  73696. 801de3a: 681b ldr r3, [r3, #0]
  73697. 801de3c: b29a uxth r2, r3
  73698. 801de3e: 687b ldr r3, [r7, #4]
  73699. 801de40: 6c5b ldr r3, [r3, #68] @ 0x44
  73700. 801de42: b29b uxth r3, r3
  73701. 801de44: 1ad3 subs r3, r2, r3
  73702. 801de46: 85fb strh r3, [r7, #46] @ 0x2e
  73703. /* Reset the fast retransmit variables. */
  73704. pcb->dupacks = 0;
  73705. 801de48: 687b ldr r3, [r7, #4]
  73706. 801de4a: 2200 movs r2, #0
  73707. 801de4c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  73708. pcb->lastack = ackno;
  73709. 801de50: 4b12 ldr r3, [pc, #72] @ (801de9c <tcp_receive+0x270>)
  73710. 801de52: 681a ldr r2, [r3, #0]
  73711. 801de54: 687b ldr r3, [r7, #4]
  73712. 801de56: 645a str r2, [r3, #68] @ 0x44
  73713. /* Update the congestion control variables (cwnd and
  73714. ssthresh). */
  73715. if (pcb->state >= ESTABLISHED) {
  73716. 801de58: 687b ldr r3, [r7, #4]
  73717. 801de5a: 7d1b ldrb r3, [r3, #20]
  73718. 801de5c: 2b03 cmp r3, #3
  73719. 801de5e: f240 8097 bls.w 801df90 <tcp_receive+0x364>
  73720. if (pcb->cwnd < pcb->ssthresh) {
  73721. 801de62: 687b ldr r3, [r7, #4]
  73722. 801de64: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73723. 801de68: 687b ldr r3, [r7, #4]
  73724. 801de6a: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  73725. 801de6e: 429a cmp r2, r3
  73726. 801de70: d245 bcs.n 801defe <tcp_receive+0x2d2>
  73727. tcpwnd_size_t increase;
  73728. /* limit to 1 SMSS segment during period following RTO */
  73729. u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2;
  73730. 801de72: 687b ldr r3, [r7, #4]
  73731. 801de74: 8b5b ldrh r3, [r3, #26]
  73732. 801de76: f403 6300 and.w r3, r3, #2048 @ 0x800
  73733. 801de7a: 2b00 cmp r3, #0
  73734. 801de7c: d014 beq.n 801dea8 <tcp_receive+0x27c>
  73735. 801de7e: 2301 movs r3, #1
  73736. 801de80: e013 b.n 801deaa <tcp_receive+0x27e>
  73737. 801de82: bf00 nop
  73738. 801de84: 0802ed58 .word 0x0802ed58
  73739. 801de88: 0802f088 .word 0x0802f088
  73740. 801de8c: 0802eda4 .word 0x0802eda4
  73741. 801de90: 0802f0a4 .word 0x0802f0a4
  73742. 801de94: 2402aed0 .word 0x2402aed0
  73743. 801de98: 2402aec4 .word 0x2402aec4
  73744. 801de9c: 2402aec8 .word 0x2402aec8
  73745. 801dea0: 2402aeb4 .word 0x2402aeb4
  73746. 801dea4: 2402aece .word 0x2402aece
  73747. 801dea8: 2302 movs r3, #2
  73748. 801deaa: f887 302d strb.w r3, [r7, #45] @ 0x2d
  73749. /* RFC 3465, section 2.2 Slow Start */
  73750. increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss));
  73751. 801deae: f897 302d ldrb.w r3, [r7, #45] @ 0x2d
  73752. 801deb2: b29a uxth r2, r3
  73753. 801deb4: 687b ldr r3, [r7, #4]
  73754. 801deb6: 8e5b ldrh r3, [r3, #50] @ 0x32
  73755. 801deb8: fb12 f303 smulbb r3, r2, r3
  73756. 801debc: b29b uxth r3, r3
  73757. 801debe: 8dfa ldrh r2, [r7, #46] @ 0x2e
  73758. 801dec0: 4293 cmp r3, r2
  73759. 801dec2: bf28 it cs
  73760. 801dec4: 4613 movcs r3, r2
  73761. 801dec6: 857b strh r3, [r7, #42] @ 0x2a
  73762. TCP_WND_INC(pcb->cwnd, increase);
  73763. 801dec8: 687b ldr r3, [r7, #4]
  73764. 801deca: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73765. 801dece: 8d7b ldrh r3, [r7, #42] @ 0x2a
  73766. 801ded0: 4413 add r3, r2
  73767. 801ded2: b29a uxth r2, r3
  73768. 801ded4: 687b ldr r3, [r7, #4]
  73769. 801ded6: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  73770. 801deda: 429a cmp r2, r3
  73771. 801dedc: d309 bcc.n 801def2 <tcp_receive+0x2c6>
  73772. 801dede: 687b ldr r3, [r7, #4]
  73773. 801dee0: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73774. 801dee4: 8d7b ldrh r3, [r7, #42] @ 0x2a
  73775. 801dee6: 4413 add r3, r2
  73776. 801dee8: b29a uxth r2, r3
  73777. 801deea: 687b ldr r3, [r7, #4]
  73778. 801deec: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73779. 801def0: e04e b.n 801df90 <tcp_receive+0x364>
  73780. 801def2: 687b ldr r3, [r7, #4]
  73781. 801def4: f64f 72ff movw r2, #65535 @ 0xffff
  73782. 801def8: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73783. 801defc: e048 b.n 801df90 <tcp_receive+0x364>
  73784. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: slow start cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd));
  73785. } else {
  73786. /* RFC 3465, section 2.1 Congestion Avoidance */
  73787. TCP_WND_INC(pcb->bytes_acked, acked);
  73788. 801defe: 687b ldr r3, [r7, #4]
  73789. 801df00: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  73790. 801df04: 8dfb ldrh r3, [r7, #46] @ 0x2e
  73791. 801df06: 4413 add r3, r2
  73792. 801df08: b29a uxth r2, r3
  73793. 801df0a: 687b ldr r3, [r7, #4]
  73794. 801df0c: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  73795. 801df10: 429a cmp r2, r3
  73796. 801df12: d309 bcc.n 801df28 <tcp_receive+0x2fc>
  73797. 801df14: 687b ldr r3, [r7, #4]
  73798. 801df16: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  73799. 801df1a: 8dfb ldrh r3, [r7, #46] @ 0x2e
  73800. 801df1c: 4413 add r3, r2
  73801. 801df1e: b29a uxth r2, r3
  73802. 801df20: 687b ldr r3, [r7, #4]
  73803. 801df22: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  73804. 801df26: e004 b.n 801df32 <tcp_receive+0x306>
  73805. 801df28: 687b ldr r3, [r7, #4]
  73806. 801df2a: f64f 72ff movw r2, #65535 @ 0xffff
  73807. 801df2e: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  73808. if (pcb->bytes_acked >= pcb->cwnd) {
  73809. 801df32: 687b ldr r3, [r7, #4]
  73810. 801df34: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  73811. 801df38: 687b ldr r3, [r7, #4]
  73812. 801df3a: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  73813. 801df3e: 429a cmp r2, r3
  73814. 801df40: d326 bcc.n 801df90 <tcp_receive+0x364>
  73815. pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd);
  73816. 801df42: 687b ldr r3, [r7, #4]
  73817. 801df44: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  73818. 801df48: 687b ldr r3, [r7, #4]
  73819. 801df4a: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  73820. 801df4e: 1ad3 subs r3, r2, r3
  73821. 801df50: b29a uxth r2, r3
  73822. 801df52: 687b ldr r3, [r7, #4]
  73823. 801df54: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  73824. TCP_WND_INC(pcb->cwnd, pcb->mss);
  73825. 801df58: 687b ldr r3, [r7, #4]
  73826. 801df5a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73827. 801df5e: 687b ldr r3, [r7, #4]
  73828. 801df60: 8e5b ldrh r3, [r3, #50] @ 0x32
  73829. 801df62: 4413 add r3, r2
  73830. 801df64: b29a uxth r2, r3
  73831. 801df66: 687b ldr r3, [r7, #4]
  73832. 801df68: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  73833. 801df6c: 429a cmp r2, r3
  73834. 801df6e: d30a bcc.n 801df86 <tcp_receive+0x35a>
  73835. 801df70: 687b ldr r3, [r7, #4]
  73836. 801df72: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  73837. 801df76: 687b ldr r3, [r7, #4]
  73838. 801df78: 8e5b ldrh r3, [r3, #50] @ 0x32
  73839. 801df7a: 4413 add r3, r2
  73840. 801df7c: b29a uxth r2, r3
  73841. 801df7e: 687b ldr r3, [r7, #4]
  73842. 801df80: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73843. 801df84: e004 b.n 801df90 <tcp_receive+0x364>
  73844. 801df86: 687b ldr r3, [r7, #4]
  73845. 801df88: f64f 72ff movw r2, #65535 @ 0xffff
  73846. 801df8c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  73847. pcb->unacked != NULL ?
  73848. lwip_ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked) : 0));
  73849. /* Remove segment from the unacknowledged list if the incoming
  73850. ACK acknowledges them. */
  73851. pcb->unacked = tcp_free_acked_segments(pcb, pcb->unacked, "unacked", pcb->unsent);
  73852. 801df90: 687b ldr r3, [r7, #4]
  73853. 801df92: 6f19 ldr r1, [r3, #112] @ 0x70
  73854. 801df94: 687b ldr r3, [r7, #4]
  73855. 801df96: 6edb ldr r3, [r3, #108] @ 0x6c
  73856. 801df98: 4a98 ldr r2, [pc, #608] @ (801e1fc <tcp_receive+0x5d0>)
  73857. 801df9a: 6878 ldr r0, [r7, #4]
  73858. 801df9c: f7ff fdca bl 801db34 <tcp_free_acked_segments>
  73859. 801dfa0: 4602 mov r2, r0
  73860. 801dfa2: 687b ldr r3, [r7, #4]
  73861. 801dfa4: 671a str r2, [r3, #112] @ 0x70
  73862. on the list are acknowledged by the ACK. This may seem
  73863. strange since an "unsent" segment shouldn't be acked. The
  73864. rationale is that lwIP puts all outstanding segments on the
  73865. ->unsent list after a retransmission, so these segments may
  73866. in fact have been sent once. */
  73867. pcb->unsent = tcp_free_acked_segments(pcb, pcb->unsent, "unsent", pcb->unacked);
  73868. 801dfa6: 687b ldr r3, [r7, #4]
  73869. 801dfa8: 6ed9 ldr r1, [r3, #108] @ 0x6c
  73870. 801dfaa: 687b ldr r3, [r7, #4]
  73871. 801dfac: 6f1b ldr r3, [r3, #112] @ 0x70
  73872. 801dfae: 4a94 ldr r2, [pc, #592] @ (801e200 <tcp_receive+0x5d4>)
  73873. 801dfb0: 6878 ldr r0, [r7, #4]
  73874. 801dfb2: f7ff fdbf bl 801db34 <tcp_free_acked_segments>
  73875. 801dfb6: 4602 mov r2, r0
  73876. 801dfb8: 687b ldr r3, [r7, #4]
  73877. 801dfba: 66da str r2, [r3, #108] @ 0x6c
  73878. /* If there's nothing left to acknowledge, stop the retransmit
  73879. timer, otherwise reset it to start again */
  73880. if (pcb->unacked == NULL) {
  73881. 801dfbc: 687b ldr r3, [r7, #4]
  73882. 801dfbe: 6f1b ldr r3, [r3, #112] @ 0x70
  73883. 801dfc0: 2b00 cmp r3, #0
  73884. 801dfc2: d104 bne.n 801dfce <tcp_receive+0x3a2>
  73885. pcb->rtime = -1;
  73886. 801dfc4: 687b ldr r3, [r7, #4]
  73887. 801dfc6: f64f 72ff movw r2, #65535 @ 0xffff
  73888. 801dfca: 861a strh r2, [r3, #48] @ 0x30
  73889. 801dfcc: e002 b.n 801dfd4 <tcp_receive+0x3a8>
  73890. } else {
  73891. pcb->rtime = 0;
  73892. 801dfce: 687b ldr r3, [r7, #4]
  73893. 801dfd0: 2200 movs r2, #0
  73894. 801dfd2: 861a strh r2, [r3, #48] @ 0x30
  73895. }
  73896. pcb->polltmr = 0;
  73897. 801dfd4: 687b ldr r3, [r7, #4]
  73898. 801dfd6: 2200 movs r2, #0
  73899. 801dfd8: 771a strb r2, [r3, #28]
  73900. #if TCP_OVERSIZE
  73901. if (pcb->unsent == NULL) {
  73902. 801dfda: 687b ldr r3, [r7, #4]
  73903. 801dfdc: 6edb ldr r3, [r3, #108] @ 0x6c
  73904. 801dfde: 2b00 cmp r3, #0
  73905. 801dfe0: d103 bne.n 801dfea <tcp_receive+0x3be>
  73906. pcb->unsent_oversize = 0;
  73907. 801dfe2: 687b ldr r3, [r7, #4]
  73908. 801dfe4: 2200 movs r2, #0
  73909. 801dfe6: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  73910. /* Inform neighbor reachability of forward progress. */
  73911. nd6_reachability_hint(ip6_current_src_addr());
  73912. }
  73913. #endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/
  73914. pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked);
  73915. 801dfea: 687b ldr r3, [r7, #4]
  73916. 801dfec: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  73917. 801dff0: 4b84 ldr r3, [pc, #528] @ (801e204 <tcp_receive+0x5d8>)
  73918. 801dff2: 881b ldrh r3, [r3, #0]
  73919. 801dff4: 4413 add r3, r2
  73920. 801dff6: b29a uxth r2, r3
  73921. 801dff8: 687b ldr r3, [r7, #4]
  73922. 801dffa: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  73923. /* check if this ACK ends our retransmission of in-flight data */
  73924. if (pcb->flags & TF_RTO) {
  73925. 801dffe: 687b ldr r3, [r7, #4]
  73926. 801e000: 8b5b ldrh r3, [r3, #26]
  73927. 801e002: f403 6300 and.w r3, r3, #2048 @ 0x800
  73928. 801e006: 2b00 cmp r3, #0
  73929. 801e008: d035 beq.n 801e076 <tcp_receive+0x44a>
  73930. /* RTO is done if
  73931. 1) both queues are empty or
  73932. 2) unacked is empty and unsent head contains data not part of RTO or
  73933. 3) unacked head contains data not part of RTO */
  73934. if (pcb->unacked == NULL) {
  73935. 801e00a: 687b ldr r3, [r7, #4]
  73936. 801e00c: 6f1b ldr r3, [r3, #112] @ 0x70
  73937. 801e00e: 2b00 cmp r3, #0
  73938. 801e010: d118 bne.n 801e044 <tcp_receive+0x418>
  73939. if ((pcb->unsent == NULL) ||
  73940. 801e012: 687b ldr r3, [r7, #4]
  73941. 801e014: 6edb ldr r3, [r3, #108] @ 0x6c
  73942. 801e016: 2b00 cmp r3, #0
  73943. 801e018: d00c beq.n 801e034 <tcp_receive+0x408>
  73944. (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) {
  73945. 801e01a: 687b ldr r3, [r7, #4]
  73946. 801e01c: 6cdc ldr r4, [r3, #76] @ 0x4c
  73947. 801e01e: 687b ldr r3, [r7, #4]
  73948. 801e020: 6edb ldr r3, [r3, #108] @ 0x6c
  73949. 801e022: 691b ldr r3, [r3, #16]
  73950. 801e024: 685b ldr r3, [r3, #4]
  73951. 801e026: 4618 mov r0, r3
  73952. 801e028: f7fa fd93 bl 8018b52 <lwip_htonl>
  73953. 801e02c: 4603 mov r3, r0
  73954. 801e02e: 1ae3 subs r3, r4, r3
  73955. if ((pcb->unsent == NULL) ||
  73956. 801e030: 2b00 cmp r3, #0
  73957. 801e032: dc20 bgt.n 801e076 <tcp_receive+0x44a>
  73958. tcp_clear_flags(pcb, TF_RTO);
  73959. 801e034: 687b ldr r3, [r7, #4]
  73960. 801e036: 8b5b ldrh r3, [r3, #26]
  73961. 801e038: f423 6300 bic.w r3, r3, #2048 @ 0x800
  73962. 801e03c: b29a uxth r2, r3
  73963. 801e03e: 687b ldr r3, [r7, #4]
  73964. 801e040: 835a strh r2, [r3, #26]
  73965. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73966. 801e042: e018 b.n 801e076 <tcp_receive+0x44a>
  73967. }
  73968. } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) {
  73969. 801e044: 687b ldr r3, [r7, #4]
  73970. 801e046: 6cdc ldr r4, [r3, #76] @ 0x4c
  73971. 801e048: 687b ldr r3, [r7, #4]
  73972. 801e04a: 6f1b ldr r3, [r3, #112] @ 0x70
  73973. 801e04c: 691b ldr r3, [r3, #16]
  73974. 801e04e: 685b ldr r3, [r3, #4]
  73975. 801e050: 4618 mov r0, r3
  73976. 801e052: f7fa fd7e bl 8018b52 <lwip_htonl>
  73977. 801e056: 4603 mov r3, r0
  73978. 801e058: 1ae3 subs r3, r4, r3
  73979. 801e05a: 2b00 cmp r3, #0
  73980. 801e05c: dc0b bgt.n 801e076 <tcp_receive+0x44a>
  73981. tcp_clear_flags(pcb, TF_RTO);
  73982. 801e05e: 687b ldr r3, [r7, #4]
  73983. 801e060: 8b5b ldrh r3, [r3, #26]
  73984. 801e062: f423 6300 bic.w r3, r3, #2048 @ 0x800
  73985. 801e066: b29a uxth r2, r3
  73986. 801e068: 687b ldr r3, [r7, #4]
  73987. 801e06a: 835a strh r2, [r3, #26]
  73988. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73989. 801e06c: e003 b.n 801e076 <tcp_receive+0x44a>
  73990. }
  73991. }
  73992. /* End of ACK for new data processing. */
  73993. } else {
  73994. /* Out of sequence ACK, didn't really ack anything */
  73995. tcp_send_empty_ack(pcb);
  73996. 801e06e: 6878 ldr r0, [r7, #4]
  73997. 801e070: f002 fc3c bl 80208ec <tcp_send_empty_ack>
  73998. 801e074: e000 b.n 801e078 <tcp_receive+0x44c>
  73999. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  74000. 801e076: bf00 nop
  74001. pcb->rttest, pcb->rtseq, ackno));
  74002. /* RTT estimation calculations. This is done by checking if the
  74003. incoming segment acknowledges the segment we use to take a
  74004. round-trip time measurement. */
  74005. if (pcb->rttest && TCP_SEQ_LT(pcb->rtseq, ackno)) {
  74006. 801e078: 687b ldr r3, [r7, #4]
  74007. 801e07a: 6b5b ldr r3, [r3, #52] @ 0x34
  74008. 801e07c: 2b00 cmp r3, #0
  74009. 801e07e: d05b beq.n 801e138 <tcp_receive+0x50c>
  74010. 801e080: 687b ldr r3, [r7, #4]
  74011. 801e082: 6b9a ldr r2, [r3, #56] @ 0x38
  74012. 801e084: 4b60 ldr r3, [pc, #384] @ (801e208 <tcp_receive+0x5dc>)
  74013. 801e086: 681b ldr r3, [r3, #0]
  74014. 801e088: 1ad3 subs r3, r2, r3
  74015. 801e08a: 2b00 cmp r3, #0
  74016. 801e08c: da54 bge.n 801e138 <tcp_receive+0x50c>
  74017. /* diff between this shouldn't exceed 32K since this are tcp timer ticks
  74018. and a round-trip shouldn't be that long... */
  74019. m = (s16_t)(tcp_ticks - pcb->rttest);
  74020. 801e08e: 4b5f ldr r3, [pc, #380] @ (801e20c <tcp_receive+0x5e0>)
  74021. 801e090: 681b ldr r3, [r3, #0]
  74022. 801e092: b29a uxth r2, r3
  74023. 801e094: 687b ldr r3, [r7, #4]
  74024. 801e096: 6b5b ldr r3, [r3, #52] @ 0x34
  74025. 801e098: b29b uxth r3, r3
  74026. 801e09a: 1ad3 subs r3, r2, r3
  74027. 801e09c: b29b uxth r3, r3
  74028. 801e09e: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  74029. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: experienced rtt %"U16_F" ticks (%"U16_F" msec).\n",
  74030. m, (u16_t)(m * TCP_SLOW_INTERVAL)));
  74031. /* This is taken directly from VJs original code in his paper */
  74032. m = (s16_t)(m - (pcb->sa >> 3));
  74033. 801e0a2: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  74034. 801e0a6: 687b ldr r3, [r7, #4]
  74035. 801e0a8: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  74036. 801e0ac: 10db asrs r3, r3, #3
  74037. 801e0ae: b21b sxth r3, r3
  74038. 801e0b0: b29b uxth r3, r3
  74039. 801e0b2: 1ad3 subs r3, r2, r3
  74040. 801e0b4: b29b uxth r3, r3
  74041. 801e0b6: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  74042. pcb->sa = (s16_t)(pcb->sa + m);
  74043. 801e0ba: 687b ldr r3, [r7, #4]
  74044. 801e0bc: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  74045. 801e0c0: b29a uxth r2, r3
  74046. 801e0c2: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  74047. 801e0c6: 4413 add r3, r2
  74048. 801e0c8: b29b uxth r3, r3
  74049. 801e0ca: b21a sxth r2, r3
  74050. 801e0cc: 687b ldr r3, [r7, #4]
  74051. 801e0ce: 879a strh r2, [r3, #60] @ 0x3c
  74052. if (m < 0) {
  74053. 801e0d0: f9b7 304e ldrsh.w r3, [r7, #78] @ 0x4e
  74054. 801e0d4: 2b00 cmp r3, #0
  74055. 801e0d6: da05 bge.n 801e0e4 <tcp_receive+0x4b8>
  74056. m = (s16_t) - m;
  74057. 801e0d8: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  74058. 801e0dc: 425b negs r3, r3
  74059. 801e0de: b29b uxth r3, r3
  74060. 801e0e0: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  74061. }
  74062. m = (s16_t)(m - (pcb->sv >> 2));
  74063. 801e0e4: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  74064. 801e0e8: 687b ldr r3, [r7, #4]
  74065. 801e0ea: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  74066. 801e0ee: 109b asrs r3, r3, #2
  74067. 801e0f0: b21b sxth r3, r3
  74068. 801e0f2: b29b uxth r3, r3
  74069. 801e0f4: 1ad3 subs r3, r2, r3
  74070. 801e0f6: b29b uxth r3, r3
  74071. 801e0f8: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  74072. pcb->sv = (s16_t)(pcb->sv + m);
  74073. 801e0fc: 687b ldr r3, [r7, #4]
  74074. 801e0fe: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  74075. 801e102: b29a uxth r2, r3
  74076. 801e104: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  74077. 801e108: 4413 add r3, r2
  74078. 801e10a: b29b uxth r3, r3
  74079. 801e10c: b21a sxth r2, r3
  74080. 801e10e: 687b ldr r3, [r7, #4]
  74081. 801e110: 87da strh r2, [r3, #62] @ 0x3e
  74082. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  74083. 801e112: 687b ldr r3, [r7, #4]
  74084. 801e114: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  74085. 801e118: 10db asrs r3, r3, #3
  74086. 801e11a: b21b sxth r3, r3
  74087. 801e11c: b29a uxth r2, r3
  74088. 801e11e: 687b ldr r3, [r7, #4]
  74089. 801e120: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  74090. 801e124: b29b uxth r3, r3
  74091. 801e126: 4413 add r3, r2
  74092. 801e128: b29b uxth r3, r3
  74093. 801e12a: b21a sxth r2, r3
  74094. 801e12c: 687b ldr r3, [r7, #4]
  74095. 801e12e: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  74096. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: RTO %"U16_F" (%"U16_F" milliseconds)\n",
  74097. pcb->rto, (u16_t)(pcb->rto * TCP_SLOW_INTERVAL)));
  74098. pcb->rttest = 0;
  74099. 801e132: 687b ldr r3, [r7, #4]
  74100. 801e134: 2200 movs r2, #0
  74101. 801e136: 635a str r2, [r3, #52] @ 0x34
  74102. /* If the incoming segment contains data, we must process it
  74103. further unless the pcb already received a FIN.
  74104. (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING,
  74105. LAST-ACK and TIME-WAIT: "Ignore the segment text.") */
  74106. if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) {
  74107. 801e138: 4b35 ldr r3, [pc, #212] @ (801e210 <tcp_receive+0x5e4>)
  74108. 801e13a: 881b ldrh r3, [r3, #0]
  74109. 801e13c: 2b00 cmp r3, #0
  74110. 801e13e: f000 84df beq.w 801eb00 <tcp_receive+0xed4>
  74111. 801e142: 687b ldr r3, [r7, #4]
  74112. 801e144: 7d1b ldrb r3, [r3, #20]
  74113. 801e146: 2b06 cmp r3, #6
  74114. 801e148: f200 84da bhi.w 801eb00 <tcp_receive+0xed4>
  74115. this if the sequence number of the incoming segment is less
  74116. than rcv_nxt, and the sequence number plus the length of the
  74117. segment is larger than rcv_nxt. */
  74118. /* if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  74119. if (TCP_SEQ_LT(pcb->rcv_nxt, seqno + tcplen)) {*/
  74120. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  74121. 801e14c: 687b ldr r3, [r7, #4]
  74122. 801e14e: 6a5a ldr r2, [r3, #36] @ 0x24
  74123. 801e150: 4b30 ldr r3, [pc, #192] @ (801e214 <tcp_receive+0x5e8>)
  74124. 801e152: 681b ldr r3, [r3, #0]
  74125. 801e154: 1ad3 subs r3, r2, r3
  74126. 801e156: 3b01 subs r3, #1
  74127. 801e158: 2b00 cmp r3, #0
  74128. 801e15a: f2c0 808f blt.w 801e27c <tcp_receive+0x650>
  74129. 801e15e: 687b ldr r3, [r7, #4]
  74130. 801e160: 6a5a ldr r2, [r3, #36] @ 0x24
  74131. 801e162: 4b2b ldr r3, [pc, #172] @ (801e210 <tcp_receive+0x5e4>)
  74132. 801e164: 881b ldrh r3, [r3, #0]
  74133. 801e166: 4619 mov r1, r3
  74134. 801e168: 4b2a ldr r3, [pc, #168] @ (801e214 <tcp_receive+0x5e8>)
  74135. 801e16a: 681b ldr r3, [r3, #0]
  74136. 801e16c: 440b add r3, r1
  74137. 801e16e: 1ad3 subs r3, r2, r3
  74138. 801e170: 3301 adds r3, #1
  74139. 801e172: 2b00 cmp r3, #0
  74140. 801e174: f300 8082 bgt.w 801e27c <tcp_receive+0x650>
  74141. After we are done with adjusting the pbuf pointers we must
  74142. adjust the ->data pointer in the seg and the segment
  74143. length.*/
  74144. struct pbuf *p = inseg.p;
  74145. 801e178: 4b27 ldr r3, [pc, #156] @ (801e218 <tcp_receive+0x5ec>)
  74146. 801e17a: 685b ldr r3, [r3, #4]
  74147. 801e17c: 647b str r3, [r7, #68] @ 0x44
  74148. u32_t off32 = pcb->rcv_nxt - seqno;
  74149. 801e17e: 687b ldr r3, [r7, #4]
  74150. 801e180: 6a5a ldr r2, [r3, #36] @ 0x24
  74151. 801e182: 4b24 ldr r3, [pc, #144] @ (801e214 <tcp_receive+0x5e8>)
  74152. 801e184: 681b ldr r3, [r3, #0]
  74153. 801e186: 1ad3 subs r3, r2, r3
  74154. 801e188: 627b str r3, [r7, #36] @ 0x24
  74155. u16_t new_tot_len, off;
  74156. LWIP_ASSERT("inseg.p != NULL", inseg.p);
  74157. 801e18a: 4b23 ldr r3, [pc, #140] @ (801e218 <tcp_receive+0x5ec>)
  74158. 801e18c: 685b ldr r3, [r3, #4]
  74159. 801e18e: 2b00 cmp r3, #0
  74160. 801e190: d106 bne.n 801e1a0 <tcp_receive+0x574>
  74161. 801e192: 4b22 ldr r3, [pc, #136] @ (801e21c <tcp_receive+0x5f0>)
  74162. 801e194: f240 5294 movw r2, #1428 @ 0x594
  74163. 801e198: 4921 ldr r1, [pc, #132] @ (801e220 <tcp_receive+0x5f4>)
  74164. 801e19a: 4822 ldr r0, [pc, #136] @ (801e224 <tcp_receive+0x5f8>)
  74165. 801e19c: f00b fc1e bl 80299dc <iprintf>
  74166. LWIP_ASSERT("insane offset!", (off32 < 0xffff));
  74167. 801e1a0: 6a7b ldr r3, [r7, #36] @ 0x24
  74168. 801e1a2: f64f 72fe movw r2, #65534 @ 0xfffe
  74169. 801e1a6: 4293 cmp r3, r2
  74170. 801e1a8: d906 bls.n 801e1b8 <tcp_receive+0x58c>
  74171. 801e1aa: 4b1c ldr r3, [pc, #112] @ (801e21c <tcp_receive+0x5f0>)
  74172. 801e1ac: f240 5295 movw r2, #1429 @ 0x595
  74173. 801e1b0: 491d ldr r1, [pc, #116] @ (801e228 <tcp_receive+0x5fc>)
  74174. 801e1b2: 481c ldr r0, [pc, #112] @ (801e224 <tcp_receive+0x5f8>)
  74175. 801e1b4: f00b fc12 bl 80299dc <iprintf>
  74176. off = (u16_t)off32;
  74177. 801e1b8: 6a7b ldr r3, [r7, #36] @ 0x24
  74178. 801e1ba: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  74179. LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off));
  74180. 801e1be: 4b16 ldr r3, [pc, #88] @ (801e218 <tcp_receive+0x5ec>)
  74181. 801e1c0: 685b ldr r3, [r3, #4]
  74182. 801e1c2: 891b ldrh r3, [r3, #8]
  74183. 801e1c4: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  74184. 801e1c8: 429a cmp r2, r3
  74185. 801e1ca: d906 bls.n 801e1da <tcp_receive+0x5ae>
  74186. 801e1cc: 4b13 ldr r3, [pc, #76] @ (801e21c <tcp_receive+0x5f0>)
  74187. 801e1ce: f240 5297 movw r2, #1431 @ 0x597
  74188. 801e1d2: 4916 ldr r1, [pc, #88] @ (801e22c <tcp_receive+0x600>)
  74189. 801e1d4: 4813 ldr r0, [pc, #76] @ (801e224 <tcp_receive+0x5f8>)
  74190. 801e1d6: f00b fc01 bl 80299dc <iprintf>
  74191. inseg.len -= off;
  74192. 801e1da: 4b0f ldr r3, [pc, #60] @ (801e218 <tcp_receive+0x5ec>)
  74193. 801e1dc: 891a ldrh r2, [r3, #8]
  74194. 801e1de: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  74195. 801e1e2: 1ad3 subs r3, r2, r3
  74196. 801e1e4: b29a uxth r2, r3
  74197. 801e1e6: 4b0c ldr r3, [pc, #48] @ (801e218 <tcp_receive+0x5ec>)
  74198. 801e1e8: 811a strh r2, [r3, #8]
  74199. new_tot_len = (u16_t)(inseg.p->tot_len - off);
  74200. 801e1ea: 4b0b ldr r3, [pc, #44] @ (801e218 <tcp_receive+0x5ec>)
  74201. 801e1ec: 685b ldr r3, [r3, #4]
  74202. 801e1ee: 891a ldrh r2, [r3, #8]
  74203. 801e1f0: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  74204. 801e1f4: 1ad3 subs r3, r2, r3
  74205. 801e1f6: 847b strh r3, [r7, #34] @ 0x22
  74206. while (p->len < off) {
  74207. 801e1f8: e02a b.n 801e250 <tcp_receive+0x624>
  74208. 801e1fa: bf00 nop
  74209. 801e1fc: 0802f0c0 .word 0x0802f0c0
  74210. 801e200: 0802f0c8 .word 0x0802f0c8
  74211. 801e204: 2402aecc .word 0x2402aecc
  74212. 801e208: 2402aec8 .word 0x2402aec8
  74213. 801e20c: 2402ae88 .word 0x2402ae88
  74214. 801e210: 2402aece .word 0x2402aece
  74215. 801e214: 2402aec4 .word 0x2402aec4
  74216. 801e218: 2402aea0 .word 0x2402aea0
  74217. 801e21c: 0802ed58 .word 0x0802ed58
  74218. 801e220: 0802f0d0 .word 0x0802f0d0
  74219. 801e224: 0802eda4 .word 0x0802eda4
  74220. 801e228: 0802f0e0 .word 0x0802f0e0
  74221. 801e22c: 0802f0f0 .word 0x0802f0f0
  74222. off -= p->len;
  74223. 801e230: 6c7b ldr r3, [r7, #68] @ 0x44
  74224. 801e232: 895b ldrh r3, [r3, #10]
  74225. 801e234: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  74226. 801e238: 1ad3 subs r3, r2, r3
  74227. 801e23a: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  74228. /* all pbufs up to and including this one have len==0, so tot_len is equal */
  74229. p->tot_len = new_tot_len;
  74230. 801e23e: 6c7b ldr r3, [r7, #68] @ 0x44
  74231. 801e240: 8c7a ldrh r2, [r7, #34] @ 0x22
  74232. 801e242: 811a strh r2, [r3, #8]
  74233. p->len = 0;
  74234. 801e244: 6c7b ldr r3, [r7, #68] @ 0x44
  74235. 801e246: 2200 movs r2, #0
  74236. 801e248: 815a strh r2, [r3, #10]
  74237. p = p->next;
  74238. 801e24a: 6c7b ldr r3, [r7, #68] @ 0x44
  74239. 801e24c: 681b ldr r3, [r3, #0]
  74240. 801e24e: 647b str r3, [r7, #68] @ 0x44
  74241. while (p->len < off) {
  74242. 801e250: 6c7b ldr r3, [r7, #68] @ 0x44
  74243. 801e252: 895b ldrh r3, [r3, #10]
  74244. 801e254: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  74245. 801e258: 429a cmp r2, r3
  74246. 801e25a: d8e9 bhi.n 801e230 <tcp_receive+0x604>
  74247. }
  74248. /* cannot fail... */
  74249. pbuf_remove_header(p, off);
  74250. 801e25c: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  74251. 801e260: 4619 mov r1, r3
  74252. 801e262: 6c78 ldr r0, [r7, #68] @ 0x44
  74253. 801e264: f7fc f88a bl 801a37c <pbuf_remove_header>
  74254. inseg.tcphdr->seqno = seqno = pcb->rcv_nxt;
  74255. 801e268: 687b ldr r3, [r7, #4]
  74256. 801e26a: 6a5b ldr r3, [r3, #36] @ 0x24
  74257. 801e26c: 4a90 ldr r2, [pc, #576] @ (801e4b0 <tcp_receive+0x884>)
  74258. 801e26e: 6013 str r3, [r2, #0]
  74259. 801e270: 4b90 ldr r3, [pc, #576] @ (801e4b4 <tcp_receive+0x888>)
  74260. 801e272: 691b ldr r3, [r3, #16]
  74261. 801e274: 4a8e ldr r2, [pc, #568] @ (801e4b0 <tcp_receive+0x884>)
  74262. 801e276: 6812 ldr r2, [r2, #0]
  74263. 801e278: 605a str r2, [r3, #4]
  74264. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  74265. 801e27a: e00d b.n 801e298 <tcp_receive+0x66c>
  74266. } else {
  74267. if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  74268. 801e27c: 4b8c ldr r3, [pc, #560] @ (801e4b0 <tcp_receive+0x884>)
  74269. 801e27e: 681a ldr r2, [r3, #0]
  74270. 801e280: 687b ldr r3, [r7, #4]
  74271. 801e282: 6a5b ldr r3, [r3, #36] @ 0x24
  74272. 801e284: 1ad3 subs r3, r2, r3
  74273. 801e286: 2b00 cmp r3, #0
  74274. 801e288: da06 bge.n 801e298 <tcp_receive+0x66c>
  74275. /* the whole segment is < rcv_nxt */
  74276. /* must be a duplicate of a packet that has already been correctly handled */
  74277. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: duplicate seqno %"U32_F"\n", seqno));
  74278. tcp_ack_now(pcb);
  74279. 801e28a: 687b ldr r3, [r7, #4]
  74280. 801e28c: 8b5b ldrh r3, [r3, #26]
  74281. 801e28e: f043 0302 orr.w r3, r3, #2
  74282. 801e292: b29a uxth r2, r3
  74283. 801e294: 687b ldr r3, [r7, #4]
  74284. 801e296: 835a strh r2, [r3, #26]
  74285. }
  74286. /* The sequence number must be within the window (above rcv_nxt
  74287. and below rcv_nxt + rcv_wnd) in order to be further
  74288. processed. */
  74289. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  74290. 801e298: 4b85 ldr r3, [pc, #532] @ (801e4b0 <tcp_receive+0x884>)
  74291. 801e29a: 681a ldr r2, [r3, #0]
  74292. 801e29c: 687b ldr r3, [r7, #4]
  74293. 801e29e: 6a5b ldr r3, [r3, #36] @ 0x24
  74294. 801e2a0: 1ad3 subs r3, r2, r3
  74295. 801e2a2: 2b00 cmp r3, #0
  74296. 801e2a4: f2c0 8427 blt.w 801eaf6 <tcp_receive+0xeca>
  74297. 801e2a8: 4b81 ldr r3, [pc, #516] @ (801e4b0 <tcp_receive+0x884>)
  74298. 801e2aa: 681a ldr r2, [r3, #0]
  74299. 801e2ac: 687b ldr r3, [r7, #4]
  74300. 801e2ae: 6a5b ldr r3, [r3, #36] @ 0x24
  74301. 801e2b0: 6879 ldr r1, [r7, #4]
  74302. 801e2b2: 8d09 ldrh r1, [r1, #40] @ 0x28
  74303. 801e2b4: 440b add r3, r1
  74304. 801e2b6: 1ad3 subs r3, r2, r3
  74305. 801e2b8: 3301 adds r3, #1
  74306. 801e2ba: 2b00 cmp r3, #0
  74307. 801e2bc: f300 841b bgt.w 801eaf6 <tcp_receive+0xeca>
  74308. pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  74309. if (pcb->rcv_nxt == seqno) {
  74310. 801e2c0: 687b ldr r3, [r7, #4]
  74311. 801e2c2: 6a5a ldr r2, [r3, #36] @ 0x24
  74312. 801e2c4: 4b7a ldr r3, [pc, #488] @ (801e4b0 <tcp_receive+0x884>)
  74313. 801e2c6: 681b ldr r3, [r3, #0]
  74314. 801e2c8: 429a cmp r2, r3
  74315. 801e2ca: f040 8298 bne.w 801e7fe <tcp_receive+0xbd2>
  74316. /* The incoming segment is the next in sequence. We check if
  74317. we have to trim the end of the segment and update rcv_nxt
  74318. and pass the data to the application. */
  74319. tcplen = TCP_TCPLEN(&inseg);
  74320. 801e2ce: 4b79 ldr r3, [pc, #484] @ (801e4b4 <tcp_receive+0x888>)
  74321. 801e2d0: 891c ldrh r4, [r3, #8]
  74322. 801e2d2: 4b78 ldr r3, [pc, #480] @ (801e4b4 <tcp_receive+0x888>)
  74323. 801e2d4: 691b ldr r3, [r3, #16]
  74324. 801e2d6: 899b ldrh r3, [r3, #12]
  74325. 801e2d8: b29b uxth r3, r3
  74326. 801e2da: 4618 mov r0, r3
  74327. 801e2dc: f7fa fc24 bl 8018b28 <lwip_htons>
  74328. 801e2e0: 4603 mov r3, r0
  74329. 801e2e2: b2db uxtb r3, r3
  74330. 801e2e4: f003 0303 and.w r3, r3, #3
  74331. 801e2e8: 2b00 cmp r3, #0
  74332. 801e2ea: d001 beq.n 801e2f0 <tcp_receive+0x6c4>
  74333. 801e2ec: 2301 movs r3, #1
  74334. 801e2ee: e000 b.n 801e2f2 <tcp_receive+0x6c6>
  74335. 801e2f0: 2300 movs r3, #0
  74336. 801e2f2: 4423 add r3, r4
  74337. 801e2f4: b29a uxth r2, r3
  74338. 801e2f6: 4b70 ldr r3, [pc, #448] @ (801e4b8 <tcp_receive+0x88c>)
  74339. 801e2f8: 801a strh r2, [r3, #0]
  74340. if (tcplen > pcb->rcv_wnd) {
  74341. 801e2fa: 687b ldr r3, [r7, #4]
  74342. 801e2fc: 8d1a ldrh r2, [r3, #40] @ 0x28
  74343. 801e2fe: 4b6e ldr r3, [pc, #440] @ (801e4b8 <tcp_receive+0x88c>)
  74344. 801e300: 881b ldrh r3, [r3, #0]
  74345. 801e302: 429a cmp r2, r3
  74346. 801e304: d274 bcs.n 801e3f0 <tcp_receive+0x7c4>
  74347. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  74348. ("tcp_receive: other end overran receive window"
  74349. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  74350. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  74351. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  74352. 801e306: 4b6b ldr r3, [pc, #428] @ (801e4b4 <tcp_receive+0x888>)
  74353. 801e308: 691b ldr r3, [r3, #16]
  74354. 801e30a: 899b ldrh r3, [r3, #12]
  74355. 801e30c: b29b uxth r3, r3
  74356. 801e30e: 4618 mov r0, r3
  74357. 801e310: f7fa fc0a bl 8018b28 <lwip_htons>
  74358. 801e314: 4603 mov r3, r0
  74359. 801e316: b2db uxtb r3, r3
  74360. 801e318: f003 0301 and.w r3, r3, #1
  74361. 801e31c: 2b00 cmp r3, #0
  74362. 801e31e: d01e beq.n 801e35e <tcp_receive+0x732>
  74363. /* Must remove the FIN from the header as we're trimming
  74364. * that byte of sequence-space from the packet */
  74365. TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN);
  74366. 801e320: 4b64 ldr r3, [pc, #400] @ (801e4b4 <tcp_receive+0x888>)
  74367. 801e322: 691b ldr r3, [r3, #16]
  74368. 801e324: 899b ldrh r3, [r3, #12]
  74369. 801e326: b29b uxth r3, r3
  74370. 801e328: b21b sxth r3, r3
  74371. 801e32a: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  74372. 801e32e: b21c sxth r4, r3
  74373. 801e330: 4b60 ldr r3, [pc, #384] @ (801e4b4 <tcp_receive+0x888>)
  74374. 801e332: 691b ldr r3, [r3, #16]
  74375. 801e334: 899b ldrh r3, [r3, #12]
  74376. 801e336: b29b uxth r3, r3
  74377. 801e338: 4618 mov r0, r3
  74378. 801e33a: f7fa fbf5 bl 8018b28 <lwip_htons>
  74379. 801e33e: 4603 mov r3, r0
  74380. 801e340: b2db uxtb r3, r3
  74381. 801e342: f003 033e and.w r3, r3, #62 @ 0x3e
  74382. 801e346: b29b uxth r3, r3
  74383. 801e348: 4618 mov r0, r3
  74384. 801e34a: f7fa fbed bl 8018b28 <lwip_htons>
  74385. 801e34e: 4603 mov r3, r0
  74386. 801e350: b21b sxth r3, r3
  74387. 801e352: 4323 orrs r3, r4
  74388. 801e354: b21a sxth r2, r3
  74389. 801e356: 4b57 ldr r3, [pc, #348] @ (801e4b4 <tcp_receive+0x888>)
  74390. 801e358: 691b ldr r3, [r3, #16]
  74391. 801e35a: b292 uxth r2, r2
  74392. 801e35c: 819a strh r2, [r3, #12]
  74393. }
  74394. /* Adjust length of segment to fit in the window. */
  74395. TCPWND_CHECK16(pcb->rcv_wnd);
  74396. inseg.len = (u16_t)pcb->rcv_wnd;
  74397. 801e35e: 687b ldr r3, [r7, #4]
  74398. 801e360: 8d1a ldrh r2, [r3, #40] @ 0x28
  74399. 801e362: 4b54 ldr r3, [pc, #336] @ (801e4b4 <tcp_receive+0x888>)
  74400. 801e364: 811a strh r2, [r3, #8]
  74401. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  74402. 801e366: 4b53 ldr r3, [pc, #332] @ (801e4b4 <tcp_receive+0x888>)
  74403. 801e368: 691b ldr r3, [r3, #16]
  74404. 801e36a: 899b ldrh r3, [r3, #12]
  74405. 801e36c: b29b uxth r3, r3
  74406. 801e36e: 4618 mov r0, r3
  74407. 801e370: f7fa fbda bl 8018b28 <lwip_htons>
  74408. 801e374: 4603 mov r3, r0
  74409. 801e376: b2db uxtb r3, r3
  74410. 801e378: f003 0302 and.w r3, r3, #2
  74411. 801e37c: 2b00 cmp r3, #0
  74412. 801e37e: d005 beq.n 801e38c <tcp_receive+0x760>
  74413. inseg.len -= 1;
  74414. 801e380: 4b4c ldr r3, [pc, #304] @ (801e4b4 <tcp_receive+0x888>)
  74415. 801e382: 891b ldrh r3, [r3, #8]
  74416. 801e384: 3b01 subs r3, #1
  74417. 801e386: b29a uxth r2, r3
  74418. 801e388: 4b4a ldr r3, [pc, #296] @ (801e4b4 <tcp_receive+0x888>)
  74419. 801e38a: 811a strh r2, [r3, #8]
  74420. }
  74421. pbuf_realloc(inseg.p, inseg.len);
  74422. 801e38c: 4b49 ldr r3, [pc, #292] @ (801e4b4 <tcp_receive+0x888>)
  74423. 801e38e: 685b ldr r3, [r3, #4]
  74424. 801e390: 4a48 ldr r2, [pc, #288] @ (801e4b4 <tcp_receive+0x888>)
  74425. 801e392: 8912 ldrh r2, [r2, #8]
  74426. 801e394: 4611 mov r1, r2
  74427. 801e396: 4618 mov r0, r3
  74428. 801e398: f7fb fef2 bl 801a180 <pbuf_realloc>
  74429. tcplen = TCP_TCPLEN(&inseg);
  74430. 801e39c: 4b45 ldr r3, [pc, #276] @ (801e4b4 <tcp_receive+0x888>)
  74431. 801e39e: 891c ldrh r4, [r3, #8]
  74432. 801e3a0: 4b44 ldr r3, [pc, #272] @ (801e4b4 <tcp_receive+0x888>)
  74433. 801e3a2: 691b ldr r3, [r3, #16]
  74434. 801e3a4: 899b ldrh r3, [r3, #12]
  74435. 801e3a6: b29b uxth r3, r3
  74436. 801e3a8: 4618 mov r0, r3
  74437. 801e3aa: f7fa fbbd bl 8018b28 <lwip_htons>
  74438. 801e3ae: 4603 mov r3, r0
  74439. 801e3b0: b2db uxtb r3, r3
  74440. 801e3b2: f003 0303 and.w r3, r3, #3
  74441. 801e3b6: 2b00 cmp r3, #0
  74442. 801e3b8: d001 beq.n 801e3be <tcp_receive+0x792>
  74443. 801e3ba: 2301 movs r3, #1
  74444. 801e3bc: e000 b.n 801e3c0 <tcp_receive+0x794>
  74445. 801e3be: 2300 movs r3, #0
  74446. 801e3c0: 4423 add r3, r4
  74447. 801e3c2: b29a uxth r2, r3
  74448. 801e3c4: 4b3c ldr r3, [pc, #240] @ (801e4b8 <tcp_receive+0x88c>)
  74449. 801e3c6: 801a strh r2, [r3, #0]
  74450. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  74451. 801e3c8: 4b3b ldr r3, [pc, #236] @ (801e4b8 <tcp_receive+0x88c>)
  74452. 801e3ca: 881b ldrh r3, [r3, #0]
  74453. 801e3cc: 461a mov r2, r3
  74454. 801e3ce: 4b38 ldr r3, [pc, #224] @ (801e4b0 <tcp_receive+0x884>)
  74455. 801e3d0: 681b ldr r3, [r3, #0]
  74456. 801e3d2: 441a add r2, r3
  74457. 801e3d4: 687b ldr r3, [r7, #4]
  74458. 801e3d6: 6a5b ldr r3, [r3, #36] @ 0x24
  74459. 801e3d8: 6879 ldr r1, [r7, #4]
  74460. 801e3da: 8d09 ldrh r1, [r1, #40] @ 0x28
  74461. 801e3dc: 440b add r3, r1
  74462. 801e3de: 429a cmp r2, r3
  74463. 801e3e0: d006 beq.n 801e3f0 <tcp_receive+0x7c4>
  74464. 801e3e2: 4b36 ldr r3, [pc, #216] @ (801e4bc <tcp_receive+0x890>)
  74465. 801e3e4: f240 52cb movw r2, #1483 @ 0x5cb
  74466. 801e3e8: 4935 ldr r1, [pc, #212] @ (801e4c0 <tcp_receive+0x894>)
  74467. 801e3ea: 4836 ldr r0, [pc, #216] @ (801e4c4 <tcp_receive+0x898>)
  74468. 801e3ec: f00b faf6 bl 80299dc <iprintf>
  74469. }
  74470. #if TCP_QUEUE_OOSEQ
  74471. /* Received in-sequence data, adjust ooseq data if:
  74472. - FIN has been received or
  74473. - inseq overlaps with ooseq */
  74474. if (pcb->ooseq != NULL) {
  74475. 801e3f0: 687b ldr r3, [r7, #4]
  74476. 801e3f2: 6f5b ldr r3, [r3, #116] @ 0x74
  74477. 801e3f4: 2b00 cmp r3, #0
  74478. 801e3f6: f000 80e6 beq.w 801e5c6 <tcp_receive+0x99a>
  74479. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  74480. 801e3fa: 4b2e ldr r3, [pc, #184] @ (801e4b4 <tcp_receive+0x888>)
  74481. 801e3fc: 691b ldr r3, [r3, #16]
  74482. 801e3fe: 899b ldrh r3, [r3, #12]
  74483. 801e400: b29b uxth r3, r3
  74484. 801e402: 4618 mov r0, r3
  74485. 801e404: f7fa fb90 bl 8018b28 <lwip_htons>
  74486. 801e408: 4603 mov r3, r0
  74487. 801e40a: b2db uxtb r3, r3
  74488. 801e40c: f003 0301 and.w r3, r3, #1
  74489. 801e410: 2b00 cmp r3, #0
  74490. 801e412: d010 beq.n 801e436 <tcp_receive+0x80a>
  74491. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  74492. ("tcp_receive: received in-order FIN, binning ooseq queue\n"));
  74493. /* Received in-order FIN means anything that was received
  74494. * out of order must now have been received in-order, so
  74495. * bin the ooseq queue */
  74496. while (pcb->ooseq != NULL) {
  74497. 801e414: e00a b.n 801e42c <tcp_receive+0x800>
  74498. struct tcp_seg *old_ooseq = pcb->ooseq;
  74499. 801e416: 687b ldr r3, [r7, #4]
  74500. 801e418: 6f5b ldr r3, [r3, #116] @ 0x74
  74501. 801e41a: 60fb str r3, [r7, #12]
  74502. pcb->ooseq = pcb->ooseq->next;
  74503. 801e41c: 687b ldr r3, [r7, #4]
  74504. 801e41e: 6f5b ldr r3, [r3, #116] @ 0x74
  74505. 801e420: 681a ldr r2, [r3, #0]
  74506. 801e422: 687b ldr r3, [r7, #4]
  74507. 801e424: 675a str r2, [r3, #116] @ 0x74
  74508. tcp_seg_free(old_ooseq);
  74509. 801e426: 68f8 ldr r0, [r7, #12]
  74510. 801e428: f7fd fcb9 bl 801bd9e <tcp_seg_free>
  74511. while (pcb->ooseq != NULL) {
  74512. 801e42c: 687b ldr r3, [r7, #4]
  74513. 801e42e: 6f5b ldr r3, [r3, #116] @ 0x74
  74514. 801e430: 2b00 cmp r3, #0
  74515. 801e432: d1f0 bne.n 801e416 <tcp_receive+0x7ea>
  74516. 801e434: e0c7 b.n 801e5c6 <tcp_receive+0x99a>
  74517. }
  74518. } else {
  74519. struct tcp_seg *next = pcb->ooseq;
  74520. 801e436: 687b ldr r3, [r7, #4]
  74521. 801e438: 6f5b ldr r3, [r3, #116] @ 0x74
  74522. 801e43a: 63fb str r3, [r7, #60] @ 0x3c
  74523. /* Remove all segments on ooseq that are covered by inseg already.
  74524. * FIN is copied from ooseq to inseg if present. */
  74525. while (next &&
  74526. 801e43c: e051 b.n 801e4e2 <tcp_receive+0x8b6>
  74527. TCP_SEQ_GEQ(seqno + tcplen,
  74528. next->tcphdr->seqno + next->len)) {
  74529. struct tcp_seg *tmp;
  74530. /* inseg cannot have FIN here (already processed above) */
  74531. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  74532. 801e43e: 6bfb ldr r3, [r7, #60] @ 0x3c
  74533. 801e440: 691b ldr r3, [r3, #16]
  74534. 801e442: 899b ldrh r3, [r3, #12]
  74535. 801e444: b29b uxth r3, r3
  74536. 801e446: 4618 mov r0, r3
  74537. 801e448: f7fa fb6e bl 8018b28 <lwip_htons>
  74538. 801e44c: 4603 mov r3, r0
  74539. 801e44e: b2db uxtb r3, r3
  74540. 801e450: f003 0301 and.w r3, r3, #1
  74541. 801e454: 2b00 cmp r3, #0
  74542. 801e456: d03c beq.n 801e4d2 <tcp_receive+0x8a6>
  74543. (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) {
  74544. 801e458: 4b16 ldr r3, [pc, #88] @ (801e4b4 <tcp_receive+0x888>)
  74545. 801e45a: 691b ldr r3, [r3, #16]
  74546. 801e45c: 899b ldrh r3, [r3, #12]
  74547. 801e45e: b29b uxth r3, r3
  74548. 801e460: 4618 mov r0, r3
  74549. 801e462: f7fa fb61 bl 8018b28 <lwip_htons>
  74550. 801e466: 4603 mov r3, r0
  74551. 801e468: b2db uxtb r3, r3
  74552. 801e46a: f003 0302 and.w r3, r3, #2
  74553. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  74554. 801e46e: 2b00 cmp r3, #0
  74555. 801e470: d12f bne.n 801e4d2 <tcp_receive+0x8a6>
  74556. TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN);
  74557. 801e472: 4b10 ldr r3, [pc, #64] @ (801e4b4 <tcp_receive+0x888>)
  74558. 801e474: 691b ldr r3, [r3, #16]
  74559. 801e476: 899b ldrh r3, [r3, #12]
  74560. 801e478: b29c uxth r4, r3
  74561. 801e47a: 2001 movs r0, #1
  74562. 801e47c: f7fa fb54 bl 8018b28 <lwip_htons>
  74563. 801e480: 4603 mov r3, r0
  74564. 801e482: 461a mov r2, r3
  74565. 801e484: 4b0b ldr r3, [pc, #44] @ (801e4b4 <tcp_receive+0x888>)
  74566. 801e486: 691b ldr r3, [r3, #16]
  74567. 801e488: 4322 orrs r2, r4
  74568. 801e48a: b292 uxth r2, r2
  74569. 801e48c: 819a strh r2, [r3, #12]
  74570. tcplen = TCP_TCPLEN(&inseg);
  74571. 801e48e: 4b09 ldr r3, [pc, #36] @ (801e4b4 <tcp_receive+0x888>)
  74572. 801e490: 891c ldrh r4, [r3, #8]
  74573. 801e492: 4b08 ldr r3, [pc, #32] @ (801e4b4 <tcp_receive+0x888>)
  74574. 801e494: 691b ldr r3, [r3, #16]
  74575. 801e496: 899b ldrh r3, [r3, #12]
  74576. 801e498: b29b uxth r3, r3
  74577. 801e49a: 4618 mov r0, r3
  74578. 801e49c: f7fa fb44 bl 8018b28 <lwip_htons>
  74579. 801e4a0: 4603 mov r3, r0
  74580. 801e4a2: b2db uxtb r3, r3
  74581. 801e4a4: f003 0303 and.w r3, r3, #3
  74582. 801e4a8: 2b00 cmp r3, #0
  74583. 801e4aa: d00d beq.n 801e4c8 <tcp_receive+0x89c>
  74584. 801e4ac: 2301 movs r3, #1
  74585. 801e4ae: e00c b.n 801e4ca <tcp_receive+0x89e>
  74586. 801e4b0: 2402aec4 .word 0x2402aec4
  74587. 801e4b4: 2402aea0 .word 0x2402aea0
  74588. 801e4b8: 2402aece .word 0x2402aece
  74589. 801e4bc: 0802ed58 .word 0x0802ed58
  74590. 801e4c0: 0802f100 .word 0x0802f100
  74591. 801e4c4: 0802eda4 .word 0x0802eda4
  74592. 801e4c8: 2300 movs r3, #0
  74593. 801e4ca: 4423 add r3, r4
  74594. 801e4cc: b29a uxth r2, r3
  74595. 801e4ce: 4b98 ldr r3, [pc, #608] @ (801e730 <tcp_receive+0xb04>)
  74596. 801e4d0: 801a strh r2, [r3, #0]
  74597. }
  74598. tmp = next;
  74599. 801e4d2: 6bfb ldr r3, [r7, #60] @ 0x3c
  74600. 801e4d4: 613b str r3, [r7, #16]
  74601. next = next->next;
  74602. 801e4d6: 6bfb ldr r3, [r7, #60] @ 0x3c
  74603. 801e4d8: 681b ldr r3, [r3, #0]
  74604. 801e4da: 63fb str r3, [r7, #60] @ 0x3c
  74605. tcp_seg_free(tmp);
  74606. 801e4dc: 6938 ldr r0, [r7, #16]
  74607. 801e4de: f7fd fc5e bl 801bd9e <tcp_seg_free>
  74608. while (next &&
  74609. 801e4e2: 6bfb ldr r3, [r7, #60] @ 0x3c
  74610. 801e4e4: 2b00 cmp r3, #0
  74611. 801e4e6: d00e beq.n 801e506 <tcp_receive+0x8da>
  74612. TCP_SEQ_GEQ(seqno + tcplen,
  74613. 801e4e8: 4b91 ldr r3, [pc, #580] @ (801e730 <tcp_receive+0xb04>)
  74614. 801e4ea: 881b ldrh r3, [r3, #0]
  74615. 801e4ec: 461a mov r2, r3
  74616. 801e4ee: 4b91 ldr r3, [pc, #580] @ (801e734 <tcp_receive+0xb08>)
  74617. 801e4f0: 681b ldr r3, [r3, #0]
  74618. 801e4f2: 441a add r2, r3
  74619. 801e4f4: 6bfb ldr r3, [r7, #60] @ 0x3c
  74620. 801e4f6: 691b ldr r3, [r3, #16]
  74621. 801e4f8: 685b ldr r3, [r3, #4]
  74622. 801e4fa: 6bf9 ldr r1, [r7, #60] @ 0x3c
  74623. 801e4fc: 8909 ldrh r1, [r1, #8]
  74624. 801e4fe: 440b add r3, r1
  74625. 801e500: 1ad3 subs r3, r2, r3
  74626. while (next &&
  74627. 801e502: 2b00 cmp r3, #0
  74628. 801e504: da9b bge.n 801e43e <tcp_receive+0x812>
  74629. }
  74630. /* Now trim right side of inseg if it overlaps with the first
  74631. * segment on ooseq */
  74632. if (next &&
  74633. 801e506: 6bfb ldr r3, [r7, #60] @ 0x3c
  74634. 801e508: 2b00 cmp r3, #0
  74635. 801e50a: d059 beq.n 801e5c0 <tcp_receive+0x994>
  74636. TCP_SEQ_GT(seqno + tcplen,
  74637. 801e50c: 4b88 ldr r3, [pc, #544] @ (801e730 <tcp_receive+0xb04>)
  74638. 801e50e: 881b ldrh r3, [r3, #0]
  74639. 801e510: 461a mov r2, r3
  74640. 801e512: 4b88 ldr r3, [pc, #544] @ (801e734 <tcp_receive+0xb08>)
  74641. 801e514: 681b ldr r3, [r3, #0]
  74642. 801e516: 441a add r2, r3
  74643. 801e518: 6bfb ldr r3, [r7, #60] @ 0x3c
  74644. 801e51a: 691b ldr r3, [r3, #16]
  74645. 801e51c: 685b ldr r3, [r3, #4]
  74646. 801e51e: 1ad3 subs r3, r2, r3
  74647. if (next &&
  74648. 801e520: 2b00 cmp r3, #0
  74649. 801e522: dd4d ble.n 801e5c0 <tcp_receive+0x994>
  74650. next->tcphdr->seqno)) {
  74651. /* inseg cannot have FIN here (already processed above) */
  74652. inseg.len = (u16_t)(next->tcphdr->seqno - seqno);
  74653. 801e524: 6bfb ldr r3, [r7, #60] @ 0x3c
  74654. 801e526: 691b ldr r3, [r3, #16]
  74655. 801e528: 685b ldr r3, [r3, #4]
  74656. 801e52a: b29a uxth r2, r3
  74657. 801e52c: 4b81 ldr r3, [pc, #516] @ (801e734 <tcp_receive+0xb08>)
  74658. 801e52e: 681b ldr r3, [r3, #0]
  74659. 801e530: b29b uxth r3, r3
  74660. 801e532: 1ad3 subs r3, r2, r3
  74661. 801e534: b29a uxth r2, r3
  74662. 801e536: 4b80 ldr r3, [pc, #512] @ (801e738 <tcp_receive+0xb0c>)
  74663. 801e538: 811a strh r2, [r3, #8]
  74664. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  74665. 801e53a: 4b7f ldr r3, [pc, #508] @ (801e738 <tcp_receive+0xb0c>)
  74666. 801e53c: 691b ldr r3, [r3, #16]
  74667. 801e53e: 899b ldrh r3, [r3, #12]
  74668. 801e540: b29b uxth r3, r3
  74669. 801e542: 4618 mov r0, r3
  74670. 801e544: f7fa faf0 bl 8018b28 <lwip_htons>
  74671. 801e548: 4603 mov r3, r0
  74672. 801e54a: b2db uxtb r3, r3
  74673. 801e54c: f003 0302 and.w r3, r3, #2
  74674. 801e550: 2b00 cmp r3, #0
  74675. 801e552: d005 beq.n 801e560 <tcp_receive+0x934>
  74676. inseg.len -= 1;
  74677. 801e554: 4b78 ldr r3, [pc, #480] @ (801e738 <tcp_receive+0xb0c>)
  74678. 801e556: 891b ldrh r3, [r3, #8]
  74679. 801e558: 3b01 subs r3, #1
  74680. 801e55a: b29a uxth r2, r3
  74681. 801e55c: 4b76 ldr r3, [pc, #472] @ (801e738 <tcp_receive+0xb0c>)
  74682. 801e55e: 811a strh r2, [r3, #8]
  74683. }
  74684. pbuf_realloc(inseg.p, inseg.len);
  74685. 801e560: 4b75 ldr r3, [pc, #468] @ (801e738 <tcp_receive+0xb0c>)
  74686. 801e562: 685b ldr r3, [r3, #4]
  74687. 801e564: 4a74 ldr r2, [pc, #464] @ (801e738 <tcp_receive+0xb0c>)
  74688. 801e566: 8912 ldrh r2, [r2, #8]
  74689. 801e568: 4611 mov r1, r2
  74690. 801e56a: 4618 mov r0, r3
  74691. 801e56c: f7fb fe08 bl 801a180 <pbuf_realloc>
  74692. tcplen = TCP_TCPLEN(&inseg);
  74693. 801e570: 4b71 ldr r3, [pc, #452] @ (801e738 <tcp_receive+0xb0c>)
  74694. 801e572: 891c ldrh r4, [r3, #8]
  74695. 801e574: 4b70 ldr r3, [pc, #448] @ (801e738 <tcp_receive+0xb0c>)
  74696. 801e576: 691b ldr r3, [r3, #16]
  74697. 801e578: 899b ldrh r3, [r3, #12]
  74698. 801e57a: b29b uxth r3, r3
  74699. 801e57c: 4618 mov r0, r3
  74700. 801e57e: f7fa fad3 bl 8018b28 <lwip_htons>
  74701. 801e582: 4603 mov r3, r0
  74702. 801e584: b2db uxtb r3, r3
  74703. 801e586: f003 0303 and.w r3, r3, #3
  74704. 801e58a: 2b00 cmp r3, #0
  74705. 801e58c: d001 beq.n 801e592 <tcp_receive+0x966>
  74706. 801e58e: 2301 movs r3, #1
  74707. 801e590: e000 b.n 801e594 <tcp_receive+0x968>
  74708. 801e592: 2300 movs r3, #0
  74709. 801e594: 4423 add r3, r4
  74710. 801e596: b29a uxth r2, r3
  74711. 801e598: 4b65 ldr r3, [pc, #404] @ (801e730 <tcp_receive+0xb04>)
  74712. 801e59a: 801a strh r2, [r3, #0]
  74713. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n",
  74714. 801e59c: 4b64 ldr r3, [pc, #400] @ (801e730 <tcp_receive+0xb04>)
  74715. 801e59e: 881b ldrh r3, [r3, #0]
  74716. 801e5a0: 461a mov r2, r3
  74717. 801e5a2: 4b64 ldr r3, [pc, #400] @ (801e734 <tcp_receive+0xb08>)
  74718. 801e5a4: 681b ldr r3, [r3, #0]
  74719. 801e5a6: 441a add r2, r3
  74720. 801e5a8: 6bfb ldr r3, [r7, #60] @ 0x3c
  74721. 801e5aa: 691b ldr r3, [r3, #16]
  74722. 801e5ac: 685b ldr r3, [r3, #4]
  74723. 801e5ae: 429a cmp r2, r3
  74724. 801e5b0: d006 beq.n 801e5c0 <tcp_receive+0x994>
  74725. 801e5b2: 4b62 ldr r3, [pc, #392] @ (801e73c <tcp_receive+0xb10>)
  74726. 801e5b4: f240 52fc movw r2, #1532 @ 0x5fc
  74727. 801e5b8: 4961 ldr r1, [pc, #388] @ (801e740 <tcp_receive+0xb14>)
  74728. 801e5ba: 4862 ldr r0, [pc, #392] @ (801e744 <tcp_receive+0xb18>)
  74729. 801e5bc: f00b fa0e bl 80299dc <iprintf>
  74730. (seqno + tcplen) == next->tcphdr->seqno);
  74731. }
  74732. pcb->ooseq = next;
  74733. 801e5c0: 687b ldr r3, [r7, #4]
  74734. 801e5c2: 6bfa ldr r2, [r7, #60] @ 0x3c
  74735. 801e5c4: 675a str r2, [r3, #116] @ 0x74
  74736. }
  74737. }
  74738. #endif /* TCP_QUEUE_OOSEQ */
  74739. pcb->rcv_nxt = seqno + tcplen;
  74740. 801e5c6: 4b5a ldr r3, [pc, #360] @ (801e730 <tcp_receive+0xb04>)
  74741. 801e5c8: 881b ldrh r3, [r3, #0]
  74742. 801e5ca: 461a mov r2, r3
  74743. 801e5cc: 4b59 ldr r3, [pc, #356] @ (801e734 <tcp_receive+0xb08>)
  74744. 801e5ce: 681b ldr r3, [r3, #0]
  74745. 801e5d0: 441a add r2, r3
  74746. 801e5d2: 687b ldr r3, [r7, #4]
  74747. 801e5d4: 625a str r2, [r3, #36] @ 0x24
  74748. /* Update the receiver's (our) window. */
  74749. LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen);
  74750. 801e5d6: 687b ldr r3, [r7, #4]
  74751. 801e5d8: 8d1a ldrh r2, [r3, #40] @ 0x28
  74752. 801e5da: 4b55 ldr r3, [pc, #340] @ (801e730 <tcp_receive+0xb04>)
  74753. 801e5dc: 881b ldrh r3, [r3, #0]
  74754. 801e5de: 429a cmp r2, r3
  74755. 801e5e0: d206 bcs.n 801e5f0 <tcp_receive+0x9c4>
  74756. 801e5e2: 4b56 ldr r3, [pc, #344] @ (801e73c <tcp_receive+0xb10>)
  74757. 801e5e4: f240 6207 movw r2, #1543 @ 0x607
  74758. 801e5e8: 4957 ldr r1, [pc, #348] @ (801e748 <tcp_receive+0xb1c>)
  74759. 801e5ea: 4856 ldr r0, [pc, #344] @ (801e744 <tcp_receive+0xb18>)
  74760. 801e5ec: f00b f9f6 bl 80299dc <iprintf>
  74761. pcb->rcv_wnd -= tcplen;
  74762. 801e5f0: 687b ldr r3, [r7, #4]
  74763. 801e5f2: 8d1a ldrh r2, [r3, #40] @ 0x28
  74764. 801e5f4: 4b4e ldr r3, [pc, #312] @ (801e730 <tcp_receive+0xb04>)
  74765. 801e5f6: 881b ldrh r3, [r3, #0]
  74766. 801e5f8: 1ad3 subs r3, r2, r3
  74767. 801e5fa: b29a uxth r2, r3
  74768. 801e5fc: 687b ldr r3, [r7, #4]
  74769. 801e5fe: 851a strh r2, [r3, #40] @ 0x28
  74770. tcp_update_rcv_ann_wnd(pcb);
  74771. 801e600: 6878 ldr r0, [r7, #4]
  74772. 801e602: f7fc fd85 bl 801b110 <tcp_update_rcv_ann_wnd>
  74773. chains its data on this pbuf as well.
  74774. If the segment was a FIN, we set the TF_GOT_FIN flag that will
  74775. be used to indicate to the application that the remote side has
  74776. closed its end of the connection. */
  74777. if (inseg.p->tot_len > 0) {
  74778. 801e606: 4b4c ldr r3, [pc, #304] @ (801e738 <tcp_receive+0xb0c>)
  74779. 801e608: 685b ldr r3, [r3, #4]
  74780. 801e60a: 891b ldrh r3, [r3, #8]
  74781. 801e60c: 2b00 cmp r3, #0
  74782. 801e60e: d006 beq.n 801e61e <tcp_receive+0x9f2>
  74783. recv_data = inseg.p;
  74784. 801e610: 4b49 ldr r3, [pc, #292] @ (801e738 <tcp_receive+0xb0c>)
  74785. 801e612: 685b ldr r3, [r3, #4]
  74786. 801e614: 4a4d ldr r2, [pc, #308] @ (801e74c <tcp_receive+0xb20>)
  74787. 801e616: 6013 str r3, [r2, #0]
  74788. /* Since this pbuf now is the responsibility of the
  74789. application, we delete our reference to it so that we won't
  74790. (mistakingly) deallocate it. */
  74791. inseg.p = NULL;
  74792. 801e618: 4b47 ldr r3, [pc, #284] @ (801e738 <tcp_receive+0xb0c>)
  74793. 801e61a: 2200 movs r2, #0
  74794. 801e61c: 605a str r2, [r3, #4]
  74795. }
  74796. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  74797. 801e61e: 4b46 ldr r3, [pc, #280] @ (801e738 <tcp_receive+0xb0c>)
  74798. 801e620: 691b ldr r3, [r3, #16]
  74799. 801e622: 899b ldrh r3, [r3, #12]
  74800. 801e624: b29b uxth r3, r3
  74801. 801e626: 4618 mov r0, r3
  74802. 801e628: f7fa fa7e bl 8018b28 <lwip_htons>
  74803. 801e62c: 4603 mov r3, r0
  74804. 801e62e: b2db uxtb r3, r3
  74805. 801e630: f003 0301 and.w r3, r3, #1
  74806. 801e634: 2b00 cmp r3, #0
  74807. 801e636: f000 80b8 beq.w 801e7aa <tcp_receive+0xb7e>
  74808. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n"));
  74809. recv_flags |= TF_GOT_FIN;
  74810. 801e63a: 4b45 ldr r3, [pc, #276] @ (801e750 <tcp_receive+0xb24>)
  74811. 801e63c: 781b ldrb r3, [r3, #0]
  74812. 801e63e: f043 0320 orr.w r3, r3, #32
  74813. 801e642: b2da uxtb r2, r3
  74814. 801e644: 4b42 ldr r3, [pc, #264] @ (801e750 <tcp_receive+0xb24>)
  74815. 801e646: 701a strb r2, [r3, #0]
  74816. }
  74817. #if TCP_QUEUE_OOSEQ
  74818. /* We now check if we have segments on the ->ooseq queue that
  74819. are now in sequence. */
  74820. while (pcb->ooseq != NULL &&
  74821. 801e648: e0af b.n 801e7aa <tcp_receive+0xb7e>
  74822. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  74823. struct tcp_seg *cseg = pcb->ooseq;
  74824. 801e64a: 687b ldr r3, [r7, #4]
  74825. 801e64c: 6f5b ldr r3, [r3, #116] @ 0x74
  74826. 801e64e: 60bb str r3, [r7, #8]
  74827. seqno = pcb->ooseq->tcphdr->seqno;
  74828. 801e650: 687b ldr r3, [r7, #4]
  74829. 801e652: 6f5b ldr r3, [r3, #116] @ 0x74
  74830. 801e654: 691b ldr r3, [r3, #16]
  74831. 801e656: 685b ldr r3, [r3, #4]
  74832. 801e658: 4a36 ldr r2, [pc, #216] @ (801e734 <tcp_receive+0xb08>)
  74833. 801e65a: 6013 str r3, [r2, #0]
  74834. pcb->rcv_nxt += TCP_TCPLEN(cseg);
  74835. 801e65c: 68bb ldr r3, [r7, #8]
  74836. 801e65e: 891b ldrh r3, [r3, #8]
  74837. 801e660: 461c mov r4, r3
  74838. 801e662: 68bb ldr r3, [r7, #8]
  74839. 801e664: 691b ldr r3, [r3, #16]
  74840. 801e666: 899b ldrh r3, [r3, #12]
  74841. 801e668: b29b uxth r3, r3
  74842. 801e66a: 4618 mov r0, r3
  74843. 801e66c: f7fa fa5c bl 8018b28 <lwip_htons>
  74844. 801e670: 4603 mov r3, r0
  74845. 801e672: b2db uxtb r3, r3
  74846. 801e674: f003 0303 and.w r3, r3, #3
  74847. 801e678: 2b00 cmp r3, #0
  74848. 801e67a: d001 beq.n 801e680 <tcp_receive+0xa54>
  74849. 801e67c: 2301 movs r3, #1
  74850. 801e67e: e000 b.n 801e682 <tcp_receive+0xa56>
  74851. 801e680: 2300 movs r3, #0
  74852. 801e682: 191a adds r2, r3, r4
  74853. 801e684: 687b ldr r3, [r7, #4]
  74854. 801e686: 6a5b ldr r3, [r3, #36] @ 0x24
  74855. 801e688: 441a add r2, r3
  74856. 801e68a: 687b ldr r3, [r7, #4]
  74857. 801e68c: 625a str r2, [r3, #36] @ 0x24
  74858. LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n",
  74859. 801e68e: 687b ldr r3, [r7, #4]
  74860. 801e690: 8d1b ldrh r3, [r3, #40] @ 0x28
  74861. 801e692: 461c mov r4, r3
  74862. 801e694: 68bb ldr r3, [r7, #8]
  74863. 801e696: 891b ldrh r3, [r3, #8]
  74864. 801e698: 461d mov r5, r3
  74865. 801e69a: 68bb ldr r3, [r7, #8]
  74866. 801e69c: 691b ldr r3, [r3, #16]
  74867. 801e69e: 899b ldrh r3, [r3, #12]
  74868. 801e6a0: b29b uxth r3, r3
  74869. 801e6a2: 4618 mov r0, r3
  74870. 801e6a4: f7fa fa40 bl 8018b28 <lwip_htons>
  74871. 801e6a8: 4603 mov r3, r0
  74872. 801e6aa: b2db uxtb r3, r3
  74873. 801e6ac: f003 0303 and.w r3, r3, #3
  74874. 801e6b0: 2b00 cmp r3, #0
  74875. 801e6b2: d001 beq.n 801e6b8 <tcp_receive+0xa8c>
  74876. 801e6b4: 2301 movs r3, #1
  74877. 801e6b6: e000 b.n 801e6ba <tcp_receive+0xa8e>
  74878. 801e6b8: 2300 movs r3, #0
  74879. 801e6ba: 442b add r3, r5
  74880. 801e6bc: 429c cmp r4, r3
  74881. 801e6be: d206 bcs.n 801e6ce <tcp_receive+0xaa2>
  74882. 801e6c0: 4b1e ldr r3, [pc, #120] @ (801e73c <tcp_receive+0xb10>)
  74883. 801e6c2: f240 622b movw r2, #1579 @ 0x62b
  74884. 801e6c6: 4923 ldr r1, [pc, #140] @ (801e754 <tcp_receive+0xb28>)
  74885. 801e6c8: 481e ldr r0, [pc, #120] @ (801e744 <tcp_receive+0xb18>)
  74886. 801e6ca: f00b f987 bl 80299dc <iprintf>
  74887. pcb->rcv_wnd >= TCP_TCPLEN(cseg));
  74888. pcb->rcv_wnd -= TCP_TCPLEN(cseg);
  74889. 801e6ce: 68bb ldr r3, [r7, #8]
  74890. 801e6d0: 891b ldrh r3, [r3, #8]
  74891. 801e6d2: 461c mov r4, r3
  74892. 801e6d4: 68bb ldr r3, [r7, #8]
  74893. 801e6d6: 691b ldr r3, [r3, #16]
  74894. 801e6d8: 899b ldrh r3, [r3, #12]
  74895. 801e6da: b29b uxth r3, r3
  74896. 801e6dc: 4618 mov r0, r3
  74897. 801e6de: f7fa fa23 bl 8018b28 <lwip_htons>
  74898. 801e6e2: 4603 mov r3, r0
  74899. 801e6e4: b2db uxtb r3, r3
  74900. 801e6e6: f003 0303 and.w r3, r3, #3
  74901. 801e6ea: 2b00 cmp r3, #0
  74902. 801e6ec: d001 beq.n 801e6f2 <tcp_receive+0xac6>
  74903. 801e6ee: 2301 movs r3, #1
  74904. 801e6f0: e000 b.n 801e6f4 <tcp_receive+0xac8>
  74905. 801e6f2: 2300 movs r3, #0
  74906. 801e6f4: 1919 adds r1, r3, r4
  74907. 801e6f6: 687b ldr r3, [r7, #4]
  74908. 801e6f8: 8d1a ldrh r2, [r3, #40] @ 0x28
  74909. 801e6fa: b28b uxth r3, r1
  74910. 801e6fc: 1ad3 subs r3, r2, r3
  74911. 801e6fe: b29a uxth r2, r3
  74912. 801e700: 687b ldr r3, [r7, #4]
  74913. 801e702: 851a strh r2, [r3, #40] @ 0x28
  74914. tcp_update_rcv_ann_wnd(pcb);
  74915. 801e704: 6878 ldr r0, [r7, #4]
  74916. 801e706: f7fc fd03 bl 801b110 <tcp_update_rcv_ann_wnd>
  74917. if (cseg->p->tot_len > 0) {
  74918. 801e70a: 68bb ldr r3, [r7, #8]
  74919. 801e70c: 685b ldr r3, [r3, #4]
  74920. 801e70e: 891b ldrh r3, [r3, #8]
  74921. 801e710: 2b00 cmp r3, #0
  74922. 801e712: d028 beq.n 801e766 <tcp_receive+0xb3a>
  74923. /* Chain this pbuf onto the pbuf that we will pass to
  74924. the application. */
  74925. /* With window scaling, this can overflow recv_data->tot_len, but
  74926. that's not a problem since we explicitly fix that before passing
  74927. recv_data to the application. */
  74928. if (recv_data) {
  74929. 801e714: 4b0d ldr r3, [pc, #52] @ (801e74c <tcp_receive+0xb20>)
  74930. 801e716: 681b ldr r3, [r3, #0]
  74931. 801e718: 2b00 cmp r3, #0
  74932. 801e71a: d01d beq.n 801e758 <tcp_receive+0xb2c>
  74933. pbuf_cat(recv_data, cseg->p);
  74934. 801e71c: 4b0b ldr r3, [pc, #44] @ (801e74c <tcp_receive+0xb20>)
  74935. 801e71e: 681a ldr r2, [r3, #0]
  74936. 801e720: 68bb ldr r3, [r7, #8]
  74937. 801e722: 685b ldr r3, [r3, #4]
  74938. 801e724: 4619 mov r1, r3
  74939. 801e726: 4610 mov r0, r2
  74940. 801e728: f7fb ffae bl 801a688 <pbuf_cat>
  74941. 801e72c: e018 b.n 801e760 <tcp_receive+0xb34>
  74942. 801e72e: bf00 nop
  74943. 801e730: 2402aece .word 0x2402aece
  74944. 801e734: 2402aec4 .word 0x2402aec4
  74945. 801e738: 2402aea0 .word 0x2402aea0
  74946. 801e73c: 0802ed58 .word 0x0802ed58
  74947. 801e740: 0802f138 .word 0x0802f138
  74948. 801e744: 0802eda4 .word 0x0802eda4
  74949. 801e748: 0802f174 .word 0x0802f174
  74950. 801e74c: 2402aed4 .word 0x2402aed4
  74951. 801e750: 2402aed1 .word 0x2402aed1
  74952. 801e754: 0802f194 .word 0x0802f194
  74953. } else {
  74954. recv_data = cseg->p;
  74955. 801e758: 68bb ldr r3, [r7, #8]
  74956. 801e75a: 685b ldr r3, [r3, #4]
  74957. 801e75c: 4a70 ldr r2, [pc, #448] @ (801e920 <tcp_receive+0xcf4>)
  74958. 801e75e: 6013 str r3, [r2, #0]
  74959. }
  74960. cseg->p = NULL;
  74961. 801e760: 68bb ldr r3, [r7, #8]
  74962. 801e762: 2200 movs r2, #0
  74963. 801e764: 605a str r2, [r3, #4]
  74964. }
  74965. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  74966. 801e766: 68bb ldr r3, [r7, #8]
  74967. 801e768: 691b ldr r3, [r3, #16]
  74968. 801e76a: 899b ldrh r3, [r3, #12]
  74969. 801e76c: b29b uxth r3, r3
  74970. 801e76e: 4618 mov r0, r3
  74971. 801e770: f7fa f9da bl 8018b28 <lwip_htons>
  74972. 801e774: 4603 mov r3, r0
  74973. 801e776: b2db uxtb r3, r3
  74974. 801e778: f003 0301 and.w r3, r3, #1
  74975. 801e77c: 2b00 cmp r3, #0
  74976. 801e77e: d00d beq.n 801e79c <tcp_receive+0xb70>
  74977. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n"));
  74978. recv_flags |= TF_GOT_FIN;
  74979. 801e780: 4b68 ldr r3, [pc, #416] @ (801e924 <tcp_receive+0xcf8>)
  74980. 801e782: 781b ldrb r3, [r3, #0]
  74981. 801e784: f043 0320 orr.w r3, r3, #32
  74982. 801e788: b2da uxtb r2, r3
  74983. 801e78a: 4b66 ldr r3, [pc, #408] @ (801e924 <tcp_receive+0xcf8>)
  74984. 801e78c: 701a strb r2, [r3, #0]
  74985. if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
  74986. 801e78e: 687b ldr r3, [r7, #4]
  74987. 801e790: 7d1b ldrb r3, [r3, #20]
  74988. 801e792: 2b04 cmp r3, #4
  74989. 801e794: d102 bne.n 801e79c <tcp_receive+0xb70>
  74990. pcb->state = CLOSE_WAIT;
  74991. 801e796: 687b ldr r3, [r7, #4]
  74992. 801e798: 2207 movs r2, #7
  74993. 801e79a: 751a strb r2, [r3, #20]
  74994. }
  74995. }
  74996. pcb->ooseq = cseg->next;
  74997. 801e79c: 68bb ldr r3, [r7, #8]
  74998. 801e79e: 681a ldr r2, [r3, #0]
  74999. 801e7a0: 687b ldr r3, [r7, #4]
  75000. 801e7a2: 675a str r2, [r3, #116] @ 0x74
  75001. tcp_seg_free(cseg);
  75002. 801e7a4: 68b8 ldr r0, [r7, #8]
  75003. 801e7a6: f7fd fafa bl 801bd9e <tcp_seg_free>
  75004. while (pcb->ooseq != NULL &&
  75005. 801e7aa: 687b ldr r3, [r7, #4]
  75006. 801e7ac: 6f5b ldr r3, [r3, #116] @ 0x74
  75007. 801e7ae: 2b00 cmp r3, #0
  75008. 801e7b0: d008 beq.n 801e7c4 <tcp_receive+0xb98>
  75009. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  75010. 801e7b2: 687b ldr r3, [r7, #4]
  75011. 801e7b4: 6f5b ldr r3, [r3, #116] @ 0x74
  75012. 801e7b6: 691b ldr r3, [r3, #16]
  75013. 801e7b8: 685a ldr r2, [r3, #4]
  75014. 801e7ba: 687b ldr r3, [r7, #4]
  75015. 801e7bc: 6a5b ldr r3, [r3, #36] @ 0x24
  75016. while (pcb->ooseq != NULL &&
  75017. 801e7be: 429a cmp r2, r3
  75018. 801e7c0: f43f af43 beq.w 801e64a <tcp_receive+0xa1e>
  75019. #endif /* LWIP_TCP_SACK_OUT */
  75020. #endif /* TCP_QUEUE_OOSEQ */
  75021. /* Acknowledge the segment(s). */
  75022. tcp_ack(pcb);
  75023. 801e7c4: 687b ldr r3, [r7, #4]
  75024. 801e7c6: 8b5b ldrh r3, [r3, #26]
  75025. 801e7c8: f003 0301 and.w r3, r3, #1
  75026. 801e7cc: 2b00 cmp r3, #0
  75027. 801e7ce: d00e beq.n 801e7ee <tcp_receive+0xbc2>
  75028. 801e7d0: 687b ldr r3, [r7, #4]
  75029. 801e7d2: 8b5b ldrh r3, [r3, #26]
  75030. 801e7d4: f023 0301 bic.w r3, r3, #1
  75031. 801e7d8: b29a uxth r2, r3
  75032. 801e7da: 687b ldr r3, [r7, #4]
  75033. 801e7dc: 835a strh r2, [r3, #26]
  75034. 801e7de: 687b ldr r3, [r7, #4]
  75035. 801e7e0: 8b5b ldrh r3, [r3, #26]
  75036. 801e7e2: f043 0302 orr.w r3, r3, #2
  75037. 801e7e6: b29a uxth r2, r3
  75038. 801e7e8: 687b ldr r3, [r7, #4]
  75039. 801e7ea: 835a strh r2, [r3, #26]
  75040. if (pcb->rcv_nxt == seqno) {
  75041. 801e7ec: e187 b.n 801eafe <tcp_receive+0xed2>
  75042. tcp_ack(pcb);
  75043. 801e7ee: 687b ldr r3, [r7, #4]
  75044. 801e7f0: 8b5b ldrh r3, [r3, #26]
  75045. 801e7f2: f043 0301 orr.w r3, r3, #1
  75046. 801e7f6: b29a uxth r2, r3
  75047. 801e7f8: 687b ldr r3, [r7, #4]
  75048. 801e7fa: 835a strh r2, [r3, #26]
  75049. if (pcb->rcv_nxt == seqno) {
  75050. 801e7fc: e17f b.n 801eafe <tcp_receive+0xed2>
  75051. } else {
  75052. /* We get here if the incoming segment is out-of-sequence. */
  75053. #if TCP_QUEUE_OOSEQ
  75054. /* We queue the segment on the ->ooseq queue. */
  75055. if (pcb->ooseq == NULL) {
  75056. 801e7fe: 687b ldr r3, [r7, #4]
  75057. 801e800: 6f5b ldr r3, [r3, #116] @ 0x74
  75058. 801e802: 2b00 cmp r3, #0
  75059. 801e804: d106 bne.n 801e814 <tcp_receive+0xbe8>
  75060. pcb->ooseq = tcp_seg_copy(&inseg);
  75061. 801e806: 4848 ldr r0, [pc, #288] @ (801e928 <tcp_receive+0xcfc>)
  75062. 801e808: f7fd fae2 bl 801bdd0 <tcp_seg_copy>
  75063. 801e80c: 4602 mov r2, r0
  75064. 801e80e: 687b ldr r3, [r7, #4]
  75065. 801e810: 675a str r2, [r3, #116] @ 0x74
  75066. 801e812: e16c b.n 801eaee <tcp_receive+0xec2>
  75067. #if LWIP_TCP_SACK_OUT
  75068. /* This is the left edge of the lowest possible SACK range.
  75069. It may start before the newly received segment (possibly adjusted below). */
  75070. u32_t sackbeg = TCP_SEQ_LT(seqno, pcb->ooseq->tcphdr->seqno) ? seqno : pcb->ooseq->tcphdr->seqno;
  75071. #endif /* LWIP_TCP_SACK_OUT */
  75072. struct tcp_seg *next, *prev = NULL;
  75073. 801e814: 2300 movs r3, #0
  75074. 801e816: 637b str r3, [r7, #52] @ 0x34
  75075. for (next = pcb->ooseq; next != NULL; next = next->next) {
  75076. 801e818: 687b ldr r3, [r7, #4]
  75077. 801e81a: 6f5b ldr r3, [r3, #116] @ 0x74
  75078. 801e81c: 63bb str r3, [r7, #56] @ 0x38
  75079. 801e81e: e156 b.n 801eace <tcp_receive+0xea2>
  75080. if (seqno == next->tcphdr->seqno) {
  75081. 801e820: 6bbb ldr r3, [r7, #56] @ 0x38
  75082. 801e822: 691b ldr r3, [r3, #16]
  75083. 801e824: 685a ldr r2, [r3, #4]
  75084. 801e826: 4b41 ldr r3, [pc, #260] @ (801e92c <tcp_receive+0xd00>)
  75085. 801e828: 681b ldr r3, [r3, #0]
  75086. 801e82a: 429a cmp r2, r3
  75087. 801e82c: d11d bne.n 801e86a <tcp_receive+0xc3e>
  75088. /* The sequence number of the incoming segment is the
  75089. same as the sequence number of the segment on
  75090. ->ooseq. We check the lengths to see which one to
  75091. discard. */
  75092. if (inseg.len > next->len) {
  75093. 801e82e: 4b3e ldr r3, [pc, #248] @ (801e928 <tcp_receive+0xcfc>)
  75094. 801e830: 891a ldrh r2, [r3, #8]
  75095. 801e832: 6bbb ldr r3, [r7, #56] @ 0x38
  75096. 801e834: 891b ldrh r3, [r3, #8]
  75097. 801e836: 429a cmp r2, r3
  75098. 801e838: f240 814e bls.w 801ead8 <tcp_receive+0xeac>
  75099. /* The incoming segment is larger than the old
  75100. segment. We replace some segments with the new
  75101. one. */
  75102. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  75103. 801e83c: 483a ldr r0, [pc, #232] @ (801e928 <tcp_receive+0xcfc>)
  75104. 801e83e: f7fd fac7 bl 801bdd0 <tcp_seg_copy>
  75105. 801e842: 6178 str r0, [r7, #20]
  75106. if (cseg != NULL) {
  75107. 801e844: 697b ldr r3, [r7, #20]
  75108. 801e846: 2b00 cmp r3, #0
  75109. 801e848: f000 8148 beq.w 801eadc <tcp_receive+0xeb0>
  75110. if (prev != NULL) {
  75111. 801e84c: 6b7b ldr r3, [r7, #52] @ 0x34
  75112. 801e84e: 2b00 cmp r3, #0
  75113. 801e850: d003 beq.n 801e85a <tcp_receive+0xc2e>
  75114. prev->next = cseg;
  75115. 801e852: 6b7b ldr r3, [r7, #52] @ 0x34
  75116. 801e854: 697a ldr r2, [r7, #20]
  75117. 801e856: 601a str r2, [r3, #0]
  75118. 801e858: e002 b.n 801e860 <tcp_receive+0xc34>
  75119. } else {
  75120. pcb->ooseq = cseg;
  75121. 801e85a: 687b ldr r3, [r7, #4]
  75122. 801e85c: 697a ldr r2, [r7, #20]
  75123. 801e85e: 675a str r2, [r3, #116] @ 0x74
  75124. }
  75125. tcp_oos_insert_segment(cseg, next);
  75126. 801e860: 6bb9 ldr r1, [r7, #56] @ 0x38
  75127. 801e862: 6978 ldr r0, [r7, #20]
  75128. 801e864: f7ff f8de bl 801da24 <tcp_oos_insert_segment>
  75129. }
  75130. break;
  75131. 801e868: e138 b.n 801eadc <tcp_receive+0xeb0>
  75132. segment was smaller than the old one; in either
  75133. case, we ditch the incoming segment. */
  75134. break;
  75135. }
  75136. } else {
  75137. if (prev == NULL) {
  75138. 801e86a: 6b7b ldr r3, [r7, #52] @ 0x34
  75139. 801e86c: 2b00 cmp r3, #0
  75140. 801e86e: d117 bne.n 801e8a0 <tcp_receive+0xc74>
  75141. if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {
  75142. 801e870: 4b2e ldr r3, [pc, #184] @ (801e92c <tcp_receive+0xd00>)
  75143. 801e872: 681a ldr r2, [r3, #0]
  75144. 801e874: 6bbb ldr r3, [r7, #56] @ 0x38
  75145. 801e876: 691b ldr r3, [r3, #16]
  75146. 801e878: 685b ldr r3, [r3, #4]
  75147. 801e87a: 1ad3 subs r3, r2, r3
  75148. 801e87c: 2b00 cmp r3, #0
  75149. 801e87e: da57 bge.n 801e930 <tcp_receive+0xd04>
  75150. /* The sequence number of the incoming segment is lower
  75151. than the sequence number of the first segment on the
  75152. queue. We put the incoming segment first on the
  75153. queue. */
  75154. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  75155. 801e880: 4829 ldr r0, [pc, #164] @ (801e928 <tcp_receive+0xcfc>)
  75156. 801e882: f7fd faa5 bl 801bdd0 <tcp_seg_copy>
  75157. 801e886: 61b8 str r0, [r7, #24]
  75158. if (cseg != NULL) {
  75159. 801e888: 69bb ldr r3, [r7, #24]
  75160. 801e88a: 2b00 cmp r3, #0
  75161. 801e88c: f000 8128 beq.w 801eae0 <tcp_receive+0xeb4>
  75162. pcb->ooseq = cseg;
  75163. 801e890: 687b ldr r3, [r7, #4]
  75164. 801e892: 69ba ldr r2, [r7, #24]
  75165. 801e894: 675a str r2, [r3, #116] @ 0x74
  75166. tcp_oos_insert_segment(cseg, next);
  75167. 801e896: 6bb9 ldr r1, [r7, #56] @ 0x38
  75168. 801e898: 69b8 ldr r0, [r7, #24]
  75169. 801e89a: f7ff f8c3 bl 801da24 <tcp_oos_insert_segment>
  75170. }
  75171. break;
  75172. 801e89e: e11f b.n 801eae0 <tcp_receive+0xeb4>
  75173. }
  75174. } else {
  75175. /*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) &&
  75176. TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/
  75177. if (TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno + 1, next->tcphdr->seqno - 1)) {
  75178. 801e8a0: 4b22 ldr r3, [pc, #136] @ (801e92c <tcp_receive+0xd00>)
  75179. 801e8a2: 681a ldr r2, [r3, #0]
  75180. 801e8a4: 6b7b ldr r3, [r7, #52] @ 0x34
  75181. 801e8a6: 691b ldr r3, [r3, #16]
  75182. 801e8a8: 685b ldr r3, [r3, #4]
  75183. 801e8aa: 1ad3 subs r3, r2, r3
  75184. 801e8ac: 3b01 subs r3, #1
  75185. 801e8ae: 2b00 cmp r3, #0
  75186. 801e8b0: db3e blt.n 801e930 <tcp_receive+0xd04>
  75187. 801e8b2: 4b1e ldr r3, [pc, #120] @ (801e92c <tcp_receive+0xd00>)
  75188. 801e8b4: 681a ldr r2, [r3, #0]
  75189. 801e8b6: 6bbb ldr r3, [r7, #56] @ 0x38
  75190. 801e8b8: 691b ldr r3, [r3, #16]
  75191. 801e8ba: 685b ldr r3, [r3, #4]
  75192. 801e8bc: 1ad3 subs r3, r2, r3
  75193. 801e8be: 3301 adds r3, #1
  75194. 801e8c0: 2b00 cmp r3, #0
  75195. 801e8c2: dc35 bgt.n 801e930 <tcp_receive+0xd04>
  75196. /* The sequence number of the incoming segment is in
  75197. between the sequence numbers of the previous and
  75198. the next segment on ->ooseq. We trim trim the previous
  75199. segment, delete next segments that included in received segment
  75200. and trim received, if needed. */
  75201. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  75202. 801e8c4: 4818 ldr r0, [pc, #96] @ (801e928 <tcp_receive+0xcfc>)
  75203. 801e8c6: f7fd fa83 bl 801bdd0 <tcp_seg_copy>
  75204. 801e8ca: 61f8 str r0, [r7, #28]
  75205. if (cseg != NULL) {
  75206. 801e8cc: 69fb ldr r3, [r7, #28]
  75207. 801e8ce: 2b00 cmp r3, #0
  75208. 801e8d0: f000 8108 beq.w 801eae4 <tcp_receive+0xeb8>
  75209. if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) {
  75210. 801e8d4: 6b7b ldr r3, [r7, #52] @ 0x34
  75211. 801e8d6: 691b ldr r3, [r3, #16]
  75212. 801e8d8: 685b ldr r3, [r3, #4]
  75213. 801e8da: 6b7a ldr r2, [r7, #52] @ 0x34
  75214. 801e8dc: 8912 ldrh r2, [r2, #8]
  75215. 801e8de: 441a add r2, r3
  75216. 801e8e0: 4b12 ldr r3, [pc, #72] @ (801e92c <tcp_receive+0xd00>)
  75217. 801e8e2: 681b ldr r3, [r3, #0]
  75218. 801e8e4: 1ad3 subs r3, r2, r3
  75219. 801e8e6: 2b00 cmp r3, #0
  75220. 801e8e8: dd12 ble.n 801e910 <tcp_receive+0xce4>
  75221. /* We need to trim the prev segment. */
  75222. prev->len = (u16_t)(seqno - prev->tcphdr->seqno);
  75223. 801e8ea: 4b10 ldr r3, [pc, #64] @ (801e92c <tcp_receive+0xd00>)
  75224. 801e8ec: 681b ldr r3, [r3, #0]
  75225. 801e8ee: b29a uxth r2, r3
  75226. 801e8f0: 6b7b ldr r3, [r7, #52] @ 0x34
  75227. 801e8f2: 691b ldr r3, [r3, #16]
  75228. 801e8f4: 685b ldr r3, [r3, #4]
  75229. 801e8f6: b29b uxth r3, r3
  75230. 801e8f8: 1ad3 subs r3, r2, r3
  75231. 801e8fa: b29a uxth r2, r3
  75232. 801e8fc: 6b7b ldr r3, [r7, #52] @ 0x34
  75233. 801e8fe: 811a strh r2, [r3, #8]
  75234. pbuf_realloc(prev->p, prev->len);
  75235. 801e900: 6b7b ldr r3, [r7, #52] @ 0x34
  75236. 801e902: 685a ldr r2, [r3, #4]
  75237. 801e904: 6b7b ldr r3, [r7, #52] @ 0x34
  75238. 801e906: 891b ldrh r3, [r3, #8]
  75239. 801e908: 4619 mov r1, r3
  75240. 801e90a: 4610 mov r0, r2
  75241. 801e90c: f7fb fc38 bl 801a180 <pbuf_realloc>
  75242. }
  75243. prev->next = cseg;
  75244. 801e910: 6b7b ldr r3, [r7, #52] @ 0x34
  75245. 801e912: 69fa ldr r2, [r7, #28]
  75246. 801e914: 601a str r2, [r3, #0]
  75247. tcp_oos_insert_segment(cseg, next);
  75248. 801e916: 6bb9 ldr r1, [r7, #56] @ 0x38
  75249. 801e918: 69f8 ldr r0, [r7, #28]
  75250. 801e91a: f7ff f883 bl 801da24 <tcp_oos_insert_segment>
  75251. }
  75252. break;
  75253. 801e91e: e0e1 b.n 801eae4 <tcp_receive+0xeb8>
  75254. 801e920: 2402aed4 .word 0x2402aed4
  75255. 801e924: 2402aed1 .word 0x2402aed1
  75256. 801e928: 2402aea0 .word 0x2402aea0
  75257. 801e92c: 2402aec4 .word 0x2402aec4
  75258. #endif /* LWIP_TCP_SACK_OUT */
  75259. /* We don't use 'prev' below, so let's set it to current 'next'.
  75260. This way even if we break the loop below, 'prev' will be pointing
  75261. at the segment right in front of the newly added one. */
  75262. prev = next;
  75263. 801e930: 6bbb ldr r3, [r7, #56] @ 0x38
  75264. 801e932: 637b str r3, [r7, #52] @ 0x34
  75265. /* If the "next" segment is the last segment on the
  75266. ooseq queue, we add the incoming segment to the end
  75267. of the list. */
  75268. if (next->next == NULL &&
  75269. 801e934: 6bbb ldr r3, [r7, #56] @ 0x38
  75270. 801e936: 681b ldr r3, [r3, #0]
  75271. 801e938: 2b00 cmp r3, #0
  75272. 801e93a: f040 80c5 bne.w 801eac8 <tcp_receive+0xe9c>
  75273. TCP_SEQ_GT(seqno, next->tcphdr->seqno)) {
  75274. 801e93e: 4b7f ldr r3, [pc, #508] @ (801eb3c <tcp_receive+0xf10>)
  75275. 801e940: 681a ldr r2, [r3, #0]
  75276. 801e942: 6bbb ldr r3, [r7, #56] @ 0x38
  75277. 801e944: 691b ldr r3, [r3, #16]
  75278. 801e946: 685b ldr r3, [r3, #4]
  75279. 801e948: 1ad3 subs r3, r2, r3
  75280. if (next->next == NULL &&
  75281. 801e94a: 2b00 cmp r3, #0
  75282. 801e94c: f340 80bc ble.w 801eac8 <tcp_receive+0xe9c>
  75283. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  75284. 801e950: 6bbb ldr r3, [r7, #56] @ 0x38
  75285. 801e952: 691b ldr r3, [r3, #16]
  75286. 801e954: 899b ldrh r3, [r3, #12]
  75287. 801e956: b29b uxth r3, r3
  75288. 801e958: 4618 mov r0, r3
  75289. 801e95a: f7fa f8e5 bl 8018b28 <lwip_htons>
  75290. 801e95e: 4603 mov r3, r0
  75291. 801e960: b2db uxtb r3, r3
  75292. 801e962: f003 0301 and.w r3, r3, #1
  75293. 801e966: 2b00 cmp r3, #0
  75294. 801e968: f040 80be bne.w 801eae8 <tcp_receive+0xebc>
  75295. /* segment "next" already contains all data */
  75296. break;
  75297. }
  75298. next->next = tcp_seg_copy(&inseg);
  75299. 801e96c: 4874 ldr r0, [pc, #464] @ (801eb40 <tcp_receive+0xf14>)
  75300. 801e96e: f7fd fa2f bl 801bdd0 <tcp_seg_copy>
  75301. 801e972: 4602 mov r2, r0
  75302. 801e974: 6bbb ldr r3, [r7, #56] @ 0x38
  75303. 801e976: 601a str r2, [r3, #0]
  75304. if (next->next != NULL) {
  75305. 801e978: 6bbb ldr r3, [r7, #56] @ 0x38
  75306. 801e97a: 681b ldr r3, [r3, #0]
  75307. 801e97c: 2b00 cmp r3, #0
  75308. 801e97e: f000 80b5 beq.w 801eaec <tcp_receive+0xec0>
  75309. if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) {
  75310. 801e982: 6bbb ldr r3, [r7, #56] @ 0x38
  75311. 801e984: 691b ldr r3, [r3, #16]
  75312. 801e986: 685b ldr r3, [r3, #4]
  75313. 801e988: 6bba ldr r2, [r7, #56] @ 0x38
  75314. 801e98a: 8912 ldrh r2, [r2, #8]
  75315. 801e98c: 441a add r2, r3
  75316. 801e98e: 4b6b ldr r3, [pc, #428] @ (801eb3c <tcp_receive+0xf10>)
  75317. 801e990: 681b ldr r3, [r3, #0]
  75318. 801e992: 1ad3 subs r3, r2, r3
  75319. 801e994: 2b00 cmp r3, #0
  75320. 801e996: dd12 ble.n 801e9be <tcp_receive+0xd92>
  75321. /* We need to trim the last segment. */
  75322. next->len = (u16_t)(seqno - next->tcphdr->seqno);
  75323. 801e998: 4b68 ldr r3, [pc, #416] @ (801eb3c <tcp_receive+0xf10>)
  75324. 801e99a: 681b ldr r3, [r3, #0]
  75325. 801e99c: b29a uxth r2, r3
  75326. 801e99e: 6bbb ldr r3, [r7, #56] @ 0x38
  75327. 801e9a0: 691b ldr r3, [r3, #16]
  75328. 801e9a2: 685b ldr r3, [r3, #4]
  75329. 801e9a4: b29b uxth r3, r3
  75330. 801e9a6: 1ad3 subs r3, r2, r3
  75331. 801e9a8: b29a uxth r2, r3
  75332. 801e9aa: 6bbb ldr r3, [r7, #56] @ 0x38
  75333. 801e9ac: 811a strh r2, [r3, #8]
  75334. pbuf_realloc(next->p, next->len);
  75335. 801e9ae: 6bbb ldr r3, [r7, #56] @ 0x38
  75336. 801e9b0: 685a ldr r2, [r3, #4]
  75337. 801e9b2: 6bbb ldr r3, [r7, #56] @ 0x38
  75338. 801e9b4: 891b ldrh r3, [r3, #8]
  75339. 801e9b6: 4619 mov r1, r3
  75340. 801e9b8: 4610 mov r0, r2
  75341. 801e9ba: f7fb fbe1 bl 801a180 <pbuf_realloc>
  75342. }
  75343. /* check if the remote side overruns our receive window */
  75344. if (TCP_SEQ_GT((u32_t)tcplen + seqno, pcb->rcv_nxt + (u32_t)pcb->rcv_wnd)) {
  75345. 801e9be: 4b61 ldr r3, [pc, #388] @ (801eb44 <tcp_receive+0xf18>)
  75346. 801e9c0: 881b ldrh r3, [r3, #0]
  75347. 801e9c2: 461a mov r2, r3
  75348. 801e9c4: 4b5d ldr r3, [pc, #372] @ (801eb3c <tcp_receive+0xf10>)
  75349. 801e9c6: 681b ldr r3, [r3, #0]
  75350. 801e9c8: 441a add r2, r3
  75351. 801e9ca: 687b ldr r3, [r7, #4]
  75352. 801e9cc: 6a5b ldr r3, [r3, #36] @ 0x24
  75353. 801e9ce: 6879 ldr r1, [r7, #4]
  75354. 801e9d0: 8d09 ldrh r1, [r1, #40] @ 0x28
  75355. 801e9d2: 440b add r3, r1
  75356. 801e9d4: 1ad3 subs r3, r2, r3
  75357. 801e9d6: 2b00 cmp r3, #0
  75358. 801e9d8: f340 8088 ble.w 801eaec <tcp_receive+0xec0>
  75359. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  75360. ("tcp_receive: other end overran receive window"
  75361. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  75362. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  75363. if (TCPH_FLAGS(next->next->tcphdr) & TCP_FIN) {
  75364. 801e9dc: 6bbb ldr r3, [r7, #56] @ 0x38
  75365. 801e9de: 681b ldr r3, [r3, #0]
  75366. 801e9e0: 691b ldr r3, [r3, #16]
  75367. 801e9e2: 899b ldrh r3, [r3, #12]
  75368. 801e9e4: b29b uxth r3, r3
  75369. 801e9e6: 4618 mov r0, r3
  75370. 801e9e8: f7fa f89e bl 8018b28 <lwip_htons>
  75371. 801e9ec: 4603 mov r3, r0
  75372. 801e9ee: b2db uxtb r3, r3
  75373. 801e9f0: f003 0301 and.w r3, r3, #1
  75374. 801e9f4: 2b00 cmp r3, #0
  75375. 801e9f6: d021 beq.n 801ea3c <tcp_receive+0xe10>
  75376. /* Must remove the FIN from the header as we're trimming
  75377. * that byte of sequence-space from the packet */
  75378. TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN);
  75379. 801e9f8: 6bbb ldr r3, [r7, #56] @ 0x38
  75380. 801e9fa: 681b ldr r3, [r3, #0]
  75381. 801e9fc: 691b ldr r3, [r3, #16]
  75382. 801e9fe: 899b ldrh r3, [r3, #12]
  75383. 801ea00: b29b uxth r3, r3
  75384. 801ea02: b21b sxth r3, r3
  75385. 801ea04: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  75386. 801ea08: b21c sxth r4, r3
  75387. 801ea0a: 6bbb ldr r3, [r7, #56] @ 0x38
  75388. 801ea0c: 681b ldr r3, [r3, #0]
  75389. 801ea0e: 691b ldr r3, [r3, #16]
  75390. 801ea10: 899b ldrh r3, [r3, #12]
  75391. 801ea12: b29b uxth r3, r3
  75392. 801ea14: 4618 mov r0, r3
  75393. 801ea16: f7fa f887 bl 8018b28 <lwip_htons>
  75394. 801ea1a: 4603 mov r3, r0
  75395. 801ea1c: b2db uxtb r3, r3
  75396. 801ea1e: f003 033e and.w r3, r3, #62 @ 0x3e
  75397. 801ea22: b29b uxth r3, r3
  75398. 801ea24: 4618 mov r0, r3
  75399. 801ea26: f7fa f87f bl 8018b28 <lwip_htons>
  75400. 801ea2a: 4603 mov r3, r0
  75401. 801ea2c: b21b sxth r3, r3
  75402. 801ea2e: 4323 orrs r3, r4
  75403. 801ea30: b21a sxth r2, r3
  75404. 801ea32: 6bbb ldr r3, [r7, #56] @ 0x38
  75405. 801ea34: 681b ldr r3, [r3, #0]
  75406. 801ea36: 691b ldr r3, [r3, #16]
  75407. 801ea38: b292 uxth r2, r2
  75408. 801ea3a: 819a strh r2, [r3, #12]
  75409. }
  75410. /* Adjust length of segment to fit in the window. */
  75411. next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno);
  75412. 801ea3c: 687b ldr r3, [r7, #4]
  75413. 801ea3e: 6a5b ldr r3, [r3, #36] @ 0x24
  75414. 801ea40: b29a uxth r2, r3
  75415. 801ea42: 687b ldr r3, [r7, #4]
  75416. 801ea44: 8d1b ldrh r3, [r3, #40] @ 0x28
  75417. 801ea46: 4413 add r3, r2
  75418. 801ea48: b299 uxth r1, r3
  75419. 801ea4a: 4b3c ldr r3, [pc, #240] @ (801eb3c <tcp_receive+0xf10>)
  75420. 801ea4c: 681b ldr r3, [r3, #0]
  75421. 801ea4e: b29a uxth r2, r3
  75422. 801ea50: 6bbb ldr r3, [r7, #56] @ 0x38
  75423. 801ea52: 681b ldr r3, [r3, #0]
  75424. 801ea54: 1a8a subs r2, r1, r2
  75425. 801ea56: b292 uxth r2, r2
  75426. 801ea58: 811a strh r2, [r3, #8]
  75427. pbuf_realloc(next->next->p, next->next->len);
  75428. 801ea5a: 6bbb ldr r3, [r7, #56] @ 0x38
  75429. 801ea5c: 681b ldr r3, [r3, #0]
  75430. 801ea5e: 685a ldr r2, [r3, #4]
  75431. 801ea60: 6bbb ldr r3, [r7, #56] @ 0x38
  75432. 801ea62: 681b ldr r3, [r3, #0]
  75433. 801ea64: 891b ldrh r3, [r3, #8]
  75434. 801ea66: 4619 mov r1, r3
  75435. 801ea68: 4610 mov r0, r2
  75436. 801ea6a: f7fb fb89 bl 801a180 <pbuf_realloc>
  75437. tcplen = TCP_TCPLEN(next->next);
  75438. 801ea6e: 6bbb ldr r3, [r7, #56] @ 0x38
  75439. 801ea70: 681b ldr r3, [r3, #0]
  75440. 801ea72: 891c ldrh r4, [r3, #8]
  75441. 801ea74: 6bbb ldr r3, [r7, #56] @ 0x38
  75442. 801ea76: 681b ldr r3, [r3, #0]
  75443. 801ea78: 691b ldr r3, [r3, #16]
  75444. 801ea7a: 899b ldrh r3, [r3, #12]
  75445. 801ea7c: b29b uxth r3, r3
  75446. 801ea7e: 4618 mov r0, r3
  75447. 801ea80: f7fa f852 bl 8018b28 <lwip_htons>
  75448. 801ea84: 4603 mov r3, r0
  75449. 801ea86: b2db uxtb r3, r3
  75450. 801ea88: f003 0303 and.w r3, r3, #3
  75451. 801ea8c: 2b00 cmp r3, #0
  75452. 801ea8e: d001 beq.n 801ea94 <tcp_receive+0xe68>
  75453. 801ea90: 2301 movs r3, #1
  75454. 801ea92: e000 b.n 801ea96 <tcp_receive+0xe6a>
  75455. 801ea94: 2300 movs r3, #0
  75456. 801ea96: 4423 add r3, r4
  75457. 801ea98: b29a uxth r2, r3
  75458. 801ea9a: 4b2a ldr r3, [pc, #168] @ (801eb44 <tcp_receive+0xf18>)
  75459. 801ea9c: 801a strh r2, [r3, #0]
  75460. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  75461. 801ea9e: 4b29 ldr r3, [pc, #164] @ (801eb44 <tcp_receive+0xf18>)
  75462. 801eaa0: 881b ldrh r3, [r3, #0]
  75463. 801eaa2: 461a mov r2, r3
  75464. 801eaa4: 4b25 ldr r3, [pc, #148] @ (801eb3c <tcp_receive+0xf10>)
  75465. 801eaa6: 681b ldr r3, [r3, #0]
  75466. 801eaa8: 441a add r2, r3
  75467. 801eaaa: 687b ldr r3, [r7, #4]
  75468. 801eaac: 6a5b ldr r3, [r3, #36] @ 0x24
  75469. 801eaae: 6879 ldr r1, [r7, #4]
  75470. 801eab0: 8d09 ldrh r1, [r1, #40] @ 0x28
  75471. 801eab2: 440b add r3, r1
  75472. 801eab4: 429a cmp r2, r3
  75473. 801eab6: d019 beq.n 801eaec <tcp_receive+0xec0>
  75474. 801eab8: 4b23 ldr r3, [pc, #140] @ (801eb48 <tcp_receive+0xf1c>)
  75475. 801eaba: f44f 62df mov.w r2, #1784 @ 0x6f8
  75476. 801eabe: 4923 ldr r1, [pc, #140] @ (801eb4c <tcp_receive+0xf20>)
  75477. 801eac0: 4823 ldr r0, [pc, #140] @ (801eb50 <tcp_receive+0xf24>)
  75478. 801eac2: f00a ff8b bl 80299dc <iprintf>
  75479. (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd));
  75480. }
  75481. }
  75482. break;
  75483. 801eac6: e011 b.n 801eaec <tcp_receive+0xec0>
  75484. for (next = pcb->ooseq; next != NULL; next = next->next) {
  75485. 801eac8: 6bbb ldr r3, [r7, #56] @ 0x38
  75486. 801eaca: 681b ldr r3, [r3, #0]
  75487. 801eacc: 63bb str r3, [r7, #56] @ 0x38
  75488. 801eace: 6bbb ldr r3, [r7, #56] @ 0x38
  75489. 801ead0: 2b00 cmp r3, #0
  75490. 801ead2: f47f aea5 bne.w 801e820 <tcp_receive+0xbf4>
  75491. 801ead6: e00a b.n 801eaee <tcp_receive+0xec2>
  75492. break;
  75493. 801ead8: bf00 nop
  75494. 801eada: e008 b.n 801eaee <tcp_receive+0xec2>
  75495. break;
  75496. 801eadc: bf00 nop
  75497. 801eade: e006 b.n 801eaee <tcp_receive+0xec2>
  75498. break;
  75499. 801eae0: bf00 nop
  75500. 801eae2: e004 b.n 801eaee <tcp_receive+0xec2>
  75501. break;
  75502. 801eae4: bf00 nop
  75503. 801eae6: e002 b.n 801eaee <tcp_receive+0xec2>
  75504. break;
  75505. 801eae8: bf00 nop
  75506. 801eaea: e000 b.n 801eaee <tcp_receive+0xec2>
  75507. break;
  75508. 801eaec: bf00 nop
  75509. #endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */
  75510. #endif /* TCP_QUEUE_OOSEQ */
  75511. /* We send the ACK packet after we've (potentially) dealt with SACKs,
  75512. so they can be included in the acknowledgment. */
  75513. tcp_send_empty_ack(pcb);
  75514. 801eaee: 6878 ldr r0, [r7, #4]
  75515. 801eaf0: f001 fefc bl 80208ec <tcp_send_empty_ack>
  75516. if (pcb->rcv_nxt == seqno) {
  75517. 801eaf4: e003 b.n 801eafe <tcp_receive+0xed2>
  75518. }
  75519. } else {
  75520. /* The incoming segment is not within the window. */
  75521. tcp_send_empty_ack(pcb);
  75522. 801eaf6: 6878 ldr r0, [r7, #4]
  75523. 801eaf8: f001 fef8 bl 80208ec <tcp_send_empty_ack>
  75524. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  75525. 801eafc: e01a b.n 801eb34 <tcp_receive+0xf08>
  75526. 801eafe: e019 b.n 801eb34 <tcp_receive+0xf08>
  75527. }
  75528. } else {
  75529. /* Segments with length 0 is taken care of here. Segments that
  75530. fall out of the window are ACKed. */
  75531. if (!TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  75532. 801eb00: 4b0e ldr r3, [pc, #56] @ (801eb3c <tcp_receive+0xf10>)
  75533. 801eb02: 681a ldr r2, [r3, #0]
  75534. 801eb04: 687b ldr r3, [r7, #4]
  75535. 801eb06: 6a5b ldr r3, [r3, #36] @ 0x24
  75536. 801eb08: 1ad3 subs r3, r2, r3
  75537. 801eb0a: 2b00 cmp r3, #0
  75538. 801eb0c: db0a blt.n 801eb24 <tcp_receive+0xef8>
  75539. 801eb0e: 4b0b ldr r3, [pc, #44] @ (801eb3c <tcp_receive+0xf10>)
  75540. 801eb10: 681a ldr r2, [r3, #0]
  75541. 801eb12: 687b ldr r3, [r7, #4]
  75542. 801eb14: 6a5b ldr r3, [r3, #36] @ 0x24
  75543. 801eb16: 6879 ldr r1, [r7, #4]
  75544. 801eb18: 8d09 ldrh r1, [r1, #40] @ 0x28
  75545. 801eb1a: 440b add r3, r1
  75546. 801eb1c: 1ad3 subs r3, r2, r3
  75547. 801eb1e: 3301 adds r3, #1
  75548. 801eb20: 2b00 cmp r3, #0
  75549. 801eb22: dd07 ble.n 801eb34 <tcp_receive+0xf08>
  75550. tcp_ack_now(pcb);
  75551. 801eb24: 687b ldr r3, [r7, #4]
  75552. 801eb26: 8b5b ldrh r3, [r3, #26]
  75553. 801eb28: f043 0302 orr.w r3, r3, #2
  75554. 801eb2c: b29a uxth r2, r3
  75555. 801eb2e: 687b ldr r3, [r7, #4]
  75556. 801eb30: 835a strh r2, [r3, #26]
  75557. }
  75558. }
  75559. }
  75560. 801eb32: e7ff b.n 801eb34 <tcp_receive+0xf08>
  75561. 801eb34: bf00 nop
  75562. 801eb36: 3750 adds r7, #80 @ 0x50
  75563. 801eb38: 46bd mov sp, r7
  75564. 801eb3a: bdb0 pop {r4, r5, r7, pc}
  75565. 801eb3c: 2402aec4 .word 0x2402aec4
  75566. 801eb40: 2402aea0 .word 0x2402aea0
  75567. 801eb44: 2402aece .word 0x2402aece
  75568. 801eb48: 0802ed58 .word 0x0802ed58
  75569. 801eb4c: 0802f100 .word 0x0802f100
  75570. 801eb50: 0802eda4 .word 0x0802eda4
  75571. 0801eb54 <tcp_get_next_optbyte>:
  75572. static u8_t
  75573. tcp_get_next_optbyte(void)
  75574. {
  75575. 801eb54: b480 push {r7}
  75576. 801eb56: b083 sub sp, #12
  75577. 801eb58: af00 add r7, sp, #0
  75578. u16_t optidx = tcp_optidx++;
  75579. 801eb5a: 4b15 ldr r3, [pc, #84] @ (801ebb0 <tcp_get_next_optbyte+0x5c>)
  75580. 801eb5c: 881b ldrh r3, [r3, #0]
  75581. 801eb5e: 1c5a adds r2, r3, #1
  75582. 801eb60: b291 uxth r1, r2
  75583. 801eb62: 4a13 ldr r2, [pc, #76] @ (801ebb0 <tcp_get_next_optbyte+0x5c>)
  75584. 801eb64: 8011 strh r1, [r2, #0]
  75585. 801eb66: 80fb strh r3, [r7, #6]
  75586. if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) {
  75587. 801eb68: 4b12 ldr r3, [pc, #72] @ (801ebb4 <tcp_get_next_optbyte+0x60>)
  75588. 801eb6a: 681b ldr r3, [r3, #0]
  75589. 801eb6c: 2b00 cmp r3, #0
  75590. 801eb6e: d004 beq.n 801eb7a <tcp_get_next_optbyte+0x26>
  75591. 801eb70: 4b11 ldr r3, [pc, #68] @ (801ebb8 <tcp_get_next_optbyte+0x64>)
  75592. 801eb72: 881b ldrh r3, [r3, #0]
  75593. 801eb74: 88fa ldrh r2, [r7, #6]
  75594. 801eb76: 429a cmp r2, r3
  75595. 801eb78: d208 bcs.n 801eb8c <tcp_get_next_optbyte+0x38>
  75596. u8_t *opts = (u8_t *)tcphdr + TCP_HLEN;
  75597. 801eb7a: 4b10 ldr r3, [pc, #64] @ (801ebbc <tcp_get_next_optbyte+0x68>)
  75598. 801eb7c: 681b ldr r3, [r3, #0]
  75599. 801eb7e: 3314 adds r3, #20
  75600. 801eb80: 603b str r3, [r7, #0]
  75601. return opts[optidx];
  75602. 801eb82: 88fb ldrh r3, [r7, #6]
  75603. 801eb84: 683a ldr r2, [r7, #0]
  75604. 801eb86: 4413 add r3, r2
  75605. 801eb88: 781b ldrb r3, [r3, #0]
  75606. 801eb8a: e00b b.n 801eba4 <tcp_get_next_optbyte+0x50>
  75607. } else {
  75608. u8_t idx = (u8_t)(optidx - tcphdr_opt1len);
  75609. 801eb8c: 88fb ldrh r3, [r7, #6]
  75610. 801eb8e: b2da uxtb r2, r3
  75611. 801eb90: 4b09 ldr r3, [pc, #36] @ (801ebb8 <tcp_get_next_optbyte+0x64>)
  75612. 801eb92: 881b ldrh r3, [r3, #0]
  75613. 801eb94: b2db uxtb r3, r3
  75614. 801eb96: 1ad3 subs r3, r2, r3
  75615. 801eb98: 717b strb r3, [r7, #5]
  75616. return tcphdr_opt2[idx];
  75617. 801eb9a: 4b06 ldr r3, [pc, #24] @ (801ebb4 <tcp_get_next_optbyte+0x60>)
  75618. 801eb9c: 681a ldr r2, [r3, #0]
  75619. 801eb9e: 797b ldrb r3, [r7, #5]
  75620. 801eba0: 4413 add r3, r2
  75621. 801eba2: 781b ldrb r3, [r3, #0]
  75622. }
  75623. }
  75624. 801eba4: 4618 mov r0, r3
  75625. 801eba6: 370c adds r7, #12
  75626. 801eba8: 46bd mov sp, r7
  75627. 801ebaa: f85d 7b04 ldr.w r7, [sp], #4
  75628. 801ebae: 4770 bx lr
  75629. 801ebb0: 2402aec0 .word 0x2402aec0
  75630. 801ebb4: 2402aebc .word 0x2402aebc
  75631. 801ebb8: 2402aeba .word 0x2402aeba
  75632. 801ebbc: 2402aeb4 .word 0x2402aeb4
  75633. 0801ebc0 <tcp_parseopt>:
  75634. *
  75635. * @param pcb the tcp_pcb for which a segment arrived
  75636. */
  75637. static void
  75638. tcp_parseopt(struct tcp_pcb *pcb)
  75639. {
  75640. 801ebc0: b580 push {r7, lr}
  75641. 801ebc2: b084 sub sp, #16
  75642. 801ebc4: af00 add r7, sp, #0
  75643. 801ebc6: 6078 str r0, [r7, #4]
  75644. u16_t mss;
  75645. #if LWIP_TCP_TIMESTAMPS
  75646. u32_t tsval;
  75647. #endif
  75648. LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL);
  75649. 801ebc8: 687b ldr r3, [r7, #4]
  75650. 801ebca: 2b00 cmp r3, #0
  75651. 801ebcc: d106 bne.n 801ebdc <tcp_parseopt+0x1c>
  75652. 801ebce: 4b33 ldr r3, [pc, #204] @ (801ec9c <tcp_parseopt+0xdc>)
  75653. 801ebd0: f240 727d movw r2, #1917 @ 0x77d
  75654. 801ebd4: 4932 ldr r1, [pc, #200] @ (801eca0 <tcp_parseopt+0xe0>)
  75655. 801ebd6: 4833 ldr r0, [pc, #204] @ (801eca4 <tcp_parseopt+0xe4>)
  75656. 801ebd8: f00a ff00 bl 80299dc <iprintf>
  75657. /* Parse the TCP MSS option, if present. */
  75658. if (tcphdr_optlen != 0) {
  75659. 801ebdc: 4b32 ldr r3, [pc, #200] @ (801eca8 <tcp_parseopt+0xe8>)
  75660. 801ebde: 881b ldrh r3, [r3, #0]
  75661. 801ebe0: 2b00 cmp r3, #0
  75662. 801ebe2: d057 beq.n 801ec94 <tcp_parseopt+0xd4>
  75663. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  75664. 801ebe4: 4b31 ldr r3, [pc, #196] @ (801ecac <tcp_parseopt+0xec>)
  75665. 801ebe6: 2200 movs r2, #0
  75666. 801ebe8: 801a strh r2, [r3, #0]
  75667. 801ebea: e047 b.n 801ec7c <tcp_parseopt+0xbc>
  75668. u8_t opt = tcp_get_next_optbyte();
  75669. 801ebec: f7ff ffb2 bl 801eb54 <tcp_get_next_optbyte>
  75670. 801ebf0: 4603 mov r3, r0
  75671. 801ebf2: 73fb strb r3, [r7, #15]
  75672. switch (opt) {
  75673. 801ebf4: 7bfb ldrb r3, [r7, #15]
  75674. 801ebf6: 2b02 cmp r3, #2
  75675. 801ebf8: d006 beq.n 801ec08 <tcp_parseopt+0x48>
  75676. 801ebfa: 2b02 cmp r3, #2
  75677. 801ebfc: dc2b bgt.n 801ec56 <tcp_parseopt+0x96>
  75678. 801ebfe: 2b00 cmp r3, #0
  75679. 801ec00: d043 beq.n 801ec8a <tcp_parseopt+0xca>
  75680. 801ec02: 2b01 cmp r3, #1
  75681. 801ec04: d039 beq.n 801ec7a <tcp_parseopt+0xba>
  75682. 801ec06: e026 b.n 801ec56 <tcp_parseopt+0x96>
  75683. /* NOP option. */
  75684. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n"));
  75685. break;
  75686. case LWIP_TCP_OPT_MSS:
  75687. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: MSS\n"));
  75688. if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_MSS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_MSS) > tcphdr_optlen) {
  75689. 801ec08: f7ff ffa4 bl 801eb54 <tcp_get_next_optbyte>
  75690. 801ec0c: 4603 mov r3, r0
  75691. 801ec0e: 2b04 cmp r3, #4
  75692. 801ec10: d13d bne.n 801ec8e <tcp_parseopt+0xce>
  75693. 801ec12: 4b26 ldr r3, [pc, #152] @ (801ecac <tcp_parseopt+0xec>)
  75694. 801ec14: 881b ldrh r3, [r3, #0]
  75695. 801ec16: 3301 adds r3, #1
  75696. 801ec18: 4a23 ldr r2, [pc, #140] @ (801eca8 <tcp_parseopt+0xe8>)
  75697. 801ec1a: 8812 ldrh r2, [r2, #0]
  75698. 801ec1c: 4293 cmp r3, r2
  75699. 801ec1e: da36 bge.n 801ec8e <tcp_parseopt+0xce>
  75700. /* Bad length */
  75701. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n"));
  75702. return;
  75703. }
  75704. /* An MSS option with the right option length. */
  75705. mss = (u16_t)(tcp_get_next_optbyte() << 8);
  75706. 801ec20: f7ff ff98 bl 801eb54 <tcp_get_next_optbyte>
  75707. 801ec24: 4603 mov r3, r0
  75708. 801ec26: 021b lsls r3, r3, #8
  75709. 801ec28: 81bb strh r3, [r7, #12]
  75710. mss |= tcp_get_next_optbyte();
  75711. 801ec2a: f7ff ff93 bl 801eb54 <tcp_get_next_optbyte>
  75712. 801ec2e: 4603 mov r3, r0
  75713. 801ec30: 461a mov r2, r3
  75714. 801ec32: 89bb ldrh r3, [r7, #12]
  75715. 801ec34: 4313 orrs r3, r2
  75716. 801ec36: 81bb strh r3, [r7, #12]
  75717. /* Limit the mss to the configured TCP_MSS and prevent division by zero */
  75718. pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss;
  75719. 801ec38: 89bb ldrh r3, [r7, #12]
  75720. 801ec3a: f240 52b4 movw r2, #1460 @ 0x5b4
  75721. 801ec3e: 4293 cmp r3, r2
  75722. 801ec40: d804 bhi.n 801ec4c <tcp_parseopt+0x8c>
  75723. 801ec42: 89bb ldrh r3, [r7, #12]
  75724. 801ec44: 2b00 cmp r3, #0
  75725. 801ec46: d001 beq.n 801ec4c <tcp_parseopt+0x8c>
  75726. 801ec48: 89ba ldrh r2, [r7, #12]
  75727. 801ec4a: e001 b.n 801ec50 <tcp_parseopt+0x90>
  75728. 801ec4c: f240 52b4 movw r2, #1460 @ 0x5b4
  75729. 801ec50: 687b ldr r3, [r7, #4]
  75730. 801ec52: 865a strh r2, [r3, #50] @ 0x32
  75731. break;
  75732. 801ec54: e012 b.n 801ec7c <tcp_parseopt+0xbc>
  75733. }
  75734. break;
  75735. #endif /* LWIP_TCP_SACK_OUT */
  75736. default:
  75737. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n"));
  75738. data = tcp_get_next_optbyte();
  75739. 801ec56: f7ff ff7d bl 801eb54 <tcp_get_next_optbyte>
  75740. 801ec5a: 4603 mov r3, r0
  75741. 801ec5c: 72fb strb r3, [r7, #11]
  75742. if (data < 2) {
  75743. 801ec5e: 7afb ldrb r3, [r7, #11]
  75744. 801ec60: 2b01 cmp r3, #1
  75745. 801ec62: d916 bls.n 801ec92 <tcp_parseopt+0xd2>
  75746. and we don't process them further. */
  75747. return;
  75748. }
  75749. /* All other options have a length field, so that we easily
  75750. can skip past them. */
  75751. tcp_optidx += data - 2;
  75752. 801ec64: 7afb ldrb r3, [r7, #11]
  75753. 801ec66: b29a uxth r2, r3
  75754. 801ec68: 4b10 ldr r3, [pc, #64] @ (801ecac <tcp_parseopt+0xec>)
  75755. 801ec6a: 881b ldrh r3, [r3, #0]
  75756. 801ec6c: 4413 add r3, r2
  75757. 801ec6e: b29b uxth r3, r3
  75758. 801ec70: 3b02 subs r3, #2
  75759. 801ec72: b29a uxth r2, r3
  75760. 801ec74: 4b0d ldr r3, [pc, #52] @ (801ecac <tcp_parseopt+0xec>)
  75761. 801ec76: 801a strh r2, [r3, #0]
  75762. 801ec78: e000 b.n 801ec7c <tcp_parseopt+0xbc>
  75763. break;
  75764. 801ec7a: bf00 nop
  75765. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  75766. 801ec7c: 4b0b ldr r3, [pc, #44] @ (801ecac <tcp_parseopt+0xec>)
  75767. 801ec7e: 881a ldrh r2, [r3, #0]
  75768. 801ec80: 4b09 ldr r3, [pc, #36] @ (801eca8 <tcp_parseopt+0xe8>)
  75769. 801ec82: 881b ldrh r3, [r3, #0]
  75770. 801ec84: 429a cmp r2, r3
  75771. 801ec86: d3b1 bcc.n 801ebec <tcp_parseopt+0x2c>
  75772. 801ec88: e004 b.n 801ec94 <tcp_parseopt+0xd4>
  75773. return;
  75774. 801ec8a: bf00 nop
  75775. 801ec8c: e002 b.n 801ec94 <tcp_parseopt+0xd4>
  75776. return;
  75777. 801ec8e: bf00 nop
  75778. 801ec90: e000 b.n 801ec94 <tcp_parseopt+0xd4>
  75779. return;
  75780. 801ec92: bf00 nop
  75781. }
  75782. }
  75783. }
  75784. }
  75785. 801ec94: 3710 adds r7, #16
  75786. 801ec96: 46bd mov sp, r7
  75787. 801ec98: bd80 pop {r7, pc}
  75788. 801ec9a: bf00 nop
  75789. 801ec9c: 0802ed58 .word 0x0802ed58
  75790. 801eca0: 0802f1bc .word 0x0802f1bc
  75791. 801eca4: 0802eda4 .word 0x0802eda4
  75792. 801eca8: 2402aeb8 .word 0x2402aeb8
  75793. 801ecac: 2402aec0 .word 0x2402aec0
  75794. 0801ecb0 <tcp_trigger_input_pcb_close>:
  75795. void
  75796. tcp_trigger_input_pcb_close(void)
  75797. {
  75798. 801ecb0: b480 push {r7}
  75799. 801ecb2: af00 add r7, sp, #0
  75800. recv_flags |= TF_CLOSED;
  75801. 801ecb4: 4b05 ldr r3, [pc, #20] @ (801eccc <tcp_trigger_input_pcb_close+0x1c>)
  75802. 801ecb6: 781b ldrb r3, [r3, #0]
  75803. 801ecb8: f043 0310 orr.w r3, r3, #16
  75804. 801ecbc: b2da uxtb r2, r3
  75805. 801ecbe: 4b03 ldr r3, [pc, #12] @ (801eccc <tcp_trigger_input_pcb_close+0x1c>)
  75806. 801ecc0: 701a strb r2, [r3, #0]
  75807. }
  75808. 801ecc2: bf00 nop
  75809. 801ecc4: 46bd mov sp, r7
  75810. 801ecc6: f85d 7b04 ldr.w r7, [sp], #4
  75811. 801ecca: 4770 bx lr
  75812. 801eccc: 2402aed1 .word 0x2402aed1
  75813. 0801ecd0 <tcp_route>:
  75814. static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif);
  75815. /* tcp_route: common code that returns a fixed bound netif or calls ip_route */
  75816. static struct netif *
  75817. tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst)
  75818. {
  75819. 801ecd0: b580 push {r7, lr}
  75820. 801ecd2: b084 sub sp, #16
  75821. 801ecd4: af00 add r7, sp, #0
  75822. 801ecd6: 60f8 str r0, [r7, #12]
  75823. 801ecd8: 60b9 str r1, [r7, #8]
  75824. 801ecda: 607a str r2, [r7, #4]
  75825. LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */
  75826. if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) {
  75827. 801ecdc: 68fb ldr r3, [r7, #12]
  75828. 801ecde: 2b00 cmp r3, #0
  75829. 801ece0: d00a beq.n 801ecf8 <tcp_route+0x28>
  75830. 801ece2: 68fb ldr r3, [r7, #12]
  75831. 801ece4: 7a1b ldrb r3, [r3, #8]
  75832. 801ece6: 2b00 cmp r3, #0
  75833. 801ece8: d006 beq.n 801ecf8 <tcp_route+0x28>
  75834. return netif_get_by_index(pcb->netif_idx);
  75835. 801ecea: 68fb ldr r3, [r7, #12]
  75836. 801ecec: 7a1b ldrb r3, [r3, #8]
  75837. 801ecee: 4618 mov r0, r3
  75838. 801ecf0: f7fb f83c bl 8019d6c <netif_get_by_index>
  75839. 801ecf4: 4603 mov r3, r0
  75840. 801ecf6: e003 b.n 801ed00 <tcp_route+0x30>
  75841. } else {
  75842. return ip_route(src, dst);
  75843. 801ecf8: 6878 ldr r0, [r7, #4]
  75844. 801ecfa: f005 fe61 bl 80249c0 <ip4_route>
  75845. 801ecfe: 4603 mov r3, r0
  75846. }
  75847. }
  75848. 801ed00: 4618 mov r0, r3
  75849. 801ed02: 3710 adds r7, #16
  75850. 801ed04: 46bd mov sp, r7
  75851. 801ed06: bd80 pop {r7, pc}
  75852. 0801ed08 <tcp_create_segment>:
  75853. * The TCP header is filled in except ackno and wnd.
  75854. * p is freed on failure.
  75855. */
  75856. static struct tcp_seg *
  75857. tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags)
  75858. {
  75859. 801ed08: b590 push {r4, r7, lr}
  75860. 801ed0a: b087 sub sp, #28
  75861. 801ed0c: af00 add r7, sp, #0
  75862. 801ed0e: 60f8 str r0, [r7, #12]
  75863. 801ed10: 60b9 str r1, [r7, #8]
  75864. 801ed12: 603b str r3, [r7, #0]
  75865. 801ed14: 4613 mov r3, r2
  75866. 801ed16: 71fb strb r3, [r7, #7]
  75867. struct tcp_seg *seg;
  75868. u8_t optlen;
  75869. LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL);
  75870. 801ed18: 68fb ldr r3, [r7, #12]
  75871. 801ed1a: 2b00 cmp r3, #0
  75872. 801ed1c: d105 bne.n 801ed2a <tcp_create_segment+0x22>
  75873. 801ed1e: 4b45 ldr r3, [pc, #276] @ (801ee34 <tcp_create_segment+0x12c>)
  75874. 801ed20: 22a3 movs r2, #163 @ 0xa3
  75875. 801ed22: 4945 ldr r1, [pc, #276] @ (801ee38 <tcp_create_segment+0x130>)
  75876. 801ed24: 4845 ldr r0, [pc, #276] @ (801ee3c <tcp_create_segment+0x134>)
  75877. 801ed26: f00a fe59 bl 80299dc <iprintf>
  75878. LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL);
  75879. 801ed2a: 68bb ldr r3, [r7, #8]
  75880. 801ed2c: 2b00 cmp r3, #0
  75881. 801ed2e: d105 bne.n 801ed3c <tcp_create_segment+0x34>
  75882. 801ed30: 4b40 ldr r3, [pc, #256] @ (801ee34 <tcp_create_segment+0x12c>)
  75883. 801ed32: 22a4 movs r2, #164 @ 0xa4
  75884. 801ed34: 4942 ldr r1, [pc, #264] @ (801ee40 <tcp_create_segment+0x138>)
  75885. 801ed36: 4841 ldr r0, [pc, #260] @ (801ee3c <tcp_create_segment+0x134>)
  75886. 801ed38: f00a fe50 bl 80299dc <iprintf>
  75887. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  75888. 801ed3c: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  75889. 801ed40: 009b lsls r3, r3, #2
  75890. 801ed42: b2db uxtb r3, r3
  75891. 801ed44: f003 0304 and.w r3, r3, #4
  75892. 801ed48: 75fb strb r3, [r7, #23]
  75893. if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) {
  75894. 801ed4a: 2003 movs r0, #3
  75895. 801ed4c: f7fa fc6a bl 8019624 <memp_malloc>
  75896. 801ed50: 6138 str r0, [r7, #16]
  75897. 801ed52: 693b ldr r3, [r7, #16]
  75898. 801ed54: 2b00 cmp r3, #0
  75899. 801ed56: d104 bne.n 801ed62 <tcp_create_segment+0x5a>
  75900. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n"));
  75901. pbuf_free(p);
  75902. 801ed58: 68b8 ldr r0, [r7, #8]
  75903. 801ed5a: f7fb fbc7 bl 801a4ec <pbuf_free>
  75904. return NULL;
  75905. 801ed5e: 2300 movs r3, #0
  75906. 801ed60: e063 b.n 801ee2a <tcp_create_segment+0x122>
  75907. }
  75908. seg->flags = optflags;
  75909. 801ed62: 693b ldr r3, [r7, #16]
  75910. 801ed64: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  75911. 801ed68: 731a strb r2, [r3, #12]
  75912. seg->next = NULL;
  75913. 801ed6a: 693b ldr r3, [r7, #16]
  75914. 801ed6c: 2200 movs r2, #0
  75915. 801ed6e: 601a str r2, [r3, #0]
  75916. seg->p = p;
  75917. 801ed70: 693b ldr r3, [r7, #16]
  75918. 801ed72: 68ba ldr r2, [r7, #8]
  75919. 801ed74: 605a str r2, [r3, #4]
  75920. LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen);
  75921. 801ed76: 68bb ldr r3, [r7, #8]
  75922. 801ed78: 891a ldrh r2, [r3, #8]
  75923. 801ed7a: 7dfb ldrb r3, [r7, #23]
  75924. 801ed7c: b29b uxth r3, r3
  75925. 801ed7e: 429a cmp r2, r3
  75926. 801ed80: d205 bcs.n 801ed8e <tcp_create_segment+0x86>
  75927. 801ed82: 4b2c ldr r3, [pc, #176] @ (801ee34 <tcp_create_segment+0x12c>)
  75928. 801ed84: 22b0 movs r2, #176 @ 0xb0
  75929. 801ed86: 492f ldr r1, [pc, #188] @ (801ee44 <tcp_create_segment+0x13c>)
  75930. 801ed88: 482c ldr r0, [pc, #176] @ (801ee3c <tcp_create_segment+0x134>)
  75931. 801ed8a: f00a fe27 bl 80299dc <iprintf>
  75932. seg->len = p->tot_len - optlen;
  75933. 801ed8e: 68bb ldr r3, [r7, #8]
  75934. 801ed90: 891a ldrh r2, [r3, #8]
  75935. 801ed92: 7dfb ldrb r3, [r7, #23]
  75936. 801ed94: b29b uxth r3, r3
  75937. 801ed96: 1ad3 subs r3, r2, r3
  75938. 801ed98: b29a uxth r2, r3
  75939. 801ed9a: 693b ldr r3, [r7, #16]
  75940. 801ed9c: 811a strh r2, [r3, #8]
  75941. #if TCP_OVERSIZE_DBGCHECK
  75942. seg->oversize_left = 0;
  75943. 801ed9e: 693b ldr r3, [r7, #16]
  75944. 801eda0: 2200 movs r2, #0
  75945. 801eda2: 815a strh r2, [r3, #10]
  75946. LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED",
  75947. (optflags & TF_SEG_DATA_CHECKSUMMED) == 0);
  75948. #endif /* TCP_CHECKSUM_ON_COPY */
  75949. /* build TCP header */
  75950. if (pbuf_add_header(p, TCP_HLEN)) {
  75951. 801eda4: 2114 movs r1, #20
  75952. 801eda6: 68b8 ldr r0, [r7, #8]
  75953. 801eda8: f7fb fad8 bl 801a35c <pbuf_add_header>
  75954. 801edac: 4603 mov r3, r0
  75955. 801edae: 2b00 cmp r3, #0
  75956. 801edb0: d004 beq.n 801edbc <tcp_create_segment+0xb4>
  75957. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no room for TCP header in pbuf.\n"));
  75958. TCP_STATS_INC(tcp.err);
  75959. tcp_seg_free(seg);
  75960. 801edb2: 6938 ldr r0, [r7, #16]
  75961. 801edb4: f7fc fff3 bl 801bd9e <tcp_seg_free>
  75962. return NULL;
  75963. 801edb8: 2300 movs r3, #0
  75964. 801edba: e036 b.n 801ee2a <tcp_create_segment+0x122>
  75965. }
  75966. seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
  75967. 801edbc: 693b ldr r3, [r7, #16]
  75968. 801edbe: 685b ldr r3, [r3, #4]
  75969. 801edc0: 685a ldr r2, [r3, #4]
  75970. 801edc2: 693b ldr r3, [r7, #16]
  75971. 801edc4: 611a str r2, [r3, #16]
  75972. seg->tcphdr->src = lwip_htons(pcb->local_port);
  75973. 801edc6: 68fb ldr r3, [r7, #12]
  75974. 801edc8: 8ada ldrh r2, [r3, #22]
  75975. 801edca: 693b ldr r3, [r7, #16]
  75976. 801edcc: 691c ldr r4, [r3, #16]
  75977. 801edce: 4610 mov r0, r2
  75978. 801edd0: f7f9 feaa bl 8018b28 <lwip_htons>
  75979. 801edd4: 4603 mov r3, r0
  75980. 801edd6: 8023 strh r3, [r4, #0]
  75981. seg->tcphdr->dest = lwip_htons(pcb->remote_port);
  75982. 801edd8: 68fb ldr r3, [r7, #12]
  75983. 801edda: 8b1a ldrh r2, [r3, #24]
  75984. 801eddc: 693b ldr r3, [r7, #16]
  75985. 801edde: 691c ldr r4, [r3, #16]
  75986. 801ede0: 4610 mov r0, r2
  75987. 801ede2: f7f9 fea1 bl 8018b28 <lwip_htons>
  75988. 801ede6: 4603 mov r3, r0
  75989. 801ede8: 8063 strh r3, [r4, #2]
  75990. seg->tcphdr->seqno = lwip_htonl(seqno);
  75991. 801edea: 693b ldr r3, [r7, #16]
  75992. 801edec: 691c ldr r4, [r3, #16]
  75993. 801edee: 6838 ldr r0, [r7, #0]
  75994. 801edf0: f7f9 feaf bl 8018b52 <lwip_htonl>
  75995. 801edf4: 4603 mov r3, r0
  75996. 801edf6: 6063 str r3, [r4, #4]
  75997. /* ackno is set in tcp_output */
  75998. TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags);
  75999. 801edf8: 7dfb ldrb r3, [r7, #23]
  76000. 801edfa: 089b lsrs r3, r3, #2
  76001. 801edfc: b2db uxtb r3, r3
  76002. 801edfe: 3305 adds r3, #5
  76003. 801ee00: b29b uxth r3, r3
  76004. 801ee02: 031b lsls r3, r3, #12
  76005. 801ee04: b29a uxth r2, r3
  76006. 801ee06: 79fb ldrb r3, [r7, #7]
  76007. 801ee08: b29b uxth r3, r3
  76008. 801ee0a: 4313 orrs r3, r2
  76009. 801ee0c: b29a uxth r2, r3
  76010. 801ee0e: 693b ldr r3, [r7, #16]
  76011. 801ee10: 691c ldr r4, [r3, #16]
  76012. 801ee12: 4610 mov r0, r2
  76013. 801ee14: f7f9 fe88 bl 8018b28 <lwip_htons>
  76014. 801ee18: 4603 mov r3, r0
  76015. 801ee1a: 81a3 strh r3, [r4, #12]
  76016. /* wnd and chksum are set in tcp_output */
  76017. seg->tcphdr->urgp = 0;
  76018. 801ee1c: 693b ldr r3, [r7, #16]
  76019. 801ee1e: 691b ldr r3, [r3, #16]
  76020. 801ee20: 2200 movs r2, #0
  76021. 801ee22: 749a strb r2, [r3, #18]
  76022. 801ee24: 2200 movs r2, #0
  76023. 801ee26: 74da strb r2, [r3, #19]
  76024. return seg;
  76025. 801ee28: 693b ldr r3, [r7, #16]
  76026. }
  76027. 801ee2a: 4618 mov r0, r3
  76028. 801ee2c: 371c adds r7, #28
  76029. 801ee2e: 46bd mov sp, r7
  76030. 801ee30: bd90 pop {r4, r7, pc}
  76031. 801ee32: bf00 nop
  76032. 801ee34: 0802f1d8 .word 0x0802f1d8
  76033. 801ee38: 0802f20c .word 0x0802f20c
  76034. 801ee3c: 0802f22c .word 0x0802f22c
  76035. 801ee40: 0802f254 .word 0x0802f254
  76036. 801ee44: 0802f278 .word 0x0802f278
  76037. 0801ee48 <tcp_pbuf_prealloc>:
  76038. #if TCP_OVERSIZE
  76039. static struct pbuf *
  76040. tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
  76041. u16_t *oversize, const struct tcp_pcb *pcb, u8_t apiflags,
  76042. u8_t first_seg)
  76043. {
  76044. 801ee48: b580 push {r7, lr}
  76045. 801ee4a: b086 sub sp, #24
  76046. 801ee4c: af00 add r7, sp, #0
  76047. 801ee4e: 607b str r3, [r7, #4]
  76048. 801ee50: 4603 mov r3, r0
  76049. 801ee52: 73fb strb r3, [r7, #15]
  76050. 801ee54: 460b mov r3, r1
  76051. 801ee56: 81bb strh r3, [r7, #12]
  76052. 801ee58: 4613 mov r3, r2
  76053. 801ee5a: 817b strh r3, [r7, #10]
  76054. struct pbuf *p;
  76055. u16_t alloc = length;
  76056. 801ee5c: 89bb ldrh r3, [r7, #12]
  76057. 801ee5e: 82fb strh r3, [r7, #22]
  76058. LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL);
  76059. 801ee60: 687b ldr r3, [r7, #4]
  76060. 801ee62: 2b00 cmp r3, #0
  76061. 801ee64: d105 bne.n 801ee72 <tcp_pbuf_prealloc+0x2a>
  76062. 801ee66: 4b30 ldr r3, [pc, #192] @ (801ef28 <tcp_pbuf_prealloc+0xe0>)
  76063. 801ee68: 22e8 movs r2, #232 @ 0xe8
  76064. 801ee6a: 4930 ldr r1, [pc, #192] @ (801ef2c <tcp_pbuf_prealloc+0xe4>)
  76065. 801ee6c: 4830 ldr r0, [pc, #192] @ (801ef30 <tcp_pbuf_prealloc+0xe8>)
  76066. 801ee6e: f00a fdb5 bl 80299dc <iprintf>
  76067. LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL);
  76068. 801ee72: 6a3b ldr r3, [r7, #32]
  76069. 801ee74: 2b00 cmp r3, #0
  76070. 801ee76: d105 bne.n 801ee84 <tcp_pbuf_prealloc+0x3c>
  76071. 801ee78: 4b2b ldr r3, [pc, #172] @ (801ef28 <tcp_pbuf_prealloc+0xe0>)
  76072. 801ee7a: 22e9 movs r2, #233 @ 0xe9
  76073. 801ee7c: 492d ldr r1, [pc, #180] @ (801ef34 <tcp_pbuf_prealloc+0xec>)
  76074. 801ee7e: 482c ldr r0, [pc, #176] @ (801ef30 <tcp_pbuf_prealloc+0xe8>)
  76075. 801ee80: f00a fdac bl 80299dc <iprintf>
  76076. LWIP_UNUSED_ARG(pcb);
  76077. LWIP_UNUSED_ARG(apiflags);
  76078. LWIP_UNUSED_ARG(first_seg);
  76079. alloc = max_length;
  76080. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  76081. if (length < max_length) {
  76082. 801ee84: 89ba ldrh r2, [r7, #12]
  76083. 801ee86: 897b ldrh r3, [r7, #10]
  76084. 801ee88: 429a cmp r2, r3
  76085. 801ee8a: d221 bcs.n 801eed0 <tcp_pbuf_prealloc+0x88>
  76086. *
  76087. * Did the user set TCP_WRITE_FLAG_MORE?
  76088. *
  76089. * Will the Nagle algorithm defer transmission of this segment?
  76090. */
  76091. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  76092. 801ee8c: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  76093. 801ee90: f003 0302 and.w r3, r3, #2
  76094. 801ee94: 2b00 cmp r3, #0
  76095. 801ee96: d111 bne.n 801eebc <tcp_pbuf_prealloc+0x74>
  76096. (!(pcb->flags & TF_NODELAY) &&
  76097. 801ee98: 6a3b ldr r3, [r7, #32]
  76098. 801ee9a: 8b5b ldrh r3, [r3, #26]
  76099. 801ee9c: f003 0340 and.w r3, r3, #64 @ 0x40
  76100. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  76101. 801eea0: 2b00 cmp r3, #0
  76102. 801eea2: d115 bne.n 801eed0 <tcp_pbuf_prealloc+0x88>
  76103. (!(pcb->flags & TF_NODELAY) &&
  76104. 801eea4: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  76105. 801eea8: 2b00 cmp r3, #0
  76106. 801eeaa: d007 beq.n 801eebc <tcp_pbuf_prealloc+0x74>
  76107. (!first_seg ||
  76108. pcb->unsent != NULL ||
  76109. 801eeac: 6a3b ldr r3, [r7, #32]
  76110. 801eeae: 6edb ldr r3, [r3, #108] @ 0x6c
  76111. (!first_seg ||
  76112. 801eeb0: 2b00 cmp r3, #0
  76113. 801eeb2: d103 bne.n 801eebc <tcp_pbuf_prealloc+0x74>
  76114. pcb->unacked != NULL))) {
  76115. 801eeb4: 6a3b ldr r3, [r7, #32]
  76116. 801eeb6: 6f1b ldr r3, [r3, #112] @ 0x70
  76117. pcb->unsent != NULL ||
  76118. 801eeb8: 2b00 cmp r3, #0
  76119. 801eeba: d009 beq.n 801eed0 <tcp_pbuf_prealloc+0x88>
  76120. alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length)));
  76121. 801eebc: 89bb ldrh r3, [r7, #12]
  76122. 801eebe: f203 53b7 addw r3, r3, #1463 @ 0x5b7
  76123. 801eec2: f023 0203 bic.w r2, r3, #3
  76124. 801eec6: 897b ldrh r3, [r7, #10]
  76125. 801eec8: 4293 cmp r3, r2
  76126. 801eeca: bf28 it cs
  76127. 801eecc: 4613 movcs r3, r2
  76128. 801eece: 82fb strh r3, [r7, #22]
  76129. }
  76130. }
  76131. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  76132. p = pbuf_alloc(layer, alloc, PBUF_RAM);
  76133. 801eed0: 8af9 ldrh r1, [r7, #22]
  76134. 801eed2: 7bfb ldrb r3, [r7, #15]
  76135. 801eed4: f44f 7220 mov.w r2, #640 @ 0x280
  76136. 801eed8: 4618 mov r0, r3
  76137. 801eeda: f7fa fff1 bl 8019ec0 <pbuf_alloc>
  76138. 801eede: 6138 str r0, [r7, #16]
  76139. if (p == NULL) {
  76140. 801eee0: 693b ldr r3, [r7, #16]
  76141. 801eee2: 2b00 cmp r3, #0
  76142. 801eee4: d101 bne.n 801eeea <tcp_pbuf_prealloc+0xa2>
  76143. return NULL;
  76144. 801eee6: 2300 movs r3, #0
  76145. 801eee8: e019 b.n 801ef1e <tcp_pbuf_prealloc+0xd6>
  76146. }
  76147. LWIP_ASSERT("need unchained pbuf", p->next == NULL);
  76148. 801eeea: 693b ldr r3, [r7, #16]
  76149. 801eeec: 681b ldr r3, [r3, #0]
  76150. 801eeee: 2b00 cmp r3, #0
  76151. 801eef0: d006 beq.n 801ef00 <tcp_pbuf_prealloc+0xb8>
  76152. 801eef2: 4b0d ldr r3, [pc, #52] @ (801ef28 <tcp_pbuf_prealloc+0xe0>)
  76153. 801eef4: f240 120b movw r2, #267 @ 0x10b
  76154. 801eef8: 490f ldr r1, [pc, #60] @ (801ef38 <tcp_pbuf_prealloc+0xf0>)
  76155. 801eefa: 480d ldr r0, [pc, #52] @ (801ef30 <tcp_pbuf_prealloc+0xe8>)
  76156. 801eefc: f00a fd6e bl 80299dc <iprintf>
  76157. *oversize = p->len - length;
  76158. 801ef00: 693b ldr r3, [r7, #16]
  76159. 801ef02: 895a ldrh r2, [r3, #10]
  76160. 801ef04: 89bb ldrh r3, [r7, #12]
  76161. 801ef06: 1ad3 subs r3, r2, r3
  76162. 801ef08: b29a uxth r2, r3
  76163. 801ef0a: 687b ldr r3, [r7, #4]
  76164. 801ef0c: 801a strh r2, [r3, #0]
  76165. /* trim p->len to the currently used size */
  76166. p->len = p->tot_len = length;
  76167. 801ef0e: 693b ldr r3, [r7, #16]
  76168. 801ef10: 89ba ldrh r2, [r7, #12]
  76169. 801ef12: 811a strh r2, [r3, #8]
  76170. 801ef14: 693b ldr r3, [r7, #16]
  76171. 801ef16: 891a ldrh r2, [r3, #8]
  76172. 801ef18: 693b ldr r3, [r7, #16]
  76173. 801ef1a: 815a strh r2, [r3, #10]
  76174. return p;
  76175. 801ef1c: 693b ldr r3, [r7, #16]
  76176. }
  76177. 801ef1e: 4618 mov r0, r3
  76178. 801ef20: 3718 adds r7, #24
  76179. 801ef22: 46bd mov sp, r7
  76180. 801ef24: bd80 pop {r7, pc}
  76181. 801ef26: bf00 nop
  76182. 801ef28: 0802f1d8 .word 0x0802f1d8
  76183. 801ef2c: 0802f290 .word 0x0802f290
  76184. 801ef30: 0802f22c .word 0x0802f22c
  76185. 801ef34: 0802f2b4 .word 0x0802f2b4
  76186. 801ef38: 0802f2d4 .word 0x0802f2d4
  76187. 0801ef3c <tcp_write_checks>:
  76188. * @param len length of data to send (checked agains snd_buf)
  76189. * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise
  76190. */
  76191. static err_t
  76192. tcp_write_checks(struct tcp_pcb *pcb, u16_t len)
  76193. {
  76194. 801ef3c: b580 push {r7, lr}
  76195. 801ef3e: b082 sub sp, #8
  76196. 801ef40: af00 add r7, sp, #0
  76197. 801ef42: 6078 str r0, [r7, #4]
  76198. 801ef44: 460b mov r3, r1
  76199. 801ef46: 807b strh r3, [r7, #2]
  76200. LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL);
  76201. 801ef48: 687b ldr r3, [r7, #4]
  76202. 801ef4a: 2b00 cmp r3, #0
  76203. 801ef4c: d106 bne.n 801ef5c <tcp_write_checks+0x20>
  76204. 801ef4e: 4b33 ldr r3, [pc, #204] @ (801f01c <tcp_write_checks+0xe0>)
  76205. 801ef50: f240 1233 movw r2, #307 @ 0x133
  76206. 801ef54: 4932 ldr r1, [pc, #200] @ (801f020 <tcp_write_checks+0xe4>)
  76207. 801ef56: 4833 ldr r0, [pc, #204] @ (801f024 <tcp_write_checks+0xe8>)
  76208. 801ef58: f00a fd40 bl 80299dc <iprintf>
  76209. /* connection is in invalid state for data transmission? */
  76210. if ((pcb->state != ESTABLISHED) &&
  76211. 801ef5c: 687b ldr r3, [r7, #4]
  76212. 801ef5e: 7d1b ldrb r3, [r3, #20]
  76213. 801ef60: 2b04 cmp r3, #4
  76214. 801ef62: d00e beq.n 801ef82 <tcp_write_checks+0x46>
  76215. (pcb->state != CLOSE_WAIT) &&
  76216. 801ef64: 687b ldr r3, [r7, #4]
  76217. 801ef66: 7d1b ldrb r3, [r3, #20]
  76218. if ((pcb->state != ESTABLISHED) &&
  76219. 801ef68: 2b07 cmp r3, #7
  76220. 801ef6a: d00a beq.n 801ef82 <tcp_write_checks+0x46>
  76221. (pcb->state != SYN_SENT) &&
  76222. 801ef6c: 687b ldr r3, [r7, #4]
  76223. 801ef6e: 7d1b ldrb r3, [r3, #20]
  76224. (pcb->state != CLOSE_WAIT) &&
  76225. 801ef70: 2b02 cmp r3, #2
  76226. 801ef72: d006 beq.n 801ef82 <tcp_write_checks+0x46>
  76227. (pcb->state != SYN_RCVD)) {
  76228. 801ef74: 687b ldr r3, [r7, #4]
  76229. 801ef76: 7d1b ldrb r3, [r3, #20]
  76230. (pcb->state != SYN_SENT) &&
  76231. 801ef78: 2b03 cmp r3, #3
  76232. 801ef7a: d002 beq.n 801ef82 <tcp_write_checks+0x46>
  76233. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n"));
  76234. return ERR_CONN;
  76235. 801ef7c: f06f 030a mvn.w r3, #10
  76236. 801ef80: e048 b.n 801f014 <tcp_write_checks+0xd8>
  76237. } else if (len == 0) {
  76238. 801ef82: 887b ldrh r3, [r7, #2]
  76239. 801ef84: 2b00 cmp r3, #0
  76240. 801ef86: d101 bne.n 801ef8c <tcp_write_checks+0x50>
  76241. return ERR_OK;
  76242. 801ef88: 2300 movs r3, #0
  76243. 801ef8a: e043 b.n 801f014 <tcp_write_checks+0xd8>
  76244. }
  76245. /* fail on too much data */
  76246. if (len > pcb->snd_buf) {
  76247. 801ef8c: 687b ldr r3, [r7, #4]
  76248. 801ef8e: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  76249. 801ef92: 887a ldrh r2, [r7, #2]
  76250. 801ef94: 429a cmp r2, r3
  76251. 801ef96: d909 bls.n 801efac <tcp_write_checks+0x70>
  76252. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n",
  76253. len, pcb->snd_buf));
  76254. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  76255. 801ef98: 687b ldr r3, [r7, #4]
  76256. 801ef9a: 8b5b ldrh r3, [r3, #26]
  76257. 801ef9c: f043 0380 orr.w r3, r3, #128 @ 0x80
  76258. 801efa0: b29a uxth r2, r3
  76259. 801efa2: 687b ldr r3, [r7, #4]
  76260. 801efa4: 835a strh r2, [r3, #26]
  76261. return ERR_MEM;
  76262. 801efa6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  76263. 801efaa: e033 b.n 801f014 <tcp_write_checks+0xd8>
  76264. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  76265. /* If total number of pbufs on the unsent/unacked queues exceeds the
  76266. * configured maximum, return an error */
  76267. /* check for configured max queuelen and possible overflow */
  76268. if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) {
  76269. 801efac: 687b ldr r3, [r7, #4]
  76270. 801efae: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76271. 801efb2: 2b0f cmp r3, #15
  76272. 801efb4: d909 bls.n 801efca <tcp_write_checks+0x8e>
  76273. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n",
  76274. pcb->snd_queuelen, (u16_t)TCP_SND_QUEUELEN));
  76275. TCP_STATS_INC(tcp.memerr);
  76276. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  76277. 801efb6: 687b ldr r3, [r7, #4]
  76278. 801efb8: 8b5b ldrh r3, [r3, #26]
  76279. 801efba: f043 0380 orr.w r3, r3, #128 @ 0x80
  76280. 801efbe: b29a uxth r2, r3
  76281. 801efc0: 687b ldr r3, [r7, #4]
  76282. 801efc2: 835a strh r2, [r3, #26]
  76283. return ERR_MEM;
  76284. 801efc4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  76285. 801efc8: e024 b.n 801f014 <tcp_write_checks+0xd8>
  76286. }
  76287. if (pcb->snd_queuelen != 0) {
  76288. 801efca: 687b ldr r3, [r7, #4]
  76289. 801efcc: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76290. 801efd0: 2b00 cmp r3, #0
  76291. 801efd2: d00f beq.n 801eff4 <tcp_write_checks+0xb8>
  76292. LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty",
  76293. 801efd4: 687b ldr r3, [r7, #4]
  76294. 801efd6: 6f1b ldr r3, [r3, #112] @ 0x70
  76295. 801efd8: 2b00 cmp r3, #0
  76296. 801efda: d11a bne.n 801f012 <tcp_write_checks+0xd6>
  76297. 801efdc: 687b ldr r3, [r7, #4]
  76298. 801efde: 6edb ldr r3, [r3, #108] @ 0x6c
  76299. 801efe0: 2b00 cmp r3, #0
  76300. 801efe2: d116 bne.n 801f012 <tcp_write_checks+0xd6>
  76301. 801efe4: 4b0d ldr r3, [pc, #52] @ (801f01c <tcp_write_checks+0xe0>)
  76302. 801efe6: f240 1255 movw r2, #341 @ 0x155
  76303. 801efea: 490f ldr r1, [pc, #60] @ (801f028 <tcp_write_checks+0xec>)
  76304. 801efec: 480d ldr r0, [pc, #52] @ (801f024 <tcp_write_checks+0xe8>)
  76305. 801efee: f00a fcf5 bl 80299dc <iprintf>
  76306. 801eff2: e00e b.n 801f012 <tcp_write_checks+0xd6>
  76307. pcb->unacked != NULL || pcb->unsent != NULL);
  76308. } else {
  76309. LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty",
  76310. 801eff4: 687b ldr r3, [r7, #4]
  76311. 801eff6: 6f1b ldr r3, [r3, #112] @ 0x70
  76312. 801eff8: 2b00 cmp r3, #0
  76313. 801effa: d103 bne.n 801f004 <tcp_write_checks+0xc8>
  76314. 801effc: 687b ldr r3, [r7, #4]
  76315. 801effe: 6edb ldr r3, [r3, #108] @ 0x6c
  76316. 801f000: 2b00 cmp r3, #0
  76317. 801f002: d006 beq.n 801f012 <tcp_write_checks+0xd6>
  76318. 801f004: 4b05 ldr r3, [pc, #20] @ (801f01c <tcp_write_checks+0xe0>)
  76319. 801f006: f44f 72ac mov.w r2, #344 @ 0x158
  76320. 801f00a: 4908 ldr r1, [pc, #32] @ (801f02c <tcp_write_checks+0xf0>)
  76321. 801f00c: 4805 ldr r0, [pc, #20] @ (801f024 <tcp_write_checks+0xe8>)
  76322. 801f00e: f00a fce5 bl 80299dc <iprintf>
  76323. pcb->unacked == NULL && pcb->unsent == NULL);
  76324. }
  76325. return ERR_OK;
  76326. 801f012: 2300 movs r3, #0
  76327. }
  76328. 801f014: 4618 mov r0, r3
  76329. 801f016: 3708 adds r7, #8
  76330. 801f018: 46bd mov sp, r7
  76331. 801f01a: bd80 pop {r7, pc}
  76332. 801f01c: 0802f1d8 .word 0x0802f1d8
  76333. 801f020: 0802f2e8 .word 0x0802f2e8
  76334. 801f024: 0802f22c .word 0x0802f22c
  76335. 801f028: 0802f308 .word 0x0802f308
  76336. 801f02c: 0802f344 .word 0x0802f344
  76337. 0801f030 <tcp_write>:
  76338. * - TCP_WRITE_FLAG_MORE (0x02) for TCP connection, PSH flag will not be set on last segment sent,
  76339. * @return ERR_OK if enqueued, another err_t on error
  76340. */
  76341. err_t
  76342. tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
  76343. {
  76344. 801f030: b590 push {r4, r7, lr}
  76345. 801f032: b09d sub sp, #116 @ 0x74
  76346. 801f034: af04 add r7, sp, #16
  76347. 801f036: 60f8 str r0, [r7, #12]
  76348. 801f038: 60b9 str r1, [r7, #8]
  76349. 801f03a: 4611 mov r1, r2
  76350. 801f03c: 461a mov r2, r3
  76351. 801f03e: 460b mov r3, r1
  76352. 801f040: 80fb strh r3, [r7, #6]
  76353. 801f042: 4613 mov r3, r2
  76354. 801f044: 717b strb r3, [r7, #5]
  76355. struct pbuf *concat_p = NULL;
  76356. 801f046: 2300 movs r3, #0
  76357. 801f048: 63fb str r3, [r7, #60] @ 0x3c
  76358. struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL;
  76359. 801f04a: 2300 movs r3, #0
  76360. 801f04c: 643b str r3, [r7, #64] @ 0x40
  76361. 801f04e: 2300 movs r3, #0
  76362. 801f050: 657b str r3, [r7, #84] @ 0x54
  76363. 801f052: 2300 movs r3, #0
  76364. 801f054: 653b str r3, [r7, #80] @ 0x50
  76365. 801f056: 2300 movs r3, #0
  76366. 801f058: 64fb str r3, [r7, #76] @ 0x4c
  76367. u16_t pos = 0; /* position in 'arg' data */
  76368. 801f05a: 2300 movs r3, #0
  76369. 801f05c: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  76370. u16_t queuelen;
  76371. u8_t optlen;
  76372. u8_t optflags = 0;
  76373. 801f060: 2300 movs r3, #0
  76374. 801f062: f887 302b strb.w r3, [r7, #43] @ 0x2b
  76375. #if TCP_OVERSIZE
  76376. u16_t oversize = 0;
  76377. 801f066: 2300 movs r3, #0
  76378. 801f068: 82fb strh r3, [r7, #22]
  76379. u16_t oversize_used = 0;
  76380. 801f06a: 2300 movs r3, #0
  76381. 801f06c: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  76382. #if TCP_OVERSIZE_DBGCHECK
  76383. u16_t oversize_add = 0;
  76384. 801f070: 2300 movs r3, #0
  76385. 801f072: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  76386. #endif /* TCP_OVERSIZE_DBGCHECK*/
  76387. #endif /* TCP_OVERSIZE */
  76388. u16_t extendlen = 0;
  76389. 801f076: 2300 movs r3, #0
  76390. 801f078: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  76391. u16_t concat_chksummed = 0;
  76392. #endif /* TCP_CHECKSUM_ON_COPY */
  76393. err_t err;
  76394. u16_t mss_local;
  76395. LWIP_ERROR("tcp_write: invalid pcb", pcb != NULL, return ERR_ARG);
  76396. 801f07c: 68fb ldr r3, [r7, #12]
  76397. 801f07e: 2b00 cmp r3, #0
  76398. 801f080: d109 bne.n 801f096 <tcp_write+0x66>
  76399. 801f082: 4b9d ldr r3, [pc, #628] @ (801f2f8 <tcp_write+0x2c8>)
  76400. 801f084: f44f 72cf mov.w r2, #414 @ 0x19e
  76401. 801f088: 499c ldr r1, [pc, #624] @ (801f2fc <tcp_write+0x2cc>)
  76402. 801f08a: 489d ldr r0, [pc, #628] @ (801f300 <tcp_write+0x2d0>)
  76403. 801f08c: f00a fca6 bl 80299dc <iprintf>
  76404. 801f090: f06f 030f mvn.w r3, #15
  76405. 801f094: e37b b.n 801f78e <tcp_write+0x75e>
  76406. /* don't allocate segments bigger than half the maximum window we ever received */
  76407. mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2));
  76408. 801f096: 68fb ldr r3, [r7, #12]
  76409. 801f098: f8b3 3062 ldrh.w r3, [r3, #98] @ 0x62
  76410. 801f09c: 085b lsrs r3, r3, #1
  76411. 801f09e: b29a uxth r2, r3
  76412. 801f0a0: 68fb ldr r3, [r7, #12]
  76413. 801f0a2: 8e5b ldrh r3, [r3, #50] @ 0x32
  76414. 801f0a4: 4293 cmp r3, r2
  76415. 801f0a6: bf28 it cs
  76416. 801f0a8: 4613 movcs r3, r2
  76417. 801f0aa: 853b strh r3, [r7, #40] @ 0x28
  76418. mss_local = mss_local ? mss_local : pcb->mss;
  76419. 801f0ac: 8d3b ldrh r3, [r7, #40] @ 0x28
  76420. 801f0ae: 2b00 cmp r3, #0
  76421. 801f0b0: d102 bne.n 801f0b8 <tcp_write+0x88>
  76422. 801f0b2: 68fb ldr r3, [r7, #12]
  76423. 801f0b4: 8e5b ldrh r3, [r3, #50] @ 0x32
  76424. 801f0b6: e000 b.n 801f0ba <tcp_write+0x8a>
  76425. 801f0b8: 8d3b ldrh r3, [r7, #40] @ 0x28
  76426. 801f0ba: 853b strh r3, [r7, #40] @ 0x28
  76427. LWIP_ASSERT_CORE_LOCKED();
  76428. 801f0bc: f7f1 fa42 bl 8010544 <sys_check_core_locking>
  76429. apiflags |= TCP_WRITE_FLAG_COPY;
  76430. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  76431. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n",
  76432. (void *)pcb, arg, len, (u16_t)apiflags));
  76433. LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)",
  76434. 801f0c0: 68bb ldr r3, [r7, #8]
  76435. 801f0c2: 2b00 cmp r3, #0
  76436. 801f0c4: d109 bne.n 801f0da <tcp_write+0xaa>
  76437. 801f0c6: 4b8c ldr r3, [pc, #560] @ (801f2f8 <tcp_write+0x2c8>)
  76438. 801f0c8: f240 12ad movw r2, #429 @ 0x1ad
  76439. 801f0cc: 498d ldr r1, [pc, #564] @ (801f304 <tcp_write+0x2d4>)
  76440. 801f0ce: 488c ldr r0, [pc, #560] @ (801f300 <tcp_write+0x2d0>)
  76441. 801f0d0: f00a fc84 bl 80299dc <iprintf>
  76442. 801f0d4: f06f 030f mvn.w r3, #15
  76443. 801f0d8: e359 b.n 801f78e <tcp_write+0x75e>
  76444. arg != NULL, return ERR_ARG;);
  76445. err = tcp_write_checks(pcb, len);
  76446. 801f0da: 88fb ldrh r3, [r7, #6]
  76447. 801f0dc: 4619 mov r1, r3
  76448. 801f0de: 68f8 ldr r0, [r7, #12]
  76449. 801f0e0: f7ff ff2c bl 801ef3c <tcp_write_checks>
  76450. 801f0e4: 4603 mov r3, r0
  76451. 801f0e6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  76452. if (err != ERR_OK) {
  76453. 801f0ea: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  76454. 801f0ee: 2b00 cmp r3, #0
  76455. 801f0f0: d002 beq.n 801f0f8 <tcp_write+0xc8>
  76456. return err;
  76457. 801f0f2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  76458. 801f0f6: e34a b.n 801f78e <tcp_write+0x75e>
  76459. }
  76460. queuelen = pcb->snd_queuelen;
  76461. 801f0f8: 68fb ldr r3, [r7, #12]
  76462. 801f0fa: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  76463. 801f0fe: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  76464. /* ensure that segments can hold at least one data byte... */
  76465. mss_local = LWIP_MAX(mss_local, LWIP_TCP_OPT_LEN_TS + 1);
  76466. } else
  76467. #endif /* LWIP_TCP_TIMESTAMPS */
  76468. {
  76469. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  76470. 801f102: 2300 movs r3, #0
  76471. 801f104: f887 3026 strb.w r3, [r7, #38] @ 0x26
  76472. *
  76473. * pos records progress as data is segmented.
  76474. */
  76475. /* Find the tail of the unsent queue. */
  76476. if (pcb->unsent != NULL) {
  76477. 801f108: 68fb ldr r3, [r7, #12]
  76478. 801f10a: 6edb ldr r3, [r3, #108] @ 0x6c
  76479. 801f10c: 2b00 cmp r3, #0
  76480. 801f10e: f000 8127 beq.w 801f360 <tcp_write+0x330>
  76481. u16_t space;
  76482. u16_t unsent_optlen;
  76483. /* @todo: this could be sped up by keeping last_unsent in the pcb */
  76484. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  76485. 801f112: 68fb ldr r3, [r7, #12]
  76486. 801f114: 6edb ldr r3, [r3, #108] @ 0x6c
  76487. 801f116: 643b str r3, [r7, #64] @ 0x40
  76488. 801f118: e002 b.n 801f120 <tcp_write+0xf0>
  76489. last_unsent = last_unsent->next);
  76490. 801f11a: 6c3b ldr r3, [r7, #64] @ 0x40
  76491. 801f11c: 681b ldr r3, [r3, #0]
  76492. 801f11e: 643b str r3, [r7, #64] @ 0x40
  76493. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  76494. 801f120: 6c3b ldr r3, [r7, #64] @ 0x40
  76495. 801f122: 681b ldr r3, [r3, #0]
  76496. 801f124: 2b00 cmp r3, #0
  76497. 801f126: d1f8 bne.n 801f11a <tcp_write+0xea>
  76498. /* Usable space at the end of the last unsent segment */
  76499. unsent_optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(last_unsent->flags, pcb);
  76500. 801f128: 6c3b ldr r3, [r7, #64] @ 0x40
  76501. 801f12a: 7b1b ldrb r3, [r3, #12]
  76502. 801f12c: 009b lsls r3, r3, #2
  76503. 801f12e: b29b uxth r3, r3
  76504. 801f130: f003 0304 and.w r3, r3, #4
  76505. 801f134: 84bb strh r3, [r7, #36] @ 0x24
  76506. LWIP_ASSERT("mss_local is too small", mss_local >= last_unsent->len + unsent_optlen);
  76507. 801f136: 8d3a ldrh r2, [r7, #40] @ 0x28
  76508. 801f138: 6c3b ldr r3, [r7, #64] @ 0x40
  76509. 801f13a: 891b ldrh r3, [r3, #8]
  76510. 801f13c: 4619 mov r1, r3
  76511. 801f13e: 8cbb ldrh r3, [r7, #36] @ 0x24
  76512. 801f140: 440b add r3, r1
  76513. 801f142: 429a cmp r2, r3
  76514. 801f144: da06 bge.n 801f154 <tcp_write+0x124>
  76515. 801f146: 4b6c ldr r3, [pc, #432] @ (801f2f8 <tcp_write+0x2c8>)
  76516. 801f148: f44f 72f3 mov.w r2, #486 @ 0x1e6
  76517. 801f14c: 496e ldr r1, [pc, #440] @ (801f308 <tcp_write+0x2d8>)
  76518. 801f14e: 486c ldr r0, [pc, #432] @ (801f300 <tcp_write+0x2d0>)
  76519. 801f150: f00a fc44 bl 80299dc <iprintf>
  76520. space = mss_local - (last_unsent->len + unsent_optlen);
  76521. 801f154: 6c3b ldr r3, [r7, #64] @ 0x40
  76522. 801f156: 891a ldrh r2, [r3, #8]
  76523. 801f158: 8cbb ldrh r3, [r7, #36] @ 0x24
  76524. 801f15a: 4413 add r3, r2
  76525. 801f15c: b29b uxth r3, r3
  76526. 801f15e: 8d3a ldrh r2, [r7, #40] @ 0x28
  76527. 801f160: 1ad3 subs r3, r2, r3
  76528. 801f162: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  76529. * function.
  76530. */
  76531. #if TCP_OVERSIZE
  76532. #if TCP_OVERSIZE_DBGCHECK
  76533. /* check that pcb->unsent_oversize matches last_unsent->oversize_left */
  76534. LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
  76535. 801f166: 68fb ldr r3, [r7, #12]
  76536. 801f168: f8b3 2068 ldrh.w r2, [r3, #104] @ 0x68
  76537. 801f16c: 6c3b ldr r3, [r7, #64] @ 0x40
  76538. 801f16e: 895b ldrh r3, [r3, #10]
  76539. 801f170: 429a cmp r2, r3
  76540. 801f172: d006 beq.n 801f182 <tcp_write+0x152>
  76541. 801f174: 4b60 ldr r3, [pc, #384] @ (801f2f8 <tcp_write+0x2c8>)
  76542. 801f176: f240 12f3 movw r2, #499 @ 0x1f3
  76543. 801f17a: 4964 ldr r1, [pc, #400] @ (801f30c <tcp_write+0x2dc>)
  76544. 801f17c: 4860 ldr r0, [pc, #384] @ (801f300 <tcp_write+0x2d0>)
  76545. 801f17e: f00a fc2d bl 80299dc <iprintf>
  76546. pcb->unsent_oversize == last_unsent->oversize_left);
  76547. #endif /* TCP_OVERSIZE_DBGCHECK */
  76548. oversize = pcb->unsent_oversize;
  76549. 801f182: 68fb ldr r3, [r7, #12]
  76550. 801f184: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  76551. 801f188: 82fb strh r3, [r7, #22]
  76552. if (oversize > 0) {
  76553. 801f18a: 8afb ldrh r3, [r7, #22]
  76554. 801f18c: 2b00 cmp r3, #0
  76555. 801f18e: d02e beq.n 801f1ee <tcp_write+0x1be>
  76556. LWIP_ASSERT("inconsistent oversize vs. space", oversize <= space);
  76557. 801f190: 8afb ldrh r3, [r7, #22]
  76558. 801f192: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  76559. 801f196: 429a cmp r2, r3
  76560. 801f198: d206 bcs.n 801f1a8 <tcp_write+0x178>
  76561. 801f19a: 4b57 ldr r3, [pc, #348] @ (801f2f8 <tcp_write+0x2c8>)
  76562. 801f19c: f44f 72fc mov.w r2, #504 @ 0x1f8
  76563. 801f1a0: 495b ldr r1, [pc, #364] @ (801f310 <tcp_write+0x2e0>)
  76564. 801f1a2: 4857 ldr r0, [pc, #348] @ (801f300 <tcp_write+0x2d0>)
  76565. 801f1a4: f00a fc1a bl 80299dc <iprintf>
  76566. seg = last_unsent;
  76567. 801f1a8: 6c3b ldr r3, [r7, #64] @ 0x40
  76568. 801f1aa: 657b str r3, [r7, #84] @ 0x54
  76569. oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len));
  76570. 801f1ac: 8afb ldrh r3, [r7, #22]
  76571. 801f1ae: 88fa ldrh r2, [r7, #6]
  76572. 801f1b0: 4293 cmp r3, r2
  76573. 801f1b2: bf28 it cs
  76574. 801f1b4: 4613 movcs r3, r2
  76575. 801f1b6: b29b uxth r3, r3
  76576. 801f1b8: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  76577. 801f1bc: 4293 cmp r3, r2
  76578. 801f1be: bf28 it cs
  76579. 801f1c0: 4613 movcs r3, r2
  76580. 801f1c2: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  76581. pos += oversize_used;
  76582. 801f1c6: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  76583. 801f1ca: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76584. 801f1ce: 4413 add r3, r2
  76585. 801f1d0: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  76586. oversize -= oversize_used;
  76587. 801f1d4: 8afa ldrh r2, [r7, #22]
  76588. 801f1d6: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76589. 801f1da: 1ad3 subs r3, r2, r3
  76590. 801f1dc: b29b uxth r3, r3
  76591. 801f1de: 82fb strh r3, [r7, #22]
  76592. space -= oversize_used;
  76593. 801f1e0: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  76594. 801f1e4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  76595. 801f1e8: 1ad3 subs r3, r2, r3
  76596. 801f1ea: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  76597. }
  76598. /* now we are either finished or oversize is zero */
  76599. LWIP_ASSERT("inconsistent oversize vs. len", (oversize == 0) || (pos == len));
  76600. 801f1ee: 8afb ldrh r3, [r7, #22]
  76601. 801f1f0: 2b00 cmp r3, #0
  76602. 801f1f2: d00b beq.n 801f20c <tcp_write+0x1dc>
  76603. 801f1f4: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  76604. 801f1f8: 88fb ldrh r3, [r7, #6]
  76605. 801f1fa: 429a cmp r2, r3
  76606. 801f1fc: d006 beq.n 801f20c <tcp_write+0x1dc>
  76607. 801f1fe: 4b3e ldr r3, [pc, #248] @ (801f2f8 <tcp_write+0x2c8>)
  76608. 801f200: f44f 7200 mov.w r2, #512 @ 0x200
  76609. 801f204: 4943 ldr r1, [pc, #268] @ (801f314 <tcp_write+0x2e4>)
  76610. 801f206: 483e ldr r0, [pc, #248] @ (801f300 <tcp_write+0x2d0>)
  76611. 801f208: f00a fbe8 bl 80299dc <iprintf>
  76612. *
  76613. * This phase is skipped for LWIP_NETIF_TX_SINGLE_PBUF as we could only execute
  76614. * it after rexmit puts a segment from unacked to unsent and at this point,
  76615. * oversize info is lost.
  76616. */
  76617. if ((pos < len) && (space > 0) && (last_unsent->len > 0)) {
  76618. 801f20c: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  76619. 801f210: 88fb ldrh r3, [r7, #6]
  76620. 801f212: 429a cmp r2, r3
  76621. 801f214: f080 8172 bcs.w 801f4fc <tcp_write+0x4cc>
  76622. 801f218: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  76623. 801f21c: 2b00 cmp r3, #0
  76624. 801f21e: f000 816d beq.w 801f4fc <tcp_write+0x4cc>
  76625. 801f222: 6c3b ldr r3, [r7, #64] @ 0x40
  76626. 801f224: 891b ldrh r3, [r3, #8]
  76627. 801f226: 2b00 cmp r3, #0
  76628. 801f228: f000 8168 beq.w 801f4fc <tcp_write+0x4cc>
  76629. u16_t seglen = LWIP_MIN(space, len - pos);
  76630. 801f22c: 88fa ldrh r2, [r7, #6]
  76631. 801f22e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76632. 801f232: 1ad2 subs r2, r2, r3
  76633. 801f234: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  76634. 801f238: 4293 cmp r3, r2
  76635. 801f23a: bfa8 it ge
  76636. 801f23c: 4613 movge r3, r2
  76637. 801f23e: 847b strh r3, [r7, #34] @ 0x22
  76638. seg = last_unsent;
  76639. 801f240: 6c3b ldr r3, [r7, #64] @ 0x40
  76640. 801f242: 657b str r3, [r7, #84] @ 0x54
  76641. /* Create a pbuf with a copy or reference to seglen bytes. We
  76642. * can use PBUF_RAW here since the data appears in the middle of
  76643. * a segment. A header will never be prepended. */
  76644. if (apiflags & TCP_WRITE_FLAG_COPY) {
  76645. 801f244: 797b ldrb r3, [r7, #5]
  76646. 801f246: f003 0301 and.w r3, r3, #1
  76647. 801f24a: 2b00 cmp r3, #0
  76648. 801f24c: d02b beq.n 801f2a6 <tcp_write+0x276>
  76649. /* Data is copied */
  76650. if ((concat_p = tcp_pbuf_prealloc(PBUF_RAW, seglen, space, &oversize, pcb, apiflags, 1)) == NULL) {
  76651. 801f24e: f107 0016 add.w r0, r7, #22
  76652. 801f252: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  76653. 801f256: 8c79 ldrh r1, [r7, #34] @ 0x22
  76654. 801f258: 2301 movs r3, #1
  76655. 801f25a: 9302 str r3, [sp, #8]
  76656. 801f25c: 797b ldrb r3, [r7, #5]
  76657. 801f25e: 9301 str r3, [sp, #4]
  76658. 801f260: 68fb ldr r3, [r7, #12]
  76659. 801f262: 9300 str r3, [sp, #0]
  76660. 801f264: 4603 mov r3, r0
  76661. 801f266: 2000 movs r0, #0
  76662. 801f268: f7ff fdee bl 801ee48 <tcp_pbuf_prealloc>
  76663. 801f26c: 63f8 str r0, [r7, #60] @ 0x3c
  76664. 801f26e: 6bfb ldr r3, [r7, #60] @ 0x3c
  76665. 801f270: 2b00 cmp r3, #0
  76666. 801f272: f000 825a beq.w 801f72a <tcp_write+0x6fa>
  76667. ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n",
  76668. seglen));
  76669. goto memerr;
  76670. }
  76671. #if TCP_OVERSIZE_DBGCHECK
  76672. oversize_add = oversize;
  76673. 801f276: 8afb ldrh r3, [r7, #22]
  76674. 801f278: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  76675. #endif /* TCP_OVERSIZE_DBGCHECK */
  76676. TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped);
  76677. 801f27c: 6bfb ldr r3, [r7, #60] @ 0x3c
  76678. 801f27e: 6858 ldr r0, [r3, #4]
  76679. 801f280: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76680. 801f284: 68ba ldr r2, [r7, #8]
  76681. 801f286: 4413 add r3, r2
  76682. 801f288: 8c7a ldrh r2, [r7, #34] @ 0x22
  76683. 801f28a: 4619 mov r1, r3
  76684. 801f28c: f00a fe2f bl 8029eee <memcpy>
  76685. #if TCP_CHECKSUM_ON_COPY
  76686. concat_chksummed += seglen;
  76687. #endif /* TCP_CHECKSUM_ON_COPY */
  76688. queuelen += pbuf_clen(concat_p);
  76689. 801f290: 6bf8 ldr r0, [r7, #60] @ 0x3c
  76690. 801f292: f7fb f9b9 bl 801a608 <pbuf_clen>
  76691. 801f296: 4603 mov r3, r0
  76692. 801f298: 461a mov r2, r3
  76693. 801f29a: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  76694. 801f29e: 4413 add r3, r2
  76695. 801f2a0: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  76696. 801f2a4: e055 b.n 801f352 <tcp_write+0x322>
  76697. } else {
  76698. /* Data is not copied */
  76699. /* If the last unsent pbuf is of type PBUF_ROM, try to extend it. */
  76700. struct pbuf *p;
  76701. for (p = last_unsent->p; p->next != NULL; p = p->next);
  76702. 801f2a6: 6c3b ldr r3, [r7, #64] @ 0x40
  76703. 801f2a8: 685b ldr r3, [r3, #4]
  76704. 801f2aa: 63bb str r3, [r7, #56] @ 0x38
  76705. 801f2ac: e002 b.n 801f2b4 <tcp_write+0x284>
  76706. 801f2ae: 6bbb ldr r3, [r7, #56] @ 0x38
  76707. 801f2b0: 681b ldr r3, [r3, #0]
  76708. 801f2b2: 63bb str r3, [r7, #56] @ 0x38
  76709. 801f2b4: 6bbb ldr r3, [r7, #56] @ 0x38
  76710. 801f2b6: 681b ldr r3, [r3, #0]
  76711. 801f2b8: 2b00 cmp r3, #0
  76712. 801f2ba: d1f8 bne.n 801f2ae <tcp_write+0x27e>
  76713. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  76714. 801f2bc: 6bbb ldr r3, [r7, #56] @ 0x38
  76715. 801f2be: 7b1b ldrb r3, [r3, #12]
  76716. 801f2c0: f003 03c0 and.w r3, r3, #192 @ 0xc0
  76717. 801f2c4: 2b00 cmp r3, #0
  76718. 801f2c6: d129 bne.n 801f31c <tcp_write+0x2ec>
  76719. (const u8_t *)p->payload + p->len == (const u8_t *)arg) {
  76720. 801f2c8: 6bbb ldr r3, [r7, #56] @ 0x38
  76721. 801f2ca: 685b ldr r3, [r3, #4]
  76722. 801f2cc: 6bba ldr r2, [r7, #56] @ 0x38
  76723. 801f2ce: 8952 ldrh r2, [r2, #10]
  76724. 801f2d0: 4413 add r3, r2
  76725. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  76726. 801f2d2: 68ba ldr r2, [r7, #8]
  76727. 801f2d4: 429a cmp r2, r3
  76728. 801f2d6: d121 bne.n 801f31c <tcp_write+0x2ec>
  76729. LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0);
  76730. 801f2d8: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76731. 801f2dc: 2b00 cmp r3, #0
  76732. 801f2de: d006 beq.n 801f2ee <tcp_write+0x2be>
  76733. 801f2e0: 4b05 ldr r3, [pc, #20] @ (801f2f8 <tcp_write+0x2c8>)
  76734. 801f2e2: f240 2231 movw r2, #561 @ 0x231
  76735. 801f2e6: 490c ldr r1, [pc, #48] @ (801f318 <tcp_write+0x2e8>)
  76736. 801f2e8: 4805 ldr r0, [pc, #20] @ (801f300 <tcp_write+0x2d0>)
  76737. 801f2ea: f00a fb77 bl 80299dc <iprintf>
  76738. extendlen = seglen;
  76739. 801f2ee: 8c7b ldrh r3, [r7, #34] @ 0x22
  76740. 801f2f0: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  76741. 801f2f4: e02d b.n 801f352 <tcp_write+0x322>
  76742. 801f2f6: bf00 nop
  76743. 801f2f8: 0802f1d8 .word 0x0802f1d8
  76744. 801f2fc: 0802f378 .word 0x0802f378
  76745. 801f300: 0802f22c .word 0x0802f22c
  76746. 801f304: 0802f390 .word 0x0802f390
  76747. 801f308: 0802f3c4 .word 0x0802f3c4
  76748. 801f30c: 0802f3dc .word 0x0802f3dc
  76749. 801f310: 0802f40c .word 0x0802f40c
  76750. 801f314: 0802f42c .word 0x0802f42c
  76751. 801f318: 0802f44c .word 0x0802f44c
  76752. } else {
  76753. if ((concat_p = pbuf_alloc(PBUF_RAW, seglen, PBUF_ROM)) == NULL) {
  76754. 801f31c: 8c7b ldrh r3, [r7, #34] @ 0x22
  76755. 801f31e: 2201 movs r2, #1
  76756. 801f320: 4619 mov r1, r3
  76757. 801f322: 2000 movs r0, #0
  76758. 801f324: f7fa fdcc bl 8019ec0 <pbuf_alloc>
  76759. 801f328: 63f8 str r0, [r7, #60] @ 0x3c
  76760. 801f32a: 6bfb ldr r3, [r7, #60] @ 0x3c
  76761. 801f32c: 2b00 cmp r3, #0
  76762. 801f32e: f000 81fe beq.w 801f72e <tcp_write+0x6fe>
  76763. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  76764. ("tcp_write: could not allocate memory for zero-copy pbuf\n"));
  76765. goto memerr;
  76766. }
  76767. /* reference the non-volatile payload data */
  76768. ((struct pbuf_rom *)concat_p)->payload = (const u8_t *)arg + pos;
  76769. 801f332: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76770. 801f336: 68ba ldr r2, [r7, #8]
  76771. 801f338: 441a add r2, r3
  76772. 801f33a: 6bfb ldr r3, [r7, #60] @ 0x3c
  76773. 801f33c: 605a str r2, [r3, #4]
  76774. queuelen += pbuf_clen(concat_p);
  76775. 801f33e: 6bf8 ldr r0, [r7, #60] @ 0x3c
  76776. 801f340: f7fb f962 bl 801a608 <pbuf_clen>
  76777. 801f344: 4603 mov r3, r0
  76778. 801f346: 461a mov r2, r3
  76779. 801f348: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  76780. 801f34c: 4413 add r3, r2
  76781. 801f34e: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  76782. &concat_chksum, &concat_chksum_swapped);
  76783. concat_chksummed += seglen;
  76784. #endif /* TCP_CHECKSUM_ON_COPY */
  76785. }
  76786. pos += seglen;
  76787. 801f352: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  76788. 801f356: 8c7b ldrh r3, [r7, #34] @ 0x22
  76789. 801f358: 4413 add r3, r2
  76790. 801f35a: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  76791. 801f35e: e0cd b.n 801f4fc <tcp_write+0x4cc>
  76792. }
  76793. #endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
  76794. } else {
  76795. #if TCP_OVERSIZE
  76796. LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
  76797. 801f360: 68fb ldr r3, [r7, #12]
  76798. 801f362: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  76799. 801f366: 2b00 cmp r3, #0
  76800. 801f368: f000 80c8 beq.w 801f4fc <tcp_write+0x4cc>
  76801. 801f36c: 4b72 ldr r3, [pc, #456] @ (801f538 <tcp_write+0x508>)
  76802. 801f36e: f240 224a movw r2, #586 @ 0x24a
  76803. 801f372: 4972 ldr r1, [pc, #456] @ (801f53c <tcp_write+0x50c>)
  76804. 801f374: 4872 ldr r0, [pc, #456] @ (801f540 <tcp_write+0x510>)
  76805. 801f376: f00a fb31 bl 80299dc <iprintf>
  76806. * Phase 3: Create new segments.
  76807. *
  76808. * The new segments are chained together in the local 'queue'
  76809. * variable, ready to be appended to pcb->unsent.
  76810. */
  76811. while (pos < len) {
  76812. 801f37a: e0bf b.n 801f4fc <tcp_write+0x4cc>
  76813. struct pbuf *p;
  76814. u16_t left = len - pos;
  76815. 801f37c: 88fa ldrh r2, [r7, #6]
  76816. 801f37e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76817. 801f382: 1ad3 subs r3, r2, r3
  76818. 801f384: 843b strh r3, [r7, #32]
  76819. u16_t max_len = mss_local - optlen;
  76820. 801f386: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  76821. 801f38a: b29b uxth r3, r3
  76822. 801f38c: 8d3a ldrh r2, [r7, #40] @ 0x28
  76823. 801f38e: 1ad3 subs r3, r2, r3
  76824. 801f390: 83fb strh r3, [r7, #30]
  76825. u16_t seglen = LWIP_MIN(left, max_len);
  76826. 801f392: 8bfa ldrh r2, [r7, #30]
  76827. 801f394: 8c3b ldrh r3, [r7, #32]
  76828. 801f396: 4293 cmp r3, r2
  76829. 801f398: bf28 it cs
  76830. 801f39a: 4613 movcs r3, r2
  76831. 801f39c: 83bb strh r3, [r7, #28]
  76832. #if TCP_CHECKSUM_ON_COPY
  76833. u16_t chksum = 0;
  76834. u8_t chksum_swapped = 0;
  76835. #endif /* TCP_CHECKSUM_ON_COPY */
  76836. if (apiflags & TCP_WRITE_FLAG_COPY) {
  76837. 801f39e: 797b ldrb r3, [r7, #5]
  76838. 801f3a0: f003 0301 and.w r3, r3, #1
  76839. 801f3a4: 2b00 cmp r3, #0
  76840. 801f3a6: d036 beq.n 801f416 <tcp_write+0x3e6>
  76841. /* If copy is set, memory should be allocated and data copied
  76842. * into pbuf */
  76843. if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, queue == NULL)) == NULL) {
  76844. 801f3a8: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  76845. 801f3ac: b29a uxth r2, r3
  76846. 801f3ae: 8bbb ldrh r3, [r7, #28]
  76847. 801f3b0: 4413 add r3, r2
  76848. 801f3b2: b299 uxth r1, r3
  76849. 801f3b4: 6cfb ldr r3, [r7, #76] @ 0x4c
  76850. 801f3b6: 2b00 cmp r3, #0
  76851. 801f3b8: bf0c ite eq
  76852. 801f3ba: 2301 moveq r3, #1
  76853. 801f3bc: 2300 movne r3, #0
  76854. 801f3be: b2db uxtb r3, r3
  76855. 801f3c0: f107 0016 add.w r0, r7, #22
  76856. 801f3c4: 8d3a ldrh r2, [r7, #40] @ 0x28
  76857. 801f3c6: 9302 str r3, [sp, #8]
  76858. 801f3c8: 797b ldrb r3, [r7, #5]
  76859. 801f3ca: 9301 str r3, [sp, #4]
  76860. 801f3cc: 68fb ldr r3, [r7, #12]
  76861. 801f3ce: 9300 str r3, [sp, #0]
  76862. 801f3d0: 4603 mov r3, r0
  76863. 801f3d2: 2036 movs r0, #54 @ 0x36
  76864. 801f3d4: f7ff fd38 bl 801ee48 <tcp_pbuf_prealloc>
  76865. 801f3d8: 6378 str r0, [r7, #52] @ 0x34
  76866. 801f3da: 6b7b ldr r3, [r7, #52] @ 0x34
  76867. 801f3dc: 2b00 cmp r3, #0
  76868. 801f3de: f000 81a8 beq.w 801f732 <tcp_write+0x702>
  76869. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen));
  76870. goto memerr;
  76871. }
  76872. LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen",
  76873. 801f3e2: 6b7b ldr r3, [r7, #52] @ 0x34
  76874. 801f3e4: 895b ldrh r3, [r3, #10]
  76875. 801f3e6: 8bba ldrh r2, [r7, #28]
  76876. 801f3e8: 429a cmp r2, r3
  76877. 801f3ea: d906 bls.n 801f3fa <tcp_write+0x3ca>
  76878. 801f3ec: 4b52 ldr r3, [pc, #328] @ (801f538 <tcp_write+0x508>)
  76879. 801f3ee: f240 2266 movw r2, #614 @ 0x266
  76880. 801f3f2: 4954 ldr r1, [pc, #336] @ (801f544 <tcp_write+0x514>)
  76881. 801f3f4: 4852 ldr r0, [pc, #328] @ (801f540 <tcp_write+0x510>)
  76882. 801f3f6: f00a faf1 bl 80299dc <iprintf>
  76883. (p->len >= seglen));
  76884. TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped);
  76885. 801f3fa: 6b7b ldr r3, [r7, #52] @ 0x34
  76886. 801f3fc: 685a ldr r2, [r3, #4]
  76887. 801f3fe: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  76888. 801f402: 18d0 adds r0, r2, r3
  76889. 801f404: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76890. 801f408: 68ba ldr r2, [r7, #8]
  76891. 801f40a: 4413 add r3, r2
  76892. 801f40c: 8bba ldrh r2, [r7, #28]
  76893. 801f40e: 4619 mov r1, r3
  76894. 801f410: f00a fd6d bl 8029eee <memcpy>
  76895. 801f414: e02f b.n 801f476 <tcp_write+0x446>
  76896. * sent out on the link (as it has to be ACKed by the remote
  76897. * party) we can safely use PBUF_ROM instead of PBUF_REF here.
  76898. */
  76899. struct pbuf *p2;
  76900. #if TCP_OVERSIZE
  76901. LWIP_ASSERT("oversize == 0", oversize == 0);
  76902. 801f416: 8afb ldrh r3, [r7, #22]
  76903. 801f418: 2b00 cmp r3, #0
  76904. 801f41a: d006 beq.n 801f42a <tcp_write+0x3fa>
  76905. 801f41c: 4b46 ldr r3, [pc, #280] @ (801f538 <tcp_write+0x508>)
  76906. 801f41e: f240 2271 movw r2, #625 @ 0x271
  76907. 801f422: 4949 ldr r1, [pc, #292] @ (801f548 <tcp_write+0x518>)
  76908. 801f424: 4846 ldr r0, [pc, #280] @ (801f540 <tcp_write+0x510>)
  76909. 801f426: f00a fad9 bl 80299dc <iprintf>
  76910. #endif /* TCP_OVERSIZE */
  76911. if ((p2 = pbuf_alloc(PBUF_TRANSPORT, seglen, PBUF_ROM)) == NULL) {
  76912. 801f42a: 8bbb ldrh r3, [r7, #28]
  76913. 801f42c: 2201 movs r2, #1
  76914. 801f42e: 4619 mov r1, r3
  76915. 801f430: 2036 movs r0, #54 @ 0x36
  76916. 801f432: f7fa fd45 bl 8019ec0 <pbuf_alloc>
  76917. 801f436: 61b8 str r0, [r7, #24]
  76918. 801f438: 69bb ldr r3, [r7, #24]
  76919. 801f43a: 2b00 cmp r3, #0
  76920. 801f43c: f000 817b beq.w 801f736 <tcp_write+0x706>
  76921. chksum_swapped = 1;
  76922. chksum = SWAP_BYTES_IN_WORD(chksum);
  76923. }
  76924. #endif /* TCP_CHECKSUM_ON_COPY */
  76925. /* reference the non-volatile payload data */
  76926. ((struct pbuf_rom *)p2)->payload = (const u8_t *)arg + pos;
  76927. 801f440: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76928. 801f444: 68ba ldr r2, [r7, #8]
  76929. 801f446: 441a add r2, r3
  76930. 801f448: 69bb ldr r3, [r7, #24]
  76931. 801f44a: 605a str r2, [r3, #4]
  76932. /* Second, allocate a pbuf for the headers. */
  76933. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  76934. 801f44c: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  76935. 801f450: b29b uxth r3, r3
  76936. 801f452: f44f 7220 mov.w r2, #640 @ 0x280
  76937. 801f456: 4619 mov r1, r3
  76938. 801f458: 2036 movs r0, #54 @ 0x36
  76939. 801f45a: f7fa fd31 bl 8019ec0 <pbuf_alloc>
  76940. 801f45e: 6378 str r0, [r7, #52] @ 0x34
  76941. 801f460: 6b7b ldr r3, [r7, #52] @ 0x34
  76942. 801f462: 2b00 cmp r3, #0
  76943. 801f464: d103 bne.n 801f46e <tcp_write+0x43e>
  76944. /* If allocation fails, we have to deallocate the data pbuf as
  76945. * well. */
  76946. pbuf_free(p2);
  76947. 801f466: 69b8 ldr r0, [r7, #24]
  76948. 801f468: f7fb f840 bl 801a4ec <pbuf_free>
  76949. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n"));
  76950. goto memerr;
  76951. 801f46c: e166 b.n 801f73c <tcp_write+0x70c>
  76952. }
  76953. /* Concatenate the headers and data pbufs together. */
  76954. pbuf_cat(p/*header*/, p2/*data*/);
  76955. 801f46e: 69b9 ldr r1, [r7, #24]
  76956. 801f470: 6b78 ldr r0, [r7, #52] @ 0x34
  76957. 801f472: f7fb f909 bl 801a688 <pbuf_cat>
  76958. }
  76959. queuelen += pbuf_clen(p);
  76960. 801f476: 6b78 ldr r0, [r7, #52] @ 0x34
  76961. 801f478: f7fb f8c6 bl 801a608 <pbuf_clen>
  76962. 801f47c: 4603 mov r3, r0
  76963. 801f47e: 461a mov r2, r3
  76964. 801f480: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  76965. 801f484: 4413 add r3, r2
  76966. 801f486: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  76967. /* Now that there are more segments queued, we check again if the
  76968. * length of the queue exceeds the configured maximum or
  76969. * overflows. */
  76970. if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) {
  76971. 801f48a: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  76972. 801f48e: 2b10 cmp r3, #16
  76973. 801f490: d903 bls.n 801f49a <tcp_write+0x46a>
  76974. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n",
  76975. queuelen, (int)TCP_SND_QUEUELEN));
  76976. pbuf_free(p);
  76977. 801f492: 6b78 ldr r0, [r7, #52] @ 0x34
  76978. 801f494: f7fb f82a bl 801a4ec <pbuf_free>
  76979. goto memerr;
  76980. 801f498: e150 b.n 801f73c <tcp_write+0x70c>
  76981. }
  76982. if ((seg = tcp_create_segment(pcb, p, 0, pcb->snd_lbb + pos, optflags)) == NULL) {
  76983. 801f49a: 68fb ldr r3, [r7, #12]
  76984. 801f49c: 6dda ldr r2, [r3, #92] @ 0x5c
  76985. 801f49e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  76986. 801f4a2: 441a add r2, r3
  76987. 801f4a4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  76988. 801f4a8: 9300 str r3, [sp, #0]
  76989. 801f4aa: 4613 mov r3, r2
  76990. 801f4ac: 2200 movs r2, #0
  76991. 801f4ae: 6b79 ldr r1, [r7, #52] @ 0x34
  76992. 801f4b0: 68f8 ldr r0, [r7, #12]
  76993. 801f4b2: f7ff fc29 bl 801ed08 <tcp_create_segment>
  76994. 801f4b6: 6578 str r0, [r7, #84] @ 0x54
  76995. 801f4b8: 6d7b ldr r3, [r7, #84] @ 0x54
  76996. 801f4ba: 2b00 cmp r3, #0
  76997. 801f4bc: f000 813d beq.w 801f73a <tcp_write+0x70a>
  76998. goto memerr;
  76999. }
  77000. #if TCP_OVERSIZE_DBGCHECK
  77001. seg->oversize_left = oversize;
  77002. 801f4c0: 8afa ldrh r2, [r7, #22]
  77003. 801f4c2: 6d7b ldr r3, [r7, #84] @ 0x54
  77004. 801f4c4: 815a strh r2, [r3, #10]
  77005. seg->chksum_swapped = chksum_swapped;
  77006. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  77007. #endif /* TCP_CHECKSUM_ON_COPY */
  77008. /* first segment of to-be-queued data? */
  77009. if (queue == NULL) {
  77010. 801f4c6: 6cfb ldr r3, [r7, #76] @ 0x4c
  77011. 801f4c8: 2b00 cmp r3, #0
  77012. 801f4ca: d102 bne.n 801f4d2 <tcp_write+0x4a2>
  77013. queue = seg;
  77014. 801f4cc: 6d7b ldr r3, [r7, #84] @ 0x54
  77015. 801f4ce: 64fb str r3, [r7, #76] @ 0x4c
  77016. 801f4d0: e00c b.n 801f4ec <tcp_write+0x4bc>
  77017. } else {
  77018. /* Attach the segment to the end of the queued segments */
  77019. LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL);
  77020. 801f4d2: 6d3b ldr r3, [r7, #80] @ 0x50
  77021. 801f4d4: 2b00 cmp r3, #0
  77022. 801f4d6: d106 bne.n 801f4e6 <tcp_write+0x4b6>
  77023. 801f4d8: 4b17 ldr r3, [pc, #92] @ (801f538 <tcp_write+0x508>)
  77024. 801f4da: f240 22ab movw r2, #683 @ 0x2ab
  77025. 801f4de: 491b ldr r1, [pc, #108] @ (801f54c <tcp_write+0x51c>)
  77026. 801f4e0: 4817 ldr r0, [pc, #92] @ (801f540 <tcp_write+0x510>)
  77027. 801f4e2: f00a fa7b bl 80299dc <iprintf>
  77028. prev_seg->next = seg;
  77029. 801f4e6: 6d3b ldr r3, [r7, #80] @ 0x50
  77030. 801f4e8: 6d7a ldr r2, [r7, #84] @ 0x54
  77031. 801f4ea: 601a str r2, [r3, #0]
  77032. }
  77033. /* remember last segment of to-be-queued data for next iteration */
  77034. prev_seg = seg;
  77035. 801f4ec: 6d7b ldr r3, [r7, #84] @ 0x54
  77036. 801f4ee: 653b str r3, [r7, #80] @ 0x50
  77037. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n",
  77038. lwip_ntohl(seg->tcphdr->seqno),
  77039. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
  77040. pos += seglen;
  77041. 801f4f0: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  77042. 801f4f4: 8bbb ldrh r3, [r7, #28]
  77043. 801f4f6: 4413 add r3, r2
  77044. 801f4f8: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  77045. while (pos < len) {
  77046. 801f4fc: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  77047. 801f500: 88fb ldrh r3, [r7, #6]
  77048. 801f502: 429a cmp r2, r3
  77049. 801f504: f4ff af3a bcc.w 801f37c <tcp_write+0x34c>
  77050. /*
  77051. * All three segmentation phases were successful. We can commit the
  77052. * transaction.
  77053. */
  77054. #if TCP_OVERSIZE_DBGCHECK
  77055. if ((last_unsent != NULL) && (oversize_add != 0)) {
  77056. 801f508: 6c3b ldr r3, [r7, #64] @ 0x40
  77057. 801f50a: 2b00 cmp r3, #0
  77058. 801f50c: d00b beq.n 801f526 <tcp_write+0x4f6>
  77059. 801f50e: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  77060. 801f512: 2b00 cmp r3, #0
  77061. 801f514: d007 beq.n 801f526 <tcp_write+0x4f6>
  77062. last_unsent->oversize_left += oversize_add;
  77063. 801f516: 6c3b ldr r3, [r7, #64] @ 0x40
  77064. 801f518: 895a ldrh r2, [r3, #10]
  77065. 801f51a: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  77066. 801f51e: 4413 add r3, r2
  77067. 801f520: b29a uxth r2, r3
  77068. 801f522: 6c3b ldr r3, [r7, #64] @ 0x40
  77069. 801f524: 815a strh r2, [r3, #10]
  77070. /*
  77071. * Phase 1: If data has been added to the preallocated tail of
  77072. * last_unsent, we update the length fields of the pbuf chain.
  77073. */
  77074. #if TCP_OVERSIZE
  77075. if (oversize_used > 0) {
  77076. 801f526: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77077. 801f52a: 2b00 cmp r3, #0
  77078. 801f52c: d052 beq.n 801f5d4 <tcp_write+0x5a4>
  77079. struct pbuf *p;
  77080. /* Bump tot_len of whole chain, len of tail */
  77081. for (p = last_unsent->p; p; p = p->next) {
  77082. 801f52e: 6c3b ldr r3, [r7, #64] @ 0x40
  77083. 801f530: 685b ldr r3, [r3, #4]
  77084. 801f532: 633b str r3, [r7, #48] @ 0x30
  77085. 801f534: e02e b.n 801f594 <tcp_write+0x564>
  77086. 801f536: bf00 nop
  77087. 801f538: 0802f1d8 .word 0x0802f1d8
  77088. 801f53c: 0802f478 .word 0x0802f478
  77089. 801f540: 0802f22c .word 0x0802f22c
  77090. 801f544: 0802f4a8 .word 0x0802f4a8
  77091. 801f548: 0802f4e8 .word 0x0802f4e8
  77092. 801f54c: 0802f4f8 .word 0x0802f4f8
  77093. p->tot_len += oversize_used;
  77094. 801f550: 6b3b ldr r3, [r7, #48] @ 0x30
  77095. 801f552: 891a ldrh r2, [r3, #8]
  77096. 801f554: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77097. 801f558: 4413 add r3, r2
  77098. 801f55a: b29a uxth r2, r3
  77099. 801f55c: 6b3b ldr r3, [r7, #48] @ 0x30
  77100. 801f55e: 811a strh r2, [r3, #8]
  77101. if (p->next == NULL) {
  77102. 801f560: 6b3b ldr r3, [r7, #48] @ 0x30
  77103. 801f562: 681b ldr r3, [r3, #0]
  77104. 801f564: 2b00 cmp r3, #0
  77105. 801f566: d112 bne.n 801f58e <tcp_write+0x55e>
  77106. TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent);
  77107. 801f568: 6b3b ldr r3, [r7, #48] @ 0x30
  77108. 801f56a: 685b ldr r3, [r3, #4]
  77109. 801f56c: 6b3a ldr r2, [r7, #48] @ 0x30
  77110. 801f56e: 8952 ldrh r2, [r2, #10]
  77111. 801f570: 4413 add r3, r2
  77112. 801f572: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  77113. 801f576: 68b9 ldr r1, [r7, #8]
  77114. 801f578: 4618 mov r0, r3
  77115. 801f57a: f00a fcb8 bl 8029eee <memcpy>
  77116. p->len += oversize_used;
  77117. 801f57e: 6b3b ldr r3, [r7, #48] @ 0x30
  77118. 801f580: 895a ldrh r2, [r3, #10]
  77119. 801f582: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77120. 801f586: 4413 add r3, r2
  77121. 801f588: b29a uxth r2, r3
  77122. 801f58a: 6b3b ldr r3, [r7, #48] @ 0x30
  77123. 801f58c: 815a strh r2, [r3, #10]
  77124. for (p = last_unsent->p; p; p = p->next) {
  77125. 801f58e: 6b3b ldr r3, [r7, #48] @ 0x30
  77126. 801f590: 681b ldr r3, [r3, #0]
  77127. 801f592: 633b str r3, [r7, #48] @ 0x30
  77128. 801f594: 6b3b ldr r3, [r7, #48] @ 0x30
  77129. 801f596: 2b00 cmp r3, #0
  77130. 801f598: d1da bne.n 801f550 <tcp_write+0x520>
  77131. }
  77132. }
  77133. last_unsent->len += oversize_used;
  77134. 801f59a: 6c3b ldr r3, [r7, #64] @ 0x40
  77135. 801f59c: 891a ldrh r2, [r3, #8]
  77136. 801f59e: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77137. 801f5a2: 4413 add r3, r2
  77138. 801f5a4: b29a uxth r2, r3
  77139. 801f5a6: 6c3b ldr r3, [r7, #64] @ 0x40
  77140. 801f5a8: 811a strh r2, [r3, #8]
  77141. #if TCP_OVERSIZE_DBGCHECK
  77142. LWIP_ASSERT("last_unsent->oversize_left >= oversize_used",
  77143. 801f5aa: 6c3b ldr r3, [r7, #64] @ 0x40
  77144. 801f5ac: 895b ldrh r3, [r3, #10]
  77145. 801f5ae: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  77146. 801f5b2: 429a cmp r2, r3
  77147. 801f5b4: d906 bls.n 801f5c4 <tcp_write+0x594>
  77148. 801f5b6: 4b78 ldr r3, [pc, #480] @ (801f798 <tcp_write+0x768>)
  77149. 801f5b8: f240 22d3 movw r2, #723 @ 0x2d3
  77150. 801f5bc: 4977 ldr r1, [pc, #476] @ (801f79c <tcp_write+0x76c>)
  77151. 801f5be: 4878 ldr r0, [pc, #480] @ (801f7a0 <tcp_write+0x770>)
  77152. 801f5c0: f00a fa0c bl 80299dc <iprintf>
  77153. last_unsent->oversize_left >= oversize_used);
  77154. last_unsent->oversize_left -= oversize_used;
  77155. 801f5c4: 6c3b ldr r3, [r7, #64] @ 0x40
  77156. 801f5c6: 895a ldrh r2, [r3, #10]
  77157. 801f5c8: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77158. 801f5cc: 1ad3 subs r3, r2, r3
  77159. 801f5ce: b29a uxth r2, r3
  77160. 801f5d0: 6c3b ldr r3, [r7, #64] @ 0x40
  77161. 801f5d2: 815a strh r2, [r3, #10]
  77162. #endif /* TCP_OVERSIZE_DBGCHECK */
  77163. }
  77164. pcb->unsent_oversize = oversize;
  77165. 801f5d4: 8afa ldrh r2, [r7, #22]
  77166. 801f5d6: 68fb ldr r3, [r7, #12]
  77167. 801f5d8: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  77168. /*
  77169. * Phase 2: concat_p can be concatenated onto last_unsent->p, unless we
  77170. * determined that the last ROM pbuf can be extended to include the new data.
  77171. */
  77172. if (concat_p != NULL) {
  77173. 801f5dc: 6bfb ldr r3, [r7, #60] @ 0x3c
  77174. 801f5de: 2b00 cmp r3, #0
  77175. 801f5e0: d018 beq.n 801f614 <tcp_write+0x5e4>
  77176. LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty",
  77177. 801f5e2: 6c3b ldr r3, [r7, #64] @ 0x40
  77178. 801f5e4: 2b00 cmp r3, #0
  77179. 801f5e6: d106 bne.n 801f5f6 <tcp_write+0x5c6>
  77180. 801f5e8: 4b6b ldr r3, [pc, #428] @ (801f798 <tcp_write+0x768>)
  77181. 801f5ea: f44f 7238 mov.w r2, #736 @ 0x2e0
  77182. 801f5ee: 496d ldr r1, [pc, #436] @ (801f7a4 <tcp_write+0x774>)
  77183. 801f5f0: 486b ldr r0, [pc, #428] @ (801f7a0 <tcp_write+0x770>)
  77184. 801f5f2: f00a f9f3 bl 80299dc <iprintf>
  77185. (last_unsent != NULL));
  77186. pbuf_cat(last_unsent->p, concat_p);
  77187. 801f5f6: 6c3b ldr r3, [r7, #64] @ 0x40
  77188. 801f5f8: 685b ldr r3, [r3, #4]
  77189. 801f5fa: 6bf9 ldr r1, [r7, #60] @ 0x3c
  77190. 801f5fc: 4618 mov r0, r3
  77191. 801f5fe: f7fb f843 bl 801a688 <pbuf_cat>
  77192. last_unsent->len += concat_p->tot_len;
  77193. 801f602: 6c3b ldr r3, [r7, #64] @ 0x40
  77194. 801f604: 891a ldrh r2, [r3, #8]
  77195. 801f606: 6bfb ldr r3, [r7, #60] @ 0x3c
  77196. 801f608: 891b ldrh r3, [r3, #8]
  77197. 801f60a: 4413 add r3, r2
  77198. 801f60c: b29a uxth r2, r3
  77199. 801f60e: 6c3b ldr r3, [r7, #64] @ 0x40
  77200. 801f610: 811a strh r2, [r3, #8]
  77201. 801f612: e03c b.n 801f68e <tcp_write+0x65e>
  77202. } else if (extendlen > 0) {
  77203. 801f614: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  77204. 801f618: 2b00 cmp r3, #0
  77205. 801f61a: d038 beq.n 801f68e <tcp_write+0x65e>
  77206. struct pbuf *p;
  77207. LWIP_ASSERT("tcp_write: extension of reference requires reference",
  77208. 801f61c: 6c3b ldr r3, [r7, #64] @ 0x40
  77209. 801f61e: 2b00 cmp r3, #0
  77210. 801f620: d003 beq.n 801f62a <tcp_write+0x5fa>
  77211. 801f622: 6c3b ldr r3, [r7, #64] @ 0x40
  77212. 801f624: 685b ldr r3, [r3, #4]
  77213. 801f626: 2b00 cmp r3, #0
  77214. 801f628: d106 bne.n 801f638 <tcp_write+0x608>
  77215. 801f62a: 4b5b ldr r3, [pc, #364] @ (801f798 <tcp_write+0x768>)
  77216. 801f62c: f240 22e6 movw r2, #742 @ 0x2e6
  77217. 801f630: 495d ldr r1, [pc, #372] @ (801f7a8 <tcp_write+0x778>)
  77218. 801f632: 485b ldr r0, [pc, #364] @ (801f7a0 <tcp_write+0x770>)
  77219. 801f634: f00a f9d2 bl 80299dc <iprintf>
  77220. last_unsent != NULL && last_unsent->p != NULL);
  77221. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  77222. 801f638: 6c3b ldr r3, [r7, #64] @ 0x40
  77223. 801f63a: 685b ldr r3, [r3, #4]
  77224. 801f63c: 62fb str r3, [r7, #44] @ 0x2c
  77225. 801f63e: e00a b.n 801f656 <tcp_write+0x626>
  77226. p->tot_len += extendlen;
  77227. 801f640: 6afb ldr r3, [r7, #44] @ 0x2c
  77228. 801f642: 891a ldrh r2, [r3, #8]
  77229. 801f644: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  77230. 801f648: 4413 add r3, r2
  77231. 801f64a: b29a uxth r2, r3
  77232. 801f64c: 6afb ldr r3, [r7, #44] @ 0x2c
  77233. 801f64e: 811a strh r2, [r3, #8]
  77234. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  77235. 801f650: 6afb ldr r3, [r7, #44] @ 0x2c
  77236. 801f652: 681b ldr r3, [r3, #0]
  77237. 801f654: 62fb str r3, [r7, #44] @ 0x2c
  77238. 801f656: 6afb ldr r3, [r7, #44] @ 0x2c
  77239. 801f658: 681b ldr r3, [r3, #0]
  77240. 801f65a: 2b00 cmp r3, #0
  77241. 801f65c: d1f0 bne.n 801f640 <tcp_write+0x610>
  77242. }
  77243. p->tot_len += extendlen;
  77244. 801f65e: 6afb ldr r3, [r7, #44] @ 0x2c
  77245. 801f660: 891a ldrh r2, [r3, #8]
  77246. 801f662: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  77247. 801f666: 4413 add r3, r2
  77248. 801f668: b29a uxth r2, r3
  77249. 801f66a: 6afb ldr r3, [r7, #44] @ 0x2c
  77250. 801f66c: 811a strh r2, [r3, #8]
  77251. p->len += extendlen;
  77252. 801f66e: 6afb ldr r3, [r7, #44] @ 0x2c
  77253. 801f670: 895a ldrh r2, [r3, #10]
  77254. 801f672: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  77255. 801f676: 4413 add r3, r2
  77256. 801f678: b29a uxth r2, r3
  77257. 801f67a: 6afb ldr r3, [r7, #44] @ 0x2c
  77258. 801f67c: 815a strh r2, [r3, #10]
  77259. last_unsent->len += extendlen;
  77260. 801f67e: 6c3b ldr r3, [r7, #64] @ 0x40
  77261. 801f680: 891a ldrh r2, [r3, #8]
  77262. 801f682: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  77263. 801f686: 4413 add r3, r2
  77264. 801f688: b29a uxth r2, r3
  77265. 801f68a: 6c3b ldr r3, [r7, #64] @ 0x40
  77266. 801f68c: 811a strh r2, [r3, #8]
  77267. /*
  77268. * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that
  77269. * is harmless
  77270. */
  77271. if (last_unsent == NULL) {
  77272. 801f68e: 6c3b ldr r3, [r7, #64] @ 0x40
  77273. 801f690: 2b00 cmp r3, #0
  77274. 801f692: d103 bne.n 801f69c <tcp_write+0x66c>
  77275. pcb->unsent = queue;
  77276. 801f694: 68fb ldr r3, [r7, #12]
  77277. 801f696: 6cfa ldr r2, [r7, #76] @ 0x4c
  77278. 801f698: 66da str r2, [r3, #108] @ 0x6c
  77279. 801f69a: e002 b.n 801f6a2 <tcp_write+0x672>
  77280. } else {
  77281. last_unsent->next = queue;
  77282. 801f69c: 6c3b ldr r3, [r7, #64] @ 0x40
  77283. 801f69e: 6cfa ldr r2, [r7, #76] @ 0x4c
  77284. 801f6a0: 601a str r2, [r3, #0]
  77285. }
  77286. /*
  77287. * Finally update the pcb state.
  77288. */
  77289. pcb->snd_lbb += len;
  77290. 801f6a2: 68fb ldr r3, [r7, #12]
  77291. 801f6a4: 6dda ldr r2, [r3, #92] @ 0x5c
  77292. 801f6a6: 88fb ldrh r3, [r7, #6]
  77293. 801f6a8: 441a add r2, r3
  77294. 801f6aa: 68fb ldr r3, [r7, #12]
  77295. 801f6ac: 65da str r2, [r3, #92] @ 0x5c
  77296. pcb->snd_buf -= len;
  77297. 801f6ae: 68fb ldr r3, [r7, #12]
  77298. 801f6b0: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  77299. 801f6b4: 88fb ldrh r3, [r7, #6]
  77300. 801f6b6: 1ad3 subs r3, r2, r3
  77301. 801f6b8: b29a uxth r2, r3
  77302. 801f6ba: 68fb ldr r3, [r7, #12]
  77303. 801f6bc: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  77304. pcb->snd_queuelen = queuelen;
  77305. 801f6c0: 68fb ldr r3, [r7, #12]
  77306. 801f6c2: f8b7 2048 ldrh.w r2, [r7, #72] @ 0x48
  77307. 801f6c6: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  77308. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n",
  77309. pcb->snd_queuelen));
  77310. if (pcb->snd_queuelen != 0) {
  77311. 801f6ca: 68fb ldr r3, [r7, #12]
  77312. 801f6cc: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77313. 801f6d0: 2b00 cmp r3, #0
  77314. 801f6d2: d00e beq.n 801f6f2 <tcp_write+0x6c2>
  77315. LWIP_ASSERT("tcp_write: valid queue length",
  77316. 801f6d4: 68fb ldr r3, [r7, #12]
  77317. 801f6d6: 6f1b ldr r3, [r3, #112] @ 0x70
  77318. 801f6d8: 2b00 cmp r3, #0
  77319. 801f6da: d10a bne.n 801f6f2 <tcp_write+0x6c2>
  77320. 801f6dc: 68fb ldr r3, [r7, #12]
  77321. 801f6de: 6edb ldr r3, [r3, #108] @ 0x6c
  77322. 801f6e0: 2b00 cmp r3, #0
  77323. 801f6e2: d106 bne.n 801f6f2 <tcp_write+0x6c2>
  77324. 801f6e4: 4b2c ldr r3, [pc, #176] @ (801f798 <tcp_write+0x768>)
  77325. 801f6e6: f240 3212 movw r2, #786 @ 0x312
  77326. 801f6ea: 4930 ldr r1, [pc, #192] @ (801f7ac <tcp_write+0x77c>)
  77327. 801f6ec: 482c ldr r0, [pc, #176] @ (801f7a0 <tcp_write+0x770>)
  77328. 801f6ee: f00a f975 bl 80299dc <iprintf>
  77329. pcb->unacked != NULL || pcb->unsent != NULL);
  77330. }
  77331. /* Set the PSH flag in the last segment that we enqueued. */
  77332. if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) {
  77333. 801f6f2: 6d7b ldr r3, [r7, #84] @ 0x54
  77334. 801f6f4: 2b00 cmp r3, #0
  77335. 801f6f6: d016 beq.n 801f726 <tcp_write+0x6f6>
  77336. 801f6f8: 6d7b ldr r3, [r7, #84] @ 0x54
  77337. 801f6fa: 691b ldr r3, [r3, #16]
  77338. 801f6fc: 2b00 cmp r3, #0
  77339. 801f6fe: d012 beq.n 801f726 <tcp_write+0x6f6>
  77340. 801f700: 797b ldrb r3, [r7, #5]
  77341. 801f702: f003 0302 and.w r3, r3, #2
  77342. 801f706: 2b00 cmp r3, #0
  77343. 801f708: d10d bne.n 801f726 <tcp_write+0x6f6>
  77344. TCPH_SET_FLAG(seg->tcphdr, TCP_PSH);
  77345. 801f70a: 6d7b ldr r3, [r7, #84] @ 0x54
  77346. 801f70c: 691b ldr r3, [r3, #16]
  77347. 801f70e: 899b ldrh r3, [r3, #12]
  77348. 801f710: b29c uxth r4, r3
  77349. 801f712: 2008 movs r0, #8
  77350. 801f714: f7f9 fa08 bl 8018b28 <lwip_htons>
  77351. 801f718: 4603 mov r3, r0
  77352. 801f71a: 461a mov r2, r3
  77353. 801f71c: 6d7b ldr r3, [r7, #84] @ 0x54
  77354. 801f71e: 691b ldr r3, [r3, #16]
  77355. 801f720: 4322 orrs r2, r4
  77356. 801f722: b292 uxth r2, r2
  77357. 801f724: 819a strh r2, [r3, #12]
  77358. }
  77359. return ERR_OK;
  77360. 801f726: 2300 movs r3, #0
  77361. 801f728: e031 b.n 801f78e <tcp_write+0x75e>
  77362. goto memerr;
  77363. 801f72a: bf00 nop
  77364. 801f72c: e006 b.n 801f73c <tcp_write+0x70c>
  77365. goto memerr;
  77366. 801f72e: bf00 nop
  77367. 801f730: e004 b.n 801f73c <tcp_write+0x70c>
  77368. goto memerr;
  77369. 801f732: bf00 nop
  77370. 801f734: e002 b.n 801f73c <tcp_write+0x70c>
  77371. goto memerr;
  77372. 801f736: bf00 nop
  77373. 801f738: e000 b.n 801f73c <tcp_write+0x70c>
  77374. goto memerr;
  77375. 801f73a: bf00 nop
  77376. memerr:
  77377. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77378. 801f73c: 68fb ldr r3, [r7, #12]
  77379. 801f73e: 8b5b ldrh r3, [r3, #26]
  77380. 801f740: f043 0380 orr.w r3, r3, #128 @ 0x80
  77381. 801f744: b29a uxth r2, r3
  77382. 801f746: 68fb ldr r3, [r7, #12]
  77383. 801f748: 835a strh r2, [r3, #26]
  77384. TCP_STATS_INC(tcp.memerr);
  77385. if (concat_p != NULL) {
  77386. 801f74a: 6bfb ldr r3, [r7, #60] @ 0x3c
  77387. 801f74c: 2b00 cmp r3, #0
  77388. 801f74e: d002 beq.n 801f756 <tcp_write+0x726>
  77389. pbuf_free(concat_p);
  77390. 801f750: 6bf8 ldr r0, [r7, #60] @ 0x3c
  77391. 801f752: f7fa fecb bl 801a4ec <pbuf_free>
  77392. }
  77393. if (queue != NULL) {
  77394. 801f756: 6cfb ldr r3, [r7, #76] @ 0x4c
  77395. 801f758: 2b00 cmp r3, #0
  77396. 801f75a: d002 beq.n 801f762 <tcp_write+0x732>
  77397. tcp_segs_free(queue);
  77398. 801f75c: 6cf8 ldr r0, [r7, #76] @ 0x4c
  77399. 801f75e: f7fc fb09 bl 801bd74 <tcp_segs_free>
  77400. }
  77401. if (pcb->snd_queuelen != 0) {
  77402. 801f762: 68fb ldr r3, [r7, #12]
  77403. 801f764: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77404. 801f768: 2b00 cmp r3, #0
  77405. 801f76a: d00e beq.n 801f78a <tcp_write+0x75a>
  77406. LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL ||
  77407. 801f76c: 68fb ldr r3, [r7, #12]
  77408. 801f76e: 6f1b ldr r3, [r3, #112] @ 0x70
  77409. 801f770: 2b00 cmp r3, #0
  77410. 801f772: d10a bne.n 801f78a <tcp_write+0x75a>
  77411. 801f774: 68fb ldr r3, [r7, #12]
  77412. 801f776: 6edb ldr r3, [r3, #108] @ 0x6c
  77413. 801f778: 2b00 cmp r3, #0
  77414. 801f77a: d106 bne.n 801f78a <tcp_write+0x75a>
  77415. 801f77c: 4b06 ldr r3, [pc, #24] @ (801f798 <tcp_write+0x768>)
  77416. 801f77e: f240 3227 movw r2, #807 @ 0x327
  77417. 801f782: 490a ldr r1, [pc, #40] @ (801f7ac <tcp_write+0x77c>)
  77418. 801f784: 4806 ldr r0, [pc, #24] @ (801f7a0 <tcp_write+0x770>)
  77419. 801f786: f00a f929 bl 80299dc <iprintf>
  77420. pcb->unsent != NULL);
  77421. }
  77422. LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen));
  77423. return ERR_MEM;
  77424. 801f78a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77425. }
  77426. 801f78e: 4618 mov r0, r3
  77427. 801f790: 3764 adds r7, #100 @ 0x64
  77428. 801f792: 46bd mov sp, r7
  77429. 801f794: bd90 pop {r4, r7, pc}
  77430. 801f796: bf00 nop
  77431. 801f798: 0802f1d8 .word 0x0802f1d8
  77432. 801f79c: 0802f50c .word 0x0802f50c
  77433. 801f7a0: 0802f22c .word 0x0802f22c
  77434. 801f7a4: 0802f538 .word 0x0802f538
  77435. 801f7a8: 0802f570 .word 0x0802f570
  77436. 801f7ac: 0802f5a8 .word 0x0802f5a8
  77437. 0801f7b0 <tcp_split_unsent_seg>:
  77438. * @param pcb the tcp_pcb for which to split the unsent head
  77439. * @param split the amount of payload to remain in the head
  77440. */
  77441. err_t
  77442. tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split)
  77443. {
  77444. 801f7b0: b590 push {r4, r7, lr}
  77445. 801f7b2: b08b sub sp, #44 @ 0x2c
  77446. 801f7b4: af02 add r7, sp, #8
  77447. 801f7b6: 6078 str r0, [r7, #4]
  77448. 801f7b8: 460b mov r3, r1
  77449. 801f7ba: 807b strh r3, [r7, #2]
  77450. struct tcp_seg *seg = NULL, *useg = NULL;
  77451. 801f7bc: 2300 movs r3, #0
  77452. 801f7be: 61bb str r3, [r7, #24]
  77453. 801f7c0: 2300 movs r3, #0
  77454. 801f7c2: 617b str r3, [r7, #20]
  77455. struct pbuf *p = NULL;
  77456. 801f7c4: 2300 movs r3, #0
  77457. 801f7c6: 613b str r3, [r7, #16]
  77458. u16_t chksum = 0;
  77459. u8_t chksum_swapped = 0;
  77460. struct pbuf *q;
  77461. #endif /* TCP_CHECKSUM_ON_COPY */
  77462. LWIP_ASSERT("tcp_split_unsent_seg: invalid pcb", pcb != NULL);
  77463. 801f7c8: 687b ldr r3, [r7, #4]
  77464. 801f7ca: 2b00 cmp r3, #0
  77465. 801f7cc: d106 bne.n 801f7dc <tcp_split_unsent_seg+0x2c>
  77466. 801f7ce: 4b97 ldr r3, [pc, #604] @ (801fa2c <tcp_split_unsent_seg+0x27c>)
  77467. 801f7d0: f240 324b movw r2, #843 @ 0x34b
  77468. 801f7d4: 4996 ldr r1, [pc, #600] @ (801fa30 <tcp_split_unsent_seg+0x280>)
  77469. 801f7d6: 4897 ldr r0, [pc, #604] @ (801fa34 <tcp_split_unsent_seg+0x284>)
  77470. 801f7d8: f00a f900 bl 80299dc <iprintf>
  77471. useg = pcb->unsent;
  77472. 801f7dc: 687b ldr r3, [r7, #4]
  77473. 801f7de: 6edb ldr r3, [r3, #108] @ 0x6c
  77474. 801f7e0: 617b str r3, [r7, #20]
  77475. if (useg == NULL) {
  77476. 801f7e2: 697b ldr r3, [r7, #20]
  77477. 801f7e4: 2b00 cmp r3, #0
  77478. 801f7e6: d102 bne.n 801f7ee <tcp_split_unsent_seg+0x3e>
  77479. return ERR_MEM;
  77480. 801f7e8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77481. 801f7ec: e119 b.n 801fa22 <tcp_split_unsent_seg+0x272>
  77482. }
  77483. if (split == 0) {
  77484. 801f7ee: 887b ldrh r3, [r7, #2]
  77485. 801f7f0: 2b00 cmp r3, #0
  77486. 801f7f2: d109 bne.n 801f808 <tcp_split_unsent_seg+0x58>
  77487. LWIP_ASSERT("Can't split segment into length 0", 0);
  77488. 801f7f4: 4b8d ldr r3, [pc, #564] @ (801fa2c <tcp_split_unsent_seg+0x27c>)
  77489. 801f7f6: f240 3253 movw r2, #851 @ 0x353
  77490. 801f7fa: 498f ldr r1, [pc, #572] @ (801fa38 <tcp_split_unsent_seg+0x288>)
  77491. 801f7fc: 488d ldr r0, [pc, #564] @ (801fa34 <tcp_split_unsent_seg+0x284>)
  77492. 801f7fe: f00a f8ed bl 80299dc <iprintf>
  77493. return ERR_VAL;
  77494. 801f802: f06f 0305 mvn.w r3, #5
  77495. 801f806: e10c b.n 801fa22 <tcp_split_unsent_seg+0x272>
  77496. }
  77497. if (useg->len <= split) {
  77498. 801f808: 697b ldr r3, [r7, #20]
  77499. 801f80a: 891b ldrh r3, [r3, #8]
  77500. 801f80c: 887a ldrh r2, [r7, #2]
  77501. 801f80e: 429a cmp r2, r3
  77502. 801f810: d301 bcc.n 801f816 <tcp_split_unsent_seg+0x66>
  77503. return ERR_OK;
  77504. 801f812: 2300 movs r3, #0
  77505. 801f814: e105 b.n 801fa22 <tcp_split_unsent_seg+0x272>
  77506. }
  77507. LWIP_ASSERT("split <= mss", split <= pcb->mss);
  77508. 801f816: 687b ldr r3, [r7, #4]
  77509. 801f818: 8e5b ldrh r3, [r3, #50] @ 0x32
  77510. 801f81a: 887a ldrh r2, [r7, #2]
  77511. 801f81c: 429a cmp r2, r3
  77512. 801f81e: d906 bls.n 801f82e <tcp_split_unsent_seg+0x7e>
  77513. 801f820: 4b82 ldr r3, [pc, #520] @ (801fa2c <tcp_split_unsent_seg+0x27c>)
  77514. 801f822: f240 325b movw r2, #859 @ 0x35b
  77515. 801f826: 4985 ldr r1, [pc, #532] @ (801fa3c <tcp_split_unsent_seg+0x28c>)
  77516. 801f828: 4882 ldr r0, [pc, #520] @ (801fa34 <tcp_split_unsent_seg+0x284>)
  77517. 801f82a: f00a f8d7 bl 80299dc <iprintf>
  77518. LWIP_ASSERT("useg->len > 0", useg->len > 0);
  77519. 801f82e: 697b ldr r3, [r7, #20]
  77520. 801f830: 891b ldrh r3, [r3, #8]
  77521. 801f832: 2b00 cmp r3, #0
  77522. 801f834: d106 bne.n 801f844 <tcp_split_unsent_seg+0x94>
  77523. 801f836: 4b7d ldr r3, [pc, #500] @ (801fa2c <tcp_split_unsent_seg+0x27c>)
  77524. 801f838: f44f 7257 mov.w r2, #860 @ 0x35c
  77525. 801f83c: 4980 ldr r1, [pc, #512] @ (801fa40 <tcp_split_unsent_seg+0x290>)
  77526. 801f83e: 487d ldr r0, [pc, #500] @ (801fa34 <tcp_split_unsent_seg+0x284>)
  77527. 801f840: f00a f8cc bl 80299dc <iprintf>
  77528. * to split this packet so we may actually exceed the max value by
  77529. * one!
  77530. */
  77531. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue: split_unsent_seg: %u\n", (unsigned int)pcb->snd_queuelen));
  77532. optflags = useg->flags;
  77533. 801f844: 697b ldr r3, [r7, #20]
  77534. 801f846: 7b1b ldrb r3, [r3, #12]
  77535. 801f848: 73fb strb r3, [r7, #15]
  77536. #if TCP_CHECKSUM_ON_COPY
  77537. /* Remove since checksum is not stored until after tcp_create_segment() */
  77538. optflags &= ~TF_SEG_DATA_CHECKSUMMED;
  77539. #endif /* TCP_CHECKSUM_ON_COPY */
  77540. optlen = LWIP_TCP_OPT_LENGTH(optflags);
  77541. 801f84a: 7bfb ldrb r3, [r7, #15]
  77542. 801f84c: 009b lsls r3, r3, #2
  77543. 801f84e: b2db uxtb r3, r3
  77544. 801f850: f003 0304 and.w r3, r3, #4
  77545. 801f854: 73bb strb r3, [r7, #14]
  77546. remainder = useg->len - split;
  77547. 801f856: 697b ldr r3, [r7, #20]
  77548. 801f858: 891a ldrh r2, [r3, #8]
  77549. 801f85a: 887b ldrh r3, [r7, #2]
  77550. 801f85c: 1ad3 subs r3, r2, r3
  77551. 801f85e: 81bb strh r3, [r7, #12]
  77552. /* Create new pbuf for the remainder of the split */
  77553. p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM);
  77554. 801f860: 7bbb ldrb r3, [r7, #14]
  77555. 801f862: b29a uxth r2, r3
  77556. 801f864: 89bb ldrh r3, [r7, #12]
  77557. 801f866: 4413 add r3, r2
  77558. 801f868: b29b uxth r3, r3
  77559. 801f86a: f44f 7220 mov.w r2, #640 @ 0x280
  77560. 801f86e: 4619 mov r1, r3
  77561. 801f870: 2036 movs r0, #54 @ 0x36
  77562. 801f872: f7fa fb25 bl 8019ec0 <pbuf_alloc>
  77563. 801f876: 6138 str r0, [r7, #16]
  77564. if (p == NULL) {
  77565. 801f878: 693b ldr r3, [r7, #16]
  77566. 801f87a: 2b00 cmp r3, #0
  77567. 801f87c: f000 80ba beq.w 801f9f4 <tcp_split_unsent_seg+0x244>
  77568. ("tcp_split_unsent_seg: could not allocate memory for pbuf remainder %u\n", remainder));
  77569. goto memerr;
  77570. }
  77571. /* Offset into the original pbuf is past TCP/IP headers, options, and split amount */
  77572. offset = useg->p->tot_len - useg->len + split;
  77573. 801f880: 697b ldr r3, [r7, #20]
  77574. 801f882: 685b ldr r3, [r3, #4]
  77575. 801f884: 891a ldrh r2, [r3, #8]
  77576. 801f886: 697b ldr r3, [r7, #20]
  77577. 801f888: 891b ldrh r3, [r3, #8]
  77578. 801f88a: 1ad3 subs r3, r2, r3
  77579. 801f88c: b29a uxth r2, r3
  77580. 801f88e: 887b ldrh r3, [r7, #2]
  77581. 801f890: 4413 add r3, r2
  77582. 801f892: 817b strh r3, [r7, #10]
  77583. /* Copy remainder into new pbuf, headers and options will not be filled out */
  77584. if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) {
  77585. 801f894: 697b ldr r3, [r7, #20]
  77586. 801f896: 6858 ldr r0, [r3, #4]
  77587. 801f898: 693b ldr r3, [r7, #16]
  77588. 801f89a: 685a ldr r2, [r3, #4]
  77589. 801f89c: 7bbb ldrb r3, [r7, #14]
  77590. 801f89e: 18d1 adds r1, r2, r3
  77591. 801f8a0: 897b ldrh r3, [r7, #10]
  77592. 801f8a2: 89ba ldrh r2, [r7, #12]
  77593. 801f8a4: f7fb f828 bl 801a8f8 <pbuf_copy_partial>
  77594. 801f8a8: 4603 mov r3, r0
  77595. 801f8aa: 461a mov r2, r3
  77596. 801f8ac: 89bb ldrh r3, [r7, #12]
  77597. 801f8ae: 4293 cmp r3, r2
  77598. 801f8b0: f040 80a2 bne.w 801f9f8 <tcp_split_unsent_seg+0x248>
  77599. #endif /* TCP_CHECKSUM_ON_COPY */
  77600. /* Options are created when calling tcp_output() */
  77601. /* Migrate flags from original segment */
  77602. split_flags = TCPH_FLAGS(useg->tcphdr);
  77603. 801f8b4: 697b ldr r3, [r7, #20]
  77604. 801f8b6: 691b ldr r3, [r3, #16]
  77605. 801f8b8: 899b ldrh r3, [r3, #12]
  77606. 801f8ba: b29b uxth r3, r3
  77607. 801f8bc: 4618 mov r0, r3
  77608. 801f8be: f7f9 f933 bl 8018b28 <lwip_htons>
  77609. 801f8c2: 4603 mov r3, r0
  77610. 801f8c4: b2db uxtb r3, r3
  77611. 801f8c6: f003 033f and.w r3, r3, #63 @ 0x3f
  77612. 801f8ca: 77fb strb r3, [r7, #31]
  77613. remainder_flags = 0; /* ACK added in tcp_output() */
  77614. 801f8cc: 2300 movs r3, #0
  77615. 801f8ce: 77bb strb r3, [r7, #30]
  77616. if (split_flags & TCP_PSH) {
  77617. 801f8d0: 7ffb ldrb r3, [r7, #31]
  77618. 801f8d2: f003 0308 and.w r3, r3, #8
  77619. 801f8d6: 2b00 cmp r3, #0
  77620. 801f8d8: d007 beq.n 801f8ea <tcp_split_unsent_seg+0x13a>
  77621. split_flags &= ~TCP_PSH;
  77622. 801f8da: 7ffb ldrb r3, [r7, #31]
  77623. 801f8dc: f023 0308 bic.w r3, r3, #8
  77624. 801f8e0: 77fb strb r3, [r7, #31]
  77625. remainder_flags |= TCP_PSH;
  77626. 801f8e2: 7fbb ldrb r3, [r7, #30]
  77627. 801f8e4: f043 0308 orr.w r3, r3, #8
  77628. 801f8e8: 77bb strb r3, [r7, #30]
  77629. }
  77630. if (split_flags & TCP_FIN) {
  77631. 801f8ea: 7ffb ldrb r3, [r7, #31]
  77632. 801f8ec: f003 0301 and.w r3, r3, #1
  77633. 801f8f0: 2b00 cmp r3, #0
  77634. 801f8f2: d007 beq.n 801f904 <tcp_split_unsent_seg+0x154>
  77635. split_flags &= ~TCP_FIN;
  77636. 801f8f4: 7ffb ldrb r3, [r7, #31]
  77637. 801f8f6: f023 0301 bic.w r3, r3, #1
  77638. 801f8fa: 77fb strb r3, [r7, #31]
  77639. remainder_flags |= TCP_FIN;
  77640. 801f8fc: 7fbb ldrb r3, [r7, #30]
  77641. 801f8fe: f043 0301 orr.w r3, r3, #1
  77642. 801f902: 77bb strb r3, [r7, #30]
  77643. }
  77644. /* SYN should be left on split, RST should not be present with data */
  77645. seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags);
  77646. 801f904: 697b ldr r3, [r7, #20]
  77647. 801f906: 691b ldr r3, [r3, #16]
  77648. 801f908: 685b ldr r3, [r3, #4]
  77649. 801f90a: 4618 mov r0, r3
  77650. 801f90c: f7f9 f921 bl 8018b52 <lwip_htonl>
  77651. 801f910: 4602 mov r2, r0
  77652. 801f912: 887b ldrh r3, [r7, #2]
  77653. 801f914: 18d1 adds r1, r2, r3
  77654. 801f916: 7fba ldrb r2, [r7, #30]
  77655. 801f918: 7bfb ldrb r3, [r7, #15]
  77656. 801f91a: 9300 str r3, [sp, #0]
  77657. 801f91c: 460b mov r3, r1
  77658. 801f91e: 6939 ldr r1, [r7, #16]
  77659. 801f920: 6878 ldr r0, [r7, #4]
  77660. 801f922: f7ff f9f1 bl 801ed08 <tcp_create_segment>
  77661. 801f926: 61b8 str r0, [r7, #24]
  77662. if (seg == NULL) {
  77663. 801f928: 69bb ldr r3, [r7, #24]
  77664. 801f92a: 2b00 cmp r3, #0
  77665. 801f92c: d066 beq.n 801f9fc <tcp_split_unsent_seg+0x24c>
  77666. seg->chksum_swapped = chksum_swapped;
  77667. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  77668. #endif /* TCP_CHECKSUM_ON_COPY */
  77669. /* Remove this segment from the queue since trimming it may free pbufs */
  77670. pcb->snd_queuelen -= pbuf_clen(useg->p);
  77671. 801f92e: 697b ldr r3, [r7, #20]
  77672. 801f930: 685b ldr r3, [r3, #4]
  77673. 801f932: 4618 mov r0, r3
  77674. 801f934: f7fa fe68 bl 801a608 <pbuf_clen>
  77675. 801f938: 4603 mov r3, r0
  77676. 801f93a: 461a mov r2, r3
  77677. 801f93c: 687b ldr r3, [r7, #4]
  77678. 801f93e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77679. 801f942: 1a9b subs r3, r3, r2
  77680. 801f944: b29a uxth r2, r3
  77681. 801f946: 687b ldr r3, [r7, #4]
  77682. 801f948: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  77683. /* Trim the original pbuf into our split size. At this point our remainder segment must be setup
  77684. successfully because we are modifying the original segment */
  77685. pbuf_realloc(useg->p, useg->p->tot_len - remainder);
  77686. 801f94c: 697b ldr r3, [r7, #20]
  77687. 801f94e: 6858 ldr r0, [r3, #4]
  77688. 801f950: 697b ldr r3, [r7, #20]
  77689. 801f952: 685b ldr r3, [r3, #4]
  77690. 801f954: 891a ldrh r2, [r3, #8]
  77691. 801f956: 89bb ldrh r3, [r7, #12]
  77692. 801f958: 1ad3 subs r3, r2, r3
  77693. 801f95a: b29b uxth r3, r3
  77694. 801f95c: 4619 mov r1, r3
  77695. 801f95e: f7fa fc0f bl 801a180 <pbuf_realloc>
  77696. useg->len -= remainder;
  77697. 801f962: 697b ldr r3, [r7, #20]
  77698. 801f964: 891a ldrh r2, [r3, #8]
  77699. 801f966: 89bb ldrh r3, [r7, #12]
  77700. 801f968: 1ad3 subs r3, r2, r3
  77701. 801f96a: b29a uxth r2, r3
  77702. 801f96c: 697b ldr r3, [r7, #20]
  77703. 801f96e: 811a strh r2, [r3, #8]
  77704. TCPH_SET_FLAG(useg->tcphdr, split_flags);
  77705. 801f970: 697b ldr r3, [r7, #20]
  77706. 801f972: 691b ldr r3, [r3, #16]
  77707. 801f974: 899b ldrh r3, [r3, #12]
  77708. 801f976: b29c uxth r4, r3
  77709. 801f978: 7ffb ldrb r3, [r7, #31]
  77710. 801f97a: b29b uxth r3, r3
  77711. 801f97c: 4618 mov r0, r3
  77712. 801f97e: f7f9 f8d3 bl 8018b28 <lwip_htons>
  77713. 801f982: 4603 mov r3, r0
  77714. 801f984: 461a mov r2, r3
  77715. 801f986: 697b ldr r3, [r7, #20]
  77716. 801f988: 691b ldr r3, [r3, #16]
  77717. 801f98a: 4322 orrs r2, r4
  77718. 801f98c: b292 uxth r2, r2
  77719. 801f98e: 819a strh r2, [r3, #12]
  77720. #if TCP_OVERSIZE_DBGCHECK
  77721. /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */
  77722. useg->oversize_left = 0;
  77723. 801f990: 697b ldr r3, [r7, #20]
  77724. 801f992: 2200 movs r2, #0
  77725. 801f994: 815a strh r2, [r3, #10]
  77726. #endif /* TCP_OVERSIZE_DBGCHECK */
  77727. /* Add back to the queue with new trimmed pbuf */
  77728. pcb->snd_queuelen += pbuf_clen(useg->p);
  77729. 801f996: 697b ldr r3, [r7, #20]
  77730. 801f998: 685b ldr r3, [r3, #4]
  77731. 801f99a: 4618 mov r0, r3
  77732. 801f99c: f7fa fe34 bl 801a608 <pbuf_clen>
  77733. 801f9a0: 4603 mov r3, r0
  77734. 801f9a2: 461a mov r2, r3
  77735. 801f9a4: 687b ldr r3, [r7, #4]
  77736. 801f9a6: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77737. 801f9aa: 4413 add r3, r2
  77738. 801f9ac: b29a uxth r2, r3
  77739. 801f9ae: 687b ldr r3, [r7, #4]
  77740. 801f9b0: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  77741. #endif /* TCP_CHECKSUM_ON_COPY */
  77742. /* Update number of segments on the queues. Note that length now may
  77743. * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf
  77744. * because the total amount of data is constant when packet is split */
  77745. pcb->snd_queuelen += pbuf_clen(seg->p);
  77746. 801f9b4: 69bb ldr r3, [r7, #24]
  77747. 801f9b6: 685b ldr r3, [r3, #4]
  77748. 801f9b8: 4618 mov r0, r3
  77749. 801f9ba: f7fa fe25 bl 801a608 <pbuf_clen>
  77750. 801f9be: 4603 mov r3, r0
  77751. 801f9c0: 461a mov r2, r3
  77752. 801f9c2: 687b ldr r3, [r7, #4]
  77753. 801f9c4: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77754. 801f9c8: 4413 add r3, r2
  77755. 801f9ca: b29a uxth r2, r3
  77756. 801f9cc: 687b ldr r3, [r7, #4]
  77757. 801f9ce: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  77758. /* Finally insert remainder into queue after split (which stays head) */
  77759. seg->next = useg->next;
  77760. 801f9d2: 697b ldr r3, [r7, #20]
  77761. 801f9d4: 681a ldr r2, [r3, #0]
  77762. 801f9d6: 69bb ldr r3, [r7, #24]
  77763. 801f9d8: 601a str r2, [r3, #0]
  77764. useg->next = seg;
  77765. 801f9da: 697b ldr r3, [r7, #20]
  77766. 801f9dc: 69ba ldr r2, [r7, #24]
  77767. 801f9de: 601a str r2, [r3, #0]
  77768. #if TCP_OVERSIZE
  77769. /* If remainder is last segment on the unsent, ensure we clear the oversize amount
  77770. * because the remainder is always sized to the exact remaining amount */
  77771. if (seg->next == NULL) {
  77772. 801f9e0: 69bb ldr r3, [r7, #24]
  77773. 801f9e2: 681b ldr r3, [r3, #0]
  77774. 801f9e4: 2b00 cmp r3, #0
  77775. 801f9e6: d103 bne.n 801f9f0 <tcp_split_unsent_seg+0x240>
  77776. pcb->unsent_oversize = 0;
  77777. 801f9e8: 687b ldr r3, [r7, #4]
  77778. 801f9ea: 2200 movs r2, #0
  77779. 801f9ec: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  77780. }
  77781. #endif /* TCP_OVERSIZE */
  77782. return ERR_OK;
  77783. 801f9f0: 2300 movs r3, #0
  77784. 801f9f2: e016 b.n 801fa22 <tcp_split_unsent_seg+0x272>
  77785. goto memerr;
  77786. 801f9f4: bf00 nop
  77787. 801f9f6: e002 b.n 801f9fe <tcp_split_unsent_seg+0x24e>
  77788. goto memerr;
  77789. 801f9f8: bf00 nop
  77790. 801f9fa: e000 b.n 801f9fe <tcp_split_unsent_seg+0x24e>
  77791. goto memerr;
  77792. 801f9fc: bf00 nop
  77793. memerr:
  77794. TCP_STATS_INC(tcp.memerr);
  77795. LWIP_ASSERT("seg == NULL", seg == NULL);
  77796. 801f9fe: 69bb ldr r3, [r7, #24]
  77797. 801fa00: 2b00 cmp r3, #0
  77798. 801fa02: d006 beq.n 801fa12 <tcp_split_unsent_seg+0x262>
  77799. 801fa04: 4b09 ldr r3, [pc, #36] @ (801fa2c <tcp_split_unsent_seg+0x27c>)
  77800. 801fa06: f44f 7276 mov.w r2, #984 @ 0x3d8
  77801. 801fa0a: 490e ldr r1, [pc, #56] @ (801fa44 <tcp_split_unsent_seg+0x294>)
  77802. 801fa0c: 4809 ldr r0, [pc, #36] @ (801fa34 <tcp_split_unsent_seg+0x284>)
  77803. 801fa0e: f009 ffe5 bl 80299dc <iprintf>
  77804. if (p != NULL) {
  77805. 801fa12: 693b ldr r3, [r7, #16]
  77806. 801fa14: 2b00 cmp r3, #0
  77807. 801fa16: d002 beq.n 801fa1e <tcp_split_unsent_seg+0x26e>
  77808. pbuf_free(p);
  77809. 801fa18: 6938 ldr r0, [r7, #16]
  77810. 801fa1a: f7fa fd67 bl 801a4ec <pbuf_free>
  77811. }
  77812. return ERR_MEM;
  77813. 801fa1e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77814. }
  77815. 801fa22: 4618 mov r0, r3
  77816. 801fa24: 3724 adds r7, #36 @ 0x24
  77817. 801fa26: 46bd mov sp, r7
  77818. 801fa28: bd90 pop {r4, r7, pc}
  77819. 801fa2a: bf00 nop
  77820. 801fa2c: 0802f1d8 .word 0x0802f1d8
  77821. 801fa30: 0802f5c8 .word 0x0802f5c8
  77822. 801fa34: 0802f22c .word 0x0802f22c
  77823. 801fa38: 0802f5ec .word 0x0802f5ec
  77824. 801fa3c: 0802f610 .word 0x0802f610
  77825. 801fa40: 0802f620 .word 0x0802f620
  77826. 801fa44: 0802f630 .word 0x0802f630
  77827. 0801fa48 <tcp_send_fin>:
  77828. * @param pcb the tcp_pcb over which to send a segment
  77829. * @return ERR_OK if sent, another err_t otherwise
  77830. */
  77831. err_t
  77832. tcp_send_fin(struct tcp_pcb *pcb)
  77833. {
  77834. 801fa48: b590 push {r4, r7, lr}
  77835. 801fa4a: b085 sub sp, #20
  77836. 801fa4c: af00 add r7, sp, #0
  77837. 801fa4e: 6078 str r0, [r7, #4]
  77838. LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL);
  77839. 801fa50: 687b ldr r3, [r7, #4]
  77840. 801fa52: 2b00 cmp r3, #0
  77841. 801fa54: d106 bne.n 801fa64 <tcp_send_fin+0x1c>
  77842. 801fa56: 4b21 ldr r3, [pc, #132] @ (801fadc <tcp_send_fin+0x94>)
  77843. 801fa58: f240 32eb movw r2, #1003 @ 0x3eb
  77844. 801fa5c: 4920 ldr r1, [pc, #128] @ (801fae0 <tcp_send_fin+0x98>)
  77845. 801fa5e: 4821 ldr r0, [pc, #132] @ (801fae4 <tcp_send_fin+0x9c>)
  77846. 801fa60: f009 ffbc bl 80299dc <iprintf>
  77847. /* first, try to add the fin to the last unsent segment */
  77848. if (pcb->unsent != NULL) {
  77849. 801fa64: 687b ldr r3, [r7, #4]
  77850. 801fa66: 6edb ldr r3, [r3, #108] @ 0x6c
  77851. 801fa68: 2b00 cmp r3, #0
  77852. 801fa6a: d02e beq.n 801faca <tcp_send_fin+0x82>
  77853. struct tcp_seg *last_unsent;
  77854. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  77855. 801fa6c: 687b ldr r3, [r7, #4]
  77856. 801fa6e: 6edb ldr r3, [r3, #108] @ 0x6c
  77857. 801fa70: 60fb str r3, [r7, #12]
  77858. 801fa72: e002 b.n 801fa7a <tcp_send_fin+0x32>
  77859. last_unsent = last_unsent->next);
  77860. 801fa74: 68fb ldr r3, [r7, #12]
  77861. 801fa76: 681b ldr r3, [r3, #0]
  77862. 801fa78: 60fb str r3, [r7, #12]
  77863. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  77864. 801fa7a: 68fb ldr r3, [r7, #12]
  77865. 801fa7c: 681b ldr r3, [r3, #0]
  77866. 801fa7e: 2b00 cmp r3, #0
  77867. 801fa80: d1f8 bne.n 801fa74 <tcp_send_fin+0x2c>
  77868. if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
  77869. 801fa82: 68fb ldr r3, [r7, #12]
  77870. 801fa84: 691b ldr r3, [r3, #16]
  77871. 801fa86: 899b ldrh r3, [r3, #12]
  77872. 801fa88: b29b uxth r3, r3
  77873. 801fa8a: 4618 mov r0, r3
  77874. 801fa8c: f7f9 f84c bl 8018b28 <lwip_htons>
  77875. 801fa90: 4603 mov r3, r0
  77876. 801fa92: b2db uxtb r3, r3
  77877. 801fa94: f003 0307 and.w r3, r3, #7
  77878. 801fa98: 2b00 cmp r3, #0
  77879. 801fa9a: d116 bne.n 801faca <tcp_send_fin+0x82>
  77880. /* no SYN/FIN/RST flag in the header, we can add the FIN flag */
  77881. TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
  77882. 801fa9c: 68fb ldr r3, [r7, #12]
  77883. 801fa9e: 691b ldr r3, [r3, #16]
  77884. 801faa0: 899b ldrh r3, [r3, #12]
  77885. 801faa2: b29c uxth r4, r3
  77886. 801faa4: 2001 movs r0, #1
  77887. 801faa6: f7f9 f83f bl 8018b28 <lwip_htons>
  77888. 801faaa: 4603 mov r3, r0
  77889. 801faac: 461a mov r2, r3
  77890. 801faae: 68fb ldr r3, [r7, #12]
  77891. 801fab0: 691b ldr r3, [r3, #16]
  77892. 801fab2: 4322 orrs r2, r4
  77893. 801fab4: b292 uxth r2, r2
  77894. 801fab6: 819a strh r2, [r3, #12]
  77895. tcp_set_flags(pcb, TF_FIN);
  77896. 801fab8: 687b ldr r3, [r7, #4]
  77897. 801faba: 8b5b ldrh r3, [r3, #26]
  77898. 801fabc: f043 0320 orr.w r3, r3, #32
  77899. 801fac0: b29a uxth r2, r3
  77900. 801fac2: 687b ldr r3, [r7, #4]
  77901. 801fac4: 835a strh r2, [r3, #26]
  77902. return ERR_OK;
  77903. 801fac6: 2300 movs r3, #0
  77904. 801fac8: e004 b.n 801fad4 <tcp_send_fin+0x8c>
  77905. }
  77906. }
  77907. /* no data, no length, flags, copy=1, no optdata */
  77908. return tcp_enqueue_flags(pcb, TCP_FIN);
  77909. 801faca: 2101 movs r1, #1
  77910. 801facc: 6878 ldr r0, [r7, #4]
  77911. 801face: f000 f80b bl 801fae8 <tcp_enqueue_flags>
  77912. 801fad2: 4603 mov r3, r0
  77913. }
  77914. 801fad4: 4618 mov r0, r3
  77915. 801fad6: 3714 adds r7, #20
  77916. 801fad8: 46bd mov sp, r7
  77917. 801fada: bd90 pop {r4, r7, pc}
  77918. 801fadc: 0802f1d8 .word 0x0802f1d8
  77919. 801fae0: 0802f63c .word 0x0802f63c
  77920. 801fae4: 0802f22c .word 0x0802f22c
  77921. 0801fae8 <tcp_enqueue_flags>:
  77922. * @param pcb Protocol control block for the TCP connection.
  77923. * @param flags TCP header flags to set in the outgoing segment.
  77924. */
  77925. err_t
  77926. tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags)
  77927. {
  77928. 801fae8: b580 push {r7, lr}
  77929. 801faea: b088 sub sp, #32
  77930. 801faec: af02 add r7, sp, #8
  77931. 801faee: 6078 str r0, [r7, #4]
  77932. 801faf0: 460b mov r3, r1
  77933. 801faf2: 70fb strb r3, [r7, #3]
  77934. struct pbuf *p;
  77935. struct tcp_seg *seg;
  77936. u8_t optflags = 0;
  77937. 801faf4: 2300 movs r3, #0
  77938. 801faf6: 75fb strb r3, [r7, #23]
  77939. u8_t optlen = 0;
  77940. 801faf8: 2300 movs r3, #0
  77941. 801fafa: 75bb strb r3, [r7, #22]
  77942. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen));
  77943. LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)",
  77944. 801fafc: 78fb ldrb r3, [r7, #3]
  77945. 801fafe: f003 0303 and.w r3, r3, #3
  77946. 801fb02: 2b00 cmp r3, #0
  77947. 801fb04: d106 bne.n 801fb14 <tcp_enqueue_flags+0x2c>
  77948. 801fb06: 4b67 ldr r3, [pc, #412] @ (801fca4 <tcp_enqueue_flags+0x1bc>)
  77949. 801fb08: f240 4211 movw r2, #1041 @ 0x411
  77950. 801fb0c: 4966 ldr r1, [pc, #408] @ (801fca8 <tcp_enqueue_flags+0x1c0>)
  77951. 801fb0e: 4867 ldr r0, [pc, #412] @ (801fcac <tcp_enqueue_flags+0x1c4>)
  77952. 801fb10: f009 ff64 bl 80299dc <iprintf>
  77953. (flags & (TCP_SYN | TCP_FIN)) != 0);
  77954. LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL);
  77955. 801fb14: 687b ldr r3, [r7, #4]
  77956. 801fb16: 2b00 cmp r3, #0
  77957. 801fb18: d106 bne.n 801fb28 <tcp_enqueue_flags+0x40>
  77958. 801fb1a: 4b62 ldr r3, [pc, #392] @ (801fca4 <tcp_enqueue_flags+0x1bc>)
  77959. 801fb1c: f240 4213 movw r2, #1043 @ 0x413
  77960. 801fb20: 4963 ldr r1, [pc, #396] @ (801fcb0 <tcp_enqueue_flags+0x1c8>)
  77961. 801fb22: 4862 ldr r0, [pc, #392] @ (801fcac <tcp_enqueue_flags+0x1c4>)
  77962. 801fb24: f009 ff5a bl 80299dc <iprintf>
  77963. /* No need to check pcb->snd_queuelen if only SYN or FIN are allowed! */
  77964. /* Get options for this segment. This is a special case since this is the
  77965. only place where a SYN can be sent. */
  77966. if (flags & TCP_SYN) {
  77967. 801fb28: 78fb ldrb r3, [r7, #3]
  77968. 801fb2a: f003 0302 and.w r3, r3, #2
  77969. 801fb2e: 2b00 cmp r3, #0
  77970. 801fb30: d001 beq.n 801fb36 <tcp_enqueue_flags+0x4e>
  77971. optflags = TF_SEG_OPTS_MSS;
  77972. 801fb32: 2301 movs r3, #1
  77973. 801fb34: 75fb strb r3, [r7, #23]
  77974. /* Make sure the timestamp option is only included in data segments if we
  77975. agreed about it with the remote host (and in active open SYN segments). */
  77976. optflags |= TF_SEG_OPTS_TS;
  77977. }
  77978. #endif /* LWIP_TCP_TIMESTAMPS */
  77979. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  77980. 801fb36: 7dfb ldrb r3, [r7, #23]
  77981. 801fb38: 009b lsls r3, r3, #2
  77982. 801fb3a: b2db uxtb r3, r3
  77983. 801fb3c: f003 0304 and.w r3, r3, #4
  77984. 801fb40: 75bb strb r3, [r7, #22]
  77985. /* Allocate pbuf with room for TCP header + options */
  77986. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  77987. 801fb42: 7dbb ldrb r3, [r7, #22]
  77988. 801fb44: b29b uxth r3, r3
  77989. 801fb46: f44f 7220 mov.w r2, #640 @ 0x280
  77990. 801fb4a: 4619 mov r1, r3
  77991. 801fb4c: 2036 movs r0, #54 @ 0x36
  77992. 801fb4e: f7fa f9b7 bl 8019ec0 <pbuf_alloc>
  77993. 801fb52: 60f8 str r0, [r7, #12]
  77994. 801fb54: 68fb ldr r3, [r7, #12]
  77995. 801fb56: 2b00 cmp r3, #0
  77996. 801fb58: d109 bne.n 801fb6e <tcp_enqueue_flags+0x86>
  77997. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77998. 801fb5a: 687b ldr r3, [r7, #4]
  77999. 801fb5c: 8b5b ldrh r3, [r3, #26]
  78000. 801fb5e: f043 0380 orr.w r3, r3, #128 @ 0x80
  78001. 801fb62: b29a uxth r2, r3
  78002. 801fb64: 687b ldr r3, [r7, #4]
  78003. 801fb66: 835a strh r2, [r3, #26]
  78004. TCP_STATS_INC(tcp.memerr);
  78005. return ERR_MEM;
  78006. 801fb68: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  78007. 801fb6c: e095 b.n 801fc9a <tcp_enqueue_flags+0x1b2>
  78008. }
  78009. LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen",
  78010. 801fb6e: 68fb ldr r3, [r7, #12]
  78011. 801fb70: 895a ldrh r2, [r3, #10]
  78012. 801fb72: 7dbb ldrb r3, [r7, #22]
  78013. 801fb74: b29b uxth r3, r3
  78014. 801fb76: 429a cmp r2, r3
  78015. 801fb78: d206 bcs.n 801fb88 <tcp_enqueue_flags+0xa0>
  78016. 801fb7a: 4b4a ldr r3, [pc, #296] @ (801fca4 <tcp_enqueue_flags+0x1bc>)
  78017. 801fb7c: f240 4239 movw r2, #1081 @ 0x439
  78018. 801fb80: 494c ldr r1, [pc, #304] @ (801fcb4 <tcp_enqueue_flags+0x1cc>)
  78019. 801fb82: 484a ldr r0, [pc, #296] @ (801fcac <tcp_enqueue_flags+0x1c4>)
  78020. 801fb84: f009 ff2a bl 80299dc <iprintf>
  78021. (p->len >= optlen));
  78022. /* Allocate memory for tcp_seg, and fill in fields. */
  78023. if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) {
  78024. 801fb88: 687b ldr r3, [r7, #4]
  78025. 801fb8a: 6dd9 ldr r1, [r3, #92] @ 0x5c
  78026. 801fb8c: 78fa ldrb r2, [r7, #3]
  78027. 801fb8e: 7dfb ldrb r3, [r7, #23]
  78028. 801fb90: 9300 str r3, [sp, #0]
  78029. 801fb92: 460b mov r3, r1
  78030. 801fb94: 68f9 ldr r1, [r7, #12]
  78031. 801fb96: 6878 ldr r0, [r7, #4]
  78032. 801fb98: f7ff f8b6 bl 801ed08 <tcp_create_segment>
  78033. 801fb9c: 60b8 str r0, [r7, #8]
  78034. 801fb9e: 68bb ldr r3, [r7, #8]
  78035. 801fba0: 2b00 cmp r3, #0
  78036. 801fba2: d109 bne.n 801fbb8 <tcp_enqueue_flags+0xd0>
  78037. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  78038. 801fba4: 687b ldr r3, [r7, #4]
  78039. 801fba6: 8b5b ldrh r3, [r3, #26]
  78040. 801fba8: f043 0380 orr.w r3, r3, #128 @ 0x80
  78041. 801fbac: b29a uxth r2, r3
  78042. 801fbae: 687b ldr r3, [r7, #4]
  78043. 801fbb0: 835a strh r2, [r3, #26]
  78044. TCP_STATS_INC(tcp.memerr);
  78045. return ERR_MEM;
  78046. 801fbb2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  78047. 801fbb6: e070 b.n 801fc9a <tcp_enqueue_flags+0x1b2>
  78048. }
  78049. LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0);
  78050. 801fbb8: 68bb ldr r3, [r7, #8]
  78051. 801fbba: 691b ldr r3, [r3, #16]
  78052. 801fbbc: f003 0303 and.w r3, r3, #3
  78053. 801fbc0: 2b00 cmp r3, #0
  78054. 801fbc2: d006 beq.n 801fbd2 <tcp_enqueue_flags+0xea>
  78055. 801fbc4: 4b37 ldr r3, [pc, #220] @ (801fca4 <tcp_enqueue_flags+0x1bc>)
  78056. 801fbc6: f240 4242 movw r2, #1090 @ 0x442
  78057. 801fbca: 493b ldr r1, [pc, #236] @ (801fcb8 <tcp_enqueue_flags+0x1d0>)
  78058. 801fbcc: 4837 ldr r0, [pc, #220] @ (801fcac <tcp_enqueue_flags+0x1c4>)
  78059. 801fbce: f009 ff05 bl 80299dc <iprintf>
  78060. LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0);
  78061. 801fbd2: 68bb ldr r3, [r7, #8]
  78062. 801fbd4: 891b ldrh r3, [r3, #8]
  78063. 801fbd6: 2b00 cmp r3, #0
  78064. 801fbd8: d006 beq.n 801fbe8 <tcp_enqueue_flags+0x100>
  78065. 801fbda: 4b32 ldr r3, [pc, #200] @ (801fca4 <tcp_enqueue_flags+0x1bc>)
  78066. 801fbdc: f240 4243 movw r2, #1091 @ 0x443
  78067. 801fbe0: 4936 ldr r1, [pc, #216] @ (801fcbc <tcp_enqueue_flags+0x1d4>)
  78068. 801fbe2: 4832 ldr r0, [pc, #200] @ (801fcac <tcp_enqueue_flags+0x1c4>)
  78069. 801fbe4: f009 fefa bl 80299dc <iprintf>
  78070. lwip_ntohl(seg->tcphdr->seqno),
  78071. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg),
  78072. (u16_t)flags));
  78073. /* Now append seg to pcb->unsent queue */
  78074. if (pcb->unsent == NULL) {
  78075. 801fbe8: 687b ldr r3, [r7, #4]
  78076. 801fbea: 6edb ldr r3, [r3, #108] @ 0x6c
  78077. 801fbec: 2b00 cmp r3, #0
  78078. 801fbee: d103 bne.n 801fbf8 <tcp_enqueue_flags+0x110>
  78079. pcb->unsent = seg;
  78080. 801fbf0: 687b ldr r3, [r7, #4]
  78081. 801fbf2: 68ba ldr r2, [r7, #8]
  78082. 801fbf4: 66da str r2, [r3, #108] @ 0x6c
  78083. 801fbf6: e00d b.n 801fc14 <tcp_enqueue_flags+0x12c>
  78084. } else {
  78085. struct tcp_seg *useg;
  78086. for (useg = pcb->unsent; useg->next != NULL; useg = useg->next);
  78087. 801fbf8: 687b ldr r3, [r7, #4]
  78088. 801fbfa: 6edb ldr r3, [r3, #108] @ 0x6c
  78089. 801fbfc: 613b str r3, [r7, #16]
  78090. 801fbfe: e002 b.n 801fc06 <tcp_enqueue_flags+0x11e>
  78091. 801fc00: 693b ldr r3, [r7, #16]
  78092. 801fc02: 681b ldr r3, [r3, #0]
  78093. 801fc04: 613b str r3, [r7, #16]
  78094. 801fc06: 693b ldr r3, [r7, #16]
  78095. 801fc08: 681b ldr r3, [r3, #0]
  78096. 801fc0a: 2b00 cmp r3, #0
  78097. 801fc0c: d1f8 bne.n 801fc00 <tcp_enqueue_flags+0x118>
  78098. useg->next = seg;
  78099. 801fc0e: 693b ldr r3, [r7, #16]
  78100. 801fc10: 68ba ldr r2, [r7, #8]
  78101. 801fc12: 601a str r2, [r3, #0]
  78102. }
  78103. #if TCP_OVERSIZE
  78104. /* The new unsent tail has no space */
  78105. pcb->unsent_oversize = 0;
  78106. 801fc14: 687b ldr r3, [r7, #4]
  78107. 801fc16: 2200 movs r2, #0
  78108. 801fc18: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  78109. #endif /* TCP_OVERSIZE */
  78110. /* SYN and FIN bump the sequence number */
  78111. if ((flags & TCP_SYN) || (flags & TCP_FIN)) {
  78112. 801fc1c: 78fb ldrb r3, [r7, #3]
  78113. 801fc1e: f003 0302 and.w r3, r3, #2
  78114. 801fc22: 2b00 cmp r3, #0
  78115. 801fc24: d104 bne.n 801fc30 <tcp_enqueue_flags+0x148>
  78116. 801fc26: 78fb ldrb r3, [r7, #3]
  78117. 801fc28: f003 0301 and.w r3, r3, #1
  78118. 801fc2c: 2b00 cmp r3, #0
  78119. 801fc2e: d004 beq.n 801fc3a <tcp_enqueue_flags+0x152>
  78120. pcb->snd_lbb++;
  78121. 801fc30: 687b ldr r3, [r7, #4]
  78122. 801fc32: 6ddb ldr r3, [r3, #92] @ 0x5c
  78123. 801fc34: 1c5a adds r2, r3, #1
  78124. 801fc36: 687b ldr r3, [r7, #4]
  78125. 801fc38: 65da str r2, [r3, #92] @ 0x5c
  78126. /* optlen does not influence snd_buf */
  78127. }
  78128. if (flags & TCP_FIN) {
  78129. 801fc3a: 78fb ldrb r3, [r7, #3]
  78130. 801fc3c: f003 0301 and.w r3, r3, #1
  78131. 801fc40: 2b00 cmp r3, #0
  78132. 801fc42: d006 beq.n 801fc52 <tcp_enqueue_flags+0x16a>
  78133. tcp_set_flags(pcb, TF_FIN);
  78134. 801fc44: 687b ldr r3, [r7, #4]
  78135. 801fc46: 8b5b ldrh r3, [r3, #26]
  78136. 801fc48: f043 0320 orr.w r3, r3, #32
  78137. 801fc4c: b29a uxth r2, r3
  78138. 801fc4e: 687b ldr r3, [r7, #4]
  78139. 801fc50: 835a strh r2, [r3, #26]
  78140. }
  78141. /* update number of segments on the queues */
  78142. pcb->snd_queuelen += pbuf_clen(seg->p);
  78143. 801fc52: 68bb ldr r3, [r7, #8]
  78144. 801fc54: 685b ldr r3, [r3, #4]
  78145. 801fc56: 4618 mov r0, r3
  78146. 801fc58: f7fa fcd6 bl 801a608 <pbuf_clen>
  78147. 801fc5c: 4603 mov r3, r0
  78148. 801fc5e: 461a mov r2, r3
  78149. 801fc60: 687b ldr r3, [r7, #4]
  78150. 801fc62: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78151. 801fc66: 4413 add r3, r2
  78152. 801fc68: b29a uxth r2, r3
  78153. 801fc6a: 687b ldr r3, [r7, #4]
  78154. 801fc6c: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  78155. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen));
  78156. if (pcb->snd_queuelen != 0) {
  78157. 801fc70: 687b ldr r3, [r7, #4]
  78158. 801fc72: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78159. 801fc76: 2b00 cmp r3, #0
  78160. 801fc78: d00e beq.n 801fc98 <tcp_enqueue_flags+0x1b0>
  78161. LWIP_ASSERT("tcp_enqueue_flags: invalid queue length",
  78162. 801fc7a: 687b ldr r3, [r7, #4]
  78163. 801fc7c: 6f1b ldr r3, [r3, #112] @ 0x70
  78164. 801fc7e: 2b00 cmp r3, #0
  78165. 801fc80: d10a bne.n 801fc98 <tcp_enqueue_flags+0x1b0>
  78166. 801fc82: 687b ldr r3, [r7, #4]
  78167. 801fc84: 6edb ldr r3, [r3, #108] @ 0x6c
  78168. 801fc86: 2b00 cmp r3, #0
  78169. 801fc88: d106 bne.n 801fc98 <tcp_enqueue_flags+0x1b0>
  78170. 801fc8a: 4b06 ldr r3, [pc, #24] @ (801fca4 <tcp_enqueue_flags+0x1bc>)
  78171. 801fc8c: f240 4265 movw r2, #1125 @ 0x465
  78172. 801fc90: 490b ldr r1, [pc, #44] @ (801fcc0 <tcp_enqueue_flags+0x1d8>)
  78173. 801fc92: 4806 ldr r0, [pc, #24] @ (801fcac <tcp_enqueue_flags+0x1c4>)
  78174. 801fc94: f009 fea2 bl 80299dc <iprintf>
  78175. pcb->unacked != NULL || pcb->unsent != NULL);
  78176. }
  78177. return ERR_OK;
  78178. 801fc98: 2300 movs r3, #0
  78179. }
  78180. 801fc9a: 4618 mov r0, r3
  78181. 801fc9c: 3718 adds r7, #24
  78182. 801fc9e: 46bd mov sp, r7
  78183. 801fca0: bd80 pop {r7, pc}
  78184. 801fca2: bf00 nop
  78185. 801fca4: 0802f1d8 .word 0x0802f1d8
  78186. 801fca8: 0802f658 .word 0x0802f658
  78187. 801fcac: 0802f22c .word 0x0802f22c
  78188. 801fcb0: 0802f6b0 .word 0x0802f6b0
  78189. 801fcb4: 0802f6d0 .word 0x0802f6d0
  78190. 801fcb8: 0802f70c .word 0x0802f70c
  78191. 801fcbc: 0802f724 .word 0x0802f724
  78192. 801fcc0: 0802f750 .word 0x0802f750
  78193. 0801fcc4 <tcp_output>:
  78194. * @return ERR_OK if data has been sent or nothing to send
  78195. * another err_t on error
  78196. */
  78197. err_t
  78198. tcp_output(struct tcp_pcb *pcb)
  78199. {
  78200. 801fcc4: b5b0 push {r4, r5, r7, lr}
  78201. 801fcc6: b08a sub sp, #40 @ 0x28
  78202. 801fcc8: af00 add r7, sp, #0
  78203. 801fcca: 6078 str r0, [r7, #4]
  78204. struct netif *netif;
  78205. #if TCP_CWND_DEBUG
  78206. s16_t i = 0;
  78207. #endif /* TCP_CWND_DEBUG */
  78208. LWIP_ASSERT_CORE_LOCKED();
  78209. 801fccc: f7f0 fc3a bl 8010544 <sys_check_core_locking>
  78210. LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL);
  78211. 801fcd0: 687b ldr r3, [r7, #4]
  78212. 801fcd2: 2b00 cmp r3, #0
  78213. 801fcd4: d106 bne.n 801fce4 <tcp_output+0x20>
  78214. 801fcd6: 4b8a ldr r3, [pc, #552] @ (801ff00 <tcp_output+0x23c>)
  78215. 801fcd8: f240 42e1 movw r2, #1249 @ 0x4e1
  78216. 801fcdc: 4989 ldr r1, [pc, #548] @ (801ff04 <tcp_output+0x240>)
  78217. 801fcde: 488a ldr r0, [pc, #552] @ (801ff08 <tcp_output+0x244>)
  78218. 801fce0: f009 fe7c bl 80299dc <iprintf>
  78219. /* pcb->state LISTEN not allowed here */
  78220. LWIP_ASSERT("don't call tcp_output for listen-pcbs",
  78221. 801fce4: 687b ldr r3, [r7, #4]
  78222. 801fce6: 7d1b ldrb r3, [r3, #20]
  78223. 801fce8: 2b01 cmp r3, #1
  78224. 801fcea: d106 bne.n 801fcfa <tcp_output+0x36>
  78225. 801fcec: 4b84 ldr r3, [pc, #528] @ (801ff00 <tcp_output+0x23c>)
  78226. 801fcee: f240 42e3 movw r2, #1251 @ 0x4e3
  78227. 801fcf2: 4986 ldr r1, [pc, #536] @ (801ff0c <tcp_output+0x248>)
  78228. 801fcf4: 4884 ldr r0, [pc, #528] @ (801ff08 <tcp_output+0x244>)
  78229. 801fcf6: f009 fe71 bl 80299dc <iprintf>
  78230. /* First, check if we are invoked by the TCP input processing
  78231. code. If so, we do not output anything. Instead, we rely on the
  78232. input processing code to call us when input processing is done
  78233. with. */
  78234. if (tcp_input_pcb == pcb) {
  78235. 801fcfa: 4b85 ldr r3, [pc, #532] @ (801ff10 <tcp_output+0x24c>)
  78236. 801fcfc: 681b ldr r3, [r3, #0]
  78237. 801fcfe: 687a ldr r2, [r7, #4]
  78238. 801fd00: 429a cmp r2, r3
  78239. 801fd02: d101 bne.n 801fd08 <tcp_output+0x44>
  78240. return ERR_OK;
  78241. 801fd04: 2300 movs r3, #0
  78242. 801fd06: e1d1 b.n 80200ac <tcp_output+0x3e8>
  78243. }
  78244. wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd);
  78245. 801fd08: 687b ldr r3, [r7, #4]
  78246. 801fd0a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  78247. 801fd0e: 687b ldr r3, [r7, #4]
  78248. 801fd10: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  78249. 801fd14: 4293 cmp r3, r2
  78250. 801fd16: bf28 it cs
  78251. 801fd18: 4613 movcs r3, r2
  78252. 801fd1a: b29b uxth r3, r3
  78253. 801fd1c: 61bb str r3, [r7, #24]
  78254. seg = pcb->unsent;
  78255. 801fd1e: 687b ldr r3, [r7, #4]
  78256. 801fd20: 6edb ldr r3, [r3, #108] @ 0x6c
  78257. 801fd22: 627b str r3, [r7, #36] @ 0x24
  78258. if (seg == NULL) {
  78259. 801fd24: 6a7b ldr r3, [r7, #36] @ 0x24
  78260. 801fd26: 2b00 cmp r3, #0
  78261. 801fd28: d10b bne.n 801fd42 <tcp_output+0x7e>
  78262. ", seg == NULL, ack %"U32_F"\n",
  78263. pcb->snd_wnd, pcb->cwnd, wnd, pcb->lastack));
  78264. /* If the TF_ACK_NOW flag is set and the ->unsent queue is empty, construct
  78265. * an empty ACK segment and send it. */
  78266. if (pcb->flags & TF_ACK_NOW) {
  78267. 801fd2a: 687b ldr r3, [r7, #4]
  78268. 801fd2c: 8b5b ldrh r3, [r3, #26]
  78269. 801fd2e: f003 0302 and.w r3, r3, #2
  78270. 801fd32: 2b00 cmp r3, #0
  78271. 801fd34: f000 81ad beq.w 8020092 <tcp_output+0x3ce>
  78272. return tcp_send_empty_ack(pcb);
  78273. 801fd38: 6878 ldr r0, [r7, #4]
  78274. 801fd3a: f000 fdd7 bl 80208ec <tcp_send_empty_ack>
  78275. 801fd3e: 4603 mov r3, r0
  78276. 801fd40: e1b4 b.n 80200ac <tcp_output+0x3e8>
  78277. pcb->snd_wnd, pcb->cwnd, wnd,
  78278. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len,
  78279. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack));
  78280. }
  78281. netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip);
  78282. 801fd42: 6879 ldr r1, [r7, #4]
  78283. 801fd44: 687b ldr r3, [r7, #4]
  78284. 801fd46: 3304 adds r3, #4
  78285. 801fd48: 461a mov r2, r3
  78286. 801fd4a: 6878 ldr r0, [r7, #4]
  78287. 801fd4c: f7fe ffc0 bl 801ecd0 <tcp_route>
  78288. 801fd50: 6178 str r0, [r7, #20]
  78289. if (netif == NULL) {
  78290. 801fd52: 697b ldr r3, [r7, #20]
  78291. 801fd54: 2b00 cmp r3, #0
  78292. 801fd56: d102 bne.n 801fd5e <tcp_output+0x9a>
  78293. return ERR_RTE;
  78294. 801fd58: f06f 0303 mvn.w r3, #3
  78295. 801fd5c: e1a6 b.n 80200ac <tcp_output+0x3e8>
  78296. }
  78297. /* If we don't have a local IP address, we get one from netif */
  78298. if (ip_addr_isany(&pcb->local_ip)) {
  78299. 801fd5e: 687b ldr r3, [r7, #4]
  78300. 801fd60: 2b00 cmp r3, #0
  78301. 801fd62: d003 beq.n 801fd6c <tcp_output+0xa8>
  78302. 801fd64: 687b ldr r3, [r7, #4]
  78303. 801fd66: 681b ldr r3, [r3, #0]
  78304. 801fd68: 2b00 cmp r3, #0
  78305. 801fd6a: d111 bne.n 801fd90 <tcp_output+0xcc>
  78306. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip);
  78307. 801fd6c: 697b ldr r3, [r7, #20]
  78308. 801fd6e: 2b00 cmp r3, #0
  78309. 801fd70: d002 beq.n 801fd78 <tcp_output+0xb4>
  78310. 801fd72: 697b ldr r3, [r7, #20]
  78311. 801fd74: 3304 adds r3, #4
  78312. 801fd76: e000 b.n 801fd7a <tcp_output+0xb6>
  78313. 801fd78: 2300 movs r3, #0
  78314. 801fd7a: 613b str r3, [r7, #16]
  78315. if (local_ip == NULL) {
  78316. 801fd7c: 693b ldr r3, [r7, #16]
  78317. 801fd7e: 2b00 cmp r3, #0
  78318. 801fd80: d102 bne.n 801fd88 <tcp_output+0xc4>
  78319. return ERR_RTE;
  78320. 801fd82: f06f 0303 mvn.w r3, #3
  78321. 801fd86: e191 b.n 80200ac <tcp_output+0x3e8>
  78322. }
  78323. ip_addr_copy(pcb->local_ip, *local_ip);
  78324. 801fd88: 693b ldr r3, [r7, #16]
  78325. 801fd8a: 681a ldr r2, [r3, #0]
  78326. 801fd8c: 687b ldr r3, [r7, #4]
  78327. 801fd8e: 601a str r2, [r3, #0]
  78328. }
  78329. /* Handle the current segment not fitting within the window */
  78330. if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) {
  78331. 801fd90: 6a7b ldr r3, [r7, #36] @ 0x24
  78332. 801fd92: 691b ldr r3, [r3, #16]
  78333. 801fd94: 685b ldr r3, [r3, #4]
  78334. 801fd96: 4618 mov r0, r3
  78335. 801fd98: f7f8 fedb bl 8018b52 <lwip_htonl>
  78336. 801fd9c: 4602 mov r2, r0
  78337. 801fd9e: 687b ldr r3, [r7, #4]
  78338. 801fda0: 6c5b ldr r3, [r3, #68] @ 0x44
  78339. 801fda2: 1ad3 subs r3, r2, r3
  78340. 801fda4: 6a7a ldr r2, [r7, #36] @ 0x24
  78341. 801fda6: 8912 ldrh r2, [r2, #8]
  78342. 801fda8: 4413 add r3, r2
  78343. 801fdaa: 69ba ldr r2, [r7, #24]
  78344. 801fdac: 429a cmp r2, r3
  78345. 801fdae: d227 bcs.n 801fe00 <tcp_output+0x13c>
  78346. * within the remaining (could be 0) send window and RTO timer is not running (we
  78347. * have no in-flight data). If window is still too small after persist timer fires,
  78348. * then we split the segment. We don't consider the congestion window since a cwnd
  78349. * smaller than 1 SMSS implies in-flight data
  78350. */
  78351. if (wnd == pcb->snd_wnd && pcb->unacked == NULL && pcb->persist_backoff == 0) {
  78352. 801fdb0: 687b ldr r3, [r7, #4]
  78353. 801fdb2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  78354. 801fdb6: 461a mov r2, r3
  78355. 801fdb8: 69bb ldr r3, [r7, #24]
  78356. 801fdba: 4293 cmp r3, r2
  78357. 801fdbc: d114 bne.n 801fde8 <tcp_output+0x124>
  78358. 801fdbe: 687b ldr r3, [r7, #4]
  78359. 801fdc0: 6f1b ldr r3, [r3, #112] @ 0x70
  78360. 801fdc2: 2b00 cmp r3, #0
  78361. 801fdc4: d110 bne.n 801fde8 <tcp_output+0x124>
  78362. 801fdc6: 687b ldr r3, [r7, #4]
  78363. 801fdc8: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  78364. 801fdcc: 2b00 cmp r3, #0
  78365. 801fdce: d10b bne.n 801fde8 <tcp_output+0x124>
  78366. pcb->persist_cnt = 0;
  78367. 801fdd0: 687b ldr r3, [r7, #4]
  78368. 801fdd2: 2200 movs r2, #0
  78369. 801fdd4: f883 2098 strb.w r2, [r3, #152] @ 0x98
  78370. pcb->persist_backoff = 1;
  78371. 801fdd8: 687b ldr r3, [r7, #4]
  78372. 801fdda: 2201 movs r2, #1
  78373. 801fddc: f883 2099 strb.w r2, [r3, #153] @ 0x99
  78374. pcb->persist_probe = 0;
  78375. 801fde0: 687b ldr r3, [r7, #4]
  78376. 801fde2: 2200 movs r2, #0
  78377. 801fde4: f883 209a strb.w r2, [r3, #154] @ 0x9a
  78378. }
  78379. /* We need an ACK, but can't send data now, so send an empty ACK */
  78380. if (pcb->flags & TF_ACK_NOW) {
  78381. 801fde8: 687b ldr r3, [r7, #4]
  78382. 801fdea: 8b5b ldrh r3, [r3, #26]
  78383. 801fdec: f003 0302 and.w r3, r3, #2
  78384. 801fdf0: 2b00 cmp r3, #0
  78385. 801fdf2: f000 8150 beq.w 8020096 <tcp_output+0x3d2>
  78386. return tcp_send_empty_ack(pcb);
  78387. 801fdf6: 6878 ldr r0, [r7, #4]
  78388. 801fdf8: f000 fd78 bl 80208ec <tcp_send_empty_ack>
  78389. 801fdfc: 4603 mov r3, r0
  78390. 801fdfe: e155 b.n 80200ac <tcp_output+0x3e8>
  78391. }
  78392. goto output_done;
  78393. }
  78394. /* Stop persist timer, above conditions are not active */
  78395. pcb->persist_backoff = 0;
  78396. 801fe00: 687b ldr r3, [r7, #4]
  78397. 801fe02: 2200 movs r2, #0
  78398. 801fe04: f883 2099 strb.w r2, [r3, #153] @ 0x99
  78399. /* useg should point to last segment on unacked queue */
  78400. useg = pcb->unacked;
  78401. 801fe08: 687b ldr r3, [r7, #4]
  78402. 801fe0a: 6f1b ldr r3, [r3, #112] @ 0x70
  78403. 801fe0c: 623b str r3, [r7, #32]
  78404. if (useg != NULL) {
  78405. 801fe0e: 6a3b ldr r3, [r7, #32]
  78406. 801fe10: 2b00 cmp r3, #0
  78407. 801fe12: f000 811f beq.w 8020054 <tcp_output+0x390>
  78408. for (; useg->next != NULL; useg = useg->next);
  78409. 801fe16: e002 b.n 801fe1e <tcp_output+0x15a>
  78410. 801fe18: 6a3b ldr r3, [r7, #32]
  78411. 801fe1a: 681b ldr r3, [r3, #0]
  78412. 801fe1c: 623b str r3, [r7, #32]
  78413. 801fe1e: 6a3b ldr r3, [r7, #32]
  78414. 801fe20: 681b ldr r3, [r3, #0]
  78415. 801fe22: 2b00 cmp r3, #0
  78416. 801fe24: d1f8 bne.n 801fe18 <tcp_output+0x154>
  78417. }
  78418. /* data available and window allows it to be sent? */
  78419. while (seg != NULL &&
  78420. 801fe26: e115 b.n 8020054 <tcp_output+0x390>
  78421. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  78422. LWIP_ASSERT("RST not expected here!",
  78423. 801fe28: 6a7b ldr r3, [r7, #36] @ 0x24
  78424. 801fe2a: 691b ldr r3, [r3, #16]
  78425. 801fe2c: 899b ldrh r3, [r3, #12]
  78426. 801fe2e: b29b uxth r3, r3
  78427. 801fe30: 4618 mov r0, r3
  78428. 801fe32: f7f8 fe79 bl 8018b28 <lwip_htons>
  78429. 801fe36: 4603 mov r3, r0
  78430. 801fe38: b2db uxtb r3, r3
  78431. 801fe3a: f003 0304 and.w r3, r3, #4
  78432. 801fe3e: 2b00 cmp r3, #0
  78433. 801fe40: d006 beq.n 801fe50 <tcp_output+0x18c>
  78434. 801fe42: 4b2f ldr r3, [pc, #188] @ (801ff00 <tcp_output+0x23c>)
  78435. 801fe44: f240 5236 movw r2, #1334 @ 0x536
  78436. 801fe48: 4932 ldr r1, [pc, #200] @ (801ff14 <tcp_output+0x250>)
  78437. 801fe4a: 482f ldr r0, [pc, #188] @ (801ff08 <tcp_output+0x244>)
  78438. 801fe4c: f009 fdc6 bl 80299dc <iprintf>
  78439. * - if tcp_write had a memory error before (prevent delayed ACK timeout) or
  78440. * - if FIN was already enqueued for this PCB (SYN is always alone in a segment -
  78441. * either seg->next != NULL or pcb->unacked == NULL;
  78442. * RST is no sent using tcp_write/tcp_output.
  78443. */
  78444. if ((tcp_do_output_nagle(pcb) == 0) &&
  78445. 801fe50: 687b ldr r3, [r7, #4]
  78446. 801fe52: 6f1b ldr r3, [r3, #112] @ 0x70
  78447. 801fe54: 2b00 cmp r3, #0
  78448. 801fe56: d01f beq.n 801fe98 <tcp_output+0x1d4>
  78449. 801fe58: 687b ldr r3, [r7, #4]
  78450. 801fe5a: 8b5b ldrh r3, [r3, #26]
  78451. 801fe5c: f003 0344 and.w r3, r3, #68 @ 0x44
  78452. 801fe60: 2b00 cmp r3, #0
  78453. 801fe62: d119 bne.n 801fe98 <tcp_output+0x1d4>
  78454. 801fe64: 687b ldr r3, [r7, #4]
  78455. 801fe66: 6edb ldr r3, [r3, #108] @ 0x6c
  78456. 801fe68: 2b00 cmp r3, #0
  78457. 801fe6a: d00b beq.n 801fe84 <tcp_output+0x1c0>
  78458. 801fe6c: 687b ldr r3, [r7, #4]
  78459. 801fe6e: 6edb ldr r3, [r3, #108] @ 0x6c
  78460. 801fe70: 681b ldr r3, [r3, #0]
  78461. 801fe72: 2b00 cmp r3, #0
  78462. 801fe74: d110 bne.n 801fe98 <tcp_output+0x1d4>
  78463. 801fe76: 687b ldr r3, [r7, #4]
  78464. 801fe78: 6edb ldr r3, [r3, #108] @ 0x6c
  78465. 801fe7a: 891a ldrh r2, [r3, #8]
  78466. 801fe7c: 687b ldr r3, [r7, #4]
  78467. 801fe7e: 8e5b ldrh r3, [r3, #50] @ 0x32
  78468. 801fe80: 429a cmp r2, r3
  78469. 801fe82: d209 bcs.n 801fe98 <tcp_output+0x1d4>
  78470. 801fe84: 687b ldr r3, [r7, #4]
  78471. 801fe86: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  78472. 801fe8a: 2b00 cmp r3, #0
  78473. 801fe8c: d004 beq.n 801fe98 <tcp_output+0x1d4>
  78474. 801fe8e: 687b ldr r3, [r7, #4]
  78475. 801fe90: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78476. 801fe94: 2b0f cmp r3, #15
  78477. 801fe96: d901 bls.n 801fe9c <tcp_output+0x1d8>
  78478. 801fe98: 2301 movs r3, #1
  78479. 801fe9a: e000 b.n 801fe9e <tcp_output+0x1da>
  78480. 801fe9c: 2300 movs r3, #0
  78481. 801fe9e: 2b00 cmp r3, #0
  78482. 801fea0: d106 bne.n 801feb0 <tcp_output+0x1ec>
  78483. ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) {
  78484. 801fea2: 687b ldr r3, [r7, #4]
  78485. 801fea4: 8b5b ldrh r3, [r3, #26]
  78486. 801fea6: f003 03a0 and.w r3, r3, #160 @ 0xa0
  78487. if ((tcp_do_output_nagle(pcb) == 0) &&
  78488. 801feaa: 2b00 cmp r3, #0
  78489. 801feac: f000 80e7 beq.w 802007e <tcp_output+0x3ba>
  78490. pcb->lastack,
  78491. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i));
  78492. ++i;
  78493. #endif /* TCP_CWND_DEBUG */
  78494. if (pcb->state != SYN_SENT) {
  78495. 801feb0: 687b ldr r3, [r7, #4]
  78496. 801feb2: 7d1b ldrb r3, [r3, #20]
  78497. 801feb4: 2b02 cmp r3, #2
  78498. 801feb6: d00d beq.n 801fed4 <tcp_output+0x210>
  78499. TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
  78500. 801feb8: 6a7b ldr r3, [r7, #36] @ 0x24
  78501. 801feba: 691b ldr r3, [r3, #16]
  78502. 801febc: 899b ldrh r3, [r3, #12]
  78503. 801febe: b29c uxth r4, r3
  78504. 801fec0: 2010 movs r0, #16
  78505. 801fec2: f7f8 fe31 bl 8018b28 <lwip_htons>
  78506. 801fec6: 4603 mov r3, r0
  78507. 801fec8: 461a mov r2, r3
  78508. 801feca: 6a7b ldr r3, [r7, #36] @ 0x24
  78509. 801fecc: 691b ldr r3, [r3, #16]
  78510. 801fece: 4322 orrs r2, r4
  78511. 801fed0: b292 uxth r2, r2
  78512. 801fed2: 819a strh r2, [r3, #12]
  78513. }
  78514. err = tcp_output_segment(seg, pcb, netif);
  78515. 801fed4: 697a ldr r2, [r7, #20]
  78516. 801fed6: 6879 ldr r1, [r7, #4]
  78517. 801fed8: 6a78 ldr r0, [r7, #36] @ 0x24
  78518. 801feda: f000 f90b bl 80200f4 <tcp_output_segment>
  78519. 801fede: 4603 mov r3, r0
  78520. 801fee0: 73fb strb r3, [r7, #15]
  78521. if (err != ERR_OK) {
  78522. 801fee2: f997 300f ldrsb.w r3, [r7, #15]
  78523. 801fee6: 2b00 cmp r3, #0
  78524. 801fee8: d016 beq.n 801ff18 <tcp_output+0x254>
  78525. /* segment could not be sent, for whatever reason */
  78526. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  78527. 801feea: 687b ldr r3, [r7, #4]
  78528. 801feec: 8b5b ldrh r3, [r3, #26]
  78529. 801feee: f043 0380 orr.w r3, r3, #128 @ 0x80
  78530. 801fef2: b29a uxth r2, r3
  78531. 801fef4: 687b ldr r3, [r7, #4]
  78532. 801fef6: 835a strh r2, [r3, #26]
  78533. return err;
  78534. 801fef8: f997 300f ldrsb.w r3, [r7, #15]
  78535. 801fefc: e0d6 b.n 80200ac <tcp_output+0x3e8>
  78536. 801fefe: bf00 nop
  78537. 801ff00: 0802f1d8 .word 0x0802f1d8
  78538. 801ff04: 0802f778 .word 0x0802f778
  78539. 801ff08: 0802f22c .word 0x0802f22c
  78540. 801ff0c: 0802f790 .word 0x0802f790
  78541. 801ff10: 2402aed8 .word 0x2402aed8
  78542. 801ff14: 0802f7b8 .word 0x0802f7b8
  78543. }
  78544. #if TCP_OVERSIZE_DBGCHECK
  78545. seg->oversize_left = 0;
  78546. 801ff18: 6a7b ldr r3, [r7, #36] @ 0x24
  78547. 801ff1a: 2200 movs r2, #0
  78548. 801ff1c: 815a strh r2, [r3, #10]
  78549. #endif /* TCP_OVERSIZE_DBGCHECK */
  78550. pcb->unsent = seg->next;
  78551. 801ff1e: 6a7b ldr r3, [r7, #36] @ 0x24
  78552. 801ff20: 681a ldr r2, [r3, #0]
  78553. 801ff22: 687b ldr r3, [r7, #4]
  78554. 801ff24: 66da str r2, [r3, #108] @ 0x6c
  78555. if (pcb->state != SYN_SENT) {
  78556. 801ff26: 687b ldr r3, [r7, #4]
  78557. 801ff28: 7d1b ldrb r3, [r3, #20]
  78558. 801ff2a: 2b02 cmp r3, #2
  78559. 801ff2c: d006 beq.n 801ff3c <tcp_output+0x278>
  78560. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  78561. 801ff2e: 687b ldr r3, [r7, #4]
  78562. 801ff30: 8b5b ldrh r3, [r3, #26]
  78563. 801ff32: f023 0303 bic.w r3, r3, #3
  78564. 801ff36: b29a uxth r2, r3
  78565. 801ff38: 687b ldr r3, [r7, #4]
  78566. 801ff3a: 835a strh r2, [r3, #26]
  78567. }
  78568. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  78569. 801ff3c: 6a7b ldr r3, [r7, #36] @ 0x24
  78570. 801ff3e: 691b ldr r3, [r3, #16]
  78571. 801ff40: 685b ldr r3, [r3, #4]
  78572. 801ff42: 4618 mov r0, r3
  78573. 801ff44: f7f8 fe05 bl 8018b52 <lwip_htonl>
  78574. 801ff48: 4604 mov r4, r0
  78575. 801ff4a: 6a7b ldr r3, [r7, #36] @ 0x24
  78576. 801ff4c: 891b ldrh r3, [r3, #8]
  78577. 801ff4e: 461d mov r5, r3
  78578. 801ff50: 6a7b ldr r3, [r7, #36] @ 0x24
  78579. 801ff52: 691b ldr r3, [r3, #16]
  78580. 801ff54: 899b ldrh r3, [r3, #12]
  78581. 801ff56: b29b uxth r3, r3
  78582. 801ff58: 4618 mov r0, r3
  78583. 801ff5a: f7f8 fde5 bl 8018b28 <lwip_htons>
  78584. 801ff5e: 4603 mov r3, r0
  78585. 801ff60: b2db uxtb r3, r3
  78586. 801ff62: f003 0303 and.w r3, r3, #3
  78587. 801ff66: 2b00 cmp r3, #0
  78588. 801ff68: d001 beq.n 801ff6e <tcp_output+0x2aa>
  78589. 801ff6a: 2301 movs r3, #1
  78590. 801ff6c: e000 b.n 801ff70 <tcp_output+0x2ac>
  78591. 801ff6e: 2300 movs r3, #0
  78592. 801ff70: 442b add r3, r5
  78593. 801ff72: 4423 add r3, r4
  78594. 801ff74: 60bb str r3, [r7, #8]
  78595. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  78596. 801ff76: 687b ldr r3, [r7, #4]
  78597. 801ff78: 6d1a ldr r2, [r3, #80] @ 0x50
  78598. 801ff7a: 68bb ldr r3, [r7, #8]
  78599. 801ff7c: 1ad3 subs r3, r2, r3
  78600. 801ff7e: 2b00 cmp r3, #0
  78601. 801ff80: da02 bge.n 801ff88 <tcp_output+0x2c4>
  78602. pcb->snd_nxt = snd_nxt;
  78603. 801ff82: 687b ldr r3, [r7, #4]
  78604. 801ff84: 68ba ldr r2, [r7, #8]
  78605. 801ff86: 651a str r2, [r3, #80] @ 0x50
  78606. }
  78607. /* put segment on unacknowledged list if length > 0 */
  78608. if (TCP_TCPLEN(seg) > 0) {
  78609. 801ff88: 6a7b ldr r3, [r7, #36] @ 0x24
  78610. 801ff8a: 891b ldrh r3, [r3, #8]
  78611. 801ff8c: 461c mov r4, r3
  78612. 801ff8e: 6a7b ldr r3, [r7, #36] @ 0x24
  78613. 801ff90: 691b ldr r3, [r3, #16]
  78614. 801ff92: 899b ldrh r3, [r3, #12]
  78615. 801ff94: b29b uxth r3, r3
  78616. 801ff96: 4618 mov r0, r3
  78617. 801ff98: f7f8 fdc6 bl 8018b28 <lwip_htons>
  78618. 801ff9c: 4603 mov r3, r0
  78619. 801ff9e: b2db uxtb r3, r3
  78620. 801ffa0: f003 0303 and.w r3, r3, #3
  78621. 801ffa4: 2b00 cmp r3, #0
  78622. 801ffa6: d001 beq.n 801ffac <tcp_output+0x2e8>
  78623. 801ffa8: 2301 movs r3, #1
  78624. 801ffaa: e000 b.n 801ffae <tcp_output+0x2ea>
  78625. 801ffac: 2300 movs r3, #0
  78626. 801ffae: 4423 add r3, r4
  78627. 801ffb0: 2b00 cmp r3, #0
  78628. 801ffb2: d049 beq.n 8020048 <tcp_output+0x384>
  78629. seg->next = NULL;
  78630. 801ffb4: 6a7b ldr r3, [r7, #36] @ 0x24
  78631. 801ffb6: 2200 movs r2, #0
  78632. 801ffb8: 601a str r2, [r3, #0]
  78633. /* unacked list is empty? */
  78634. if (pcb->unacked == NULL) {
  78635. 801ffba: 687b ldr r3, [r7, #4]
  78636. 801ffbc: 6f1b ldr r3, [r3, #112] @ 0x70
  78637. 801ffbe: 2b00 cmp r3, #0
  78638. 801ffc0: d105 bne.n 801ffce <tcp_output+0x30a>
  78639. pcb->unacked = seg;
  78640. 801ffc2: 687b ldr r3, [r7, #4]
  78641. 801ffc4: 6a7a ldr r2, [r7, #36] @ 0x24
  78642. 801ffc6: 671a str r2, [r3, #112] @ 0x70
  78643. useg = seg;
  78644. 801ffc8: 6a7b ldr r3, [r7, #36] @ 0x24
  78645. 801ffca: 623b str r3, [r7, #32]
  78646. 801ffcc: e03f b.n 802004e <tcp_output+0x38a>
  78647. /* unacked list is not empty? */
  78648. } else {
  78649. /* In the case of fast retransmit, the packet should not go to the tail
  78650. * of the unacked queue, but rather somewhere before it. We need to check for
  78651. * this case. -STJ Jul 27, 2004 */
  78652. if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
  78653. 801ffce: 6a7b ldr r3, [r7, #36] @ 0x24
  78654. 801ffd0: 691b ldr r3, [r3, #16]
  78655. 801ffd2: 685b ldr r3, [r3, #4]
  78656. 801ffd4: 4618 mov r0, r3
  78657. 801ffd6: f7f8 fdbc bl 8018b52 <lwip_htonl>
  78658. 801ffda: 4604 mov r4, r0
  78659. 801ffdc: 6a3b ldr r3, [r7, #32]
  78660. 801ffde: 691b ldr r3, [r3, #16]
  78661. 801ffe0: 685b ldr r3, [r3, #4]
  78662. 801ffe2: 4618 mov r0, r3
  78663. 801ffe4: f7f8 fdb5 bl 8018b52 <lwip_htonl>
  78664. 801ffe8: 4603 mov r3, r0
  78665. 801ffea: 1ae3 subs r3, r4, r3
  78666. 801ffec: 2b00 cmp r3, #0
  78667. 801ffee: da24 bge.n 802003a <tcp_output+0x376>
  78668. /* add segment to before tail of unacked list, keeping the list sorted */
  78669. struct tcp_seg **cur_seg = &(pcb->unacked);
  78670. 801fff0: 687b ldr r3, [r7, #4]
  78671. 801fff2: 3370 adds r3, #112 @ 0x70
  78672. 801fff4: 61fb str r3, [r7, #28]
  78673. while (*cur_seg &&
  78674. 801fff6: e002 b.n 801fffe <tcp_output+0x33a>
  78675. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  78676. cur_seg = &((*cur_seg)->next );
  78677. 801fff8: 69fb ldr r3, [r7, #28]
  78678. 801fffa: 681b ldr r3, [r3, #0]
  78679. 801fffc: 61fb str r3, [r7, #28]
  78680. while (*cur_seg &&
  78681. 801fffe: 69fb ldr r3, [r7, #28]
  78682. 8020000: 681b ldr r3, [r3, #0]
  78683. 8020002: 2b00 cmp r3, #0
  78684. 8020004: d011 beq.n 802002a <tcp_output+0x366>
  78685. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  78686. 8020006: 69fb ldr r3, [r7, #28]
  78687. 8020008: 681b ldr r3, [r3, #0]
  78688. 802000a: 691b ldr r3, [r3, #16]
  78689. 802000c: 685b ldr r3, [r3, #4]
  78690. 802000e: 4618 mov r0, r3
  78691. 8020010: f7f8 fd9f bl 8018b52 <lwip_htonl>
  78692. 8020014: 4604 mov r4, r0
  78693. 8020016: 6a7b ldr r3, [r7, #36] @ 0x24
  78694. 8020018: 691b ldr r3, [r3, #16]
  78695. 802001a: 685b ldr r3, [r3, #4]
  78696. 802001c: 4618 mov r0, r3
  78697. 802001e: f7f8 fd98 bl 8018b52 <lwip_htonl>
  78698. 8020022: 4603 mov r3, r0
  78699. 8020024: 1ae3 subs r3, r4, r3
  78700. while (*cur_seg &&
  78701. 8020026: 2b00 cmp r3, #0
  78702. 8020028: dbe6 blt.n 801fff8 <tcp_output+0x334>
  78703. }
  78704. seg->next = (*cur_seg);
  78705. 802002a: 69fb ldr r3, [r7, #28]
  78706. 802002c: 681a ldr r2, [r3, #0]
  78707. 802002e: 6a7b ldr r3, [r7, #36] @ 0x24
  78708. 8020030: 601a str r2, [r3, #0]
  78709. (*cur_seg) = seg;
  78710. 8020032: 69fb ldr r3, [r7, #28]
  78711. 8020034: 6a7a ldr r2, [r7, #36] @ 0x24
  78712. 8020036: 601a str r2, [r3, #0]
  78713. 8020038: e009 b.n 802004e <tcp_output+0x38a>
  78714. } else {
  78715. /* add segment to tail of unacked list */
  78716. useg->next = seg;
  78717. 802003a: 6a3b ldr r3, [r7, #32]
  78718. 802003c: 6a7a ldr r2, [r7, #36] @ 0x24
  78719. 802003e: 601a str r2, [r3, #0]
  78720. useg = useg->next;
  78721. 8020040: 6a3b ldr r3, [r7, #32]
  78722. 8020042: 681b ldr r3, [r3, #0]
  78723. 8020044: 623b str r3, [r7, #32]
  78724. 8020046: e002 b.n 802004e <tcp_output+0x38a>
  78725. }
  78726. }
  78727. /* do not queue empty segments on the unacked list */
  78728. } else {
  78729. tcp_seg_free(seg);
  78730. 8020048: 6a78 ldr r0, [r7, #36] @ 0x24
  78731. 802004a: f7fb fea8 bl 801bd9e <tcp_seg_free>
  78732. }
  78733. seg = pcb->unsent;
  78734. 802004e: 687b ldr r3, [r7, #4]
  78735. 8020050: 6edb ldr r3, [r3, #108] @ 0x6c
  78736. 8020052: 627b str r3, [r7, #36] @ 0x24
  78737. while (seg != NULL &&
  78738. 8020054: 6a7b ldr r3, [r7, #36] @ 0x24
  78739. 8020056: 2b00 cmp r3, #0
  78740. 8020058: d012 beq.n 8020080 <tcp_output+0x3bc>
  78741. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  78742. 802005a: 6a7b ldr r3, [r7, #36] @ 0x24
  78743. 802005c: 691b ldr r3, [r3, #16]
  78744. 802005e: 685b ldr r3, [r3, #4]
  78745. 8020060: 4618 mov r0, r3
  78746. 8020062: f7f8 fd76 bl 8018b52 <lwip_htonl>
  78747. 8020066: 4602 mov r2, r0
  78748. 8020068: 687b ldr r3, [r7, #4]
  78749. 802006a: 6c5b ldr r3, [r3, #68] @ 0x44
  78750. 802006c: 1ad3 subs r3, r2, r3
  78751. 802006e: 6a7a ldr r2, [r7, #36] @ 0x24
  78752. 8020070: 8912 ldrh r2, [r2, #8]
  78753. 8020072: 4413 add r3, r2
  78754. while (seg != NULL &&
  78755. 8020074: 69ba ldr r2, [r7, #24]
  78756. 8020076: 429a cmp r2, r3
  78757. 8020078: f4bf aed6 bcs.w 801fe28 <tcp_output+0x164>
  78758. 802007c: e000 b.n 8020080 <tcp_output+0x3bc>
  78759. break;
  78760. 802007e: bf00 nop
  78761. }
  78762. #if TCP_OVERSIZE
  78763. if (pcb->unsent == NULL) {
  78764. 8020080: 687b ldr r3, [r7, #4]
  78765. 8020082: 6edb ldr r3, [r3, #108] @ 0x6c
  78766. 8020084: 2b00 cmp r3, #0
  78767. 8020086: d108 bne.n 802009a <tcp_output+0x3d6>
  78768. /* last unsent has been removed, reset unsent_oversize */
  78769. pcb->unsent_oversize = 0;
  78770. 8020088: 687b ldr r3, [r7, #4]
  78771. 802008a: 2200 movs r2, #0
  78772. 802008c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  78773. 8020090: e004 b.n 802009c <tcp_output+0x3d8>
  78774. goto output_done;
  78775. 8020092: bf00 nop
  78776. 8020094: e002 b.n 802009c <tcp_output+0x3d8>
  78777. goto output_done;
  78778. 8020096: bf00 nop
  78779. 8020098: e000 b.n 802009c <tcp_output+0x3d8>
  78780. }
  78781. #endif /* TCP_OVERSIZE */
  78782. output_done:
  78783. 802009a: bf00 nop
  78784. tcp_clear_flags(pcb, TF_NAGLEMEMERR);
  78785. 802009c: 687b ldr r3, [r7, #4]
  78786. 802009e: 8b5b ldrh r3, [r3, #26]
  78787. 80200a0: f023 0380 bic.w r3, r3, #128 @ 0x80
  78788. 80200a4: b29a uxth r2, r3
  78789. 80200a6: 687b ldr r3, [r7, #4]
  78790. 80200a8: 835a strh r2, [r3, #26]
  78791. return ERR_OK;
  78792. 80200aa: 2300 movs r3, #0
  78793. }
  78794. 80200ac: 4618 mov r0, r3
  78795. 80200ae: 3728 adds r7, #40 @ 0x28
  78796. 80200b0: 46bd mov sp, r7
  78797. 80200b2: bdb0 pop {r4, r5, r7, pc}
  78798. 080200b4 <tcp_output_segment_busy>:
  78799. * @arg seg the tcp segment to check
  78800. * @return 1 if ref != 1, 0 if ref == 1
  78801. */
  78802. static int
  78803. tcp_output_segment_busy(const struct tcp_seg *seg)
  78804. {
  78805. 80200b4: b580 push {r7, lr}
  78806. 80200b6: b082 sub sp, #8
  78807. 80200b8: af00 add r7, sp, #0
  78808. 80200ba: 6078 str r0, [r7, #4]
  78809. LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL);
  78810. 80200bc: 687b ldr r3, [r7, #4]
  78811. 80200be: 2b00 cmp r3, #0
  78812. 80200c0: d106 bne.n 80200d0 <tcp_output_segment_busy+0x1c>
  78813. 80200c2: 4b09 ldr r3, [pc, #36] @ (80200e8 <tcp_output_segment_busy+0x34>)
  78814. 80200c4: f240 529a movw r2, #1434 @ 0x59a
  78815. 80200c8: 4908 ldr r1, [pc, #32] @ (80200ec <tcp_output_segment_busy+0x38>)
  78816. 80200ca: 4809 ldr r0, [pc, #36] @ (80200f0 <tcp_output_segment_busy+0x3c>)
  78817. 80200cc: f009 fc86 bl 80299dc <iprintf>
  78818. /* We only need to check the first pbuf here:
  78819. If a pbuf is queued for transmission, a driver calls pbuf_ref(),
  78820. which only changes the ref count of the first pbuf */
  78821. if (seg->p->ref != 1) {
  78822. 80200d0: 687b ldr r3, [r7, #4]
  78823. 80200d2: 685b ldr r3, [r3, #4]
  78824. 80200d4: 7b9b ldrb r3, [r3, #14]
  78825. 80200d6: 2b01 cmp r3, #1
  78826. 80200d8: d001 beq.n 80200de <tcp_output_segment_busy+0x2a>
  78827. /* other reference found */
  78828. return 1;
  78829. 80200da: 2301 movs r3, #1
  78830. 80200dc: e000 b.n 80200e0 <tcp_output_segment_busy+0x2c>
  78831. }
  78832. /* no other references found */
  78833. return 0;
  78834. 80200de: 2300 movs r3, #0
  78835. }
  78836. 80200e0: 4618 mov r0, r3
  78837. 80200e2: 3708 adds r7, #8
  78838. 80200e4: 46bd mov sp, r7
  78839. 80200e6: bd80 pop {r7, pc}
  78840. 80200e8: 0802f1d8 .word 0x0802f1d8
  78841. 80200ec: 0802f7d0 .word 0x0802f7d0
  78842. 80200f0: 0802f22c .word 0x0802f22c
  78843. 080200f4 <tcp_output_segment>:
  78844. * @param pcb the tcp_pcb for the TCP connection used to send the segment
  78845. * @param netif the netif used to send the segment
  78846. */
  78847. static err_t
  78848. tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif)
  78849. {
  78850. 80200f4: b5b0 push {r4, r5, r7, lr}
  78851. 80200f6: b08c sub sp, #48 @ 0x30
  78852. 80200f8: af04 add r7, sp, #16
  78853. 80200fa: 60f8 str r0, [r7, #12]
  78854. 80200fc: 60b9 str r1, [r7, #8]
  78855. 80200fe: 607a str r2, [r7, #4]
  78856. u32_t *opts;
  78857. #if TCP_CHECKSUM_ON_COPY
  78858. int seg_chksum_was_swapped = 0;
  78859. #endif
  78860. LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL);
  78861. 8020100: 68fb ldr r3, [r7, #12]
  78862. 8020102: 2b00 cmp r3, #0
  78863. 8020104: d106 bne.n 8020114 <tcp_output_segment+0x20>
  78864. 8020106: 4b64 ldr r3, [pc, #400] @ (8020298 <tcp_output_segment+0x1a4>)
  78865. 8020108: f44f 62b7 mov.w r2, #1464 @ 0x5b8
  78866. 802010c: 4963 ldr r1, [pc, #396] @ (802029c <tcp_output_segment+0x1a8>)
  78867. 802010e: 4864 ldr r0, [pc, #400] @ (80202a0 <tcp_output_segment+0x1ac>)
  78868. 8020110: f009 fc64 bl 80299dc <iprintf>
  78869. LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL);
  78870. 8020114: 68bb ldr r3, [r7, #8]
  78871. 8020116: 2b00 cmp r3, #0
  78872. 8020118: d106 bne.n 8020128 <tcp_output_segment+0x34>
  78873. 802011a: 4b5f ldr r3, [pc, #380] @ (8020298 <tcp_output_segment+0x1a4>)
  78874. 802011c: f240 52b9 movw r2, #1465 @ 0x5b9
  78875. 8020120: 4960 ldr r1, [pc, #384] @ (80202a4 <tcp_output_segment+0x1b0>)
  78876. 8020122: 485f ldr r0, [pc, #380] @ (80202a0 <tcp_output_segment+0x1ac>)
  78877. 8020124: f009 fc5a bl 80299dc <iprintf>
  78878. LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL);
  78879. 8020128: 687b ldr r3, [r7, #4]
  78880. 802012a: 2b00 cmp r3, #0
  78881. 802012c: d106 bne.n 802013c <tcp_output_segment+0x48>
  78882. 802012e: 4b5a ldr r3, [pc, #360] @ (8020298 <tcp_output_segment+0x1a4>)
  78883. 8020130: f240 52ba movw r2, #1466 @ 0x5ba
  78884. 8020134: 495c ldr r1, [pc, #368] @ (80202a8 <tcp_output_segment+0x1b4>)
  78885. 8020136: 485a ldr r0, [pc, #360] @ (80202a0 <tcp_output_segment+0x1ac>)
  78886. 8020138: f009 fc50 bl 80299dc <iprintf>
  78887. if (tcp_output_segment_busy(seg)) {
  78888. 802013c: 68f8 ldr r0, [r7, #12]
  78889. 802013e: f7ff ffb9 bl 80200b4 <tcp_output_segment_busy>
  78890. 8020142: 4603 mov r3, r0
  78891. 8020144: 2b00 cmp r3, #0
  78892. 8020146: d001 beq.n 802014c <tcp_output_segment+0x58>
  78893. /* This should not happen: rexmit functions should have checked this.
  78894. However, since this function modifies p->len, we must not continue in this case. */
  78895. LWIP_DEBUGF(TCP_RTO_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_output_segment: segment busy\n"));
  78896. return ERR_OK;
  78897. 8020148: 2300 movs r3, #0
  78898. 802014a: e0a1 b.n 8020290 <tcp_output_segment+0x19c>
  78899. }
  78900. /* The TCP header has already been constructed, but the ackno and
  78901. wnd fields remain. */
  78902. seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt);
  78903. 802014c: 68bb ldr r3, [r7, #8]
  78904. 802014e: 6a5a ldr r2, [r3, #36] @ 0x24
  78905. 8020150: 68fb ldr r3, [r7, #12]
  78906. 8020152: 691c ldr r4, [r3, #16]
  78907. 8020154: 4610 mov r0, r2
  78908. 8020156: f7f8 fcfc bl 8018b52 <lwip_htonl>
  78909. 802015a: 4603 mov r3, r0
  78910. 802015c: 60a3 str r3, [r4, #8]
  78911. the window scale option) is never scaled. */
  78912. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(pcb->rcv_ann_wnd));
  78913. } else
  78914. #endif /* LWIP_WND_SCALE */
  78915. {
  78916. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  78917. 802015e: 68bb ldr r3, [r7, #8]
  78918. 8020160: 8d5a ldrh r2, [r3, #42] @ 0x2a
  78919. 8020162: 68fb ldr r3, [r7, #12]
  78920. 8020164: 691c ldr r4, [r3, #16]
  78921. 8020166: 4610 mov r0, r2
  78922. 8020168: f7f8 fcde bl 8018b28 <lwip_htons>
  78923. 802016c: 4603 mov r3, r0
  78924. 802016e: 81e3 strh r3, [r4, #14]
  78925. }
  78926. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  78927. 8020170: 68bb ldr r3, [r7, #8]
  78928. 8020172: 6a5b ldr r3, [r3, #36] @ 0x24
  78929. 8020174: 68ba ldr r2, [r7, #8]
  78930. 8020176: 8d52 ldrh r2, [r2, #42] @ 0x2a
  78931. 8020178: 441a add r2, r3
  78932. 802017a: 68bb ldr r3, [r7, #8]
  78933. 802017c: 62da str r2, [r3, #44] @ 0x2c
  78934. /* Add any requested options. NB MSS option is only set on SYN
  78935. packets, so ignore it here */
  78936. /* cast through void* to get rid of alignment warnings */
  78937. opts = (u32_t *)(void *)(seg->tcphdr + 1);
  78938. 802017e: 68fb ldr r3, [r7, #12]
  78939. 8020180: 691b ldr r3, [r3, #16]
  78940. 8020182: 3314 adds r3, #20
  78941. 8020184: 61fb str r3, [r7, #28]
  78942. if (seg->flags & TF_SEG_OPTS_MSS) {
  78943. 8020186: 68fb ldr r3, [r7, #12]
  78944. 8020188: 7b1b ldrb r3, [r3, #12]
  78945. 802018a: f003 0301 and.w r3, r3, #1
  78946. 802018e: 2b00 cmp r3, #0
  78947. 8020190: d015 beq.n 80201be <tcp_output_segment+0xca>
  78948. u16_t mss;
  78949. #if TCP_CALCULATE_EFF_SEND_MSS
  78950. mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip);
  78951. 8020192: 68bb ldr r3, [r7, #8]
  78952. 8020194: 3304 adds r3, #4
  78953. 8020196: 461a mov r2, r3
  78954. 8020198: 6879 ldr r1, [r7, #4]
  78955. 802019a: f240 50b4 movw r0, #1460 @ 0x5b4
  78956. 802019e: f7fc f9cd bl 801c53c <tcp_eff_send_mss_netif>
  78957. 80201a2: 4603 mov r3, r0
  78958. 80201a4: 837b strh r3, [r7, #26]
  78959. #else /* TCP_CALCULATE_EFF_SEND_MSS */
  78960. mss = TCP_MSS;
  78961. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  78962. *opts = TCP_BUILD_MSS_OPTION(mss);
  78963. 80201a6: 8b7b ldrh r3, [r7, #26]
  78964. 80201a8: f043 7301 orr.w r3, r3, #33816576 @ 0x2040000
  78965. 80201ac: 4618 mov r0, r3
  78966. 80201ae: f7f8 fcd0 bl 8018b52 <lwip_htonl>
  78967. 80201b2: 4602 mov r2, r0
  78968. 80201b4: 69fb ldr r3, [r7, #28]
  78969. 80201b6: 601a str r2, [r3, #0]
  78970. opts += 1;
  78971. 80201b8: 69fb ldr r3, [r7, #28]
  78972. 80201ba: 3304 adds r3, #4
  78973. 80201bc: 61fb str r3, [r7, #28]
  78974. }
  78975. #endif
  78976. /* Set retransmission timer running if it is not currently enabled
  78977. This must be set before checking the route. */
  78978. if (pcb->rtime < 0) {
  78979. 80201be: 68bb ldr r3, [r7, #8]
  78980. 80201c0: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  78981. 80201c4: 2b00 cmp r3, #0
  78982. 80201c6: da02 bge.n 80201ce <tcp_output_segment+0xda>
  78983. pcb->rtime = 0;
  78984. 80201c8: 68bb ldr r3, [r7, #8]
  78985. 80201ca: 2200 movs r2, #0
  78986. 80201cc: 861a strh r2, [r3, #48] @ 0x30
  78987. }
  78988. if (pcb->rttest == 0) {
  78989. 80201ce: 68bb ldr r3, [r7, #8]
  78990. 80201d0: 6b5b ldr r3, [r3, #52] @ 0x34
  78991. 80201d2: 2b00 cmp r3, #0
  78992. 80201d4: d10c bne.n 80201f0 <tcp_output_segment+0xfc>
  78993. pcb->rttest = tcp_ticks;
  78994. 80201d6: 4b35 ldr r3, [pc, #212] @ (80202ac <tcp_output_segment+0x1b8>)
  78995. 80201d8: 681a ldr r2, [r3, #0]
  78996. 80201da: 68bb ldr r3, [r7, #8]
  78997. 80201dc: 635a str r2, [r3, #52] @ 0x34
  78998. pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno);
  78999. 80201de: 68fb ldr r3, [r7, #12]
  79000. 80201e0: 691b ldr r3, [r3, #16]
  79001. 80201e2: 685b ldr r3, [r3, #4]
  79002. 80201e4: 4618 mov r0, r3
  79003. 80201e6: f7f8 fcb4 bl 8018b52 <lwip_htonl>
  79004. 80201ea: 4602 mov r2, r0
  79005. 80201ec: 68bb ldr r3, [r7, #8]
  79006. 80201ee: 639a str r2, [r3, #56] @ 0x38
  79007. }
  79008. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n",
  79009. lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) +
  79010. seg->len));
  79011. len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload);
  79012. 80201f0: 68fb ldr r3, [r7, #12]
  79013. 80201f2: 691a ldr r2, [r3, #16]
  79014. 80201f4: 68fb ldr r3, [r7, #12]
  79015. 80201f6: 685b ldr r3, [r3, #4]
  79016. 80201f8: 685b ldr r3, [r3, #4]
  79017. 80201fa: 1ad3 subs r3, r2, r3
  79018. 80201fc: 833b strh r3, [r7, #24]
  79019. if (len == 0) {
  79020. /** Exclude retransmitted segments from this count. */
  79021. MIB2_STATS_INC(mib2.tcpoutsegs);
  79022. }
  79023. seg->p->len -= len;
  79024. 80201fe: 68fb ldr r3, [r7, #12]
  79025. 8020200: 685b ldr r3, [r3, #4]
  79026. 8020202: 8959 ldrh r1, [r3, #10]
  79027. 8020204: 68fb ldr r3, [r7, #12]
  79028. 8020206: 685b ldr r3, [r3, #4]
  79029. 8020208: 8b3a ldrh r2, [r7, #24]
  79030. 802020a: 1a8a subs r2, r1, r2
  79031. 802020c: b292 uxth r2, r2
  79032. 802020e: 815a strh r2, [r3, #10]
  79033. seg->p->tot_len -= len;
  79034. 8020210: 68fb ldr r3, [r7, #12]
  79035. 8020212: 685b ldr r3, [r3, #4]
  79036. 8020214: 8919 ldrh r1, [r3, #8]
  79037. 8020216: 68fb ldr r3, [r7, #12]
  79038. 8020218: 685b ldr r3, [r3, #4]
  79039. 802021a: 8b3a ldrh r2, [r7, #24]
  79040. 802021c: 1a8a subs r2, r1, r2
  79041. 802021e: b292 uxth r2, r2
  79042. 8020220: 811a strh r2, [r3, #8]
  79043. seg->p->payload = seg->tcphdr;
  79044. 8020222: 68fb ldr r3, [r7, #12]
  79045. 8020224: 685b ldr r3, [r3, #4]
  79046. 8020226: 68fa ldr r2, [r7, #12]
  79047. 8020228: 6912 ldr r2, [r2, #16]
  79048. 802022a: 605a str r2, [r3, #4]
  79049. seg->tcphdr->chksum = 0;
  79050. 802022c: 68fb ldr r3, [r7, #12]
  79051. 802022e: 691b ldr r3, [r3, #16]
  79052. 8020230: 2200 movs r2, #0
  79053. 8020232: 741a strb r2, [r3, #16]
  79054. 8020234: 2200 movs r2, #0
  79055. 8020236: 745a strb r2, [r3, #17]
  79056. #ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS
  79057. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(seg->p, seg->tcphdr, pcb, opts);
  79058. #endif
  79059. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(seg->tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(seg->flags, pcb));
  79060. 8020238: 68fb ldr r3, [r7, #12]
  79061. 802023a: 691a ldr r2, [r3, #16]
  79062. 802023c: 68fb ldr r3, [r7, #12]
  79063. 802023e: 7b1b ldrb r3, [r3, #12]
  79064. 8020240: f003 0301 and.w r3, r3, #1
  79065. 8020244: 2b00 cmp r3, #0
  79066. 8020246: d001 beq.n 802024c <tcp_output_segment+0x158>
  79067. 8020248: 2318 movs r3, #24
  79068. 802024a: e000 b.n 802024e <tcp_output_segment+0x15a>
  79069. 802024c: 2314 movs r3, #20
  79070. 802024e: 4413 add r3, r2
  79071. 8020250: 69fa ldr r2, [r7, #28]
  79072. 8020252: 429a cmp r2, r3
  79073. 8020254: d006 beq.n 8020264 <tcp_output_segment+0x170>
  79074. 8020256: 4b10 ldr r3, [pc, #64] @ (8020298 <tcp_output_segment+0x1a4>)
  79075. 8020258: f240 621c movw r2, #1564 @ 0x61c
  79076. 802025c: 4914 ldr r1, [pc, #80] @ (80202b0 <tcp_output_segment+0x1bc>)
  79077. 802025e: 4810 ldr r0, [pc, #64] @ (80202a0 <tcp_output_segment+0x1ac>)
  79078. 8020260: f009 fbbc bl 80299dc <iprintf>
  79079. }
  79080. #endif /* CHECKSUM_GEN_TCP */
  79081. TCP_STATS_INC(tcp.xmit);
  79082. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  79083. err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl,
  79084. 8020264: 68fb ldr r3, [r7, #12]
  79085. 8020266: 6858 ldr r0, [r3, #4]
  79086. 8020268: 68b9 ldr r1, [r7, #8]
  79087. 802026a: 68bb ldr r3, [r7, #8]
  79088. 802026c: 1d1c adds r4, r3, #4
  79089. 802026e: 68bb ldr r3, [r7, #8]
  79090. 8020270: 7add ldrb r5, [r3, #11]
  79091. 8020272: 68bb ldr r3, [r7, #8]
  79092. 8020274: 7a9b ldrb r3, [r3, #10]
  79093. 8020276: 687a ldr r2, [r7, #4]
  79094. 8020278: 9202 str r2, [sp, #8]
  79095. 802027a: 2206 movs r2, #6
  79096. 802027c: 9201 str r2, [sp, #4]
  79097. 802027e: 9300 str r3, [sp, #0]
  79098. 8020280: 462b mov r3, r5
  79099. 8020282: 4622 mov r2, r4
  79100. 8020284: f004 fd7a bl 8024d7c <ip4_output_if>
  79101. 8020288: 4603 mov r3, r0
  79102. 802028a: 75fb strb r3, [r7, #23]
  79103. seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum);
  79104. seg->chksum_swapped = 1;
  79105. }
  79106. #endif
  79107. return err;
  79108. 802028c: f997 3017 ldrsb.w r3, [r7, #23]
  79109. }
  79110. 8020290: 4618 mov r0, r3
  79111. 8020292: 3720 adds r7, #32
  79112. 8020294: 46bd mov sp, r7
  79113. 8020296: bdb0 pop {r4, r5, r7, pc}
  79114. 8020298: 0802f1d8 .word 0x0802f1d8
  79115. 802029c: 0802f7f8 .word 0x0802f7f8
  79116. 80202a0: 0802f22c .word 0x0802f22c
  79117. 80202a4: 0802f818 .word 0x0802f818
  79118. 80202a8: 0802f838 .word 0x0802f838
  79119. 80202ac: 2402ae88 .word 0x2402ae88
  79120. 80202b0: 0802f85c .word 0x0802f85c
  79121. 080202b4 <tcp_rexmit_rto_prepare>:
  79122. *
  79123. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  79124. */
  79125. err_t
  79126. tcp_rexmit_rto_prepare(struct tcp_pcb *pcb)
  79127. {
  79128. 80202b4: b5b0 push {r4, r5, r7, lr}
  79129. 80202b6: b084 sub sp, #16
  79130. 80202b8: af00 add r7, sp, #0
  79131. 80202ba: 6078 str r0, [r7, #4]
  79132. struct tcp_seg *seg;
  79133. LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL);
  79134. 80202bc: 687b ldr r3, [r7, #4]
  79135. 80202be: 2b00 cmp r3, #0
  79136. 80202c0: d106 bne.n 80202d0 <tcp_rexmit_rto_prepare+0x1c>
  79137. 80202c2: 4b36 ldr r3, [pc, #216] @ (802039c <tcp_rexmit_rto_prepare+0xe8>)
  79138. 80202c4: f240 6263 movw r2, #1635 @ 0x663
  79139. 80202c8: 4935 ldr r1, [pc, #212] @ (80203a0 <tcp_rexmit_rto_prepare+0xec>)
  79140. 80202ca: 4836 ldr r0, [pc, #216] @ (80203a4 <tcp_rexmit_rto_prepare+0xf0>)
  79141. 80202cc: f009 fb86 bl 80299dc <iprintf>
  79142. if (pcb->unacked == NULL) {
  79143. 80202d0: 687b ldr r3, [r7, #4]
  79144. 80202d2: 6f1b ldr r3, [r3, #112] @ 0x70
  79145. 80202d4: 2b00 cmp r3, #0
  79146. 80202d6: d102 bne.n 80202de <tcp_rexmit_rto_prepare+0x2a>
  79147. return ERR_VAL;
  79148. 80202d8: f06f 0305 mvn.w r3, #5
  79149. 80202dc: e059 b.n 8020392 <tcp_rexmit_rto_prepare+0xde>
  79150. /* Move all unacked segments to the head of the unsent queue.
  79151. However, give up if any of the unsent pbufs are still referenced by the
  79152. netif driver due to deferred transmission. No point loading the link further
  79153. if it is struggling to flush its buffered writes. */
  79154. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  79155. 80202de: 687b ldr r3, [r7, #4]
  79156. 80202e0: 6f1b ldr r3, [r3, #112] @ 0x70
  79157. 80202e2: 60fb str r3, [r7, #12]
  79158. 80202e4: e00b b.n 80202fe <tcp_rexmit_rto_prepare+0x4a>
  79159. if (tcp_output_segment_busy(seg)) {
  79160. 80202e6: 68f8 ldr r0, [r7, #12]
  79161. 80202e8: f7ff fee4 bl 80200b4 <tcp_output_segment_busy>
  79162. 80202ec: 4603 mov r3, r0
  79163. 80202ee: 2b00 cmp r3, #0
  79164. 80202f0: d002 beq.n 80202f8 <tcp_rexmit_rto_prepare+0x44>
  79165. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  79166. return ERR_VAL;
  79167. 80202f2: f06f 0305 mvn.w r3, #5
  79168. 80202f6: e04c b.n 8020392 <tcp_rexmit_rto_prepare+0xde>
  79169. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  79170. 80202f8: 68fb ldr r3, [r7, #12]
  79171. 80202fa: 681b ldr r3, [r3, #0]
  79172. 80202fc: 60fb str r3, [r7, #12]
  79173. 80202fe: 68fb ldr r3, [r7, #12]
  79174. 8020300: 681b ldr r3, [r3, #0]
  79175. 8020302: 2b00 cmp r3, #0
  79176. 8020304: d1ef bne.n 80202e6 <tcp_rexmit_rto_prepare+0x32>
  79177. }
  79178. }
  79179. if (tcp_output_segment_busy(seg)) {
  79180. 8020306: 68f8 ldr r0, [r7, #12]
  79181. 8020308: f7ff fed4 bl 80200b4 <tcp_output_segment_busy>
  79182. 802030c: 4603 mov r3, r0
  79183. 802030e: 2b00 cmp r3, #0
  79184. 8020310: d002 beq.n 8020318 <tcp_rexmit_rto_prepare+0x64>
  79185. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  79186. return ERR_VAL;
  79187. 8020312: f06f 0305 mvn.w r3, #5
  79188. 8020316: e03c b.n 8020392 <tcp_rexmit_rto_prepare+0xde>
  79189. }
  79190. /* concatenate unsent queue after unacked queue */
  79191. seg->next = pcb->unsent;
  79192. 8020318: 687b ldr r3, [r7, #4]
  79193. 802031a: 6eda ldr r2, [r3, #108] @ 0x6c
  79194. 802031c: 68fb ldr r3, [r7, #12]
  79195. 802031e: 601a str r2, [r3, #0]
  79196. #if TCP_OVERSIZE_DBGCHECK
  79197. /* if last unsent changed, we need to update unsent_oversize */
  79198. if (pcb->unsent == NULL) {
  79199. 8020320: 687b ldr r3, [r7, #4]
  79200. 8020322: 6edb ldr r3, [r3, #108] @ 0x6c
  79201. 8020324: 2b00 cmp r3, #0
  79202. 8020326: d104 bne.n 8020332 <tcp_rexmit_rto_prepare+0x7e>
  79203. pcb->unsent_oversize = seg->oversize_left;
  79204. 8020328: 68fb ldr r3, [r7, #12]
  79205. 802032a: 895a ldrh r2, [r3, #10]
  79206. 802032c: 687b ldr r3, [r7, #4]
  79207. 802032e: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  79208. }
  79209. #endif /* TCP_OVERSIZE_DBGCHECK */
  79210. /* unsent queue is the concatenated queue (of unacked, unsent) */
  79211. pcb->unsent = pcb->unacked;
  79212. 8020332: 687b ldr r3, [r7, #4]
  79213. 8020334: 6f1a ldr r2, [r3, #112] @ 0x70
  79214. 8020336: 687b ldr r3, [r7, #4]
  79215. 8020338: 66da str r2, [r3, #108] @ 0x6c
  79216. /* unacked queue is now empty */
  79217. pcb->unacked = NULL;
  79218. 802033a: 687b ldr r3, [r7, #4]
  79219. 802033c: 2200 movs r2, #0
  79220. 802033e: 671a str r2, [r3, #112] @ 0x70
  79221. /* Mark RTO in-progress */
  79222. tcp_set_flags(pcb, TF_RTO);
  79223. 8020340: 687b ldr r3, [r7, #4]
  79224. 8020342: 8b5b ldrh r3, [r3, #26]
  79225. 8020344: f443 6300 orr.w r3, r3, #2048 @ 0x800
  79226. 8020348: b29a uxth r2, r3
  79227. 802034a: 687b ldr r3, [r7, #4]
  79228. 802034c: 835a strh r2, [r3, #26]
  79229. /* Record the next byte following retransmit */
  79230. pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  79231. 802034e: 68fb ldr r3, [r7, #12]
  79232. 8020350: 691b ldr r3, [r3, #16]
  79233. 8020352: 685b ldr r3, [r3, #4]
  79234. 8020354: 4618 mov r0, r3
  79235. 8020356: f7f8 fbfc bl 8018b52 <lwip_htonl>
  79236. 802035a: 4604 mov r4, r0
  79237. 802035c: 68fb ldr r3, [r7, #12]
  79238. 802035e: 891b ldrh r3, [r3, #8]
  79239. 8020360: 461d mov r5, r3
  79240. 8020362: 68fb ldr r3, [r7, #12]
  79241. 8020364: 691b ldr r3, [r3, #16]
  79242. 8020366: 899b ldrh r3, [r3, #12]
  79243. 8020368: b29b uxth r3, r3
  79244. 802036a: 4618 mov r0, r3
  79245. 802036c: f7f8 fbdc bl 8018b28 <lwip_htons>
  79246. 8020370: 4603 mov r3, r0
  79247. 8020372: b2db uxtb r3, r3
  79248. 8020374: f003 0303 and.w r3, r3, #3
  79249. 8020378: 2b00 cmp r3, #0
  79250. 802037a: d001 beq.n 8020380 <tcp_rexmit_rto_prepare+0xcc>
  79251. 802037c: 2301 movs r3, #1
  79252. 802037e: e000 b.n 8020382 <tcp_rexmit_rto_prepare+0xce>
  79253. 8020380: 2300 movs r3, #0
  79254. 8020382: 442b add r3, r5
  79255. 8020384: 18e2 adds r2, r4, r3
  79256. 8020386: 687b ldr r3, [r7, #4]
  79257. 8020388: 64da str r2, [r3, #76] @ 0x4c
  79258. /* Don't take any RTT measurements after retransmitting. */
  79259. pcb->rttest = 0;
  79260. 802038a: 687b ldr r3, [r7, #4]
  79261. 802038c: 2200 movs r2, #0
  79262. 802038e: 635a str r2, [r3, #52] @ 0x34
  79263. return ERR_OK;
  79264. 8020390: 2300 movs r3, #0
  79265. }
  79266. 8020392: 4618 mov r0, r3
  79267. 8020394: 3710 adds r7, #16
  79268. 8020396: 46bd mov sp, r7
  79269. 8020398: bdb0 pop {r4, r5, r7, pc}
  79270. 802039a: bf00 nop
  79271. 802039c: 0802f1d8 .word 0x0802f1d8
  79272. 80203a0: 0802f870 .word 0x0802f870
  79273. 80203a4: 0802f22c .word 0x0802f22c
  79274. 080203a8 <tcp_rexmit_rto_commit>:
  79275. *
  79276. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  79277. */
  79278. void
  79279. tcp_rexmit_rto_commit(struct tcp_pcb *pcb)
  79280. {
  79281. 80203a8: b580 push {r7, lr}
  79282. 80203aa: b082 sub sp, #8
  79283. 80203ac: af00 add r7, sp, #0
  79284. 80203ae: 6078 str r0, [r7, #4]
  79285. LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL);
  79286. 80203b0: 687b ldr r3, [r7, #4]
  79287. 80203b2: 2b00 cmp r3, #0
  79288. 80203b4: d106 bne.n 80203c4 <tcp_rexmit_rto_commit+0x1c>
  79289. 80203b6: 4b0d ldr r3, [pc, #52] @ (80203ec <tcp_rexmit_rto_commit+0x44>)
  79290. 80203b8: f44f 62d3 mov.w r2, #1688 @ 0x698
  79291. 80203bc: 490c ldr r1, [pc, #48] @ (80203f0 <tcp_rexmit_rto_commit+0x48>)
  79292. 80203be: 480d ldr r0, [pc, #52] @ (80203f4 <tcp_rexmit_rto_commit+0x4c>)
  79293. 80203c0: f009 fb0c bl 80299dc <iprintf>
  79294. /* increment number of retransmissions */
  79295. if (pcb->nrtx < 0xFF) {
  79296. 80203c4: 687b ldr r3, [r7, #4]
  79297. 80203c6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  79298. 80203ca: 2bff cmp r3, #255 @ 0xff
  79299. 80203cc: d007 beq.n 80203de <tcp_rexmit_rto_commit+0x36>
  79300. ++pcb->nrtx;
  79301. 80203ce: 687b ldr r3, [r7, #4]
  79302. 80203d0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  79303. 80203d4: 3301 adds r3, #1
  79304. 80203d6: b2da uxtb r2, r3
  79305. 80203d8: 687b ldr r3, [r7, #4]
  79306. 80203da: f883 2042 strb.w r2, [r3, #66] @ 0x42
  79307. }
  79308. /* Do the actual retransmission */
  79309. tcp_output(pcb);
  79310. 80203de: 6878 ldr r0, [r7, #4]
  79311. 80203e0: f7ff fc70 bl 801fcc4 <tcp_output>
  79312. }
  79313. 80203e4: bf00 nop
  79314. 80203e6: 3708 adds r7, #8
  79315. 80203e8: 46bd mov sp, r7
  79316. 80203ea: bd80 pop {r7, pc}
  79317. 80203ec: 0802f1d8 .word 0x0802f1d8
  79318. 80203f0: 0802f894 .word 0x0802f894
  79319. 80203f4: 0802f22c .word 0x0802f22c
  79320. 080203f8 <tcp_rexmit_rto>:
  79321. *
  79322. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  79323. */
  79324. void
  79325. tcp_rexmit_rto(struct tcp_pcb *pcb)
  79326. {
  79327. 80203f8: b580 push {r7, lr}
  79328. 80203fa: b082 sub sp, #8
  79329. 80203fc: af00 add r7, sp, #0
  79330. 80203fe: 6078 str r0, [r7, #4]
  79331. LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL);
  79332. 8020400: 687b ldr r3, [r7, #4]
  79333. 8020402: 2b00 cmp r3, #0
  79334. 8020404: d106 bne.n 8020414 <tcp_rexmit_rto+0x1c>
  79335. 8020406: 4b0a ldr r3, [pc, #40] @ (8020430 <tcp_rexmit_rto+0x38>)
  79336. 8020408: f240 62ad movw r2, #1709 @ 0x6ad
  79337. 802040c: 4909 ldr r1, [pc, #36] @ (8020434 <tcp_rexmit_rto+0x3c>)
  79338. 802040e: 480a ldr r0, [pc, #40] @ (8020438 <tcp_rexmit_rto+0x40>)
  79339. 8020410: f009 fae4 bl 80299dc <iprintf>
  79340. if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) {
  79341. 8020414: 6878 ldr r0, [r7, #4]
  79342. 8020416: f7ff ff4d bl 80202b4 <tcp_rexmit_rto_prepare>
  79343. 802041a: 4603 mov r3, r0
  79344. 802041c: 2b00 cmp r3, #0
  79345. 802041e: d102 bne.n 8020426 <tcp_rexmit_rto+0x2e>
  79346. tcp_rexmit_rto_commit(pcb);
  79347. 8020420: 6878 ldr r0, [r7, #4]
  79348. 8020422: f7ff ffc1 bl 80203a8 <tcp_rexmit_rto_commit>
  79349. }
  79350. }
  79351. 8020426: bf00 nop
  79352. 8020428: 3708 adds r7, #8
  79353. 802042a: 46bd mov sp, r7
  79354. 802042c: bd80 pop {r7, pc}
  79355. 802042e: bf00 nop
  79356. 8020430: 0802f1d8 .word 0x0802f1d8
  79357. 8020434: 0802f8b8 .word 0x0802f8b8
  79358. 8020438: 0802f22c .word 0x0802f22c
  79359. 0802043c <tcp_rexmit>:
  79360. *
  79361. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  79362. */
  79363. err_t
  79364. tcp_rexmit(struct tcp_pcb *pcb)
  79365. {
  79366. 802043c: b590 push {r4, r7, lr}
  79367. 802043e: b085 sub sp, #20
  79368. 8020440: af00 add r7, sp, #0
  79369. 8020442: 6078 str r0, [r7, #4]
  79370. struct tcp_seg *seg;
  79371. struct tcp_seg **cur_seg;
  79372. LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL);
  79373. 8020444: 687b ldr r3, [r7, #4]
  79374. 8020446: 2b00 cmp r3, #0
  79375. 8020448: d106 bne.n 8020458 <tcp_rexmit+0x1c>
  79376. 802044a: 4b2f ldr r3, [pc, #188] @ (8020508 <tcp_rexmit+0xcc>)
  79377. 802044c: f240 62c1 movw r2, #1729 @ 0x6c1
  79378. 8020450: 492e ldr r1, [pc, #184] @ (802050c <tcp_rexmit+0xd0>)
  79379. 8020452: 482f ldr r0, [pc, #188] @ (8020510 <tcp_rexmit+0xd4>)
  79380. 8020454: f009 fac2 bl 80299dc <iprintf>
  79381. if (pcb->unacked == NULL) {
  79382. 8020458: 687b ldr r3, [r7, #4]
  79383. 802045a: 6f1b ldr r3, [r3, #112] @ 0x70
  79384. 802045c: 2b00 cmp r3, #0
  79385. 802045e: d102 bne.n 8020466 <tcp_rexmit+0x2a>
  79386. return ERR_VAL;
  79387. 8020460: f06f 0305 mvn.w r3, #5
  79388. 8020464: e04c b.n 8020500 <tcp_rexmit+0xc4>
  79389. }
  79390. seg = pcb->unacked;
  79391. 8020466: 687b ldr r3, [r7, #4]
  79392. 8020468: 6f1b ldr r3, [r3, #112] @ 0x70
  79393. 802046a: 60bb str r3, [r7, #8]
  79394. /* Give up if the segment is still referenced by the netif driver
  79395. due to deferred transmission. */
  79396. if (tcp_output_segment_busy(seg)) {
  79397. 802046c: 68b8 ldr r0, [r7, #8]
  79398. 802046e: f7ff fe21 bl 80200b4 <tcp_output_segment_busy>
  79399. 8020472: 4603 mov r3, r0
  79400. 8020474: 2b00 cmp r3, #0
  79401. 8020476: d002 beq.n 802047e <tcp_rexmit+0x42>
  79402. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n"));
  79403. return ERR_VAL;
  79404. 8020478: f06f 0305 mvn.w r3, #5
  79405. 802047c: e040 b.n 8020500 <tcp_rexmit+0xc4>
  79406. }
  79407. /* Move the first unacked segment to the unsent queue */
  79408. /* Keep the unsent queue sorted. */
  79409. pcb->unacked = seg->next;
  79410. 802047e: 68bb ldr r3, [r7, #8]
  79411. 8020480: 681a ldr r2, [r3, #0]
  79412. 8020482: 687b ldr r3, [r7, #4]
  79413. 8020484: 671a str r2, [r3, #112] @ 0x70
  79414. cur_seg = &(pcb->unsent);
  79415. 8020486: 687b ldr r3, [r7, #4]
  79416. 8020488: 336c adds r3, #108 @ 0x6c
  79417. 802048a: 60fb str r3, [r7, #12]
  79418. while (*cur_seg &&
  79419. 802048c: e002 b.n 8020494 <tcp_rexmit+0x58>
  79420. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  79421. cur_seg = &((*cur_seg)->next );
  79422. 802048e: 68fb ldr r3, [r7, #12]
  79423. 8020490: 681b ldr r3, [r3, #0]
  79424. 8020492: 60fb str r3, [r7, #12]
  79425. while (*cur_seg &&
  79426. 8020494: 68fb ldr r3, [r7, #12]
  79427. 8020496: 681b ldr r3, [r3, #0]
  79428. 8020498: 2b00 cmp r3, #0
  79429. 802049a: d011 beq.n 80204c0 <tcp_rexmit+0x84>
  79430. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  79431. 802049c: 68fb ldr r3, [r7, #12]
  79432. 802049e: 681b ldr r3, [r3, #0]
  79433. 80204a0: 691b ldr r3, [r3, #16]
  79434. 80204a2: 685b ldr r3, [r3, #4]
  79435. 80204a4: 4618 mov r0, r3
  79436. 80204a6: f7f8 fb54 bl 8018b52 <lwip_htonl>
  79437. 80204aa: 4604 mov r4, r0
  79438. 80204ac: 68bb ldr r3, [r7, #8]
  79439. 80204ae: 691b ldr r3, [r3, #16]
  79440. 80204b0: 685b ldr r3, [r3, #4]
  79441. 80204b2: 4618 mov r0, r3
  79442. 80204b4: f7f8 fb4d bl 8018b52 <lwip_htonl>
  79443. 80204b8: 4603 mov r3, r0
  79444. 80204ba: 1ae3 subs r3, r4, r3
  79445. while (*cur_seg &&
  79446. 80204bc: 2b00 cmp r3, #0
  79447. 80204be: dbe6 blt.n 802048e <tcp_rexmit+0x52>
  79448. }
  79449. seg->next = *cur_seg;
  79450. 80204c0: 68fb ldr r3, [r7, #12]
  79451. 80204c2: 681a ldr r2, [r3, #0]
  79452. 80204c4: 68bb ldr r3, [r7, #8]
  79453. 80204c6: 601a str r2, [r3, #0]
  79454. *cur_seg = seg;
  79455. 80204c8: 68fb ldr r3, [r7, #12]
  79456. 80204ca: 68ba ldr r2, [r7, #8]
  79457. 80204cc: 601a str r2, [r3, #0]
  79458. #if TCP_OVERSIZE
  79459. if (seg->next == NULL) {
  79460. 80204ce: 68bb ldr r3, [r7, #8]
  79461. 80204d0: 681b ldr r3, [r3, #0]
  79462. 80204d2: 2b00 cmp r3, #0
  79463. 80204d4: d103 bne.n 80204de <tcp_rexmit+0xa2>
  79464. /* the retransmitted segment is last in unsent, so reset unsent_oversize */
  79465. pcb->unsent_oversize = 0;
  79466. 80204d6: 687b ldr r3, [r7, #4]
  79467. 80204d8: 2200 movs r2, #0
  79468. 80204da: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  79469. }
  79470. #endif /* TCP_OVERSIZE */
  79471. if (pcb->nrtx < 0xFF) {
  79472. 80204de: 687b ldr r3, [r7, #4]
  79473. 80204e0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  79474. 80204e4: 2bff cmp r3, #255 @ 0xff
  79475. 80204e6: d007 beq.n 80204f8 <tcp_rexmit+0xbc>
  79476. ++pcb->nrtx;
  79477. 80204e8: 687b ldr r3, [r7, #4]
  79478. 80204ea: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  79479. 80204ee: 3301 adds r3, #1
  79480. 80204f0: b2da uxtb r2, r3
  79481. 80204f2: 687b ldr r3, [r7, #4]
  79482. 80204f4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  79483. }
  79484. /* Don't take any rtt measurements after retransmitting. */
  79485. pcb->rttest = 0;
  79486. 80204f8: 687b ldr r3, [r7, #4]
  79487. 80204fa: 2200 movs r2, #0
  79488. 80204fc: 635a str r2, [r3, #52] @ 0x34
  79489. /* Do the actual retransmission. */
  79490. MIB2_STATS_INC(mib2.tcpretranssegs);
  79491. /* No need to call tcp_output: we are always called from tcp_input()
  79492. and thus tcp_output directly returns. */
  79493. return ERR_OK;
  79494. 80204fe: 2300 movs r3, #0
  79495. }
  79496. 8020500: 4618 mov r0, r3
  79497. 8020502: 3714 adds r7, #20
  79498. 8020504: 46bd mov sp, r7
  79499. 8020506: bd90 pop {r4, r7, pc}
  79500. 8020508: 0802f1d8 .word 0x0802f1d8
  79501. 802050c: 0802f8d4 .word 0x0802f8d4
  79502. 8020510: 0802f22c .word 0x0802f22c
  79503. 08020514 <tcp_rexmit_fast>:
  79504. *
  79505. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  79506. */
  79507. void
  79508. tcp_rexmit_fast(struct tcp_pcb *pcb)
  79509. {
  79510. 8020514: b580 push {r7, lr}
  79511. 8020516: b082 sub sp, #8
  79512. 8020518: af00 add r7, sp, #0
  79513. 802051a: 6078 str r0, [r7, #4]
  79514. LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL);
  79515. 802051c: 687b ldr r3, [r7, #4]
  79516. 802051e: 2b00 cmp r3, #0
  79517. 8020520: d106 bne.n 8020530 <tcp_rexmit_fast+0x1c>
  79518. 8020522: 4b2a ldr r3, [pc, #168] @ (80205cc <tcp_rexmit_fast+0xb8>)
  79519. 8020524: f240 62f9 movw r2, #1785 @ 0x6f9
  79520. 8020528: 4929 ldr r1, [pc, #164] @ (80205d0 <tcp_rexmit_fast+0xbc>)
  79521. 802052a: 482a ldr r0, [pc, #168] @ (80205d4 <tcp_rexmit_fast+0xc0>)
  79522. 802052c: f009 fa56 bl 80299dc <iprintf>
  79523. if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) {
  79524. 8020530: 687b ldr r3, [r7, #4]
  79525. 8020532: 6f1b ldr r3, [r3, #112] @ 0x70
  79526. 8020534: 2b00 cmp r3, #0
  79527. 8020536: d045 beq.n 80205c4 <tcp_rexmit_fast+0xb0>
  79528. 8020538: 687b ldr r3, [r7, #4]
  79529. 802053a: 8b5b ldrh r3, [r3, #26]
  79530. 802053c: f003 0304 and.w r3, r3, #4
  79531. 8020540: 2b00 cmp r3, #0
  79532. 8020542: d13f bne.n 80205c4 <tcp_rexmit_fast+0xb0>
  79533. LWIP_DEBUGF(TCP_FR_DEBUG,
  79534. ("tcp_receive: dupacks %"U16_F" (%"U32_F
  79535. "), fast retransmit %"U32_F"\n",
  79536. (u16_t)pcb->dupacks, pcb->lastack,
  79537. lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  79538. if (tcp_rexmit(pcb) == ERR_OK) {
  79539. 8020544: 6878 ldr r0, [r7, #4]
  79540. 8020546: f7ff ff79 bl 802043c <tcp_rexmit>
  79541. 802054a: 4603 mov r3, r0
  79542. 802054c: 2b00 cmp r3, #0
  79543. 802054e: d139 bne.n 80205c4 <tcp_rexmit_fast+0xb0>
  79544. /* Set ssthresh to half of the minimum of the current
  79545. * cwnd and the advertised window */
  79546. pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2;
  79547. 8020550: 687b ldr r3, [r7, #4]
  79548. 8020552: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  79549. 8020556: 687b ldr r3, [r7, #4]
  79550. 8020558: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  79551. 802055c: 4293 cmp r3, r2
  79552. 802055e: bf28 it cs
  79553. 8020560: 4613 movcs r3, r2
  79554. 8020562: b29b uxth r3, r3
  79555. 8020564: 2b00 cmp r3, #0
  79556. 8020566: da00 bge.n 802056a <tcp_rexmit_fast+0x56>
  79557. 8020568: 3301 adds r3, #1
  79558. 802056a: 105b asrs r3, r3, #1
  79559. 802056c: b29a uxth r2, r3
  79560. 802056e: 687b ldr r3, [r7, #4]
  79561. 8020570: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  79562. /* The minimum value for ssthresh should be 2 MSS */
  79563. if (pcb->ssthresh < (2U * pcb->mss)) {
  79564. 8020574: 687b ldr r3, [r7, #4]
  79565. 8020576: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  79566. 802057a: 461a mov r2, r3
  79567. 802057c: 687b ldr r3, [r7, #4]
  79568. 802057e: 8e5b ldrh r3, [r3, #50] @ 0x32
  79569. 8020580: 005b lsls r3, r3, #1
  79570. 8020582: 429a cmp r2, r3
  79571. 8020584: d206 bcs.n 8020594 <tcp_rexmit_fast+0x80>
  79572. LWIP_DEBUGF(TCP_FR_DEBUG,
  79573. ("tcp_receive: The minimum value for ssthresh %"TCPWNDSIZE_F
  79574. " should be min 2 mss %"U16_F"...\n",
  79575. pcb->ssthresh, (u16_t)(2 * pcb->mss)));
  79576. pcb->ssthresh = 2 * pcb->mss;
  79577. 8020586: 687b ldr r3, [r7, #4]
  79578. 8020588: 8e5b ldrh r3, [r3, #50] @ 0x32
  79579. 802058a: 005b lsls r3, r3, #1
  79580. 802058c: b29a uxth r2, r3
  79581. 802058e: 687b ldr r3, [r7, #4]
  79582. 8020590: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  79583. }
  79584. pcb->cwnd = pcb->ssthresh + 3 * pcb->mss;
  79585. 8020594: 687b ldr r3, [r7, #4]
  79586. 8020596: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  79587. 802059a: 687b ldr r3, [r7, #4]
  79588. 802059c: 8e5b ldrh r3, [r3, #50] @ 0x32
  79589. 802059e: 4619 mov r1, r3
  79590. 80205a0: 0049 lsls r1, r1, #1
  79591. 80205a2: 440b add r3, r1
  79592. 80205a4: b29b uxth r3, r3
  79593. 80205a6: 4413 add r3, r2
  79594. 80205a8: b29a uxth r2, r3
  79595. 80205aa: 687b ldr r3, [r7, #4]
  79596. 80205ac: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  79597. tcp_set_flags(pcb, TF_INFR);
  79598. 80205b0: 687b ldr r3, [r7, #4]
  79599. 80205b2: 8b5b ldrh r3, [r3, #26]
  79600. 80205b4: f043 0304 orr.w r3, r3, #4
  79601. 80205b8: b29a uxth r2, r3
  79602. 80205ba: 687b ldr r3, [r7, #4]
  79603. 80205bc: 835a strh r2, [r3, #26]
  79604. /* Reset the retransmission timer to prevent immediate rto retransmissions */
  79605. pcb->rtime = 0;
  79606. 80205be: 687b ldr r3, [r7, #4]
  79607. 80205c0: 2200 movs r2, #0
  79608. 80205c2: 861a strh r2, [r3, #48] @ 0x30
  79609. }
  79610. }
  79611. }
  79612. 80205c4: bf00 nop
  79613. 80205c6: 3708 adds r7, #8
  79614. 80205c8: 46bd mov sp, r7
  79615. 80205ca: bd80 pop {r7, pc}
  79616. 80205cc: 0802f1d8 .word 0x0802f1d8
  79617. 80205d0: 0802f8ec .word 0x0802f8ec
  79618. 80205d4: 0802f22c .word 0x0802f22c
  79619. 080205d8 <tcp_output_alloc_header_common>:
  79620. static struct pbuf *
  79621. tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen,
  79622. u32_t seqno_be /* already in network byte order */,
  79623. u16_t src_port, u16_t dst_port, u8_t flags, u16_t wnd)
  79624. {
  79625. 80205d8: b580 push {r7, lr}
  79626. 80205da: b086 sub sp, #24
  79627. 80205dc: af00 add r7, sp, #0
  79628. 80205de: 60f8 str r0, [r7, #12]
  79629. 80205e0: 607b str r3, [r7, #4]
  79630. 80205e2: 460b mov r3, r1
  79631. 80205e4: 817b strh r3, [r7, #10]
  79632. 80205e6: 4613 mov r3, r2
  79633. 80205e8: 813b strh r3, [r7, #8]
  79634. struct tcp_hdr *tcphdr;
  79635. struct pbuf *p;
  79636. p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
  79637. 80205ea: 897a ldrh r2, [r7, #10]
  79638. 80205ec: 893b ldrh r3, [r7, #8]
  79639. 80205ee: 4413 add r3, r2
  79640. 80205f0: b29b uxth r3, r3
  79641. 80205f2: 3314 adds r3, #20
  79642. 80205f4: b29b uxth r3, r3
  79643. 80205f6: f44f 7220 mov.w r2, #640 @ 0x280
  79644. 80205fa: 4619 mov r1, r3
  79645. 80205fc: 2022 movs r0, #34 @ 0x22
  79646. 80205fe: f7f9 fc5f bl 8019ec0 <pbuf_alloc>
  79647. 8020602: 6178 str r0, [r7, #20]
  79648. if (p != NULL) {
  79649. 8020604: 697b ldr r3, [r7, #20]
  79650. 8020606: 2b00 cmp r3, #0
  79651. 8020608: d04d beq.n 80206a6 <tcp_output_alloc_header_common+0xce>
  79652. LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",
  79653. 802060a: 897b ldrh r3, [r7, #10]
  79654. 802060c: 3313 adds r3, #19
  79655. 802060e: 697a ldr r2, [r7, #20]
  79656. 8020610: 8952 ldrh r2, [r2, #10]
  79657. 8020612: 4293 cmp r3, r2
  79658. 8020614: db06 blt.n 8020624 <tcp_output_alloc_header_common+0x4c>
  79659. 8020616: 4b26 ldr r3, [pc, #152] @ (80206b0 <tcp_output_alloc_header_common+0xd8>)
  79660. 8020618: f240 7223 movw r2, #1827 @ 0x723
  79661. 802061c: 4925 ldr r1, [pc, #148] @ (80206b4 <tcp_output_alloc_header_common+0xdc>)
  79662. 802061e: 4826 ldr r0, [pc, #152] @ (80206b8 <tcp_output_alloc_header_common+0xe0>)
  79663. 8020620: f009 f9dc bl 80299dc <iprintf>
  79664. (p->len >= TCP_HLEN + optlen));
  79665. tcphdr = (struct tcp_hdr *)p->payload;
  79666. 8020624: 697b ldr r3, [r7, #20]
  79667. 8020626: 685b ldr r3, [r3, #4]
  79668. 8020628: 613b str r3, [r7, #16]
  79669. tcphdr->src = lwip_htons(src_port);
  79670. 802062a: 8c3b ldrh r3, [r7, #32]
  79671. 802062c: 4618 mov r0, r3
  79672. 802062e: f7f8 fa7b bl 8018b28 <lwip_htons>
  79673. 8020632: 4603 mov r3, r0
  79674. 8020634: 461a mov r2, r3
  79675. 8020636: 693b ldr r3, [r7, #16]
  79676. 8020638: 801a strh r2, [r3, #0]
  79677. tcphdr->dest = lwip_htons(dst_port);
  79678. 802063a: 8cbb ldrh r3, [r7, #36] @ 0x24
  79679. 802063c: 4618 mov r0, r3
  79680. 802063e: f7f8 fa73 bl 8018b28 <lwip_htons>
  79681. 8020642: 4603 mov r3, r0
  79682. 8020644: 461a mov r2, r3
  79683. 8020646: 693b ldr r3, [r7, #16]
  79684. 8020648: 805a strh r2, [r3, #2]
  79685. tcphdr->seqno = seqno_be;
  79686. 802064a: 693b ldr r3, [r7, #16]
  79687. 802064c: 687a ldr r2, [r7, #4]
  79688. 802064e: 605a str r2, [r3, #4]
  79689. tcphdr->ackno = lwip_htonl(ackno);
  79690. 8020650: 68f8 ldr r0, [r7, #12]
  79691. 8020652: f7f8 fa7e bl 8018b52 <lwip_htonl>
  79692. 8020656: 4602 mov r2, r0
  79693. 8020658: 693b ldr r3, [r7, #16]
  79694. 802065a: 609a str r2, [r3, #8]
  79695. TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags);
  79696. 802065c: 897b ldrh r3, [r7, #10]
  79697. 802065e: 089b lsrs r3, r3, #2
  79698. 8020660: b29b uxth r3, r3
  79699. 8020662: 3305 adds r3, #5
  79700. 8020664: b29b uxth r3, r3
  79701. 8020666: 031b lsls r3, r3, #12
  79702. 8020668: b29a uxth r2, r3
  79703. 802066a: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  79704. 802066e: b29b uxth r3, r3
  79705. 8020670: 4313 orrs r3, r2
  79706. 8020672: b29b uxth r3, r3
  79707. 8020674: 4618 mov r0, r3
  79708. 8020676: f7f8 fa57 bl 8018b28 <lwip_htons>
  79709. 802067a: 4603 mov r3, r0
  79710. 802067c: 461a mov r2, r3
  79711. 802067e: 693b ldr r3, [r7, #16]
  79712. 8020680: 819a strh r2, [r3, #12]
  79713. tcphdr->wnd = lwip_htons(wnd);
  79714. 8020682: 8dbb ldrh r3, [r7, #44] @ 0x2c
  79715. 8020684: 4618 mov r0, r3
  79716. 8020686: f7f8 fa4f bl 8018b28 <lwip_htons>
  79717. 802068a: 4603 mov r3, r0
  79718. 802068c: 461a mov r2, r3
  79719. 802068e: 693b ldr r3, [r7, #16]
  79720. 8020690: 81da strh r2, [r3, #14]
  79721. tcphdr->chksum = 0;
  79722. 8020692: 693b ldr r3, [r7, #16]
  79723. 8020694: 2200 movs r2, #0
  79724. 8020696: 741a strb r2, [r3, #16]
  79725. 8020698: 2200 movs r2, #0
  79726. 802069a: 745a strb r2, [r3, #17]
  79727. tcphdr->urgp = 0;
  79728. 802069c: 693b ldr r3, [r7, #16]
  79729. 802069e: 2200 movs r2, #0
  79730. 80206a0: 749a strb r2, [r3, #18]
  79731. 80206a2: 2200 movs r2, #0
  79732. 80206a4: 74da strb r2, [r3, #19]
  79733. }
  79734. return p;
  79735. 80206a6: 697b ldr r3, [r7, #20]
  79736. }
  79737. 80206a8: 4618 mov r0, r3
  79738. 80206aa: 3718 adds r7, #24
  79739. 80206ac: 46bd mov sp, r7
  79740. 80206ae: bd80 pop {r7, pc}
  79741. 80206b0: 0802f1d8 .word 0x0802f1d8
  79742. 80206b4: 0802f90c .word 0x0802f90c
  79743. 80206b8: 0802f22c .word 0x0802f22c
  79744. 080206bc <tcp_output_alloc_header>:
  79745. * @return pbuf with p->payload being the tcp_hdr
  79746. */
  79747. static struct pbuf *
  79748. tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen,
  79749. u32_t seqno_be /* already in network byte order */)
  79750. {
  79751. 80206bc: b5b0 push {r4, r5, r7, lr}
  79752. 80206be: b08a sub sp, #40 @ 0x28
  79753. 80206c0: af04 add r7, sp, #16
  79754. 80206c2: 60f8 str r0, [r7, #12]
  79755. 80206c4: 607b str r3, [r7, #4]
  79756. 80206c6: 460b mov r3, r1
  79757. 80206c8: 817b strh r3, [r7, #10]
  79758. 80206ca: 4613 mov r3, r2
  79759. 80206cc: 813b strh r3, [r7, #8]
  79760. struct pbuf *p;
  79761. LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL);
  79762. 80206ce: 68fb ldr r3, [r7, #12]
  79763. 80206d0: 2b00 cmp r3, #0
  79764. 80206d2: d106 bne.n 80206e2 <tcp_output_alloc_header+0x26>
  79765. 80206d4: 4b15 ldr r3, [pc, #84] @ (802072c <tcp_output_alloc_header+0x70>)
  79766. 80206d6: f240 7242 movw r2, #1858 @ 0x742
  79767. 80206da: 4915 ldr r1, [pc, #84] @ (8020730 <tcp_output_alloc_header+0x74>)
  79768. 80206dc: 4815 ldr r0, [pc, #84] @ (8020734 <tcp_output_alloc_header+0x78>)
  79769. 80206de: f009 f97d bl 80299dc <iprintf>
  79770. p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen,
  79771. 80206e2: 68fb ldr r3, [r7, #12]
  79772. 80206e4: 6a58 ldr r0, [r3, #36] @ 0x24
  79773. 80206e6: 68fb ldr r3, [r7, #12]
  79774. 80206e8: 8adb ldrh r3, [r3, #22]
  79775. 80206ea: 68fa ldr r2, [r7, #12]
  79776. 80206ec: 8b12 ldrh r2, [r2, #24]
  79777. 80206ee: 68f9 ldr r1, [r7, #12]
  79778. 80206f0: 8d49 ldrh r1, [r1, #42] @ 0x2a
  79779. 80206f2: 893d ldrh r5, [r7, #8]
  79780. 80206f4: 897c ldrh r4, [r7, #10]
  79781. 80206f6: 9103 str r1, [sp, #12]
  79782. 80206f8: 2110 movs r1, #16
  79783. 80206fa: 9102 str r1, [sp, #8]
  79784. 80206fc: 9201 str r2, [sp, #4]
  79785. 80206fe: 9300 str r3, [sp, #0]
  79786. 8020700: 687b ldr r3, [r7, #4]
  79787. 8020702: 462a mov r2, r5
  79788. 8020704: 4621 mov r1, r4
  79789. 8020706: f7ff ff67 bl 80205d8 <tcp_output_alloc_header_common>
  79790. 802070a: 6178 str r0, [r7, #20]
  79791. seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK,
  79792. TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  79793. if (p != NULL) {
  79794. 802070c: 697b ldr r3, [r7, #20]
  79795. 802070e: 2b00 cmp r3, #0
  79796. 8020710: d006 beq.n 8020720 <tcp_output_alloc_header+0x64>
  79797. /* If we're sending a packet, update the announced right window edge */
  79798. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  79799. 8020712: 68fb ldr r3, [r7, #12]
  79800. 8020714: 6a5b ldr r3, [r3, #36] @ 0x24
  79801. 8020716: 68fa ldr r2, [r7, #12]
  79802. 8020718: 8d52 ldrh r2, [r2, #42] @ 0x2a
  79803. 802071a: 441a add r2, r3
  79804. 802071c: 68fb ldr r3, [r7, #12]
  79805. 802071e: 62da str r2, [r3, #44] @ 0x2c
  79806. }
  79807. return p;
  79808. 8020720: 697b ldr r3, [r7, #20]
  79809. }
  79810. 8020722: 4618 mov r0, r3
  79811. 8020724: 3718 adds r7, #24
  79812. 8020726: 46bd mov sp, r7
  79813. 8020728: bdb0 pop {r4, r5, r7, pc}
  79814. 802072a: bf00 nop
  79815. 802072c: 0802f1d8 .word 0x0802f1d8
  79816. 8020730: 0802f93c .word 0x0802f93c
  79817. 8020734: 0802f22c .word 0x0802f22c
  79818. 08020738 <tcp_output_fill_options>:
  79819. /* Fill in options for control segments */
  79820. static void
  79821. tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags, u8_t num_sacks)
  79822. {
  79823. 8020738: b580 push {r7, lr}
  79824. 802073a: b088 sub sp, #32
  79825. 802073c: af00 add r7, sp, #0
  79826. 802073e: 60f8 str r0, [r7, #12]
  79827. 8020740: 60b9 str r1, [r7, #8]
  79828. 8020742: 4611 mov r1, r2
  79829. 8020744: 461a mov r2, r3
  79830. 8020746: 460b mov r3, r1
  79831. 8020748: 71fb strb r3, [r7, #7]
  79832. 802074a: 4613 mov r3, r2
  79833. 802074c: 71bb strb r3, [r7, #6]
  79834. struct tcp_hdr *tcphdr;
  79835. u32_t *opts;
  79836. u16_t sacks_len = 0;
  79837. 802074e: 2300 movs r3, #0
  79838. 8020750: 83fb strh r3, [r7, #30]
  79839. LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL);
  79840. 8020752: 68bb ldr r3, [r7, #8]
  79841. 8020754: 2b00 cmp r3, #0
  79842. 8020756: d106 bne.n 8020766 <tcp_output_fill_options+0x2e>
  79843. 8020758: 4b12 ldr r3, [pc, #72] @ (80207a4 <tcp_output_fill_options+0x6c>)
  79844. 802075a: f240 7256 movw r2, #1878 @ 0x756
  79845. 802075e: 4912 ldr r1, [pc, #72] @ (80207a8 <tcp_output_fill_options+0x70>)
  79846. 8020760: 4812 ldr r0, [pc, #72] @ (80207ac <tcp_output_fill_options+0x74>)
  79847. 8020762: f009 f93b bl 80299dc <iprintf>
  79848. tcphdr = (struct tcp_hdr *)p->payload;
  79849. 8020766: 68bb ldr r3, [r7, #8]
  79850. 8020768: 685b ldr r3, [r3, #4]
  79851. 802076a: 61bb str r3, [r7, #24]
  79852. opts = (u32_t *)(void *)(tcphdr + 1);
  79853. 802076c: 69bb ldr r3, [r7, #24]
  79854. 802076e: 3314 adds r3, #20
  79855. 8020770: 617b str r3, [r7, #20]
  79856. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts);
  79857. #endif
  79858. LWIP_UNUSED_ARG(pcb);
  79859. LWIP_UNUSED_ARG(sacks_len);
  79860. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + sacks_len * 4 + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb));
  79861. 8020772: 8bfb ldrh r3, [r7, #30]
  79862. 8020774: 009b lsls r3, r3, #2
  79863. 8020776: 461a mov r2, r3
  79864. 8020778: 79fb ldrb r3, [r7, #7]
  79865. 802077a: 009b lsls r3, r3, #2
  79866. 802077c: f003 0304 and.w r3, r3, #4
  79867. 8020780: 4413 add r3, r2
  79868. 8020782: 3314 adds r3, #20
  79869. 8020784: 69ba ldr r2, [r7, #24]
  79870. 8020786: 4413 add r3, r2
  79871. 8020788: 697a ldr r2, [r7, #20]
  79872. 802078a: 429a cmp r2, r3
  79873. 802078c: d006 beq.n 802079c <tcp_output_fill_options+0x64>
  79874. 802078e: 4b05 ldr r3, [pc, #20] @ (80207a4 <tcp_output_fill_options+0x6c>)
  79875. 8020790: f240 7275 movw r2, #1909 @ 0x775
  79876. 8020794: 4906 ldr r1, [pc, #24] @ (80207b0 <tcp_output_fill_options+0x78>)
  79877. 8020796: 4805 ldr r0, [pc, #20] @ (80207ac <tcp_output_fill_options+0x74>)
  79878. 8020798: f009 f920 bl 80299dc <iprintf>
  79879. LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */
  79880. LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */
  79881. }
  79882. 802079c: bf00 nop
  79883. 802079e: 3720 adds r7, #32
  79884. 80207a0: 46bd mov sp, r7
  79885. 80207a2: bd80 pop {r7, pc}
  79886. 80207a4: 0802f1d8 .word 0x0802f1d8
  79887. 80207a8: 0802f964 .word 0x0802f964
  79888. 80207ac: 0802f22c .word 0x0802f22c
  79889. 80207b0: 0802f85c .word 0x0802f85c
  79890. 080207b4 <tcp_output_control_segment>:
  79891. * header checksum and calling ip_output_if while handling netif hints and stats.
  79892. */
  79893. static err_t
  79894. tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p,
  79895. const ip_addr_t *src, const ip_addr_t *dst)
  79896. {
  79897. 80207b4: b580 push {r7, lr}
  79898. 80207b6: b08a sub sp, #40 @ 0x28
  79899. 80207b8: af04 add r7, sp, #16
  79900. 80207ba: 60f8 str r0, [r7, #12]
  79901. 80207bc: 60b9 str r1, [r7, #8]
  79902. 80207be: 607a str r2, [r7, #4]
  79903. 80207c0: 603b str r3, [r7, #0]
  79904. err_t err;
  79905. struct netif *netif;
  79906. LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL);
  79907. 80207c2: 68bb ldr r3, [r7, #8]
  79908. 80207c4: 2b00 cmp r3, #0
  79909. 80207c6: d106 bne.n 80207d6 <tcp_output_control_segment+0x22>
  79910. 80207c8: 4b1c ldr r3, [pc, #112] @ (802083c <tcp_output_control_segment+0x88>)
  79911. 80207ca: f240 7287 movw r2, #1927 @ 0x787
  79912. 80207ce: 491c ldr r1, [pc, #112] @ (8020840 <tcp_output_control_segment+0x8c>)
  79913. 80207d0: 481c ldr r0, [pc, #112] @ (8020844 <tcp_output_control_segment+0x90>)
  79914. 80207d2: f009 f903 bl 80299dc <iprintf>
  79915. netif = tcp_route(pcb, src, dst);
  79916. 80207d6: 683a ldr r2, [r7, #0]
  79917. 80207d8: 6879 ldr r1, [r7, #4]
  79918. 80207da: 68f8 ldr r0, [r7, #12]
  79919. 80207dc: f7fe fa78 bl 801ecd0 <tcp_route>
  79920. 80207e0: 6138 str r0, [r7, #16]
  79921. if (netif == NULL) {
  79922. 80207e2: 693b ldr r3, [r7, #16]
  79923. 80207e4: 2b00 cmp r3, #0
  79924. 80207e6: d102 bne.n 80207ee <tcp_output_control_segment+0x3a>
  79925. err = ERR_RTE;
  79926. 80207e8: 23fc movs r3, #252 @ 0xfc
  79927. 80207ea: 75fb strb r3, [r7, #23]
  79928. 80207ec: e01c b.n 8020828 <tcp_output_control_segment+0x74>
  79929. struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload;
  79930. tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
  79931. src, dst);
  79932. }
  79933. #endif
  79934. if (pcb != NULL) {
  79935. 80207ee: 68fb ldr r3, [r7, #12]
  79936. 80207f0: 2b00 cmp r3, #0
  79937. 80207f2: d006 beq.n 8020802 <tcp_output_control_segment+0x4e>
  79938. NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints)));
  79939. ttl = pcb->ttl;
  79940. 80207f4: 68fb ldr r3, [r7, #12]
  79941. 80207f6: 7adb ldrb r3, [r3, #11]
  79942. 80207f8: 75bb strb r3, [r7, #22]
  79943. tos = pcb->tos;
  79944. 80207fa: 68fb ldr r3, [r7, #12]
  79945. 80207fc: 7a9b ldrb r3, [r3, #10]
  79946. 80207fe: 757b strb r3, [r7, #21]
  79947. 8020800: e003 b.n 802080a <tcp_output_control_segment+0x56>
  79948. } else {
  79949. /* Send output with hardcoded TTL/HL since we have no access to the pcb */
  79950. ttl = TCP_TTL;
  79951. 8020802: 23ff movs r3, #255 @ 0xff
  79952. 8020804: 75bb strb r3, [r7, #22]
  79953. tos = 0;
  79954. 8020806: 2300 movs r3, #0
  79955. 8020808: 757b strb r3, [r7, #21]
  79956. }
  79957. TCP_STATS_INC(tcp.xmit);
  79958. err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif);
  79959. 802080a: 7dba ldrb r2, [r7, #22]
  79960. 802080c: 693b ldr r3, [r7, #16]
  79961. 802080e: 9302 str r3, [sp, #8]
  79962. 8020810: 2306 movs r3, #6
  79963. 8020812: 9301 str r3, [sp, #4]
  79964. 8020814: 7d7b ldrb r3, [r7, #21]
  79965. 8020816: 9300 str r3, [sp, #0]
  79966. 8020818: 4613 mov r3, r2
  79967. 802081a: 683a ldr r2, [r7, #0]
  79968. 802081c: 6879 ldr r1, [r7, #4]
  79969. 802081e: 68b8 ldr r0, [r7, #8]
  79970. 8020820: f004 faac bl 8024d7c <ip4_output_if>
  79971. 8020824: 4603 mov r3, r0
  79972. 8020826: 75fb strb r3, [r7, #23]
  79973. NETIF_RESET_HINTS(netif);
  79974. }
  79975. pbuf_free(p);
  79976. 8020828: 68b8 ldr r0, [r7, #8]
  79977. 802082a: f7f9 fe5f bl 801a4ec <pbuf_free>
  79978. return err;
  79979. 802082e: f997 3017 ldrsb.w r3, [r7, #23]
  79980. }
  79981. 8020832: 4618 mov r0, r3
  79982. 8020834: 3718 adds r7, #24
  79983. 8020836: 46bd mov sp, r7
  79984. 8020838: bd80 pop {r7, pc}
  79985. 802083a: bf00 nop
  79986. 802083c: 0802f1d8 .word 0x0802f1d8
  79987. 8020840: 0802f98c .word 0x0802f98c
  79988. 8020844: 0802f22c .word 0x0802f22c
  79989. 08020848 <tcp_rst>:
  79990. */
  79991. void
  79992. tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
  79993. const ip_addr_t *local_ip, const ip_addr_t *remote_ip,
  79994. u16_t local_port, u16_t remote_port)
  79995. {
  79996. 8020848: b590 push {r4, r7, lr}
  79997. 802084a: b08b sub sp, #44 @ 0x2c
  79998. 802084c: af04 add r7, sp, #16
  79999. 802084e: 60f8 str r0, [r7, #12]
  80000. 8020850: 60b9 str r1, [r7, #8]
  80001. 8020852: 607a str r2, [r7, #4]
  80002. 8020854: 603b str r3, [r7, #0]
  80003. struct pbuf *p;
  80004. u16_t wnd;
  80005. u8_t optlen;
  80006. LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL);
  80007. 8020856: 683b ldr r3, [r7, #0]
  80008. 8020858: 2b00 cmp r3, #0
  80009. 802085a: d106 bne.n 802086a <tcp_rst+0x22>
  80010. 802085c: 4b1f ldr r3, [pc, #124] @ (80208dc <tcp_rst+0x94>)
  80011. 802085e: f240 72c4 movw r2, #1988 @ 0x7c4
  80012. 8020862: 491f ldr r1, [pc, #124] @ (80208e0 <tcp_rst+0x98>)
  80013. 8020864: 481f ldr r0, [pc, #124] @ (80208e4 <tcp_rst+0x9c>)
  80014. 8020866: f009 f8b9 bl 80299dc <iprintf>
  80015. LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL);
  80016. 802086a: 6abb ldr r3, [r7, #40] @ 0x28
  80017. 802086c: 2b00 cmp r3, #0
  80018. 802086e: d106 bne.n 802087e <tcp_rst+0x36>
  80019. 8020870: 4b1a ldr r3, [pc, #104] @ (80208dc <tcp_rst+0x94>)
  80020. 8020872: f240 72c5 movw r2, #1989 @ 0x7c5
  80021. 8020876: 491c ldr r1, [pc, #112] @ (80208e8 <tcp_rst+0xa0>)
  80022. 8020878: 481a ldr r0, [pc, #104] @ (80208e4 <tcp_rst+0x9c>)
  80023. 802087a: f009 f8af bl 80299dc <iprintf>
  80024. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  80025. 802087e: 2300 movs r3, #0
  80026. 8020880: 75fb strb r3, [r7, #23]
  80027. #if LWIP_WND_SCALE
  80028. wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF));
  80029. #else
  80030. wnd = PP_HTONS(TCP_WND);
  80031. 8020882: f24d 0316 movw r3, #53270 @ 0xd016
  80032. 8020886: 82bb strh r3, [r7, #20]
  80033. #endif
  80034. p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port,
  80035. 8020888: 7dfb ldrb r3, [r7, #23]
  80036. 802088a: b29c uxth r4, r3
  80037. 802088c: 68b8 ldr r0, [r7, #8]
  80038. 802088e: f7f8 f960 bl 8018b52 <lwip_htonl>
  80039. 8020892: 4602 mov r2, r0
  80040. 8020894: 8abb ldrh r3, [r7, #20]
  80041. 8020896: 9303 str r3, [sp, #12]
  80042. 8020898: 2314 movs r3, #20
  80043. 802089a: 9302 str r3, [sp, #8]
  80044. 802089c: 8e3b ldrh r3, [r7, #48] @ 0x30
  80045. 802089e: 9301 str r3, [sp, #4]
  80046. 80208a0: 8dbb ldrh r3, [r7, #44] @ 0x2c
  80047. 80208a2: 9300 str r3, [sp, #0]
  80048. 80208a4: 4613 mov r3, r2
  80049. 80208a6: 2200 movs r2, #0
  80050. 80208a8: 4621 mov r1, r4
  80051. 80208aa: 6878 ldr r0, [r7, #4]
  80052. 80208ac: f7ff fe94 bl 80205d8 <tcp_output_alloc_header_common>
  80053. 80208b0: 6138 str r0, [r7, #16]
  80054. remote_port, TCP_RST | TCP_ACK, wnd);
  80055. if (p == NULL) {
  80056. 80208b2: 693b ldr r3, [r7, #16]
  80057. 80208b4: 2b00 cmp r3, #0
  80058. 80208b6: d00c beq.n 80208d2 <tcp_rst+0x8a>
  80059. LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n"));
  80060. return;
  80061. }
  80062. tcp_output_fill_options(pcb, p, 0, optlen);
  80063. 80208b8: 7dfb ldrb r3, [r7, #23]
  80064. 80208ba: 2200 movs r2, #0
  80065. 80208bc: 6939 ldr r1, [r7, #16]
  80066. 80208be: 68f8 ldr r0, [r7, #12]
  80067. 80208c0: f7ff ff3a bl 8020738 <tcp_output_fill_options>
  80068. MIB2_STATS_INC(mib2.tcpoutrsts);
  80069. tcp_output_control_segment(pcb, p, local_ip, remote_ip);
  80070. 80208c4: 6abb ldr r3, [r7, #40] @ 0x28
  80071. 80208c6: 683a ldr r2, [r7, #0]
  80072. 80208c8: 6939 ldr r1, [r7, #16]
  80073. 80208ca: 68f8 ldr r0, [r7, #12]
  80074. 80208cc: f7ff ff72 bl 80207b4 <tcp_output_control_segment>
  80075. 80208d0: e000 b.n 80208d4 <tcp_rst+0x8c>
  80076. return;
  80077. 80208d2: bf00 nop
  80078. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno));
  80079. }
  80080. 80208d4: 371c adds r7, #28
  80081. 80208d6: 46bd mov sp, r7
  80082. 80208d8: bd90 pop {r4, r7, pc}
  80083. 80208da: bf00 nop
  80084. 80208dc: 0802f1d8 .word 0x0802f1d8
  80085. 80208e0: 0802f9b8 .word 0x0802f9b8
  80086. 80208e4: 0802f22c .word 0x0802f22c
  80087. 80208e8: 0802f9d4 .word 0x0802f9d4
  80088. 080208ec <tcp_send_empty_ack>:
  80089. *
  80090. * @param pcb Protocol control block for the TCP connection to send the ACK
  80091. */
  80092. err_t
  80093. tcp_send_empty_ack(struct tcp_pcb *pcb)
  80094. {
  80095. 80208ec: b590 push {r4, r7, lr}
  80096. 80208ee: b087 sub sp, #28
  80097. 80208f0: af00 add r7, sp, #0
  80098. 80208f2: 6078 str r0, [r7, #4]
  80099. err_t err;
  80100. struct pbuf *p;
  80101. u8_t optlen, optflags = 0;
  80102. 80208f4: 2300 movs r3, #0
  80103. 80208f6: 75fb strb r3, [r7, #23]
  80104. u8_t num_sacks = 0;
  80105. 80208f8: 2300 movs r3, #0
  80106. 80208fa: 75bb strb r3, [r7, #22]
  80107. LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL);
  80108. 80208fc: 687b ldr r3, [r7, #4]
  80109. 80208fe: 2b00 cmp r3, #0
  80110. 8020900: d106 bne.n 8020910 <tcp_send_empty_ack+0x24>
  80111. 8020902: 4b28 ldr r3, [pc, #160] @ (80209a4 <tcp_send_empty_ack+0xb8>)
  80112. 8020904: f240 72ea movw r2, #2026 @ 0x7ea
  80113. 8020908: 4927 ldr r1, [pc, #156] @ (80209a8 <tcp_send_empty_ack+0xbc>)
  80114. 802090a: 4828 ldr r0, [pc, #160] @ (80209ac <tcp_send_empty_ack+0xc0>)
  80115. 802090c: f009 f866 bl 80299dc <iprintf>
  80116. #if LWIP_TCP_TIMESTAMPS
  80117. if (pcb->flags & TF_TIMESTAMP) {
  80118. optflags = TF_SEG_OPTS_TS;
  80119. }
  80120. #endif
  80121. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  80122. 8020910: 7dfb ldrb r3, [r7, #23]
  80123. 8020912: 009b lsls r3, r3, #2
  80124. 8020914: b2db uxtb r3, r3
  80125. 8020916: f003 0304 and.w r3, r3, #4
  80126. 802091a: 757b strb r3, [r7, #21]
  80127. if ((num_sacks = tcp_get_num_sacks(pcb, optlen)) > 0) {
  80128. optlen += 4 + num_sacks * 8; /* 4 bytes for header (including 2*NOP), plus 8B for each SACK */
  80129. }
  80130. #endif
  80131. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt));
  80132. 802091c: 7d7b ldrb r3, [r7, #21]
  80133. 802091e: b29c uxth r4, r3
  80134. 8020920: 687b ldr r3, [r7, #4]
  80135. 8020922: 6d1b ldr r3, [r3, #80] @ 0x50
  80136. 8020924: 4618 mov r0, r3
  80137. 8020926: f7f8 f914 bl 8018b52 <lwip_htonl>
  80138. 802092a: 4603 mov r3, r0
  80139. 802092c: 2200 movs r2, #0
  80140. 802092e: 4621 mov r1, r4
  80141. 8020930: 6878 ldr r0, [r7, #4]
  80142. 8020932: f7ff fec3 bl 80206bc <tcp_output_alloc_header>
  80143. 8020936: 6138 str r0, [r7, #16]
  80144. if (p == NULL) {
  80145. 8020938: 693b ldr r3, [r7, #16]
  80146. 802093a: 2b00 cmp r3, #0
  80147. 802093c: d109 bne.n 8020952 <tcp_send_empty_ack+0x66>
  80148. /* let tcp_fasttmr retry sending this ACK */
  80149. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  80150. 802093e: 687b ldr r3, [r7, #4]
  80151. 8020940: 8b5b ldrh r3, [r3, #26]
  80152. 8020942: f043 0303 orr.w r3, r3, #3
  80153. 8020946: b29a uxth r2, r3
  80154. 8020948: 687b ldr r3, [r7, #4]
  80155. 802094a: 835a strh r2, [r3, #26]
  80156. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n"));
  80157. return ERR_BUF;
  80158. 802094c: f06f 0301 mvn.w r3, #1
  80159. 8020950: e023 b.n 802099a <tcp_send_empty_ack+0xae>
  80160. }
  80161. tcp_output_fill_options(pcb, p, optflags, num_sacks);
  80162. 8020952: 7dbb ldrb r3, [r7, #22]
  80163. 8020954: 7dfa ldrb r2, [r7, #23]
  80164. 8020956: 6939 ldr r1, [r7, #16]
  80165. 8020958: 6878 ldr r0, [r7, #4]
  80166. 802095a: f7ff feed bl 8020738 <tcp_output_fill_options>
  80167. pcb->ts_lastacksent = pcb->rcv_nxt;
  80168. #endif
  80169. LWIP_DEBUGF(TCP_OUTPUT_DEBUG,
  80170. ("tcp_output: sending ACK for %"U32_F"\n", pcb->rcv_nxt));
  80171. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  80172. 802095e: 687a ldr r2, [r7, #4]
  80173. 8020960: 687b ldr r3, [r7, #4]
  80174. 8020962: 3304 adds r3, #4
  80175. 8020964: 6939 ldr r1, [r7, #16]
  80176. 8020966: 6878 ldr r0, [r7, #4]
  80177. 8020968: f7ff ff24 bl 80207b4 <tcp_output_control_segment>
  80178. 802096c: 4603 mov r3, r0
  80179. 802096e: 73fb strb r3, [r7, #15]
  80180. if (err != ERR_OK) {
  80181. 8020970: f997 300f ldrsb.w r3, [r7, #15]
  80182. 8020974: 2b00 cmp r3, #0
  80183. 8020976: d007 beq.n 8020988 <tcp_send_empty_ack+0x9c>
  80184. /* let tcp_fasttmr retry sending this ACK */
  80185. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  80186. 8020978: 687b ldr r3, [r7, #4]
  80187. 802097a: 8b5b ldrh r3, [r3, #26]
  80188. 802097c: f043 0303 orr.w r3, r3, #3
  80189. 8020980: b29a uxth r2, r3
  80190. 8020982: 687b ldr r3, [r7, #4]
  80191. 8020984: 835a strh r2, [r3, #26]
  80192. 8020986: e006 b.n 8020996 <tcp_send_empty_ack+0xaa>
  80193. } else {
  80194. /* remove ACK flags from the PCB, as we sent an empty ACK now */
  80195. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  80196. 8020988: 687b ldr r3, [r7, #4]
  80197. 802098a: 8b5b ldrh r3, [r3, #26]
  80198. 802098c: f023 0303 bic.w r3, r3, #3
  80199. 8020990: b29a uxth r2, r3
  80200. 8020992: 687b ldr r3, [r7, #4]
  80201. 8020994: 835a strh r2, [r3, #26]
  80202. }
  80203. return err;
  80204. 8020996: f997 300f ldrsb.w r3, [r7, #15]
  80205. }
  80206. 802099a: 4618 mov r0, r3
  80207. 802099c: 371c adds r7, #28
  80208. 802099e: 46bd mov sp, r7
  80209. 80209a0: bd90 pop {r4, r7, pc}
  80210. 80209a2: bf00 nop
  80211. 80209a4: 0802f1d8 .word 0x0802f1d8
  80212. 80209a8: 0802f9f0 .word 0x0802f9f0
  80213. 80209ac: 0802f22c .word 0x0802f22c
  80214. 080209b0 <tcp_keepalive>:
  80215. *
  80216. * @param pcb the tcp_pcb for which to send a keepalive packet
  80217. */
  80218. err_t
  80219. tcp_keepalive(struct tcp_pcb *pcb)
  80220. {
  80221. 80209b0: b590 push {r4, r7, lr}
  80222. 80209b2: b085 sub sp, #20
  80223. 80209b4: af00 add r7, sp, #0
  80224. 80209b6: 6078 str r0, [r7, #4]
  80225. err_t err;
  80226. struct pbuf *p;
  80227. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  80228. 80209b8: 2300 movs r3, #0
  80229. 80209ba: 72bb strb r3, [r7, #10]
  80230. LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL);
  80231. 80209bc: 687b ldr r3, [r7, #4]
  80232. 80209be: 2b00 cmp r3, #0
  80233. 80209c0: d106 bne.n 80209d0 <tcp_keepalive+0x20>
  80234. 80209c2: 4b18 ldr r3, [pc, #96] @ (8020a24 <tcp_keepalive+0x74>)
  80235. 80209c4: f640 0224 movw r2, #2084 @ 0x824
  80236. 80209c8: 4917 ldr r1, [pc, #92] @ (8020a28 <tcp_keepalive+0x78>)
  80237. 80209ca: 4818 ldr r0, [pc, #96] @ (8020a2c <tcp_keepalive+0x7c>)
  80238. 80209cc: f009 f806 bl 80299dc <iprintf>
  80239. LWIP_DEBUGF(TCP_DEBUG, ("\n"));
  80240. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: tcp_ticks %"U32_F" pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  80241. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  80242. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt - 1));
  80243. 80209d0: 7abb ldrb r3, [r7, #10]
  80244. 80209d2: b29c uxth r4, r3
  80245. 80209d4: 687b ldr r3, [r7, #4]
  80246. 80209d6: 6d1b ldr r3, [r3, #80] @ 0x50
  80247. 80209d8: 3b01 subs r3, #1
  80248. 80209da: 4618 mov r0, r3
  80249. 80209dc: f7f8 f8b9 bl 8018b52 <lwip_htonl>
  80250. 80209e0: 4603 mov r3, r0
  80251. 80209e2: 2200 movs r2, #0
  80252. 80209e4: 4621 mov r1, r4
  80253. 80209e6: 6878 ldr r0, [r7, #4]
  80254. 80209e8: f7ff fe68 bl 80206bc <tcp_output_alloc_header>
  80255. 80209ec: 60f8 str r0, [r7, #12]
  80256. if (p == NULL) {
  80257. 80209ee: 68fb ldr r3, [r7, #12]
  80258. 80209f0: 2b00 cmp r3, #0
  80259. 80209f2: d102 bne.n 80209fa <tcp_keepalive+0x4a>
  80260. LWIP_DEBUGF(TCP_DEBUG,
  80261. ("tcp_keepalive: could not allocate memory for pbuf\n"));
  80262. return ERR_MEM;
  80263. 80209f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  80264. 80209f8: e010 b.n 8020a1c <tcp_keepalive+0x6c>
  80265. }
  80266. tcp_output_fill_options(pcb, p, 0, optlen);
  80267. 80209fa: 7abb ldrb r3, [r7, #10]
  80268. 80209fc: 2200 movs r2, #0
  80269. 80209fe: 68f9 ldr r1, [r7, #12]
  80270. 8020a00: 6878 ldr r0, [r7, #4]
  80271. 8020a02: f7ff fe99 bl 8020738 <tcp_output_fill_options>
  80272. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  80273. 8020a06: 687a ldr r2, [r7, #4]
  80274. 8020a08: 687b ldr r3, [r7, #4]
  80275. 8020a0a: 3304 adds r3, #4
  80276. 8020a0c: 68f9 ldr r1, [r7, #12]
  80277. 8020a0e: 6878 ldr r0, [r7, #4]
  80278. 8020a10: f7ff fed0 bl 80207b4 <tcp_output_control_segment>
  80279. 8020a14: 4603 mov r3, r0
  80280. 8020a16: 72fb strb r3, [r7, #11]
  80281. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n",
  80282. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  80283. return err;
  80284. 8020a18: f997 300b ldrsb.w r3, [r7, #11]
  80285. }
  80286. 8020a1c: 4618 mov r0, r3
  80287. 8020a1e: 3714 adds r7, #20
  80288. 8020a20: 46bd mov sp, r7
  80289. 8020a22: bd90 pop {r4, r7, pc}
  80290. 8020a24: 0802f1d8 .word 0x0802f1d8
  80291. 8020a28: 0802fa10 .word 0x0802fa10
  80292. 8020a2c: 0802f22c .word 0x0802f22c
  80293. 08020a30 <tcp_zero_window_probe>:
  80294. *
  80295. * @param pcb the tcp_pcb for which to send a zero-window probe packet
  80296. */
  80297. err_t
  80298. tcp_zero_window_probe(struct tcp_pcb *pcb)
  80299. {
  80300. 8020a30: b590 push {r4, r7, lr}
  80301. 8020a32: b08b sub sp, #44 @ 0x2c
  80302. 8020a34: af00 add r7, sp, #0
  80303. 8020a36: 6078 str r0, [r7, #4]
  80304. struct tcp_hdr *tcphdr;
  80305. struct tcp_seg *seg;
  80306. u16_t len;
  80307. u8_t is_fin;
  80308. u32_t snd_nxt;
  80309. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  80310. 8020a38: 2300 movs r3, #0
  80311. 8020a3a: 74fb strb r3, [r7, #19]
  80312. LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL);
  80313. 8020a3c: 687b ldr r3, [r7, #4]
  80314. 8020a3e: 2b00 cmp r3, #0
  80315. 8020a40: d106 bne.n 8020a50 <tcp_zero_window_probe+0x20>
  80316. 8020a42: 4b4d ldr r3, [pc, #308] @ (8020b78 <tcp_zero_window_probe+0x148>)
  80317. 8020a44: f640 024f movw r2, #2127 @ 0x84f
  80318. 8020a48: 494c ldr r1, [pc, #304] @ (8020b7c <tcp_zero_window_probe+0x14c>)
  80319. 8020a4a: 484d ldr r0, [pc, #308] @ (8020b80 <tcp_zero_window_probe+0x150>)
  80320. 8020a4c: f008 ffc6 bl 80299dc <iprintf>
  80321. ("tcp_zero_window_probe: tcp_ticks %"U32_F
  80322. " pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  80323. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  80324. /* Only consider unsent, persist timer should be off when there is data in-flight */
  80325. seg = pcb->unsent;
  80326. 8020a50: 687b ldr r3, [r7, #4]
  80327. 8020a52: 6edb ldr r3, [r3, #108] @ 0x6c
  80328. 8020a54: 627b str r3, [r7, #36] @ 0x24
  80329. if (seg == NULL) {
  80330. 8020a56: 6a7b ldr r3, [r7, #36] @ 0x24
  80331. 8020a58: 2b00 cmp r3, #0
  80332. 8020a5a: d101 bne.n 8020a60 <tcp_zero_window_probe+0x30>
  80333. /* Not expected, persist timer should be off when the send buffer is empty */
  80334. return ERR_OK;
  80335. 8020a5c: 2300 movs r3, #0
  80336. 8020a5e: e087 b.n 8020b70 <tcp_zero_window_probe+0x140>
  80337. /* increment probe count. NOTE: we record probe even if it fails
  80338. to actually transmit due to an error. This ensures memory exhaustion/
  80339. routing problem doesn't leave a zero-window pcb as an indefinite zombie.
  80340. RTO mechanism has similar behavior, see pcb->nrtx */
  80341. if (pcb->persist_probe < 0xFF) {
  80342. 8020a60: 687b ldr r3, [r7, #4]
  80343. 8020a62: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  80344. 8020a66: 2bff cmp r3, #255 @ 0xff
  80345. 8020a68: d007 beq.n 8020a7a <tcp_zero_window_probe+0x4a>
  80346. ++pcb->persist_probe;
  80347. 8020a6a: 687b ldr r3, [r7, #4]
  80348. 8020a6c: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  80349. 8020a70: 3301 adds r3, #1
  80350. 8020a72: b2da uxtb r2, r3
  80351. 8020a74: 687b ldr r3, [r7, #4]
  80352. 8020a76: f883 209a strb.w r2, [r3, #154] @ 0x9a
  80353. }
  80354. is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0);
  80355. 8020a7a: 6a7b ldr r3, [r7, #36] @ 0x24
  80356. 8020a7c: 691b ldr r3, [r3, #16]
  80357. 8020a7e: 899b ldrh r3, [r3, #12]
  80358. 8020a80: b29b uxth r3, r3
  80359. 8020a82: 4618 mov r0, r3
  80360. 8020a84: f7f8 f850 bl 8018b28 <lwip_htons>
  80361. 8020a88: 4603 mov r3, r0
  80362. 8020a8a: b2db uxtb r3, r3
  80363. 8020a8c: f003 0301 and.w r3, r3, #1
  80364. 8020a90: 2b00 cmp r3, #0
  80365. 8020a92: d005 beq.n 8020aa0 <tcp_zero_window_probe+0x70>
  80366. 8020a94: 6a7b ldr r3, [r7, #36] @ 0x24
  80367. 8020a96: 891b ldrh r3, [r3, #8]
  80368. 8020a98: 2b00 cmp r3, #0
  80369. 8020a9a: d101 bne.n 8020aa0 <tcp_zero_window_probe+0x70>
  80370. 8020a9c: 2301 movs r3, #1
  80371. 8020a9e: e000 b.n 8020aa2 <tcp_zero_window_probe+0x72>
  80372. 8020aa0: 2300 movs r3, #0
  80373. 8020aa2: f887 3023 strb.w r3, [r7, #35] @ 0x23
  80374. /* we want to send one seqno: either FIN or data (no options) */
  80375. len = is_fin ? 0 : 1;
  80376. 8020aa6: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  80377. 8020aaa: 2b00 cmp r3, #0
  80378. 8020aac: bf0c ite eq
  80379. 8020aae: 2301 moveq r3, #1
  80380. 8020ab0: 2300 movne r3, #0
  80381. 8020ab2: b2db uxtb r3, r3
  80382. 8020ab4: 843b strh r3, [r7, #32]
  80383. p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno);
  80384. 8020ab6: 7cfb ldrb r3, [r7, #19]
  80385. 8020ab8: b299 uxth r1, r3
  80386. 8020aba: 6a7b ldr r3, [r7, #36] @ 0x24
  80387. 8020abc: 691b ldr r3, [r3, #16]
  80388. 8020abe: 685b ldr r3, [r3, #4]
  80389. 8020ac0: 8c3a ldrh r2, [r7, #32]
  80390. 8020ac2: 6878 ldr r0, [r7, #4]
  80391. 8020ac4: f7ff fdfa bl 80206bc <tcp_output_alloc_header>
  80392. 8020ac8: 61f8 str r0, [r7, #28]
  80393. if (p == NULL) {
  80394. 8020aca: 69fb ldr r3, [r7, #28]
  80395. 8020acc: 2b00 cmp r3, #0
  80396. 8020ace: d102 bne.n 8020ad6 <tcp_zero_window_probe+0xa6>
  80397. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n"));
  80398. return ERR_MEM;
  80399. 8020ad0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  80400. 8020ad4: e04c b.n 8020b70 <tcp_zero_window_probe+0x140>
  80401. }
  80402. tcphdr = (struct tcp_hdr *)p->payload;
  80403. 8020ad6: 69fb ldr r3, [r7, #28]
  80404. 8020ad8: 685b ldr r3, [r3, #4]
  80405. 8020ada: 61bb str r3, [r7, #24]
  80406. if (is_fin) {
  80407. 8020adc: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  80408. 8020ae0: 2b00 cmp r3, #0
  80409. 8020ae2: d011 beq.n 8020b08 <tcp_zero_window_probe+0xd8>
  80410. /* FIN segment, no data */
  80411. TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN);
  80412. 8020ae4: 69bb ldr r3, [r7, #24]
  80413. 8020ae6: 899b ldrh r3, [r3, #12]
  80414. 8020ae8: b29b uxth r3, r3
  80415. 8020aea: b21b sxth r3, r3
  80416. 8020aec: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  80417. 8020af0: b21c sxth r4, r3
  80418. 8020af2: 2011 movs r0, #17
  80419. 8020af4: f7f8 f818 bl 8018b28 <lwip_htons>
  80420. 8020af8: 4603 mov r3, r0
  80421. 8020afa: b21b sxth r3, r3
  80422. 8020afc: 4323 orrs r3, r4
  80423. 8020afe: b21b sxth r3, r3
  80424. 8020b00: b29a uxth r2, r3
  80425. 8020b02: 69bb ldr r3, [r7, #24]
  80426. 8020b04: 819a strh r2, [r3, #12]
  80427. 8020b06: e010 b.n 8020b2a <tcp_zero_window_probe+0xfa>
  80428. } else {
  80429. /* Data segment, copy in one byte from the head of the unacked queue */
  80430. char *d = ((char *)p->payload + TCP_HLEN);
  80431. 8020b08: 69fb ldr r3, [r7, #28]
  80432. 8020b0a: 685b ldr r3, [r3, #4]
  80433. 8020b0c: 3314 adds r3, #20
  80434. 8020b0e: 617b str r3, [r7, #20]
  80435. /* Depending on whether the segment has already been sent (unacked) or not
  80436. (unsent), seg->p->payload points to the IP header or TCP header.
  80437. Ensure we copy the first TCP data byte: */
  80438. pbuf_copy_partial(seg->p, d, 1, seg->p->tot_len - seg->len);
  80439. 8020b10: 6a7b ldr r3, [r7, #36] @ 0x24
  80440. 8020b12: 6858 ldr r0, [r3, #4]
  80441. 8020b14: 6a7b ldr r3, [r7, #36] @ 0x24
  80442. 8020b16: 685b ldr r3, [r3, #4]
  80443. 8020b18: 891a ldrh r2, [r3, #8]
  80444. 8020b1a: 6a7b ldr r3, [r7, #36] @ 0x24
  80445. 8020b1c: 891b ldrh r3, [r3, #8]
  80446. 8020b1e: 1ad3 subs r3, r2, r3
  80447. 8020b20: b29b uxth r3, r3
  80448. 8020b22: 2201 movs r2, #1
  80449. 8020b24: 6979 ldr r1, [r7, #20]
  80450. 8020b26: f7f9 fee7 bl 801a8f8 <pbuf_copy_partial>
  80451. }
  80452. /* The byte may be acknowledged without the window being opened. */
  80453. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1;
  80454. 8020b2a: 6a7b ldr r3, [r7, #36] @ 0x24
  80455. 8020b2c: 691b ldr r3, [r3, #16]
  80456. 8020b2e: 685b ldr r3, [r3, #4]
  80457. 8020b30: 4618 mov r0, r3
  80458. 8020b32: f7f8 f80e bl 8018b52 <lwip_htonl>
  80459. 8020b36: 4603 mov r3, r0
  80460. 8020b38: 3301 adds r3, #1
  80461. 8020b3a: 60fb str r3, [r7, #12]
  80462. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  80463. 8020b3c: 687b ldr r3, [r7, #4]
  80464. 8020b3e: 6d1a ldr r2, [r3, #80] @ 0x50
  80465. 8020b40: 68fb ldr r3, [r7, #12]
  80466. 8020b42: 1ad3 subs r3, r2, r3
  80467. 8020b44: 2b00 cmp r3, #0
  80468. 8020b46: da02 bge.n 8020b4e <tcp_zero_window_probe+0x11e>
  80469. pcb->snd_nxt = snd_nxt;
  80470. 8020b48: 687b ldr r3, [r7, #4]
  80471. 8020b4a: 68fa ldr r2, [r7, #12]
  80472. 8020b4c: 651a str r2, [r3, #80] @ 0x50
  80473. }
  80474. tcp_output_fill_options(pcb, p, 0, optlen);
  80475. 8020b4e: 7cfb ldrb r3, [r7, #19]
  80476. 8020b50: 2200 movs r2, #0
  80477. 8020b52: 69f9 ldr r1, [r7, #28]
  80478. 8020b54: 6878 ldr r0, [r7, #4]
  80479. 8020b56: f7ff fdef bl 8020738 <tcp_output_fill_options>
  80480. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  80481. 8020b5a: 687a ldr r2, [r7, #4]
  80482. 8020b5c: 687b ldr r3, [r7, #4]
  80483. 8020b5e: 3304 adds r3, #4
  80484. 8020b60: 69f9 ldr r1, [r7, #28]
  80485. 8020b62: 6878 ldr r0, [r7, #4]
  80486. 8020b64: f7ff fe26 bl 80207b4 <tcp_output_control_segment>
  80487. 8020b68: 4603 mov r3, r0
  80488. 8020b6a: 72fb strb r3, [r7, #11]
  80489. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: seqno %"U32_F
  80490. " ackno %"U32_F" err %d.\n",
  80491. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  80492. return err;
  80493. 8020b6c: f997 300b ldrsb.w r3, [r7, #11]
  80494. }
  80495. 8020b70: 4618 mov r0, r3
  80496. 8020b72: 372c adds r7, #44 @ 0x2c
  80497. 8020b74: 46bd mov sp, r7
  80498. 8020b76: bd90 pop {r4, r7, pc}
  80499. 8020b78: 0802f1d8 .word 0x0802f1d8
  80500. 8020b7c: 0802fa2c .word 0x0802fa2c
  80501. 8020b80: 0802f22c .word 0x0802f22c
  80502. 08020b84 <tcpip_tcp_timer>:
  80503. *
  80504. * @param arg unused argument
  80505. */
  80506. static void
  80507. tcpip_tcp_timer(void *arg)
  80508. {
  80509. 8020b84: b580 push {r7, lr}
  80510. 8020b86: b082 sub sp, #8
  80511. 8020b88: af00 add r7, sp, #0
  80512. 8020b8a: 6078 str r0, [r7, #4]
  80513. LWIP_UNUSED_ARG(arg);
  80514. /* call TCP timer handler */
  80515. tcp_tmr();
  80516. 8020b8c: f7f9 ffa2 bl 801aad4 <tcp_tmr>
  80517. /* timer still needed? */
  80518. if (tcp_active_pcbs || tcp_tw_pcbs) {
  80519. 8020b90: 4b0a ldr r3, [pc, #40] @ (8020bbc <tcpip_tcp_timer+0x38>)
  80520. 8020b92: 681b ldr r3, [r3, #0]
  80521. 8020b94: 2b00 cmp r3, #0
  80522. 8020b96: d103 bne.n 8020ba0 <tcpip_tcp_timer+0x1c>
  80523. 8020b98: 4b09 ldr r3, [pc, #36] @ (8020bc0 <tcpip_tcp_timer+0x3c>)
  80524. 8020b9a: 681b ldr r3, [r3, #0]
  80525. 8020b9c: 2b00 cmp r3, #0
  80526. 8020b9e: d005 beq.n 8020bac <tcpip_tcp_timer+0x28>
  80527. /* restart timer */
  80528. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  80529. 8020ba0: 2200 movs r2, #0
  80530. 8020ba2: 4908 ldr r1, [pc, #32] @ (8020bc4 <tcpip_tcp_timer+0x40>)
  80531. 8020ba4: 20fa movs r0, #250 @ 0xfa
  80532. 8020ba6: f000 f8f5 bl 8020d94 <sys_timeout>
  80533. 8020baa: e003 b.n 8020bb4 <tcpip_tcp_timer+0x30>
  80534. } else {
  80535. /* disable timer */
  80536. tcpip_tcp_timer_active = 0;
  80537. 8020bac: 4b06 ldr r3, [pc, #24] @ (8020bc8 <tcpip_tcp_timer+0x44>)
  80538. 8020bae: 2200 movs r2, #0
  80539. 8020bb0: 601a str r2, [r3, #0]
  80540. }
  80541. }
  80542. 8020bb2: bf00 nop
  80543. 8020bb4: bf00 nop
  80544. 8020bb6: 3708 adds r7, #8
  80545. 8020bb8: 46bd mov sp, r7
  80546. 8020bba: bd80 pop {r7, pc}
  80547. 8020bbc: 2402ae94 .word 0x2402ae94
  80548. 8020bc0: 2402ae98 .word 0x2402ae98
  80549. 8020bc4: 08020b85 .word 0x08020b85
  80550. 8020bc8: 2402aee4 .word 0x2402aee4
  80551. 08020bcc <tcp_timer_needed>:
  80552. * the reason is to have the TCP timer only running when
  80553. * there are active (or time-wait) PCBs.
  80554. */
  80555. void
  80556. tcp_timer_needed(void)
  80557. {
  80558. 8020bcc: b580 push {r7, lr}
  80559. 8020bce: af00 add r7, sp, #0
  80560. LWIP_ASSERT_CORE_LOCKED();
  80561. 8020bd0: f7ef fcb8 bl 8010544 <sys_check_core_locking>
  80562. /* timer is off but needed again? */
  80563. if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
  80564. 8020bd4: 4b0a ldr r3, [pc, #40] @ (8020c00 <tcp_timer_needed+0x34>)
  80565. 8020bd6: 681b ldr r3, [r3, #0]
  80566. 8020bd8: 2b00 cmp r3, #0
  80567. 8020bda: d10f bne.n 8020bfc <tcp_timer_needed+0x30>
  80568. 8020bdc: 4b09 ldr r3, [pc, #36] @ (8020c04 <tcp_timer_needed+0x38>)
  80569. 8020bde: 681b ldr r3, [r3, #0]
  80570. 8020be0: 2b00 cmp r3, #0
  80571. 8020be2: d103 bne.n 8020bec <tcp_timer_needed+0x20>
  80572. 8020be4: 4b08 ldr r3, [pc, #32] @ (8020c08 <tcp_timer_needed+0x3c>)
  80573. 8020be6: 681b ldr r3, [r3, #0]
  80574. 8020be8: 2b00 cmp r3, #0
  80575. 8020bea: d007 beq.n 8020bfc <tcp_timer_needed+0x30>
  80576. /* enable and start timer */
  80577. tcpip_tcp_timer_active = 1;
  80578. 8020bec: 4b04 ldr r3, [pc, #16] @ (8020c00 <tcp_timer_needed+0x34>)
  80579. 8020bee: 2201 movs r2, #1
  80580. 8020bf0: 601a str r2, [r3, #0]
  80581. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  80582. 8020bf2: 2200 movs r2, #0
  80583. 8020bf4: 4905 ldr r1, [pc, #20] @ (8020c0c <tcp_timer_needed+0x40>)
  80584. 8020bf6: 20fa movs r0, #250 @ 0xfa
  80585. 8020bf8: f000 f8cc bl 8020d94 <sys_timeout>
  80586. }
  80587. }
  80588. 8020bfc: bf00 nop
  80589. 8020bfe: bd80 pop {r7, pc}
  80590. 8020c00: 2402aee4 .word 0x2402aee4
  80591. 8020c04: 2402ae94 .word 0x2402ae94
  80592. 8020c08: 2402ae98 .word 0x2402ae98
  80593. 8020c0c: 08020b85 .word 0x08020b85
  80594. 08020c10 <sys_timeout_abs>:
  80595. #if LWIP_DEBUG_TIMERNAMES
  80596. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name)
  80597. #else /* LWIP_DEBUG_TIMERNAMES */
  80598. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg)
  80599. #endif
  80600. {
  80601. 8020c10: b580 push {r7, lr}
  80602. 8020c12: b086 sub sp, #24
  80603. 8020c14: af00 add r7, sp, #0
  80604. 8020c16: 60f8 str r0, [r7, #12]
  80605. 8020c18: 60b9 str r1, [r7, #8]
  80606. 8020c1a: 607a str r2, [r7, #4]
  80607. struct sys_timeo *timeout, *t;
  80608. timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
  80609. 8020c1c: 200a movs r0, #10
  80610. 8020c1e: f7f8 fd01 bl 8019624 <memp_malloc>
  80611. 8020c22: 6138 str r0, [r7, #16]
  80612. if (timeout == NULL) {
  80613. 8020c24: 693b ldr r3, [r7, #16]
  80614. 8020c26: 2b00 cmp r3, #0
  80615. 8020c28: d109 bne.n 8020c3e <sys_timeout_abs+0x2e>
  80616. LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
  80617. 8020c2a: 693b ldr r3, [r7, #16]
  80618. 8020c2c: 2b00 cmp r3, #0
  80619. 8020c2e: d151 bne.n 8020cd4 <sys_timeout_abs+0xc4>
  80620. 8020c30: 4b2a ldr r3, [pc, #168] @ (8020cdc <sys_timeout_abs+0xcc>)
  80621. 8020c32: 22be movs r2, #190 @ 0xbe
  80622. 8020c34: 492a ldr r1, [pc, #168] @ (8020ce0 <sys_timeout_abs+0xd0>)
  80623. 8020c36: 482b ldr r0, [pc, #172] @ (8020ce4 <sys_timeout_abs+0xd4>)
  80624. 8020c38: f008 fed0 bl 80299dc <iprintf>
  80625. return;
  80626. 8020c3c: e04a b.n 8020cd4 <sys_timeout_abs+0xc4>
  80627. }
  80628. timeout->next = NULL;
  80629. 8020c3e: 693b ldr r3, [r7, #16]
  80630. 8020c40: 2200 movs r2, #0
  80631. 8020c42: 601a str r2, [r3, #0]
  80632. timeout->h = handler;
  80633. 8020c44: 693b ldr r3, [r7, #16]
  80634. 8020c46: 68ba ldr r2, [r7, #8]
  80635. 8020c48: 609a str r2, [r3, #8]
  80636. timeout->arg = arg;
  80637. 8020c4a: 693b ldr r3, [r7, #16]
  80638. 8020c4c: 687a ldr r2, [r7, #4]
  80639. 8020c4e: 60da str r2, [r3, #12]
  80640. timeout->time = abs_time;
  80641. 8020c50: 693b ldr r3, [r7, #16]
  80642. 8020c52: 68fa ldr r2, [r7, #12]
  80643. 8020c54: 605a str r2, [r3, #4]
  80644. timeout->handler_name = handler_name;
  80645. LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p abs_time=%"U32_F" handler=%s arg=%p\n",
  80646. (void *)timeout, abs_time, handler_name, (void *)arg));
  80647. #endif /* LWIP_DEBUG_TIMERNAMES */
  80648. if (next_timeout == NULL) {
  80649. 8020c56: 4b24 ldr r3, [pc, #144] @ (8020ce8 <sys_timeout_abs+0xd8>)
  80650. 8020c58: 681b ldr r3, [r3, #0]
  80651. 8020c5a: 2b00 cmp r3, #0
  80652. 8020c5c: d103 bne.n 8020c66 <sys_timeout_abs+0x56>
  80653. next_timeout = timeout;
  80654. 8020c5e: 4a22 ldr r2, [pc, #136] @ (8020ce8 <sys_timeout_abs+0xd8>)
  80655. 8020c60: 693b ldr r3, [r7, #16]
  80656. 8020c62: 6013 str r3, [r2, #0]
  80657. return;
  80658. 8020c64: e037 b.n 8020cd6 <sys_timeout_abs+0xc6>
  80659. }
  80660. if (TIME_LESS_THAN(timeout->time, next_timeout->time)) {
  80661. 8020c66: 693b ldr r3, [r7, #16]
  80662. 8020c68: 685a ldr r2, [r3, #4]
  80663. 8020c6a: 4b1f ldr r3, [pc, #124] @ (8020ce8 <sys_timeout_abs+0xd8>)
  80664. 8020c6c: 681b ldr r3, [r3, #0]
  80665. 8020c6e: 685b ldr r3, [r3, #4]
  80666. 8020c70: 1ad3 subs r3, r2, r3
  80667. 8020c72: 0fdb lsrs r3, r3, #31
  80668. 8020c74: f003 0301 and.w r3, r3, #1
  80669. 8020c78: b2db uxtb r3, r3
  80670. 8020c7a: 2b00 cmp r3, #0
  80671. 8020c7c: d007 beq.n 8020c8e <sys_timeout_abs+0x7e>
  80672. timeout->next = next_timeout;
  80673. 8020c7e: 4b1a ldr r3, [pc, #104] @ (8020ce8 <sys_timeout_abs+0xd8>)
  80674. 8020c80: 681a ldr r2, [r3, #0]
  80675. 8020c82: 693b ldr r3, [r7, #16]
  80676. 8020c84: 601a str r2, [r3, #0]
  80677. next_timeout = timeout;
  80678. 8020c86: 4a18 ldr r2, [pc, #96] @ (8020ce8 <sys_timeout_abs+0xd8>)
  80679. 8020c88: 693b ldr r3, [r7, #16]
  80680. 8020c8a: 6013 str r3, [r2, #0]
  80681. 8020c8c: e023 b.n 8020cd6 <sys_timeout_abs+0xc6>
  80682. } else {
  80683. for (t = next_timeout; t != NULL; t = t->next) {
  80684. 8020c8e: 4b16 ldr r3, [pc, #88] @ (8020ce8 <sys_timeout_abs+0xd8>)
  80685. 8020c90: 681b ldr r3, [r3, #0]
  80686. 8020c92: 617b str r3, [r7, #20]
  80687. 8020c94: e01a b.n 8020ccc <sys_timeout_abs+0xbc>
  80688. if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) {
  80689. 8020c96: 697b ldr r3, [r7, #20]
  80690. 8020c98: 681b ldr r3, [r3, #0]
  80691. 8020c9a: 2b00 cmp r3, #0
  80692. 8020c9c: d00b beq.n 8020cb6 <sys_timeout_abs+0xa6>
  80693. 8020c9e: 693b ldr r3, [r7, #16]
  80694. 8020ca0: 685a ldr r2, [r3, #4]
  80695. 8020ca2: 697b ldr r3, [r7, #20]
  80696. 8020ca4: 681b ldr r3, [r3, #0]
  80697. 8020ca6: 685b ldr r3, [r3, #4]
  80698. 8020ca8: 1ad3 subs r3, r2, r3
  80699. 8020caa: 0fdb lsrs r3, r3, #31
  80700. 8020cac: f003 0301 and.w r3, r3, #1
  80701. 8020cb0: b2db uxtb r3, r3
  80702. 8020cb2: 2b00 cmp r3, #0
  80703. 8020cb4: d007 beq.n 8020cc6 <sys_timeout_abs+0xb6>
  80704. timeout->next = t->next;
  80705. 8020cb6: 697b ldr r3, [r7, #20]
  80706. 8020cb8: 681a ldr r2, [r3, #0]
  80707. 8020cba: 693b ldr r3, [r7, #16]
  80708. 8020cbc: 601a str r2, [r3, #0]
  80709. t->next = timeout;
  80710. 8020cbe: 697b ldr r3, [r7, #20]
  80711. 8020cc0: 693a ldr r2, [r7, #16]
  80712. 8020cc2: 601a str r2, [r3, #0]
  80713. break;
  80714. 8020cc4: e007 b.n 8020cd6 <sys_timeout_abs+0xc6>
  80715. for (t = next_timeout; t != NULL; t = t->next) {
  80716. 8020cc6: 697b ldr r3, [r7, #20]
  80717. 8020cc8: 681b ldr r3, [r3, #0]
  80718. 8020cca: 617b str r3, [r7, #20]
  80719. 8020ccc: 697b ldr r3, [r7, #20]
  80720. 8020cce: 2b00 cmp r3, #0
  80721. 8020cd0: d1e1 bne.n 8020c96 <sys_timeout_abs+0x86>
  80722. 8020cd2: e000 b.n 8020cd6 <sys_timeout_abs+0xc6>
  80723. return;
  80724. 8020cd4: bf00 nop
  80725. }
  80726. }
  80727. }
  80728. }
  80729. 8020cd6: 3718 adds r7, #24
  80730. 8020cd8: 46bd mov sp, r7
  80731. 8020cda: bd80 pop {r7, pc}
  80732. 8020cdc: 0802fa50 .word 0x0802fa50
  80733. 8020ce0: 0802fa84 .word 0x0802fa84
  80734. 8020ce4: 0802fac4 .word 0x0802fac4
  80735. 8020ce8: 2402aedc .word 0x2402aedc
  80736. 08020cec <lwip_cyclic_timer>:
  80737. #if !LWIP_TESTMODE
  80738. static
  80739. #endif
  80740. void
  80741. lwip_cyclic_timer(void *arg)
  80742. {
  80743. 8020cec: b580 push {r7, lr}
  80744. 8020cee: b086 sub sp, #24
  80745. 8020cf0: af00 add r7, sp, #0
  80746. 8020cf2: 6078 str r0, [r7, #4]
  80747. u32_t now;
  80748. u32_t next_timeout_time;
  80749. const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg;
  80750. 8020cf4: 687b ldr r3, [r7, #4]
  80751. 8020cf6: 617b str r3, [r7, #20]
  80752. #if LWIP_DEBUG_TIMERNAMES
  80753. LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name));
  80754. #endif
  80755. cyclic->handler();
  80756. 8020cf8: 697b ldr r3, [r7, #20]
  80757. 8020cfa: 685b ldr r3, [r3, #4]
  80758. 8020cfc: 4798 blx r3
  80759. now = sys_now();
  80760. 8020cfe: f7ef f985 bl 801000c <sys_now>
  80761. 8020d02: 6138 str r0, [r7, #16]
  80762. next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */
  80763. 8020d04: 697b ldr r3, [r7, #20]
  80764. 8020d06: 681a ldr r2, [r3, #0]
  80765. 8020d08: 4b0f ldr r3, [pc, #60] @ (8020d48 <lwip_cyclic_timer+0x5c>)
  80766. 8020d0a: 681b ldr r3, [r3, #0]
  80767. 8020d0c: 4413 add r3, r2
  80768. 8020d0e: 60fb str r3, [r7, #12]
  80769. if (TIME_LESS_THAN(next_timeout_time, now)) {
  80770. 8020d10: 68fa ldr r2, [r7, #12]
  80771. 8020d12: 693b ldr r3, [r7, #16]
  80772. 8020d14: 1ad3 subs r3, r2, r3
  80773. 8020d16: 0fdb lsrs r3, r3, #31
  80774. 8020d18: f003 0301 and.w r3, r3, #1
  80775. 8020d1c: b2db uxtb r3, r3
  80776. 8020d1e: 2b00 cmp r3, #0
  80777. 8020d20: d009 beq.n 8020d36 <lwip_cyclic_timer+0x4a>
  80778. /* timer would immediately expire again -> "overload" -> restart without any correction */
  80779. #if LWIP_DEBUG_TIMERNAMES
  80780. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg, cyclic->handler_name);
  80781. #else
  80782. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg);
  80783. 8020d22: 697b ldr r3, [r7, #20]
  80784. 8020d24: 681a ldr r2, [r3, #0]
  80785. 8020d26: 693b ldr r3, [r7, #16]
  80786. 8020d28: 4413 add r3, r2
  80787. 8020d2a: 687a ldr r2, [r7, #4]
  80788. 8020d2c: 4907 ldr r1, [pc, #28] @ (8020d4c <lwip_cyclic_timer+0x60>)
  80789. 8020d2e: 4618 mov r0, r3
  80790. 8020d30: f7ff ff6e bl 8020c10 <sys_timeout_abs>
  80791. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg, cyclic->handler_name);
  80792. #else
  80793. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  80794. #endif
  80795. }
  80796. }
  80797. 8020d34: e004 b.n 8020d40 <lwip_cyclic_timer+0x54>
  80798. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  80799. 8020d36: 687a ldr r2, [r7, #4]
  80800. 8020d38: 4904 ldr r1, [pc, #16] @ (8020d4c <lwip_cyclic_timer+0x60>)
  80801. 8020d3a: 68f8 ldr r0, [r7, #12]
  80802. 8020d3c: f7ff ff68 bl 8020c10 <sys_timeout_abs>
  80803. }
  80804. 8020d40: bf00 nop
  80805. 8020d42: 3718 adds r7, #24
  80806. 8020d44: 46bd mov sp, r7
  80807. 8020d46: bd80 pop {r7, pc}
  80808. 8020d48: 2402aee0 .word 0x2402aee0
  80809. 8020d4c: 08020ced .word 0x08020ced
  80810. 08020d50 <sys_timeouts_init>:
  80811. /** Initialize this module */
  80812. void sys_timeouts_init(void)
  80813. {
  80814. 8020d50: b580 push {r7, lr}
  80815. 8020d52: b082 sub sp, #8
  80816. 8020d54: af00 add r7, sp, #0
  80817. size_t i;
  80818. /* tcp_tmr() at index 0 is started on demand */
  80819. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  80820. 8020d56: 2301 movs r3, #1
  80821. 8020d58: 607b str r3, [r7, #4]
  80822. 8020d5a: e00e b.n 8020d7a <sys_timeouts_init+0x2a>
  80823. /* we have to cast via size_t to get rid of const warning
  80824. (this is OK as cyclic_timer() casts back to const* */
  80825. sys_timeout(lwip_cyclic_timers[i].interval_ms, lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i]));
  80826. 8020d5c: 4a0b ldr r2, [pc, #44] @ (8020d8c <sys_timeouts_init+0x3c>)
  80827. 8020d5e: 687b ldr r3, [r7, #4]
  80828. 8020d60: f852 0033 ldr.w r0, [r2, r3, lsl #3]
  80829. 8020d64: 687b ldr r3, [r7, #4]
  80830. 8020d66: 00db lsls r3, r3, #3
  80831. 8020d68: 4a08 ldr r2, [pc, #32] @ (8020d8c <sys_timeouts_init+0x3c>)
  80832. 8020d6a: 4413 add r3, r2
  80833. 8020d6c: 461a mov r2, r3
  80834. 8020d6e: 4908 ldr r1, [pc, #32] @ (8020d90 <sys_timeouts_init+0x40>)
  80835. 8020d70: f000 f810 bl 8020d94 <sys_timeout>
  80836. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  80837. 8020d74: 687b ldr r3, [r7, #4]
  80838. 8020d76: 3301 adds r3, #1
  80839. 8020d78: 607b str r3, [r7, #4]
  80840. 8020d7a: 687b ldr r3, [r7, #4]
  80841. 8020d7c: 2b04 cmp r3, #4
  80842. 8020d7e: d9ed bls.n 8020d5c <sys_timeouts_init+0xc>
  80843. }
  80844. }
  80845. 8020d80: bf00 nop
  80846. 8020d82: bf00 nop
  80847. 8020d84: 3708 adds r7, #8
  80848. 8020d86: 46bd mov sp, r7
  80849. 8020d88: bd80 pop {r7, pc}
  80850. 8020d8a: bf00 nop
  80851. 8020d8c: 08030c40 .word 0x08030c40
  80852. 8020d90: 08020ced .word 0x08020ced
  80853. 08020d94 <sys_timeout>:
  80854. sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name)
  80855. #else /* LWIP_DEBUG_TIMERNAMES */
  80856. void
  80857. sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg)
  80858. #endif /* LWIP_DEBUG_TIMERNAMES */
  80859. {
  80860. 8020d94: b580 push {r7, lr}
  80861. 8020d96: b086 sub sp, #24
  80862. 8020d98: af00 add r7, sp, #0
  80863. 8020d9a: 60f8 str r0, [r7, #12]
  80864. 8020d9c: 60b9 str r1, [r7, #8]
  80865. 8020d9e: 607a str r2, [r7, #4]
  80866. u32_t next_timeout_time;
  80867. LWIP_ASSERT_CORE_LOCKED();
  80868. 8020da0: f7ef fbd0 bl 8010544 <sys_check_core_locking>
  80869. LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4));
  80870. 8020da4: 68fb ldr r3, [r7, #12]
  80871. 8020da6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  80872. 8020daa: d306 bcc.n 8020dba <sys_timeout+0x26>
  80873. 8020dac: 4b0a ldr r3, [pc, #40] @ (8020dd8 <sys_timeout+0x44>)
  80874. 8020dae: f240 1229 movw r2, #297 @ 0x129
  80875. 8020db2: 490a ldr r1, [pc, #40] @ (8020ddc <sys_timeout+0x48>)
  80876. 8020db4: 480a ldr r0, [pc, #40] @ (8020de0 <sys_timeout+0x4c>)
  80877. 8020db6: f008 fe11 bl 80299dc <iprintf>
  80878. next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */
  80879. 8020dba: f7ef f927 bl 801000c <sys_now>
  80880. 8020dbe: 4602 mov r2, r0
  80881. 8020dc0: 68fb ldr r3, [r7, #12]
  80882. 8020dc2: 4413 add r3, r2
  80883. 8020dc4: 617b str r3, [r7, #20]
  80884. #if LWIP_DEBUG_TIMERNAMES
  80885. sys_timeout_abs(next_timeout_time, handler, arg, handler_name);
  80886. #else
  80887. sys_timeout_abs(next_timeout_time, handler, arg);
  80888. 8020dc6: 687a ldr r2, [r7, #4]
  80889. 8020dc8: 68b9 ldr r1, [r7, #8]
  80890. 8020dca: 6978 ldr r0, [r7, #20]
  80891. 8020dcc: f7ff ff20 bl 8020c10 <sys_timeout_abs>
  80892. #endif
  80893. }
  80894. 8020dd0: bf00 nop
  80895. 8020dd2: 3718 adds r7, #24
  80896. 8020dd4: 46bd mov sp, r7
  80897. 8020dd6: bd80 pop {r7, pc}
  80898. 8020dd8: 0802fa50 .word 0x0802fa50
  80899. 8020ddc: 0802faec .word 0x0802faec
  80900. 8020de0: 0802fac4 .word 0x0802fac4
  80901. 08020de4 <sys_check_timeouts>:
  80902. *
  80903. * Must be called periodically from your main loop.
  80904. */
  80905. void
  80906. sys_check_timeouts(void)
  80907. {
  80908. 8020de4: b580 push {r7, lr}
  80909. 8020de6: b084 sub sp, #16
  80910. 8020de8: af00 add r7, sp, #0
  80911. u32_t now;
  80912. LWIP_ASSERT_CORE_LOCKED();
  80913. 8020dea: f7ef fbab bl 8010544 <sys_check_core_locking>
  80914. /* Process only timers expired at the start of the function. */
  80915. now = sys_now();
  80916. 8020dee: f7ef f90d bl 801000c <sys_now>
  80917. 8020df2: 60f8 str r0, [r7, #12]
  80918. sys_timeout_handler handler;
  80919. void *arg;
  80920. PBUF_CHECK_FREE_OOSEQ();
  80921. tmptimeout = next_timeout;
  80922. 8020df4: 4b17 ldr r3, [pc, #92] @ (8020e54 <sys_check_timeouts+0x70>)
  80923. 8020df6: 681b ldr r3, [r3, #0]
  80924. 8020df8: 60bb str r3, [r7, #8]
  80925. if (tmptimeout == NULL) {
  80926. 8020dfa: 68bb ldr r3, [r7, #8]
  80927. 8020dfc: 2b00 cmp r3, #0
  80928. 8020dfe: d022 beq.n 8020e46 <sys_check_timeouts+0x62>
  80929. return;
  80930. }
  80931. if (TIME_LESS_THAN(now, tmptimeout->time)) {
  80932. 8020e00: 68bb ldr r3, [r7, #8]
  80933. 8020e02: 685b ldr r3, [r3, #4]
  80934. 8020e04: 68fa ldr r2, [r7, #12]
  80935. 8020e06: 1ad3 subs r3, r2, r3
  80936. 8020e08: 0fdb lsrs r3, r3, #31
  80937. 8020e0a: f003 0301 and.w r3, r3, #1
  80938. 8020e0e: b2db uxtb r3, r3
  80939. 8020e10: 2b00 cmp r3, #0
  80940. 8020e12: d11a bne.n 8020e4a <sys_check_timeouts+0x66>
  80941. return;
  80942. }
  80943. /* Timeout has expired */
  80944. next_timeout = tmptimeout->next;
  80945. 8020e14: 68bb ldr r3, [r7, #8]
  80946. 8020e16: 681b ldr r3, [r3, #0]
  80947. 8020e18: 4a0e ldr r2, [pc, #56] @ (8020e54 <sys_check_timeouts+0x70>)
  80948. 8020e1a: 6013 str r3, [r2, #0]
  80949. handler = tmptimeout->h;
  80950. 8020e1c: 68bb ldr r3, [r7, #8]
  80951. 8020e1e: 689b ldr r3, [r3, #8]
  80952. 8020e20: 607b str r3, [r7, #4]
  80953. arg = tmptimeout->arg;
  80954. 8020e22: 68bb ldr r3, [r7, #8]
  80955. 8020e24: 68db ldr r3, [r3, #12]
  80956. 8020e26: 603b str r3, [r7, #0]
  80957. current_timeout_due_time = tmptimeout->time;
  80958. 8020e28: 68bb ldr r3, [r7, #8]
  80959. 8020e2a: 685b ldr r3, [r3, #4]
  80960. 8020e2c: 4a0a ldr r2, [pc, #40] @ (8020e58 <sys_check_timeouts+0x74>)
  80961. 8020e2e: 6013 str r3, [r2, #0]
  80962. if (handler != NULL) {
  80963. LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%s t=%"U32_F" arg=%p\n",
  80964. tmptimeout->handler_name, sys_now() - tmptimeout->time, arg));
  80965. }
  80966. #endif /* LWIP_DEBUG_TIMERNAMES */
  80967. memp_free(MEMP_SYS_TIMEOUT, tmptimeout);
  80968. 8020e30: 68b9 ldr r1, [r7, #8]
  80969. 8020e32: 200a movs r0, #10
  80970. 8020e34: f7f8 fc6c bl 8019710 <memp_free>
  80971. if (handler != NULL) {
  80972. 8020e38: 687b ldr r3, [r7, #4]
  80973. 8020e3a: 2b00 cmp r3, #0
  80974. 8020e3c: d0da beq.n 8020df4 <sys_check_timeouts+0x10>
  80975. handler(arg);
  80976. 8020e3e: 687b ldr r3, [r7, #4]
  80977. 8020e40: 6838 ldr r0, [r7, #0]
  80978. 8020e42: 4798 blx r3
  80979. do {
  80980. 8020e44: e7d6 b.n 8020df4 <sys_check_timeouts+0x10>
  80981. return;
  80982. 8020e46: bf00 nop
  80983. 8020e48: e000 b.n 8020e4c <sys_check_timeouts+0x68>
  80984. return;
  80985. 8020e4a: bf00 nop
  80986. }
  80987. LWIP_TCPIP_THREAD_ALIVE();
  80988. /* Repeat until all expired timers have been called */
  80989. } while (1);
  80990. }
  80991. 8020e4c: 3710 adds r7, #16
  80992. 8020e4e: 46bd mov sp, r7
  80993. 8020e50: bd80 pop {r7, pc}
  80994. 8020e52: bf00 nop
  80995. 8020e54: 2402aedc .word 0x2402aedc
  80996. 8020e58: 2402aee0 .word 0x2402aee0
  80997. 08020e5c <sys_timeouts_sleeptime>:
  80998. /** Return the time left before the next timeout is due. If no timeouts are
  80999. * enqueued, returns 0xffffffff
  81000. */
  81001. u32_t
  81002. sys_timeouts_sleeptime(void)
  81003. {
  81004. 8020e5c: b580 push {r7, lr}
  81005. 8020e5e: b082 sub sp, #8
  81006. 8020e60: af00 add r7, sp, #0
  81007. u32_t now;
  81008. LWIP_ASSERT_CORE_LOCKED();
  81009. 8020e62: f7ef fb6f bl 8010544 <sys_check_core_locking>
  81010. if (next_timeout == NULL) {
  81011. 8020e66: 4b16 ldr r3, [pc, #88] @ (8020ec0 <sys_timeouts_sleeptime+0x64>)
  81012. 8020e68: 681b ldr r3, [r3, #0]
  81013. 8020e6a: 2b00 cmp r3, #0
  81014. 8020e6c: d102 bne.n 8020e74 <sys_timeouts_sleeptime+0x18>
  81015. return SYS_TIMEOUTS_SLEEPTIME_INFINITE;
  81016. 8020e6e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  81017. 8020e72: e020 b.n 8020eb6 <sys_timeouts_sleeptime+0x5a>
  81018. }
  81019. now = sys_now();
  81020. 8020e74: f7ef f8ca bl 801000c <sys_now>
  81021. 8020e78: 6078 str r0, [r7, #4]
  81022. if (TIME_LESS_THAN(next_timeout->time, now)) {
  81023. 8020e7a: 4b11 ldr r3, [pc, #68] @ (8020ec0 <sys_timeouts_sleeptime+0x64>)
  81024. 8020e7c: 681b ldr r3, [r3, #0]
  81025. 8020e7e: 685a ldr r2, [r3, #4]
  81026. 8020e80: 687b ldr r3, [r7, #4]
  81027. 8020e82: 1ad3 subs r3, r2, r3
  81028. 8020e84: 0fdb lsrs r3, r3, #31
  81029. 8020e86: f003 0301 and.w r3, r3, #1
  81030. 8020e8a: b2db uxtb r3, r3
  81031. 8020e8c: 2b00 cmp r3, #0
  81032. 8020e8e: d001 beq.n 8020e94 <sys_timeouts_sleeptime+0x38>
  81033. return 0;
  81034. 8020e90: 2300 movs r3, #0
  81035. 8020e92: e010 b.n 8020eb6 <sys_timeouts_sleeptime+0x5a>
  81036. } else {
  81037. u32_t ret = (u32_t)(next_timeout->time - now);
  81038. 8020e94: 4b0a ldr r3, [pc, #40] @ (8020ec0 <sys_timeouts_sleeptime+0x64>)
  81039. 8020e96: 681b ldr r3, [r3, #0]
  81040. 8020e98: 685a ldr r2, [r3, #4]
  81041. 8020e9a: 687b ldr r3, [r7, #4]
  81042. 8020e9c: 1ad3 subs r3, r2, r3
  81043. 8020e9e: 603b str r3, [r7, #0]
  81044. LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT);
  81045. 8020ea0: 683b ldr r3, [r7, #0]
  81046. 8020ea2: 2b00 cmp r3, #0
  81047. 8020ea4: da06 bge.n 8020eb4 <sys_timeouts_sleeptime+0x58>
  81048. 8020ea6: 4b07 ldr r3, [pc, #28] @ (8020ec4 <sys_timeouts_sleeptime+0x68>)
  81049. 8020ea8: f44f 72dc mov.w r2, #440 @ 0x1b8
  81050. 8020eac: 4906 ldr r1, [pc, #24] @ (8020ec8 <sys_timeouts_sleeptime+0x6c>)
  81051. 8020eae: 4807 ldr r0, [pc, #28] @ (8020ecc <sys_timeouts_sleeptime+0x70>)
  81052. 8020eb0: f008 fd94 bl 80299dc <iprintf>
  81053. return ret;
  81054. 8020eb4: 683b ldr r3, [r7, #0]
  81055. }
  81056. }
  81057. 8020eb6: 4618 mov r0, r3
  81058. 8020eb8: 3708 adds r7, #8
  81059. 8020eba: 46bd mov sp, r7
  81060. 8020ebc: bd80 pop {r7, pc}
  81061. 8020ebe: bf00 nop
  81062. 8020ec0: 2402aedc .word 0x2402aedc
  81063. 8020ec4: 0802fa50 .word 0x0802fa50
  81064. 8020ec8: 0802fb24 .word 0x0802fb24
  81065. 8020ecc: 0802fac4 .word 0x0802fac4
  81066. 08020ed0 <udp_init>:
  81067. /**
  81068. * Initialize this module.
  81069. */
  81070. void
  81071. udp_init(void)
  81072. {
  81073. 8020ed0: b580 push {r7, lr}
  81074. 8020ed2: af00 add r7, sp, #0
  81075. #ifdef LWIP_RAND
  81076. udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  81077. 8020ed4: f007 fa58 bl 8028388 <rand>
  81078. 8020ed8: 4603 mov r3, r0
  81079. 8020eda: b29b uxth r3, r3
  81080. 8020edc: f3c3 030d ubfx r3, r3, #0, #14
  81081. 8020ee0: b29b uxth r3, r3
  81082. 8020ee2: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  81083. 8020ee6: b29a uxth r2, r3
  81084. 8020ee8: 4b01 ldr r3, [pc, #4] @ (8020ef0 <udp_init+0x20>)
  81085. 8020eea: 801a strh r2, [r3, #0]
  81086. #endif /* LWIP_RAND */
  81087. }
  81088. 8020eec: bf00 nop
  81089. 8020eee: bd80 pop {r7, pc}
  81090. 8020ef0: 24000054 .word 0x24000054
  81091. 08020ef4 <udp_new_port>:
  81092. *
  81093. * @return a new (free) local UDP port number
  81094. */
  81095. static u16_t
  81096. udp_new_port(void)
  81097. {
  81098. 8020ef4: b480 push {r7}
  81099. 8020ef6: b083 sub sp, #12
  81100. 8020ef8: af00 add r7, sp, #0
  81101. u16_t n = 0;
  81102. 8020efa: 2300 movs r3, #0
  81103. 8020efc: 80fb strh r3, [r7, #6]
  81104. struct udp_pcb *pcb;
  81105. again:
  81106. if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) {
  81107. 8020efe: 4b17 ldr r3, [pc, #92] @ (8020f5c <udp_new_port+0x68>)
  81108. 8020f00: 881b ldrh r3, [r3, #0]
  81109. 8020f02: 1c5a adds r2, r3, #1
  81110. 8020f04: b291 uxth r1, r2
  81111. 8020f06: 4a15 ldr r2, [pc, #84] @ (8020f5c <udp_new_port+0x68>)
  81112. 8020f08: 8011 strh r1, [r2, #0]
  81113. 8020f0a: f64f 72ff movw r2, #65535 @ 0xffff
  81114. 8020f0e: 4293 cmp r3, r2
  81115. 8020f10: d103 bne.n 8020f1a <udp_new_port+0x26>
  81116. udp_port = UDP_LOCAL_PORT_RANGE_START;
  81117. 8020f12: 4b12 ldr r3, [pc, #72] @ (8020f5c <udp_new_port+0x68>)
  81118. 8020f14: f44f 4240 mov.w r2, #49152 @ 0xc000
  81119. 8020f18: 801a strh r2, [r3, #0]
  81120. }
  81121. /* Check all PCBs. */
  81122. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  81123. 8020f1a: 4b11 ldr r3, [pc, #68] @ (8020f60 <udp_new_port+0x6c>)
  81124. 8020f1c: 681b ldr r3, [r3, #0]
  81125. 8020f1e: 603b str r3, [r7, #0]
  81126. 8020f20: e011 b.n 8020f46 <udp_new_port+0x52>
  81127. if (pcb->local_port == udp_port) {
  81128. 8020f22: 683b ldr r3, [r7, #0]
  81129. 8020f24: 8a5a ldrh r2, [r3, #18]
  81130. 8020f26: 4b0d ldr r3, [pc, #52] @ (8020f5c <udp_new_port+0x68>)
  81131. 8020f28: 881b ldrh r3, [r3, #0]
  81132. 8020f2a: 429a cmp r2, r3
  81133. 8020f2c: d108 bne.n 8020f40 <udp_new_port+0x4c>
  81134. if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) {
  81135. 8020f2e: 88fb ldrh r3, [r7, #6]
  81136. 8020f30: 3301 adds r3, #1
  81137. 8020f32: 80fb strh r3, [r7, #6]
  81138. 8020f34: 88fb ldrh r3, [r7, #6]
  81139. 8020f36: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  81140. 8020f3a: d3e0 bcc.n 8020efe <udp_new_port+0xa>
  81141. return 0;
  81142. 8020f3c: 2300 movs r3, #0
  81143. 8020f3e: e007 b.n 8020f50 <udp_new_port+0x5c>
  81144. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  81145. 8020f40: 683b ldr r3, [r7, #0]
  81146. 8020f42: 68db ldr r3, [r3, #12]
  81147. 8020f44: 603b str r3, [r7, #0]
  81148. 8020f46: 683b ldr r3, [r7, #0]
  81149. 8020f48: 2b00 cmp r3, #0
  81150. 8020f4a: d1ea bne.n 8020f22 <udp_new_port+0x2e>
  81151. }
  81152. goto again;
  81153. }
  81154. }
  81155. return udp_port;
  81156. 8020f4c: 4b03 ldr r3, [pc, #12] @ (8020f5c <udp_new_port+0x68>)
  81157. 8020f4e: 881b ldrh r3, [r3, #0]
  81158. }
  81159. 8020f50: 4618 mov r0, r3
  81160. 8020f52: 370c adds r7, #12
  81161. 8020f54: 46bd mov sp, r7
  81162. 8020f56: f85d 7b04 ldr.w r7, [sp], #4
  81163. 8020f5a: 4770 bx lr
  81164. 8020f5c: 24000054 .word 0x24000054
  81165. 8020f60: 2402aee8 .word 0x2402aee8
  81166. 08020f64 <udp_input_local_match>:
  81167. * @param broadcast 1 if his is an IPv4 broadcast (global or subnet-only), 0 otherwise (only used for IPv4)
  81168. * @return 1 on match, 0 otherwise
  81169. */
  81170. static u8_t
  81171. udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast)
  81172. {
  81173. 8020f64: b580 push {r7, lr}
  81174. 8020f66: b084 sub sp, #16
  81175. 8020f68: af00 add r7, sp, #0
  81176. 8020f6a: 60f8 str r0, [r7, #12]
  81177. 8020f6c: 60b9 str r1, [r7, #8]
  81178. 8020f6e: 4613 mov r3, r2
  81179. 8020f70: 71fb strb r3, [r7, #7]
  81180. LWIP_UNUSED_ARG(inp); /* in IPv6 only case */
  81181. LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */
  81182. LWIP_ASSERT("udp_input_local_match: invalid pcb", pcb != NULL);
  81183. 8020f72: 68fb ldr r3, [r7, #12]
  81184. 8020f74: 2b00 cmp r3, #0
  81185. 8020f76: d105 bne.n 8020f84 <udp_input_local_match+0x20>
  81186. 8020f78: 4b27 ldr r3, [pc, #156] @ (8021018 <udp_input_local_match+0xb4>)
  81187. 8020f7a: 2287 movs r2, #135 @ 0x87
  81188. 8020f7c: 4927 ldr r1, [pc, #156] @ (802101c <udp_input_local_match+0xb8>)
  81189. 8020f7e: 4828 ldr r0, [pc, #160] @ (8021020 <udp_input_local_match+0xbc>)
  81190. 8020f80: f008 fd2c bl 80299dc <iprintf>
  81191. LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL);
  81192. 8020f84: 68bb ldr r3, [r7, #8]
  81193. 8020f86: 2b00 cmp r3, #0
  81194. 8020f88: d105 bne.n 8020f96 <udp_input_local_match+0x32>
  81195. 8020f8a: 4b23 ldr r3, [pc, #140] @ (8021018 <udp_input_local_match+0xb4>)
  81196. 8020f8c: 2288 movs r2, #136 @ 0x88
  81197. 8020f8e: 4925 ldr r1, [pc, #148] @ (8021024 <udp_input_local_match+0xc0>)
  81198. 8020f90: 4823 ldr r0, [pc, #140] @ (8021020 <udp_input_local_match+0xbc>)
  81199. 8020f92: f008 fd23 bl 80299dc <iprintf>
  81200. /* check if PCB is bound to specific netif */
  81201. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  81202. 8020f96: 68fb ldr r3, [r7, #12]
  81203. 8020f98: 7a1b ldrb r3, [r3, #8]
  81204. 8020f9a: 2b00 cmp r3, #0
  81205. 8020f9c: d00b beq.n 8020fb6 <udp_input_local_match+0x52>
  81206. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  81207. 8020f9e: 68fb ldr r3, [r7, #12]
  81208. 8020fa0: 7a1a ldrb r2, [r3, #8]
  81209. 8020fa2: 4b21 ldr r3, [pc, #132] @ (8021028 <udp_input_local_match+0xc4>)
  81210. 8020fa4: 685b ldr r3, [r3, #4]
  81211. 8020fa6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  81212. 8020faa: 3301 adds r3, #1
  81213. 8020fac: b2db uxtb r3, r3
  81214. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  81215. 8020fae: 429a cmp r2, r3
  81216. 8020fb0: d001 beq.n 8020fb6 <udp_input_local_match+0x52>
  81217. return 0;
  81218. 8020fb2: 2300 movs r3, #0
  81219. 8020fb4: e02b b.n 802100e <udp_input_local_match+0xaa>
  81220. /* Only need to check PCB if incoming IP version matches PCB IP version */
  81221. if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) {
  81222. #if LWIP_IPV4
  81223. /* Special case: IPv4 broadcast: all or broadcasts in my subnet
  81224. * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */
  81225. if (broadcast != 0) {
  81226. 8020fb6: 79fb ldrb r3, [r7, #7]
  81227. 8020fb8: 2b00 cmp r3, #0
  81228. 8020fba: d018 beq.n 8020fee <udp_input_local_match+0x8a>
  81229. #if IP_SOF_BROADCAST_RECV
  81230. if (ip_get_option(pcb, SOF_BROADCAST))
  81231. #endif /* IP_SOF_BROADCAST_RECV */
  81232. {
  81233. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  81234. 8020fbc: 68fb ldr r3, [r7, #12]
  81235. 8020fbe: 2b00 cmp r3, #0
  81236. 8020fc0: d013 beq.n 8020fea <udp_input_local_match+0x86>
  81237. 8020fc2: 68fb ldr r3, [r7, #12]
  81238. 8020fc4: 681b ldr r3, [r3, #0]
  81239. 8020fc6: 2b00 cmp r3, #0
  81240. 8020fc8: d00f beq.n 8020fea <udp_input_local_match+0x86>
  81241. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  81242. 8020fca: 4b17 ldr r3, [pc, #92] @ (8021028 <udp_input_local_match+0xc4>)
  81243. 8020fcc: 695b ldr r3, [r3, #20]
  81244. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  81245. 8020fce: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  81246. 8020fd2: d00a beq.n 8020fea <udp_input_local_match+0x86>
  81247. ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) {
  81248. 8020fd4: 68fb ldr r3, [r7, #12]
  81249. 8020fd6: 681a ldr r2, [r3, #0]
  81250. 8020fd8: 4b13 ldr r3, [pc, #76] @ (8021028 <udp_input_local_match+0xc4>)
  81251. 8020fda: 695b ldr r3, [r3, #20]
  81252. 8020fdc: 405a eors r2, r3
  81253. 8020fde: 68bb ldr r3, [r7, #8]
  81254. 8020fe0: 3308 adds r3, #8
  81255. 8020fe2: 681b ldr r3, [r3, #0]
  81256. 8020fe4: 4013 ands r3, r2
  81257. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  81258. 8020fe6: 2b00 cmp r3, #0
  81259. 8020fe8: d110 bne.n 802100c <udp_input_local_match+0xa8>
  81260. return 1;
  81261. 8020fea: 2301 movs r3, #1
  81262. 8020fec: e00f b.n 802100e <udp_input_local_match+0xaa>
  81263. }
  81264. }
  81265. } else
  81266. #endif /* LWIP_IPV4 */
  81267. /* Handle IPv4 and IPv6: all or exact match */
  81268. if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  81269. 8020fee: 68fb ldr r3, [r7, #12]
  81270. 8020ff0: 2b00 cmp r3, #0
  81271. 8020ff2: d009 beq.n 8021008 <udp_input_local_match+0xa4>
  81272. 8020ff4: 68fb ldr r3, [r7, #12]
  81273. 8020ff6: 681b ldr r3, [r3, #0]
  81274. 8020ff8: 2b00 cmp r3, #0
  81275. 8020ffa: d005 beq.n 8021008 <udp_input_local_match+0xa4>
  81276. 8020ffc: 68fb ldr r3, [r7, #12]
  81277. 8020ffe: 681a ldr r2, [r3, #0]
  81278. 8021000: 4b09 ldr r3, [pc, #36] @ (8021028 <udp_input_local_match+0xc4>)
  81279. 8021002: 695b ldr r3, [r3, #20]
  81280. 8021004: 429a cmp r2, r3
  81281. 8021006: d101 bne.n 802100c <udp_input_local_match+0xa8>
  81282. return 1;
  81283. 8021008: 2301 movs r3, #1
  81284. 802100a: e000 b.n 802100e <udp_input_local_match+0xaa>
  81285. }
  81286. }
  81287. return 0;
  81288. 802100c: 2300 movs r3, #0
  81289. }
  81290. 802100e: 4618 mov r0, r3
  81291. 8021010: 3710 adds r7, #16
  81292. 8021012: 46bd mov sp, r7
  81293. 8021014: bd80 pop {r7, pc}
  81294. 8021016: bf00 nop
  81295. 8021018: 0802fb38 .word 0x0802fb38
  81296. 802101c: 0802fb68 .word 0x0802fb68
  81297. 8021020: 0802fb8c .word 0x0802fb8c
  81298. 8021024: 0802fbb4 .word 0x0802fbb4
  81299. 8021028: 24024338 .word 0x24024338
  81300. 0802102c <udp_input>:
  81301. * @param inp network interface on which the datagram was received.
  81302. *
  81303. */
  81304. void
  81305. udp_input(struct pbuf *p, struct netif *inp)
  81306. {
  81307. 802102c: b590 push {r4, r7, lr}
  81308. 802102e: b08d sub sp, #52 @ 0x34
  81309. 8021030: af02 add r7, sp, #8
  81310. 8021032: 6078 str r0, [r7, #4]
  81311. 8021034: 6039 str r1, [r7, #0]
  81312. struct udp_hdr *udphdr;
  81313. struct udp_pcb *pcb, *prev;
  81314. struct udp_pcb *uncon_pcb;
  81315. u16_t src, dest;
  81316. u8_t broadcast;
  81317. u8_t for_us = 0;
  81318. 8021036: 2300 movs r3, #0
  81319. 8021038: 77fb strb r3, [r7, #31]
  81320. LWIP_UNUSED_ARG(inp);
  81321. LWIP_ASSERT_CORE_LOCKED();
  81322. 802103a: f7ef fa83 bl 8010544 <sys_check_core_locking>
  81323. LWIP_ASSERT("udp_input: invalid pbuf", p != NULL);
  81324. 802103e: 687b ldr r3, [r7, #4]
  81325. 8021040: 2b00 cmp r3, #0
  81326. 8021042: d105 bne.n 8021050 <udp_input+0x24>
  81327. 8021044: 4b7c ldr r3, [pc, #496] @ (8021238 <udp_input+0x20c>)
  81328. 8021046: 22cf movs r2, #207 @ 0xcf
  81329. 8021048: 497c ldr r1, [pc, #496] @ (802123c <udp_input+0x210>)
  81330. 802104a: 487d ldr r0, [pc, #500] @ (8021240 <udp_input+0x214>)
  81331. 802104c: f008 fcc6 bl 80299dc <iprintf>
  81332. LWIP_ASSERT("udp_input: invalid netif", inp != NULL);
  81333. 8021050: 683b ldr r3, [r7, #0]
  81334. 8021052: 2b00 cmp r3, #0
  81335. 8021054: d105 bne.n 8021062 <udp_input+0x36>
  81336. 8021056: 4b78 ldr r3, [pc, #480] @ (8021238 <udp_input+0x20c>)
  81337. 8021058: 22d0 movs r2, #208 @ 0xd0
  81338. 802105a: 497a ldr r1, [pc, #488] @ (8021244 <udp_input+0x218>)
  81339. 802105c: 4878 ldr r0, [pc, #480] @ (8021240 <udp_input+0x214>)
  81340. 802105e: f008 fcbd bl 80299dc <iprintf>
  81341. PERF_START;
  81342. UDP_STATS_INC(udp.recv);
  81343. /* Check minimum length (UDP header) */
  81344. if (p->len < UDP_HLEN) {
  81345. 8021062: 687b ldr r3, [r7, #4]
  81346. 8021064: 895b ldrh r3, [r3, #10]
  81347. 8021066: 2b07 cmp r3, #7
  81348. 8021068: d803 bhi.n 8021072 <udp_input+0x46>
  81349. LWIP_DEBUGF(UDP_DEBUG,
  81350. ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len));
  81351. UDP_STATS_INC(udp.lenerr);
  81352. UDP_STATS_INC(udp.drop);
  81353. MIB2_STATS_INC(mib2.udpinerrors);
  81354. pbuf_free(p);
  81355. 802106a: 6878 ldr r0, [r7, #4]
  81356. 802106c: f7f9 fa3e bl 801a4ec <pbuf_free>
  81357. goto end;
  81358. 8021070: e0de b.n 8021230 <udp_input+0x204>
  81359. }
  81360. udphdr = (struct udp_hdr *)p->payload;
  81361. 8021072: 687b ldr r3, [r7, #4]
  81362. 8021074: 685b ldr r3, [r3, #4]
  81363. 8021076: 617b str r3, [r7, #20]
  81364. /* is broadcast packet ? */
  81365. broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif());
  81366. 8021078: 4b73 ldr r3, [pc, #460] @ (8021248 <udp_input+0x21c>)
  81367. 802107a: 695b ldr r3, [r3, #20]
  81368. 802107c: 4a72 ldr r2, [pc, #456] @ (8021248 <udp_input+0x21c>)
  81369. 802107e: 6812 ldr r2, [r2, #0]
  81370. 8021080: 4611 mov r1, r2
  81371. 8021082: 4618 mov r0, r3
  81372. 8021084: f003 ff54 bl 8024f30 <ip4_addr_isbroadcast_u32>
  81373. 8021088: 4603 mov r3, r0
  81374. 802108a: 74fb strb r3, [r7, #19]
  81375. LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len));
  81376. /* convert src and dest ports to host byte order */
  81377. src = lwip_ntohs(udphdr->src);
  81378. 802108c: 697b ldr r3, [r7, #20]
  81379. 802108e: 881b ldrh r3, [r3, #0]
  81380. 8021090: b29b uxth r3, r3
  81381. 8021092: 4618 mov r0, r3
  81382. 8021094: f7f7 fd48 bl 8018b28 <lwip_htons>
  81383. 8021098: 4603 mov r3, r0
  81384. 802109a: 823b strh r3, [r7, #16]
  81385. dest = lwip_ntohs(udphdr->dest);
  81386. 802109c: 697b ldr r3, [r7, #20]
  81387. 802109e: 885b ldrh r3, [r3, #2]
  81388. 80210a0: b29b uxth r3, r3
  81389. 80210a2: 4618 mov r0, r3
  81390. 80210a4: f7f7 fd40 bl 8018b28 <lwip_htons>
  81391. 80210a8: 4603 mov r3, r0
  81392. 80210aa: 81fb strh r3, [r7, #14]
  81393. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_dest_addr());
  81394. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest)));
  81395. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_src_addr());
  81396. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src)));
  81397. pcb = NULL;
  81398. 80210ac: 2300 movs r3, #0
  81399. 80210ae: 623b str r3, [r7, #32]
  81400. prev = NULL;
  81401. 80210b0: 2300 movs r3, #0
  81402. 80210b2: 627b str r3, [r7, #36] @ 0x24
  81403. uncon_pcb = NULL;
  81404. 80210b4: 2300 movs r3, #0
  81405. 80210b6: 61bb str r3, [r7, #24]
  81406. /* Iterate through the UDP pcb list for a matching pcb.
  81407. * 'Perfect match' pcbs (connected to the remote port & ip address) are
  81408. * preferred. If no perfect match is found, the first unconnected pcb that
  81409. * matches the local port and ip address gets the datagram. */
  81410. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  81411. 80210b8: 4b64 ldr r3, [pc, #400] @ (802124c <udp_input+0x220>)
  81412. 80210ba: 681b ldr r3, [r3, #0]
  81413. 80210bc: 623b str r3, [r7, #32]
  81414. 80210be: e054 b.n 802116a <udp_input+0x13e>
  81415. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", pcb->local_port));
  81416. ip_addr_debug_print_val(UDP_DEBUG, pcb->remote_ip);
  81417. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", pcb->remote_port));
  81418. /* compare PCB local addr+port to UDP destination addr+port */
  81419. if ((pcb->local_port == dest) &&
  81420. 80210c0: 6a3b ldr r3, [r7, #32]
  81421. 80210c2: 8a5b ldrh r3, [r3, #18]
  81422. 80210c4: 89fa ldrh r2, [r7, #14]
  81423. 80210c6: 429a cmp r2, r3
  81424. 80210c8: d14a bne.n 8021160 <udp_input+0x134>
  81425. (udp_input_local_match(pcb, inp, broadcast) != 0)) {
  81426. 80210ca: 7cfb ldrb r3, [r7, #19]
  81427. 80210cc: 461a mov r2, r3
  81428. 80210ce: 6839 ldr r1, [r7, #0]
  81429. 80210d0: 6a38 ldr r0, [r7, #32]
  81430. 80210d2: f7ff ff47 bl 8020f64 <udp_input_local_match>
  81431. 80210d6: 4603 mov r3, r0
  81432. if ((pcb->local_port == dest) &&
  81433. 80210d8: 2b00 cmp r3, #0
  81434. 80210da: d041 beq.n 8021160 <udp_input+0x134>
  81435. if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) {
  81436. 80210dc: 6a3b ldr r3, [r7, #32]
  81437. 80210de: 7c1b ldrb r3, [r3, #16]
  81438. 80210e0: f003 0304 and.w r3, r3, #4
  81439. 80210e4: 2b00 cmp r3, #0
  81440. 80210e6: d11d bne.n 8021124 <udp_input+0xf8>
  81441. if (uncon_pcb == NULL) {
  81442. 80210e8: 69bb ldr r3, [r7, #24]
  81443. 80210ea: 2b00 cmp r3, #0
  81444. 80210ec: d102 bne.n 80210f4 <udp_input+0xc8>
  81445. /* the first unconnected matching PCB */
  81446. uncon_pcb = pcb;
  81447. 80210ee: 6a3b ldr r3, [r7, #32]
  81448. 80210f0: 61bb str r3, [r7, #24]
  81449. 80210f2: e017 b.n 8021124 <udp_input+0xf8>
  81450. #if LWIP_IPV4
  81451. } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) {
  81452. 80210f4: 7cfb ldrb r3, [r7, #19]
  81453. 80210f6: 2b00 cmp r3, #0
  81454. 80210f8: d014 beq.n 8021124 <udp_input+0xf8>
  81455. 80210fa: 4b53 ldr r3, [pc, #332] @ (8021248 <udp_input+0x21c>)
  81456. 80210fc: 695b ldr r3, [r3, #20]
  81457. 80210fe: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  81458. 8021102: d10f bne.n 8021124 <udp_input+0xf8>
  81459. /* global broadcast address (only valid for IPv4; match was checked before) */
  81460. if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_addr(inp))) {
  81461. 8021104: 69bb ldr r3, [r7, #24]
  81462. 8021106: 681a ldr r2, [r3, #0]
  81463. 8021108: 683b ldr r3, [r7, #0]
  81464. 802110a: 3304 adds r3, #4
  81465. 802110c: 681b ldr r3, [r3, #0]
  81466. 802110e: 429a cmp r2, r3
  81467. 8021110: d008 beq.n 8021124 <udp_input+0xf8>
  81468. /* uncon_pcb does not match the input netif, check this pcb */
  81469. if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) {
  81470. 8021112: 6a3b ldr r3, [r7, #32]
  81471. 8021114: 681a ldr r2, [r3, #0]
  81472. 8021116: 683b ldr r3, [r7, #0]
  81473. 8021118: 3304 adds r3, #4
  81474. 802111a: 681b ldr r3, [r3, #0]
  81475. 802111c: 429a cmp r2, r3
  81476. 802111e: d101 bne.n 8021124 <udp_input+0xf8>
  81477. /* better match */
  81478. uncon_pcb = pcb;
  81479. 8021120: 6a3b ldr r3, [r7, #32]
  81480. 8021122: 61bb str r3, [r7, #24]
  81481. }
  81482. #endif /* SO_REUSE */
  81483. }
  81484. /* compare PCB remote addr+port to UDP source addr+port */
  81485. if ((pcb->remote_port == src) &&
  81486. 8021124: 6a3b ldr r3, [r7, #32]
  81487. 8021126: 8a9b ldrh r3, [r3, #20]
  81488. 8021128: 8a3a ldrh r2, [r7, #16]
  81489. 802112a: 429a cmp r2, r3
  81490. 802112c: d118 bne.n 8021160 <udp_input+0x134>
  81491. (ip_addr_isany_val(pcb->remote_ip) ||
  81492. 802112e: 6a3b ldr r3, [r7, #32]
  81493. 8021130: 685b ldr r3, [r3, #4]
  81494. if ((pcb->remote_port == src) &&
  81495. 8021132: 2b00 cmp r3, #0
  81496. 8021134: d005 beq.n 8021142 <udp_input+0x116>
  81497. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) {
  81498. 8021136: 6a3b ldr r3, [r7, #32]
  81499. 8021138: 685a ldr r2, [r3, #4]
  81500. 802113a: 4b43 ldr r3, [pc, #268] @ (8021248 <udp_input+0x21c>)
  81501. 802113c: 691b ldr r3, [r3, #16]
  81502. (ip_addr_isany_val(pcb->remote_ip) ||
  81503. 802113e: 429a cmp r2, r3
  81504. 8021140: d10e bne.n 8021160 <udp_input+0x134>
  81505. /* the first fully matching PCB */
  81506. if (prev != NULL) {
  81507. 8021142: 6a7b ldr r3, [r7, #36] @ 0x24
  81508. 8021144: 2b00 cmp r3, #0
  81509. 8021146: d014 beq.n 8021172 <udp_input+0x146>
  81510. /* move the pcb to the front of udp_pcbs so that is
  81511. found faster next time */
  81512. prev->next = pcb->next;
  81513. 8021148: 6a3b ldr r3, [r7, #32]
  81514. 802114a: 68da ldr r2, [r3, #12]
  81515. 802114c: 6a7b ldr r3, [r7, #36] @ 0x24
  81516. 802114e: 60da str r2, [r3, #12]
  81517. pcb->next = udp_pcbs;
  81518. 8021150: 4b3e ldr r3, [pc, #248] @ (802124c <udp_input+0x220>)
  81519. 8021152: 681a ldr r2, [r3, #0]
  81520. 8021154: 6a3b ldr r3, [r7, #32]
  81521. 8021156: 60da str r2, [r3, #12]
  81522. udp_pcbs = pcb;
  81523. 8021158: 4a3c ldr r2, [pc, #240] @ (802124c <udp_input+0x220>)
  81524. 802115a: 6a3b ldr r3, [r7, #32]
  81525. 802115c: 6013 str r3, [r2, #0]
  81526. } else {
  81527. UDP_STATS_INC(udp.cachehit);
  81528. }
  81529. break;
  81530. 802115e: e008 b.n 8021172 <udp_input+0x146>
  81531. }
  81532. }
  81533. prev = pcb;
  81534. 8021160: 6a3b ldr r3, [r7, #32]
  81535. 8021162: 627b str r3, [r7, #36] @ 0x24
  81536. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  81537. 8021164: 6a3b ldr r3, [r7, #32]
  81538. 8021166: 68db ldr r3, [r3, #12]
  81539. 8021168: 623b str r3, [r7, #32]
  81540. 802116a: 6a3b ldr r3, [r7, #32]
  81541. 802116c: 2b00 cmp r3, #0
  81542. 802116e: d1a7 bne.n 80210c0 <udp_input+0x94>
  81543. 8021170: e000 b.n 8021174 <udp_input+0x148>
  81544. break;
  81545. 8021172: bf00 nop
  81546. }
  81547. /* no fully matching pcb found? then look for an unconnected pcb */
  81548. if (pcb == NULL) {
  81549. 8021174: 6a3b ldr r3, [r7, #32]
  81550. 8021176: 2b00 cmp r3, #0
  81551. 8021178: d101 bne.n 802117e <udp_input+0x152>
  81552. pcb = uncon_pcb;
  81553. 802117a: 69bb ldr r3, [r7, #24]
  81554. 802117c: 623b str r3, [r7, #32]
  81555. }
  81556. /* Check checksum if this is a match or if it was directed at us. */
  81557. if (pcb != NULL) {
  81558. 802117e: 6a3b ldr r3, [r7, #32]
  81559. 8021180: 2b00 cmp r3, #0
  81560. 8021182: d002 beq.n 802118a <udp_input+0x15e>
  81561. for_us = 1;
  81562. 8021184: 2301 movs r3, #1
  81563. 8021186: 77fb strb r3, [r7, #31]
  81564. 8021188: e00a b.n 80211a0 <udp_input+0x174>
  81565. for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0;
  81566. }
  81567. #endif /* LWIP_IPV6 */
  81568. #if LWIP_IPV4
  81569. if (!ip_current_is_v6()) {
  81570. for_us = ip4_addr_cmp(netif_ip4_addr(inp), ip4_current_dest_addr());
  81571. 802118a: 683b ldr r3, [r7, #0]
  81572. 802118c: 3304 adds r3, #4
  81573. 802118e: 681a ldr r2, [r3, #0]
  81574. 8021190: 4b2d ldr r3, [pc, #180] @ (8021248 <udp_input+0x21c>)
  81575. 8021192: 695b ldr r3, [r3, #20]
  81576. 8021194: 429a cmp r2, r3
  81577. 8021196: bf0c ite eq
  81578. 8021198: 2301 moveq r3, #1
  81579. 802119a: 2300 movne r3, #0
  81580. 802119c: b2db uxtb r3, r3
  81581. 802119e: 77fb strb r3, [r7, #31]
  81582. }
  81583. #endif /* LWIP_IPV4 */
  81584. }
  81585. if (for_us) {
  81586. 80211a0: 7ffb ldrb r3, [r7, #31]
  81587. 80211a2: 2b00 cmp r3, #0
  81588. 80211a4: d041 beq.n 802122a <udp_input+0x1fe>
  81589. }
  81590. }
  81591. }
  81592. }
  81593. #endif /* CHECKSUM_CHECK_UDP */
  81594. if (pbuf_remove_header(p, UDP_HLEN)) {
  81595. 80211a6: 2108 movs r1, #8
  81596. 80211a8: 6878 ldr r0, [r7, #4]
  81597. 80211aa: f7f9 f8e7 bl 801a37c <pbuf_remove_header>
  81598. 80211ae: 4603 mov r3, r0
  81599. 80211b0: 2b00 cmp r3, #0
  81600. 80211b2: d00a beq.n 80211ca <udp_input+0x19e>
  81601. /* Can we cope with this failing? Just assert for now */
  81602. LWIP_ASSERT("pbuf_remove_header failed\n", 0);
  81603. 80211b4: 4b20 ldr r3, [pc, #128] @ (8021238 <udp_input+0x20c>)
  81604. 80211b6: f44f 72b8 mov.w r2, #368 @ 0x170
  81605. 80211ba: 4925 ldr r1, [pc, #148] @ (8021250 <udp_input+0x224>)
  81606. 80211bc: 4820 ldr r0, [pc, #128] @ (8021240 <udp_input+0x214>)
  81607. 80211be: f008 fc0d bl 80299dc <iprintf>
  81608. UDP_STATS_INC(udp.drop);
  81609. MIB2_STATS_INC(mib2.udpinerrors);
  81610. pbuf_free(p);
  81611. 80211c2: 6878 ldr r0, [r7, #4]
  81612. 80211c4: f7f9 f992 bl 801a4ec <pbuf_free>
  81613. goto end;
  81614. 80211c8: e032 b.n 8021230 <udp_input+0x204>
  81615. }
  81616. if (pcb != NULL) {
  81617. 80211ca: 6a3b ldr r3, [r7, #32]
  81618. 80211cc: 2b00 cmp r3, #0
  81619. 80211ce: d012 beq.n 80211f6 <udp_input+0x1ca>
  81620. }
  81621. }
  81622. }
  81623. #endif /* SO_REUSE && SO_REUSE_RXTOALL */
  81624. /* callback */
  81625. if (pcb->recv != NULL) {
  81626. 80211d0: 6a3b ldr r3, [r7, #32]
  81627. 80211d2: 699b ldr r3, [r3, #24]
  81628. 80211d4: 2b00 cmp r3, #0
  81629. 80211d6: d00a beq.n 80211ee <udp_input+0x1c2>
  81630. /* now the recv function is responsible for freeing p */
  81631. pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src);
  81632. 80211d8: 6a3b ldr r3, [r7, #32]
  81633. 80211da: 699c ldr r4, [r3, #24]
  81634. 80211dc: 6a3b ldr r3, [r7, #32]
  81635. 80211de: 69d8 ldr r0, [r3, #28]
  81636. 80211e0: 8a3b ldrh r3, [r7, #16]
  81637. 80211e2: 9300 str r3, [sp, #0]
  81638. 80211e4: 4b1b ldr r3, [pc, #108] @ (8021254 <udp_input+0x228>)
  81639. 80211e6: 687a ldr r2, [r7, #4]
  81640. 80211e8: 6a39 ldr r1, [r7, #32]
  81641. 80211ea: 47a0 blx r4
  81642. } else {
  81643. pbuf_free(p);
  81644. }
  81645. end:
  81646. PERF_STOP("udp_input");
  81647. return;
  81648. 80211ec: e021 b.n 8021232 <udp_input+0x206>
  81649. pbuf_free(p);
  81650. 80211ee: 6878 ldr r0, [r7, #4]
  81651. 80211f0: f7f9 f97c bl 801a4ec <pbuf_free>
  81652. goto end;
  81653. 80211f4: e01c b.n 8021230 <udp_input+0x204>
  81654. if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) {
  81655. 80211f6: 7cfb ldrb r3, [r7, #19]
  81656. 80211f8: 2b00 cmp r3, #0
  81657. 80211fa: d112 bne.n 8021222 <udp_input+0x1f6>
  81658. 80211fc: 4b12 ldr r3, [pc, #72] @ (8021248 <udp_input+0x21c>)
  81659. 80211fe: 695b ldr r3, [r3, #20]
  81660. 8021200: f003 03f0 and.w r3, r3, #240 @ 0xf0
  81661. 8021204: 2be0 cmp r3, #224 @ 0xe0
  81662. 8021206: d00c beq.n 8021222 <udp_input+0x1f6>
  81663. pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN));
  81664. 8021208: 4b0f ldr r3, [pc, #60] @ (8021248 <udp_input+0x21c>)
  81665. 802120a: 899b ldrh r3, [r3, #12]
  81666. 802120c: 3308 adds r3, #8
  81667. 802120e: b29b uxth r3, r3
  81668. 8021210: b21b sxth r3, r3
  81669. 8021212: 4619 mov r1, r3
  81670. 8021214: 6878 ldr r0, [r7, #4]
  81671. 8021216: f7f9 f924 bl 801a462 <pbuf_header_force>
  81672. icmp_port_unreach(ip_current_is_v6(), p);
  81673. 802121a: 2103 movs r1, #3
  81674. 802121c: 6878 ldr r0, [r7, #4]
  81675. 802121e: f003 fb3b bl 8024898 <icmp_dest_unreach>
  81676. pbuf_free(p);
  81677. 8021222: 6878 ldr r0, [r7, #4]
  81678. 8021224: f7f9 f962 bl 801a4ec <pbuf_free>
  81679. return;
  81680. 8021228: e003 b.n 8021232 <udp_input+0x206>
  81681. pbuf_free(p);
  81682. 802122a: 6878 ldr r0, [r7, #4]
  81683. 802122c: f7f9 f95e bl 801a4ec <pbuf_free>
  81684. return;
  81685. 8021230: bf00 nop
  81686. UDP_STATS_INC(udp.drop);
  81687. MIB2_STATS_INC(mib2.udpinerrors);
  81688. pbuf_free(p);
  81689. PERF_STOP("udp_input");
  81690. #endif /* CHECKSUM_CHECK_UDP */
  81691. }
  81692. 8021232: 372c adds r7, #44 @ 0x2c
  81693. 8021234: 46bd mov sp, r7
  81694. 8021236: bd90 pop {r4, r7, pc}
  81695. 8021238: 0802fb38 .word 0x0802fb38
  81696. 802123c: 0802fbdc .word 0x0802fbdc
  81697. 8021240: 0802fb8c .word 0x0802fb8c
  81698. 8021244: 0802fbf4 .word 0x0802fbf4
  81699. 8021248: 24024338 .word 0x24024338
  81700. 802124c: 2402aee8 .word 0x2402aee8
  81701. 8021250: 0802fc10 .word 0x0802fc10
  81702. 8021254: 24024348 .word 0x24024348
  81703. 08021258 <udp_send>:
  81704. *
  81705. * @see udp_disconnect() udp_sendto()
  81706. */
  81707. err_t
  81708. udp_send(struct udp_pcb *pcb, struct pbuf *p)
  81709. {
  81710. 8021258: b580 push {r7, lr}
  81711. 802125a: b082 sub sp, #8
  81712. 802125c: af00 add r7, sp, #0
  81713. 802125e: 6078 str r0, [r7, #4]
  81714. 8021260: 6039 str r1, [r7, #0]
  81715. LWIP_ERROR("udp_send: invalid pcb", pcb != NULL, return ERR_ARG);
  81716. 8021262: 687b ldr r3, [r7, #4]
  81717. 8021264: 2b00 cmp r3, #0
  81718. 8021266: d109 bne.n 802127c <udp_send+0x24>
  81719. 8021268: 4b11 ldr r3, [pc, #68] @ (80212b0 <udp_send+0x58>)
  81720. 802126a: f240 12d5 movw r2, #469 @ 0x1d5
  81721. 802126e: 4911 ldr r1, [pc, #68] @ (80212b4 <udp_send+0x5c>)
  81722. 8021270: 4811 ldr r0, [pc, #68] @ (80212b8 <udp_send+0x60>)
  81723. 8021272: f008 fbb3 bl 80299dc <iprintf>
  81724. 8021276: f06f 030f mvn.w r3, #15
  81725. 802127a: e015 b.n 80212a8 <udp_send+0x50>
  81726. LWIP_ERROR("udp_send: invalid pbuf", p != NULL, return ERR_ARG);
  81727. 802127c: 683b ldr r3, [r7, #0]
  81728. 802127e: 2b00 cmp r3, #0
  81729. 8021280: d109 bne.n 8021296 <udp_send+0x3e>
  81730. 8021282: 4b0b ldr r3, [pc, #44] @ (80212b0 <udp_send+0x58>)
  81731. 8021284: f44f 72eb mov.w r2, #470 @ 0x1d6
  81732. 8021288: 490c ldr r1, [pc, #48] @ (80212bc <udp_send+0x64>)
  81733. 802128a: 480b ldr r0, [pc, #44] @ (80212b8 <udp_send+0x60>)
  81734. 802128c: f008 fba6 bl 80299dc <iprintf>
  81735. 8021290: f06f 030f mvn.w r3, #15
  81736. 8021294: e008 b.n 80212a8 <udp_send+0x50>
  81737. if (IP_IS_ANY_TYPE_VAL(pcb->remote_ip)) {
  81738. return ERR_VAL;
  81739. }
  81740. /* send to the packet using remote ip and port stored in the pcb */
  81741. return udp_sendto(pcb, p, &pcb->remote_ip, pcb->remote_port);
  81742. 8021296: 687b ldr r3, [r7, #4]
  81743. 8021298: 1d1a adds r2, r3, #4
  81744. 802129a: 687b ldr r3, [r7, #4]
  81745. 802129c: 8a9b ldrh r3, [r3, #20]
  81746. 802129e: 6839 ldr r1, [r7, #0]
  81747. 80212a0: 6878 ldr r0, [r7, #4]
  81748. 80212a2: f000 f80d bl 80212c0 <udp_sendto>
  81749. 80212a6: 4603 mov r3, r0
  81750. }
  81751. 80212a8: 4618 mov r0, r3
  81752. 80212aa: 3708 adds r7, #8
  81753. 80212ac: 46bd mov sp, r7
  81754. 80212ae: bd80 pop {r7, pc}
  81755. 80212b0: 0802fb38 .word 0x0802fb38
  81756. 80212b4: 0802fc2c .word 0x0802fc2c
  81757. 80212b8: 0802fb8c .word 0x0802fb8c
  81758. 80212bc: 0802fc44 .word 0x0802fc44
  81759. 080212c0 <udp_sendto>:
  81760. * @see udp_disconnect() udp_send()
  81761. */
  81762. err_t
  81763. udp_sendto(struct udp_pcb *pcb, struct pbuf *p,
  81764. const ip_addr_t *dst_ip, u16_t dst_port)
  81765. {
  81766. 80212c0: b580 push {r7, lr}
  81767. 80212c2: b088 sub sp, #32
  81768. 80212c4: af02 add r7, sp, #8
  81769. 80212c6: 60f8 str r0, [r7, #12]
  81770. 80212c8: 60b9 str r1, [r7, #8]
  81771. 80212ca: 607a str r2, [r7, #4]
  81772. 80212cc: 807b strh r3, [r7, #2]
  81773. u16_t dst_port, u8_t have_chksum, u16_t chksum)
  81774. {
  81775. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81776. struct netif *netif;
  81777. LWIP_ERROR("udp_sendto: invalid pcb", pcb != NULL, return ERR_ARG);
  81778. 80212ce: 68fb ldr r3, [r7, #12]
  81779. 80212d0: 2b00 cmp r3, #0
  81780. 80212d2: d109 bne.n 80212e8 <udp_sendto+0x28>
  81781. 80212d4: 4b23 ldr r3, [pc, #140] @ (8021364 <udp_sendto+0xa4>)
  81782. 80212d6: f44f 7206 mov.w r2, #536 @ 0x218
  81783. 80212da: 4923 ldr r1, [pc, #140] @ (8021368 <udp_sendto+0xa8>)
  81784. 80212dc: 4823 ldr r0, [pc, #140] @ (802136c <udp_sendto+0xac>)
  81785. 80212de: f008 fb7d bl 80299dc <iprintf>
  81786. 80212e2: f06f 030f mvn.w r3, #15
  81787. 80212e6: e038 b.n 802135a <udp_sendto+0x9a>
  81788. LWIP_ERROR("udp_sendto: invalid pbuf", p != NULL, return ERR_ARG);
  81789. 80212e8: 68bb ldr r3, [r7, #8]
  81790. 80212ea: 2b00 cmp r3, #0
  81791. 80212ec: d109 bne.n 8021302 <udp_sendto+0x42>
  81792. 80212ee: 4b1d ldr r3, [pc, #116] @ (8021364 <udp_sendto+0xa4>)
  81793. 80212f0: f240 2219 movw r2, #537 @ 0x219
  81794. 80212f4: 491e ldr r1, [pc, #120] @ (8021370 <udp_sendto+0xb0>)
  81795. 80212f6: 481d ldr r0, [pc, #116] @ (802136c <udp_sendto+0xac>)
  81796. 80212f8: f008 fb70 bl 80299dc <iprintf>
  81797. 80212fc: f06f 030f mvn.w r3, #15
  81798. 8021300: e02b b.n 802135a <udp_sendto+0x9a>
  81799. LWIP_ERROR("udp_sendto: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  81800. 8021302: 687b ldr r3, [r7, #4]
  81801. 8021304: 2b00 cmp r3, #0
  81802. 8021306: d109 bne.n 802131c <udp_sendto+0x5c>
  81803. 8021308: 4b16 ldr r3, [pc, #88] @ (8021364 <udp_sendto+0xa4>)
  81804. 802130a: f240 221a movw r2, #538 @ 0x21a
  81805. 802130e: 4919 ldr r1, [pc, #100] @ (8021374 <udp_sendto+0xb4>)
  81806. 8021310: 4816 ldr r0, [pc, #88] @ (802136c <udp_sendto+0xac>)
  81807. 8021312: f008 fb63 bl 80299dc <iprintf>
  81808. 8021316: f06f 030f mvn.w r3, #15
  81809. 802131a: e01e b.n 802135a <udp_sendto+0x9a>
  81810. return ERR_VAL;
  81811. }
  81812. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send\n"));
  81813. if (pcb->netif_idx != NETIF_NO_INDEX) {
  81814. 802131c: 68fb ldr r3, [r7, #12]
  81815. 802131e: 7a1b ldrb r3, [r3, #8]
  81816. 8021320: 2b00 cmp r3, #0
  81817. 8021322: d006 beq.n 8021332 <udp_sendto+0x72>
  81818. netif = netif_get_by_index(pcb->netif_idx);
  81819. 8021324: 68fb ldr r3, [r7, #12]
  81820. 8021326: 7a1b ldrb r3, [r3, #8]
  81821. 8021328: 4618 mov r0, r3
  81822. 802132a: f7f8 fd1f bl 8019d6c <netif_get_by_index>
  81823. 802132e: 6178 str r0, [r7, #20]
  81824. 8021330: e003 b.n 802133a <udp_sendto+0x7a>
  81825. if (netif == NULL)
  81826. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  81827. {
  81828. /* find the outgoing network interface for this packet */
  81829. netif = ip_route(&pcb->local_ip, dst_ip);
  81830. 8021332: 6878 ldr r0, [r7, #4]
  81831. 8021334: f003 fb44 bl 80249c0 <ip4_route>
  81832. 8021338: 6178 str r0, [r7, #20]
  81833. }
  81834. }
  81835. /* no outgoing network interface could be found? */
  81836. if (netif == NULL) {
  81837. 802133a: 697b ldr r3, [r7, #20]
  81838. 802133c: 2b00 cmp r3, #0
  81839. 802133e: d102 bne.n 8021346 <udp_sendto+0x86>
  81840. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: No route to "));
  81841. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, dst_ip);
  81842. LWIP_DEBUGF(UDP_DEBUG, ("\n"));
  81843. UDP_STATS_INC(udp.rterr);
  81844. return ERR_RTE;
  81845. 8021340: f06f 0303 mvn.w r3, #3
  81846. 8021344: e009 b.n 802135a <udp_sendto+0x9a>
  81847. }
  81848. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  81849. return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
  81850. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81851. return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
  81852. 8021346: 887a ldrh r2, [r7, #2]
  81853. 8021348: 697b ldr r3, [r7, #20]
  81854. 802134a: 9300 str r3, [sp, #0]
  81855. 802134c: 4613 mov r3, r2
  81856. 802134e: 687a ldr r2, [r7, #4]
  81857. 8021350: 68b9 ldr r1, [r7, #8]
  81858. 8021352: 68f8 ldr r0, [r7, #12]
  81859. 8021354: f000 f810 bl 8021378 <udp_sendto_if>
  81860. 8021358: 4603 mov r3, r0
  81861. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81862. }
  81863. 802135a: 4618 mov r0, r3
  81864. 802135c: 3718 adds r7, #24
  81865. 802135e: 46bd mov sp, r7
  81866. 8021360: bd80 pop {r7, pc}
  81867. 8021362: bf00 nop
  81868. 8021364: 0802fb38 .word 0x0802fb38
  81869. 8021368: 0802fc5c .word 0x0802fc5c
  81870. 802136c: 0802fb8c .word 0x0802fb8c
  81871. 8021370: 0802fc74 .word 0x0802fc74
  81872. 8021374: 0802fc90 .word 0x0802fc90
  81873. 08021378 <udp_sendto_if>:
  81874. * @see udp_disconnect() udp_send()
  81875. */
  81876. err_t
  81877. udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p,
  81878. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif)
  81879. {
  81880. 8021378: b580 push {r7, lr}
  81881. 802137a: b088 sub sp, #32
  81882. 802137c: af02 add r7, sp, #8
  81883. 802137e: 60f8 str r0, [r7, #12]
  81884. 8021380: 60b9 str r1, [r7, #8]
  81885. 8021382: 607a str r2, [r7, #4]
  81886. 8021384: 807b strh r3, [r7, #2]
  81887. u16_t chksum)
  81888. {
  81889. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81890. const ip_addr_t *src_ip;
  81891. LWIP_ERROR("udp_sendto_if: invalid pcb", pcb != NULL, return ERR_ARG);
  81892. 8021386: 68fb ldr r3, [r7, #12]
  81893. 8021388: 2b00 cmp r3, #0
  81894. 802138a: d109 bne.n 80213a0 <udp_sendto_if+0x28>
  81895. 802138c: 4b2e ldr r3, [pc, #184] @ (8021448 <udp_sendto_if+0xd0>)
  81896. 802138e: f44f 7220 mov.w r2, #640 @ 0x280
  81897. 8021392: 492e ldr r1, [pc, #184] @ (802144c <udp_sendto_if+0xd4>)
  81898. 8021394: 482e ldr r0, [pc, #184] @ (8021450 <udp_sendto_if+0xd8>)
  81899. 8021396: f008 fb21 bl 80299dc <iprintf>
  81900. 802139a: f06f 030f mvn.w r3, #15
  81901. 802139e: e04f b.n 8021440 <udp_sendto_if+0xc8>
  81902. LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG);
  81903. 80213a0: 68bb ldr r3, [r7, #8]
  81904. 80213a2: 2b00 cmp r3, #0
  81905. 80213a4: d109 bne.n 80213ba <udp_sendto_if+0x42>
  81906. 80213a6: 4b28 ldr r3, [pc, #160] @ (8021448 <udp_sendto_if+0xd0>)
  81907. 80213a8: f240 2281 movw r2, #641 @ 0x281
  81908. 80213ac: 4929 ldr r1, [pc, #164] @ (8021454 <udp_sendto_if+0xdc>)
  81909. 80213ae: 4828 ldr r0, [pc, #160] @ (8021450 <udp_sendto_if+0xd8>)
  81910. 80213b0: f008 fb14 bl 80299dc <iprintf>
  81911. 80213b4: f06f 030f mvn.w r3, #15
  81912. 80213b8: e042 b.n 8021440 <udp_sendto_if+0xc8>
  81913. LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  81914. 80213ba: 687b ldr r3, [r7, #4]
  81915. 80213bc: 2b00 cmp r3, #0
  81916. 80213be: d109 bne.n 80213d4 <udp_sendto_if+0x5c>
  81917. 80213c0: 4b21 ldr r3, [pc, #132] @ (8021448 <udp_sendto_if+0xd0>)
  81918. 80213c2: f240 2282 movw r2, #642 @ 0x282
  81919. 80213c6: 4924 ldr r1, [pc, #144] @ (8021458 <udp_sendto_if+0xe0>)
  81920. 80213c8: 4821 ldr r0, [pc, #132] @ (8021450 <udp_sendto_if+0xd8>)
  81921. 80213ca: f008 fb07 bl 80299dc <iprintf>
  81922. 80213ce: f06f 030f mvn.w r3, #15
  81923. 80213d2: e035 b.n 8021440 <udp_sendto_if+0xc8>
  81924. LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG);
  81925. 80213d4: 6a3b ldr r3, [r7, #32]
  81926. 80213d6: 2b00 cmp r3, #0
  81927. 80213d8: d109 bne.n 80213ee <udp_sendto_if+0x76>
  81928. 80213da: 4b1b ldr r3, [pc, #108] @ (8021448 <udp_sendto_if+0xd0>)
  81929. 80213dc: f240 2283 movw r2, #643 @ 0x283
  81930. 80213e0: 491e ldr r1, [pc, #120] @ (802145c <udp_sendto_if+0xe4>)
  81931. 80213e2: 481b ldr r0, [pc, #108] @ (8021450 <udp_sendto_if+0xd8>)
  81932. 80213e4: f008 fafa bl 80299dc <iprintf>
  81933. 80213e8: f06f 030f mvn.w r3, #15
  81934. 80213ec: e028 b.n 8021440 <udp_sendto_if+0xc8>
  81935. #endif /* LWIP_IPV6 */
  81936. #if LWIP_IPV4 && LWIP_IPV6
  81937. else
  81938. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  81939. #if LWIP_IPV4
  81940. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  81941. 80213ee: 68fb ldr r3, [r7, #12]
  81942. 80213f0: 2b00 cmp r3, #0
  81943. 80213f2: d009 beq.n 8021408 <udp_sendto_if+0x90>
  81944. 80213f4: 68fb ldr r3, [r7, #12]
  81945. 80213f6: 681b ldr r3, [r3, #0]
  81946. 80213f8: 2b00 cmp r3, #0
  81947. 80213fa: d005 beq.n 8021408 <udp_sendto_if+0x90>
  81948. ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) {
  81949. 80213fc: 68fb ldr r3, [r7, #12]
  81950. 80213fe: 681b ldr r3, [r3, #0]
  81951. 8021400: f003 03f0 and.w r3, r3, #240 @ 0xf0
  81952. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  81953. 8021404: 2be0 cmp r3, #224 @ 0xe0
  81954. 8021406: d103 bne.n 8021410 <udp_sendto_if+0x98>
  81955. /* if the local_ip is any or multicast
  81956. * use the outgoing network interface IP address as source address */
  81957. src_ip = netif_ip_addr4(netif);
  81958. 8021408: 6a3b ldr r3, [r7, #32]
  81959. 802140a: 3304 adds r3, #4
  81960. 802140c: 617b str r3, [r7, #20]
  81961. 802140e: e00b b.n 8021428 <udp_sendto_if+0xb0>
  81962. } else {
  81963. /* check if UDP PCB local IP address is correct
  81964. * this could be an old address if netif->ip_addr has changed */
  81965. if (!ip4_addr_cmp(ip_2_ip4(&(pcb->local_ip)), netif_ip4_addr(netif))) {
  81966. 8021410: 68fb ldr r3, [r7, #12]
  81967. 8021412: 681a ldr r2, [r3, #0]
  81968. 8021414: 6a3b ldr r3, [r7, #32]
  81969. 8021416: 3304 adds r3, #4
  81970. 8021418: 681b ldr r3, [r3, #0]
  81971. 802141a: 429a cmp r2, r3
  81972. 802141c: d002 beq.n 8021424 <udp_sendto_if+0xac>
  81973. /* local_ip doesn't match, drop the packet */
  81974. return ERR_RTE;
  81975. 802141e: f06f 0303 mvn.w r3, #3
  81976. 8021422: e00d b.n 8021440 <udp_sendto_if+0xc8>
  81977. }
  81978. /* use UDP PCB local IP address as source address */
  81979. src_ip = &pcb->local_ip;
  81980. 8021424: 68fb ldr r3, [r7, #12]
  81981. 8021426: 617b str r3, [r7, #20]
  81982. }
  81983. #endif /* LWIP_IPV4 */
  81984. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  81985. return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip);
  81986. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  81987. return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip);
  81988. 8021428: 887a ldrh r2, [r7, #2]
  81989. 802142a: 697b ldr r3, [r7, #20]
  81990. 802142c: 9301 str r3, [sp, #4]
  81991. 802142e: 6a3b ldr r3, [r7, #32]
  81992. 8021430: 9300 str r3, [sp, #0]
  81993. 8021432: 4613 mov r3, r2
  81994. 8021434: 687a ldr r2, [r7, #4]
  81995. 8021436: 68b9 ldr r1, [r7, #8]
  81996. 8021438: 68f8 ldr r0, [r7, #12]
  81997. 802143a: f000 f811 bl 8021460 <udp_sendto_if_src>
  81998. 802143e: 4603 mov r3, r0
  81999. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  82000. }
  82001. 8021440: 4618 mov r0, r3
  82002. 8021442: 3718 adds r7, #24
  82003. 8021444: 46bd mov sp, r7
  82004. 8021446: bd80 pop {r7, pc}
  82005. 8021448: 0802fb38 .word 0x0802fb38
  82006. 802144c: 0802fcac .word 0x0802fcac
  82007. 8021450: 0802fb8c .word 0x0802fb8c
  82008. 8021454: 0802fcc8 .word 0x0802fcc8
  82009. 8021458: 0802fce4 .word 0x0802fce4
  82010. 802145c: 0802fd04 .word 0x0802fd04
  82011. 08021460 <udp_sendto_if_src>:
  82012. /** @ingroup udp_raw
  82013. * Same as @ref udp_sendto_if, but with source address */
  82014. err_t
  82015. udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p,
  82016. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip)
  82017. {
  82018. 8021460: b580 push {r7, lr}
  82019. 8021462: b08c sub sp, #48 @ 0x30
  82020. 8021464: af04 add r7, sp, #16
  82021. 8021466: 60f8 str r0, [r7, #12]
  82022. 8021468: 60b9 str r1, [r7, #8]
  82023. 802146a: 607a str r2, [r7, #4]
  82024. 802146c: 807b strh r3, [r7, #2]
  82025. err_t err;
  82026. struct pbuf *q; /* q will be sent down the stack */
  82027. u8_t ip_proto;
  82028. u8_t ttl;
  82029. LWIP_ASSERT_CORE_LOCKED();
  82030. 802146e: f7ef f869 bl 8010544 <sys_check_core_locking>
  82031. LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG);
  82032. 8021472: 68fb ldr r3, [r7, #12]
  82033. 8021474: 2b00 cmp r3, #0
  82034. 8021476: d109 bne.n 802148c <udp_sendto_if_src+0x2c>
  82035. 8021478: 4b65 ldr r3, [pc, #404] @ (8021610 <udp_sendto_if_src+0x1b0>)
  82036. 802147a: f240 22d1 movw r2, #721 @ 0x2d1
  82037. 802147e: 4965 ldr r1, [pc, #404] @ (8021614 <udp_sendto_if_src+0x1b4>)
  82038. 8021480: 4865 ldr r0, [pc, #404] @ (8021618 <udp_sendto_if_src+0x1b8>)
  82039. 8021482: f008 faab bl 80299dc <iprintf>
  82040. 8021486: f06f 030f mvn.w r3, #15
  82041. 802148a: e0bc b.n 8021606 <udp_sendto_if_src+0x1a6>
  82042. LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG);
  82043. 802148c: 68bb ldr r3, [r7, #8]
  82044. 802148e: 2b00 cmp r3, #0
  82045. 8021490: d109 bne.n 80214a6 <udp_sendto_if_src+0x46>
  82046. 8021492: 4b5f ldr r3, [pc, #380] @ (8021610 <udp_sendto_if_src+0x1b0>)
  82047. 8021494: f240 22d2 movw r2, #722 @ 0x2d2
  82048. 8021498: 4960 ldr r1, [pc, #384] @ (802161c <udp_sendto_if_src+0x1bc>)
  82049. 802149a: 485f ldr r0, [pc, #380] @ (8021618 <udp_sendto_if_src+0x1b8>)
  82050. 802149c: f008 fa9e bl 80299dc <iprintf>
  82051. 80214a0: f06f 030f mvn.w r3, #15
  82052. 80214a4: e0af b.n 8021606 <udp_sendto_if_src+0x1a6>
  82053. LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  82054. 80214a6: 687b ldr r3, [r7, #4]
  82055. 80214a8: 2b00 cmp r3, #0
  82056. 80214aa: d109 bne.n 80214c0 <udp_sendto_if_src+0x60>
  82057. 80214ac: 4b58 ldr r3, [pc, #352] @ (8021610 <udp_sendto_if_src+0x1b0>)
  82058. 80214ae: f240 22d3 movw r2, #723 @ 0x2d3
  82059. 80214b2: 495b ldr r1, [pc, #364] @ (8021620 <udp_sendto_if_src+0x1c0>)
  82060. 80214b4: 4858 ldr r0, [pc, #352] @ (8021618 <udp_sendto_if_src+0x1b8>)
  82061. 80214b6: f008 fa91 bl 80299dc <iprintf>
  82062. 80214ba: f06f 030f mvn.w r3, #15
  82063. 80214be: e0a2 b.n 8021606 <udp_sendto_if_src+0x1a6>
  82064. LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG);
  82065. 80214c0: 6afb ldr r3, [r7, #44] @ 0x2c
  82066. 80214c2: 2b00 cmp r3, #0
  82067. 80214c4: d109 bne.n 80214da <udp_sendto_if_src+0x7a>
  82068. 80214c6: 4b52 ldr r3, [pc, #328] @ (8021610 <udp_sendto_if_src+0x1b0>)
  82069. 80214c8: f44f 7235 mov.w r2, #724 @ 0x2d4
  82070. 80214cc: 4955 ldr r1, [pc, #340] @ (8021624 <udp_sendto_if_src+0x1c4>)
  82071. 80214ce: 4852 ldr r0, [pc, #328] @ (8021618 <udp_sendto_if_src+0x1b8>)
  82072. 80214d0: f008 fa84 bl 80299dc <iprintf>
  82073. 80214d4: f06f 030f mvn.w r3, #15
  82074. 80214d8: e095 b.n 8021606 <udp_sendto_if_src+0x1a6>
  82075. LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG);
  82076. 80214da: 6abb ldr r3, [r7, #40] @ 0x28
  82077. 80214dc: 2b00 cmp r3, #0
  82078. 80214de: d109 bne.n 80214f4 <udp_sendto_if_src+0x94>
  82079. 80214e0: 4b4b ldr r3, [pc, #300] @ (8021610 <udp_sendto_if_src+0x1b0>)
  82080. 80214e2: f240 22d5 movw r2, #725 @ 0x2d5
  82081. 80214e6: 4950 ldr r1, [pc, #320] @ (8021628 <udp_sendto_if_src+0x1c8>)
  82082. 80214e8: 484b ldr r0, [pc, #300] @ (8021618 <udp_sendto_if_src+0x1b8>)
  82083. 80214ea: f008 fa77 bl 80299dc <iprintf>
  82084. 80214ee: f06f 030f mvn.w r3, #15
  82085. 80214f2: e088 b.n 8021606 <udp_sendto_if_src+0x1a6>
  82086. return ERR_VAL;
  82087. }
  82088. #endif /* LWIP_IPV4 && IP_SOF_BROADCAST */
  82089. /* if the PCB is not yet bound to a port, bind it here */
  82090. if (pcb->local_port == 0) {
  82091. 80214f4: 68fb ldr r3, [r7, #12]
  82092. 80214f6: 8a5b ldrh r3, [r3, #18]
  82093. 80214f8: 2b00 cmp r3, #0
  82094. 80214fa: d10f bne.n 802151c <udp_sendto_if_src+0xbc>
  82095. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n"));
  82096. err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  82097. 80214fc: 68f9 ldr r1, [r7, #12]
  82098. 80214fe: 68fb ldr r3, [r7, #12]
  82099. 8021500: 8a5b ldrh r3, [r3, #18]
  82100. 8021502: 461a mov r2, r3
  82101. 8021504: 68f8 ldr r0, [r7, #12]
  82102. 8021506: f000 f893 bl 8021630 <udp_bind>
  82103. 802150a: 4603 mov r3, r0
  82104. 802150c: 76fb strb r3, [r7, #27]
  82105. if (err != ERR_OK) {
  82106. 802150e: f997 301b ldrsb.w r3, [r7, #27]
  82107. 8021512: 2b00 cmp r3, #0
  82108. 8021514: d002 beq.n 802151c <udp_sendto_if_src+0xbc>
  82109. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n"));
  82110. return err;
  82111. 8021516: f997 301b ldrsb.w r3, [r7, #27]
  82112. 802151a: e074 b.n 8021606 <udp_sendto_if_src+0x1a6>
  82113. }
  82114. }
  82115. /* packet too large to add a UDP header without causing an overflow? */
  82116. if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) {
  82117. 802151c: 68bb ldr r3, [r7, #8]
  82118. 802151e: 891b ldrh r3, [r3, #8]
  82119. 8021520: f64f 72f7 movw r2, #65527 @ 0xfff7
  82120. 8021524: 4293 cmp r3, r2
  82121. 8021526: d902 bls.n 802152e <udp_sendto_if_src+0xce>
  82122. return ERR_MEM;
  82123. 8021528: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  82124. 802152c: e06b b.n 8021606 <udp_sendto_if_src+0x1a6>
  82125. }
  82126. /* not enough space to add an UDP header to first pbuf in given p chain? */
  82127. if (pbuf_add_header(p, UDP_HLEN)) {
  82128. 802152e: 2108 movs r1, #8
  82129. 8021530: 68b8 ldr r0, [r7, #8]
  82130. 8021532: f7f8 ff13 bl 801a35c <pbuf_add_header>
  82131. 8021536: 4603 mov r3, r0
  82132. 8021538: 2b00 cmp r3, #0
  82133. 802153a: d015 beq.n 8021568 <udp_sendto_if_src+0x108>
  82134. /* allocate header in a separate new pbuf */
  82135. q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
  82136. 802153c: f44f 7220 mov.w r2, #640 @ 0x280
  82137. 8021540: 2108 movs r1, #8
  82138. 8021542: 2022 movs r0, #34 @ 0x22
  82139. 8021544: f7f8 fcbc bl 8019ec0 <pbuf_alloc>
  82140. 8021548: 61f8 str r0, [r7, #28]
  82141. /* new header pbuf could not be allocated? */
  82142. if (q == NULL) {
  82143. 802154a: 69fb ldr r3, [r7, #28]
  82144. 802154c: 2b00 cmp r3, #0
  82145. 802154e: d102 bne.n 8021556 <udp_sendto_if_src+0xf6>
  82146. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n"));
  82147. return ERR_MEM;
  82148. 8021550: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  82149. 8021554: e057 b.n 8021606 <udp_sendto_if_src+0x1a6>
  82150. }
  82151. if (p->tot_len != 0) {
  82152. 8021556: 68bb ldr r3, [r7, #8]
  82153. 8021558: 891b ldrh r3, [r3, #8]
  82154. 802155a: 2b00 cmp r3, #0
  82155. 802155c: d006 beq.n 802156c <udp_sendto_if_src+0x10c>
  82156. /* chain header q in front of given pbuf p (only if p contains data) */
  82157. pbuf_chain(q, p);
  82158. 802155e: 68b9 ldr r1, [r7, #8]
  82159. 8021560: 69f8 ldr r0, [r7, #28]
  82160. 8021562: f7f9 f8e7 bl 801a734 <pbuf_chain>
  82161. 8021566: e001 b.n 802156c <udp_sendto_if_src+0x10c>
  82162. LWIP_DEBUGF(UDP_DEBUG,
  82163. ("udp_send: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p));
  82164. } else {
  82165. /* adding space for header within p succeeded */
  82166. /* first pbuf q equals given pbuf */
  82167. q = p;
  82168. 8021568: 68bb ldr r3, [r7, #8]
  82169. 802156a: 61fb str r3, [r7, #28]
  82170. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header in given pbuf %p\n", (void *)p));
  82171. }
  82172. LWIP_ASSERT("check that first pbuf can hold struct udp_hdr",
  82173. 802156c: 69fb ldr r3, [r7, #28]
  82174. 802156e: 895b ldrh r3, [r3, #10]
  82175. 8021570: 2b07 cmp r3, #7
  82176. 8021572: d806 bhi.n 8021582 <udp_sendto_if_src+0x122>
  82177. 8021574: 4b26 ldr r3, [pc, #152] @ (8021610 <udp_sendto_if_src+0x1b0>)
  82178. 8021576: f240 320d movw r2, #781 @ 0x30d
  82179. 802157a: 492c ldr r1, [pc, #176] @ (802162c <udp_sendto_if_src+0x1cc>)
  82180. 802157c: 4826 ldr r0, [pc, #152] @ (8021618 <udp_sendto_if_src+0x1b8>)
  82181. 802157e: f008 fa2d bl 80299dc <iprintf>
  82182. (q->len >= sizeof(struct udp_hdr)));
  82183. /* q now represents the packet to be sent */
  82184. udphdr = (struct udp_hdr *)q->payload;
  82185. 8021582: 69fb ldr r3, [r7, #28]
  82186. 8021584: 685b ldr r3, [r3, #4]
  82187. 8021586: 617b str r3, [r7, #20]
  82188. udphdr->src = lwip_htons(pcb->local_port);
  82189. 8021588: 68fb ldr r3, [r7, #12]
  82190. 802158a: 8a5b ldrh r3, [r3, #18]
  82191. 802158c: 4618 mov r0, r3
  82192. 802158e: f7f7 facb bl 8018b28 <lwip_htons>
  82193. 8021592: 4603 mov r3, r0
  82194. 8021594: 461a mov r2, r3
  82195. 8021596: 697b ldr r3, [r7, #20]
  82196. 8021598: 801a strh r2, [r3, #0]
  82197. udphdr->dest = lwip_htons(dst_port);
  82198. 802159a: 887b ldrh r3, [r7, #2]
  82199. 802159c: 4618 mov r0, r3
  82200. 802159e: f7f7 fac3 bl 8018b28 <lwip_htons>
  82201. 80215a2: 4603 mov r3, r0
  82202. 80215a4: 461a mov r2, r3
  82203. 80215a6: 697b ldr r3, [r7, #20]
  82204. 80215a8: 805a strh r2, [r3, #2]
  82205. /* in UDP, 0 checksum means 'no checksum' */
  82206. udphdr->chksum = 0x0000;
  82207. 80215aa: 697b ldr r3, [r7, #20]
  82208. 80215ac: 2200 movs r2, #0
  82209. 80215ae: 719a strb r2, [r3, #6]
  82210. 80215b0: 2200 movs r2, #0
  82211. 80215b2: 71da strb r2, [r3, #7]
  82212. ip_proto = IP_PROTO_UDPLITE;
  82213. } else
  82214. #endif /* LWIP_UDPLITE */
  82215. { /* UDP */
  82216. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len));
  82217. udphdr->len = lwip_htons(q->tot_len);
  82218. 80215b4: 69fb ldr r3, [r7, #28]
  82219. 80215b6: 891b ldrh r3, [r3, #8]
  82220. 80215b8: 4618 mov r0, r3
  82221. 80215ba: f7f7 fab5 bl 8018b28 <lwip_htons>
  82222. 80215be: 4603 mov r3, r0
  82223. 80215c0: 461a mov r2, r3
  82224. 80215c2: 697b ldr r3, [r7, #20]
  82225. 80215c4: 809a strh r2, [r3, #4]
  82226. }
  82227. udphdr->chksum = udpchksum;
  82228. }
  82229. }
  82230. #endif /* CHECKSUM_GEN_UDP */
  82231. ip_proto = IP_PROTO_UDP;
  82232. 80215c6: 2311 movs r3, #17
  82233. 80215c8: 74fb strb r3, [r7, #19]
  82234. /* Determine TTL to use */
  82235. #if LWIP_MULTICAST_TX_OPTIONS
  82236. ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl);
  82237. #else /* LWIP_MULTICAST_TX_OPTIONS */
  82238. ttl = pcb->ttl;
  82239. 80215ca: 68fb ldr r3, [r7, #12]
  82240. 80215cc: 7adb ldrb r3, [r3, #11]
  82241. 80215ce: 74bb strb r3, [r7, #18]
  82242. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", udphdr->chksum));
  82243. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto));
  82244. /* output to IP */
  82245. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  82246. err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif);
  82247. 80215d0: 68fb ldr r3, [r7, #12]
  82248. 80215d2: 7a9b ldrb r3, [r3, #10]
  82249. 80215d4: 7cb9 ldrb r1, [r7, #18]
  82250. 80215d6: 6aba ldr r2, [r7, #40] @ 0x28
  82251. 80215d8: 9202 str r2, [sp, #8]
  82252. 80215da: 7cfa ldrb r2, [r7, #19]
  82253. 80215dc: 9201 str r2, [sp, #4]
  82254. 80215de: 9300 str r3, [sp, #0]
  82255. 80215e0: 460b mov r3, r1
  82256. 80215e2: 687a ldr r2, [r7, #4]
  82257. 80215e4: 6af9 ldr r1, [r7, #44] @ 0x2c
  82258. 80215e6: 69f8 ldr r0, [r7, #28]
  82259. 80215e8: f003 fbf2 bl 8024dd0 <ip4_output_if_src>
  82260. 80215ec: 4603 mov r3, r0
  82261. 80215ee: 76fb strb r3, [r7, #27]
  82262. /* @todo: must this be increased even if error occurred? */
  82263. MIB2_STATS_INC(mib2.udpoutdatagrams);
  82264. /* did we chain a separate header pbuf earlier? */
  82265. if (q != p) {
  82266. 80215f0: 69fa ldr r2, [r7, #28]
  82267. 80215f2: 68bb ldr r3, [r7, #8]
  82268. 80215f4: 429a cmp r2, r3
  82269. 80215f6: d004 beq.n 8021602 <udp_sendto_if_src+0x1a2>
  82270. /* free the header pbuf */
  82271. pbuf_free(q);
  82272. 80215f8: 69f8 ldr r0, [r7, #28]
  82273. 80215fa: f7f8 ff77 bl 801a4ec <pbuf_free>
  82274. q = NULL;
  82275. 80215fe: 2300 movs r3, #0
  82276. 8021600: 61fb str r3, [r7, #28]
  82277. /* p is still referenced by the caller, and will live on */
  82278. }
  82279. UDP_STATS_INC(udp.xmit);
  82280. return err;
  82281. 8021602: f997 301b ldrsb.w r3, [r7, #27]
  82282. }
  82283. 8021606: 4618 mov r0, r3
  82284. 8021608: 3720 adds r7, #32
  82285. 802160a: 46bd mov sp, r7
  82286. 802160c: bd80 pop {r7, pc}
  82287. 802160e: bf00 nop
  82288. 8021610: 0802fb38 .word 0x0802fb38
  82289. 8021614: 0802fd24 .word 0x0802fd24
  82290. 8021618: 0802fb8c .word 0x0802fb8c
  82291. 802161c: 0802fd44 .word 0x0802fd44
  82292. 8021620: 0802fd64 .word 0x0802fd64
  82293. 8021624: 0802fd88 .word 0x0802fd88
  82294. 8021628: 0802fdac .word 0x0802fdac
  82295. 802162c: 0802fdd0 .word 0x0802fdd0
  82296. 08021630 <udp_bind>:
  82297. *
  82298. * @see udp_disconnect()
  82299. */
  82300. err_t
  82301. udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  82302. {
  82303. 8021630: b580 push {r7, lr}
  82304. 8021632: b086 sub sp, #24
  82305. 8021634: af00 add r7, sp, #0
  82306. 8021636: 60f8 str r0, [r7, #12]
  82307. 8021638: 60b9 str r1, [r7, #8]
  82308. 802163a: 4613 mov r3, r2
  82309. 802163c: 80fb strh r3, [r7, #6]
  82310. u8_t rebind;
  82311. #if LWIP_IPV6 && LWIP_IPV6_SCOPES
  82312. ip_addr_t zoned_ipaddr;
  82313. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  82314. LWIP_ASSERT_CORE_LOCKED();
  82315. 802163e: f7ee ff81 bl 8010544 <sys_check_core_locking>
  82316. #if LWIP_IPV4
  82317. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  82318. if (ipaddr == NULL) {
  82319. 8021642: 68bb ldr r3, [r7, #8]
  82320. 8021644: 2b00 cmp r3, #0
  82321. 8021646: d101 bne.n 802164c <udp_bind+0x1c>
  82322. ipaddr = IP4_ADDR_ANY;
  82323. 8021648: 4b39 ldr r3, [pc, #228] @ (8021730 <udp_bind+0x100>)
  82324. 802164a: 60bb str r3, [r7, #8]
  82325. }
  82326. #else /* LWIP_IPV4 */
  82327. LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  82328. #endif /* LWIP_IPV4 */
  82329. LWIP_ERROR("udp_bind: invalid pcb", pcb != NULL, return ERR_ARG);
  82330. 802164c: 68fb ldr r3, [r7, #12]
  82331. 802164e: 2b00 cmp r3, #0
  82332. 8021650: d109 bne.n 8021666 <udp_bind+0x36>
  82333. 8021652: 4b38 ldr r3, [pc, #224] @ (8021734 <udp_bind+0x104>)
  82334. 8021654: f240 32b7 movw r2, #951 @ 0x3b7
  82335. 8021658: 4937 ldr r1, [pc, #220] @ (8021738 <udp_bind+0x108>)
  82336. 802165a: 4838 ldr r0, [pc, #224] @ (802173c <udp_bind+0x10c>)
  82337. 802165c: f008 f9be bl 80299dc <iprintf>
  82338. 8021660: f06f 030f mvn.w r3, #15
  82339. 8021664: e060 b.n 8021728 <udp_bind+0xf8>
  82340. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = "));
  82341. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr);
  82342. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port));
  82343. rebind = 0;
  82344. 8021666: 2300 movs r3, #0
  82345. 8021668: 74fb strb r3, [r7, #19]
  82346. /* Check for double bind and rebind of the same pcb */
  82347. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  82348. 802166a: 4b35 ldr r3, [pc, #212] @ (8021740 <udp_bind+0x110>)
  82349. 802166c: 681b ldr r3, [r3, #0]
  82350. 802166e: 617b str r3, [r7, #20]
  82351. 8021670: e009 b.n 8021686 <udp_bind+0x56>
  82352. /* is this UDP PCB already on active list? */
  82353. if (pcb == ipcb) {
  82354. 8021672: 68fa ldr r2, [r7, #12]
  82355. 8021674: 697b ldr r3, [r7, #20]
  82356. 8021676: 429a cmp r2, r3
  82357. 8021678: d102 bne.n 8021680 <udp_bind+0x50>
  82358. rebind = 1;
  82359. 802167a: 2301 movs r3, #1
  82360. 802167c: 74fb strb r3, [r7, #19]
  82361. break;
  82362. 802167e: e005 b.n 802168c <udp_bind+0x5c>
  82363. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  82364. 8021680: 697b ldr r3, [r7, #20]
  82365. 8021682: 68db ldr r3, [r3, #12]
  82366. 8021684: 617b str r3, [r7, #20]
  82367. 8021686: 697b ldr r3, [r7, #20]
  82368. 8021688: 2b00 cmp r3, #0
  82369. 802168a: d1f2 bne.n 8021672 <udp_bind+0x42>
  82370. ipaddr = &zoned_ipaddr;
  82371. }
  82372. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  82373. /* no port specified? */
  82374. if (port == 0) {
  82375. 802168c: 88fb ldrh r3, [r7, #6]
  82376. 802168e: 2b00 cmp r3, #0
  82377. 8021690: d109 bne.n 80216a6 <udp_bind+0x76>
  82378. port = udp_new_port();
  82379. 8021692: f7ff fc2f bl 8020ef4 <udp_new_port>
  82380. 8021696: 4603 mov r3, r0
  82381. 8021698: 80fb strh r3, [r7, #6]
  82382. if (port == 0) {
  82383. 802169a: 88fb ldrh r3, [r7, #6]
  82384. 802169c: 2b00 cmp r3, #0
  82385. 802169e: d12c bne.n 80216fa <udp_bind+0xca>
  82386. /* no more ports available in local range */
  82387. LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n"));
  82388. return ERR_USE;
  82389. 80216a0: f06f 0307 mvn.w r3, #7
  82390. 80216a4: e040 b.n 8021728 <udp_bind+0xf8>
  82391. }
  82392. } else {
  82393. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  82394. 80216a6: 4b26 ldr r3, [pc, #152] @ (8021740 <udp_bind+0x110>)
  82395. 80216a8: 681b ldr r3, [r3, #0]
  82396. 80216aa: 617b str r3, [r7, #20]
  82397. 80216ac: e022 b.n 80216f4 <udp_bind+0xc4>
  82398. if (pcb != ipcb) {
  82399. 80216ae: 68fa ldr r2, [r7, #12]
  82400. 80216b0: 697b ldr r3, [r7, #20]
  82401. 80216b2: 429a cmp r2, r3
  82402. 80216b4: d01b beq.n 80216ee <udp_bind+0xbe>
  82403. if (!ip_get_option(pcb, SOF_REUSEADDR) ||
  82404. !ip_get_option(ipcb, SOF_REUSEADDR))
  82405. #endif /* SO_REUSE */
  82406. {
  82407. /* port matches that of PCB in list and REUSEADDR not set -> reject */
  82408. if ((ipcb->local_port == port) &&
  82409. 80216b6: 697b ldr r3, [r7, #20]
  82410. 80216b8: 8a5b ldrh r3, [r3, #18]
  82411. 80216ba: 88fa ldrh r2, [r7, #6]
  82412. 80216bc: 429a cmp r2, r3
  82413. 80216be: d116 bne.n 80216ee <udp_bind+0xbe>
  82414. /* IP address matches or any IP used? */
  82415. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  82416. 80216c0: 697b ldr r3, [r7, #20]
  82417. 80216c2: 681a ldr r2, [r3, #0]
  82418. 80216c4: 68bb ldr r3, [r7, #8]
  82419. 80216c6: 681b ldr r3, [r3, #0]
  82420. if ((ipcb->local_port == port) &&
  82421. 80216c8: 429a cmp r2, r3
  82422. 80216ca: d00d beq.n 80216e8 <udp_bind+0xb8>
  82423. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  82424. 80216cc: 68bb ldr r3, [r7, #8]
  82425. 80216ce: 2b00 cmp r3, #0
  82426. 80216d0: d00a beq.n 80216e8 <udp_bind+0xb8>
  82427. 80216d2: 68bb ldr r3, [r7, #8]
  82428. 80216d4: 681b ldr r3, [r3, #0]
  82429. 80216d6: 2b00 cmp r3, #0
  82430. 80216d8: d006 beq.n 80216e8 <udp_bind+0xb8>
  82431. ip_addr_isany(&ipcb->local_ip))) {
  82432. 80216da: 697b ldr r3, [r7, #20]
  82433. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  82434. 80216dc: 2b00 cmp r3, #0
  82435. 80216de: d003 beq.n 80216e8 <udp_bind+0xb8>
  82436. ip_addr_isany(&ipcb->local_ip))) {
  82437. 80216e0: 697b ldr r3, [r7, #20]
  82438. 80216e2: 681b ldr r3, [r3, #0]
  82439. 80216e4: 2b00 cmp r3, #0
  82440. 80216e6: d102 bne.n 80216ee <udp_bind+0xbe>
  82441. /* other PCB already binds to this local IP and port */
  82442. LWIP_DEBUGF(UDP_DEBUG,
  82443. ("udp_bind: local port %"U16_F" already bound by another pcb\n", port));
  82444. return ERR_USE;
  82445. 80216e8: f06f 0307 mvn.w r3, #7
  82446. 80216ec: e01c b.n 8021728 <udp_bind+0xf8>
  82447. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  82448. 80216ee: 697b ldr r3, [r7, #20]
  82449. 80216f0: 68db ldr r3, [r3, #12]
  82450. 80216f2: 617b str r3, [r7, #20]
  82451. 80216f4: 697b ldr r3, [r7, #20]
  82452. 80216f6: 2b00 cmp r3, #0
  82453. 80216f8: d1d9 bne.n 80216ae <udp_bind+0x7e>
  82454. }
  82455. }
  82456. }
  82457. }
  82458. ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
  82459. 80216fa: 68bb ldr r3, [r7, #8]
  82460. 80216fc: 2b00 cmp r3, #0
  82461. 80216fe: d002 beq.n 8021706 <udp_bind+0xd6>
  82462. 8021700: 68bb ldr r3, [r7, #8]
  82463. 8021702: 681b ldr r3, [r3, #0]
  82464. 8021704: e000 b.n 8021708 <udp_bind+0xd8>
  82465. 8021706: 2300 movs r3, #0
  82466. 8021708: 68fa ldr r2, [r7, #12]
  82467. 802170a: 6013 str r3, [r2, #0]
  82468. pcb->local_port = port;
  82469. 802170c: 68fb ldr r3, [r7, #12]
  82470. 802170e: 88fa ldrh r2, [r7, #6]
  82471. 8021710: 825a strh r2, [r3, #18]
  82472. mib2_udp_bind(pcb);
  82473. /* pcb not active yet? */
  82474. if (rebind == 0) {
  82475. 8021712: 7cfb ldrb r3, [r7, #19]
  82476. 8021714: 2b00 cmp r3, #0
  82477. 8021716: d106 bne.n 8021726 <udp_bind+0xf6>
  82478. /* place the PCB on the active list if not already there */
  82479. pcb->next = udp_pcbs;
  82480. 8021718: 4b09 ldr r3, [pc, #36] @ (8021740 <udp_bind+0x110>)
  82481. 802171a: 681a ldr r2, [r3, #0]
  82482. 802171c: 68fb ldr r3, [r7, #12]
  82483. 802171e: 60da str r2, [r3, #12]
  82484. udp_pcbs = pcb;
  82485. 8021720: 4a07 ldr r2, [pc, #28] @ (8021740 <udp_bind+0x110>)
  82486. 8021722: 68fb ldr r3, [r7, #12]
  82487. 8021724: 6013 str r3, [r2, #0]
  82488. }
  82489. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_bind: bound to "));
  82490. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->local_ip);
  82491. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->local_port));
  82492. return ERR_OK;
  82493. 8021726: 2300 movs r3, #0
  82494. }
  82495. 8021728: 4618 mov r0, r3
  82496. 802172a: 3718 adds r7, #24
  82497. 802172c: 46bd mov sp, r7
  82498. 802172e: bd80 pop {r7, pc}
  82499. 8021730: 08030c68 .word 0x08030c68
  82500. 8021734: 0802fb38 .word 0x0802fb38
  82501. 8021738: 0802fe00 .word 0x0802fe00
  82502. 802173c: 0802fb8c .word 0x0802fb8c
  82503. 8021740: 2402aee8 .word 0x2402aee8
  82504. 08021744 <udp_connect>:
  82505. *
  82506. * @see udp_disconnect()
  82507. */
  82508. err_t
  82509. udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  82510. {
  82511. 8021744: b580 push {r7, lr}
  82512. 8021746: b086 sub sp, #24
  82513. 8021748: af00 add r7, sp, #0
  82514. 802174a: 60f8 str r0, [r7, #12]
  82515. 802174c: 60b9 str r1, [r7, #8]
  82516. 802174e: 4613 mov r3, r2
  82517. 8021750: 80fb strh r3, [r7, #6]
  82518. struct udp_pcb *ipcb;
  82519. LWIP_ASSERT_CORE_LOCKED();
  82520. 8021752: f7ee fef7 bl 8010544 <sys_check_core_locking>
  82521. LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  82522. 8021756: 68fb ldr r3, [r7, #12]
  82523. 8021758: 2b00 cmp r3, #0
  82524. 802175a: d109 bne.n 8021770 <udp_connect+0x2c>
  82525. 802175c: 4b2c ldr r3, [pc, #176] @ (8021810 <udp_connect+0xcc>)
  82526. 802175e: f240 4235 movw r2, #1077 @ 0x435
  82527. 8021762: 492c ldr r1, [pc, #176] @ (8021814 <udp_connect+0xd0>)
  82528. 8021764: 482c ldr r0, [pc, #176] @ (8021818 <udp_connect+0xd4>)
  82529. 8021766: f008 f939 bl 80299dc <iprintf>
  82530. 802176a: f06f 030f mvn.w r3, #15
  82531. 802176e: e04b b.n 8021808 <udp_connect+0xc4>
  82532. LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  82533. 8021770: 68bb ldr r3, [r7, #8]
  82534. 8021772: 2b00 cmp r3, #0
  82535. 8021774: d109 bne.n 802178a <udp_connect+0x46>
  82536. 8021776: 4b26 ldr r3, [pc, #152] @ (8021810 <udp_connect+0xcc>)
  82537. 8021778: f240 4236 movw r2, #1078 @ 0x436
  82538. 802177c: 4927 ldr r1, [pc, #156] @ (802181c <udp_connect+0xd8>)
  82539. 802177e: 4826 ldr r0, [pc, #152] @ (8021818 <udp_connect+0xd4>)
  82540. 8021780: f008 f92c bl 80299dc <iprintf>
  82541. 8021784: f06f 030f mvn.w r3, #15
  82542. 8021788: e03e b.n 8021808 <udp_connect+0xc4>
  82543. if (pcb->local_port == 0) {
  82544. 802178a: 68fb ldr r3, [r7, #12]
  82545. 802178c: 8a5b ldrh r3, [r3, #18]
  82546. 802178e: 2b00 cmp r3, #0
  82547. 8021790: d10f bne.n 80217b2 <udp_connect+0x6e>
  82548. err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  82549. 8021792: 68f9 ldr r1, [r7, #12]
  82550. 8021794: 68fb ldr r3, [r7, #12]
  82551. 8021796: 8a5b ldrh r3, [r3, #18]
  82552. 8021798: 461a mov r2, r3
  82553. 802179a: 68f8 ldr r0, [r7, #12]
  82554. 802179c: f7ff ff48 bl 8021630 <udp_bind>
  82555. 80217a0: 4603 mov r3, r0
  82556. 80217a2: 75fb strb r3, [r7, #23]
  82557. if (err != ERR_OK) {
  82558. 80217a4: f997 3017 ldrsb.w r3, [r7, #23]
  82559. 80217a8: 2b00 cmp r3, #0
  82560. 80217aa: d002 beq.n 80217b2 <udp_connect+0x6e>
  82561. return err;
  82562. 80217ac: f997 3017 ldrsb.w r3, [r7, #23]
  82563. 80217b0: e02a b.n 8021808 <udp_connect+0xc4>
  82564. }
  82565. }
  82566. ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
  82567. 80217b2: 68bb ldr r3, [r7, #8]
  82568. 80217b4: 2b00 cmp r3, #0
  82569. 80217b6: d002 beq.n 80217be <udp_connect+0x7a>
  82570. 80217b8: 68bb ldr r3, [r7, #8]
  82571. 80217ba: 681b ldr r3, [r3, #0]
  82572. 80217bc: e000 b.n 80217c0 <udp_connect+0x7c>
  82573. 80217be: 2300 movs r3, #0
  82574. 80217c0: 68fa ldr r2, [r7, #12]
  82575. 80217c2: 6053 str r3, [r2, #4]
  82576. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) {
  82577. ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip));
  82578. }
  82579. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  82580. pcb->remote_port = port;
  82581. 80217c4: 68fb ldr r3, [r7, #12]
  82582. 80217c6: 88fa ldrh r2, [r7, #6]
  82583. 80217c8: 829a strh r2, [r3, #20]
  82584. pcb->flags |= UDP_FLAGS_CONNECTED;
  82585. 80217ca: 68fb ldr r3, [r7, #12]
  82586. 80217cc: 7c1b ldrb r3, [r3, #16]
  82587. 80217ce: f043 0304 orr.w r3, r3, #4
  82588. 80217d2: b2da uxtb r2, r3
  82589. 80217d4: 68fb ldr r3, [r7, #12]
  82590. 80217d6: 741a strb r2, [r3, #16]
  82591. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  82592. pcb->remote_ip);
  82593. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->remote_port));
  82594. /* Insert UDP PCB into the list of active UDP PCBs. */
  82595. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  82596. 80217d8: 4b11 ldr r3, [pc, #68] @ (8021820 <udp_connect+0xdc>)
  82597. 80217da: 681b ldr r3, [r3, #0]
  82598. 80217dc: 613b str r3, [r7, #16]
  82599. 80217de: e008 b.n 80217f2 <udp_connect+0xae>
  82600. if (pcb == ipcb) {
  82601. 80217e0: 68fa ldr r2, [r7, #12]
  82602. 80217e2: 693b ldr r3, [r7, #16]
  82603. 80217e4: 429a cmp r2, r3
  82604. 80217e6: d101 bne.n 80217ec <udp_connect+0xa8>
  82605. /* already on the list, just return */
  82606. return ERR_OK;
  82607. 80217e8: 2300 movs r3, #0
  82608. 80217ea: e00d b.n 8021808 <udp_connect+0xc4>
  82609. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  82610. 80217ec: 693b ldr r3, [r7, #16]
  82611. 80217ee: 68db ldr r3, [r3, #12]
  82612. 80217f0: 613b str r3, [r7, #16]
  82613. 80217f2: 693b ldr r3, [r7, #16]
  82614. 80217f4: 2b00 cmp r3, #0
  82615. 80217f6: d1f3 bne.n 80217e0 <udp_connect+0x9c>
  82616. }
  82617. }
  82618. /* PCB not yet on the list, add PCB now */
  82619. pcb->next = udp_pcbs;
  82620. 80217f8: 4b09 ldr r3, [pc, #36] @ (8021820 <udp_connect+0xdc>)
  82621. 80217fa: 681a ldr r2, [r3, #0]
  82622. 80217fc: 68fb ldr r3, [r7, #12]
  82623. 80217fe: 60da str r2, [r3, #12]
  82624. udp_pcbs = pcb;
  82625. 8021800: 4a07 ldr r2, [pc, #28] @ (8021820 <udp_connect+0xdc>)
  82626. 8021802: 68fb ldr r3, [r7, #12]
  82627. 8021804: 6013 str r3, [r2, #0]
  82628. return ERR_OK;
  82629. 8021806: 2300 movs r3, #0
  82630. }
  82631. 8021808: 4618 mov r0, r3
  82632. 802180a: 3718 adds r7, #24
  82633. 802180c: 46bd mov sp, r7
  82634. 802180e: bd80 pop {r7, pc}
  82635. 8021810: 0802fb38 .word 0x0802fb38
  82636. 8021814: 0802fe18 .word 0x0802fe18
  82637. 8021818: 0802fb8c .word 0x0802fb8c
  82638. 802181c: 0802fe34 .word 0x0802fe34
  82639. 8021820: 2402aee8 .word 0x2402aee8
  82640. 08021824 <udp_disconnect>:
  82641. *
  82642. * @param pcb the udp pcb to disconnect.
  82643. */
  82644. void
  82645. udp_disconnect(struct udp_pcb *pcb)
  82646. {
  82647. 8021824: b580 push {r7, lr}
  82648. 8021826: b082 sub sp, #8
  82649. 8021828: af00 add r7, sp, #0
  82650. 802182a: 6078 str r0, [r7, #4]
  82651. LWIP_ASSERT_CORE_LOCKED();
  82652. 802182c: f7ee fe8a bl 8010544 <sys_check_core_locking>
  82653. LWIP_ERROR("udp_disconnect: invalid pcb", pcb != NULL, return);
  82654. 8021830: 687b ldr r3, [r7, #4]
  82655. 8021832: 2b00 cmp r3, #0
  82656. 8021834: d107 bne.n 8021846 <udp_disconnect+0x22>
  82657. 8021836: 4b0d ldr r3, [pc, #52] @ (802186c <udp_disconnect+0x48>)
  82658. 8021838: f240 426a movw r2, #1130 @ 0x46a
  82659. 802183c: 490c ldr r1, [pc, #48] @ (8021870 <udp_disconnect+0x4c>)
  82660. 802183e: 480d ldr r0, [pc, #52] @ (8021874 <udp_disconnect+0x50>)
  82661. 8021840: f008 f8cc bl 80299dc <iprintf>
  82662. 8021844: e00f b.n 8021866 <udp_disconnect+0x42>
  82663. #if LWIP_IPV4 && LWIP_IPV6
  82664. if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) {
  82665. ip_addr_copy(pcb->remote_ip, *IP_ANY_TYPE);
  82666. } else {
  82667. #endif
  82668. ip_addr_set_any(IP_IS_V6_VAL(pcb->remote_ip), &pcb->remote_ip);
  82669. 8021846: 687b ldr r3, [r7, #4]
  82670. 8021848: 2200 movs r2, #0
  82671. 802184a: 605a str r2, [r3, #4]
  82672. #if LWIP_IPV4 && LWIP_IPV6
  82673. }
  82674. #endif
  82675. pcb->remote_port = 0;
  82676. 802184c: 687b ldr r3, [r7, #4]
  82677. 802184e: 2200 movs r2, #0
  82678. 8021850: 829a strh r2, [r3, #20]
  82679. pcb->netif_idx = NETIF_NO_INDEX;
  82680. 8021852: 687b ldr r3, [r7, #4]
  82681. 8021854: 2200 movs r2, #0
  82682. 8021856: 721a strb r2, [r3, #8]
  82683. /* mark PCB as unconnected */
  82684. udp_clear_flags(pcb, UDP_FLAGS_CONNECTED);
  82685. 8021858: 687b ldr r3, [r7, #4]
  82686. 802185a: 7c1b ldrb r3, [r3, #16]
  82687. 802185c: f023 0304 bic.w r3, r3, #4
  82688. 8021860: b2da uxtb r2, r3
  82689. 8021862: 687b ldr r3, [r7, #4]
  82690. 8021864: 741a strb r2, [r3, #16]
  82691. }
  82692. 8021866: 3708 adds r7, #8
  82693. 8021868: 46bd mov sp, r7
  82694. 802186a: bd80 pop {r7, pc}
  82695. 802186c: 0802fb38 .word 0x0802fb38
  82696. 8021870: 0802fe50 .word 0x0802fe50
  82697. 8021874: 0802fb8c .word 0x0802fb8c
  82698. 08021878 <udp_recv>:
  82699. * @param recv function pointer of the callback function
  82700. * @param recv_arg additional argument to pass to the callback function
  82701. */
  82702. void
  82703. udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
  82704. {
  82705. 8021878: b580 push {r7, lr}
  82706. 802187a: b084 sub sp, #16
  82707. 802187c: af00 add r7, sp, #0
  82708. 802187e: 60f8 str r0, [r7, #12]
  82709. 8021880: 60b9 str r1, [r7, #8]
  82710. 8021882: 607a str r2, [r7, #4]
  82711. LWIP_ASSERT_CORE_LOCKED();
  82712. 8021884: f7ee fe5e bl 8010544 <sys_check_core_locking>
  82713. LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return);
  82714. 8021888: 68fb ldr r3, [r7, #12]
  82715. 802188a: 2b00 cmp r3, #0
  82716. 802188c: d107 bne.n 802189e <udp_recv+0x26>
  82717. 802188e: 4b08 ldr r3, [pc, #32] @ (80218b0 <udp_recv+0x38>)
  82718. 8021890: f240 428a movw r2, #1162 @ 0x48a
  82719. 8021894: 4907 ldr r1, [pc, #28] @ (80218b4 <udp_recv+0x3c>)
  82720. 8021896: 4808 ldr r0, [pc, #32] @ (80218b8 <udp_recv+0x40>)
  82721. 8021898: f008 f8a0 bl 80299dc <iprintf>
  82722. 802189c: e005 b.n 80218aa <udp_recv+0x32>
  82723. /* remember recv() callback and user data */
  82724. pcb->recv = recv;
  82725. 802189e: 68fb ldr r3, [r7, #12]
  82726. 80218a0: 68ba ldr r2, [r7, #8]
  82727. 80218a2: 619a str r2, [r3, #24]
  82728. pcb->recv_arg = recv_arg;
  82729. 80218a4: 68fb ldr r3, [r7, #12]
  82730. 80218a6: 687a ldr r2, [r7, #4]
  82731. 80218a8: 61da str r2, [r3, #28]
  82732. }
  82733. 80218aa: 3710 adds r7, #16
  82734. 80218ac: 46bd mov sp, r7
  82735. 80218ae: bd80 pop {r7, pc}
  82736. 80218b0: 0802fb38 .word 0x0802fb38
  82737. 80218b4: 0802fe6c .word 0x0802fe6c
  82738. 80218b8: 0802fb8c .word 0x0802fb8c
  82739. 080218bc <udp_remove>:
  82740. *
  82741. * @see udp_new()
  82742. */
  82743. void
  82744. udp_remove(struct udp_pcb *pcb)
  82745. {
  82746. 80218bc: b580 push {r7, lr}
  82747. 80218be: b084 sub sp, #16
  82748. 80218c0: af00 add r7, sp, #0
  82749. 80218c2: 6078 str r0, [r7, #4]
  82750. struct udp_pcb *pcb2;
  82751. LWIP_ASSERT_CORE_LOCKED();
  82752. 80218c4: f7ee fe3e bl 8010544 <sys_check_core_locking>
  82753. LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return);
  82754. 80218c8: 687b ldr r3, [r7, #4]
  82755. 80218ca: 2b00 cmp r3, #0
  82756. 80218cc: d107 bne.n 80218de <udp_remove+0x22>
  82757. 80218ce: 4b19 ldr r3, [pc, #100] @ (8021934 <udp_remove+0x78>)
  82758. 80218d0: f240 42a1 movw r2, #1185 @ 0x4a1
  82759. 80218d4: 4918 ldr r1, [pc, #96] @ (8021938 <udp_remove+0x7c>)
  82760. 80218d6: 4819 ldr r0, [pc, #100] @ (802193c <udp_remove+0x80>)
  82761. 80218d8: f008 f880 bl 80299dc <iprintf>
  82762. 80218dc: e026 b.n 802192c <udp_remove+0x70>
  82763. mib2_udp_unbind(pcb);
  82764. /* pcb to be removed is first in list? */
  82765. if (udp_pcbs == pcb) {
  82766. 80218de: 4b18 ldr r3, [pc, #96] @ (8021940 <udp_remove+0x84>)
  82767. 80218e0: 681b ldr r3, [r3, #0]
  82768. 80218e2: 687a ldr r2, [r7, #4]
  82769. 80218e4: 429a cmp r2, r3
  82770. 80218e6: d105 bne.n 80218f4 <udp_remove+0x38>
  82771. /* make list start at 2nd pcb */
  82772. udp_pcbs = udp_pcbs->next;
  82773. 80218e8: 4b15 ldr r3, [pc, #84] @ (8021940 <udp_remove+0x84>)
  82774. 80218ea: 681b ldr r3, [r3, #0]
  82775. 80218ec: 68db ldr r3, [r3, #12]
  82776. 80218ee: 4a14 ldr r2, [pc, #80] @ (8021940 <udp_remove+0x84>)
  82777. 80218f0: 6013 str r3, [r2, #0]
  82778. 80218f2: e017 b.n 8021924 <udp_remove+0x68>
  82779. /* pcb not 1st in list */
  82780. } else {
  82781. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  82782. 80218f4: 4b12 ldr r3, [pc, #72] @ (8021940 <udp_remove+0x84>)
  82783. 80218f6: 681b ldr r3, [r3, #0]
  82784. 80218f8: 60fb str r3, [r7, #12]
  82785. 80218fa: e010 b.n 802191e <udp_remove+0x62>
  82786. /* find pcb in udp_pcbs list */
  82787. if (pcb2->next != NULL && pcb2->next == pcb) {
  82788. 80218fc: 68fb ldr r3, [r7, #12]
  82789. 80218fe: 68db ldr r3, [r3, #12]
  82790. 8021900: 2b00 cmp r3, #0
  82791. 8021902: d009 beq.n 8021918 <udp_remove+0x5c>
  82792. 8021904: 68fb ldr r3, [r7, #12]
  82793. 8021906: 68db ldr r3, [r3, #12]
  82794. 8021908: 687a ldr r2, [r7, #4]
  82795. 802190a: 429a cmp r2, r3
  82796. 802190c: d104 bne.n 8021918 <udp_remove+0x5c>
  82797. /* remove pcb from list */
  82798. pcb2->next = pcb->next;
  82799. 802190e: 687b ldr r3, [r7, #4]
  82800. 8021910: 68da ldr r2, [r3, #12]
  82801. 8021912: 68fb ldr r3, [r7, #12]
  82802. 8021914: 60da str r2, [r3, #12]
  82803. break;
  82804. 8021916: e005 b.n 8021924 <udp_remove+0x68>
  82805. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  82806. 8021918: 68fb ldr r3, [r7, #12]
  82807. 802191a: 68db ldr r3, [r3, #12]
  82808. 802191c: 60fb str r3, [r7, #12]
  82809. 802191e: 68fb ldr r3, [r7, #12]
  82810. 8021920: 2b00 cmp r3, #0
  82811. 8021922: d1eb bne.n 80218fc <udp_remove+0x40>
  82812. }
  82813. }
  82814. }
  82815. memp_free(MEMP_UDP_PCB, pcb);
  82816. 8021924: 6879 ldr r1, [r7, #4]
  82817. 8021926: 2000 movs r0, #0
  82818. 8021928: f7f7 fef2 bl 8019710 <memp_free>
  82819. }
  82820. 802192c: 3710 adds r7, #16
  82821. 802192e: 46bd mov sp, r7
  82822. 8021930: bd80 pop {r7, pc}
  82823. 8021932: bf00 nop
  82824. 8021934: 0802fb38 .word 0x0802fb38
  82825. 8021938: 0802fe84 .word 0x0802fe84
  82826. 802193c: 0802fb8c .word 0x0802fb8c
  82827. 8021940: 2402aee8 .word 0x2402aee8
  82828. 08021944 <udp_new>:
  82829. *
  82830. * @see udp_remove()
  82831. */
  82832. struct udp_pcb *
  82833. udp_new(void)
  82834. {
  82835. 8021944: b580 push {r7, lr}
  82836. 8021946: b082 sub sp, #8
  82837. 8021948: af00 add r7, sp, #0
  82838. struct udp_pcb *pcb;
  82839. LWIP_ASSERT_CORE_LOCKED();
  82840. 802194a: f7ee fdfb bl 8010544 <sys_check_core_locking>
  82841. pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB);
  82842. 802194e: 2000 movs r0, #0
  82843. 8021950: f7f7 fe68 bl 8019624 <memp_malloc>
  82844. 8021954: 6078 str r0, [r7, #4]
  82845. /* could allocate UDP PCB? */
  82846. if (pcb != NULL) {
  82847. 8021956: 687b ldr r3, [r7, #4]
  82848. 8021958: 2b00 cmp r3, #0
  82849. 802195a: d007 beq.n 802196c <udp_new+0x28>
  82850. /* UDP Lite: by initializing to all zeroes, chksum_len is set to 0
  82851. * which means checksum is generated over the whole datagram per default
  82852. * (recommended as default by RFC 3828). */
  82853. /* initialize PCB to all zeroes */
  82854. memset(pcb, 0, sizeof(struct udp_pcb));
  82855. 802195c: 2220 movs r2, #32
  82856. 802195e: 2100 movs r1, #0
  82857. 8021960: 6878 ldr r0, [r7, #4]
  82858. 8021962: f008 f9cd bl 8029d00 <memset>
  82859. pcb->ttl = UDP_TTL;
  82860. 8021966: 687b ldr r3, [r7, #4]
  82861. 8021968: 22ff movs r2, #255 @ 0xff
  82862. 802196a: 72da strb r2, [r3, #11]
  82863. #if LWIP_MULTICAST_TX_OPTIONS
  82864. udp_set_multicast_ttl(pcb, UDP_TTL);
  82865. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  82866. }
  82867. return pcb;
  82868. 802196c: 687b ldr r3, [r7, #4]
  82869. }
  82870. 802196e: 4618 mov r0, r3
  82871. 8021970: 3708 adds r7, #8
  82872. 8021972: 46bd mov sp, r7
  82873. 8021974: bd80 pop {r7, pc}
  82874. 08021976 <udp_new_ip_type>:
  82875. *
  82876. * @see udp_remove()
  82877. */
  82878. struct udp_pcb *
  82879. udp_new_ip_type(u8_t type)
  82880. {
  82881. 8021976: b580 push {r7, lr}
  82882. 8021978: b084 sub sp, #16
  82883. 802197a: af00 add r7, sp, #0
  82884. 802197c: 4603 mov r3, r0
  82885. 802197e: 71fb strb r3, [r7, #7]
  82886. struct udp_pcb *pcb;
  82887. LWIP_ASSERT_CORE_LOCKED();
  82888. 8021980: f7ee fde0 bl 8010544 <sys_check_core_locking>
  82889. pcb = udp_new();
  82890. 8021984: f7ff ffde bl 8021944 <udp_new>
  82891. 8021988: 60f8 str r0, [r7, #12]
  82892. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  82893. }
  82894. #else
  82895. LWIP_UNUSED_ARG(type);
  82896. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  82897. return pcb;
  82898. 802198a: 68fb ldr r3, [r7, #12]
  82899. }
  82900. 802198c: 4618 mov r0, r3
  82901. 802198e: 3710 adds r7, #16
  82902. 8021990: 46bd mov sp, r7
  82903. 8021992: bd80 pop {r7, pc}
  82904. 08021994 <udp_netif_ip_addr_changed>:
  82905. *
  82906. * @param old_addr IP address of the netif before change
  82907. * @param new_addr IP address of the netif after change
  82908. */
  82909. void udp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  82910. {
  82911. 8021994: b480 push {r7}
  82912. 8021996: b085 sub sp, #20
  82913. 8021998: af00 add r7, sp, #0
  82914. 802199a: 6078 str r0, [r7, #4]
  82915. 802199c: 6039 str r1, [r7, #0]
  82916. struct udp_pcb *upcb;
  82917. if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) {
  82918. 802199e: 687b ldr r3, [r7, #4]
  82919. 80219a0: 2b00 cmp r3, #0
  82920. 80219a2: d01e beq.n 80219e2 <udp_netif_ip_addr_changed+0x4e>
  82921. 80219a4: 687b ldr r3, [r7, #4]
  82922. 80219a6: 681b ldr r3, [r3, #0]
  82923. 80219a8: 2b00 cmp r3, #0
  82924. 80219aa: d01a beq.n 80219e2 <udp_netif_ip_addr_changed+0x4e>
  82925. 80219ac: 683b ldr r3, [r7, #0]
  82926. 80219ae: 2b00 cmp r3, #0
  82927. 80219b0: d017 beq.n 80219e2 <udp_netif_ip_addr_changed+0x4e>
  82928. 80219b2: 683b ldr r3, [r7, #0]
  82929. 80219b4: 681b ldr r3, [r3, #0]
  82930. 80219b6: 2b00 cmp r3, #0
  82931. 80219b8: d013 beq.n 80219e2 <udp_netif_ip_addr_changed+0x4e>
  82932. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  82933. 80219ba: 4b0d ldr r3, [pc, #52] @ (80219f0 <udp_netif_ip_addr_changed+0x5c>)
  82934. 80219bc: 681b ldr r3, [r3, #0]
  82935. 80219be: 60fb str r3, [r7, #12]
  82936. 80219c0: e00c b.n 80219dc <udp_netif_ip_addr_changed+0x48>
  82937. /* PCB bound to current local interface address? */
  82938. if (ip_addr_cmp(&upcb->local_ip, old_addr)) {
  82939. 80219c2: 68fb ldr r3, [r7, #12]
  82940. 80219c4: 681a ldr r2, [r3, #0]
  82941. 80219c6: 687b ldr r3, [r7, #4]
  82942. 80219c8: 681b ldr r3, [r3, #0]
  82943. 80219ca: 429a cmp r2, r3
  82944. 80219cc: d103 bne.n 80219d6 <udp_netif_ip_addr_changed+0x42>
  82945. /* The PCB is bound to the old ipaddr and
  82946. * is set to bound to the new one instead */
  82947. ip_addr_copy(upcb->local_ip, *new_addr);
  82948. 80219ce: 683b ldr r3, [r7, #0]
  82949. 80219d0: 681a ldr r2, [r3, #0]
  82950. 80219d2: 68fb ldr r3, [r7, #12]
  82951. 80219d4: 601a str r2, [r3, #0]
  82952. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  82953. 80219d6: 68fb ldr r3, [r7, #12]
  82954. 80219d8: 68db ldr r3, [r3, #12]
  82955. 80219da: 60fb str r3, [r7, #12]
  82956. 80219dc: 68fb ldr r3, [r7, #12]
  82957. 80219de: 2b00 cmp r3, #0
  82958. 80219e0: d1ef bne.n 80219c2 <udp_netif_ip_addr_changed+0x2e>
  82959. }
  82960. }
  82961. }
  82962. }
  82963. 80219e2: bf00 nop
  82964. 80219e4: 3714 adds r7, #20
  82965. 80219e6: 46bd mov sp, r7
  82966. 80219e8: f85d 7b04 ldr.w r7, [sp], #4
  82967. 80219ec: 4770 bx lr
  82968. 80219ee: bf00 nop
  82969. 80219f0: 2402aee8 .word 0x2402aee8
  82970. 080219f4 <dhcp_inc_pcb_refcount>:
  82971. static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out);
  82972. /** Ensure DHCP PCB is allocated and bound */
  82973. static err_t
  82974. dhcp_inc_pcb_refcount(void)
  82975. {
  82976. 80219f4: b580 push {r7, lr}
  82977. 80219f6: af00 add r7, sp, #0
  82978. if (dhcp_pcb_refcount == 0) {
  82979. 80219f8: 4b20 ldr r3, [pc, #128] @ (8021a7c <dhcp_inc_pcb_refcount+0x88>)
  82980. 80219fa: 781b ldrb r3, [r3, #0]
  82981. 80219fc: 2b00 cmp r3, #0
  82982. 80219fe: d133 bne.n 8021a68 <dhcp_inc_pcb_refcount+0x74>
  82983. LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL);
  82984. 8021a00: 4b1f ldr r3, [pc, #124] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  82985. 8021a02: 681b ldr r3, [r3, #0]
  82986. 8021a04: 2b00 cmp r3, #0
  82987. 8021a06: d005 beq.n 8021a14 <dhcp_inc_pcb_refcount+0x20>
  82988. 8021a08: 4b1e ldr r3, [pc, #120] @ (8021a84 <dhcp_inc_pcb_refcount+0x90>)
  82989. 8021a0a: 22e5 movs r2, #229 @ 0xe5
  82990. 8021a0c: 491e ldr r1, [pc, #120] @ (8021a88 <dhcp_inc_pcb_refcount+0x94>)
  82991. 8021a0e: 481f ldr r0, [pc, #124] @ (8021a8c <dhcp_inc_pcb_refcount+0x98>)
  82992. 8021a10: f007 ffe4 bl 80299dc <iprintf>
  82993. /* allocate UDP PCB */
  82994. dhcp_pcb = udp_new();
  82995. 8021a14: f7ff ff96 bl 8021944 <udp_new>
  82996. 8021a18: 4603 mov r3, r0
  82997. 8021a1a: 4a19 ldr r2, [pc, #100] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  82998. 8021a1c: 6013 str r3, [r2, #0]
  82999. if (dhcp_pcb == NULL) {
  83000. 8021a1e: 4b18 ldr r3, [pc, #96] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  83001. 8021a20: 681b ldr r3, [r3, #0]
  83002. 8021a22: 2b00 cmp r3, #0
  83003. 8021a24: d102 bne.n 8021a2c <dhcp_inc_pcb_refcount+0x38>
  83004. return ERR_MEM;
  83005. 8021a26: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83006. 8021a2a: e024 b.n 8021a76 <dhcp_inc_pcb_refcount+0x82>
  83007. }
  83008. ip_set_option(dhcp_pcb, SOF_BROADCAST);
  83009. 8021a2c: 4b14 ldr r3, [pc, #80] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  83010. 8021a2e: 681b ldr r3, [r3, #0]
  83011. 8021a30: 7a5a ldrb r2, [r3, #9]
  83012. 8021a32: 4b13 ldr r3, [pc, #76] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  83013. 8021a34: 681b ldr r3, [r3, #0]
  83014. 8021a36: f042 0220 orr.w r2, r2, #32
  83015. 8021a3a: b2d2 uxtb r2, r2
  83016. 8021a3c: 725a strb r2, [r3, #9]
  83017. /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */
  83018. udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT);
  83019. 8021a3e: 4b10 ldr r3, [pc, #64] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  83020. 8021a40: 681b ldr r3, [r3, #0]
  83021. 8021a42: 2244 movs r2, #68 @ 0x44
  83022. 8021a44: 4912 ldr r1, [pc, #72] @ (8021a90 <dhcp_inc_pcb_refcount+0x9c>)
  83023. 8021a46: 4618 mov r0, r3
  83024. 8021a48: f7ff fdf2 bl 8021630 <udp_bind>
  83025. udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER);
  83026. 8021a4c: 4b0c ldr r3, [pc, #48] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  83027. 8021a4e: 681b ldr r3, [r3, #0]
  83028. 8021a50: 2243 movs r2, #67 @ 0x43
  83029. 8021a52: 490f ldr r1, [pc, #60] @ (8021a90 <dhcp_inc_pcb_refcount+0x9c>)
  83030. 8021a54: 4618 mov r0, r3
  83031. 8021a56: f7ff fe75 bl 8021744 <udp_connect>
  83032. udp_recv(dhcp_pcb, dhcp_recv, NULL);
  83033. 8021a5a: 4b09 ldr r3, [pc, #36] @ (8021a80 <dhcp_inc_pcb_refcount+0x8c>)
  83034. 8021a5c: 681b ldr r3, [r3, #0]
  83035. 8021a5e: 2200 movs r2, #0
  83036. 8021a60: 490c ldr r1, [pc, #48] @ (8021a94 <dhcp_inc_pcb_refcount+0xa0>)
  83037. 8021a62: 4618 mov r0, r3
  83038. 8021a64: f7ff ff08 bl 8021878 <udp_recv>
  83039. }
  83040. dhcp_pcb_refcount++;
  83041. 8021a68: 4b04 ldr r3, [pc, #16] @ (8021a7c <dhcp_inc_pcb_refcount+0x88>)
  83042. 8021a6a: 781b ldrb r3, [r3, #0]
  83043. 8021a6c: 3301 adds r3, #1
  83044. 8021a6e: b2da uxtb r2, r3
  83045. 8021a70: 4b02 ldr r3, [pc, #8] @ (8021a7c <dhcp_inc_pcb_refcount+0x88>)
  83046. 8021a72: 701a strb r2, [r3, #0]
  83047. return ERR_OK;
  83048. 8021a74: 2300 movs r3, #0
  83049. }
  83050. 8021a76: 4618 mov r0, r3
  83051. 8021a78: bd80 pop {r7, pc}
  83052. 8021a7a: bf00 nop
  83053. 8021a7c: 2402af18 .word 0x2402af18
  83054. 8021a80: 2402af14 .word 0x2402af14
  83055. 8021a84: 0802fe9c .word 0x0802fe9c
  83056. 8021a88: 0802fed4 .word 0x0802fed4
  83057. 8021a8c: 0802fefc .word 0x0802fefc
  83058. 8021a90: 08030c68 .word 0x08030c68
  83059. 8021a94: 08023365 .word 0x08023365
  83060. 08021a98 <dhcp_dec_pcb_refcount>:
  83061. /** Free DHCP PCB if the last netif stops using it */
  83062. static void
  83063. dhcp_dec_pcb_refcount(void)
  83064. {
  83065. 8021a98: b580 push {r7, lr}
  83066. 8021a9a: af00 add r7, sp, #0
  83067. LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0));
  83068. 8021a9c: 4b0e ldr r3, [pc, #56] @ (8021ad8 <dhcp_dec_pcb_refcount+0x40>)
  83069. 8021a9e: 781b ldrb r3, [r3, #0]
  83070. 8021aa0: 2b00 cmp r3, #0
  83071. 8021aa2: d105 bne.n 8021ab0 <dhcp_dec_pcb_refcount+0x18>
  83072. 8021aa4: 4b0d ldr r3, [pc, #52] @ (8021adc <dhcp_dec_pcb_refcount+0x44>)
  83073. 8021aa6: 22ff movs r2, #255 @ 0xff
  83074. 8021aa8: 490d ldr r1, [pc, #52] @ (8021ae0 <dhcp_dec_pcb_refcount+0x48>)
  83075. 8021aaa: 480e ldr r0, [pc, #56] @ (8021ae4 <dhcp_dec_pcb_refcount+0x4c>)
  83076. 8021aac: f007 ff96 bl 80299dc <iprintf>
  83077. dhcp_pcb_refcount--;
  83078. 8021ab0: 4b09 ldr r3, [pc, #36] @ (8021ad8 <dhcp_dec_pcb_refcount+0x40>)
  83079. 8021ab2: 781b ldrb r3, [r3, #0]
  83080. 8021ab4: 3b01 subs r3, #1
  83081. 8021ab6: b2da uxtb r2, r3
  83082. 8021ab8: 4b07 ldr r3, [pc, #28] @ (8021ad8 <dhcp_dec_pcb_refcount+0x40>)
  83083. 8021aba: 701a strb r2, [r3, #0]
  83084. if (dhcp_pcb_refcount == 0) {
  83085. 8021abc: 4b06 ldr r3, [pc, #24] @ (8021ad8 <dhcp_dec_pcb_refcount+0x40>)
  83086. 8021abe: 781b ldrb r3, [r3, #0]
  83087. 8021ac0: 2b00 cmp r3, #0
  83088. 8021ac2: d107 bne.n 8021ad4 <dhcp_dec_pcb_refcount+0x3c>
  83089. udp_remove(dhcp_pcb);
  83090. 8021ac4: 4b08 ldr r3, [pc, #32] @ (8021ae8 <dhcp_dec_pcb_refcount+0x50>)
  83091. 8021ac6: 681b ldr r3, [r3, #0]
  83092. 8021ac8: 4618 mov r0, r3
  83093. 8021aca: f7ff fef7 bl 80218bc <udp_remove>
  83094. dhcp_pcb = NULL;
  83095. 8021ace: 4b06 ldr r3, [pc, #24] @ (8021ae8 <dhcp_dec_pcb_refcount+0x50>)
  83096. 8021ad0: 2200 movs r2, #0
  83097. 8021ad2: 601a str r2, [r3, #0]
  83098. }
  83099. }
  83100. 8021ad4: bf00 nop
  83101. 8021ad6: bd80 pop {r7, pc}
  83102. 8021ad8: 2402af18 .word 0x2402af18
  83103. 8021adc: 0802fe9c .word 0x0802fe9c
  83104. 8021ae0: 0802ff24 .word 0x0802ff24
  83105. 8021ae4: 0802fefc .word 0x0802fefc
  83106. 8021ae8: 2402af14 .word 0x2402af14
  83107. 08021aec <dhcp_handle_nak>:
  83108. *
  83109. * @param netif the netif under DHCP control
  83110. */
  83111. static void
  83112. dhcp_handle_nak(struct netif *netif)
  83113. {
  83114. 8021aec: b580 push {r7, lr}
  83115. 8021aee: b084 sub sp, #16
  83116. 8021af0: af00 add r7, sp, #0
  83117. 8021af2: 6078 str r0, [r7, #4]
  83118. struct dhcp *dhcp = netif_dhcp_data(netif);
  83119. 8021af4: 687b ldr r3, [r7, #4]
  83120. 8021af6: 6a5b ldr r3, [r3, #36] @ 0x24
  83121. 8021af8: 60fb str r3, [r7, #12]
  83122. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_nak(netif=%p) %c%c%"U16_F"\n",
  83123. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  83124. /* Change to a defined state - set this before assigning the address
  83125. to ensure the callback can use dhcp_supplied_address() */
  83126. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  83127. 8021afa: 210c movs r1, #12
  83128. 8021afc: 68f8 ldr r0, [r7, #12]
  83129. 8021afe: f001 f862 bl 8022bc6 <dhcp_set_state>
  83130. /* remove IP address from interface (must no longer be used, as per RFC2131) */
  83131. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  83132. 8021b02: 4b06 ldr r3, [pc, #24] @ (8021b1c <dhcp_handle_nak+0x30>)
  83133. 8021b04: 4a05 ldr r2, [pc, #20] @ (8021b1c <dhcp_handle_nak+0x30>)
  83134. 8021b06: 4905 ldr r1, [pc, #20] @ (8021b1c <dhcp_handle_nak+0x30>)
  83135. 8021b08: 6878 ldr r0, [r7, #4]
  83136. 8021b0a: f7f7 ffa5 bl 8019a58 <netif_set_addr>
  83137. /* We can immediately restart discovery */
  83138. dhcp_discover(netif);
  83139. 8021b0e: 6878 ldr r0, [r7, #4]
  83140. 8021b10: f000 fc4c bl 80223ac <dhcp_discover>
  83141. }
  83142. 8021b14: bf00 nop
  83143. 8021b16: 3710 adds r7, #16
  83144. 8021b18: 46bd mov sp, r7
  83145. 8021b1a: bd80 pop {r7, pc}
  83146. 8021b1c: 08030c68 .word 0x08030c68
  83147. 08021b20 <dhcp_check>:
  83148. *
  83149. * @param netif the netif under DHCP control
  83150. */
  83151. static void
  83152. dhcp_check(struct netif *netif)
  83153. {
  83154. 8021b20: b580 push {r7, lr}
  83155. 8021b22: b084 sub sp, #16
  83156. 8021b24: af00 add r7, sp, #0
  83157. 8021b26: 6078 str r0, [r7, #4]
  83158. struct dhcp *dhcp = netif_dhcp_data(netif);
  83159. 8021b28: 687b ldr r3, [r7, #4]
  83160. 8021b2a: 6a5b ldr r3, [r3, #36] @ 0x24
  83161. 8021b2c: 60fb str r3, [r7, #12]
  83162. err_t result;
  83163. u16_t msecs;
  83164. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_check(netif=%p) %c%c\n", (void *)netif, (s16_t)netif->name[0],
  83165. (s16_t)netif->name[1]));
  83166. dhcp_set_state(dhcp, DHCP_STATE_CHECKING);
  83167. 8021b2e: 2108 movs r1, #8
  83168. 8021b30: 68f8 ldr r0, [r7, #12]
  83169. 8021b32: f001 f848 bl 8022bc6 <dhcp_set_state>
  83170. /* create an ARP query for the offered IP address, expecting that no host
  83171. responds, as the IP address should not be in use. */
  83172. result = etharp_query(netif, &dhcp->offered_ip_addr, NULL);
  83173. 8021b36: 68fb ldr r3, [r7, #12]
  83174. 8021b38: 331c adds r3, #28
  83175. 8021b3a: 2200 movs r2, #0
  83176. 8021b3c: 4619 mov r1, r3
  83177. 8021b3e: 6878 ldr r0, [r7, #4]
  83178. 8021b40: f002 fb88 bl 8024254 <etharp_query>
  83179. 8021b44: 4603 mov r3, r0
  83180. 8021b46: 72fb strb r3, [r7, #11]
  83181. if (result != ERR_OK) {
  83182. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_check: could not perform ARP query\n"));
  83183. }
  83184. if (dhcp->tries < 255) {
  83185. 8021b48: 68fb ldr r3, [r7, #12]
  83186. 8021b4a: 799b ldrb r3, [r3, #6]
  83187. 8021b4c: 2bff cmp r3, #255 @ 0xff
  83188. 8021b4e: d005 beq.n 8021b5c <dhcp_check+0x3c>
  83189. dhcp->tries++;
  83190. 8021b50: 68fb ldr r3, [r7, #12]
  83191. 8021b52: 799b ldrb r3, [r3, #6]
  83192. 8021b54: 3301 adds r3, #1
  83193. 8021b56: b2da uxtb r2, r3
  83194. 8021b58: 68fb ldr r3, [r7, #12]
  83195. 8021b5a: 719a strb r2, [r3, #6]
  83196. }
  83197. msecs = 500;
  83198. 8021b5c: f44f 73fa mov.w r3, #500 @ 0x1f4
  83199. 8021b60: 813b strh r3, [r7, #8]
  83200. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  83201. 8021b62: 893b ldrh r3, [r7, #8]
  83202. 8021b64: f203 13f3 addw r3, r3, #499 @ 0x1f3
  83203. 8021b68: 4a06 ldr r2, [pc, #24] @ (8021b84 <dhcp_check+0x64>)
  83204. 8021b6a: fb82 1203 smull r1, r2, r2, r3
  83205. 8021b6e: 1152 asrs r2, r2, #5
  83206. 8021b70: 17db asrs r3, r3, #31
  83207. 8021b72: 1ad3 subs r3, r2, r3
  83208. 8021b74: b29a uxth r2, r3
  83209. 8021b76: 68fb ldr r3, [r7, #12]
  83210. 8021b78: 811a strh r2, [r3, #8]
  83211. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs));
  83212. }
  83213. 8021b7a: bf00 nop
  83214. 8021b7c: 3710 adds r7, #16
  83215. 8021b7e: 46bd mov sp, r7
  83216. 8021b80: bd80 pop {r7, pc}
  83217. 8021b82: bf00 nop
  83218. 8021b84: 10624dd3 .word 0x10624dd3
  83219. 08021b88 <dhcp_handle_offer>:
  83220. *
  83221. * @param netif the netif under DHCP control
  83222. */
  83223. static void
  83224. dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in)
  83225. {
  83226. 8021b88: b580 push {r7, lr}
  83227. 8021b8a: b084 sub sp, #16
  83228. 8021b8c: af00 add r7, sp, #0
  83229. 8021b8e: 6078 str r0, [r7, #4]
  83230. 8021b90: 6039 str r1, [r7, #0]
  83231. struct dhcp *dhcp = netif_dhcp_data(netif);
  83232. 8021b92: 687b ldr r3, [r7, #4]
  83233. 8021b94: 6a5b ldr r3, [r3, #36] @ 0x24
  83234. 8021b96: 60fb str r3, [r7, #12]
  83235. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_offer(netif=%p) %c%c%"U16_F"\n",
  83236. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  83237. /* obtain the server address */
  83238. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SERVER_ID)) {
  83239. 8021b98: 4b0c ldr r3, [pc, #48] @ (8021bcc <dhcp_handle_offer+0x44>)
  83240. 8021b9a: 789b ldrb r3, [r3, #2]
  83241. 8021b9c: 2b00 cmp r3, #0
  83242. 8021b9e: d011 beq.n 8021bc4 <dhcp_handle_offer+0x3c>
  83243. dhcp->request_timeout = 0; /* stop timer */
  83244. 8021ba0: 68fb ldr r3, [r7, #12]
  83245. 8021ba2: 2200 movs r2, #0
  83246. 8021ba4: 811a strh r2, [r3, #8]
  83247. ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID)));
  83248. 8021ba6: 4b0a ldr r3, [pc, #40] @ (8021bd0 <dhcp_handle_offer+0x48>)
  83249. 8021ba8: 689b ldr r3, [r3, #8]
  83250. 8021baa: 4618 mov r0, r3
  83251. 8021bac: f7f6 ffd1 bl 8018b52 <lwip_htonl>
  83252. 8021bb0: 4602 mov r2, r0
  83253. 8021bb2: 68fb ldr r3, [r7, #12]
  83254. 8021bb4: 619a str r2, [r3, #24]
  83255. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): server 0x%08"X32_F"\n",
  83256. ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr))));
  83257. /* remember offered address */
  83258. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  83259. 8021bb6: 683b ldr r3, [r7, #0]
  83260. 8021bb8: 691a ldr r2, [r3, #16]
  83261. 8021bba: 68fb ldr r3, [r7, #12]
  83262. 8021bbc: 61da str r2, [r3, #28]
  83263. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): offer for 0x%08"X32_F"\n",
  83264. ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  83265. dhcp_select(netif);
  83266. 8021bbe: 6878 ldr r0, [r7, #4]
  83267. 8021bc0: f000 f808 bl 8021bd4 <dhcp_select>
  83268. } else {
  83269. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  83270. ("dhcp_handle_offer(netif=%p) did not get server ID!\n", (void *)netif));
  83271. }
  83272. }
  83273. 8021bc4: bf00 nop
  83274. 8021bc6: 3710 adds r7, #16
  83275. 8021bc8: 46bd mov sp, r7
  83276. 8021bca: bd80 pop {r7, pc}
  83277. 8021bcc: 2402af0c .word 0x2402af0c
  83278. 8021bd0: 2402aeec .word 0x2402aeec
  83279. 08021bd4 <dhcp_select>:
  83280. * @param netif the netif under DHCP control
  83281. * @return lwIP specific error (see error.h)
  83282. */
  83283. static err_t
  83284. dhcp_select(struct netif *netif)
  83285. {
  83286. 8021bd4: b5b0 push {r4, r5, r7, lr}
  83287. 8021bd6: b08a sub sp, #40 @ 0x28
  83288. 8021bd8: af02 add r7, sp, #8
  83289. 8021bda: 6078 str r0, [r7, #4]
  83290. u16_t msecs;
  83291. u8_t i;
  83292. struct pbuf *p_out;
  83293. u16_t options_out_len;
  83294. LWIP_ERROR("dhcp_select: netif != NULL", (netif != NULL), return ERR_ARG;);
  83295. 8021bdc: 687b ldr r3, [r7, #4]
  83296. 8021bde: 2b00 cmp r3, #0
  83297. 8021be0: d109 bne.n 8021bf6 <dhcp_select+0x22>
  83298. 8021be2: 4b71 ldr r3, [pc, #452] @ (8021da8 <dhcp_select+0x1d4>)
  83299. 8021be4: f240 1277 movw r2, #375 @ 0x177
  83300. 8021be8: 4970 ldr r1, [pc, #448] @ (8021dac <dhcp_select+0x1d8>)
  83301. 8021bea: 4871 ldr r0, [pc, #452] @ (8021db0 <dhcp_select+0x1dc>)
  83302. 8021bec: f007 fef6 bl 80299dc <iprintf>
  83303. 8021bf0: f06f 030f mvn.w r3, #15
  83304. 8021bf4: e0d3 b.n 8021d9e <dhcp_select+0x1ca>
  83305. dhcp = netif_dhcp_data(netif);
  83306. 8021bf6: 687b ldr r3, [r7, #4]
  83307. 8021bf8: 6a5b ldr r3, [r3, #36] @ 0x24
  83308. 8021bfa: 61bb str r3, [r7, #24]
  83309. LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;);
  83310. 8021bfc: 69bb ldr r3, [r7, #24]
  83311. 8021bfe: 2b00 cmp r3, #0
  83312. 8021c00: d109 bne.n 8021c16 <dhcp_select+0x42>
  83313. 8021c02: 4b69 ldr r3, [pc, #420] @ (8021da8 <dhcp_select+0x1d4>)
  83314. 8021c04: f240 1279 movw r2, #377 @ 0x179
  83315. 8021c08: 496a ldr r1, [pc, #424] @ (8021db4 <dhcp_select+0x1e0>)
  83316. 8021c0a: 4869 ldr r0, [pc, #420] @ (8021db0 <dhcp_select+0x1dc>)
  83317. 8021c0c: f007 fee6 bl 80299dc <iprintf>
  83318. 8021c10: f06f 0305 mvn.w r3, #5
  83319. 8021c14: e0c3 b.n 8021d9e <dhcp_select+0x1ca>
  83320. 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));
  83321. dhcp_set_state(dhcp, DHCP_STATE_REQUESTING);
  83322. 8021c16: 2101 movs r1, #1
  83323. 8021c18: 69b8 ldr r0, [r7, #24]
  83324. 8021c1a: f000 ffd4 bl 8022bc6 <dhcp_set_state>
  83325. /* create and initialize the DHCP message header */
  83326. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  83327. 8021c1e: f107 030c add.w r3, r7, #12
  83328. 8021c22: 2203 movs r2, #3
  83329. 8021c24: 69b9 ldr r1, [r7, #24]
  83330. 8021c26: 6878 ldr r0, [r7, #4]
  83331. 8021c28: f001 fc66 bl 80234f8 <dhcp_create_msg>
  83332. 8021c2c: 6178 str r0, [r7, #20]
  83333. if (p_out != NULL) {
  83334. 8021c2e: 697b ldr r3, [r7, #20]
  83335. 8021c30: 2b00 cmp r3, #0
  83336. 8021c32: f000 8085 beq.w 8021d40 <dhcp_select+0x16c>
  83337. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  83338. 8021c36: 697b ldr r3, [r7, #20]
  83339. 8021c38: 685b ldr r3, [r3, #4]
  83340. 8021c3a: 613b str r3, [r7, #16]
  83341. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  83342. 8021c3c: 89b8 ldrh r0, [r7, #12]
  83343. 8021c3e: 693b ldr r3, [r7, #16]
  83344. 8021c40: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83345. 8021c44: 2302 movs r3, #2
  83346. 8021c46: 2239 movs r2, #57 @ 0x39
  83347. 8021c48: f000 ffd8 bl 8022bfc <dhcp_option>
  83348. 8021c4c: 4603 mov r3, r0
  83349. 8021c4e: 81bb strh r3, [r7, #12]
  83350. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  83351. 8021c50: 89b8 ldrh r0, [r7, #12]
  83352. 8021c52: 693b ldr r3, [r7, #16]
  83353. 8021c54: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83354. 8021c58: 687b ldr r3, [r7, #4]
  83355. 8021c5a: 8d1b ldrh r3, [r3, #40] @ 0x28
  83356. 8021c5c: 461a mov r2, r3
  83357. 8021c5e: f001 f827 bl 8022cb0 <dhcp_option_short>
  83358. 8021c62: 4603 mov r3, r0
  83359. 8021c64: 81bb strh r3, [r7, #12]
  83360. /* MUST request the offered IP address */
  83361. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  83362. 8021c66: 89b8 ldrh r0, [r7, #12]
  83363. 8021c68: 693b ldr r3, [r7, #16]
  83364. 8021c6a: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83365. 8021c6e: 2304 movs r3, #4
  83366. 8021c70: 2232 movs r2, #50 @ 0x32
  83367. 8021c72: f000 ffc3 bl 8022bfc <dhcp_option>
  83368. 8021c76: 4603 mov r3, r0
  83369. 8021c78: 81bb strh r3, [r7, #12]
  83370. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  83371. 8021c7a: 89bc ldrh r4, [r7, #12]
  83372. 8021c7c: 693b ldr r3, [r7, #16]
  83373. 8021c7e: f103 05f0 add.w r5, r3, #240 @ 0xf0
  83374. 8021c82: 69bb ldr r3, [r7, #24]
  83375. 8021c84: 69db ldr r3, [r3, #28]
  83376. 8021c86: 4618 mov r0, r3
  83377. 8021c88: f7f6 ff63 bl 8018b52 <lwip_htonl>
  83378. 8021c8c: 4603 mov r3, r0
  83379. 8021c8e: 461a mov r2, r3
  83380. 8021c90: 4629 mov r1, r5
  83381. 8021c92: 4620 mov r0, r4
  83382. 8021c94: f001 f83e bl 8022d14 <dhcp_option_long>
  83383. 8021c98: 4603 mov r3, r0
  83384. 8021c9a: 81bb strh r3, [r7, #12]
  83385. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  83386. 8021c9c: 89b8 ldrh r0, [r7, #12]
  83387. 8021c9e: 693b ldr r3, [r7, #16]
  83388. 8021ca0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83389. 8021ca4: 2304 movs r3, #4
  83390. 8021ca6: 2236 movs r2, #54 @ 0x36
  83391. 8021ca8: f000 ffa8 bl 8022bfc <dhcp_option>
  83392. 8021cac: 4603 mov r3, r0
  83393. 8021cae: 81bb strh r3, [r7, #12]
  83394. 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))));
  83395. 8021cb0: 89bc ldrh r4, [r7, #12]
  83396. 8021cb2: 693b ldr r3, [r7, #16]
  83397. 8021cb4: f103 05f0 add.w r5, r3, #240 @ 0xf0
  83398. 8021cb8: 69bb ldr r3, [r7, #24]
  83399. 8021cba: 699b ldr r3, [r3, #24]
  83400. 8021cbc: 4618 mov r0, r3
  83401. 8021cbe: f7f6 ff48 bl 8018b52 <lwip_htonl>
  83402. 8021cc2: 4603 mov r3, r0
  83403. 8021cc4: 461a mov r2, r3
  83404. 8021cc6: 4629 mov r1, r5
  83405. 8021cc8: 4620 mov r0, r4
  83406. 8021cca: f001 f823 bl 8022d14 <dhcp_option_long>
  83407. 8021cce: 4603 mov r3, r0
  83408. 8021cd0: 81bb strh r3, [r7, #12]
  83409. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  83410. 8021cd2: 89b8 ldrh r0, [r7, #12]
  83411. 8021cd4: 693b ldr r3, [r7, #16]
  83412. 8021cd6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83413. 8021cda: 2303 movs r3, #3
  83414. 8021cdc: 2237 movs r2, #55 @ 0x37
  83415. 8021cde: f000 ff8d bl 8022bfc <dhcp_option>
  83416. 8021ce2: 4603 mov r3, r0
  83417. 8021ce4: 81bb strh r3, [r7, #12]
  83418. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  83419. 8021ce6: 2300 movs r3, #0
  83420. 8021ce8: 77fb strb r3, [r7, #31]
  83421. 8021cea: e00e b.n 8021d0a <dhcp_select+0x136>
  83422. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  83423. 8021cec: 89b8 ldrh r0, [r7, #12]
  83424. 8021cee: 693b ldr r3, [r7, #16]
  83425. 8021cf0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  83426. 8021cf4: 7ffb ldrb r3, [r7, #31]
  83427. 8021cf6: 4a30 ldr r2, [pc, #192] @ (8021db8 <dhcp_select+0x1e4>)
  83428. 8021cf8: 5cd3 ldrb r3, [r2, r3]
  83429. 8021cfa: 461a mov r2, r3
  83430. 8021cfc: f000 ffb2 bl 8022c64 <dhcp_option_byte>
  83431. 8021d00: 4603 mov r3, r0
  83432. 8021d02: 81bb strh r3, [r7, #12]
  83433. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  83434. 8021d04: 7ffb ldrb r3, [r7, #31]
  83435. 8021d06: 3301 adds r3, #1
  83436. 8021d08: 77fb strb r3, [r7, #31]
  83437. 8021d0a: 7ffb ldrb r3, [r7, #31]
  83438. 8021d0c: 2b02 cmp r3, #2
  83439. 8021d0e: d9ed bls.n 8021cec <dhcp_select+0x118>
  83440. #if LWIP_NETIF_HOSTNAME
  83441. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  83442. #endif /* LWIP_NETIF_HOSTNAME */
  83443. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REQUESTING, msg_out, DHCP_REQUEST, &options_out_len);
  83444. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  83445. 8021d10: 89b8 ldrh r0, [r7, #12]
  83446. 8021d12: 693b ldr r3, [r7, #16]
  83447. 8021d14: 33f0 adds r3, #240 @ 0xf0
  83448. 8021d16: 697a ldr r2, [r7, #20]
  83449. 8021d18: 4619 mov r1, r3
  83450. 8021d1a: f001 fcc3 bl 80236a4 <dhcp_option_trailer>
  83451. /* send broadcast to any DHCP server */
  83452. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  83453. 8021d1e: 4b27 ldr r3, [pc, #156] @ (8021dbc <dhcp_select+0x1e8>)
  83454. 8021d20: 6818 ldr r0, [r3, #0]
  83455. 8021d22: 4b27 ldr r3, [pc, #156] @ (8021dc0 <dhcp_select+0x1ec>)
  83456. 8021d24: 9301 str r3, [sp, #4]
  83457. 8021d26: 687b ldr r3, [r7, #4]
  83458. 8021d28: 9300 str r3, [sp, #0]
  83459. 8021d2a: 2343 movs r3, #67 @ 0x43
  83460. 8021d2c: 4a25 ldr r2, [pc, #148] @ (8021dc4 <dhcp_select+0x1f0>)
  83461. 8021d2e: 6979 ldr r1, [r7, #20]
  83462. 8021d30: f7ff fb96 bl 8021460 <udp_sendto_if_src>
  83463. 8021d34: 4603 mov r3, r0
  83464. 8021d36: 77bb strb r3, [r7, #30]
  83465. pbuf_free(p_out);
  83466. 8021d38: 6978 ldr r0, [r7, #20]
  83467. 8021d3a: f7f8 fbd7 bl 801a4ec <pbuf_free>
  83468. 8021d3e: e001 b.n 8021d44 <dhcp_select+0x170>
  83469. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_select: REQUESTING\n"));
  83470. } else {
  83471. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_select: could not allocate DHCP request\n"));
  83472. result = ERR_MEM;
  83473. 8021d40: 23ff movs r3, #255 @ 0xff
  83474. 8021d42: 77bb strb r3, [r7, #30]
  83475. }
  83476. if (dhcp->tries < 255) {
  83477. 8021d44: 69bb ldr r3, [r7, #24]
  83478. 8021d46: 799b ldrb r3, [r3, #6]
  83479. 8021d48: 2bff cmp r3, #255 @ 0xff
  83480. 8021d4a: d005 beq.n 8021d58 <dhcp_select+0x184>
  83481. dhcp->tries++;
  83482. 8021d4c: 69bb ldr r3, [r7, #24]
  83483. 8021d4e: 799b ldrb r3, [r3, #6]
  83484. 8021d50: 3301 adds r3, #1
  83485. 8021d52: b2da uxtb r2, r3
  83486. 8021d54: 69bb ldr r3, [r7, #24]
  83487. 8021d56: 719a strb r2, [r3, #6]
  83488. }
  83489. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  83490. 8021d58: 69bb ldr r3, [r7, #24]
  83491. 8021d5a: 799b ldrb r3, [r3, #6]
  83492. 8021d5c: 2b05 cmp r3, #5
  83493. 8021d5e: d80d bhi.n 8021d7c <dhcp_select+0x1a8>
  83494. 8021d60: 69bb ldr r3, [r7, #24]
  83495. 8021d62: 799b ldrb r3, [r3, #6]
  83496. 8021d64: 461a mov r2, r3
  83497. 8021d66: 2301 movs r3, #1
  83498. 8021d68: 4093 lsls r3, r2
  83499. 8021d6a: b29b uxth r3, r3
  83500. 8021d6c: 461a mov r2, r3
  83501. 8021d6e: 0152 lsls r2, r2, #5
  83502. 8021d70: 1ad2 subs r2, r2, r3
  83503. 8021d72: 0092 lsls r2, r2, #2
  83504. 8021d74: 4413 add r3, r2
  83505. 8021d76: 00db lsls r3, r3, #3
  83506. 8021d78: b29b uxth r3, r3
  83507. 8021d7a: e001 b.n 8021d80 <dhcp_select+0x1ac>
  83508. 8021d7c: f64e 2360 movw r3, #60000 @ 0xea60
  83509. 8021d80: 81fb strh r3, [r7, #14]
  83510. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  83511. 8021d82: 89fb ldrh r3, [r7, #14]
  83512. 8021d84: f203 13f3 addw r3, r3, #499 @ 0x1f3
  83513. 8021d88: 4a0f ldr r2, [pc, #60] @ (8021dc8 <dhcp_select+0x1f4>)
  83514. 8021d8a: fb82 1203 smull r1, r2, r2, r3
  83515. 8021d8e: 1152 asrs r2, r2, #5
  83516. 8021d90: 17db asrs r3, r3, #31
  83517. 8021d92: 1ad3 subs r3, r2, r3
  83518. 8021d94: b29a uxth r2, r3
  83519. 8021d96: 69bb ldr r3, [r7, #24]
  83520. 8021d98: 811a strh r2, [r3, #8]
  83521. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs));
  83522. return result;
  83523. 8021d9a: f997 301e ldrsb.w r3, [r7, #30]
  83524. }
  83525. 8021d9e: 4618 mov r0, r3
  83526. 8021da0: 3720 adds r7, #32
  83527. 8021da2: 46bd mov sp, r7
  83528. 8021da4: bdb0 pop {r4, r5, r7, pc}
  83529. 8021da6: bf00 nop
  83530. 8021da8: 0802fe9c .word 0x0802fe9c
  83531. 8021dac: 0802ff48 .word 0x0802ff48
  83532. 8021db0: 0802fefc .word 0x0802fefc
  83533. 8021db4: 0802ff64 .word 0x0802ff64
  83534. 8021db8: 24000058 .word 0x24000058
  83535. 8021dbc: 2402af14 .word 0x2402af14
  83536. 8021dc0: 08030c68 .word 0x08030c68
  83537. 8021dc4: 08030c6c .word 0x08030c6c
  83538. 8021dc8: 10624dd3 .word 0x10624dd3
  83539. 08021dcc <dhcp_coarse_tmr>:
  83540. * The DHCP timer that checks for lease renewal/rebind timeouts.
  83541. * Must be called once a minute (see @ref DHCP_COARSE_TIMER_SECS).
  83542. */
  83543. void
  83544. dhcp_coarse_tmr(void)
  83545. {
  83546. 8021dcc: b580 push {r7, lr}
  83547. 8021dce: b082 sub sp, #8
  83548. 8021dd0: af00 add r7, sp, #0
  83549. struct netif *netif;
  83550. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n"));
  83551. /* iterate through all network interfaces */
  83552. NETIF_FOREACH(netif) {
  83553. 8021dd2: 4b27 ldr r3, [pc, #156] @ (8021e70 <dhcp_coarse_tmr+0xa4>)
  83554. 8021dd4: 681b ldr r3, [r3, #0]
  83555. 8021dd6: 607b str r3, [r7, #4]
  83556. 8021dd8: e042 b.n 8021e60 <dhcp_coarse_tmr+0x94>
  83557. /* only act on DHCP configured interfaces */
  83558. struct dhcp *dhcp = netif_dhcp_data(netif);
  83559. 8021dda: 687b ldr r3, [r7, #4]
  83560. 8021ddc: 6a5b ldr r3, [r3, #36] @ 0x24
  83561. 8021dde: 603b str r3, [r7, #0]
  83562. if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) {
  83563. 8021de0: 683b ldr r3, [r7, #0]
  83564. 8021de2: 2b00 cmp r3, #0
  83565. 8021de4: d039 beq.n 8021e5a <dhcp_coarse_tmr+0x8e>
  83566. 8021de6: 683b ldr r3, [r7, #0]
  83567. 8021de8: 795b ldrb r3, [r3, #5]
  83568. 8021dea: 2b00 cmp r3, #0
  83569. 8021dec: d035 beq.n 8021e5a <dhcp_coarse_tmr+0x8e>
  83570. /* compare lease time to expire timeout */
  83571. if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) {
  83572. 8021dee: 683b ldr r3, [r7, #0]
  83573. 8021df0: 8a9b ldrh r3, [r3, #20]
  83574. 8021df2: 2b00 cmp r3, #0
  83575. 8021df4: d012 beq.n 8021e1c <dhcp_coarse_tmr+0x50>
  83576. 8021df6: 683b ldr r3, [r7, #0]
  83577. 8021df8: 8a5b ldrh r3, [r3, #18]
  83578. 8021dfa: 3301 adds r3, #1
  83579. 8021dfc: b29a uxth r2, r3
  83580. 8021dfe: 683b ldr r3, [r7, #0]
  83581. 8021e00: 825a strh r2, [r3, #18]
  83582. 8021e02: 683b ldr r3, [r7, #0]
  83583. 8021e04: 8a5a ldrh r2, [r3, #18]
  83584. 8021e06: 683b ldr r3, [r7, #0]
  83585. 8021e08: 8a9b ldrh r3, [r3, #20]
  83586. 8021e0a: 429a cmp r2, r3
  83587. 8021e0c: d106 bne.n 8021e1c <dhcp_coarse_tmr+0x50>
  83588. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t0 timeout\n"));
  83589. /* this clients' lease time has expired */
  83590. dhcp_release_and_stop(netif);
  83591. 8021e0e: 6878 ldr r0, [r7, #4]
  83592. 8021e10: f000 fe32 bl 8022a78 <dhcp_release_and_stop>
  83593. dhcp_start(netif);
  83594. 8021e14: 6878 ldr r0, [r7, #4]
  83595. 8021e16: f000 f96b bl 80220f0 <dhcp_start>
  83596. 8021e1a: e01e b.n 8021e5a <dhcp_coarse_tmr+0x8e>
  83597. /* timer is active (non zero), and triggers (zeroes) now? */
  83598. } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) {
  83599. 8021e1c: 683b ldr r3, [r7, #0]
  83600. 8021e1e: 8a1b ldrh r3, [r3, #16]
  83601. 8021e20: 2b00 cmp r3, #0
  83602. 8021e22: d00b beq.n 8021e3c <dhcp_coarse_tmr+0x70>
  83603. 8021e24: 683b ldr r3, [r7, #0]
  83604. 8021e26: 8a1b ldrh r3, [r3, #16]
  83605. 8021e28: 1e5a subs r2, r3, #1
  83606. 8021e2a: b291 uxth r1, r2
  83607. 8021e2c: 683a ldr r2, [r7, #0]
  83608. 8021e2e: 8211 strh r1, [r2, #16]
  83609. 8021e30: 2b01 cmp r3, #1
  83610. 8021e32: d103 bne.n 8021e3c <dhcp_coarse_tmr+0x70>
  83611. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t2 timeout\n"));
  83612. /* this clients' rebind timeout triggered */
  83613. dhcp_t2_timeout(netif);
  83614. 8021e34: 6878 ldr r0, [r7, #4]
  83615. 8021e36: f000 f8c7 bl 8021fc8 <dhcp_t2_timeout>
  83616. 8021e3a: e00e b.n 8021e5a <dhcp_coarse_tmr+0x8e>
  83617. /* timer is active (non zero), and triggers (zeroes) now */
  83618. } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) {
  83619. 8021e3c: 683b ldr r3, [r7, #0]
  83620. 8021e3e: 89db ldrh r3, [r3, #14]
  83621. 8021e40: 2b00 cmp r3, #0
  83622. 8021e42: d00a beq.n 8021e5a <dhcp_coarse_tmr+0x8e>
  83623. 8021e44: 683b ldr r3, [r7, #0]
  83624. 8021e46: 89db ldrh r3, [r3, #14]
  83625. 8021e48: 1e5a subs r2, r3, #1
  83626. 8021e4a: b291 uxth r1, r2
  83627. 8021e4c: 683a ldr r2, [r7, #0]
  83628. 8021e4e: 81d1 strh r1, [r2, #14]
  83629. 8021e50: 2b01 cmp r3, #1
  83630. 8021e52: d102 bne.n 8021e5a <dhcp_coarse_tmr+0x8e>
  83631. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t1 timeout\n"));
  83632. /* this clients' renewal timeout triggered */
  83633. dhcp_t1_timeout(netif);
  83634. 8021e54: 6878 ldr r0, [r7, #4]
  83635. 8021e56: f000 f888 bl 8021f6a <dhcp_t1_timeout>
  83636. NETIF_FOREACH(netif) {
  83637. 8021e5a: 687b ldr r3, [r7, #4]
  83638. 8021e5c: 681b ldr r3, [r3, #0]
  83639. 8021e5e: 607b str r3, [r7, #4]
  83640. 8021e60: 687b ldr r3, [r7, #4]
  83641. 8021e62: 2b00 cmp r3, #0
  83642. 8021e64: d1b9 bne.n 8021dda <dhcp_coarse_tmr+0xe>
  83643. }
  83644. }
  83645. }
  83646. }
  83647. 8021e66: bf00 nop
  83648. 8021e68: bf00 nop
  83649. 8021e6a: 3708 adds r7, #8
  83650. 8021e6c: 46bd mov sp, r7
  83651. 8021e6e: bd80 pop {r7, pc}
  83652. 8021e70: 2402ae7c .word 0x2402ae7c
  83653. 08021e74 <dhcp_fine_tmr>:
  83654. * A DHCP server is expected to respond within a short period of time.
  83655. * This timer checks whether an outstanding DHCP request is timed out.
  83656. */
  83657. void
  83658. dhcp_fine_tmr(void)
  83659. {
  83660. 8021e74: b580 push {r7, lr}
  83661. 8021e76: b082 sub sp, #8
  83662. 8021e78: af00 add r7, sp, #0
  83663. struct netif *netif;
  83664. /* loop through netif's */
  83665. NETIF_FOREACH(netif) {
  83666. 8021e7a: 4b16 ldr r3, [pc, #88] @ (8021ed4 <dhcp_fine_tmr+0x60>)
  83667. 8021e7c: 681b ldr r3, [r3, #0]
  83668. 8021e7e: 607b str r3, [r7, #4]
  83669. 8021e80: e020 b.n 8021ec4 <dhcp_fine_tmr+0x50>
  83670. struct dhcp *dhcp = netif_dhcp_data(netif);
  83671. 8021e82: 687b ldr r3, [r7, #4]
  83672. 8021e84: 6a5b ldr r3, [r3, #36] @ 0x24
  83673. 8021e86: 603b str r3, [r7, #0]
  83674. /* only act on DHCP configured interfaces */
  83675. if (dhcp != NULL) {
  83676. 8021e88: 683b ldr r3, [r7, #0]
  83677. 8021e8a: 2b00 cmp r3, #0
  83678. 8021e8c: d017 beq.n 8021ebe <dhcp_fine_tmr+0x4a>
  83679. /* timer is active (non zero), and is about to trigger now */
  83680. if (dhcp->request_timeout > 1) {
  83681. 8021e8e: 683b ldr r3, [r7, #0]
  83682. 8021e90: 891b ldrh r3, [r3, #8]
  83683. 8021e92: 2b01 cmp r3, #1
  83684. 8021e94: d906 bls.n 8021ea4 <dhcp_fine_tmr+0x30>
  83685. dhcp->request_timeout--;
  83686. 8021e96: 683b ldr r3, [r7, #0]
  83687. 8021e98: 891b ldrh r3, [r3, #8]
  83688. 8021e9a: 3b01 subs r3, #1
  83689. 8021e9c: b29a uxth r2, r3
  83690. 8021e9e: 683b ldr r3, [r7, #0]
  83691. 8021ea0: 811a strh r2, [r3, #8]
  83692. 8021ea2: e00c b.n 8021ebe <dhcp_fine_tmr+0x4a>
  83693. } else if (dhcp->request_timeout == 1) {
  83694. 8021ea4: 683b ldr r3, [r7, #0]
  83695. 8021ea6: 891b ldrh r3, [r3, #8]
  83696. 8021ea8: 2b01 cmp r3, #1
  83697. 8021eaa: d108 bne.n 8021ebe <dhcp_fine_tmr+0x4a>
  83698. dhcp->request_timeout--;
  83699. 8021eac: 683b ldr r3, [r7, #0]
  83700. 8021eae: 891b ldrh r3, [r3, #8]
  83701. 8021eb0: 3b01 subs r3, #1
  83702. 8021eb2: b29a uxth r2, r3
  83703. 8021eb4: 683b ldr r3, [r7, #0]
  83704. 8021eb6: 811a strh r2, [r3, #8]
  83705. /* { dhcp->request_timeout == 0 } */
  83706. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_fine_tmr(): request timeout\n"));
  83707. /* this client's request timeout triggered */
  83708. dhcp_timeout(netif);
  83709. 8021eb8: 6878 ldr r0, [r7, #4]
  83710. 8021eba: f000 f80d bl 8021ed8 <dhcp_timeout>
  83711. NETIF_FOREACH(netif) {
  83712. 8021ebe: 687b ldr r3, [r7, #4]
  83713. 8021ec0: 681b ldr r3, [r3, #0]
  83714. 8021ec2: 607b str r3, [r7, #4]
  83715. 8021ec4: 687b ldr r3, [r7, #4]
  83716. 8021ec6: 2b00 cmp r3, #0
  83717. 8021ec8: d1db bne.n 8021e82 <dhcp_fine_tmr+0xe>
  83718. }
  83719. }
  83720. }
  83721. }
  83722. 8021eca: bf00 nop
  83723. 8021ecc: bf00 nop
  83724. 8021ece: 3708 adds r7, #8
  83725. 8021ed0: 46bd mov sp, r7
  83726. 8021ed2: bd80 pop {r7, pc}
  83727. 8021ed4: 2402ae7c .word 0x2402ae7c
  83728. 08021ed8 <dhcp_timeout>:
  83729. *
  83730. * @param netif the netif under DHCP control
  83731. */
  83732. static void
  83733. dhcp_timeout(struct netif *netif)
  83734. {
  83735. 8021ed8: b580 push {r7, lr}
  83736. 8021eda: b084 sub sp, #16
  83737. 8021edc: af00 add r7, sp, #0
  83738. 8021ede: 6078 str r0, [r7, #4]
  83739. struct dhcp *dhcp = netif_dhcp_data(netif);
  83740. 8021ee0: 687b ldr r3, [r7, #4]
  83741. 8021ee2: 6a5b ldr r3, [r3, #36] @ 0x24
  83742. 8021ee4: 60fb str r3, [r7, #12]
  83743. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout()\n"));
  83744. /* back-off period has passed, or server selection timed out */
  83745. if ((dhcp->state == DHCP_STATE_BACKING_OFF) || (dhcp->state == DHCP_STATE_SELECTING)) {
  83746. 8021ee6: 68fb ldr r3, [r7, #12]
  83747. 8021ee8: 795b ldrb r3, [r3, #5]
  83748. 8021eea: 2b0c cmp r3, #12
  83749. 8021eec: d003 beq.n 8021ef6 <dhcp_timeout+0x1e>
  83750. 8021eee: 68fb ldr r3, [r7, #12]
  83751. 8021ef0: 795b ldrb r3, [r3, #5]
  83752. 8021ef2: 2b06 cmp r3, #6
  83753. 8021ef4: d103 bne.n 8021efe <dhcp_timeout+0x26>
  83754. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n"));
  83755. dhcp_discover(netif);
  83756. 8021ef6: 6878 ldr r0, [r7, #4]
  83757. 8021ef8: f000 fa58 bl 80223ac <dhcp_discover>
  83758. dhcp_reboot(netif);
  83759. } else {
  83760. dhcp_discover(netif);
  83761. }
  83762. }
  83763. }
  83764. 8021efc: e031 b.n 8021f62 <dhcp_timeout+0x8a>
  83765. } else if (dhcp->state == DHCP_STATE_REQUESTING) {
  83766. 8021efe: 68fb ldr r3, [r7, #12]
  83767. 8021f00: 795b ldrb r3, [r3, #5]
  83768. 8021f02: 2b01 cmp r3, #1
  83769. 8021f04: d10e bne.n 8021f24 <dhcp_timeout+0x4c>
  83770. if (dhcp->tries <= 5) {
  83771. 8021f06: 68fb ldr r3, [r7, #12]
  83772. 8021f08: 799b ldrb r3, [r3, #6]
  83773. 8021f0a: 2b05 cmp r3, #5
  83774. 8021f0c: d803 bhi.n 8021f16 <dhcp_timeout+0x3e>
  83775. dhcp_select(netif);
  83776. 8021f0e: 6878 ldr r0, [r7, #4]
  83777. 8021f10: f7ff fe60 bl 8021bd4 <dhcp_select>
  83778. }
  83779. 8021f14: e025 b.n 8021f62 <dhcp_timeout+0x8a>
  83780. dhcp_release_and_stop(netif);
  83781. 8021f16: 6878 ldr r0, [r7, #4]
  83782. 8021f18: f000 fdae bl 8022a78 <dhcp_release_and_stop>
  83783. dhcp_start(netif);
  83784. 8021f1c: 6878 ldr r0, [r7, #4]
  83785. 8021f1e: f000 f8e7 bl 80220f0 <dhcp_start>
  83786. }
  83787. 8021f22: e01e b.n 8021f62 <dhcp_timeout+0x8a>
  83788. } else if (dhcp->state == DHCP_STATE_CHECKING) {
  83789. 8021f24: 68fb ldr r3, [r7, #12]
  83790. 8021f26: 795b ldrb r3, [r3, #5]
  83791. 8021f28: 2b08 cmp r3, #8
  83792. 8021f2a: d10b bne.n 8021f44 <dhcp_timeout+0x6c>
  83793. if (dhcp->tries <= 1) {
  83794. 8021f2c: 68fb ldr r3, [r7, #12]
  83795. 8021f2e: 799b ldrb r3, [r3, #6]
  83796. 8021f30: 2b01 cmp r3, #1
  83797. 8021f32: d803 bhi.n 8021f3c <dhcp_timeout+0x64>
  83798. dhcp_check(netif);
  83799. 8021f34: 6878 ldr r0, [r7, #4]
  83800. 8021f36: f7ff fdf3 bl 8021b20 <dhcp_check>
  83801. }
  83802. 8021f3a: e012 b.n 8021f62 <dhcp_timeout+0x8a>
  83803. dhcp_bind(netif);
  83804. 8021f3c: 6878 ldr r0, [r7, #4]
  83805. 8021f3e: f000 fad7 bl 80224f0 <dhcp_bind>
  83806. }
  83807. 8021f42: e00e b.n 8021f62 <dhcp_timeout+0x8a>
  83808. } else if (dhcp->state == DHCP_STATE_REBOOTING) {
  83809. 8021f44: 68fb ldr r3, [r7, #12]
  83810. 8021f46: 795b ldrb r3, [r3, #5]
  83811. 8021f48: 2b03 cmp r3, #3
  83812. 8021f4a: d10a bne.n 8021f62 <dhcp_timeout+0x8a>
  83813. if (dhcp->tries < REBOOT_TRIES) {
  83814. 8021f4c: 68fb ldr r3, [r7, #12]
  83815. 8021f4e: 799b ldrb r3, [r3, #6]
  83816. 8021f50: 2b01 cmp r3, #1
  83817. 8021f52: d803 bhi.n 8021f5c <dhcp_timeout+0x84>
  83818. dhcp_reboot(netif);
  83819. 8021f54: 6878 ldr r0, [r7, #4]
  83820. 8021f56: f000 fcdb bl 8022910 <dhcp_reboot>
  83821. }
  83822. 8021f5a: e002 b.n 8021f62 <dhcp_timeout+0x8a>
  83823. dhcp_discover(netif);
  83824. 8021f5c: 6878 ldr r0, [r7, #4]
  83825. 8021f5e: f000 fa25 bl 80223ac <dhcp_discover>
  83826. }
  83827. 8021f62: bf00 nop
  83828. 8021f64: 3710 adds r7, #16
  83829. 8021f66: 46bd mov sp, r7
  83830. 8021f68: bd80 pop {r7, pc}
  83831. 08021f6a <dhcp_t1_timeout>:
  83832. *
  83833. * @param netif the netif under DHCP control
  83834. */
  83835. static void
  83836. dhcp_t1_timeout(struct netif *netif)
  83837. {
  83838. 8021f6a: b580 push {r7, lr}
  83839. 8021f6c: b084 sub sp, #16
  83840. 8021f6e: af00 add r7, sp, #0
  83841. 8021f70: 6078 str r0, [r7, #4]
  83842. struct dhcp *dhcp = netif_dhcp_data(netif);
  83843. 8021f72: 687b ldr r3, [r7, #4]
  83844. 8021f74: 6a5b ldr r3, [r3, #36] @ 0x24
  83845. 8021f76: 60fb str r3, [r7, #12]
  83846. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n"));
  83847. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  83848. 8021f78: 68fb ldr r3, [r7, #12]
  83849. 8021f7a: 795b ldrb r3, [r3, #5]
  83850. 8021f7c: 2b01 cmp r3, #1
  83851. 8021f7e: d007 beq.n 8021f90 <dhcp_t1_timeout+0x26>
  83852. 8021f80: 68fb ldr r3, [r7, #12]
  83853. 8021f82: 795b ldrb r3, [r3, #5]
  83854. 8021f84: 2b0a cmp r3, #10
  83855. 8021f86: d003 beq.n 8021f90 <dhcp_t1_timeout+0x26>
  83856. (dhcp->state == DHCP_STATE_RENEWING)) {
  83857. 8021f88: 68fb ldr r3, [r7, #12]
  83858. 8021f8a: 795b ldrb r3, [r3, #5]
  83859. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  83860. 8021f8c: 2b05 cmp r3, #5
  83861. 8021f8e: d117 bne.n 8021fc0 <dhcp_t1_timeout+0x56>
  83862. * eventually time-out if renew tries fail. */
  83863. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  83864. ("dhcp_t1_timeout(): must renew\n"));
  83865. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  83866. DHCP_STATE_RENEWING, not DHCP_STATE_BOUND */
  83867. dhcp_renew(netif);
  83868. 8021f90: 6878 ldr r0, [r7, #4]
  83869. 8021f92: f000 fb87 bl 80226a4 <dhcp_renew>
  83870. /* Calculate next timeout */
  83871. if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  83872. 8021f96: 68fb ldr r3, [r7, #12]
  83873. 8021f98: 899b ldrh r3, [r3, #12]
  83874. 8021f9a: 461a mov r2, r3
  83875. 8021f9c: 68fb ldr r3, [r7, #12]
  83876. 8021f9e: 8a5b ldrh r3, [r3, #18]
  83877. 8021fa0: 1ad3 subs r3, r2, r3
  83878. 8021fa2: 2b01 cmp r3, #1
  83879. 8021fa4: dd0c ble.n 8021fc0 <dhcp_t1_timeout+0x56>
  83880. dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2);
  83881. 8021fa6: 68fb ldr r3, [r7, #12]
  83882. 8021fa8: 899b ldrh r3, [r3, #12]
  83883. 8021faa: 461a mov r2, r3
  83884. 8021fac: 68fb ldr r3, [r7, #12]
  83885. 8021fae: 8a5b ldrh r3, [r3, #18]
  83886. 8021fb0: 1ad3 subs r3, r2, r3
  83887. 8021fb2: 2b00 cmp r3, #0
  83888. 8021fb4: da00 bge.n 8021fb8 <dhcp_t1_timeout+0x4e>
  83889. 8021fb6: 3301 adds r3, #1
  83890. 8021fb8: 105b asrs r3, r3, #1
  83891. 8021fba: b29a uxth r2, r3
  83892. 8021fbc: 68fb ldr r3, [r7, #12]
  83893. 8021fbe: 81da strh r2, [r3, #14]
  83894. }
  83895. }
  83896. }
  83897. 8021fc0: bf00 nop
  83898. 8021fc2: 3710 adds r7, #16
  83899. 8021fc4: 46bd mov sp, r7
  83900. 8021fc6: bd80 pop {r7, pc}
  83901. 08021fc8 <dhcp_t2_timeout>:
  83902. *
  83903. * @param netif the netif under DHCP control
  83904. */
  83905. static void
  83906. dhcp_t2_timeout(struct netif *netif)
  83907. {
  83908. 8021fc8: b580 push {r7, lr}
  83909. 8021fca: b084 sub sp, #16
  83910. 8021fcc: af00 add r7, sp, #0
  83911. 8021fce: 6078 str r0, [r7, #4]
  83912. struct dhcp *dhcp = netif_dhcp_data(netif);
  83913. 8021fd0: 687b ldr r3, [r7, #4]
  83914. 8021fd2: 6a5b ldr r3, [r3, #36] @ 0x24
  83915. 8021fd4: 60fb str r3, [r7, #12]
  83916. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout()\n"));
  83917. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  83918. 8021fd6: 68fb ldr r3, [r7, #12]
  83919. 8021fd8: 795b ldrb r3, [r3, #5]
  83920. 8021fda: 2b01 cmp r3, #1
  83921. 8021fdc: d00b beq.n 8021ff6 <dhcp_t2_timeout+0x2e>
  83922. 8021fde: 68fb ldr r3, [r7, #12]
  83923. 8021fe0: 795b ldrb r3, [r3, #5]
  83924. 8021fe2: 2b0a cmp r3, #10
  83925. 8021fe4: d007 beq.n 8021ff6 <dhcp_t2_timeout+0x2e>
  83926. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  83927. 8021fe6: 68fb ldr r3, [r7, #12]
  83928. 8021fe8: 795b ldrb r3, [r3, #5]
  83929. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  83930. 8021fea: 2b05 cmp r3, #5
  83931. 8021fec: d003 beq.n 8021ff6 <dhcp_t2_timeout+0x2e>
  83932. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  83933. 8021fee: 68fb ldr r3, [r7, #12]
  83934. 8021ff0: 795b ldrb r3, [r3, #5]
  83935. 8021ff2: 2b04 cmp r3, #4
  83936. 8021ff4: d117 bne.n 8022026 <dhcp_t2_timeout+0x5e>
  83937. /* just retry to rebind */
  83938. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  83939. ("dhcp_t2_timeout(): must rebind\n"));
  83940. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  83941. DHCP_STATE_REBINDING, not DHCP_STATE_BOUND */
  83942. dhcp_rebind(netif);
  83943. 8021ff6: 6878 ldr r0, [r7, #4]
  83944. 8021ff8: f000 fbf0 bl 80227dc <dhcp_rebind>
  83945. /* Calculate next timeout */
  83946. if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  83947. 8021ffc: 68fb ldr r3, [r7, #12]
  83948. 8021ffe: 8a9b ldrh r3, [r3, #20]
  83949. 8022000: 461a mov r2, r3
  83950. 8022002: 68fb ldr r3, [r7, #12]
  83951. 8022004: 8a5b ldrh r3, [r3, #18]
  83952. 8022006: 1ad3 subs r3, r2, r3
  83953. 8022008: 2b01 cmp r3, #1
  83954. 802200a: dd0c ble.n 8022026 <dhcp_t2_timeout+0x5e>
  83955. dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2);
  83956. 802200c: 68fb ldr r3, [r7, #12]
  83957. 802200e: 8a9b ldrh r3, [r3, #20]
  83958. 8022010: 461a mov r2, r3
  83959. 8022012: 68fb ldr r3, [r7, #12]
  83960. 8022014: 8a5b ldrh r3, [r3, #18]
  83961. 8022016: 1ad3 subs r3, r2, r3
  83962. 8022018: 2b00 cmp r3, #0
  83963. 802201a: da00 bge.n 802201e <dhcp_t2_timeout+0x56>
  83964. 802201c: 3301 adds r3, #1
  83965. 802201e: 105b asrs r3, r3, #1
  83966. 8022020: b29a uxth r2, r3
  83967. 8022022: 68fb ldr r3, [r7, #12]
  83968. 8022024: 821a strh r2, [r3, #16]
  83969. }
  83970. }
  83971. }
  83972. 8022026: bf00 nop
  83973. 8022028: 3710 adds r7, #16
  83974. 802202a: 46bd mov sp, r7
  83975. 802202c: bd80 pop {r7, pc}
  83976. ...
  83977. 08022030 <dhcp_handle_ack>:
  83978. *
  83979. * @param netif the netif under DHCP control
  83980. */
  83981. static void
  83982. dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in)
  83983. {
  83984. 8022030: b580 push {r7, lr}
  83985. 8022032: b084 sub sp, #16
  83986. 8022034: af00 add r7, sp, #0
  83987. 8022036: 6078 str r0, [r7, #4]
  83988. 8022038: 6039 str r1, [r7, #0]
  83989. struct dhcp *dhcp = netif_dhcp_data(netif);
  83990. 802203a: 687b ldr r3, [r7, #4]
  83991. 802203c: 6a5b ldr r3, [r3, #36] @ 0x24
  83992. 802203e: 60fb str r3, [r7, #12]
  83993. #if LWIP_DHCP_GET_NTP_SRV
  83994. ip4_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS];
  83995. #endif
  83996. /* clear options we might not get from the ACK */
  83997. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  83998. 8022040: 68fb ldr r3, [r7, #12]
  83999. 8022042: 2200 movs r2, #0
  84000. 8022044: 621a str r2, [r3, #32]
  84001. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  84002. 8022046: 68fb ldr r3, [r7, #12]
  84003. 8022048: 2200 movs r2, #0
  84004. 802204a: 625a str r2, [r3, #36] @ 0x24
  84005. #if LWIP_DHCP_BOOTP_FILE
  84006. ip4_addr_set_zero(&dhcp->offered_si_addr);
  84007. #endif /* LWIP_DHCP_BOOTP_FILE */
  84008. /* lease time given? */
  84009. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_LEASE_TIME)) {
  84010. 802204c: 4b26 ldr r3, [pc, #152] @ (80220e8 <dhcp_handle_ack+0xb8>)
  84011. 802204e: 78db ldrb r3, [r3, #3]
  84012. 8022050: 2b00 cmp r3, #0
  84013. 8022052: d003 beq.n 802205c <dhcp_handle_ack+0x2c>
  84014. /* remember offered lease time */
  84015. dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME);
  84016. 8022054: 4b25 ldr r3, [pc, #148] @ (80220ec <dhcp_handle_ack+0xbc>)
  84017. 8022056: 68da ldr r2, [r3, #12]
  84018. 8022058: 68fb ldr r3, [r7, #12]
  84019. 802205a: 629a str r2, [r3, #40] @ 0x28
  84020. }
  84021. /* renewal period given? */
  84022. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) {
  84023. 802205c: 4b22 ldr r3, [pc, #136] @ (80220e8 <dhcp_handle_ack+0xb8>)
  84024. 802205e: 791b ldrb r3, [r3, #4]
  84025. 8022060: 2b00 cmp r3, #0
  84026. 8022062: d004 beq.n 802206e <dhcp_handle_ack+0x3e>
  84027. /* remember given renewal period */
  84028. dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1);
  84029. 8022064: 4b21 ldr r3, [pc, #132] @ (80220ec <dhcp_handle_ack+0xbc>)
  84030. 8022066: 691a ldr r2, [r3, #16]
  84031. 8022068: 68fb ldr r3, [r7, #12]
  84032. 802206a: 62da str r2, [r3, #44] @ 0x2c
  84033. 802206c: e004 b.n 8022078 <dhcp_handle_ack+0x48>
  84034. } else {
  84035. /* calculate safe periods for renewal */
  84036. dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2;
  84037. 802206e: 68fb ldr r3, [r7, #12]
  84038. 8022070: 6a9b ldr r3, [r3, #40] @ 0x28
  84039. 8022072: 085a lsrs r2, r3, #1
  84040. 8022074: 68fb ldr r3, [r7, #12]
  84041. 8022076: 62da str r2, [r3, #44] @ 0x2c
  84042. }
  84043. /* renewal period given? */
  84044. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) {
  84045. 8022078: 4b1b ldr r3, [pc, #108] @ (80220e8 <dhcp_handle_ack+0xb8>)
  84046. 802207a: 795b ldrb r3, [r3, #5]
  84047. 802207c: 2b00 cmp r3, #0
  84048. 802207e: d004 beq.n 802208a <dhcp_handle_ack+0x5a>
  84049. /* remember given rebind period */
  84050. dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2);
  84051. 8022080: 4b1a ldr r3, [pc, #104] @ (80220ec <dhcp_handle_ack+0xbc>)
  84052. 8022082: 695a ldr r2, [r3, #20]
  84053. 8022084: 68fb ldr r3, [r7, #12]
  84054. 8022086: 631a str r2, [r3, #48] @ 0x30
  84055. 8022088: e007 b.n 802209a <dhcp_handle_ack+0x6a>
  84056. } else {
  84057. /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/
  84058. dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U;
  84059. 802208a: 68fb ldr r3, [r7, #12]
  84060. 802208c: 6a9a ldr r2, [r3, #40] @ 0x28
  84061. 802208e: 4613 mov r3, r2
  84062. 8022090: 00db lsls r3, r3, #3
  84063. 8022092: 1a9b subs r3, r3, r2
  84064. 8022094: 08da lsrs r2, r3, #3
  84065. 8022096: 68fb ldr r3, [r7, #12]
  84066. 8022098: 631a str r2, [r3, #48] @ 0x30
  84067. }
  84068. /* (y)our internet address */
  84069. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  84070. 802209a: 683b ldr r3, [r7, #0]
  84071. 802209c: 691a ldr r2, [r3, #16]
  84072. 802209e: 68fb ldr r3, [r7, #12]
  84073. 80220a0: 61da str r2, [r3, #28]
  84074. boot file name copied in dhcp_parse_reply if not overloaded */
  84075. ip4_addr_copy(dhcp->offered_si_addr, msg_in->siaddr);
  84076. #endif /* LWIP_DHCP_BOOTP_FILE */
  84077. /* subnet mask given? */
  84078. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)) {
  84079. 80220a2: 4b11 ldr r3, [pc, #68] @ (80220e8 <dhcp_handle_ack+0xb8>)
  84080. 80220a4: 799b ldrb r3, [r3, #6]
  84081. 80220a6: 2b00 cmp r3, #0
  84082. 80220a8: d00b beq.n 80220c2 <dhcp_handle_ack+0x92>
  84083. /* remember given subnet mask */
  84084. ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)));
  84085. 80220aa: 4b10 ldr r3, [pc, #64] @ (80220ec <dhcp_handle_ack+0xbc>)
  84086. 80220ac: 699b ldr r3, [r3, #24]
  84087. 80220ae: 4618 mov r0, r3
  84088. 80220b0: f7f6 fd4f bl 8018b52 <lwip_htonl>
  84089. 80220b4: 4602 mov r2, r0
  84090. 80220b6: 68fb ldr r3, [r7, #12]
  84091. 80220b8: 621a str r2, [r3, #32]
  84092. dhcp->subnet_mask_given = 1;
  84093. 80220ba: 68fb ldr r3, [r7, #12]
  84094. 80220bc: 2201 movs r2, #1
  84095. 80220be: 71da strb r2, [r3, #7]
  84096. 80220c0: e002 b.n 80220c8 <dhcp_handle_ack+0x98>
  84097. } else {
  84098. dhcp->subnet_mask_given = 0;
  84099. 80220c2: 68fb ldr r3, [r7, #12]
  84100. 80220c4: 2200 movs r2, #0
  84101. 80220c6: 71da strb r2, [r3, #7]
  84102. }
  84103. /* gateway router */
  84104. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) {
  84105. 80220c8: 4b07 ldr r3, [pc, #28] @ (80220e8 <dhcp_handle_ack+0xb8>)
  84106. 80220ca: 79db ldrb r3, [r3, #7]
  84107. 80220cc: 2b00 cmp r3, #0
  84108. 80220ce: d007 beq.n 80220e0 <dhcp_handle_ack+0xb0>
  84109. ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER)));
  84110. 80220d0: 4b06 ldr r3, [pc, #24] @ (80220ec <dhcp_handle_ack+0xbc>)
  84111. 80220d2: 69db ldr r3, [r3, #28]
  84112. 80220d4: 4618 mov r0, r3
  84113. 80220d6: f7f6 fd3c bl 8018b52 <lwip_htonl>
  84114. 80220da: 4602 mov r2, r0
  84115. 80220dc: 68fb ldr r3, [r7, #12]
  84116. 80220de: 625a str r2, [r3, #36] @ 0x24
  84117. ip_addr_t dns_addr;
  84118. ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n)));
  84119. dns_setserver(n, &dns_addr);
  84120. }
  84121. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  84122. }
  84123. 80220e0: bf00 nop
  84124. 80220e2: 3710 adds r7, #16
  84125. 80220e4: 46bd mov sp, r7
  84126. 80220e6: bd80 pop {r7, pc}
  84127. 80220e8: 2402af0c .word 0x2402af0c
  84128. 80220ec: 2402aeec .word 0x2402aeec
  84129. 080220f0 <dhcp_start>:
  84130. * - ERR_OK - No error
  84131. * - ERR_MEM - Out of memory
  84132. */
  84133. err_t
  84134. dhcp_start(struct netif *netif)
  84135. {
  84136. 80220f0: b580 push {r7, lr}
  84137. 80220f2: b084 sub sp, #16
  84138. 80220f4: af00 add r7, sp, #0
  84139. 80220f6: 6078 str r0, [r7, #4]
  84140. struct dhcp *dhcp;
  84141. err_t result;
  84142. LWIP_ASSERT_CORE_LOCKED();
  84143. 80220f8: f7ee fa24 bl 8010544 <sys_check_core_locking>
  84144. LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;);
  84145. 80220fc: 687b ldr r3, [r7, #4]
  84146. 80220fe: 2b00 cmp r3, #0
  84147. 8022100: d109 bne.n 8022116 <dhcp_start+0x26>
  84148. 8022102: 4b37 ldr r3, [pc, #220] @ (80221e0 <dhcp_start+0xf0>)
  84149. 8022104: f240 22e7 movw r2, #743 @ 0x2e7
  84150. 8022108: 4936 ldr r1, [pc, #216] @ (80221e4 <dhcp_start+0xf4>)
  84151. 802210a: 4837 ldr r0, [pc, #220] @ (80221e8 <dhcp_start+0xf8>)
  84152. 802210c: f007 fc66 bl 80299dc <iprintf>
  84153. 8022110: f06f 030f mvn.w r3, #15
  84154. 8022114: e060 b.n 80221d8 <dhcp_start+0xe8>
  84155. LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;);
  84156. 8022116: 687b ldr r3, [r7, #4]
  84157. 8022118: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  84158. 802211c: f003 0301 and.w r3, r3, #1
  84159. 8022120: 2b00 cmp r3, #0
  84160. 8022122: d109 bne.n 8022138 <dhcp_start+0x48>
  84161. 8022124: 4b2e ldr r3, [pc, #184] @ (80221e0 <dhcp_start+0xf0>)
  84162. 8022126: f44f 723a mov.w r2, #744 @ 0x2e8
  84163. 802212a: 4930 ldr r1, [pc, #192] @ (80221ec <dhcp_start+0xfc>)
  84164. 802212c: 482e ldr r0, [pc, #184] @ (80221e8 <dhcp_start+0xf8>)
  84165. 802212e: f007 fc55 bl 80299dc <iprintf>
  84166. 8022132: f06f 030f mvn.w r3, #15
  84167. 8022136: e04f b.n 80221d8 <dhcp_start+0xe8>
  84168. dhcp = netif_dhcp_data(netif);
  84169. 8022138: 687b ldr r3, [r7, #4]
  84170. 802213a: 6a5b ldr r3, [r3, #36] @ 0x24
  84171. 802213c: 60fb str r3, [r7, #12]
  84172. 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));
  84173. /* check MTU of the netif */
  84174. if (netif->mtu < DHCP_MAX_MSG_LEN_MIN_REQUIRED) {
  84175. 802213e: 687b ldr r3, [r7, #4]
  84176. 8022140: 8d1b ldrh r3, [r3, #40] @ 0x28
  84177. 8022142: f5b3 7f10 cmp.w r3, #576 @ 0x240
  84178. 8022146: d202 bcs.n 802214e <dhcp_start+0x5e>
  84179. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n"));
  84180. return ERR_MEM;
  84181. 8022148: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84182. 802214c: e044 b.n 80221d8 <dhcp_start+0xe8>
  84183. }
  84184. /* no DHCP client attached yet? */
  84185. if (dhcp == NULL) {
  84186. 802214e: 68fb ldr r3, [r7, #12]
  84187. 8022150: 2b00 cmp r3, #0
  84188. 8022152: d10d bne.n 8022170 <dhcp_start+0x80>
  84189. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n"));
  84190. dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp));
  84191. 8022154: 2034 movs r0, #52 @ 0x34
  84192. 8022156: f7f7 f8c9 bl 80192ec <mem_malloc>
  84193. 802215a: 60f8 str r0, [r7, #12]
  84194. if (dhcp == NULL) {
  84195. 802215c: 68fb ldr r3, [r7, #12]
  84196. 802215e: 2b00 cmp r3, #0
  84197. 8022160: d102 bne.n 8022168 <dhcp_start+0x78>
  84198. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n"));
  84199. return ERR_MEM;
  84200. 8022162: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84201. 8022166: e037 b.n 80221d8 <dhcp_start+0xe8>
  84202. }
  84203. /* store this dhcp client in the netif */
  84204. netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp);
  84205. 8022168: 687b ldr r3, [r7, #4]
  84206. 802216a: 68fa ldr r2, [r7, #12]
  84207. 802216c: 625a str r2, [r3, #36] @ 0x24
  84208. 802216e: e005 b.n 802217c <dhcp_start+0x8c>
  84209. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp"));
  84210. /* already has DHCP client attached */
  84211. } else {
  84212. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(): restarting DHCP configuration\n"));
  84213. if (dhcp->pcb_allocated != 0) {
  84214. 8022170: 68fb ldr r3, [r7, #12]
  84215. 8022172: 791b ldrb r3, [r3, #4]
  84216. 8022174: 2b00 cmp r3, #0
  84217. 8022176: d001 beq.n 802217c <dhcp_start+0x8c>
  84218. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  84219. 8022178: f7ff fc8e bl 8021a98 <dhcp_dec_pcb_refcount>
  84220. }
  84221. /* dhcp is cleared below, no need to reset flag*/
  84222. }
  84223. /* clear data structure */
  84224. memset(dhcp, 0, sizeof(struct dhcp));
  84225. 802217c: 2234 movs r2, #52 @ 0x34
  84226. 802217e: 2100 movs r1, #0
  84227. 8022180: 68f8 ldr r0, [r7, #12]
  84228. 8022182: f007 fdbd bl 8029d00 <memset>
  84229. /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */
  84230. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): starting DHCP configuration\n"));
  84231. if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */
  84232. 8022186: f7ff fc35 bl 80219f4 <dhcp_inc_pcb_refcount>
  84233. 802218a: 4603 mov r3, r0
  84234. 802218c: 2b00 cmp r3, #0
  84235. 802218e: d002 beq.n 8022196 <dhcp_start+0xa6>
  84236. return ERR_MEM;
  84237. 8022190: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84238. 8022194: e020 b.n 80221d8 <dhcp_start+0xe8>
  84239. }
  84240. dhcp->pcb_allocated = 1;
  84241. 8022196: 68fb ldr r3, [r7, #12]
  84242. 8022198: 2201 movs r2, #1
  84243. 802219a: 711a strb r2, [r3, #4]
  84244. if (!netif_is_link_up(netif)) {
  84245. 802219c: 687b ldr r3, [r7, #4]
  84246. 802219e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  84247. 80221a2: f003 0304 and.w r3, r3, #4
  84248. 80221a6: 2b00 cmp r3, #0
  84249. 80221a8: d105 bne.n 80221b6 <dhcp_start+0xc6>
  84250. /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
  84251. dhcp_set_state(dhcp, DHCP_STATE_INIT);
  84252. 80221aa: 2102 movs r1, #2
  84253. 80221ac: 68f8 ldr r0, [r7, #12]
  84254. 80221ae: f000 fd0a bl 8022bc6 <dhcp_set_state>
  84255. return ERR_OK;
  84256. 80221b2: 2300 movs r3, #0
  84257. 80221b4: e010 b.n 80221d8 <dhcp_start+0xe8>
  84258. }
  84259. /* (re)start the DHCP negotiation */
  84260. result = dhcp_discover(netif);
  84261. 80221b6: 6878 ldr r0, [r7, #4]
  84262. 80221b8: f000 f8f8 bl 80223ac <dhcp_discover>
  84263. 80221bc: 4603 mov r3, r0
  84264. 80221be: 72fb strb r3, [r7, #11]
  84265. if (result != ERR_OK) {
  84266. 80221c0: f997 300b ldrsb.w r3, [r7, #11]
  84267. 80221c4: 2b00 cmp r3, #0
  84268. 80221c6: d005 beq.n 80221d4 <dhcp_start+0xe4>
  84269. /* free resources allocated above */
  84270. dhcp_release_and_stop(netif);
  84271. 80221c8: 6878 ldr r0, [r7, #4]
  84272. 80221ca: f000 fc55 bl 8022a78 <dhcp_release_and_stop>
  84273. return ERR_MEM;
  84274. 80221ce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84275. 80221d2: e001 b.n 80221d8 <dhcp_start+0xe8>
  84276. }
  84277. return result;
  84278. 80221d4: f997 300b ldrsb.w r3, [r7, #11]
  84279. }
  84280. 80221d8: 4618 mov r0, r3
  84281. 80221da: 3710 adds r7, #16
  84282. 80221dc: 46bd mov sp, r7
  84283. 80221de: bd80 pop {r7, pc}
  84284. 80221e0: 0802fe9c .word 0x0802fe9c
  84285. 80221e4: 0802ff80 .word 0x0802ff80
  84286. 80221e8: 0802fefc .word 0x0802fefc
  84287. 80221ec: 0802ffc4 .word 0x0802ffc4
  84288. 080221f0 <dhcp_network_changed>:
  84289. * This enters the REBOOTING state to verify that the currently bound
  84290. * address is still valid.
  84291. */
  84292. void
  84293. dhcp_network_changed(struct netif *netif)
  84294. {
  84295. 80221f0: b580 push {r7, lr}
  84296. 80221f2: b084 sub sp, #16
  84297. 80221f4: af00 add r7, sp, #0
  84298. 80221f6: 6078 str r0, [r7, #4]
  84299. struct dhcp *dhcp = netif_dhcp_data(netif);
  84300. 80221f8: 687b ldr r3, [r7, #4]
  84301. 80221fa: 6a5b ldr r3, [r3, #36] @ 0x24
  84302. 80221fc: 60fb str r3, [r7, #12]
  84303. if (!dhcp) {
  84304. 80221fe: 68fb ldr r3, [r7, #12]
  84305. 8022200: 2b00 cmp r3, #0
  84306. 8022202: d025 beq.n 8022250 <dhcp_network_changed+0x60>
  84307. return;
  84308. }
  84309. switch (dhcp->state) {
  84310. 8022204: 68fb ldr r3, [r7, #12]
  84311. 8022206: 795b ldrb r3, [r3, #5]
  84312. 8022208: 2b0a cmp r3, #10
  84313. 802220a: d008 beq.n 802221e <dhcp_network_changed+0x2e>
  84314. 802220c: 2b0a cmp r3, #10
  84315. 802220e: dc0d bgt.n 802222c <dhcp_network_changed+0x3c>
  84316. 8022210: 2b00 cmp r3, #0
  84317. 8022212: d01f beq.n 8022254 <dhcp_network_changed+0x64>
  84318. 8022214: 2b00 cmp r3, #0
  84319. 8022216: db09 blt.n 802222c <dhcp_network_changed+0x3c>
  84320. 8022218: 3b03 subs r3, #3
  84321. 802221a: 2b02 cmp r3, #2
  84322. 802221c: d806 bhi.n 802222c <dhcp_network_changed+0x3c>
  84323. case DHCP_STATE_REBINDING:
  84324. case DHCP_STATE_RENEWING:
  84325. case DHCP_STATE_BOUND:
  84326. case DHCP_STATE_REBOOTING:
  84327. dhcp->tries = 0;
  84328. 802221e: 68fb ldr r3, [r7, #12]
  84329. 8022220: 2200 movs r2, #0
  84330. 8022222: 719a strb r2, [r3, #6]
  84331. dhcp_reboot(netif);
  84332. 8022224: 6878 ldr r0, [r7, #4]
  84333. 8022226: f000 fb73 bl 8022910 <dhcp_reboot>
  84334. break;
  84335. 802222a: e014 b.n 8022256 <dhcp_network_changed+0x66>
  84336. case DHCP_STATE_OFF:
  84337. /* stay off */
  84338. break;
  84339. default:
  84340. LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF);
  84341. 802222c: 68fb ldr r3, [r7, #12]
  84342. 802222e: 795b ldrb r3, [r3, #5]
  84343. 8022230: 2b0c cmp r3, #12
  84344. 8022232: d906 bls.n 8022242 <dhcp_network_changed+0x52>
  84345. 8022234: 4b09 ldr r3, [pc, #36] @ (802225c <dhcp_network_changed+0x6c>)
  84346. 8022236: f240 326d movw r2, #877 @ 0x36d
  84347. 802223a: 4909 ldr r1, [pc, #36] @ (8022260 <dhcp_network_changed+0x70>)
  84348. 802223c: 4809 ldr r0, [pc, #36] @ (8022264 <dhcp_network_changed+0x74>)
  84349. 802223e: f007 fbcd bl 80299dc <iprintf>
  84350. autoip_stop(netif);
  84351. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  84352. }
  84353. #endif /* LWIP_DHCP_AUTOIP_COOP */
  84354. /* ensure we start with short timeouts, even if already discovering */
  84355. dhcp->tries = 0;
  84356. 8022242: 68fb ldr r3, [r7, #12]
  84357. 8022244: 2200 movs r2, #0
  84358. 8022246: 719a strb r2, [r3, #6]
  84359. dhcp_discover(netif);
  84360. 8022248: 6878 ldr r0, [r7, #4]
  84361. 802224a: f000 f8af bl 80223ac <dhcp_discover>
  84362. break;
  84363. 802224e: e002 b.n 8022256 <dhcp_network_changed+0x66>
  84364. return;
  84365. 8022250: bf00 nop
  84366. 8022252: e000 b.n 8022256 <dhcp_network_changed+0x66>
  84367. break;
  84368. 8022254: bf00 nop
  84369. }
  84370. }
  84371. 8022256: 3710 adds r7, #16
  84372. 8022258: 46bd mov sp, r7
  84373. 802225a: bd80 pop {r7, pc}
  84374. 802225c: 0802fe9c .word 0x0802fe9c
  84375. 8022260: 0802ffe8 .word 0x0802ffe8
  84376. 8022264: 0802fefc .word 0x0802fefc
  84377. 08022268 <dhcp_arp_reply>:
  84378. * @param netif the network interface on which the reply was received
  84379. * @param addr The IP address we received a reply from
  84380. */
  84381. void
  84382. dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr)
  84383. {
  84384. 8022268: b580 push {r7, lr}
  84385. 802226a: b084 sub sp, #16
  84386. 802226c: af00 add r7, sp, #0
  84387. 802226e: 6078 str r0, [r7, #4]
  84388. 8022270: 6039 str r1, [r7, #0]
  84389. struct dhcp *dhcp;
  84390. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  84391. 8022272: 687b ldr r3, [r7, #4]
  84392. 8022274: 2b00 cmp r3, #0
  84393. 8022276: d107 bne.n 8022288 <dhcp_arp_reply+0x20>
  84394. 8022278: 4b0e ldr r3, [pc, #56] @ (80222b4 <dhcp_arp_reply+0x4c>)
  84395. 802227a: f240 328b movw r2, #907 @ 0x38b
  84396. 802227e: 490e ldr r1, [pc, #56] @ (80222b8 <dhcp_arp_reply+0x50>)
  84397. 8022280: 480e ldr r0, [pc, #56] @ (80222bc <dhcp_arp_reply+0x54>)
  84398. 8022282: f007 fbab bl 80299dc <iprintf>
  84399. 8022286: e012 b.n 80222ae <dhcp_arp_reply+0x46>
  84400. dhcp = netif_dhcp_data(netif);
  84401. 8022288: 687b ldr r3, [r7, #4]
  84402. 802228a: 6a5b ldr r3, [r3, #36] @ 0x24
  84403. 802228c: 60fb str r3, [r7, #12]
  84404. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_arp_reply()\n"));
  84405. /* is a DHCP client doing an ARP check? */
  84406. if ((dhcp != NULL) && (dhcp->state == DHCP_STATE_CHECKING)) {
  84407. 802228e: 68fb ldr r3, [r7, #12]
  84408. 8022290: 2b00 cmp r3, #0
  84409. 8022292: d00c beq.n 80222ae <dhcp_arp_reply+0x46>
  84410. 8022294: 68fb ldr r3, [r7, #12]
  84411. 8022296: 795b ldrb r3, [r3, #5]
  84412. 8022298: 2b08 cmp r3, #8
  84413. 802229a: d108 bne.n 80222ae <dhcp_arp_reply+0x46>
  84414. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_arp_reply(): CHECKING, arp reply for 0x%08"X32_F"\n",
  84415. ip4_addr_get_u32(addr)));
  84416. /* did a host respond with the address we
  84417. were offered by the DHCP server? */
  84418. if (ip4_addr_cmp(addr, &dhcp->offered_ip_addr)) {
  84419. 802229c: 683b ldr r3, [r7, #0]
  84420. 802229e: 681a ldr r2, [r3, #0]
  84421. 80222a0: 68fb ldr r3, [r7, #12]
  84422. 80222a2: 69db ldr r3, [r3, #28]
  84423. 80222a4: 429a cmp r2, r3
  84424. 80222a6: d102 bne.n 80222ae <dhcp_arp_reply+0x46>
  84425. /* we will not accept the offered address */
  84426. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING,
  84427. ("dhcp_arp_reply(): arp reply matched with offered address, declining\n"));
  84428. dhcp_decline(netif);
  84429. 80222a8: 6878 ldr r0, [r7, #4]
  84430. 80222aa: f000 f809 bl 80222c0 <dhcp_decline>
  84431. }
  84432. }
  84433. }
  84434. 80222ae: 3710 adds r7, #16
  84435. 80222b0: 46bd mov sp, r7
  84436. 80222b2: bd80 pop {r7, pc}
  84437. 80222b4: 0802fe9c .word 0x0802fe9c
  84438. 80222b8: 0802ff80 .word 0x0802ff80
  84439. 80222bc: 0802fefc .word 0x0802fefc
  84440. 080222c0 <dhcp_decline>:
  84441. *
  84442. * @param netif the netif under DHCP control
  84443. */
  84444. static err_t
  84445. dhcp_decline(struct netif *netif)
  84446. {
  84447. 80222c0: b5b0 push {r4, r5, r7, lr}
  84448. 80222c2: b08a sub sp, #40 @ 0x28
  84449. 80222c4: af02 add r7, sp, #8
  84450. 80222c6: 6078 str r0, [r7, #4]
  84451. struct dhcp *dhcp = netif_dhcp_data(netif);
  84452. 80222c8: 687b ldr r3, [r7, #4]
  84453. 80222ca: 6a5b ldr r3, [r3, #36] @ 0x24
  84454. 80222cc: 61bb str r3, [r7, #24]
  84455. u16_t msecs;
  84456. struct pbuf *p_out;
  84457. u16_t options_out_len;
  84458. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline()\n"));
  84459. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  84460. 80222ce: 210c movs r1, #12
  84461. 80222d0: 69b8 ldr r0, [r7, #24]
  84462. 80222d2: f000 fc78 bl 8022bc6 <dhcp_set_state>
  84463. /* create and initialize the DHCP message header */
  84464. p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len);
  84465. 80222d6: f107 030c add.w r3, r7, #12
  84466. 80222da: 2204 movs r2, #4
  84467. 80222dc: 69b9 ldr r1, [r7, #24]
  84468. 80222de: 6878 ldr r0, [r7, #4]
  84469. 80222e0: f001 f90a bl 80234f8 <dhcp_create_msg>
  84470. 80222e4: 6178 str r0, [r7, #20]
  84471. if (p_out != NULL) {
  84472. 80222e6: 697b ldr r3, [r7, #20]
  84473. 80222e8: 2b00 cmp r3, #0
  84474. 80222ea: d035 beq.n 8022358 <dhcp_decline+0x98>
  84475. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84476. 80222ec: 697b ldr r3, [r7, #20]
  84477. 80222ee: 685b ldr r3, [r3, #4]
  84478. 80222f0: 613b str r3, [r7, #16]
  84479. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  84480. 80222f2: 89b8 ldrh r0, [r7, #12]
  84481. 80222f4: 693b ldr r3, [r7, #16]
  84482. 80222f6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84483. 80222fa: 2304 movs r3, #4
  84484. 80222fc: 2232 movs r2, #50 @ 0x32
  84485. 80222fe: f000 fc7d bl 8022bfc <dhcp_option>
  84486. 8022302: 4603 mov r3, r0
  84487. 8022304: 81bb strh r3, [r7, #12]
  84488. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  84489. 8022306: 89bc ldrh r4, [r7, #12]
  84490. 8022308: 693b ldr r3, [r7, #16]
  84491. 802230a: f103 05f0 add.w r5, r3, #240 @ 0xf0
  84492. 802230e: 69bb ldr r3, [r7, #24]
  84493. 8022310: 69db ldr r3, [r3, #28]
  84494. 8022312: 4618 mov r0, r3
  84495. 8022314: f7f6 fc1d bl 8018b52 <lwip_htonl>
  84496. 8022318: 4603 mov r3, r0
  84497. 802231a: 461a mov r2, r3
  84498. 802231c: 4629 mov r1, r5
  84499. 802231e: 4620 mov r0, r4
  84500. 8022320: f000 fcf8 bl 8022d14 <dhcp_option_long>
  84501. 8022324: 4603 mov r3, r0
  84502. 8022326: 81bb strh r3, [r7, #12]
  84503. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_BACKING_OFF, msg_out, DHCP_DECLINE, &options_out_len);
  84504. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84505. 8022328: 89b8 ldrh r0, [r7, #12]
  84506. 802232a: 693b ldr r3, [r7, #16]
  84507. 802232c: 33f0 adds r3, #240 @ 0xf0
  84508. 802232e: 697a ldr r2, [r7, #20]
  84509. 8022330: 4619 mov r1, r3
  84510. 8022332: f001 f9b7 bl 80236a4 <dhcp_option_trailer>
  84511. /* per section 4.4.4, broadcast DECLINE messages */
  84512. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  84513. 8022336: 4b19 ldr r3, [pc, #100] @ (802239c <dhcp_decline+0xdc>)
  84514. 8022338: 6818 ldr r0, [r3, #0]
  84515. 802233a: 4b19 ldr r3, [pc, #100] @ (80223a0 <dhcp_decline+0xe0>)
  84516. 802233c: 9301 str r3, [sp, #4]
  84517. 802233e: 687b ldr r3, [r7, #4]
  84518. 8022340: 9300 str r3, [sp, #0]
  84519. 8022342: 2343 movs r3, #67 @ 0x43
  84520. 8022344: 4a17 ldr r2, [pc, #92] @ (80223a4 <dhcp_decline+0xe4>)
  84521. 8022346: 6979 ldr r1, [r7, #20]
  84522. 8022348: f7ff f88a bl 8021460 <udp_sendto_if_src>
  84523. 802234c: 4603 mov r3, r0
  84524. 802234e: 77fb strb r3, [r7, #31]
  84525. pbuf_free(p_out);
  84526. 8022350: 6978 ldr r0, [r7, #20]
  84527. 8022352: f7f8 f8cb bl 801a4ec <pbuf_free>
  84528. 8022356: e001 b.n 802235c <dhcp_decline+0x9c>
  84529. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_decline: BACKING OFF\n"));
  84530. } else {
  84531. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  84532. ("dhcp_decline: could not allocate DHCP request\n"));
  84533. result = ERR_MEM;
  84534. 8022358: 23ff movs r3, #255 @ 0xff
  84535. 802235a: 77fb strb r3, [r7, #31]
  84536. }
  84537. if (dhcp->tries < 255) {
  84538. 802235c: 69bb ldr r3, [r7, #24]
  84539. 802235e: 799b ldrb r3, [r3, #6]
  84540. 8022360: 2bff cmp r3, #255 @ 0xff
  84541. 8022362: d005 beq.n 8022370 <dhcp_decline+0xb0>
  84542. dhcp->tries++;
  84543. 8022364: 69bb ldr r3, [r7, #24]
  84544. 8022366: 799b ldrb r3, [r3, #6]
  84545. 8022368: 3301 adds r3, #1
  84546. 802236a: b2da uxtb r2, r3
  84547. 802236c: 69bb ldr r3, [r7, #24]
  84548. 802236e: 719a strb r2, [r3, #6]
  84549. }
  84550. msecs = 10 * 1000;
  84551. 8022370: f242 7310 movw r3, #10000 @ 0x2710
  84552. 8022374: 81fb strh r3, [r7, #14]
  84553. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84554. 8022376: 89fb ldrh r3, [r7, #14]
  84555. 8022378: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84556. 802237c: 4a0a ldr r2, [pc, #40] @ (80223a8 <dhcp_decline+0xe8>)
  84557. 802237e: fb82 1203 smull r1, r2, r2, r3
  84558. 8022382: 1152 asrs r2, r2, #5
  84559. 8022384: 17db asrs r3, r3, #31
  84560. 8022386: 1ad3 subs r3, r2, r3
  84561. 8022388: b29a uxth r2, r3
  84562. 802238a: 69bb ldr r3, [r7, #24]
  84563. 802238c: 811a strh r2, [r3, #8]
  84564. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs));
  84565. return result;
  84566. 802238e: f997 301f ldrsb.w r3, [r7, #31]
  84567. }
  84568. 8022392: 4618 mov r0, r3
  84569. 8022394: 3720 adds r7, #32
  84570. 8022396: 46bd mov sp, r7
  84571. 8022398: bdb0 pop {r4, r5, r7, pc}
  84572. 802239a: bf00 nop
  84573. 802239c: 2402af14 .word 0x2402af14
  84574. 80223a0: 08030c68 .word 0x08030c68
  84575. 80223a4: 08030c6c .word 0x08030c6c
  84576. 80223a8: 10624dd3 .word 0x10624dd3
  84577. 080223ac <dhcp_discover>:
  84578. *
  84579. * @param netif the netif under DHCP control
  84580. */
  84581. static err_t
  84582. dhcp_discover(struct netif *netif)
  84583. {
  84584. 80223ac: b580 push {r7, lr}
  84585. 80223ae: b08a sub sp, #40 @ 0x28
  84586. 80223b0: af02 add r7, sp, #8
  84587. 80223b2: 6078 str r0, [r7, #4]
  84588. struct dhcp *dhcp = netif_dhcp_data(netif);
  84589. 80223b4: 687b ldr r3, [r7, #4]
  84590. 80223b6: 6a5b ldr r3, [r3, #36] @ 0x24
  84591. 80223b8: 61bb str r3, [r7, #24]
  84592. err_t result = ERR_OK;
  84593. 80223ba: 2300 movs r3, #0
  84594. 80223bc: 75fb strb r3, [r7, #23]
  84595. struct pbuf *p_out;
  84596. u16_t options_out_len;
  84597. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover()\n"));
  84598. ip4_addr_set_any(&dhcp->offered_ip_addr);
  84599. 80223be: 69bb ldr r3, [r7, #24]
  84600. 80223c0: 2200 movs r2, #0
  84601. 80223c2: 61da str r2, [r3, #28]
  84602. dhcp_set_state(dhcp, DHCP_STATE_SELECTING);
  84603. 80223c4: 2106 movs r1, #6
  84604. 80223c6: 69b8 ldr r0, [r7, #24]
  84605. 80223c8: f000 fbfd bl 8022bc6 <dhcp_set_state>
  84606. /* create and initialize the DHCP message header */
  84607. p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len);
  84608. 80223cc: f107 0308 add.w r3, r7, #8
  84609. 80223d0: 2201 movs r2, #1
  84610. 80223d2: 69b9 ldr r1, [r7, #24]
  84611. 80223d4: 6878 ldr r0, [r7, #4]
  84612. 80223d6: f001 f88f bl 80234f8 <dhcp_create_msg>
  84613. 80223da: 6138 str r0, [r7, #16]
  84614. if (p_out != NULL) {
  84615. 80223dc: 693b ldr r3, [r7, #16]
  84616. 80223de: 2b00 cmp r3, #0
  84617. 80223e0: d04b beq.n 802247a <dhcp_discover+0xce>
  84618. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84619. 80223e2: 693b ldr r3, [r7, #16]
  84620. 80223e4: 685b ldr r3, [r3, #4]
  84621. 80223e6: 60fb str r3, [r7, #12]
  84622. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: making request\n"));
  84623. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  84624. 80223e8: 8938 ldrh r0, [r7, #8]
  84625. 80223ea: 68fb ldr r3, [r7, #12]
  84626. 80223ec: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84627. 80223f0: 2302 movs r3, #2
  84628. 80223f2: 2239 movs r2, #57 @ 0x39
  84629. 80223f4: f000 fc02 bl 8022bfc <dhcp_option>
  84630. 80223f8: 4603 mov r3, r0
  84631. 80223fa: 813b strh r3, [r7, #8]
  84632. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  84633. 80223fc: 8938 ldrh r0, [r7, #8]
  84634. 80223fe: 68fb ldr r3, [r7, #12]
  84635. 8022400: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84636. 8022404: 687b ldr r3, [r7, #4]
  84637. 8022406: 8d1b ldrh r3, [r3, #40] @ 0x28
  84638. 8022408: 461a mov r2, r3
  84639. 802240a: f000 fc51 bl 8022cb0 <dhcp_option_short>
  84640. 802240e: 4603 mov r3, r0
  84641. 8022410: 813b strh r3, [r7, #8]
  84642. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  84643. 8022412: 8938 ldrh r0, [r7, #8]
  84644. 8022414: 68fb ldr r3, [r7, #12]
  84645. 8022416: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84646. 802241a: 2303 movs r3, #3
  84647. 802241c: 2237 movs r2, #55 @ 0x37
  84648. 802241e: f000 fbed bl 8022bfc <dhcp_option>
  84649. 8022422: 4603 mov r3, r0
  84650. 8022424: 813b strh r3, [r7, #8]
  84651. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84652. 8022426: 2300 movs r3, #0
  84653. 8022428: 77fb strb r3, [r7, #31]
  84654. 802242a: e00e b.n 802244a <dhcp_discover+0x9e>
  84655. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  84656. 802242c: 8938 ldrh r0, [r7, #8]
  84657. 802242e: 68fb ldr r3, [r7, #12]
  84658. 8022430: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84659. 8022434: 7ffb ldrb r3, [r7, #31]
  84660. 8022436: 4a29 ldr r2, [pc, #164] @ (80224dc <dhcp_discover+0x130>)
  84661. 8022438: 5cd3 ldrb r3, [r2, r3]
  84662. 802243a: 461a mov r2, r3
  84663. 802243c: f000 fc12 bl 8022c64 <dhcp_option_byte>
  84664. 8022440: 4603 mov r3, r0
  84665. 8022442: 813b strh r3, [r7, #8]
  84666. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84667. 8022444: 7ffb ldrb r3, [r7, #31]
  84668. 8022446: 3301 adds r3, #1
  84669. 8022448: 77fb strb r3, [r7, #31]
  84670. 802244a: 7ffb ldrb r3, [r7, #31]
  84671. 802244c: 2b02 cmp r3, #2
  84672. 802244e: d9ed bls.n 802242c <dhcp_discover+0x80>
  84673. }
  84674. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_SELECTING, msg_out, DHCP_DISCOVER, &options_out_len);
  84675. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84676. 8022450: 8938 ldrh r0, [r7, #8]
  84677. 8022452: 68fb ldr r3, [r7, #12]
  84678. 8022454: 33f0 adds r3, #240 @ 0xf0
  84679. 8022456: 693a ldr r2, [r7, #16]
  84680. 8022458: 4619 mov r1, r3
  84681. 802245a: f001 f923 bl 80236a4 <dhcp_option_trailer>
  84682. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)\n"));
  84683. udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  84684. 802245e: 4b20 ldr r3, [pc, #128] @ (80224e0 <dhcp_discover+0x134>)
  84685. 8022460: 6818 ldr r0, [r3, #0]
  84686. 8022462: 4b20 ldr r3, [pc, #128] @ (80224e4 <dhcp_discover+0x138>)
  84687. 8022464: 9301 str r3, [sp, #4]
  84688. 8022466: 687b ldr r3, [r7, #4]
  84689. 8022468: 9300 str r3, [sp, #0]
  84690. 802246a: 2343 movs r3, #67 @ 0x43
  84691. 802246c: 4a1e ldr r2, [pc, #120] @ (80224e8 <dhcp_discover+0x13c>)
  84692. 802246e: 6939 ldr r1, [r7, #16]
  84693. 8022470: f7fe fff6 bl 8021460 <udp_sendto_if_src>
  84694. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n"));
  84695. pbuf_free(p_out);
  84696. 8022474: 6938 ldr r0, [r7, #16]
  84697. 8022476: f7f8 f839 bl 801a4ec <pbuf_free>
  84698. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover: SELECTING\n"));
  84699. } else {
  84700. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_discover: could not allocate DHCP request\n"));
  84701. }
  84702. if (dhcp->tries < 255) {
  84703. 802247a: 69bb ldr r3, [r7, #24]
  84704. 802247c: 799b ldrb r3, [r3, #6]
  84705. 802247e: 2bff cmp r3, #255 @ 0xff
  84706. 8022480: d005 beq.n 802248e <dhcp_discover+0xe2>
  84707. dhcp->tries++;
  84708. 8022482: 69bb ldr r3, [r7, #24]
  84709. 8022484: 799b ldrb r3, [r3, #6]
  84710. 8022486: 3301 adds r3, #1
  84711. 8022488: b2da uxtb r2, r3
  84712. 802248a: 69bb ldr r3, [r7, #24]
  84713. 802248c: 719a strb r2, [r3, #6]
  84714. if (dhcp->tries >= LWIP_DHCP_AUTOIP_COOP_TRIES && dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_OFF) {
  84715. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_ON;
  84716. autoip_start(netif);
  84717. }
  84718. #endif /* LWIP_DHCP_AUTOIP_COOP */
  84719. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  84720. 802248e: 69bb ldr r3, [r7, #24]
  84721. 8022490: 799b ldrb r3, [r3, #6]
  84722. 8022492: 2b05 cmp r3, #5
  84723. 8022494: d80d bhi.n 80224b2 <dhcp_discover+0x106>
  84724. 8022496: 69bb ldr r3, [r7, #24]
  84725. 8022498: 799b ldrb r3, [r3, #6]
  84726. 802249a: 461a mov r2, r3
  84727. 802249c: 2301 movs r3, #1
  84728. 802249e: 4093 lsls r3, r2
  84729. 80224a0: b29b uxth r3, r3
  84730. 80224a2: 461a mov r2, r3
  84731. 80224a4: 0152 lsls r2, r2, #5
  84732. 80224a6: 1ad2 subs r2, r2, r3
  84733. 80224a8: 0092 lsls r2, r2, #2
  84734. 80224aa: 4413 add r3, r2
  84735. 80224ac: 00db lsls r3, r3, #3
  84736. 80224ae: b29b uxth r3, r3
  84737. 80224b0: e001 b.n 80224b6 <dhcp_discover+0x10a>
  84738. 80224b2: f64e 2360 movw r3, #60000 @ 0xea60
  84739. 80224b6: 817b strh r3, [r7, #10]
  84740. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84741. 80224b8: 897b ldrh r3, [r7, #10]
  84742. 80224ba: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84743. 80224be: 4a0b ldr r2, [pc, #44] @ (80224ec <dhcp_discover+0x140>)
  84744. 80224c0: fb82 1203 smull r1, r2, r2, r3
  84745. 80224c4: 1152 asrs r2, r2, #5
  84746. 80224c6: 17db asrs r3, r3, #31
  84747. 80224c8: 1ad3 subs r3, r2, r3
  84748. 80224ca: b29a uxth r2, r3
  84749. 80224cc: 69bb ldr r3, [r7, #24]
  84750. 80224ce: 811a strh r2, [r3, #8]
  84751. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs));
  84752. return result;
  84753. 80224d0: f997 3017 ldrsb.w r3, [r7, #23]
  84754. }
  84755. 80224d4: 4618 mov r0, r3
  84756. 80224d6: 3720 adds r7, #32
  84757. 80224d8: 46bd mov sp, r7
  84758. 80224da: bd80 pop {r7, pc}
  84759. 80224dc: 24000058 .word 0x24000058
  84760. 80224e0: 2402af14 .word 0x2402af14
  84761. 80224e4: 08030c68 .word 0x08030c68
  84762. 80224e8: 08030c6c .word 0x08030c6c
  84763. 80224ec: 10624dd3 .word 0x10624dd3
  84764. 080224f0 <dhcp_bind>:
  84765. *
  84766. * @param netif network interface to bind to the offered address
  84767. */
  84768. static void
  84769. dhcp_bind(struct netif *netif)
  84770. {
  84771. 80224f0: b580 push {r7, lr}
  84772. 80224f2: b088 sub sp, #32
  84773. 80224f4: af00 add r7, sp, #0
  84774. 80224f6: 6078 str r0, [r7, #4]
  84775. u32_t timeout;
  84776. struct dhcp *dhcp;
  84777. ip4_addr_t sn_mask, gw_addr;
  84778. LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;);
  84779. 80224f8: 687b ldr r3, [r7, #4]
  84780. 80224fa: 2b00 cmp r3, #0
  84781. 80224fc: d107 bne.n 802250e <dhcp_bind+0x1e>
  84782. 80224fe: 4b64 ldr r3, [pc, #400] @ (8022690 <dhcp_bind+0x1a0>)
  84783. 8022500: f240 4215 movw r2, #1045 @ 0x415
  84784. 8022504: 4963 ldr r1, [pc, #396] @ (8022694 <dhcp_bind+0x1a4>)
  84785. 8022506: 4864 ldr r0, [pc, #400] @ (8022698 <dhcp_bind+0x1a8>)
  84786. 8022508: f007 fa68 bl 80299dc <iprintf>
  84787. 802250c: e0bc b.n 8022688 <dhcp_bind+0x198>
  84788. dhcp = netif_dhcp_data(netif);
  84789. 802250e: 687b ldr r3, [r7, #4]
  84790. 8022510: 6a5b ldr r3, [r3, #36] @ 0x24
  84791. 8022512: 61fb str r3, [r7, #28]
  84792. LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;);
  84793. 8022514: 69fb ldr r3, [r7, #28]
  84794. 8022516: 2b00 cmp r3, #0
  84795. 8022518: d107 bne.n 802252a <dhcp_bind+0x3a>
  84796. 802251a: 4b5d ldr r3, [pc, #372] @ (8022690 <dhcp_bind+0x1a0>)
  84797. 802251c: f240 4217 movw r2, #1047 @ 0x417
  84798. 8022520: 495e ldr r1, [pc, #376] @ (802269c <dhcp_bind+0x1ac>)
  84799. 8022522: 485d ldr r0, [pc, #372] @ (8022698 <dhcp_bind+0x1a8>)
  84800. 8022524: f007 fa5a bl 80299dc <iprintf>
  84801. 8022528: e0ae b.n 8022688 <dhcp_bind+0x198>
  84802. 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));
  84803. /* reset time used of lease */
  84804. dhcp->lease_used = 0;
  84805. 802252a: 69fb ldr r3, [r7, #28]
  84806. 802252c: 2200 movs r2, #0
  84807. 802252e: 825a strh r2, [r3, #18]
  84808. if (dhcp->offered_t0_lease != 0xffffffffUL) {
  84809. 8022530: 69fb ldr r3, [r7, #28]
  84810. 8022532: 6a9b ldr r3, [r3, #40] @ 0x28
  84811. 8022534: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  84812. 8022538: d019 beq.n 802256e <dhcp_bind+0x7e>
  84813. /* set renewal period timer */
  84814. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t0 renewal timer %"U32_F" secs\n", dhcp->offered_t0_lease));
  84815. timeout = (dhcp->offered_t0_lease + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  84816. 802253a: 69fb ldr r3, [r7, #28]
  84817. 802253c: 6a9b ldr r3, [r3, #40] @ 0x28
  84818. 802253e: 331e adds r3, #30
  84819. 8022540: 4a57 ldr r2, [pc, #348] @ (80226a0 <dhcp_bind+0x1b0>)
  84820. 8022542: fba2 2303 umull r2, r3, r2, r3
  84821. 8022546: 095b lsrs r3, r3, #5
  84822. 8022548: 61bb str r3, [r7, #24]
  84823. if (timeout > 0xffff) {
  84824. 802254a: 69bb ldr r3, [r7, #24]
  84825. 802254c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  84826. 8022550: d302 bcc.n 8022558 <dhcp_bind+0x68>
  84827. timeout = 0xffff;
  84828. 8022552: f64f 73ff movw r3, #65535 @ 0xffff
  84829. 8022556: 61bb str r3, [r7, #24]
  84830. }
  84831. dhcp->t0_timeout = (u16_t)timeout;
  84832. 8022558: 69bb ldr r3, [r7, #24]
  84833. 802255a: b29a uxth r2, r3
  84834. 802255c: 69fb ldr r3, [r7, #28]
  84835. 802255e: 829a strh r2, [r3, #20]
  84836. if (dhcp->t0_timeout == 0) {
  84837. 8022560: 69fb ldr r3, [r7, #28]
  84838. 8022562: 8a9b ldrh r3, [r3, #20]
  84839. 8022564: 2b00 cmp r3, #0
  84840. 8022566: d102 bne.n 802256e <dhcp_bind+0x7e>
  84841. dhcp->t0_timeout = 1;
  84842. 8022568: 69fb ldr r3, [r7, #28]
  84843. 802256a: 2201 movs r2, #1
  84844. 802256c: 829a strh r2, [r3, #20]
  84845. }
  84846. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t0_lease * 1000));
  84847. }
  84848. /* temporary DHCP lease? */
  84849. if (dhcp->offered_t1_renew != 0xffffffffUL) {
  84850. 802256e: 69fb ldr r3, [r7, #28]
  84851. 8022570: 6adb ldr r3, [r3, #44] @ 0x2c
  84852. 8022572: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  84853. 8022576: d01d beq.n 80225b4 <dhcp_bind+0xc4>
  84854. /* set renewal period timer */
  84855. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t1 renewal timer %"U32_F" secs\n", dhcp->offered_t1_renew));
  84856. timeout = (dhcp->offered_t1_renew + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  84857. 8022578: 69fb ldr r3, [r7, #28]
  84858. 802257a: 6adb ldr r3, [r3, #44] @ 0x2c
  84859. 802257c: 331e adds r3, #30
  84860. 802257e: 4a48 ldr r2, [pc, #288] @ (80226a0 <dhcp_bind+0x1b0>)
  84861. 8022580: fba2 2303 umull r2, r3, r2, r3
  84862. 8022584: 095b lsrs r3, r3, #5
  84863. 8022586: 61bb str r3, [r7, #24]
  84864. if (timeout > 0xffff) {
  84865. 8022588: 69bb ldr r3, [r7, #24]
  84866. 802258a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  84867. 802258e: d302 bcc.n 8022596 <dhcp_bind+0xa6>
  84868. timeout = 0xffff;
  84869. 8022590: f64f 73ff movw r3, #65535 @ 0xffff
  84870. 8022594: 61bb str r3, [r7, #24]
  84871. }
  84872. dhcp->t1_timeout = (u16_t)timeout;
  84873. 8022596: 69bb ldr r3, [r7, #24]
  84874. 8022598: b29a uxth r2, r3
  84875. 802259a: 69fb ldr r3, [r7, #28]
  84876. 802259c: 815a strh r2, [r3, #10]
  84877. if (dhcp->t1_timeout == 0) {
  84878. 802259e: 69fb ldr r3, [r7, #28]
  84879. 80225a0: 895b ldrh r3, [r3, #10]
  84880. 80225a2: 2b00 cmp r3, #0
  84881. 80225a4: d102 bne.n 80225ac <dhcp_bind+0xbc>
  84882. dhcp->t1_timeout = 1;
  84883. 80225a6: 69fb ldr r3, [r7, #28]
  84884. 80225a8: 2201 movs r2, #1
  84885. 80225aa: 815a strh r2, [r3, #10]
  84886. }
  84887. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t1_renew * 1000));
  84888. dhcp->t1_renew_time = dhcp->t1_timeout;
  84889. 80225ac: 69fb ldr r3, [r7, #28]
  84890. 80225ae: 895a ldrh r2, [r3, #10]
  84891. 80225b0: 69fb ldr r3, [r7, #28]
  84892. 80225b2: 81da strh r2, [r3, #14]
  84893. }
  84894. /* set renewal period timer */
  84895. if (dhcp->offered_t2_rebind != 0xffffffffUL) {
  84896. 80225b4: 69fb ldr r3, [r7, #28]
  84897. 80225b6: 6b1b ldr r3, [r3, #48] @ 0x30
  84898. 80225b8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  84899. 80225bc: d01d beq.n 80225fa <dhcp_bind+0x10a>
  84900. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t2 rebind timer %"U32_F" secs\n", dhcp->offered_t2_rebind));
  84901. timeout = (dhcp->offered_t2_rebind + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  84902. 80225be: 69fb ldr r3, [r7, #28]
  84903. 80225c0: 6b1b ldr r3, [r3, #48] @ 0x30
  84904. 80225c2: 331e adds r3, #30
  84905. 80225c4: 4a36 ldr r2, [pc, #216] @ (80226a0 <dhcp_bind+0x1b0>)
  84906. 80225c6: fba2 2303 umull r2, r3, r2, r3
  84907. 80225ca: 095b lsrs r3, r3, #5
  84908. 80225cc: 61bb str r3, [r7, #24]
  84909. if (timeout > 0xffff) {
  84910. 80225ce: 69bb ldr r3, [r7, #24]
  84911. 80225d0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  84912. 80225d4: d302 bcc.n 80225dc <dhcp_bind+0xec>
  84913. timeout = 0xffff;
  84914. 80225d6: f64f 73ff movw r3, #65535 @ 0xffff
  84915. 80225da: 61bb str r3, [r7, #24]
  84916. }
  84917. dhcp->t2_timeout = (u16_t)timeout;
  84918. 80225dc: 69bb ldr r3, [r7, #24]
  84919. 80225de: b29a uxth r2, r3
  84920. 80225e0: 69fb ldr r3, [r7, #28]
  84921. 80225e2: 819a strh r2, [r3, #12]
  84922. if (dhcp->t2_timeout == 0) {
  84923. 80225e4: 69fb ldr r3, [r7, #28]
  84924. 80225e6: 899b ldrh r3, [r3, #12]
  84925. 80225e8: 2b00 cmp r3, #0
  84926. 80225ea: d102 bne.n 80225f2 <dhcp_bind+0x102>
  84927. dhcp->t2_timeout = 1;
  84928. 80225ec: 69fb ldr r3, [r7, #28]
  84929. 80225ee: 2201 movs r2, #1
  84930. 80225f0: 819a strh r2, [r3, #12]
  84931. }
  84932. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t2_rebind * 1000));
  84933. dhcp->t2_rebind_time = dhcp->t2_timeout;
  84934. 80225f2: 69fb ldr r3, [r7, #28]
  84935. 80225f4: 899a ldrh r2, [r3, #12]
  84936. 80225f6: 69fb ldr r3, [r7, #28]
  84937. 80225f8: 821a strh r2, [r3, #16]
  84938. }
  84939. /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */
  84940. if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
  84941. 80225fa: 69fb ldr r3, [r7, #28]
  84942. 80225fc: 895a ldrh r2, [r3, #10]
  84943. 80225fe: 69fb ldr r3, [r7, #28]
  84944. 8022600: 899b ldrh r3, [r3, #12]
  84945. 8022602: 429a cmp r2, r3
  84946. 8022604: d306 bcc.n 8022614 <dhcp_bind+0x124>
  84947. 8022606: 69fb ldr r3, [r7, #28]
  84948. 8022608: 899b ldrh r3, [r3, #12]
  84949. 802260a: 2b00 cmp r3, #0
  84950. 802260c: d002 beq.n 8022614 <dhcp_bind+0x124>
  84951. dhcp->t1_timeout = 0;
  84952. 802260e: 69fb ldr r3, [r7, #28]
  84953. 8022610: 2200 movs r2, #0
  84954. 8022612: 815a strh r2, [r3, #10]
  84955. }
  84956. if (dhcp->subnet_mask_given) {
  84957. 8022614: 69fb ldr r3, [r7, #28]
  84958. 8022616: 79db ldrb r3, [r3, #7]
  84959. 8022618: 2b00 cmp r3, #0
  84960. 802261a: d003 beq.n 8022624 <dhcp_bind+0x134>
  84961. /* copy offered network mask */
  84962. ip4_addr_copy(sn_mask, dhcp->offered_sn_mask);
  84963. 802261c: 69fb ldr r3, [r7, #28]
  84964. 802261e: 6a1b ldr r3, [r3, #32]
  84965. 8022620: 613b str r3, [r7, #16]
  84966. 8022622: e014 b.n 802264e <dhcp_bind+0x15e>
  84967. } else {
  84968. /* subnet mask not given, choose a safe subnet mask given the network class */
  84969. u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr);
  84970. 8022624: 69fb ldr r3, [r7, #28]
  84971. 8022626: 331c adds r3, #28
  84972. 8022628: 781b ldrb r3, [r3, #0]
  84973. 802262a: 75fb strb r3, [r7, #23]
  84974. if (first_octet <= 127) {
  84975. 802262c: f997 3017 ldrsb.w r3, [r7, #23]
  84976. 8022630: 2b00 cmp r3, #0
  84977. 8022632: db02 blt.n 802263a <dhcp_bind+0x14a>
  84978. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL));
  84979. 8022634: 23ff movs r3, #255 @ 0xff
  84980. 8022636: 613b str r3, [r7, #16]
  84981. 8022638: e009 b.n 802264e <dhcp_bind+0x15e>
  84982. } else if (first_octet >= 192) {
  84983. 802263a: 7dfb ldrb r3, [r7, #23]
  84984. 802263c: 2bbf cmp r3, #191 @ 0xbf
  84985. 802263e: d903 bls.n 8022648 <dhcp_bind+0x158>
  84986. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL));
  84987. 8022640: f06f 437f mvn.w r3, #4278190080 @ 0xff000000
  84988. 8022644: 613b str r3, [r7, #16]
  84989. 8022646: e002 b.n 802264e <dhcp_bind+0x15e>
  84990. } else {
  84991. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL));
  84992. 8022648: f64f 73ff movw r3, #65535 @ 0xffff
  84993. 802264c: 613b str r3, [r7, #16]
  84994. }
  84995. }
  84996. ip4_addr_copy(gw_addr, dhcp->offered_gw_addr);
  84997. 802264e: 69fb ldr r3, [r7, #28]
  84998. 8022650: 6a5b ldr r3, [r3, #36] @ 0x24
  84999. 8022652: 60fb str r3, [r7, #12]
  85000. /* gateway address not given? */
  85001. if (ip4_addr_isany_val(gw_addr)) {
  85002. 8022654: 68fb ldr r3, [r7, #12]
  85003. 8022656: 2b00 cmp r3, #0
  85004. 8022658: d108 bne.n 802266c <dhcp_bind+0x17c>
  85005. /* copy network address */
  85006. ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask);
  85007. 802265a: 69fb ldr r3, [r7, #28]
  85008. 802265c: 69da ldr r2, [r3, #28]
  85009. 802265e: 693b ldr r3, [r7, #16]
  85010. 8022660: 4013 ands r3, r2
  85011. 8022662: 60fb str r3, [r7, #12]
  85012. /* use first host address on network as gateway */
  85013. ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL));
  85014. 8022664: 68fb ldr r3, [r7, #12]
  85015. 8022666: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  85016. 802266a: 60fb str r3, [r7, #12]
  85017. 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",
  85018. ip4_addr_get_u32(&dhcp->offered_ip_addr), ip4_addr_get_u32(&sn_mask), ip4_addr_get_u32(&gw_addr)));
  85019. /* netif is now bound to DHCP leased address - set this before assigning the address
  85020. to ensure the callback can use dhcp_supplied_address() */
  85021. dhcp_set_state(dhcp, DHCP_STATE_BOUND);
  85022. 802266c: 210a movs r1, #10
  85023. 802266e: 69f8 ldr r0, [r7, #28]
  85024. 8022670: f000 faa9 bl 8022bc6 <dhcp_set_state>
  85025. netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr);
  85026. 8022674: 69fb ldr r3, [r7, #28]
  85027. 8022676: f103 011c add.w r1, r3, #28
  85028. 802267a: f107 030c add.w r3, r7, #12
  85029. 802267e: f107 0210 add.w r2, r7, #16
  85030. 8022682: 6878 ldr r0, [r7, #4]
  85031. 8022684: f7f7 f9e8 bl 8019a58 <netif_set_addr>
  85032. /* interface is used by routing now that an address is set */
  85033. }
  85034. 8022688: 3720 adds r7, #32
  85035. 802268a: 46bd mov sp, r7
  85036. 802268c: bd80 pop {r7, pc}
  85037. 802268e: bf00 nop
  85038. 8022690: 0802fe9c .word 0x0802fe9c
  85039. 8022694: 0802fffc .word 0x0802fffc
  85040. 8022698: 0802fefc .word 0x0802fefc
  85041. 802269c: 08030018 .word 0x08030018
  85042. 80226a0: 88888889 .word 0x88888889
  85043. 080226a4 <dhcp_renew>:
  85044. *
  85045. * @param netif network interface which must renew its lease
  85046. */
  85047. err_t
  85048. dhcp_renew(struct netif *netif)
  85049. {
  85050. 80226a4: b580 push {r7, lr}
  85051. 80226a6: b08a sub sp, #40 @ 0x28
  85052. 80226a8: af02 add r7, sp, #8
  85053. 80226aa: 6078 str r0, [r7, #4]
  85054. struct dhcp *dhcp = netif_dhcp_data(netif);
  85055. 80226ac: 687b ldr r3, [r7, #4]
  85056. 80226ae: 6a5b ldr r3, [r3, #36] @ 0x24
  85057. 80226b0: 61bb str r3, [r7, #24]
  85058. u16_t msecs;
  85059. u8_t i;
  85060. struct pbuf *p_out;
  85061. u16_t options_out_len;
  85062. LWIP_ASSERT_CORE_LOCKED();
  85063. 80226b2: f7ed ff47 bl 8010544 <sys_check_core_locking>
  85064. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_renew()\n"));
  85065. dhcp_set_state(dhcp, DHCP_STATE_RENEWING);
  85066. 80226b6: 2105 movs r1, #5
  85067. 80226b8: 69b8 ldr r0, [r7, #24]
  85068. 80226ba: f000 fa84 bl 8022bc6 <dhcp_set_state>
  85069. /* create and initialize the DHCP message header */
  85070. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  85071. 80226be: f107 030c add.w r3, r7, #12
  85072. 80226c2: 2203 movs r2, #3
  85073. 80226c4: 69b9 ldr r1, [r7, #24]
  85074. 80226c6: 6878 ldr r0, [r7, #4]
  85075. 80226c8: f000 ff16 bl 80234f8 <dhcp_create_msg>
  85076. 80226cc: 6178 str r0, [r7, #20]
  85077. if (p_out != NULL) {
  85078. 80226ce: 697b ldr r3, [r7, #20]
  85079. 80226d0: 2b00 cmp r3, #0
  85080. 80226d2: d04e beq.n 8022772 <dhcp_renew+0xce>
  85081. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85082. 80226d4: 697b ldr r3, [r7, #20]
  85083. 80226d6: 685b ldr r3, [r3, #4]
  85084. 80226d8: 613b str r3, [r7, #16]
  85085. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  85086. 80226da: 89b8 ldrh r0, [r7, #12]
  85087. 80226dc: 693b ldr r3, [r7, #16]
  85088. 80226de: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85089. 80226e2: 2302 movs r3, #2
  85090. 80226e4: 2239 movs r2, #57 @ 0x39
  85091. 80226e6: f000 fa89 bl 8022bfc <dhcp_option>
  85092. 80226ea: 4603 mov r3, r0
  85093. 80226ec: 81bb strh r3, [r7, #12]
  85094. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  85095. 80226ee: 89b8 ldrh r0, [r7, #12]
  85096. 80226f0: 693b ldr r3, [r7, #16]
  85097. 80226f2: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85098. 80226f6: 687b ldr r3, [r7, #4]
  85099. 80226f8: 8d1b ldrh r3, [r3, #40] @ 0x28
  85100. 80226fa: 461a mov r2, r3
  85101. 80226fc: f000 fad8 bl 8022cb0 <dhcp_option_short>
  85102. 8022700: 4603 mov r3, r0
  85103. 8022702: 81bb strh r3, [r7, #12]
  85104. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  85105. 8022704: 89b8 ldrh r0, [r7, #12]
  85106. 8022706: 693b ldr r3, [r7, #16]
  85107. 8022708: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85108. 802270c: 2303 movs r3, #3
  85109. 802270e: 2237 movs r2, #55 @ 0x37
  85110. 8022710: f000 fa74 bl 8022bfc <dhcp_option>
  85111. 8022714: 4603 mov r3, r0
  85112. 8022716: 81bb strh r3, [r7, #12]
  85113. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85114. 8022718: 2300 movs r3, #0
  85115. 802271a: 77bb strb r3, [r7, #30]
  85116. 802271c: e00e b.n 802273c <dhcp_renew+0x98>
  85117. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  85118. 802271e: 89b8 ldrh r0, [r7, #12]
  85119. 8022720: 693b ldr r3, [r7, #16]
  85120. 8022722: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85121. 8022726: 7fbb ldrb r3, [r7, #30]
  85122. 8022728: 4a29 ldr r2, [pc, #164] @ (80227d0 <dhcp_renew+0x12c>)
  85123. 802272a: 5cd3 ldrb r3, [r2, r3]
  85124. 802272c: 461a mov r2, r3
  85125. 802272e: f000 fa99 bl 8022c64 <dhcp_option_byte>
  85126. 8022732: 4603 mov r3, r0
  85127. 8022734: 81bb strh r3, [r7, #12]
  85128. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85129. 8022736: 7fbb ldrb r3, [r7, #30]
  85130. 8022738: 3301 adds r3, #1
  85131. 802273a: 77bb strb r3, [r7, #30]
  85132. 802273c: 7fbb ldrb r3, [r7, #30]
  85133. 802273e: 2b02 cmp r3, #2
  85134. 8022740: d9ed bls.n 802271e <dhcp_renew+0x7a>
  85135. #if LWIP_NETIF_HOSTNAME
  85136. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  85137. #endif /* LWIP_NETIF_HOSTNAME */
  85138. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_RENEWING, msg_out, DHCP_REQUEST, &options_out_len);
  85139. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85140. 8022742: 89b8 ldrh r0, [r7, #12]
  85141. 8022744: 693b ldr r3, [r7, #16]
  85142. 8022746: 33f0 adds r3, #240 @ 0xf0
  85143. 8022748: 697a ldr r2, [r7, #20]
  85144. 802274a: 4619 mov r1, r3
  85145. 802274c: f000 ffaa bl 80236a4 <dhcp_option_trailer>
  85146. result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  85147. 8022750: 4b20 ldr r3, [pc, #128] @ (80227d4 <dhcp_renew+0x130>)
  85148. 8022752: 6818 ldr r0, [r3, #0]
  85149. 8022754: 69bb ldr r3, [r7, #24]
  85150. 8022756: f103 0218 add.w r2, r3, #24
  85151. 802275a: 687b ldr r3, [r7, #4]
  85152. 802275c: 9300 str r3, [sp, #0]
  85153. 802275e: 2343 movs r3, #67 @ 0x43
  85154. 8022760: 6979 ldr r1, [r7, #20]
  85155. 8022762: f7fe fe09 bl 8021378 <udp_sendto_if>
  85156. 8022766: 4603 mov r3, r0
  85157. 8022768: 77fb strb r3, [r7, #31]
  85158. pbuf_free(p_out);
  85159. 802276a: 6978 ldr r0, [r7, #20]
  85160. 802276c: f7f7 febe bl 801a4ec <pbuf_free>
  85161. 8022770: e001 b.n 8022776 <dhcp_renew+0xd2>
  85162. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew: RENEWING\n"));
  85163. } else {
  85164. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_renew: could not allocate DHCP request\n"));
  85165. result = ERR_MEM;
  85166. 8022772: 23ff movs r3, #255 @ 0xff
  85167. 8022774: 77fb strb r3, [r7, #31]
  85168. }
  85169. if (dhcp->tries < 255) {
  85170. 8022776: 69bb ldr r3, [r7, #24]
  85171. 8022778: 799b ldrb r3, [r3, #6]
  85172. 802277a: 2bff cmp r3, #255 @ 0xff
  85173. 802277c: d005 beq.n 802278a <dhcp_renew+0xe6>
  85174. dhcp->tries++;
  85175. 802277e: 69bb ldr r3, [r7, #24]
  85176. 8022780: 799b ldrb r3, [r3, #6]
  85177. 8022782: 3301 adds r3, #1
  85178. 8022784: b2da uxtb r2, r3
  85179. 8022786: 69bb ldr r3, [r7, #24]
  85180. 8022788: 719a strb r2, [r3, #6]
  85181. }
  85182. /* back-off on retries, but to a maximum of 20 seconds */
  85183. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000);
  85184. 802278a: 69bb ldr r3, [r7, #24]
  85185. 802278c: 799b ldrb r3, [r3, #6]
  85186. 802278e: 2b09 cmp r3, #9
  85187. 8022790: d809 bhi.n 80227a6 <dhcp_renew+0x102>
  85188. 8022792: 69bb ldr r3, [r7, #24]
  85189. 8022794: 799b ldrb r3, [r3, #6]
  85190. 8022796: 461a mov r2, r3
  85191. 8022798: 0152 lsls r2, r2, #5
  85192. 802279a: 1ad2 subs r2, r2, r3
  85193. 802279c: 0092 lsls r2, r2, #2
  85194. 802279e: 4413 add r3, r2
  85195. 80227a0: 011b lsls r3, r3, #4
  85196. 80227a2: b29b uxth r3, r3
  85197. 80227a4: e001 b.n 80227aa <dhcp_renew+0x106>
  85198. 80227a6: f644 6320 movw r3, #20000 @ 0x4e20
  85199. 80227aa: 81fb strh r3, [r7, #14]
  85200. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85201. 80227ac: 89fb ldrh r3, [r7, #14]
  85202. 80227ae: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85203. 80227b2: 4a09 ldr r2, [pc, #36] @ (80227d8 <dhcp_renew+0x134>)
  85204. 80227b4: fb82 1203 smull r1, r2, r2, r3
  85205. 80227b8: 1152 asrs r2, r2, #5
  85206. 80227ba: 17db asrs r3, r3, #31
  85207. 80227bc: 1ad3 subs r3, r2, r3
  85208. 80227be: b29a uxth r2, r3
  85209. 80227c0: 69bb ldr r3, [r7, #24]
  85210. 80227c2: 811a strh r2, [r3, #8]
  85211. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs));
  85212. return result;
  85213. 80227c4: f997 301f ldrsb.w r3, [r7, #31]
  85214. }
  85215. 80227c8: 4618 mov r0, r3
  85216. 80227ca: 3720 adds r7, #32
  85217. 80227cc: 46bd mov sp, r7
  85218. 80227ce: bd80 pop {r7, pc}
  85219. 80227d0: 24000058 .word 0x24000058
  85220. 80227d4: 2402af14 .word 0x2402af14
  85221. 80227d8: 10624dd3 .word 0x10624dd3
  85222. 080227dc <dhcp_rebind>:
  85223. *
  85224. * @param netif network interface which must rebind with a DHCP server
  85225. */
  85226. static err_t
  85227. dhcp_rebind(struct netif *netif)
  85228. {
  85229. 80227dc: b580 push {r7, lr}
  85230. 80227de: b08a sub sp, #40 @ 0x28
  85231. 80227e0: af02 add r7, sp, #8
  85232. 80227e2: 6078 str r0, [r7, #4]
  85233. struct dhcp *dhcp = netif_dhcp_data(netif);
  85234. 80227e4: 687b ldr r3, [r7, #4]
  85235. 80227e6: 6a5b ldr r3, [r3, #36] @ 0x24
  85236. 80227e8: 61bb str r3, [r7, #24]
  85237. u8_t i;
  85238. struct pbuf *p_out;
  85239. u16_t options_out_len;
  85240. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind()\n"));
  85241. dhcp_set_state(dhcp, DHCP_STATE_REBINDING);
  85242. 80227ea: 2104 movs r1, #4
  85243. 80227ec: 69b8 ldr r0, [r7, #24]
  85244. 80227ee: f000 f9ea bl 8022bc6 <dhcp_set_state>
  85245. /* create and initialize the DHCP message header */
  85246. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  85247. 80227f2: f107 030c add.w r3, r7, #12
  85248. 80227f6: 2203 movs r2, #3
  85249. 80227f8: 69b9 ldr r1, [r7, #24]
  85250. 80227fa: 6878 ldr r0, [r7, #4]
  85251. 80227fc: f000 fe7c bl 80234f8 <dhcp_create_msg>
  85252. 8022800: 6178 str r0, [r7, #20]
  85253. if (p_out != NULL) {
  85254. 8022802: 697b ldr r3, [r7, #20]
  85255. 8022804: 2b00 cmp r3, #0
  85256. 8022806: d04c beq.n 80228a2 <dhcp_rebind+0xc6>
  85257. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85258. 8022808: 697b ldr r3, [r7, #20]
  85259. 802280a: 685b ldr r3, [r3, #4]
  85260. 802280c: 613b str r3, [r7, #16]
  85261. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  85262. 802280e: 89b8 ldrh r0, [r7, #12]
  85263. 8022810: 693b ldr r3, [r7, #16]
  85264. 8022812: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85265. 8022816: 2302 movs r3, #2
  85266. 8022818: 2239 movs r2, #57 @ 0x39
  85267. 802281a: f000 f9ef bl 8022bfc <dhcp_option>
  85268. 802281e: 4603 mov r3, r0
  85269. 8022820: 81bb strh r3, [r7, #12]
  85270. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  85271. 8022822: 89b8 ldrh r0, [r7, #12]
  85272. 8022824: 693b ldr r3, [r7, #16]
  85273. 8022826: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85274. 802282a: 687b ldr r3, [r7, #4]
  85275. 802282c: 8d1b ldrh r3, [r3, #40] @ 0x28
  85276. 802282e: 461a mov r2, r3
  85277. 8022830: f000 fa3e bl 8022cb0 <dhcp_option_short>
  85278. 8022834: 4603 mov r3, r0
  85279. 8022836: 81bb strh r3, [r7, #12]
  85280. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  85281. 8022838: 89b8 ldrh r0, [r7, #12]
  85282. 802283a: 693b ldr r3, [r7, #16]
  85283. 802283c: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85284. 8022840: 2303 movs r3, #3
  85285. 8022842: 2237 movs r2, #55 @ 0x37
  85286. 8022844: f000 f9da bl 8022bfc <dhcp_option>
  85287. 8022848: 4603 mov r3, r0
  85288. 802284a: 81bb strh r3, [r7, #12]
  85289. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85290. 802284c: 2300 movs r3, #0
  85291. 802284e: 77bb strb r3, [r7, #30]
  85292. 8022850: e00e b.n 8022870 <dhcp_rebind+0x94>
  85293. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  85294. 8022852: 89b8 ldrh r0, [r7, #12]
  85295. 8022854: 693b ldr r3, [r7, #16]
  85296. 8022856: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85297. 802285a: 7fbb ldrb r3, [r7, #30]
  85298. 802285c: 4a28 ldr r2, [pc, #160] @ (8022900 <dhcp_rebind+0x124>)
  85299. 802285e: 5cd3 ldrb r3, [r2, r3]
  85300. 8022860: 461a mov r2, r3
  85301. 8022862: f000 f9ff bl 8022c64 <dhcp_option_byte>
  85302. 8022866: 4603 mov r3, r0
  85303. 8022868: 81bb strh r3, [r7, #12]
  85304. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85305. 802286a: 7fbb ldrb r3, [r7, #30]
  85306. 802286c: 3301 adds r3, #1
  85307. 802286e: 77bb strb r3, [r7, #30]
  85308. 8022870: 7fbb ldrb r3, [r7, #30]
  85309. 8022872: 2b02 cmp r3, #2
  85310. 8022874: d9ed bls.n 8022852 <dhcp_rebind+0x76>
  85311. #if LWIP_NETIF_HOSTNAME
  85312. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  85313. #endif /* LWIP_NETIF_HOSTNAME */
  85314. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len);
  85315. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85316. 8022876: 89b8 ldrh r0, [r7, #12]
  85317. 8022878: 693b ldr r3, [r7, #16]
  85318. 802287a: 33f0 adds r3, #240 @ 0xf0
  85319. 802287c: 697a ldr r2, [r7, #20]
  85320. 802287e: 4619 mov r1, r3
  85321. 8022880: f000 ff10 bl 80236a4 <dhcp_option_trailer>
  85322. /* broadcast to server */
  85323. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  85324. 8022884: 4b1f ldr r3, [pc, #124] @ (8022904 <dhcp_rebind+0x128>)
  85325. 8022886: 6818 ldr r0, [r3, #0]
  85326. 8022888: 687b ldr r3, [r7, #4]
  85327. 802288a: 9300 str r3, [sp, #0]
  85328. 802288c: 2343 movs r3, #67 @ 0x43
  85329. 802288e: 4a1e ldr r2, [pc, #120] @ (8022908 <dhcp_rebind+0x12c>)
  85330. 8022890: 6979 ldr r1, [r7, #20]
  85331. 8022892: f7fe fd71 bl 8021378 <udp_sendto_if>
  85332. 8022896: 4603 mov r3, r0
  85333. 8022898: 77fb strb r3, [r7, #31]
  85334. pbuf_free(p_out);
  85335. 802289a: 6978 ldr r0, [r7, #20]
  85336. 802289c: f7f7 fe26 bl 801a4ec <pbuf_free>
  85337. 80228a0: e001 b.n 80228a6 <dhcp_rebind+0xca>
  85338. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind: REBINDING\n"));
  85339. } else {
  85340. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_rebind: could not allocate DHCP request\n"));
  85341. result = ERR_MEM;
  85342. 80228a2: 23ff movs r3, #255 @ 0xff
  85343. 80228a4: 77fb strb r3, [r7, #31]
  85344. }
  85345. if (dhcp->tries < 255) {
  85346. 80228a6: 69bb ldr r3, [r7, #24]
  85347. 80228a8: 799b ldrb r3, [r3, #6]
  85348. 80228aa: 2bff cmp r3, #255 @ 0xff
  85349. 80228ac: d005 beq.n 80228ba <dhcp_rebind+0xde>
  85350. dhcp->tries++;
  85351. 80228ae: 69bb ldr r3, [r7, #24]
  85352. 80228b0: 799b ldrb r3, [r3, #6]
  85353. 80228b2: 3301 adds r3, #1
  85354. 80228b4: b2da uxtb r2, r3
  85355. 80228b6: 69bb ldr r3, [r7, #24]
  85356. 80228b8: 719a strb r2, [r3, #6]
  85357. }
  85358. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  85359. 80228ba: 69bb ldr r3, [r7, #24]
  85360. 80228bc: 799b ldrb r3, [r3, #6]
  85361. 80228be: 2b09 cmp r3, #9
  85362. 80228c0: d809 bhi.n 80228d6 <dhcp_rebind+0xfa>
  85363. 80228c2: 69bb ldr r3, [r7, #24]
  85364. 80228c4: 799b ldrb r3, [r3, #6]
  85365. 80228c6: 461a mov r2, r3
  85366. 80228c8: 0152 lsls r2, r2, #5
  85367. 80228ca: 1ad2 subs r2, r2, r3
  85368. 80228cc: 0092 lsls r2, r2, #2
  85369. 80228ce: 4413 add r3, r2
  85370. 80228d0: 00db lsls r3, r3, #3
  85371. 80228d2: b29b uxth r3, r3
  85372. 80228d4: e001 b.n 80228da <dhcp_rebind+0xfe>
  85373. 80228d6: f242 7310 movw r3, #10000 @ 0x2710
  85374. 80228da: 81fb strh r3, [r7, #14]
  85375. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85376. 80228dc: 89fb ldrh r3, [r7, #14]
  85377. 80228de: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85378. 80228e2: 4a0a ldr r2, [pc, #40] @ (802290c <dhcp_rebind+0x130>)
  85379. 80228e4: fb82 1203 smull r1, r2, r2, r3
  85380. 80228e8: 1152 asrs r2, r2, #5
  85381. 80228ea: 17db asrs r3, r3, #31
  85382. 80228ec: 1ad3 subs r3, r2, r3
  85383. 80228ee: b29a uxth r2, r3
  85384. 80228f0: 69bb ldr r3, [r7, #24]
  85385. 80228f2: 811a strh r2, [r3, #8]
  85386. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs));
  85387. return result;
  85388. 80228f4: f997 301f ldrsb.w r3, [r7, #31]
  85389. }
  85390. 80228f8: 4618 mov r0, r3
  85391. 80228fa: 3720 adds r7, #32
  85392. 80228fc: 46bd mov sp, r7
  85393. 80228fe: bd80 pop {r7, pc}
  85394. 8022900: 24000058 .word 0x24000058
  85395. 8022904: 2402af14 .word 0x2402af14
  85396. 8022908: 08030c6c .word 0x08030c6c
  85397. 802290c: 10624dd3 .word 0x10624dd3
  85398. 08022910 <dhcp_reboot>:
  85399. *
  85400. * @param netif network interface which must reboot
  85401. */
  85402. static err_t
  85403. dhcp_reboot(struct netif *netif)
  85404. {
  85405. 8022910: b5b0 push {r4, r5, r7, lr}
  85406. 8022912: b08a sub sp, #40 @ 0x28
  85407. 8022914: af02 add r7, sp, #8
  85408. 8022916: 6078 str r0, [r7, #4]
  85409. struct dhcp *dhcp = netif_dhcp_data(netif);
  85410. 8022918: 687b ldr r3, [r7, #4]
  85411. 802291a: 6a5b ldr r3, [r3, #36] @ 0x24
  85412. 802291c: 61bb str r3, [r7, #24]
  85413. u8_t i;
  85414. struct pbuf *p_out;
  85415. u16_t options_out_len;
  85416. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot()\n"));
  85417. dhcp_set_state(dhcp, DHCP_STATE_REBOOTING);
  85418. 802291e: 2103 movs r1, #3
  85419. 8022920: 69b8 ldr r0, [r7, #24]
  85420. 8022922: f000 f950 bl 8022bc6 <dhcp_set_state>
  85421. /* create and initialize the DHCP message header */
  85422. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  85423. 8022926: f107 030c add.w r3, r7, #12
  85424. 802292a: 2203 movs r2, #3
  85425. 802292c: 69b9 ldr r1, [r7, #24]
  85426. 802292e: 6878 ldr r0, [r7, #4]
  85427. 8022930: f000 fde2 bl 80234f8 <dhcp_create_msg>
  85428. 8022934: 6178 str r0, [r7, #20]
  85429. if (p_out != NULL) {
  85430. 8022936: 697b ldr r3, [r7, #20]
  85431. 8022938: 2b00 cmp r3, #0
  85432. 802293a: d066 beq.n 8022a0a <dhcp_reboot+0xfa>
  85433. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85434. 802293c: 697b ldr r3, [r7, #20]
  85435. 802293e: 685b ldr r3, [r3, #4]
  85436. 8022940: 613b str r3, [r7, #16]
  85437. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  85438. 8022942: 89b8 ldrh r0, [r7, #12]
  85439. 8022944: 693b ldr r3, [r7, #16]
  85440. 8022946: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85441. 802294a: 2302 movs r3, #2
  85442. 802294c: 2239 movs r2, #57 @ 0x39
  85443. 802294e: f000 f955 bl 8022bfc <dhcp_option>
  85444. 8022952: 4603 mov r3, r0
  85445. 8022954: 81bb strh r3, [r7, #12]
  85446. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED);
  85447. 8022956: 89b8 ldrh r0, [r7, #12]
  85448. 8022958: 693b ldr r3, [r7, #16]
  85449. 802295a: 33f0 adds r3, #240 @ 0xf0
  85450. 802295c: f44f 7210 mov.w r2, #576 @ 0x240
  85451. 8022960: 4619 mov r1, r3
  85452. 8022962: f000 f9a5 bl 8022cb0 <dhcp_option_short>
  85453. 8022966: 4603 mov r3, r0
  85454. 8022968: 81bb strh r3, [r7, #12]
  85455. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  85456. 802296a: 89b8 ldrh r0, [r7, #12]
  85457. 802296c: 693b ldr r3, [r7, #16]
  85458. 802296e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85459. 8022972: 2304 movs r3, #4
  85460. 8022974: 2232 movs r2, #50 @ 0x32
  85461. 8022976: f000 f941 bl 8022bfc <dhcp_option>
  85462. 802297a: 4603 mov r3, r0
  85463. 802297c: 81bb strh r3, [r7, #12]
  85464. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  85465. 802297e: 89bc ldrh r4, [r7, #12]
  85466. 8022980: 693b ldr r3, [r7, #16]
  85467. 8022982: f103 05f0 add.w r5, r3, #240 @ 0xf0
  85468. 8022986: 69bb ldr r3, [r7, #24]
  85469. 8022988: 69db ldr r3, [r3, #28]
  85470. 802298a: 4618 mov r0, r3
  85471. 802298c: f7f6 f8e1 bl 8018b52 <lwip_htonl>
  85472. 8022990: 4603 mov r3, r0
  85473. 8022992: 461a mov r2, r3
  85474. 8022994: 4629 mov r1, r5
  85475. 8022996: 4620 mov r0, r4
  85476. 8022998: f000 f9bc bl 8022d14 <dhcp_option_long>
  85477. 802299c: 4603 mov r3, r0
  85478. 802299e: 81bb strh r3, [r7, #12]
  85479. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  85480. 80229a0: 89b8 ldrh r0, [r7, #12]
  85481. 80229a2: 693b ldr r3, [r7, #16]
  85482. 80229a4: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85483. 80229a8: 2303 movs r3, #3
  85484. 80229aa: 2237 movs r2, #55 @ 0x37
  85485. 80229ac: f000 f926 bl 8022bfc <dhcp_option>
  85486. 80229b0: 4603 mov r3, r0
  85487. 80229b2: 81bb strh r3, [r7, #12]
  85488. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85489. 80229b4: 2300 movs r3, #0
  85490. 80229b6: 77bb strb r3, [r7, #30]
  85491. 80229b8: e00e b.n 80229d8 <dhcp_reboot+0xc8>
  85492. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  85493. 80229ba: 89b8 ldrh r0, [r7, #12]
  85494. 80229bc: 693b ldr r3, [r7, #16]
  85495. 80229be: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85496. 80229c2: 7fbb ldrb r3, [r7, #30]
  85497. 80229c4: 4a28 ldr r2, [pc, #160] @ (8022a68 <dhcp_reboot+0x158>)
  85498. 80229c6: 5cd3 ldrb r3, [r2, r3]
  85499. 80229c8: 461a mov r2, r3
  85500. 80229ca: f000 f94b bl 8022c64 <dhcp_option_byte>
  85501. 80229ce: 4603 mov r3, r0
  85502. 80229d0: 81bb strh r3, [r7, #12]
  85503. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85504. 80229d2: 7fbb ldrb r3, [r7, #30]
  85505. 80229d4: 3301 adds r3, #1
  85506. 80229d6: 77bb strb r3, [r7, #30]
  85507. 80229d8: 7fbb ldrb r3, [r7, #30]
  85508. 80229da: 2b02 cmp r3, #2
  85509. 80229dc: d9ed bls.n 80229ba <dhcp_reboot+0xaa>
  85510. #if LWIP_NETIF_HOSTNAME
  85511. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  85512. #endif /* LWIP_NETIF_HOSTNAME */
  85513. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBOOTING, msg_out, DHCP_REQUEST, &options_out_len);
  85514. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85515. 80229de: 89b8 ldrh r0, [r7, #12]
  85516. 80229e0: 693b ldr r3, [r7, #16]
  85517. 80229e2: 33f0 adds r3, #240 @ 0xf0
  85518. 80229e4: 697a ldr r2, [r7, #20]
  85519. 80229e6: 4619 mov r1, r3
  85520. 80229e8: f000 fe5c bl 80236a4 <dhcp_option_trailer>
  85521. /* broadcast to server */
  85522. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  85523. 80229ec: 4b1f ldr r3, [pc, #124] @ (8022a6c <dhcp_reboot+0x15c>)
  85524. 80229ee: 6818 ldr r0, [r3, #0]
  85525. 80229f0: 687b ldr r3, [r7, #4]
  85526. 80229f2: 9300 str r3, [sp, #0]
  85527. 80229f4: 2343 movs r3, #67 @ 0x43
  85528. 80229f6: 4a1e ldr r2, [pc, #120] @ (8022a70 <dhcp_reboot+0x160>)
  85529. 80229f8: 6979 ldr r1, [r7, #20]
  85530. 80229fa: f7fe fcbd bl 8021378 <udp_sendto_if>
  85531. 80229fe: 4603 mov r3, r0
  85532. 8022a00: 77fb strb r3, [r7, #31]
  85533. pbuf_free(p_out);
  85534. 8022a02: 6978 ldr r0, [r7, #20]
  85535. 8022a04: f7f7 fd72 bl 801a4ec <pbuf_free>
  85536. 8022a08: e001 b.n 8022a0e <dhcp_reboot+0xfe>
  85537. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot: REBOOTING\n"));
  85538. } else {
  85539. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_reboot: could not allocate DHCP request\n"));
  85540. result = ERR_MEM;
  85541. 8022a0a: 23ff movs r3, #255 @ 0xff
  85542. 8022a0c: 77fb strb r3, [r7, #31]
  85543. }
  85544. if (dhcp->tries < 255) {
  85545. 8022a0e: 69bb ldr r3, [r7, #24]
  85546. 8022a10: 799b ldrb r3, [r3, #6]
  85547. 8022a12: 2bff cmp r3, #255 @ 0xff
  85548. 8022a14: d005 beq.n 8022a22 <dhcp_reboot+0x112>
  85549. dhcp->tries++;
  85550. 8022a16: 69bb ldr r3, [r7, #24]
  85551. 8022a18: 799b ldrb r3, [r3, #6]
  85552. 8022a1a: 3301 adds r3, #1
  85553. 8022a1c: b2da uxtb r2, r3
  85554. 8022a1e: 69bb ldr r3, [r7, #24]
  85555. 8022a20: 719a strb r2, [r3, #6]
  85556. }
  85557. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  85558. 8022a22: 69bb ldr r3, [r7, #24]
  85559. 8022a24: 799b ldrb r3, [r3, #6]
  85560. 8022a26: 2b09 cmp r3, #9
  85561. 8022a28: d809 bhi.n 8022a3e <dhcp_reboot+0x12e>
  85562. 8022a2a: 69bb ldr r3, [r7, #24]
  85563. 8022a2c: 799b ldrb r3, [r3, #6]
  85564. 8022a2e: 461a mov r2, r3
  85565. 8022a30: 0152 lsls r2, r2, #5
  85566. 8022a32: 1ad2 subs r2, r2, r3
  85567. 8022a34: 0092 lsls r2, r2, #2
  85568. 8022a36: 4413 add r3, r2
  85569. 8022a38: 00db lsls r3, r3, #3
  85570. 8022a3a: b29b uxth r3, r3
  85571. 8022a3c: e001 b.n 8022a42 <dhcp_reboot+0x132>
  85572. 8022a3e: f242 7310 movw r3, #10000 @ 0x2710
  85573. 8022a42: 81fb strh r3, [r7, #14]
  85574. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85575. 8022a44: 89fb ldrh r3, [r7, #14]
  85576. 8022a46: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85577. 8022a4a: 4a0a ldr r2, [pc, #40] @ (8022a74 <dhcp_reboot+0x164>)
  85578. 8022a4c: fb82 1203 smull r1, r2, r2, r3
  85579. 8022a50: 1152 asrs r2, r2, #5
  85580. 8022a52: 17db asrs r3, r3, #31
  85581. 8022a54: 1ad3 subs r3, r2, r3
  85582. 8022a56: b29a uxth r2, r3
  85583. 8022a58: 69bb ldr r3, [r7, #24]
  85584. 8022a5a: 811a strh r2, [r3, #8]
  85585. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs));
  85586. return result;
  85587. 8022a5c: f997 301f ldrsb.w r3, [r7, #31]
  85588. }
  85589. 8022a60: 4618 mov r0, r3
  85590. 8022a62: 3720 adds r7, #32
  85591. 8022a64: 46bd mov sp, r7
  85592. 8022a66: bdb0 pop {r4, r5, r7, pc}
  85593. 8022a68: 24000058 .word 0x24000058
  85594. 8022a6c: 2402af14 .word 0x2402af14
  85595. 8022a70: 08030c6c .word 0x08030c6c
  85596. 8022a74: 10624dd3 .word 0x10624dd3
  85597. 08022a78 <dhcp_release_and_stop>:
  85598. *
  85599. * @param netif network interface
  85600. */
  85601. void
  85602. dhcp_release_and_stop(struct netif *netif)
  85603. {
  85604. 8022a78: b5b0 push {r4, r5, r7, lr}
  85605. 8022a7a: b08a sub sp, #40 @ 0x28
  85606. 8022a7c: af02 add r7, sp, #8
  85607. 8022a7e: 6078 str r0, [r7, #4]
  85608. struct dhcp *dhcp = netif_dhcp_data(netif);
  85609. 8022a80: 687b ldr r3, [r7, #4]
  85610. 8022a82: 6a5b ldr r3, [r3, #36] @ 0x24
  85611. 8022a84: 61fb str r3, [r7, #28]
  85612. ip_addr_t server_ip_addr;
  85613. LWIP_ASSERT_CORE_LOCKED();
  85614. 8022a86: f7ed fd5d bl 8010544 <sys_check_core_locking>
  85615. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release_and_stop()\n"));
  85616. if (dhcp == NULL) {
  85617. 8022a8a: 69fb ldr r3, [r7, #28]
  85618. 8022a8c: 2b00 cmp r3, #0
  85619. 8022a8e: f000 8084 beq.w 8022b9a <dhcp_release_and_stop+0x122>
  85620. return;
  85621. }
  85622. /* already off? -> nothing to do */
  85623. if (dhcp->state == DHCP_STATE_OFF) {
  85624. 8022a92: 69fb ldr r3, [r7, #28]
  85625. 8022a94: 795b ldrb r3, [r3, #5]
  85626. 8022a96: 2b00 cmp r3, #0
  85627. 8022a98: f000 8081 beq.w 8022b9e <dhcp_release_and_stop+0x126>
  85628. return;
  85629. }
  85630. ip_addr_copy(server_ip_addr, dhcp->server_ip_addr);
  85631. 8022a9c: 69fb ldr r3, [r7, #28]
  85632. 8022a9e: 699b ldr r3, [r3, #24]
  85633. 8022aa0: 613b str r3, [r7, #16]
  85634. /* clean old DHCP offer */
  85635. ip_addr_set_zero_ip4(&dhcp->server_ip_addr);
  85636. 8022aa2: 69fb ldr r3, [r7, #28]
  85637. 8022aa4: 2200 movs r2, #0
  85638. 8022aa6: 619a str r2, [r3, #24]
  85639. ip4_addr_set_zero(&dhcp->offered_ip_addr);
  85640. 8022aa8: 69fb ldr r3, [r7, #28]
  85641. 8022aaa: 2200 movs r2, #0
  85642. 8022aac: 61da str r2, [r3, #28]
  85643. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  85644. 8022aae: 69fb ldr r3, [r7, #28]
  85645. 8022ab0: 2200 movs r2, #0
  85646. 8022ab2: 621a str r2, [r3, #32]
  85647. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  85648. 8022ab4: 69fb ldr r3, [r7, #28]
  85649. 8022ab6: 2200 movs r2, #0
  85650. 8022ab8: 625a str r2, [r3, #36] @ 0x24
  85651. #if LWIP_DHCP_BOOTP_FILE
  85652. ip4_addr_set_zero(&dhcp->offered_si_addr);
  85653. #endif /* LWIP_DHCP_BOOTP_FILE */
  85654. dhcp->offered_t0_lease = dhcp->offered_t1_renew = dhcp->offered_t2_rebind = 0;
  85655. 8022aba: 69fb ldr r3, [r7, #28]
  85656. 8022abc: 2200 movs r2, #0
  85657. 8022abe: 631a str r2, [r3, #48] @ 0x30
  85658. 8022ac0: 69fb ldr r3, [r7, #28]
  85659. 8022ac2: 6b1a ldr r2, [r3, #48] @ 0x30
  85660. 8022ac4: 69fb ldr r3, [r7, #28]
  85661. 8022ac6: 62da str r2, [r3, #44] @ 0x2c
  85662. 8022ac8: 69fb ldr r3, [r7, #28]
  85663. 8022aca: 6ada ldr r2, [r3, #44] @ 0x2c
  85664. 8022acc: 69fb ldr r3, [r7, #28]
  85665. 8022ace: 629a str r2, [r3, #40] @ 0x28
  85666. dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0;
  85667. 8022ad0: 69fb ldr r3, [r7, #28]
  85668. 8022ad2: 2200 movs r2, #0
  85669. 8022ad4: 829a strh r2, [r3, #20]
  85670. 8022ad6: 69fb ldr r3, [r7, #28]
  85671. 8022ad8: 8a9a ldrh r2, [r3, #20]
  85672. 8022ada: 69fb ldr r3, [r7, #28]
  85673. 8022adc: 825a strh r2, [r3, #18]
  85674. 8022ade: 69fb ldr r3, [r7, #28]
  85675. 8022ae0: 8a5a ldrh r2, [r3, #18]
  85676. 8022ae2: 69fb ldr r3, [r7, #28]
  85677. 8022ae4: 821a strh r2, [r3, #16]
  85678. 8022ae6: 69fb ldr r3, [r7, #28]
  85679. 8022ae8: 8a1a ldrh r2, [r3, #16]
  85680. 8022aea: 69fb ldr r3, [r7, #28]
  85681. 8022aec: 81da strh r2, [r3, #14]
  85682. /* send release message when current IP was assigned via DHCP */
  85683. if (dhcp_supplied_address(netif)) {
  85684. 8022aee: 6878 ldr r0, [r7, #4]
  85685. 8022af0: f000 fe06 bl 8023700 <dhcp_supplied_address>
  85686. 8022af4: 4603 mov r3, r0
  85687. 8022af6: 2b00 cmp r3, #0
  85688. 8022af8: d03b beq.n 8022b72 <dhcp_release_and_stop+0xfa>
  85689. /* create and initialize the DHCP message header */
  85690. struct pbuf *p_out;
  85691. u16_t options_out_len;
  85692. p_out = dhcp_create_msg(netif, dhcp, DHCP_RELEASE, &options_out_len);
  85693. 8022afa: f107 030e add.w r3, r7, #14
  85694. 8022afe: 2207 movs r2, #7
  85695. 8022b00: 69f9 ldr r1, [r7, #28]
  85696. 8022b02: 6878 ldr r0, [r7, #4]
  85697. 8022b04: f000 fcf8 bl 80234f8 <dhcp_create_msg>
  85698. 8022b08: 61b8 str r0, [r7, #24]
  85699. if (p_out != NULL) {
  85700. 8022b0a: 69bb ldr r3, [r7, #24]
  85701. 8022b0c: 2b00 cmp r3, #0
  85702. 8022b0e: d030 beq.n 8022b72 <dhcp_release_and_stop+0xfa>
  85703. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85704. 8022b10: 69bb ldr r3, [r7, #24]
  85705. 8022b12: 685b ldr r3, [r3, #4]
  85706. 8022b14: 617b str r3, [r7, #20]
  85707. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  85708. 8022b16: 89f8 ldrh r0, [r7, #14]
  85709. 8022b18: 697b ldr r3, [r7, #20]
  85710. 8022b1a: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85711. 8022b1e: 2304 movs r3, #4
  85712. 8022b20: 2236 movs r2, #54 @ 0x36
  85713. 8022b22: f000 f86b bl 8022bfc <dhcp_option>
  85714. 8022b26: 4603 mov r3, r0
  85715. 8022b28: 81fb strh r3, [r7, #14]
  85716. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr))));
  85717. 8022b2a: 89fc ldrh r4, [r7, #14]
  85718. 8022b2c: 697b ldr r3, [r7, #20]
  85719. 8022b2e: f103 05f0 add.w r5, r3, #240 @ 0xf0
  85720. 8022b32: 693b ldr r3, [r7, #16]
  85721. 8022b34: 4618 mov r0, r3
  85722. 8022b36: f7f6 f80c bl 8018b52 <lwip_htonl>
  85723. 8022b3a: 4603 mov r3, r0
  85724. 8022b3c: 461a mov r2, r3
  85725. 8022b3e: 4629 mov r1, r5
  85726. 8022b40: 4620 mov r0, r4
  85727. 8022b42: f000 f8e7 bl 8022d14 <dhcp_option_long>
  85728. 8022b46: 4603 mov r3, r0
  85729. 8022b48: 81fb strh r3, [r7, #14]
  85730. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, dhcp->state, msg_out, DHCP_RELEASE, &options_out_len);
  85731. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85732. 8022b4a: 89f8 ldrh r0, [r7, #14]
  85733. 8022b4c: 697b ldr r3, [r7, #20]
  85734. 8022b4e: 33f0 adds r3, #240 @ 0xf0
  85735. 8022b50: 69ba ldr r2, [r7, #24]
  85736. 8022b52: 4619 mov r1, r3
  85737. 8022b54: f000 fda6 bl 80236a4 <dhcp_option_trailer>
  85738. udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  85739. 8022b58: 4b13 ldr r3, [pc, #76] @ (8022ba8 <dhcp_release_and_stop+0x130>)
  85740. 8022b5a: 6818 ldr r0, [r3, #0]
  85741. 8022b5c: f107 0210 add.w r2, r7, #16
  85742. 8022b60: 687b ldr r3, [r7, #4]
  85743. 8022b62: 9300 str r3, [sp, #0]
  85744. 8022b64: 2343 movs r3, #67 @ 0x43
  85745. 8022b66: 69b9 ldr r1, [r7, #24]
  85746. 8022b68: f7fe fc06 bl 8021378 <udp_sendto_if>
  85747. pbuf_free(p_out);
  85748. 8022b6c: 69b8 ldr r0, [r7, #24]
  85749. 8022b6e: f7f7 fcbd bl 801a4ec <pbuf_free>
  85750. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n"));
  85751. }
  85752. }
  85753. /* remove IP address from interface (prevents routing from selecting this interface) */
  85754. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  85755. 8022b72: 4b0e ldr r3, [pc, #56] @ (8022bac <dhcp_release_and_stop+0x134>)
  85756. 8022b74: 4a0d ldr r2, [pc, #52] @ (8022bac <dhcp_release_and_stop+0x134>)
  85757. 8022b76: 490d ldr r1, [pc, #52] @ (8022bac <dhcp_release_and_stop+0x134>)
  85758. 8022b78: 6878 ldr r0, [r7, #4]
  85759. 8022b7a: f7f6 ff6d bl 8019a58 <netif_set_addr>
  85760. autoip_stop(netif);
  85761. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  85762. }
  85763. #endif /* LWIP_DHCP_AUTOIP_COOP */
  85764. dhcp_set_state(dhcp, DHCP_STATE_OFF);
  85765. 8022b7e: 2100 movs r1, #0
  85766. 8022b80: 69f8 ldr r0, [r7, #28]
  85767. 8022b82: f000 f820 bl 8022bc6 <dhcp_set_state>
  85768. if (dhcp->pcb_allocated != 0) {
  85769. 8022b86: 69fb ldr r3, [r7, #28]
  85770. 8022b88: 791b ldrb r3, [r3, #4]
  85771. 8022b8a: 2b00 cmp r3, #0
  85772. 8022b8c: d008 beq.n 8022ba0 <dhcp_release_and_stop+0x128>
  85773. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  85774. 8022b8e: f7fe ff83 bl 8021a98 <dhcp_dec_pcb_refcount>
  85775. dhcp->pcb_allocated = 0;
  85776. 8022b92: 69fb ldr r3, [r7, #28]
  85777. 8022b94: 2200 movs r2, #0
  85778. 8022b96: 711a strb r2, [r3, #4]
  85779. 8022b98: e002 b.n 8022ba0 <dhcp_release_and_stop+0x128>
  85780. return;
  85781. 8022b9a: bf00 nop
  85782. 8022b9c: e000 b.n 8022ba0 <dhcp_release_and_stop+0x128>
  85783. return;
  85784. 8022b9e: bf00 nop
  85785. }
  85786. }
  85787. 8022ba0: 3720 adds r7, #32
  85788. 8022ba2: 46bd mov sp, r7
  85789. 8022ba4: bdb0 pop {r4, r5, r7, pc}
  85790. 8022ba6: bf00 nop
  85791. 8022ba8: 2402af14 .word 0x2402af14
  85792. 8022bac: 08030c68 .word 0x08030c68
  85793. 08022bb0 <dhcp_stop>:
  85794. * This function calls dhcp_release_and_stop() internally.
  85795. * @deprecated Use dhcp_release_and_stop() instead.
  85796. */
  85797. void
  85798. dhcp_stop(struct netif *netif)
  85799. {
  85800. 8022bb0: b580 push {r7, lr}
  85801. 8022bb2: b082 sub sp, #8
  85802. 8022bb4: af00 add r7, sp, #0
  85803. 8022bb6: 6078 str r0, [r7, #4]
  85804. dhcp_release_and_stop(netif);
  85805. 8022bb8: 6878 ldr r0, [r7, #4]
  85806. 8022bba: f7ff ff5d bl 8022a78 <dhcp_release_and_stop>
  85807. }
  85808. 8022bbe: bf00 nop
  85809. 8022bc0: 3708 adds r7, #8
  85810. 8022bc2: 46bd mov sp, r7
  85811. 8022bc4: bd80 pop {r7, pc}
  85812. 08022bc6 <dhcp_set_state>:
  85813. *
  85814. * If the state changed, reset the number of tries.
  85815. */
  85816. static void
  85817. dhcp_set_state(struct dhcp *dhcp, u8_t new_state)
  85818. {
  85819. 8022bc6: b480 push {r7}
  85820. 8022bc8: b083 sub sp, #12
  85821. 8022bca: af00 add r7, sp, #0
  85822. 8022bcc: 6078 str r0, [r7, #4]
  85823. 8022bce: 460b mov r3, r1
  85824. 8022bd0: 70fb strb r3, [r7, #3]
  85825. if (new_state != dhcp->state) {
  85826. 8022bd2: 687b ldr r3, [r7, #4]
  85827. 8022bd4: 795b ldrb r3, [r3, #5]
  85828. 8022bd6: 78fa ldrb r2, [r7, #3]
  85829. 8022bd8: 429a cmp r2, r3
  85830. 8022bda: d008 beq.n 8022bee <dhcp_set_state+0x28>
  85831. dhcp->state = new_state;
  85832. 8022bdc: 687b ldr r3, [r7, #4]
  85833. 8022bde: 78fa ldrb r2, [r7, #3]
  85834. 8022be0: 715a strb r2, [r3, #5]
  85835. dhcp->tries = 0;
  85836. 8022be2: 687b ldr r3, [r7, #4]
  85837. 8022be4: 2200 movs r2, #0
  85838. 8022be6: 719a strb r2, [r3, #6]
  85839. dhcp->request_timeout = 0;
  85840. 8022be8: 687b ldr r3, [r7, #4]
  85841. 8022bea: 2200 movs r2, #0
  85842. 8022bec: 811a strh r2, [r3, #8]
  85843. }
  85844. }
  85845. 8022bee: bf00 nop
  85846. 8022bf0: 370c adds r7, #12
  85847. 8022bf2: 46bd mov sp, r7
  85848. 8022bf4: f85d 7b04 ldr.w r7, [sp], #4
  85849. 8022bf8: 4770 bx lr
  85850. ...
  85851. 08022bfc <dhcp_option>:
  85852. * DHCP message.
  85853. *
  85854. */
  85855. static u16_t
  85856. dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len)
  85857. {
  85858. 8022bfc: b580 push {r7, lr}
  85859. 8022bfe: b082 sub sp, #8
  85860. 8022c00: af00 add r7, sp, #0
  85861. 8022c02: 6039 str r1, [r7, #0]
  85862. 8022c04: 4611 mov r1, r2
  85863. 8022c06: 461a mov r2, r3
  85864. 8022c08: 4603 mov r3, r0
  85865. 8022c0a: 80fb strh r3, [r7, #6]
  85866. 8022c0c: 460b mov r3, r1
  85867. 8022c0e: 717b strb r3, [r7, #5]
  85868. 8022c10: 4613 mov r3, r2
  85869. 8022c12: 713b strb r3, [r7, #4]
  85870. LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN);
  85871. 8022c14: 88fa ldrh r2, [r7, #6]
  85872. 8022c16: 793b ldrb r3, [r7, #4]
  85873. 8022c18: 4413 add r3, r2
  85874. 8022c1a: 3302 adds r3, #2
  85875. 8022c1c: 2b44 cmp r3, #68 @ 0x44
  85876. 8022c1e: d906 bls.n 8022c2e <dhcp_option+0x32>
  85877. 8022c20: 4b0d ldr r3, [pc, #52] @ (8022c58 <dhcp_option+0x5c>)
  85878. 8022c22: f240 529a movw r2, #1434 @ 0x59a
  85879. 8022c26: 490d ldr r1, [pc, #52] @ (8022c5c <dhcp_option+0x60>)
  85880. 8022c28: 480d ldr r0, [pc, #52] @ (8022c60 <dhcp_option+0x64>)
  85881. 8022c2a: f006 fed7 bl 80299dc <iprintf>
  85882. options[options_out_len++] = option_type;
  85883. 8022c2e: 88fb ldrh r3, [r7, #6]
  85884. 8022c30: 1c5a adds r2, r3, #1
  85885. 8022c32: 80fa strh r2, [r7, #6]
  85886. 8022c34: 461a mov r2, r3
  85887. 8022c36: 683b ldr r3, [r7, #0]
  85888. 8022c38: 4413 add r3, r2
  85889. 8022c3a: 797a ldrb r2, [r7, #5]
  85890. 8022c3c: 701a strb r2, [r3, #0]
  85891. options[options_out_len++] = option_len;
  85892. 8022c3e: 88fb ldrh r3, [r7, #6]
  85893. 8022c40: 1c5a adds r2, r3, #1
  85894. 8022c42: 80fa strh r2, [r7, #6]
  85895. 8022c44: 461a mov r2, r3
  85896. 8022c46: 683b ldr r3, [r7, #0]
  85897. 8022c48: 4413 add r3, r2
  85898. 8022c4a: 793a ldrb r2, [r7, #4]
  85899. 8022c4c: 701a strb r2, [r3, #0]
  85900. return options_out_len;
  85901. 8022c4e: 88fb ldrh r3, [r7, #6]
  85902. }
  85903. 8022c50: 4618 mov r0, r3
  85904. 8022c52: 3708 adds r7, #8
  85905. 8022c54: 46bd mov sp, r7
  85906. 8022c56: bd80 pop {r7, pc}
  85907. 8022c58: 0802fe9c .word 0x0802fe9c
  85908. 8022c5c: 08030030 .word 0x08030030
  85909. 8022c60: 0802fefc .word 0x0802fefc
  85910. 08022c64 <dhcp_option_byte>:
  85911. * Concatenate a single byte to the outgoing DHCP message.
  85912. *
  85913. */
  85914. static u16_t
  85915. dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value)
  85916. {
  85917. 8022c64: b580 push {r7, lr}
  85918. 8022c66: b082 sub sp, #8
  85919. 8022c68: af00 add r7, sp, #0
  85920. 8022c6a: 4603 mov r3, r0
  85921. 8022c6c: 6039 str r1, [r7, #0]
  85922. 8022c6e: 80fb strh r3, [r7, #6]
  85923. 8022c70: 4613 mov r3, r2
  85924. 8022c72: 717b strb r3, [r7, #5]
  85925. LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN);
  85926. 8022c74: 88fb ldrh r3, [r7, #6]
  85927. 8022c76: 2b43 cmp r3, #67 @ 0x43
  85928. 8022c78: d906 bls.n 8022c88 <dhcp_option_byte+0x24>
  85929. 8022c7a: 4b0a ldr r3, [pc, #40] @ (8022ca4 <dhcp_option_byte+0x40>)
  85930. 8022c7c: f240 52a6 movw r2, #1446 @ 0x5a6
  85931. 8022c80: 4909 ldr r1, [pc, #36] @ (8022ca8 <dhcp_option_byte+0x44>)
  85932. 8022c82: 480a ldr r0, [pc, #40] @ (8022cac <dhcp_option_byte+0x48>)
  85933. 8022c84: f006 feaa bl 80299dc <iprintf>
  85934. options[options_out_len++] = value;
  85935. 8022c88: 88fb ldrh r3, [r7, #6]
  85936. 8022c8a: 1c5a adds r2, r3, #1
  85937. 8022c8c: 80fa strh r2, [r7, #6]
  85938. 8022c8e: 461a mov r2, r3
  85939. 8022c90: 683b ldr r3, [r7, #0]
  85940. 8022c92: 4413 add r3, r2
  85941. 8022c94: 797a ldrb r2, [r7, #5]
  85942. 8022c96: 701a strb r2, [r3, #0]
  85943. return options_out_len;
  85944. 8022c98: 88fb ldrh r3, [r7, #6]
  85945. }
  85946. 8022c9a: 4618 mov r0, r3
  85947. 8022c9c: 3708 adds r7, #8
  85948. 8022c9e: 46bd mov sp, r7
  85949. 8022ca0: bd80 pop {r7, pc}
  85950. 8022ca2: bf00 nop
  85951. 8022ca4: 0802fe9c .word 0x0802fe9c
  85952. 8022ca8: 08030074 .word 0x08030074
  85953. 8022cac: 0802fefc .word 0x0802fefc
  85954. 08022cb0 <dhcp_option_short>:
  85955. static u16_t
  85956. dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value)
  85957. {
  85958. 8022cb0: b580 push {r7, lr}
  85959. 8022cb2: b082 sub sp, #8
  85960. 8022cb4: af00 add r7, sp, #0
  85961. 8022cb6: 4603 mov r3, r0
  85962. 8022cb8: 6039 str r1, [r7, #0]
  85963. 8022cba: 80fb strh r3, [r7, #6]
  85964. 8022cbc: 4613 mov r3, r2
  85965. 8022cbe: 80bb strh r3, [r7, #4]
  85966. LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN);
  85967. 8022cc0: 88fb ldrh r3, [r7, #6]
  85968. 8022cc2: 3302 adds r3, #2
  85969. 8022cc4: 2b44 cmp r3, #68 @ 0x44
  85970. 8022cc6: d906 bls.n 8022cd6 <dhcp_option_short+0x26>
  85971. 8022cc8: 4b0f ldr r3, [pc, #60] @ (8022d08 <dhcp_option_short+0x58>)
  85972. 8022cca: f240 52ae movw r2, #1454 @ 0x5ae
  85973. 8022cce: 490f ldr r1, [pc, #60] @ (8022d0c <dhcp_option_short+0x5c>)
  85974. 8022cd0: 480f ldr r0, [pc, #60] @ (8022d10 <dhcp_option_short+0x60>)
  85975. 8022cd2: f006 fe83 bl 80299dc <iprintf>
  85976. options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8);
  85977. 8022cd6: 88bb ldrh r3, [r7, #4]
  85978. 8022cd8: 0a1b lsrs r3, r3, #8
  85979. 8022cda: b29a uxth r2, r3
  85980. 8022cdc: 88fb ldrh r3, [r7, #6]
  85981. 8022cde: 1c59 adds r1, r3, #1
  85982. 8022ce0: 80f9 strh r1, [r7, #6]
  85983. 8022ce2: 4619 mov r1, r3
  85984. 8022ce4: 683b ldr r3, [r7, #0]
  85985. 8022ce6: 440b add r3, r1
  85986. 8022ce8: b2d2 uxtb r2, r2
  85987. 8022cea: 701a strb r2, [r3, #0]
  85988. options[options_out_len++] = (u8_t) (value & 0x00ffU);
  85989. 8022cec: 88fb ldrh r3, [r7, #6]
  85990. 8022cee: 1c5a adds r2, r3, #1
  85991. 8022cf0: 80fa strh r2, [r7, #6]
  85992. 8022cf2: 461a mov r2, r3
  85993. 8022cf4: 683b ldr r3, [r7, #0]
  85994. 8022cf6: 4413 add r3, r2
  85995. 8022cf8: 88ba ldrh r2, [r7, #4]
  85996. 8022cfa: b2d2 uxtb r2, r2
  85997. 8022cfc: 701a strb r2, [r3, #0]
  85998. return options_out_len;
  85999. 8022cfe: 88fb ldrh r3, [r7, #6]
  86000. }
  86001. 8022d00: 4618 mov r0, r3
  86002. 8022d02: 3708 adds r7, #8
  86003. 8022d04: 46bd mov sp, r7
  86004. 8022d06: bd80 pop {r7, pc}
  86005. 8022d08: 0802fe9c .word 0x0802fe9c
  86006. 8022d0c: 080300ac .word 0x080300ac
  86007. 8022d10: 0802fefc .word 0x0802fefc
  86008. 08022d14 <dhcp_option_long>:
  86009. static u16_t
  86010. dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value)
  86011. {
  86012. 8022d14: b580 push {r7, lr}
  86013. 8022d16: b084 sub sp, #16
  86014. 8022d18: af00 add r7, sp, #0
  86015. 8022d1a: 4603 mov r3, r0
  86016. 8022d1c: 60b9 str r1, [r7, #8]
  86017. 8022d1e: 607a str r2, [r7, #4]
  86018. 8022d20: 81fb strh r3, [r7, #14]
  86019. LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN);
  86020. 8022d22: 89fb ldrh r3, [r7, #14]
  86021. 8022d24: 3304 adds r3, #4
  86022. 8022d26: 2b44 cmp r3, #68 @ 0x44
  86023. 8022d28: d906 bls.n 8022d38 <dhcp_option_long+0x24>
  86024. 8022d2a: 4b19 ldr r3, [pc, #100] @ (8022d90 <dhcp_option_long+0x7c>)
  86025. 8022d2c: f240 52b7 movw r2, #1463 @ 0x5b7
  86026. 8022d30: 4918 ldr r1, [pc, #96] @ (8022d94 <dhcp_option_long+0x80>)
  86027. 8022d32: 4819 ldr r0, [pc, #100] @ (8022d98 <dhcp_option_long+0x84>)
  86028. 8022d34: f006 fe52 bl 80299dc <iprintf>
  86029. options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24);
  86030. 8022d38: 687b ldr r3, [r7, #4]
  86031. 8022d3a: 0e1a lsrs r2, r3, #24
  86032. 8022d3c: 89fb ldrh r3, [r7, #14]
  86033. 8022d3e: 1c59 adds r1, r3, #1
  86034. 8022d40: 81f9 strh r1, [r7, #14]
  86035. 8022d42: 4619 mov r1, r3
  86036. 8022d44: 68bb ldr r3, [r7, #8]
  86037. 8022d46: 440b add r3, r1
  86038. 8022d48: b2d2 uxtb r2, r2
  86039. 8022d4a: 701a strb r2, [r3, #0]
  86040. options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16);
  86041. 8022d4c: 687b ldr r3, [r7, #4]
  86042. 8022d4e: 0c1a lsrs r2, r3, #16
  86043. 8022d50: 89fb ldrh r3, [r7, #14]
  86044. 8022d52: 1c59 adds r1, r3, #1
  86045. 8022d54: 81f9 strh r1, [r7, #14]
  86046. 8022d56: 4619 mov r1, r3
  86047. 8022d58: 68bb ldr r3, [r7, #8]
  86048. 8022d5a: 440b add r3, r1
  86049. 8022d5c: b2d2 uxtb r2, r2
  86050. 8022d5e: 701a strb r2, [r3, #0]
  86051. options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8);
  86052. 8022d60: 687b ldr r3, [r7, #4]
  86053. 8022d62: 0a1a lsrs r2, r3, #8
  86054. 8022d64: 89fb ldrh r3, [r7, #14]
  86055. 8022d66: 1c59 adds r1, r3, #1
  86056. 8022d68: 81f9 strh r1, [r7, #14]
  86057. 8022d6a: 4619 mov r1, r3
  86058. 8022d6c: 68bb ldr r3, [r7, #8]
  86059. 8022d6e: 440b add r3, r1
  86060. 8022d70: b2d2 uxtb r2, r2
  86061. 8022d72: 701a strb r2, [r3, #0]
  86062. options[options_out_len++] = (u8_t)((value & 0x000000ffUL));
  86063. 8022d74: 89fb ldrh r3, [r7, #14]
  86064. 8022d76: 1c5a adds r2, r3, #1
  86065. 8022d78: 81fa strh r2, [r7, #14]
  86066. 8022d7a: 461a mov r2, r3
  86067. 8022d7c: 68bb ldr r3, [r7, #8]
  86068. 8022d7e: 4413 add r3, r2
  86069. 8022d80: 687a ldr r2, [r7, #4]
  86070. 8022d82: b2d2 uxtb r2, r2
  86071. 8022d84: 701a strb r2, [r3, #0]
  86072. return options_out_len;
  86073. 8022d86: 89fb ldrh r3, [r7, #14]
  86074. }
  86075. 8022d88: 4618 mov r0, r3
  86076. 8022d8a: 3710 adds r7, #16
  86077. 8022d8c: 46bd mov sp, r7
  86078. 8022d8e: bd80 pop {r7, pc}
  86079. 8022d90: 0802fe9c .word 0x0802fe9c
  86080. 8022d94: 080300e8 .word 0x080300e8
  86081. 8022d98: 0802fefc .word 0x0802fefc
  86082. 08022d9c <dhcp_parse_reply>:
  86083. * use that further on.
  86084. *
  86085. */
  86086. static err_t
  86087. dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp)
  86088. {
  86089. 8022d9c: b580 push {r7, lr}
  86090. 8022d9e: b092 sub sp, #72 @ 0x48
  86091. 8022da0: af00 add r7, sp, #0
  86092. 8022da2: 6078 str r0, [r7, #4]
  86093. 8022da4: 6039 str r1, [r7, #0]
  86094. u16_t offset;
  86095. u16_t offset_max;
  86096. u16_t options_idx;
  86097. u16_t options_idx_max;
  86098. struct pbuf *q;
  86099. int parse_file_as_options = 0;
  86100. 8022da6: 2300 movs r3, #0
  86101. 8022da8: 633b str r3, [r7, #48] @ 0x30
  86102. int parse_sname_as_options = 0;
  86103. 8022daa: 2300 movs r3, #0
  86104. 8022dac: 62fb str r3, [r7, #44] @ 0x2c
  86105. #endif
  86106. LWIP_UNUSED_ARG(dhcp);
  86107. /* clear received options */
  86108. dhcp_clear_all_options(dhcp);
  86109. 8022dae: 2208 movs r2, #8
  86110. 8022db0: 2100 movs r1, #0
  86111. 8022db2: 48b8 ldr r0, [pc, #736] @ (8023094 <dhcp_parse_reply+0x2f8>)
  86112. 8022db4: f006 ffa4 bl 8029d00 <memset>
  86113. /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */
  86114. if (p->len < DHCP_SNAME_OFS) {
  86115. 8022db8: 687b ldr r3, [r7, #4]
  86116. 8022dba: 895b ldrh r3, [r3, #10]
  86117. 8022dbc: 2b2b cmp r3, #43 @ 0x2b
  86118. 8022dbe: d802 bhi.n 8022dc6 <dhcp_parse_reply+0x2a>
  86119. return ERR_BUF;
  86120. 8022dc0: f06f 0301 mvn.w r3, #1
  86121. 8022dc4: e2b8 b.n 8023338 <dhcp_parse_reply+0x59c>
  86122. }
  86123. msg_in = (struct dhcp_msg *)p->payload;
  86124. 8022dc6: 687b ldr r3, [r7, #4]
  86125. 8022dc8: 685b ldr r3, [r3, #4]
  86126. 8022dca: 61fb str r3, [r7, #28]
  86127. #endif /* LWIP_DHCP_BOOTP_FILE */
  86128. /* parse options */
  86129. /* start with options field */
  86130. options_idx = DHCP_OPTIONS_OFS;
  86131. 8022dcc: 23f0 movs r3, #240 @ 0xf0
  86132. 8022dce: 87bb strh r3, [r7, #60] @ 0x3c
  86133. /* parse options to the end of the received packet */
  86134. options_idx_max = p->tot_len;
  86135. 8022dd0: 687b ldr r3, [r7, #4]
  86136. 8022dd2: 891b ldrh r3, [r3, #8]
  86137. 8022dd4: 877b strh r3, [r7, #58] @ 0x3a
  86138. again:
  86139. q = p;
  86140. 8022dd6: 687b ldr r3, [r7, #4]
  86141. 8022dd8: 637b str r3, [r7, #52] @ 0x34
  86142. while ((q != NULL) && (options_idx >= q->len)) {
  86143. 8022dda: e00c b.n 8022df6 <dhcp_parse_reply+0x5a>
  86144. options_idx = (u16_t)(options_idx - q->len);
  86145. 8022ddc: 6b7b ldr r3, [r7, #52] @ 0x34
  86146. 8022dde: 895b ldrh r3, [r3, #10]
  86147. 8022de0: 8fba ldrh r2, [r7, #60] @ 0x3c
  86148. 8022de2: 1ad3 subs r3, r2, r3
  86149. 8022de4: 87bb strh r3, [r7, #60] @ 0x3c
  86150. options_idx_max = (u16_t)(options_idx_max - q->len);
  86151. 8022de6: 6b7b ldr r3, [r7, #52] @ 0x34
  86152. 8022de8: 895b ldrh r3, [r3, #10]
  86153. 8022dea: 8f7a ldrh r2, [r7, #58] @ 0x3a
  86154. 8022dec: 1ad3 subs r3, r2, r3
  86155. 8022dee: 877b strh r3, [r7, #58] @ 0x3a
  86156. q = q->next;
  86157. 8022df0: 6b7b ldr r3, [r7, #52] @ 0x34
  86158. 8022df2: 681b ldr r3, [r3, #0]
  86159. 8022df4: 637b str r3, [r7, #52] @ 0x34
  86160. while ((q != NULL) && (options_idx >= q->len)) {
  86161. 8022df6: 6b7b ldr r3, [r7, #52] @ 0x34
  86162. 8022df8: 2b00 cmp r3, #0
  86163. 8022dfa: d004 beq.n 8022e06 <dhcp_parse_reply+0x6a>
  86164. 8022dfc: 6b7b ldr r3, [r7, #52] @ 0x34
  86165. 8022dfe: 895b ldrh r3, [r3, #10]
  86166. 8022e00: 8fba ldrh r2, [r7, #60] @ 0x3c
  86167. 8022e02: 429a cmp r2, r3
  86168. 8022e04: d2ea bcs.n 8022ddc <dhcp_parse_reply+0x40>
  86169. }
  86170. if (q == NULL) {
  86171. 8022e06: 6b7b ldr r3, [r7, #52] @ 0x34
  86172. 8022e08: 2b00 cmp r3, #0
  86173. 8022e0a: d102 bne.n 8022e12 <dhcp_parse_reply+0x76>
  86174. return ERR_BUF;
  86175. 8022e0c: f06f 0301 mvn.w r3, #1
  86176. 8022e10: e292 b.n 8023338 <dhcp_parse_reply+0x59c>
  86177. }
  86178. offset = options_idx;
  86179. 8022e12: 8fbb ldrh r3, [r7, #60] @ 0x3c
  86180. 8022e14: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  86181. offset_max = options_idx_max;
  86182. 8022e18: 8f7b ldrh r3, [r7, #58] @ 0x3a
  86183. 8022e1a: 87fb strh r3, [r7, #62] @ 0x3e
  86184. options = (u8_t *)q->payload;
  86185. 8022e1c: 6b7b ldr r3, [r7, #52] @ 0x34
  86186. 8022e1e: 685b ldr r3, [r3, #4]
  86187. 8022e20: 643b str r3, [r7, #64] @ 0x40
  86188. /* at least 1 byte to read and no end marker, then at least 3 bytes to read? */
  86189. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  86190. 8022e22: e247 b.n 80232b4 <dhcp_parse_reply+0x518>
  86191. u8_t op = options[offset];
  86192. 8022e24: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86193. 8022e28: 6c3a ldr r2, [r7, #64] @ 0x40
  86194. 8022e2a: 4413 add r3, r2
  86195. 8022e2c: 781b ldrb r3, [r3, #0]
  86196. 8022e2e: 76fb strb r3, [r7, #27]
  86197. u8_t len;
  86198. u8_t decode_len = 0;
  86199. 8022e30: 2300 movs r3, #0
  86200. 8022e32: f887 302a strb.w r3, [r7, #42] @ 0x2a
  86201. int decode_idx = -1;
  86202. 8022e36: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  86203. 8022e3a: 627b str r3, [r7, #36] @ 0x24
  86204. u16_t val_offset = (u16_t)(offset + 2);
  86205. 8022e3c: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86206. 8022e40: 3302 adds r3, #2
  86207. 8022e42: 847b strh r3, [r7, #34] @ 0x22
  86208. if (val_offset < offset) {
  86209. 8022e44: 8c7a ldrh r2, [r7, #34] @ 0x22
  86210. 8022e46: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86211. 8022e4a: 429a cmp r2, r3
  86212. 8022e4c: d202 bcs.n 8022e54 <dhcp_parse_reply+0xb8>
  86213. /* overflow */
  86214. return ERR_BUF;
  86215. 8022e4e: f06f 0301 mvn.w r3, #1
  86216. 8022e52: e271 b.n 8023338 <dhcp_parse_reply+0x59c>
  86217. }
  86218. /* len byte might be in the next pbuf */
  86219. if ((offset + 1) < q->len) {
  86220. 8022e54: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86221. 8022e58: 3301 adds r3, #1
  86222. 8022e5a: 6b7a ldr r2, [r7, #52] @ 0x34
  86223. 8022e5c: 8952 ldrh r2, [r2, #10]
  86224. 8022e5e: 4293 cmp r3, r2
  86225. 8022e60: da08 bge.n 8022e74 <dhcp_parse_reply+0xd8>
  86226. len = options[offset + 1];
  86227. 8022e62: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86228. 8022e66: 3301 adds r3, #1
  86229. 8022e68: 6c3a ldr r2, [r7, #64] @ 0x40
  86230. 8022e6a: 4413 add r3, r2
  86231. 8022e6c: 781b ldrb r3, [r3, #0]
  86232. 8022e6e: f887 302b strb.w r3, [r7, #43] @ 0x2b
  86233. 8022e72: e00b b.n 8022e8c <dhcp_parse_reply+0xf0>
  86234. } else {
  86235. len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0);
  86236. 8022e74: 6b7b ldr r3, [r7, #52] @ 0x34
  86237. 8022e76: 681b ldr r3, [r3, #0]
  86238. 8022e78: 2b00 cmp r3, #0
  86239. 8022e7a: d004 beq.n 8022e86 <dhcp_parse_reply+0xea>
  86240. 8022e7c: 6b7b ldr r3, [r7, #52] @ 0x34
  86241. 8022e7e: 681b ldr r3, [r3, #0]
  86242. 8022e80: 685b ldr r3, [r3, #4]
  86243. 8022e82: 781b ldrb r3, [r3, #0]
  86244. 8022e84: e000 b.n 8022e88 <dhcp_parse_reply+0xec>
  86245. 8022e86: 2300 movs r3, #0
  86246. 8022e88: f887 302b strb.w r3, [r7, #43] @ 0x2b
  86247. }
  86248. /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */
  86249. decode_len = len;
  86250. 8022e8c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86251. 8022e90: f887 302a strb.w r3, [r7, #42] @ 0x2a
  86252. switch (op) {
  86253. 8022e94: 7efb ldrb r3, [r7, #27]
  86254. 8022e96: 2b3b cmp r3, #59 @ 0x3b
  86255. 8022e98: f200 812c bhi.w 80230f4 <dhcp_parse_reply+0x358>
  86256. 8022e9c: a201 add r2, pc, #4 @ (adr r2, 8022ea4 <dhcp_parse_reply+0x108>)
  86257. 8022e9e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  86258. 8022ea2: bf00 nop
  86259. 8022ea4: 08022f95 .word 0x08022f95
  86260. 8022ea8: 08022fa5 .word 0x08022fa5
  86261. 8022eac: 080230f5 .word 0x080230f5
  86262. 8022eb0: 08022fc7 .word 0x08022fc7
  86263. 8022eb4: 080230f5 .word 0x080230f5
  86264. 8022eb8: 080230f5 .word 0x080230f5
  86265. 8022ebc: 080230f5 .word 0x080230f5
  86266. 8022ec0: 080230f5 .word 0x080230f5
  86267. 8022ec4: 080230f5 .word 0x080230f5
  86268. 8022ec8: 080230f5 .word 0x080230f5
  86269. 8022ecc: 080230f5 .word 0x080230f5
  86270. 8022ed0: 080230f5 .word 0x080230f5
  86271. 8022ed4: 080230f5 .word 0x080230f5
  86272. 8022ed8: 080230f5 .word 0x080230f5
  86273. 8022edc: 080230f5 .word 0x080230f5
  86274. 8022ee0: 080230f5 .word 0x080230f5
  86275. 8022ee4: 080230f5 .word 0x080230f5
  86276. 8022ee8: 080230f5 .word 0x080230f5
  86277. 8022eec: 080230f5 .word 0x080230f5
  86278. 8022ef0: 080230f5 .word 0x080230f5
  86279. 8022ef4: 080230f5 .word 0x080230f5
  86280. 8022ef8: 080230f5 .word 0x080230f5
  86281. 8022efc: 080230f5 .word 0x080230f5
  86282. 8022f00: 080230f5 .word 0x080230f5
  86283. 8022f04: 080230f5 .word 0x080230f5
  86284. 8022f08: 080230f5 .word 0x080230f5
  86285. 8022f0c: 080230f5 .word 0x080230f5
  86286. 8022f10: 080230f5 .word 0x080230f5
  86287. 8022f14: 080230f5 .word 0x080230f5
  86288. 8022f18: 080230f5 .word 0x080230f5
  86289. 8022f1c: 080230f5 .word 0x080230f5
  86290. 8022f20: 080230f5 .word 0x080230f5
  86291. 8022f24: 080230f5 .word 0x080230f5
  86292. 8022f28: 080230f5 .word 0x080230f5
  86293. 8022f2c: 080230f5 .word 0x080230f5
  86294. 8022f30: 080230f5 .word 0x080230f5
  86295. 8022f34: 080230f5 .word 0x080230f5
  86296. 8022f38: 080230f5 .word 0x080230f5
  86297. 8022f3c: 080230f5 .word 0x080230f5
  86298. 8022f40: 080230f5 .word 0x080230f5
  86299. 8022f44: 080230f5 .word 0x080230f5
  86300. 8022f48: 080230f5 .word 0x080230f5
  86301. 8022f4c: 080230f5 .word 0x080230f5
  86302. 8022f50: 080230f5 .word 0x080230f5
  86303. 8022f54: 080230f5 .word 0x080230f5
  86304. 8022f58: 080230f5 .word 0x080230f5
  86305. 8022f5c: 080230f5 .word 0x080230f5
  86306. 8022f60: 080230f5 .word 0x080230f5
  86307. 8022f64: 080230f5 .word 0x080230f5
  86308. 8022f68: 080230f5 .word 0x080230f5
  86309. 8022f6c: 080230f5 .word 0x080230f5
  86310. 8022f70: 08022ff3 .word 0x08022ff3
  86311. 8022f74: 08023015 .word 0x08023015
  86312. 8022f78: 08023051 .word 0x08023051
  86313. 8022f7c: 08023073 .word 0x08023073
  86314. 8022f80: 080230f5 .word 0x080230f5
  86315. 8022f84: 080230f5 .word 0x080230f5
  86316. 8022f88: 080230f5 .word 0x080230f5
  86317. 8022f8c: 080230b1 .word 0x080230b1
  86318. 8022f90: 080230d3 .word 0x080230d3
  86319. /* case(DHCP_OPTION_END): handled above */
  86320. case (DHCP_OPTION_PAD):
  86321. /* special option: no len encoded */
  86322. decode_len = len = 0;
  86323. 8022f94: 2300 movs r3, #0
  86324. 8022f96: f887 302b strb.w r3, [r7, #43] @ 0x2b
  86325. 8022f9a: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86326. 8022f9e: f887 302a strb.w r3, [r7, #42] @ 0x2a
  86327. /* will be increased below */
  86328. break;
  86329. 8022fa2: e0ab b.n 80230fc <dhcp_parse_reply+0x360>
  86330. case (DHCP_OPTION_SUBNET_MASK):
  86331. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  86332. 8022fa4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86333. 8022fa8: 2b04 cmp r3, #4
  86334. 8022faa: d009 beq.n 8022fc0 <dhcp_parse_reply+0x224>
  86335. 8022fac: 4b3a ldr r3, [pc, #232] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86336. 8022fae: f240 622e movw r2, #1582 @ 0x62e
  86337. 8022fb2: 493a ldr r1, [pc, #232] @ (802309c <dhcp_parse_reply+0x300>)
  86338. 8022fb4: 483a ldr r0, [pc, #232] @ (80230a0 <dhcp_parse_reply+0x304>)
  86339. 8022fb6: f006 fd11 bl 80299dc <iprintf>
  86340. 8022fba: f06f 0305 mvn.w r3, #5
  86341. 8022fbe: e1bb b.n 8023338 <dhcp_parse_reply+0x59c>
  86342. decode_idx = DHCP_OPTION_IDX_SUBNET_MASK;
  86343. 8022fc0: 2306 movs r3, #6
  86344. 8022fc2: 627b str r3, [r7, #36] @ 0x24
  86345. break;
  86346. 8022fc4: e09a b.n 80230fc <dhcp_parse_reply+0x360>
  86347. case (DHCP_OPTION_ROUTER):
  86348. decode_len = 4; /* only copy the first given router */
  86349. 8022fc6: 2304 movs r3, #4
  86350. 8022fc8: f887 302a strb.w r3, [r7, #42] @ 0x2a
  86351. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  86352. 8022fcc: f897 202b ldrb.w r2, [r7, #43] @ 0x2b
  86353. 8022fd0: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86354. 8022fd4: 429a cmp r2, r3
  86355. 8022fd6: d209 bcs.n 8022fec <dhcp_parse_reply+0x250>
  86356. 8022fd8: 4b2f ldr r3, [pc, #188] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86357. 8022fda: f240 6233 movw r2, #1587 @ 0x633
  86358. 8022fde: 4931 ldr r1, [pc, #196] @ (80230a4 <dhcp_parse_reply+0x308>)
  86359. 8022fe0: 482f ldr r0, [pc, #188] @ (80230a0 <dhcp_parse_reply+0x304>)
  86360. 8022fe2: f006 fcfb bl 80299dc <iprintf>
  86361. 8022fe6: f06f 0305 mvn.w r3, #5
  86362. 8022fea: e1a5 b.n 8023338 <dhcp_parse_reply+0x59c>
  86363. decode_idx = DHCP_OPTION_IDX_ROUTER;
  86364. 8022fec: 2307 movs r3, #7
  86365. 8022fee: 627b str r3, [r7, #36] @ 0x24
  86366. break;
  86367. 8022ff0: e084 b.n 80230fc <dhcp_parse_reply+0x360>
  86368. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  86369. decode_idx = DHCP_OPTION_IDX_DNS_SERVER;
  86370. break;
  86371. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  86372. case (DHCP_OPTION_LEASE_TIME):
  86373. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  86374. 8022ff2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86375. 8022ff6: 2b04 cmp r3, #4
  86376. 8022ff8: d009 beq.n 802300e <dhcp_parse_reply+0x272>
  86377. 8022ffa: 4b27 ldr r3, [pc, #156] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86378. 8022ffc: f240 6241 movw r2, #1601 @ 0x641
  86379. 8023000: 4926 ldr r1, [pc, #152] @ (802309c <dhcp_parse_reply+0x300>)
  86380. 8023002: 4827 ldr r0, [pc, #156] @ (80230a0 <dhcp_parse_reply+0x304>)
  86381. 8023004: f006 fcea bl 80299dc <iprintf>
  86382. 8023008: f06f 0305 mvn.w r3, #5
  86383. 802300c: e194 b.n 8023338 <dhcp_parse_reply+0x59c>
  86384. decode_idx = DHCP_OPTION_IDX_LEASE_TIME;
  86385. 802300e: 2303 movs r3, #3
  86386. 8023010: 627b str r3, [r7, #36] @ 0x24
  86387. break;
  86388. 8023012: e073 b.n 80230fc <dhcp_parse_reply+0x360>
  86389. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  86390. decode_idx = DHCP_OPTION_IDX_NTP_SERVER;
  86391. break;
  86392. #endif /* LWIP_DHCP_GET_NTP_SRV*/
  86393. case (DHCP_OPTION_OVERLOAD):
  86394. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  86395. 8023014: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86396. 8023018: 2b01 cmp r3, #1
  86397. 802301a: d009 beq.n 8023030 <dhcp_parse_reply+0x294>
  86398. 802301c: 4b1e ldr r3, [pc, #120] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86399. 802301e: f240 624f movw r2, #1615 @ 0x64f
  86400. 8023022: 4921 ldr r1, [pc, #132] @ (80230a8 <dhcp_parse_reply+0x30c>)
  86401. 8023024: 481e ldr r0, [pc, #120] @ (80230a0 <dhcp_parse_reply+0x304>)
  86402. 8023026: f006 fcd9 bl 80299dc <iprintf>
  86403. 802302a: f06f 0305 mvn.w r3, #5
  86404. 802302e: e183 b.n 8023338 <dhcp_parse_reply+0x59c>
  86405. /* decode overload only in options, not in file/sname: invalid packet */
  86406. LWIP_ERROR("overload in file/sname", options_idx == DHCP_OPTIONS_OFS, return ERR_VAL;);
  86407. 8023030: 8fbb ldrh r3, [r7, #60] @ 0x3c
  86408. 8023032: 2bf0 cmp r3, #240 @ 0xf0
  86409. 8023034: d009 beq.n 802304a <dhcp_parse_reply+0x2ae>
  86410. 8023036: 4b18 ldr r3, [pc, #96] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86411. 8023038: f240 6251 movw r2, #1617 @ 0x651
  86412. 802303c: 491b ldr r1, [pc, #108] @ (80230ac <dhcp_parse_reply+0x310>)
  86413. 802303e: 4818 ldr r0, [pc, #96] @ (80230a0 <dhcp_parse_reply+0x304>)
  86414. 8023040: f006 fccc bl 80299dc <iprintf>
  86415. 8023044: f06f 0305 mvn.w r3, #5
  86416. 8023048: e176 b.n 8023338 <dhcp_parse_reply+0x59c>
  86417. decode_idx = DHCP_OPTION_IDX_OVERLOAD;
  86418. 802304a: 2300 movs r3, #0
  86419. 802304c: 627b str r3, [r7, #36] @ 0x24
  86420. break;
  86421. 802304e: e055 b.n 80230fc <dhcp_parse_reply+0x360>
  86422. case (DHCP_OPTION_MESSAGE_TYPE):
  86423. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  86424. 8023050: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86425. 8023054: 2b01 cmp r3, #1
  86426. 8023056: d009 beq.n 802306c <dhcp_parse_reply+0x2d0>
  86427. 8023058: 4b0f ldr r3, [pc, #60] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86428. 802305a: f240 6255 movw r2, #1621 @ 0x655
  86429. 802305e: 4912 ldr r1, [pc, #72] @ (80230a8 <dhcp_parse_reply+0x30c>)
  86430. 8023060: 480f ldr r0, [pc, #60] @ (80230a0 <dhcp_parse_reply+0x304>)
  86431. 8023062: f006 fcbb bl 80299dc <iprintf>
  86432. 8023066: f06f 0305 mvn.w r3, #5
  86433. 802306a: e165 b.n 8023338 <dhcp_parse_reply+0x59c>
  86434. decode_idx = DHCP_OPTION_IDX_MSG_TYPE;
  86435. 802306c: 2301 movs r3, #1
  86436. 802306e: 627b str r3, [r7, #36] @ 0x24
  86437. break;
  86438. 8023070: e044 b.n 80230fc <dhcp_parse_reply+0x360>
  86439. case (DHCP_OPTION_SERVER_ID):
  86440. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  86441. 8023072: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86442. 8023076: 2b04 cmp r3, #4
  86443. 8023078: d009 beq.n 802308e <dhcp_parse_reply+0x2f2>
  86444. 802307a: 4b07 ldr r3, [pc, #28] @ (8023098 <dhcp_parse_reply+0x2fc>)
  86445. 802307c: f240 6259 movw r2, #1625 @ 0x659
  86446. 8023080: 4906 ldr r1, [pc, #24] @ (802309c <dhcp_parse_reply+0x300>)
  86447. 8023082: 4807 ldr r0, [pc, #28] @ (80230a0 <dhcp_parse_reply+0x304>)
  86448. 8023084: f006 fcaa bl 80299dc <iprintf>
  86449. 8023088: f06f 0305 mvn.w r3, #5
  86450. 802308c: e154 b.n 8023338 <dhcp_parse_reply+0x59c>
  86451. decode_idx = DHCP_OPTION_IDX_SERVER_ID;
  86452. 802308e: 2302 movs r3, #2
  86453. 8023090: 627b str r3, [r7, #36] @ 0x24
  86454. break;
  86455. 8023092: e033 b.n 80230fc <dhcp_parse_reply+0x360>
  86456. 8023094: 2402af0c .word 0x2402af0c
  86457. 8023098: 0802fe9c .word 0x0802fe9c
  86458. 802309c: 08030124 .word 0x08030124
  86459. 80230a0: 0802fefc .word 0x0802fefc
  86460. 80230a4: 08030130 .word 0x08030130
  86461. 80230a8: 08030144 .word 0x08030144
  86462. 80230ac: 08030150 .word 0x08030150
  86463. case (DHCP_OPTION_T1):
  86464. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  86465. 80230b0: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86466. 80230b4: 2b04 cmp r3, #4
  86467. 80230b6: d009 beq.n 80230cc <dhcp_parse_reply+0x330>
  86468. 80230b8: 4ba1 ldr r3, [pc, #644] @ (8023340 <dhcp_parse_reply+0x5a4>)
  86469. 80230ba: f240 625d movw r2, #1629 @ 0x65d
  86470. 80230be: 49a1 ldr r1, [pc, #644] @ (8023344 <dhcp_parse_reply+0x5a8>)
  86471. 80230c0: 48a1 ldr r0, [pc, #644] @ (8023348 <dhcp_parse_reply+0x5ac>)
  86472. 80230c2: f006 fc8b bl 80299dc <iprintf>
  86473. 80230c6: f06f 0305 mvn.w r3, #5
  86474. 80230ca: e135 b.n 8023338 <dhcp_parse_reply+0x59c>
  86475. decode_idx = DHCP_OPTION_IDX_T1;
  86476. 80230cc: 2304 movs r3, #4
  86477. 80230ce: 627b str r3, [r7, #36] @ 0x24
  86478. break;
  86479. 80230d0: e014 b.n 80230fc <dhcp_parse_reply+0x360>
  86480. case (DHCP_OPTION_T2):
  86481. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  86482. 80230d2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86483. 80230d6: 2b04 cmp r3, #4
  86484. 80230d8: d009 beq.n 80230ee <dhcp_parse_reply+0x352>
  86485. 80230da: 4b99 ldr r3, [pc, #612] @ (8023340 <dhcp_parse_reply+0x5a4>)
  86486. 80230dc: f240 6261 movw r2, #1633 @ 0x661
  86487. 80230e0: 4998 ldr r1, [pc, #608] @ (8023344 <dhcp_parse_reply+0x5a8>)
  86488. 80230e2: 4899 ldr r0, [pc, #612] @ (8023348 <dhcp_parse_reply+0x5ac>)
  86489. 80230e4: f006 fc7a bl 80299dc <iprintf>
  86490. 80230e8: f06f 0305 mvn.w r3, #5
  86491. 80230ec: e124 b.n 8023338 <dhcp_parse_reply+0x59c>
  86492. decode_idx = DHCP_OPTION_IDX_T2;
  86493. 80230ee: 2305 movs r3, #5
  86494. 80230f0: 627b str r3, [r7, #36] @ 0x24
  86495. break;
  86496. 80230f2: e003 b.n 80230fc <dhcp_parse_reply+0x360>
  86497. default:
  86498. decode_len = 0;
  86499. 80230f4: 2300 movs r3, #0
  86500. 80230f6: f887 302a strb.w r3, [r7, #42] @ 0x2a
  86501. LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", (u16_t)op));
  86502. LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in,
  86503. dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) ? (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) : 0,
  86504. op, len, q, val_offset);
  86505. break;
  86506. 80230fa: bf00 nop
  86507. }
  86508. if (op == DHCP_OPTION_PAD) {
  86509. 80230fc: 7efb ldrb r3, [r7, #27]
  86510. 80230fe: 2b00 cmp r3, #0
  86511. 8023100: d105 bne.n 802310e <dhcp_parse_reply+0x372>
  86512. offset++;
  86513. 8023102: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86514. 8023106: 3301 adds r3, #1
  86515. 8023108: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  86516. 802310c: e0a4 b.n 8023258 <dhcp_parse_reply+0x4bc>
  86517. } else {
  86518. if (offset + len + 2 > 0xFFFF) {
  86519. 802310e: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  86520. 8023112: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86521. 8023116: 4413 add r3, r2
  86522. 8023118: f64f 72fd movw r2, #65533 @ 0xfffd
  86523. 802311c: 4293 cmp r3, r2
  86524. 802311e: dd02 ble.n 8023126 <dhcp_parse_reply+0x38a>
  86525. /* overflow */
  86526. return ERR_BUF;
  86527. 8023120: f06f 0301 mvn.w r3, #1
  86528. 8023124: e108 b.n 8023338 <dhcp_parse_reply+0x59c>
  86529. }
  86530. offset = (u16_t)(offset + len + 2);
  86531. 8023126: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  86532. 802312a: b29a uxth r2, r3
  86533. 802312c: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86534. 8023130: 4413 add r3, r2
  86535. 8023132: b29b uxth r3, r3
  86536. 8023134: 3302 adds r3, #2
  86537. 8023136: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  86538. if (decode_len > 0) {
  86539. 802313a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86540. 802313e: 2b00 cmp r3, #0
  86541. 8023140: f000 808a beq.w 8023258 <dhcp_parse_reply+0x4bc>
  86542. u32_t value = 0;
  86543. 8023144: 2300 movs r3, #0
  86544. 8023146: 60fb str r3, [r7, #12]
  86545. u16_t copy_len;
  86546. decode_next:
  86547. LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX);
  86548. 8023148: 6a7b ldr r3, [r7, #36] @ 0x24
  86549. 802314a: 2b00 cmp r3, #0
  86550. 802314c: db02 blt.n 8023154 <dhcp_parse_reply+0x3b8>
  86551. 802314e: 6a7b ldr r3, [r7, #36] @ 0x24
  86552. 8023150: 2b07 cmp r3, #7
  86553. 8023152: dd06 ble.n 8023162 <dhcp_parse_reply+0x3c6>
  86554. 8023154: 4b7a ldr r3, [pc, #488] @ (8023340 <dhcp_parse_reply+0x5a4>)
  86555. 8023156: f44f 62cf mov.w r2, #1656 @ 0x678
  86556. 802315a: 497c ldr r1, [pc, #496] @ (802334c <dhcp_parse_reply+0x5b0>)
  86557. 802315c: 487a ldr r0, [pc, #488] @ (8023348 <dhcp_parse_reply+0x5ac>)
  86558. 802315e: f006 fc3d bl 80299dc <iprintf>
  86559. if (!dhcp_option_given(dhcp, decode_idx)) {
  86560. 8023162: 4a7b ldr r2, [pc, #492] @ (8023350 <dhcp_parse_reply+0x5b4>)
  86561. 8023164: 6a7b ldr r3, [r7, #36] @ 0x24
  86562. 8023166: 4413 add r3, r2
  86563. 8023168: 781b ldrb r3, [r3, #0]
  86564. 802316a: 2b00 cmp r3, #0
  86565. 802316c: d174 bne.n 8023258 <dhcp_parse_reply+0x4bc>
  86566. copy_len = LWIP_MIN(decode_len, 4);
  86567. 802316e: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86568. 8023172: 2b04 cmp r3, #4
  86569. 8023174: bf28 it cs
  86570. 8023176: 2304 movcs r3, #4
  86571. 8023178: b2db uxtb r3, r3
  86572. 802317a: 833b strh r3, [r7, #24]
  86573. if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) {
  86574. 802317c: 8c7b ldrh r3, [r7, #34] @ 0x22
  86575. 802317e: 8b3a ldrh r2, [r7, #24]
  86576. 8023180: f107 010c add.w r1, r7, #12
  86577. 8023184: 6b78 ldr r0, [r7, #52] @ 0x34
  86578. 8023186: f7f7 fbb7 bl 801a8f8 <pbuf_copy_partial>
  86579. 802318a: 4603 mov r3, r0
  86580. 802318c: 461a mov r2, r3
  86581. 802318e: 8b3b ldrh r3, [r7, #24]
  86582. 8023190: 4293 cmp r3, r2
  86583. 8023192: d002 beq.n 802319a <dhcp_parse_reply+0x3fe>
  86584. return ERR_BUF;
  86585. 8023194: f06f 0301 mvn.w r3, #1
  86586. 8023198: e0ce b.n 8023338 <dhcp_parse_reply+0x59c>
  86587. }
  86588. if (decode_len > 4) {
  86589. 802319a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86590. 802319e: 2b04 cmp r3, #4
  86591. 80231a0: d933 bls.n 802320a <dhcp_parse_reply+0x46e>
  86592. /* decode more than one u32_t */
  86593. u16_t next_val_offset;
  86594. LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;);
  86595. 80231a2: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86596. 80231a6: f003 0303 and.w r3, r3, #3
  86597. 80231aa: b2db uxtb r3, r3
  86598. 80231ac: 2b00 cmp r3, #0
  86599. 80231ae: d009 beq.n 80231c4 <dhcp_parse_reply+0x428>
  86600. 80231b0: 4b63 ldr r3, [pc, #396] @ (8023340 <dhcp_parse_reply+0x5a4>)
  86601. 80231b2: f240 6281 movw r2, #1665 @ 0x681
  86602. 80231b6: 4967 ldr r1, [pc, #412] @ (8023354 <dhcp_parse_reply+0x5b8>)
  86603. 80231b8: 4863 ldr r0, [pc, #396] @ (8023348 <dhcp_parse_reply+0x5ac>)
  86604. 80231ba: f006 fc0f bl 80299dc <iprintf>
  86605. 80231be: f06f 0305 mvn.w r3, #5
  86606. 80231c2: e0b9 b.n 8023338 <dhcp_parse_reply+0x59c>
  86607. dhcp_got_option(dhcp, decode_idx);
  86608. 80231c4: 4a62 ldr r2, [pc, #392] @ (8023350 <dhcp_parse_reply+0x5b4>)
  86609. 80231c6: 6a7b ldr r3, [r7, #36] @ 0x24
  86610. 80231c8: 4413 add r3, r2
  86611. 80231ca: 2201 movs r2, #1
  86612. 80231cc: 701a strb r2, [r3, #0]
  86613. dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value));
  86614. 80231ce: 68fb ldr r3, [r7, #12]
  86615. 80231d0: 4618 mov r0, r3
  86616. 80231d2: f7f5 fcbe bl 8018b52 <lwip_htonl>
  86617. 80231d6: 4602 mov r2, r0
  86618. 80231d8: 495f ldr r1, [pc, #380] @ (8023358 <dhcp_parse_reply+0x5bc>)
  86619. 80231da: 6a7b ldr r3, [r7, #36] @ 0x24
  86620. 80231dc: f841 2023 str.w r2, [r1, r3, lsl #2]
  86621. decode_len = (u8_t)(decode_len - 4);
  86622. 80231e0: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86623. 80231e4: 3b04 subs r3, #4
  86624. 80231e6: f887 302a strb.w r3, [r7, #42] @ 0x2a
  86625. next_val_offset = (u16_t)(val_offset + 4);
  86626. 80231ea: 8c7b ldrh r3, [r7, #34] @ 0x22
  86627. 80231ec: 3304 adds r3, #4
  86628. 80231ee: 82fb strh r3, [r7, #22]
  86629. if (next_val_offset < val_offset) {
  86630. 80231f0: 8afa ldrh r2, [r7, #22]
  86631. 80231f2: 8c7b ldrh r3, [r7, #34] @ 0x22
  86632. 80231f4: 429a cmp r2, r3
  86633. 80231f6: d202 bcs.n 80231fe <dhcp_parse_reply+0x462>
  86634. /* overflow */
  86635. return ERR_BUF;
  86636. 80231f8: f06f 0301 mvn.w r3, #1
  86637. 80231fc: e09c b.n 8023338 <dhcp_parse_reply+0x59c>
  86638. }
  86639. val_offset = next_val_offset;
  86640. 80231fe: 8afb ldrh r3, [r7, #22]
  86641. 8023200: 847b strh r3, [r7, #34] @ 0x22
  86642. decode_idx++;
  86643. 8023202: 6a7b ldr r3, [r7, #36] @ 0x24
  86644. 8023204: 3301 adds r3, #1
  86645. 8023206: 627b str r3, [r7, #36] @ 0x24
  86646. goto decode_next;
  86647. 8023208: e79e b.n 8023148 <dhcp_parse_reply+0x3ac>
  86648. } else if (decode_len == 4) {
  86649. 802320a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86650. 802320e: 2b04 cmp r3, #4
  86651. 8023210: d106 bne.n 8023220 <dhcp_parse_reply+0x484>
  86652. value = lwip_ntohl(value);
  86653. 8023212: 68fb ldr r3, [r7, #12]
  86654. 8023214: 4618 mov r0, r3
  86655. 8023216: f7f5 fc9c bl 8018b52 <lwip_htonl>
  86656. 802321a: 4603 mov r3, r0
  86657. 802321c: 60fb str r3, [r7, #12]
  86658. 802321e: e011 b.n 8023244 <dhcp_parse_reply+0x4a8>
  86659. } else {
  86660. LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;);
  86661. 8023220: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  86662. 8023224: 2b01 cmp r3, #1
  86663. 8023226: d009 beq.n 802323c <dhcp_parse_reply+0x4a0>
  86664. 8023228: 4b45 ldr r3, [pc, #276] @ (8023340 <dhcp_parse_reply+0x5a4>)
  86665. 802322a: f44f 62d2 mov.w r2, #1680 @ 0x690
  86666. 802322e: 494b ldr r1, [pc, #300] @ (802335c <dhcp_parse_reply+0x5c0>)
  86667. 8023230: 4845 ldr r0, [pc, #276] @ (8023348 <dhcp_parse_reply+0x5ac>)
  86668. 8023232: f006 fbd3 bl 80299dc <iprintf>
  86669. 8023236: f06f 0305 mvn.w r3, #5
  86670. 802323a: e07d b.n 8023338 <dhcp_parse_reply+0x59c>
  86671. value = ((u8_t *)&value)[0];
  86672. 802323c: f107 030c add.w r3, r7, #12
  86673. 8023240: 781b ldrb r3, [r3, #0]
  86674. 8023242: 60fb str r3, [r7, #12]
  86675. }
  86676. dhcp_got_option(dhcp, decode_idx);
  86677. 8023244: 4a42 ldr r2, [pc, #264] @ (8023350 <dhcp_parse_reply+0x5b4>)
  86678. 8023246: 6a7b ldr r3, [r7, #36] @ 0x24
  86679. 8023248: 4413 add r3, r2
  86680. 802324a: 2201 movs r2, #1
  86681. 802324c: 701a strb r2, [r3, #0]
  86682. dhcp_set_option_value(dhcp, decode_idx, value);
  86683. 802324e: 68fa ldr r2, [r7, #12]
  86684. 8023250: 4941 ldr r1, [pc, #260] @ (8023358 <dhcp_parse_reply+0x5bc>)
  86685. 8023252: 6a7b ldr r3, [r7, #36] @ 0x24
  86686. 8023254: f841 2023 str.w r2, [r1, r3, lsl #2]
  86687. }
  86688. }
  86689. }
  86690. if (offset >= q->len) {
  86691. 8023258: 6b7b ldr r3, [r7, #52] @ 0x34
  86692. 802325a: 895b ldrh r3, [r3, #10]
  86693. 802325c: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  86694. 8023260: 429a cmp r2, r3
  86695. 8023262: d327 bcc.n 80232b4 <dhcp_parse_reply+0x518>
  86696. offset = (u16_t)(offset - q->len);
  86697. 8023264: 6b7b ldr r3, [r7, #52] @ 0x34
  86698. 8023266: 895b ldrh r3, [r3, #10]
  86699. 8023268: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  86700. 802326c: 1ad3 subs r3, r2, r3
  86701. 802326e: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  86702. offset_max = (u16_t)(offset_max - q->len);
  86703. 8023272: 6b7b ldr r3, [r7, #52] @ 0x34
  86704. 8023274: 895b ldrh r3, [r3, #10]
  86705. 8023276: 8ffa ldrh r2, [r7, #62] @ 0x3e
  86706. 8023278: 1ad3 subs r3, r2, r3
  86707. 802327a: 87fb strh r3, [r7, #62] @ 0x3e
  86708. if (offset < offset_max) {
  86709. 802327c: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  86710. 8023280: 8ffb ldrh r3, [r7, #62] @ 0x3e
  86711. 8023282: 429a cmp r2, r3
  86712. 8023284: d213 bcs.n 80232ae <dhcp_parse_reply+0x512>
  86713. q = q->next;
  86714. 8023286: 6b7b ldr r3, [r7, #52] @ 0x34
  86715. 8023288: 681b ldr r3, [r3, #0]
  86716. 802328a: 637b str r3, [r7, #52] @ 0x34
  86717. LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;);
  86718. 802328c: 6b7b ldr r3, [r7, #52] @ 0x34
  86719. 802328e: 2b00 cmp r3, #0
  86720. 8023290: d109 bne.n 80232a6 <dhcp_parse_reply+0x50a>
  86721. 8023292: 4b2b ldr r3, [pc, #172] @ (8023340 <dhcp_parse_reply+0x5a4>)
  86722. 8023294: f240 629d movw r2, #1693 @ 0x69d
  86723. 8023298: 4931 ldr r1, [pc, #196] @ (8023360 <dhcp_parse_reply+0x5c4>)
  86724. 802329a: 482b ldr r0, [pc, #172] @ (8023348 <dhcp_parse_reply+0x5ac>)
  86725. 802329c: f006 fb9e bl 80299dc <iprintf>
  86726. 80232a0: f06f 0305 mvn.w r3, #5
  86727. 80232a4: e048 b.n 8023338 <dhcp_parse_reply+0x59c>
  86728. options = (u8_t *)q->payload;
  86729. 80232a6: 6b7b ldr r3, [r7, #52] @ 0x34
  86730. 80232a8: 685b ldr r3, [r3, #4]
  86731. 80232aa: 643b str r3, [r7, #64] @ 0x40
  86732. 80232ac: e002 b.n 80232b4 <dhcp_parse_reply+0x518>
  86733. } else {
  86734. /* We've run out of bytes, probably no end marker. Don't proceed. */
  86735. return ERR_BUF;
  86736. 80232ae: f06f 0301 mvn.w r3, #1
  86737. 80232b2: e041 b.n 8023338 <dhcp_parse_reply+0x59c>
  86738. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  86739. 80232b4: 6b7b ldr r3, [r7, #52] @ 0x34
  86740. 80232b6: 2b00 cmp r3, #0
  86741. 80232b8: d00c beq.n 80232d4 <dhcp_parse_reply+0x538>
  86742. 80232ba: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  86743. 80232be: 8ffb ldrh r3, [r7, #62] @ 0x3e
  86744. 80232c0: 429a cmp r2, r3
  86745. 80232c2: d207 bcs.n 80232d4 <dhcp_parse_reply+0x538>
  86746. 80232c4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  86747. 80232c8: 6c3a ldr r2, [r7, #64] @ 0x40
  86748. 80232ca: 4413 add r3, r2
  86749. 80232cc: 781b ldrb r3, [r3, #0]
  86750. 80232ce: 2bff cmp r3, #255 @ 0xff
  86751. 80232d0: f47f ada8 bne.w 8022e24 <dhcp_parse_reply+0x88>
  86752. }
  86753. }
  86754. }
  86755. /* is this an overloaded message? */
  86756. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) {
  86757. 80232d4: 4b1e ldr r3, [pc, #120] @ (8023350 <dhcp_parse_reply+0x5b4>)
  86758. 80232d6: 781b ldrb r3, [r3, #0]
  86759. 80232d8: 2b00 cmp r3, #0
  86760. 80232da: d018 beq.n 802330e <dhcp_parse_reply+0x572>
  86761. u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  86762. 80232dc: 4b1e ldr r3, [pc, #120] @ (8023358 <dhcp_parse_reply+0x5bc>)
  86763. 80232de: 681b ldr r3, [r3, #0]
  86764. 80232e0: 613b str r3, [r7, #16]
  86765. dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  86766. 80232e2: 4b1b ldr r3, [pc, #108] @ (8023350 <dhcp_parse_reply+0x5b4>)
  86767. 80232e4: 2200 movs r2, #0
  86768. 80232e6: 701a strb r2, [r3, #0]
  86769. if (overload == DHCP_OVERLOAD_FILE) {
  86770. 80232e8: 693b ldr r3, [r7, #16]
  86771. 80232ea: 2b01 cmp r3, #1
  86772. 80232ec: d102 bne.n 80232f4 <dhcp_parse_reply+0x558>
  86773. parse_file_as_options = 1;
  86774. 80232ee: 2301 movs r3, #1
  86775. 80232f0: 633b str r3, [r7, #48] @ 0x30
  86776. 80232f2: e00c b.n 802330e <dhcp_parse_reply+0x572>
  86777. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n"));
  86778. } else if (overload == DHCP_OVERLOAD_SNAME) {
  86779. 80232f4: 693b ldr r3, [r7, #16]
  86780. 80232f6: 2b02 cmp r3, #2
  86781. 80232f8: d102 bne.n 8023300 <dhcp_parse_reply+0x564>
  86782. parse_sname_as_options = 1;
  86783. 80232fa: 2301 movs r3, #1
  86784. 80232fc: 62fb str r3, [r7, #44] @ 0x2c
  86785. 80232fe: e006 b.n 802330e <dhcp_parse_reply+0x572>
  86786. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n"));
  86787. } else if (overload == DHCP_OVERLOAD_SNAME_FILE) {
  86788. 8023300: 693b ldr r3, [r7, #16]
  86789. 8023302: 2b03 cmp r3, #3
  86790. 8023304: d103 bne.n 802330e <dhcp_parse_reply+0x572>
  86791. parse_sname_as_options = 1;
  86792. 8023306: 2301 movs r3, #1
  86793. 8023308: 62fb str r3, [r7, #44] @ 0x2c
  86794. parse_file_as_options = 1;
  86795. 802330a: 2301 movs r3, #1
  86796. 802330c: 633b str r3, [r7, #48] @ 0x30
  86797. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname and file field\n"));
  86798. } else {
  86799. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("invalid overload option: %d\n", (int)overload));
  86800. }
  86801. }
  86802. if (parse_file_as_options) {
  86803. 802330e: 6b3b ldr r3, [r7, #48] @ 0x30
  86804. 8023310: 2b00 cmp r3, #0
  86805. 8023312: d006 beq.n 8023322 <dhcp_parse_reply+0x586>
  86806. /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */
  86807. parse_file_as_options = 0;
  86808. 8023314: 2300 movs r3, #0
  86809. 8023316: 633b str r3, [r7, #48] @ 0x30
  86810. options_idx = DHCP_FILE_OFS;
  86811. 8023318: 236c movs r3, #108 @ 0x6c
  86812. 802331a: 87bb strh r3, [r7, #60] @ 0x3c
  86813. options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN;
  86814. 802331c: 23ec movs r3, #236 @ 0xec
  86815. 802331e: 877b strh r3, [r7, #58] @ 0x3a
  86816. #if LWIP_DHCP_BOOTP_FILE
  86817. file_overloaded = 1;
  86818. #endif
  86819. goto again;
  86820. 8023320: e559 b.n 8022dd6 <dhcp_parse_reply+0x3a>
  86821. } else if (parse_sname_as_options) {
  86822. 8023322: 6afb ldr r3, [r7, #44] @ 0x2c
  86823. 8023324: 2b00 cmp r3, #0
  86824. 8023326: d006 beq.n 8023336 <dhcp_parse_reply+0x59a>
  86825. parse_sname_as_options = 0;
  86826. 8023328: 2300 movs r3, #0
  86827. 802332a: 62fb str r3, [r7, #44] @ 0x2c
  86828. options_idx = DHCP_SNAME_OFS;
  86829. 802332c: 232c movs r3, #44 @ 0x2c
  86830. 802332e: 87bb strh r3, [r7, #60] @ 0x3c
  86831. options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN;
  86832. 8023330: 236c movs r3, #108 @ 0x6c
  86833. 8023332: 877b strh r3, [r7, #58] @ 0x3a
  86834. goto again;
  86835. 8023334: e54f b.n 8022dd6 <dhcp_parse_reply+0x3a>
  86836. }
  86837. /* make sure the string is really NULL-terminated */
  86838. dhcp->boot_file_name[DHCP_FILE_LEN-1] = 0;
  86839. }
  86840. #endif /* LWIP_DHCP_BOOTP_FILE */
  86841. return ERR_OK;
  86842. 8023336: 2300 movs r3, #0
  86843. }
  86844. 8023338: 4618 mov r0, r3
  86845. 802333a: 3748 adds r7, #72 @ 0x48
  86846. 802333c: 46bd mov sp, r7
  86847. 802333e: bd80 pop {r7, pc}
  86848. 8023340: 0802fe9c .word 0x0802fe9c
  86849. 8023344: 08030124 .word 0x08030124
  86850. 8023348: 0802fefc .word 0x0802fefc
  86851. 802334c: 08030168 .word 0x08030168
  86852. 8023350: 2402af0c .word 0x2402af0c
  86853. 8023354: 0803017c .word 0x0803017c
  86854. 8023358: 2402aeec .word 0x2402aeec
  86855. 802335c: 08030194 .word 0x08030194
  86856. 8023360: 080301a8 .word 0x080301a8
  86857. 08023364 <dhcp_recv>:
  86858. /**
  86859. * If an incoming DHCP message is in response to us, then trigger the state machine
  86860. */
  86861. static void
  86862. dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
  86863. {
  86864. 8023364: b580 push {r7, lr}
  86865. 8023366: b08a sub sp, #40 @ 0x28
  86866. 8023368: af00 add r7, sp, #0
  86867. 802336a: 60f8 str r0, [r7, #12]
  86868. 802336c: 60b9 str r1, [r7, #8]
  86869. 802336e: 607a str r2, [r7, #4]
  86870. 8023370: 603b str r3, [r7, #0]
  86871. struct netif *netif = ip_current_input_netif();
  86872. 8023372: 4b5e ldr r3, [pc, #376] @ (80234ec <dhcp_recv+0x188>)
  86873. 8023374: 685b ldr r3, [r3, #4]
  86874. 8023376: 61fb str r3, [r7, #28]
  86875. struct dhcp *dhcp = netif_dhcp_data(netif);
  86876. 8023378: 69fb ldr r3, [r7, #28]
  86877. 802337a: 6a5b ldr r3, [r3, #36] @ 0x24
  86878. 802337c: 61bb str r3, [r7, #24]
  86879. struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload;
  86880. 802337e: 687b ldr r3, [r7, #4]
  86881. 8023380: 685b ldr r3, [r3, #4]
  86882. 8023382: 617b str r3, [r7, #20]
  86883. struct dhcp_msg *msg_in;
  86884. LWIP_UNUSED_ARG(arg);
  86885. /* Caught DHCP message from netif that does not have DHCP enabled? -> not interested */
  86886. if ((dhcp == NULL) || (dhcp->pcb_allocated == 0)) {
  86887. 8023384: 69bb ldr r3, [r7, #24]
  86888. 8023386: 2b00 cmp r3, #0
  86889. 8023388: f000 809a beq.w 80234c0 <dhcp_recv+0x15c>
  86890. 802338c: 69bb ldr r3, [r7, #24]
  86891. 802338e: 791b ldrb r3, [r3, #4]
  86892. 8023390: 2b00 cmp r3, #0
  86893. 8023392: f000 8095 beq.w 80234c0 <dhcp_recv+0x15c>
  86894. /* prevent warnings about unused arguments */
  86895. LWIP_UNUSED_ARG(pcb);
  86896. LWIP_UNUSED_ARG(addr);
  86897. LWIP_UNUSED_ARG(port);
  86898. if (p->len < DHCP_MIN_REPLY_LEN) {
  86899. 8023396: 687b ldr r3, [r7, #4]
  86900. 8023398: 895b ldrh r3, [r3, #10]
  86901. 802339a: 2b2b cmp r3, #43 @ 0x2b
  86902. 802339c: f240 8092 bls.w 80234c4 <dhcp_recv+0x160>
  86903. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP reply message or pbuf too short\n"));
  86904. goto free_pbuf_and_return;
  86905. }
  86906. if (reply_msg->op != DHCP_BOOTREPLY) {
  86907. 80233a0: 697b ldr r3, [r7, #20]
  86908. 80233a2: 781b ldrb r3, [r3, #0]
  86909. 80233a4: 2b02 cmp r3, #2
  86910. 80233a6: f040 808f bne.w 80234c8 <dhcp_recv+0x164>
  86911. 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));
  86912. goto free_pbuf_and_return;
  86913. }
  86914. /* iterate through hardware address and match against DHCP message */
  86915. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  86916. 80233aa: 2300 movs r3, #0
  86917. 80233ac: 74fb strb r3, [r7, #19]
  86918. 80233ae: e00e b.n 80233ce <dhcp_recv+0x6a>
  86919. if (netif->hwaddr[i] != reply_msg->chaddr[i]) {
  86920. 80233b0: 7cfb ldrb r3, [r7, #19]
  86921. 80233b2: 69fa ldr r2, [r7, #28]
  86922. 80233b4: 4413 add r3, r2
  86923. 80233b6: f893 202a ldrb.w r2, [r3, #42] @ 0x2a
  86924. 80233ba: 7cfb ldrb r3, [r7, #19]
  86925. 80233bc: 6979 ldr r1, [r7, #20]
  86926. 80233be: 440b add r3, r1
  86927. 80233c0: 7f1b ldrb r3, [r3, #28]
  86928. 80233c2: 429a cmp r2, r3
  86929. 80233c4: f040 8082 bne.w 80234cc <dhcp_recv+0x168>
  86930. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  86931. 80233c8: 7cfb ldrb r3, [r7, #19]
  86932. 80233ca: 3301 adds r3, #1
  86933. 80233cc: 74fb strb r3, [r7, #19]
  86934. 80233ce: 69fb ldr r3, [r7, #28]
  86935. 80233d0: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  86936. 80233d4: 7cfa ldrb r2, [r7, #19]
  86937. 80233d6: 429a cmp r2, r3
  86938. 80233d8: d202 bcs.n 80233e0 <dhcp_recv+0x7c>
  86939. 80233da: 7cfb ldrb r3, [r7, #19]
  86940. 80233dc: 2b05 cmp r3, #5
  86941. 80233de: d9e7 bls.n 80233b0 <dhcp_recv+0x4c>
  86942. (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i]));
  86943. goto free_pbuf_and_return;
  86944. }
  86945. }
  86946. /* match transaction ID against what we expected */
  86947. if (lwip_ntohl(reply_msg->xid) != dhcp->xid) {
  86948. 80233e0: 697b ldr r3, [r7, #20]
  86949. 80233e2: 685b ldr r3, [r3, #4]
  86950. 80233e4: 4618 mov r0, r3
  86951. 80233e6: f7f5 fbb4 bl 8018b52 <lwip_htonl>
  86952. 80233ea: 4602 mov r2, r0
  86953. 80233ec: 69bb ldr r3, [r7, #24]
  86954. 80233ee: 681b ldr r3, [r3, #0]
  86955. 80233f0: 429a cmp r2, r3
  86956. 80233f2: d16d bne.n 80234d0 <dhcp_recv+0x16c>
  86957. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  86958. ("transaction id mismatch reply_msg->xid(%"X32_F")!=dhcp->xid(%"X32_F")\n", lwip_ntohl(reply_msg->xid), dhcp->xid));
  86959. goto free_pbuf_and_return;
  86960. }
  86961. /* option fields could be unfold? */
  86962. if (dhcp_parse_reply(p, dhcp) != ERR_OK) {
  86963. 80233f4: 69b9 ldr r1, [r7, #24]
  86964. 80233f6: 6878 ldr r0, [r7, #4]
  86965. 80233f8: f7ff fcd0 bl 8022d9c <dhcp_parse_reply>
  86966. 80233fc: 4603 mov r3, r0
  86967. 80233fe: 2b00 cmp r3, #0
  86968. 8023400: d168 bne.n 80234d4 <dhcp_recv+0x170>
  86969. goto free_pbuf_and_return;
  86970. }
  86971. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("searching DHCP_OPTION_MESSAGE_TYPE\n"));
  86972. /* obtain pointer to DHCP message type */
  86973. if (!dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE)) {
  86974. 8023402: 4b3b ldr r3, [pc, #236] @ (80234f0 <dhcp_recv+0x18c>)
  86975. 8023404: 785b ldrb r3, [r3, #1]
  86976. 8023406: 2b00 cmp r3, #0
  86977. 8023408: d066 beq.n 80234d8 <dhcp_recv+0x174>
  86978. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP_OPTION_MESSAGE_TYPE option not found\n"));
  86979. goto free_pbuf_and_return;
  86980. }
  86981. msg_in = (struct dhcp_msg *)p->payload;
  86982. 802340a: 687b ldr r3, [r7, #4]
  86983. 802340c: 685b ldr r3, [r3, #4]
  86984. 802340e: 627b str r3, [r7, #36] @ 0x24
  86985. /* read DHCP message type */
  86986. msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE);
  86987. 8023410: 4b38 ldr r3, [pc, #224] @ (80234f4 <dhcp_recv+0x190>)
  86988. 8023412: 685b ldr r3, [r3, #4]
  86989. 8023414: f887 3023 strb.w r3, [r7, #35] @ 0x23
  86990. /* message type is DHCP ACK? */
  86991. if (msg_type == DHCP_ACK) {
  86992. 8023418: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  86993. 802341c: 2b05 cmp r3, #5
  86994. 802341e: d12a bne.n 8023476 <dhcp_recv+0x112>
  86995. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n"));
  86996. /* in requesting state? */
  86997. if (dhcp->state == DHCP_STATE_REQUESTING) {
  86998. 8023420: 69bb ldr r3, [r7, #24]
  86999. 8023422: 795b ldrb r3, [r3, #5]
  87000. 8023424: 2b01 cmp r3, #1
  87001. 8023426: d112 bne.n 802344e <dhcp_recv+0xea>
  87002. dhcp_handle_ack(netif, msg_in);
  87003. 8023428: 6a79 ldr r1, [r7, #36] @ 0x24
  87004. 802342a: 69f8 ldr r0, [r7, #28]
  87005. 802342c: f7fe fe00 bl 8022030 <dhcp_handle_ack>
  87006. #if DHCP_DOES_ARP_CHECK
  87007. if ((netif->flags & NETIF_FLAG_ETHARP) != 0) {
  87008. 8023430: 69fb ldr r3, [r7, #28]
  87009. 8023432: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  87010. 8023436: f003 0308 and.w r3, r3, #8
  87011. 802343a: 2b00 cmp r3, #0
  87012. 802343c: d003 beq.n 8023446 <dhcp_recv+0xe2>
  87013. /* check if the acknowledged lease address is already in use */
  87014. dhcp_check(netif);
  87015. 802343e: 69f8 ldr r0, [r7, #28]
  87016. 8023440: f7fe fb6e bl 8021b20 <dhcp_check>
  87017. 8023444: e04b b.n 80234de <dhcp_recv+0x17a>
  87018. } else {
  87019. /* bind interface to the acknowledged lease address */
  87020. dhcp_bind(netif);
  87021. 8023446: 69f8 ldr r0, [r7, #28]
  87022. 8023448: f7ff f852 bl 80224f0 <dhcp_bind>
  87023. 802344c: e047 b.n 80234de <dhcp_recv+0x17a>
  87024. /* bind interface to the acknowledged lease address */
  87025. dhcp_bind(netif);
  87026. #endif
  87027. }
  87028. /* already bound to the given lease address? */
  87029. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  87030. 802344e: 69bb ldr r3, [r7, #24]
  87031. 8023450: 795b ldrb r3, [r3, #5]
  87032. 8023452: 2b03 cmp r3, #3
  87033. 8023454: d007 beq.n 8023466 <dhcp_recv+0x102>
  87034. 8023456: 69bb ldr r3, [r7, #24]
  87035. 8023458: 795b ldrb r3, [r3, #5]
  87036. 802345a: 2b04 cmp r3, #4
  87037. 802345c: d003 beq.n 8023466 <dhcp_recv+0x102>
  87038. (dhcp->state == DHCP_STATE_RENEWING)) {
  87039. 802345e: 69bb ldr r3, [r7, #24]
  87040. 8023460: 795b ldrb r3, [r3, #5]
  87041. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  87042. 8023462: 2b05 cmp r3, #5
  87043. 8023464: d13b bne.n 80234de <dhcp_recv+0x17a>
  87044. dhcp_handle_ack(netif, msg_in);
  87045. 8023466: 6a79 ldr r1, [r7, #36] @ 0x24
  87046. 8023468: 69f8 ldr r0, [r7, #28]
  87047. 802346a: f7fe fde1 bl 8022030 <dhcp_handle_ack>
  87048. dhcp_bind(netif);
  87049. 802346e: 69f8 ldr r0, [r7, #28]
  87050. 8023470: f7ff f83e bl 80224f0 <dhcp_bind>
  87051. 8023474: e033 b.n 80234de <dhcp_recv+0x17a>
  87052. }
  87053. }
  87054. /* received a DHCP_NAK in appropriate state? */
  87055. else if ((msg_type == DHCP_NAK) &&
  87056. 8023476: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  87057. 802347a: 2b06 cmp r3, #6
  87058. 802347c: d113 bne.n 80234a6 <dhcp_recv+0x142>
  87059. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  87060. 802347e: 69bb ldr r3, [r7, #24]
  87061. 8023480: 795b ldrb r3, [r3, #5]
  87062. else if ((msg_type == DHCP_NAK) &&
  87063. 8023482: 2b03 cmp r3, #3
  87064. 8023484: d00b beq.n 802349e <dhcp_recv+0x13a>
  87065. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  87066. 8023486: 69bb ldr r3, [r7, #24]
  87067. 8023488: 795b ldrb r3, [r3, #5]
  87068. 802348a: 2b01 cmp r3, #1
  87069. 802348c: d007 beq.n 802349e <dhcp_recv+0x13a>
  87070. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  87071. 802348e: 69bb ldr r3, [r7, #24]
  87072. 8023490: 795b ldrb r3, [r3, #5]
  87073. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  87074. 8023492: 2b04 cmp r3, #4
  87075. 8023494: d003 beq.n 802349e <dhcp_recv+0x13a>
  87076. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  87077. 8023496: 69bb ldr r3, [r7, #24]
  87078. 8023498: 795b ldrb r3, [r3, #5]
  87079. 802349a: 2b05 cmp r3, #5
  87080. 802349c: d103 bne.n 80234a6 <dhcp_recv+0x142>
  87081. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n"));
  87082. dhcp_handle_nak(netif);
  87083. 802349e: 69f8 ldr r0, [r7, #28]
  87084. 80234a0: f7fe fb24 bl 8021aec <dhcp_handle_nak>
  87085. 80234a4: e01b b.n 80234de <dhcp_recv+0x17a>
  87086. }
  87087. /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */
  87088. else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) {
  87089. 80234a6: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  87090. 80234aa: 2b02 cmp r3, #2
  87091. 80234ac: d116 bne.n 80234dc <dhcp_recv+0x178>
  87092. 80234ae: 69bb ldr r3, [r7, #24]
  87093. 80234b0: 795b ldrb r3, [r3, #5]
  87094. 80234b2: 2b06 cmp r3, #6
  87095. 80234b4: d112 bne.n 80234dc <dhcp_recv+0x178>
  87096. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_OFFER received in DHCP_STATE_SELECTING state\n"));
  87097. /* remember offered lease */
  87098. dhcp_handle_offer(netif, msg_in);
  87099. 80234b6: 6a79 ldr r1, [r7, #36] @ 0x24
  87100. 80234b8: 69f8 ldr r0, [r7, #28]
  87101. 80234ba: f7fe fb65 bl 8021b88 <dhcp_handle_offer>
  87102. 80234be: e00e b.n 80234de <dhcp_recv+0x17a>
  87103. goto free_pbuf_and_return;
  87104. 80234c0: bf00 nop
  87105. 80234c2: e00c b.n 80234de <dhcp_recv+0x17a>
  87106. goto free_pbuf_and_return;
  87107. 80234c4: bf00 nop
  87108. 80234c6: e00a b.n 80234de <dhcp_recv+0x17a>
  87109. goto free_pbuf_and_return;
  87110. 80234c8: bf00 nop
  87111. 80234ca: e008 b.n 80234de <dhcp_recv+0x17a>
  87112. goto free_pbuf_and_return;
  87113. 80234cc: bf00 nop
  87114. 80234ce: e006 b.n 80234de <dhcp_recv+0x17a>
  87115. goto free_pbuf_and_return;
  87116. 80234d0: bf00 nop
  87117. 80234d2: e004 b.n 80234de <dhcp_recv+0x17a>
  87118. goto free_pbuf_and_return;
  87119. 80234d4: bf00 nop
  87120. 80234d6: e002 b.n 80234de <dhcp_recv+0x17a>
  87121. goto free_pbuf_and_return;
  87122. 80234d8: bf00 nop
  87123. 80234da: e000 b.n 80234de <dhcp_recv+0x17a>
  87124. }
  87125. free_pbuf_and_return:
  87126. 80234dc: bf00 nop
  87127. pbuf_free(p);
  87128. 80234de: 6878 ldr r0, [r7, #4]
  87129. 80234e0: f7f7 f804 bl 801a4ec <pbuf_free>
  87130. }
  87131. 80234e4: bf00 nop
  87132. 80234e6: 3728 adds r7, #40 @ 0x28
  87133. 80234e8: 46bd mov sp, r7
  87134. 80234ea: bd80 pop {r7, pc}
  87135. 80234ec: 24024338 .word 0x24024338
  87136. 80234f0: 2402af0c .word 0x2402af0c
  87137. 80234f4: 2402aeec .word 0x2402aeec
  87138. 080234f8 <dhcp_create_msg>:
  87139. * @param dhcp dhcp control struct
  87140. * @param message_type message type of the request
  87141. */
  87142. static struct pbuf *
  87143. dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len)
  87144. {
  87145. 80234f8: b580 push {r7, lr}
  87146. 80234fa: b088 sub sp, #32
  87147. 80234fc: af00 add r7, sp, #0
  87148. 80234fe: 60f8 str r0, [r7, #12]
  87149. 8023500: 60b9 str r1, [r7, #8]
  87150. 8023502: 603b str r3, [r7, #0]
  87151. 8023504: 4613 mov r3, r2
  87152. 8023506: 71fb strb r3, [r7, #7]
  87153. if (!xid_initialised) {
  87154. xid = DHCP_GLOBAL_XID;
  87155. xid_initialised = !xid_initialised;
  87156. }
  87157. #endif
  87158. LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;);
  87159. 8023508: 68fb ldr r3, [r7, #12]
  87160. 802350a: 2b00 cmp r3, #0
  87161. 802350c: d108 bne.n 8023520 <dhcp_create_msg+0x28>
  87162. 802350e: 4b5f ldr r3, [pc, #380] @ (802368c <dhcp_create_msg+0x194>)
  87163. 8023510: f240 7269 movw r2, #1897 @ 0x769
  87164. 8023514: 495e ldr r1, [pc, #376] @ (8023690 <dhcp_create_msg+0x198>)
  87165. 8023516: 485f ldr r0, [pc, #380] @ (8023694 <dhcp_create_msg+0x19c>)
  87166. 8023518: f006 fa60 bl 80299dc <iprintf>
  87167. 802351c: 2300 movs r3, #0
  87168. 802351e: e0b1 b.n 8023684 <dhcp_create_msg+0x18c>
  87169. LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;);
  87170. 8023520: 68bb ldr r3, [r7, #8]
  87171. 8023522: 2b00 cmp r3, #0
  87172. 8023524: d108 bne.n 8023538 <dhcp_create_msg+0x40>
  87173. 8023526: 4b59 ldr r3, [pc, #356] @ (802368c <dhcp_create_msg+0x194>)
  87174. 8023528: f240 726a movw r2, #1898 @ 0x76a
  87175. 802352c: 495a ldr r1, [pc, #360] @ (8023698 <dhcp_create_msg+0x1a0>)
  87176. 802352e: 4859 ldr r0, [pc, #356] @ (8023694 <dhcp_create_msg+0x19c>)
  87177. 8023530: f006 fa54 bl 80299dc <iprintf>
  87178. 8023534: 2300 movs r3, #0
  87179. 8023536: e0a5 b.n 8023684 <dhcp_create_msg+0x18c>
  87180. p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM);
  87181. 8023538: f44f 7220 mov.w r2, #640 @ 0x280
  87182. 802353c: f44f 719a mov.w r1, #308 @ 0x134
  87183. 8023540: 2036 movs r0, #54 @ 0x36
  87184. 8023542: f7f6 fcbd bl 8019ec0 <pbuf_alloc>
  87185. 8023546: 61b8 str r0, [r7, #24]
  87186. if (p_out == NULL) {
  87187. 8023548: 69bb ldr r3, [r7, #24]
  87188. 802354a: 2b00 cmp r3, #0
  87189. 802354c: d101 bne.n 8023552 <dhcp_create_msg+0x5a>
  87190. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  87191. ("dhcp_create_msg(): could not allocate pbuf\n"));
  87192. return NULL;
  87193. 802354e: 2300 movs r3, #0
  87194. 8023550: e098 b.n 8023684 <dhcp_create_msg+0x18c>
  87195. }
  87196. LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg",
  87197. 8023552: 69bb ldr r3, [r7, #24]
  87198. 8023554: 895b ldrh r3, [r3, #10]
  87199. 8023556: f5b3 7f9a cmp.w r3, #308 @ 0x134
  87200. 802355a: d206 bcs.n 802356a <dhcp_create_msg+0x72>
  87201. 802355c: 4b4b ldr r3, [pc, #300] @ (802368c <dhcp_create_msg+0x194>)
  87202. 802355e: f240 7271 movw r2, #1905 @ 0x771
  87203. 8023562: 494e ldr r1, [pc, #312] @ (802369c <dhcp_create_msg+0x1a4>)
  87204. 8023564: 484b ldr r0, [pc, #300] @ (8023694 <dhcp_create_msg+0x19c>)
  87205. 8023566: f006 fa39 bl 80299dc <iprintf>
  87206. (p_out->len >= sizeof(struct dhcp_msg)));
  87207. /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */
  87208. if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) {
  87209. 802356a: 79fb ldrb r3, [r7, #7]
  87210. 802356c: 2b03 cmp r3, #3
  87211. 802356e: d103 bne.n 8023578 <dhcp_create_msg+0x80>
  87212. 8023570: 68bb ldr r3, [r7, #8]
  87213. 8023572: 795b ldrb r3, [r3, #5]
  87214. 8023574: 2b03 cmp r3, #3
  87215. 8023576: d10d bne.n 8023594 <dhcp_create_msg+0x9c>
  87216. /* reuse transaction identifier in retransmissions */
  87217. if (dhcp->tries == 0) {
  87218. 8023578: 68bb ldr r3, [r7, #8]
  87219. 802357a: 799b ldrb r3, [r3, #6]
  87220. 802357c: 2b00 cmp r3, #0
  87221. 802357e: d105 bne.n 802358c <dhcp_create_msg+0x94>
  87222. #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND)
  87223. xid = LWIP_RAND();
  87224. 8023580: f004 ff02 bl 8028388 <rand>
  87225. 8023584: 4603 mov r3, r0
  87226. 8023586: 461a mov r2, r3
  87227. 8023588: 4b45 ldr r3, [pc, #276] @ (80236a0 <dhcp_create_msg+0x1a8>)
  87228. 802358a: 601a str r2, [r3, #0]
  87229. #else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  87230. xid++;
  87231. #endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  87232. }
  87233. dhcp->xid = xid;
  87234. 802358c: 4b44 ldr r3, [pc, #272] @ (80236a0 <dhcp_create_msg+0x1a8>)
  87235. 802358e: 681a ldr r2, [r3, #0]
  87236. 8023590: 68bb ldr r3, [r7, #8]
  87237. 8023592: 601a str r2, [r3, #0]
  87238. }
  87239. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE,
  87240. ("transaction id xid(%"X32_F")\n", xid));
  87241. msg_out = (struct dhcp_msg *)p_out->payload;
  87242. 8023594: 69bb ldr r3, [r7, #24]
  87243. 8023596: 685b ldr r3, [r3, #4]
  87244. 8023598: 617b str r3, [r7, #20]
  87245. memset(msg_out, 0, sizeof(struct dhcp_msg));
  87246. 802359a: f44f 729a mov.w r2, #308 @ 0x134
  87247. 802359e: 2100 movs r1, #0
  87248. 80235a0: 6978 ldr r0, [r7, #20]
  87249. 80235a2: f006 fbad bl 8029d00 <memset>
  87250. msg_out->op = DHCP_BOOTREQUEST;
  87251. 80235a6: 697b ldr r3, [r7, #20]
  87252. 80235a8: 2201 movs r2, #1
  87253. 80235aa: 701a strb r2, [r3, #0]
  87254. /* @todo: make link layer independent */
  87255. msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET;
  87256. 80235ac: 697b ldr r3, [r7, #20]
  87257. 80235ae: 2201 movs r2, #1
  87258. 80235b0: 705a strb r2, [r3, #1]
  87259. msg_out->hlen = netif->hwaddr_len;
  87260. 80235b2: 68fb ldr r3, [r7, #12]
  87261. 80235b4: f893 2030 ldrb.w r2, [r3, #48] @ 0x30
  87262. 80235b8: 697b ldr r3, [r7, #20]
  87263. 80235ba: 709a strb r2, [r3, #2]
  87264. msg_out->xid = lwip_htonl(dhcp->xid);
  87265. 80235bc: 68bb ldr r3, [r7, #8]
  87266. 80235be: 681b ldr r3, [r3, #0]
  87267. 80235c0: 4618 mov r0, r3
  87268. 80235c2: f7f5 fac6 bl 8018b52 <lwip_htonl>
  87269. 80235c6: 4602 mov r2, r0
  87270. 80235c8: 697b ldr r3, [r7, #20]
  87271. 80235ca: 605a str r2, [r3, #4]
  87272. /* we don't need the broadcast flag since we can receive unicast traffic
  87273. before being fully configured! */
  87274. /* set ciaddr to netif->ip_addr based on message_type and state */
  87275. if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) ||
  87276. 80235cc: 79fb ldrb r3, [r7, #7]
  87277. 80235ce: 2b08 cmp r3, #8
  87278. 80235d0: d010 beq.n 80235f4 <dhcp_create_msg+0xfc>
  87279. 80235d2: 79fb ldrb r3, [r7, #7]
  87280. 80235d4: 2b04 cmp r3, #4
  87281. 80235d6: d00d beq.n 80235f4 <dhcp_create_msg+0xfc>
  87282. 80235d8: 79fb ldrb r3, [r7, #7]
  87283. 80235da: 2b07 cmp r3, #7
  87284. 80235dc: d00a beq.n 80235f4 <dhcp_create_msg+0xfc>
  87285. 80235de: 79fb ldrb r3, [r7, #7]
  87286. 80235e0: 2b03 cmp r3, #3
  87287. 80235e2: d10c bne.n 80235fe <dhcp_create_msg+0x106>
  87288. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  87289. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  87290. 80235e4: 68bb ldr r3, [r7, #8]
  87291. 80235e6: 795b ldrb r3, [r3, #5]
  87292. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  87293. 80235e8: 2b05 cmp r3, #5
  87294. 80235ea: d003 beq.n 80235f4 <dhcp_create_msg+0xfc>
  87295. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  87296. 80235ec: 68bb ldr r3, [r7, #8]
  87297. 80235ee: 795b ldrb r3, [r3, #5]
  87298. 80235f0: 2b04 cmp r3, #4
  87299. 80235f2: d104 bne.n 80235fe <dhcp_create_msg+0x106>
  87300. ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif));
  87301. 80235f4: 68fb ldr r3, [r7, #12]
  87302. 80235f6: 3304 adds r3, #4
  87303. 80235f8: 681a ldr r2, [r3, #0]
  87304. 80235fa: 697b ldr r3, [r7, #20]
  87305. 80235fc: 60da str r2, [r3, #12]
  87306. }
  87307. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  87308. 80235fe: 2300 movs r3, #0
  87309. 8023600: 83fb strh r3, [r7, #30]
  87310. 8023602: e00c b.n 802361e <dhcp_create_msg+0x126>
  87311. /* copy netif hardware address (padded with zeroes through memset already) */
  87312. msg_out->chaddr[i] = netif->hwaddr[i];
  87313. 8023604: 8bfa ldrh r2, [r7, #30]
  87314. 8023606: 8bfb ldrh r3, [r7, #30]
  87315. 8023608: 68f9 ldr r1, [r7, #12]
  87316. 802360a: 440a add r2, r1
  87317. 802360c: f892 102a ldrb.w r1, [r2, #42] @ 0x2a
  87318. 8023610: 697a ldr r2, [r7, #20]
  87319. 8023612: 4413 add r3, r2
  87320. 8023614: 460a mov r2, r1
  87321. 8023616: 771a strb r2, [r3, #28]
  87322. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  87323. 8023618: 8bfb ldrh r3, [r7, #30]
  87324. 802361a: 3301 adds r3, #1
  87325. 802361c: 83fb strh r3, [r7, #30]
  87326. 802361e: 8bfb ldrh r3, [r7, #30]
  87327. 8023620: 2b05 cmp r3, #5
  87328. 8023622: d9ef bls.n 8023604 <dhcp_create_msg+0x10c>
  87329. }
  87330. msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE);
  87331. 8023624: 697b ldr r3, [r7, #20]
  87332. 8023626: 2200 movs r2, #0
  87333. 8023628: f042 0263 orr.w r2, r2, #99 @ 0x63
  87334. 802362c: f883 20ec strb.w r2, [r3, #236] @ 0xec
  87335. 8023630: 2200 movs r2, #0
  87336. 8023632: f062 027d orn r2, r2, #125 @ 0x7d
  87337. 8023636: f883 20ed strb.w r2, [r3, #237] @ 0xed
  87338. 802363a: 2200 movs r2, #0
  87339. 802363c: f042 0253 orr.w r2, r2, #83 @ 0x53
  87340. 8023640: f883 20ee strb.w r2, [r3, #238] @ 0xee
  87341. 8023644: 2200 movs r2, #0
  87342. 8023646: f042 0263 orr.w r2, r2, #99 @ 0x63
  87343. 802364a: f883 20ef strb.w r2, [r3, #239] @ 0xef
  87344. /* Add option MESSAGE_TYPE */
  87345. options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN);
  87346. 802364e: 697b ldr r3, [r7, #20]
  87347. 8023650: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87348. 8023654: 2301 movs r3, #1
  87349. 8023656: 2235 movs r2, #53 @ 0x35
  87350. 8023658: 2000 movs r0, #0
  87351. 802365a: f7ff facf bl 8022bfc <dhcp_option>
  87352. 802365e: 4603 mov r3, r0
  87353. 8023660: 827b strh r3, [r7, #18]
  87354. options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type);
  87355. 8023662: 697b ldr r3, [r7, #20]
  87356. 8023664: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87357. 8023668: 79fa ldrb r2, [r7, #7]
  87358. 802366a: 8a7b ldrh r3, [r7, #18]
  87359. 802366c: 4618 mov r0, r3
  87360. 802366e: f7ff faf9 bl 8022c64 <dhcp_option_byte>
  87361. 8023672: 4603 mov r3, r0
  87362. 8023674: 827b strh r3, [r7, #18]
  87363. if (options_out_len) {
  87364. 8023676: 683b ldr r3, [r7, #0]
  87365. 8023678: 2b00 cmp r3, #0
  87366. 802367a: d002 beq.n 8023682 <dhcp_create_msg+0x18a>
  87367. *options_out_len = options_out_len_loc;
  87368. 802367c: 683b ldr r3, [r7, #0]
  87369. 802367e: 8a7a ldrh r2, [r7, #18]
  87370. 8023680: 801a strh r2, [r3, #0]
  87371. }
  87372. return p_out;
  87373. 8023682: 69bb ldr r3, [r7, #24]
  87374. }
  87375. 8023684: 4618 mov r0, r3
  87376. 8023686: 3720 adds r7, #32
  87377. 8023688: 46bd mov sp, r7
  87378. 802368a: bd80 pop {r7, pc}
  87379. 802368c: 0802fe9c .word 0x0802fe9c
  87380. 8023690: 080301bc .word 0x080301bc
  87381. 8023694: 0802fefc .word 0x0802fefc
  87382. 8023698: 080301dc .word 0x080301dc
  87383. 802369c: 080301fc .word 0x080301fc
  87384. 80236a0: 2402af1c .word 0x2402af1c
  87385. 080236a4 <dhcp_option_trailer>:
  87386. * Adds the END option to the DHCP message, and if
  87387. * necessary, up to three padding bytes.
  87388. */
  87389. static void
  87390. dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out)
  87391. {
  87392. 80236a4: b580 push {r7, lr}
  87393. 80236a6: b084 sub sp, #16
  87394. 80236a8: af00 add r7, sp, #0
  87395. 80236aa: 4603 mov r3, r0
  87396. 80236ac: 60b9 str r1, [r7, #8]
  87397. 80236ae: 607a str r2, [r7, #4]
  87398. 80236b0: 81fb strh r3, [r7, #14]
  87399. options[options_out_len++] = DHCP_OPTION_END;
  87400. 80236b2: 89fb ldrh r3, [r7, #14]
  87401. 80236b4: 1c5a adds r2, r3, #1
  87402. 80236b6: 81fa strh r2, [r7, #14]
  87403. 80236b8: 461a mov r2, r3
  87404. 80236ba: 68bb ldr r3, [r7, #8]
  87405. 80236bc: 4413 add r3, r2
  87406. 80236be: 22ff movs r2, #255 @ 0xff
  87407. 80236c0: 701a strb r2, [r3, #0]
  87408. /* packet is too small, or not 4 byte aligned? */
  87409. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  87410. 80236c2: e007 b.n 80236d4 <dhcp_option_trailer+0x30>
  87411. (options_out_len < DHCP_OPTIONS_LEN)) {
  87412. /* add a fill/padding byte */
  87413. options[options_out_len++] = 0;
  87414. 80236c4: 89fb ldrh r3, [r7, #14]
  87415. 80236c6: 1c5a adds r2, r3, #1
  87416. 80236c8: 81fa strh r2, [r7, #14]
  87417. 80236ca: 461a mov r2, r3
  87418. 80236cc: 68bb ldr r3, [r7, #8]
  87419. 80236ce: 4413 add r3, r2
  87420. 80236d0: 2200 movs r2, #0
  87421. 80236d2: 701a strb r2, [r3, #0]
  87422. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  87423. 80236d4: 89fb ldrh r3, [r7, #14]
  87424. 80236d6: 2b43 cmp r3, #67 @ 0x43
  87425. 80236d8: d904 bls.n 80236e4 <dhcp_option_trailer+0x40>
  87426. 80236da: 89fb ldrh r3, [r7, #14]
  87427. 80236dc: f003 0303 and.w r3, r3, #3
  87428. 80236e0: 2b00 cmp r3, #0
  87429. 80236e2: d002 beq.n 80236ea <dhcp_option_trailer+0x46>
  87430. 80236e4: 89fb ldrh r3, [r7, #14]
  87431. 80236e6: 2b43 cmp r3, #67 @ 0x43
  87432. 80236e8: d9ec bls.n 80236c4 <dhcp_option_trailer+0x20>
  87433. }
  87434. /* shrink the pbuf to the actual content length */
  87435. pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len));
  87436. 80236ea: 89fb ldrh r3, [r7, #14]
  87437. 80236ec: 33f0 adds r3, #240 @ 0xf0
  87438. 80236ee: b29b uxth r3, r3
  87439. 80236f0: 4619 mov r1, r3
  87440. 80236f2: 6878 ldr r0, [r7, #4]
  87441. 80236f4: f7f6 fd44 bl 801a180 <pbuf_realloc>
  87442. }
  87443. 80236f8: bf00 nop
  87444. 80236fa: 3710 adds r7, #16
  87445. 80236fc: 46bd mov sp, r7
  87446. 80236fe: bd80 pop {r7, pc}
  87447. 08023700 <dhcp_supplied_address>:
  87448. * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING),
  87449. * 0 otherwise
  87450. */
  87451. u8_t
  87452. dhcp_supplied_address(const struct netif *netif)
  87453. {
  87454. 8023700: b480 push {r7}
  87455. 8023702: b085 sub sp, #20
  87456. 8023704: af00 add r7, sp, #0
  87457. 8023706: 6078 str r0, [r7, #4]
  87458. if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
  87459. 8023708: 687b ldr r3, [r7, #4]
  87460. 802370a: 2b00 cmp r3, #0
  87461. 802370c: d017 beq.n 802373e <dhcp_supplied_address+0x3e>
  87462. 802370e: 687b ldr r3, [r7, #4]
  87463. 8023710: 6a5b ldr r3, [r3, #36] @ 0x24
  87464. 8023712: 2b00 cmp r3, #0
  87465. 8023714: d013 beq.n 802373e <dhcp_supplied_address+0x3e>
  87466. struct dhcp *dhcp = netif_dhcp_data(netif);
  87467. 8023716: 687b ldr r3, [r7, #4]
  87468. 8023718: 6a5b ldr r3, [r3, #36] @ 0x24
  87469. 802371a: 60fb str r3, [r7, #12]
  87470. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  87471. 802371c: 68fb ldr r3, [r7, #12]
  87472. 802371e: 795b ldrb r3, [r3, #5]
  87473. 8023720: 2b0a cmp r3, #10
  87474. 8023722: d007 beq.n 8023734 <dhcp_supplied_address+0x34>
  87475. 8023724: 68fb ldr r3, [r7, #12]
  87476. 8023726: 795b ldrb r3, [r3, #5]
  87477. 8023728: 2b05 cmp r3, #5
  87478. 802372a: d003 beq.n 8023734 <dhcp_supplied_address+0x34>
  87479. (dhcp->state == DHCP_STATE_REBINDING);
  87480. 802372c: 68fb ldr r3, [r7, #12]
  87481. 802372e: 795b ldrb r3, [r3, #5]
  87482. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  87483. 8023730: 2b04 cmp r3, #4
  87484. 8023732: d101 bne.n 8023738 <dhcp_supplied_address+0x38>
  87485. 8023734: 2301 movs r3, #1
  87486. 8023736: e000 b.n 802373a <dhcp_supplied_address+0x3a>
  87487. 8023738: 2300 movs r3, #0
  87488. 802373a: b2db uxtb r3, r3
  87489. 802373c: e000 b.n 8023740 <dhcp_supplied_address+0x40>
  87490. }
  87491. return 0;
  87492. 802373e: 2300 movs r3, #0
  87493. }
  87494. 8023740: 4618 mov r0, r3
  87495. 8023742: 3714 adds r7, #20
  87496. 8023744: 46bd mov sp, r7
  87497. 8023746: f85d 7b04 ldr.w r7, [sp], #4
  87498. 802374a: 4770 bx lr
  87499. 0802374c <etharp_free_entry>:
  87500. #endif /* ARP_QUEUEING */
  87501. /** Clean up ARP table entries */
  87502. static void
  87503. etharp_free_entry(int i)
  87504. {
  87505. 802374c: b580 push {r7, lr}
  87506. 802374e: b082 sub sp, #8
  87507. 8023750: af00 add r7, sp, #0
  87508. 8023752: 6078 str r0, [r7, #4]
  87509. /* remove from SNMP ARP index tree */
  87510. mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr);
  87511. /* and empty packet queue */
  87512. if (arp_table[i].q != NULL) {
  87513. 8023754: 492b ldr r1, [pc, #172] @ (8023804 <etharp_free_entry+0xb8>)
  87514. 8023756: 687a ldr r2, [r7, #4]
  87515. 8023758: 4613 mov r3, r2
  87516. 802375a: 005b lsls r3, r3, #1
  87517. 802375c: 4413 add r3, r2
  87518. 802375e: 00db lsls r3, r3, #3
  87519. 8023760: 440b add r3, r1
  87520. 8023762: 681b ldr r3, [r3, #0]
  87521. 8023764: 2b00 cmp r3, #0
  87522. 8023766: d013 beq.n 8023790 <etharp_free_entry+0x44>
  87523. /* remove all queued packets */
  87524. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t)i, (void *)(arp_table[i].q)));
  87525. free_etharp_q(arp_table[i].q);
  87526. 8023768: 4926 ldr r1, [pc, #152] @ (8023804 <etharp_free_entry+0xb8>)
  87527. 802376a: 687a ldr r2, [r7, #4]
  87528. 802376c: 4613 mov r3, r2
  87529. 802376e: 005b lsls r3, r3, #1
  87530. 8023770: 4413 add r3, r2
  87531. 8023772: 00db lsls r3, r3, #3
  87532. 8023774: 440b add r3, r1
  87533. 8023776: 681b ldr r3, [r3, #0]
  87534. 8023778: 4618 mov r0, r3
  87535. 802377a: f7f6 feb7 bl 801a4ec <pbuf_free>
  87536. arp_table[i].q = NULL;
  87537. 802377e: 4921 ldr r1, [pc, #132] @ (8023804 <etharp_free_entry+0xb8>)
  87538. 8023780: 687a ldr r2, [r7, #4]
  87539. 8023782: 4613 mov r3, r2
  87540. 8023784: 005b lsls r3, r3, #1
  87541. 8023786: 4413 add r3, r2
  87542. 8023788: 00db lsls r3, r3, #3
  87543. 802378a: 440b add r3, r1
  87544. 802378c: 2200 movs r2, #0
  87545. 802378e: 601a str r2, [r3, #0]
  87546. }
  87547. /* recycle entry for re-use */
  87548. arp_table[i].state = ETHARP_STATE_EMPTY;
  87549. 8023790: 491c ldr r1, [pc, #112] @ (8023804 <etharp_free_entry+0xb8>)
  87550. 8023792: 687a ldr r2, [r7, #4]
  87551. 8023794: 4613 mov r3, r2
  87552. 8023796: 005b lsls r3, r3, #1
  87553. 8023798: 4413 add r3, r2
  87554. 802379a: 00db lsls r3, r3, #3
  87555. 802379c: 440b add r3, r1
  87556. 802379e: 3314 adds r3, #20
  87557. 80237a0: 2200 movs r2, #0
  87558. 80237a2: 701a strb r2, [r3, #0]
  87559. #ifdef LWIP_DEBUG
  87560. /* for debugging, clean out the complete entry */
  87561. arp_table[i].ctime = 0;
  87562. 80237a4: 4917 ldr r1, [pc, #92] @ (8023804 <etharp_free_entry+0xb8>)
  87563. 80237a6: 687a ldr r2, [r7, #4]
  87564. 80237a8: 4613 mov r3, r2
  87565. 80237aa: 005b lsls r3, r3, #1
  87566. 80237ac: 4413 add r3, r2
  87567. 80237ae: 00db lsls r3, r3, #3
  87568. 80237b0: 440b add r3, r1
  87569. 80237b2: 3312 adds r3, #18
  87570. 80237b4: 2200 movs r2, #0
  87571. 80237b6: 801a strh r2, [r3, #0]
  87572. arp_table[i].netif = NULL;
  87573. 80237b8: 4912 ldr r1, [pc, #72] @ (8023804 <etharp_free_entry+0xb8>)
  87574. 80237ba: 687a ldr r2, [r7, #4]
  87575. 80237bc: 4613 mov r3, r2
  87576. 80237be: 005b lsls r3, r3, #1
  87577. 80237c0: 4413 add r3, r2
  87578. 80237c2: 00db lsls r3, r3, #3
  87579. 80237c4: 440b add r3, r1
  87580. 80237c6: 3308 adds r3, #8
  87581. 80237c8: 2200 movs r2, #0
  87582. 80237ca: 601a str r2, [r3, #0]
  87583. ip4_addr_set_zero(&arp_table[i].ipaddr);
  87584. 80237cc: 490d ldr r1, [pc, #52] @ (8023804 <etharp_free_entry+0xb8>)
  87585. 80237ce: 687a ldr r2, [r7, #4]
  87586. 80237d0: 4613 mov r3, r2
  87587. 80237d2: 005b lsls r3, r3, #1
  87588. 80237d4: 4413 add r3, r2
  87589. 80237d6: 00db lsls r3, r3, #3
  87590. 80237d8: 440b add r3, r1
  87591. 80237da: 3304 adds r3, #4
  87592. 80237dc: 2200 movs r2, #0
  87593. 80237de: 601a str r2, [r3, #0]
  87594. arp_table[i].ethaddr = ethzero;
  87595. 80237e0: 4908 ldr r1, [pc, #32] @ (8023804 <etharp_free_entry+0xb8>)
  87596. 80237e2: 687a ldr r2, [r7, #4]
  87597. 80237e4: 4613 mov r3, r2
  87598. 80237e6: 005b lsls r3, r3, #1
  87599. 80237e8: 4413 add r3, r2
  87600. 80237ea: 00db lsls r3, r3, #3
  87601. 80237ec: 440b add r3, r1
  87602. 80237ee: 3308 adds r3, #8
  87603. 80237f0: 4a05 ldr r2, [pc, #20] @ (8023808 <etharp_free_entry+0xbc>)
  87604. 80237f2: 3304 adds r3, #4
  87605. 80237f4: 6810 ldr r0, [r2, #0]
  87606. 80237f6: 6018 str r0, [r3, #0]
  87607. 80237f8: 8892 ldrh r2, [r2, #4]
  87608. 80237fa: 809a strh r2, [r3, #4]
  87609. #endif /* LWIP_DEBUG */
  87610. }
  87611. 80237fc: bf00 nop
  87612. 80237fe: 3708 adds r7, #8
  87613. 8023800: 46bd mov sp, r7
  87614. 8023802: bd80 pop {r7, pc}
  87615. 8023804: 2402af20 .word 0x2402af20
  87616. 8023808: 08030c78 .word 0x08030c78
  87617. 0802380c <etharp_tmr>:
  87618. * This function should be called every ARP_TMR_INTERVAL milliseconds (1 second),
  87619. * in order to expire entries in the ARP table.
  87620. */
  87621. void
  87622. etharp_tmr(void)
  87623. {
  87624. 802380c: b580 push {r7, lr}
  87625. 802380e: b082 sub sp, #8
  87626. 8023810: af00 add r7, sp, #0
  87627. int i;
  87628. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n"));
  87629. /* remove expired entries from the ARP table */
  87630. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  87631. 8023812: 2300 movs r3, #0
  87632. 8023814: 607b str r3, [r7, #4]
  87633. 8023816: e096 b.n 8023946 <etharp_tmr+0x13a>
  87634. u8_t state = arp_table[i].state;
  87635. 8023818: 494f ldr r1, [pc, #316] @ (8023958 <etharp_tmr+0x14c>)
  87636. 802381a: 687a ldr r2, [r7, #4]
  87637. 802381c: 4613 mov r3, r2
  87638. 802381e: 005b lsls r3, r3, #1
  87639. 8023820: 4413 add r3, r2
  87640. 8023822: 00db lsls r3, r3, #3
  87641. 8023824: 440b add r3, r1
  87642. 8023826: 3314 adds r3, #20
  87643. 8023828: 781b ldrb r3, [r3, #0]
  87644. 802382a: 70fb strb r3, [r7, #3]
  87645. if (state != ETHARP_STATE_EMPTY
  87646. 802382c: 78fb ldrb r3, [r7, #3]
  87647. 802382e: 2b00 cmp r3, #0
  87648. 8023830: f000 8086 beq.w 8023940 <etharp_tmr+0x134>
  87649. #if ETHARP_SUPPORT_STATIC_ENTRIES
  87650. && (state != ETHARP_STATE_STATIC)
  87651. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  87652. ) {
  87653. arp_table[i].ctime++;
  87654. 8023834: 4948 ldr r1, [pc, #288] @ (8023958 <etharp_tmr+0x14c>)
  87655. 8023836: 687a ldr r2, [r7, #4]
  87656. 8023838: 4613 mov r3, r2
  87657. 802383a: 005b lsls r3, r3, #1
  87658. 802383c: 4413 add r3, r2
  87659. 802383e: 00db lsls r3, r3, #3
  87660. 8023840: 440b add r3, r1
  87661. 8023842: 3312 adds r3, #18
  87662. 8023844: 881b ldrh r3, [r3, #0]
  87663. 8023846: 3301 adds r3, #1
  87664. 8023848: b298 uxth r0, r3
  87665. 802384a: 4943 ldr r1, [pc, #268] @ (8023958 <etharp_tmr+0x14c>)
  87666. 802384c: 687a ldr r2, [r7, #4]
  87667. 802384e: 4613 mov r3, r2
  87668. 8023850: 005b lsls r3, r3, #1
  87669. 8023852: 4413 add r3, r2
  87670. 8023854: 00db lsls r3, r3, #3
  87671. 8023856: 440b add r3, r1
  87672. 8023858: 3312 adds r3, #18
  87673. 802385a: 4602 mov r2, r0
  87674. 802385c: 801a strh r2, [r3, #0]
  87675. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  87676. 802385e: 493e ldr r1, [pc, #248] @ (8023958 <etharp_tmr+0x14c>)
  87677. 8023860: 687a ldr r2, [r7, #4]
  87678. 8023862: 4613 mov r3, r2
  87679. 8023864: 005b lsls r3, r3, #1
  87680. 8023866: 4413 add r3, r2
  87681. 8023868: 00db lsls r3, r3, #3
  87682. 802386a: 440b add r3, r1
  87683. 802386c: 3312 adds r3, #18
  87684. 802386e: 881b ldrh r3, [r3, #0]
  87685. 8023870: f5b3 7f96 cmp.w r3, #300 @ 0x12c
  87686. 8023874: d215 bcs.n 80238a2 <etharp_tmr+0x96>
  87687. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  87688. 8023876: 4938 ldr r1, [pc, #224] @ (8023958 <etharp_tmr+0x14c>)
  87689. 8023878: 687a ldr r2, [r7, #4]
  87690. 802387a: 4613 mov r3, r2
  87691. 802387c: 005b lsls r3, r3, #1
  87692. 802387e: 4413 add r3, r2
  87693. 8023880: 00db lsls r3, r3, #3
  87694. 8023882: 440b add r3, r1
  87695. 8023884: 3314 adds r3, #20
  87696. 8023886: 781b ldrb r3, [r3, #0]
  87697. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  87698. 8023888: 2b01 cmp r3, #1
  87699. 802388a: d10e bne.n 80238aa <etharp_tmr+0x9e>
  87700. (arp_table[i].ctime >= ARP_MAXPENDING))) {
  87701. 802388c: 4932 ldr r1, [pc, #200] @ (8023958 <etharp_tmr+0x14c>)
  87702. 802388e: 687a ldr r2, [r7, #4]
  87703. 8023890: 4613 mov r3, r2
  87704. 8023892: 005b lsls r3, r3, #1
  87705. 8023894: 4413 add r3, r2
  87706. 8023896: 00db lsls r3, r3, #3
  87707. 8023898: 440b add r3, r1
  87708. 802389a: 3312 adds r3, #18
  87709. 802389c: 881b ldrh r3, [r3, #0]
  87710. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  87711. 802389e: 2b04 cmp r3, #4
  87712. 80238a0: d903 bls.n 80238aa <etharp_tmr+0x9e>
  87713. /* pending or stable entry has become old! */
  87714. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired %s entry %d.\n",
  87715. arp_table[i].state >= ETHARP_STATE_STABLE ? "stable" : "pending", i));
  87716. /* clean up entries that have just been expired */
  87717. etharp_free_entry(i);
  87718. 80238a2: 6878 ldr r0, [r7, #4]
  87719. 80238a4: f7ff ff52 bl 802374c <etharp_free_entry>
  87720. 80238a8: e04a b.n 8023940 <etharp_tmr+0x134>
  87721. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) {
  87722. 80238aa: 492b ldr r1, [pc, #172] @ (8023958 <etharp_tmr+0x14c>)
  87723. 80238ac: 687a ldr r2, [r7, #4]
  87724. 80238ae: 4613 mov r3, r2
  87725. 80238b0: 005b lsls r3, r3, #1
  87726. 80238b2: 4413 add r3, r2
  87727. 80238b4: 00db lsls r3, r3, #3
  87728. 80238b6: 440b add r3, r1
  87729. 80238b8: 3314 adds r3, #20
  87730. 80238ba: 781b ldrb r3, [r3, #0]
  87731. 80238bc: 2b03 cmp r3, #3
  87732. 80238be: d10a bne.n 80238d6 <etharp_tmr+0xca>
  87733. /* Don't send more than one request every 2 seconds. */
  87734. arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2;
  87735. 80238c0: 4925 ldr r1, [pc, #148] @ (8023958 <etharp_tmr+0x14c>)
  87736. 80238c2: 687a ldr r2, [r7, #4]
  87737. 80238c4: 4613 mov r3, r2
  87738. 80238c6: 005b lsls r3, r3, #1
  87739. 80238c8: 4413 add r3, r2
  87740. 80238ca: 00db lsls r3, r3, #3
  87741. 80238cc: 440b add r3, r1
  87742. 80238ce: 3314 adds r3, #20
  87743. 80238d0: 2204 movs r2, #4
  87744. 80238d2: 701a strb r2, [r3, #0]
  87745. 80238d4: e034 b.n 8023940 <etharp_tmr+0x134>
  87746. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) {
  87747. 80238d6: 4920 ldr r1, [pc, #128] @ (8023958 <etharp_tmr+0x14c>)
  87748. 80238d8: 687a ldr r2, [r7, #4]
  87749. 80238da: 4613 mov r3, r2
  87750. 80238dc: 005b lsls r3, r3, #1
  87751. 80238de: 4413 add r3, r2
  87752. 80238e0: 00db lsls r3, r3, #3
  87753. 80238e2: 440b add r3, r1
  87754. 80238e4: 3314 adds r3, #20
  87755. 80238e6: 781b ldrb r3, [r3, #0]
  87756. 80238e8: 2b04 cmp r3, #4
  87757. 80238ea: d10a bne.n 8023902 <etharp_tmr+0xf6>
  87758. /* Reset state to stable, so that the next transmitted packet will
  87759. re-send an ARP request. */
  87760. arp_table[i].state = ETHARP_STATE_STABLE;
  87761. 80238ec: 491a ldr r1, [pc, #104] @ (8023958 <etharp_tmr+0x14c>)
  87762. 80238ee: 687a ldr r2, [r7, #4]
  87763. 80238f0: 4613 mov r3, r2
  87764. 80238f2: 005b lsls r3, r3, #1
  87765. 80238f4: 4413 add r3, r2
  87766. 80238f6: 00db lsls r3, r3, #3
  87767. 80238f8: 440b add r3, r1
  87768. 80238fa: 3314 adds r3, #20
  87769. 80238fc: 2202 movs r2, #2
  87770. 80238fe: 701a strb r2, [r3, #0]
  87771. 8023900: e01e b.n 8023940 <etharp_tmr+0x134>
  87772. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  87773. 8023902: 4915 ldr r1, [pc, #84] @ (8023958 <etharp_tmr+0x14c>)
  87774. 8023904: 687a ldr r2, [r7, #4]
  87775. 8023906: 4613 mov r3, r2
  87776. 8023908: 005b lsls r3, r3, #1
  87777. 802390a: 4413 add r3, r2
  87778. 802390c: 00db lsls r3, r3, #3
  87779. 802390e: 440b add r3, r1
  87780. 8023910: 3314 adds r3, #20
  87781. 8023912: 781b ldrb r3, [r3, #0]
  87782. 8023914: 2b01 cmp r3, #1
  87783. 8023916: d113 bne.n 8023940 <etharp_tmr+0x134>
  87784. /* still pending, resend an ARP query */
  87785. etharp_request(arp_table[i].netif, &arp_table[i].ipaddr);
  87786. 8023918: 490f ldr r1, [pc, #60] @ (8023958 <etharp_tmr+0x14c>)
  87787. 802391a: 687a ldr r2, [r7, #4]
  87788. 802391c: 4613 mov r3, r2
  87789. 802391e: 005b lsls r3, r3, #1
  87790. 8023920: 4413 add r3, r2
  87791. 8023922: 00db lsls r3, r3, #3
  87792. 8023924: 440b add r3, r1
  87793. 8023926: 3308 adds r3, #8
  87794. 8023928: 6818 ldr r0, [r3, #0]
  87795. 802392a: 687a ldr r2, [r7, #4]
  87796. 802392c: 4613 mov r3, r2
  87797. 802392e: 005b lsls r3, r3, #1
  87798. 8023930: 4413 add r3, r2
  87799. 8023932: 00db lsls r3, r3, #3
  87800. 8023934: 4a08 ldr r2, [pc, #32] @ (8023958 <etharp_tmr+0x14c>)
  87801. 8023936: 4413 add r3, r2
  87802. 8023938: 3304 adds r3, #4
  87803. 802393a: 4619 mov r1, r3
  87804. 802393c: f000 fe76 bl 802462c <etharp_request>
  87805. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  87806. 8023940: 687b ldr r3, [r7, #4]
  87807. 8023942: 3301 adds r3, #1
  87808. 8023944: 607b str r3, [r7, #4]
  87809. 8023946: 687b ldr r3, [r7, #4]
  87810. 8023948: 2b09 cmp r3, #9
  87811. 802394a: f77f af65 ble.w 8023818 <etharp_tmr+0xc>
  87812. }
  87813. }
  87814. }
  87815. }
  87816. 802394e: bf00 nop
  87817. 8023950: bf00 nop
  87818. 8023952: 3708 adds r7, #8
  87819. 8023954: 46bd mov sp, r7
  87820. 8023956: bd80 pop {r7, pc}
  87821. 8023958: 2402af20 .word 0x2402af20
  87822. 0802395c <etharp_find_entry>:
  87823. * @return The ARP entry index that matched or is created, ERR_MEM if no
  87824. * entry is found or could be recycled.
  87825. */
  87826. static s16_t
  87827. etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif)
  87828. {
  87829. 802395c: b580 push {r7, lr}
  87830. 802395e: b08a sub sp, #40 @ 0x28
  87831. 8023960: af00 add r7, sp, #0
  87832. 8023962: 60f8 str r0, [r7, #12]
  87833. 8023964: 460b mov r3, r1
  87834. 8023966: 607a str r2, [r7, #4]
  87835. 8023968: 72fb strb r3, [r7, #11]
  87836. s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE;
  87837. 802396a: 230a movs r3, #10
  87838. 802396c: 843b strh r3, [r7, #32]
  87839. 802396e: 230a movs r3, #10
  87840. 8023970: 847b strh r3, [r7, #34] @ 0x22
  87841. s16_t empty = ARP_TABLE_SIZE;
  87842. 8023972: 230a movs r3, #10
  87843. 8023974: 84bb strh r3, [r7, #36] @ 0x24
  87844. s16_t i = 0;
  87845. 8023976: 2300 movs r3, #0
  87846. 8023978: 84fb strh r3, [r7, #38] @ 0x26
  87847. /* oldest entry with packets on queue */
  87848. s16_t old_queue = ARP_TABLE_SIZE;
  87849. 802397a: 230a movs r3, #10
  87850. 802397c: 83fb strh r3, [r7, #30]
  87851. /* its age */
  87852. u16_t age_queue = 0, age_pending = 0, age_stable = 0;
  87853. 802397e: 2300 movs r3, #0
  87854. 8023980: 83bb strh r3, [r7, #28]
  87855. 8023982: 2300 movs r3, #0
  87856. 8023984: 837b strh r3, [r7, #26]
  87857. 8023986: 2300 movs r3, #0
  87858. 8023988: 833b strh r3, [r7, #24]
  87859. * 4) remember the oldest pending entry with queued packets (if any)
  87860. * 5) search for a matching IP entry, either pending or stable
  87861. * until 5 matches, or all entries are searched for.
  87862. */
  87863. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  87864. 802398a: 2300 movs r3, #0
  87865. 802398c: 84fb strh r3, [r7, #38] @ 0x26
  87866. 802398e: e0ae b.n 8023aee <etharp_find_entry+0x192>
  87867. u8_t state = arp_table[i].state;
  87868. 8023990: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87869. 8023994: 49a6 ldr r1, [pc, #664] @ (8023c30 <etharp_find_entry+0x2d4>)
  87870. 8023996: 4613 mov r3, r2
  87871. 8023998: 005b lsls r3, r3, #1
  87872. 802399a: 4413 add r3, r2
  87873. 802399c: 00db lsls r3, r3, #3
  87874. 802399e: 440b add r3, r1
  87875. 80239a0: 3314 adds r3, #20
  87876. 80239a2: 781b ldrb r3, [r3, #0]
  87877. 80239a4: 75fb strb r3, [r7, #23]
  87878. /* no empty entry found yet and now we do find one? */
  87879. if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) {
  87880. 80239a6: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  87881. 80239aa: 2b0a cmp r3, #10
  87882. 80239ac: d105 bne.n 80239ba <etharp_find_entry+0x5e>
  87883. 80239ae: 7dfb ldrb r3, [r7, #23]
  87884. 80239b0: 2b00 cmp r3, #0
  87885. 80239b2: d102 bne.n 80239ba <etharp_find_entry+0x5e>
  87886. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i));
  87887. /* remember first empty entry */
  87888. empty = i;
  87889. 80239b4: 8cfb ldrh r3, [r7, #38] @ 0x26
  87890. 80239b6: 84bb strh r3, [r7, #36] @ 0x24
  87891. 80239b8: e095 b.n 8023ae6 <etharp_find_entry+0x18a>
  87892. } else if (state != ETHARP_STATE_EMPTY) {
  87893. 80239ba: 7dfb ldrb r3, [r7, #23]
  87894. 80239bc: 2b00 cmp r3, #0
  87895. 80239be: f000 8092 beq.w 8023ae6 <etharp_find_entry+0x18a>
  87896. LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE",
  87897. 80239c2: 7dfb ldrb r3, [r7, #23]
  87898. 80239c4: 2b01 cmp r3, #1
  87899. 80239c6: d009 beq.n 80239dc <etharp_find_entry+0x80>
  87900. 80239c8: 7dfb ldrb r3, [r7, #23]
  87901. 80239ca: 2b01 cmp r3, #1
  87902. 80239cc: d806 bhi.n 80239dc <etharp_find_entry+0x80>
  87903. 80239ce: 4b99 ldr r3, [pc, #612] @ (8023c34 <etharp_find_entry+0x2d8>)
  87904. 80239d0: f240 1223 movw r2, #291 @ 0x123
  87905. 80239d4: 4998 ldr r1, [pc, #608] @ (8023c38 <etharp_find_entry+0x2dc>)
  87906. 80239d6: 4899 ldr r0, [pc, #612] @ (8023c3c <etharp_find_entry+0x2e0>)
  87907. 80239d8: f006 f800 bl 80299dc <iprintf>
  87908. state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE);
  87909. /* if given, does IP address match IP address in ARP entry? */
  87910. if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr)
  87911. 80239dc: 68fb ldr r3, [r7, #12]
  87912. 80239de: 2b00 cmp r3, #0
  87913. 80239e0: d020 beq.n 8023a24 <etharp_find_entry+0xc8>
  87914. 80239e2: 68fb ldr r3, [r7, #12]
  87915. 80239e4: 6819 ldr r1, [r3, #0]
  87916. 80239e6: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87917. 80239ea: 4891 ldr r0, [pc, #580] @ (8023c30 <etharp_find_entry+0x2d4>)
  87918. 80239ec: 4613 mov r3, r2
  87919. 80239ee: 005b lsls r3, r3, #1
  87920. 80239f0: 4413 add r3, r2
  87921. 80239f2: 00db lsls r3, r3, #3
  87922. 80239f4: 4403 add r3, r0
  87923. 80239f6: 3304 adds r3, #4
  87924. 80239f8: 681b ldr r3, [r3, #0]
  87925. 80239fa: 4299 cmp r1, r3
  87926. 80239fc: d112 bne.n 8023a24 <etharp_find_entry+0xc8>
  87927. #if ETHARP_TABLE_MATCH_NETIF
  87928. && ((netif == NULL) || (netif == arp_table[i].netif))
  87929. 80239fe: 687b ldr r3, [r7, #4]
  87930. 8023a00: 2b00 cmp r3, #0
  87931. 8023a02: d00c beq.n 8023a1e <etharp_find_entry+0xc2>
  87932. 8023a04: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87933. 8023a08: 4989 ldr r1, [pc, #548] @ (8023c30 <etharp_find_entry+0x2d4>)
  87934. 8023a0a: 4613 mov r3, r2
  87935. 8023a0c: 005b lsls r3, r3, #1
  87936. 8023a0e: 4413 add r3, r2
  87937. 8023a10: 00db lsls r3, r3, #3
  87938. 8023a12: 440b add r3, r1
  87939. 8023a14: 3308 adds r3, #8
  87940. 8023a16: 681b ldr r3, [r3, #0]
  87941. 8023a18: 687a ldr r2, [r7, #4]
  87942. 8023a1a: 429a cmp r2, r3
  87943. 8023a1c: d102 bne.n 8023a24 <etharp_find_entry+0xc8>
  87944. #endif /* ETHARP_TABLE_MATCH_NETIF */
  87945. ) {
  87946. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: found matching entry %d\n", (int)i));
  87947. /* found exact IP address match, simply bail out */
  87948. return i;
  87949. 8023a1e: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  87950. 8023a22: e100 b.n 8023c26 <etharp_find_entry+0x2ca>
  87951. }
  87952. /* pending entry? */
  87953. if (state == ETHARP_STATE_PENDING) {
  87954. 8023a24: 7dfb ldrb r3, [r7, #23]
  87955. 8023a26: 2b01 cmp r3, #1
  87956. 8023a28: d140 bne.n 8023aac <etharp_find_entry+0x150>
  87957. /* pending with queued packets? */
  87958. if (arp_table[i].q != NULL) {
  87959. 8023a2a: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87960. 8023a2e: 4980 ldr r1, [pc, #512] @ (8023c30 <etharp_find_entry+0x2d4>)
  87961. 8023a30: 4613 mov r3, r2
  87962. 8023a32: 005b lsls r3, r3, #1
  87963. 8023a34: 4413 add r3, r2
  87964. 8023a36: 00db lsls r3, r3, #3
  87965. 8023a38: 440b add r3, r1
  87966. 8023a3a: 681b ldr r3, [r3, #0]
  87967. 8023a3c: 2b00 cmp r3, #0
  87968. 8023a3e: d01a beq.n 8023a76 <etharp_find_entry+0x11a>
  87969. if (arp_table[i].ctime >= age_queue) {
  87970. 8023a40: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87971. 8023a44: 497a ldr r1, [pc, #488] @ (8023c30 <etharp_find_entry+0x2d4>)
  87972. 8023a46: 4613 mov r3, r2
  87973. 8023a48: 005b lsls r3, r3, #1
  87974. 8023a4a: 4413 add r3, r2
  87975. 8023a4c: 00db lsls r3, r3, #3
  87976. 8023a4e: 440b add r3, r1
  87977. 8023a50: 3312 adds r3, #18
  87978. 8023a52: 881b ldrh r3, [r3, #0]
  87979. 8023a54: 8bba ldrh r2, [r7, #28]
  87980. 8023a56: 429a cmp r2, r3
  87981. 8023a58: d845 bhi.n 8023ae6 <etharp_find_entry+0x18a>
  87982. old_queue = i;
  87983. 8023a5a: 8cfb ldrh r3, [r7, #38] @ 0x26
  87984. 8023a5c: 83fb strh r3, [r7, #30]
  87985. age_queue = arp_table[i].ctime;
  87986. 8023a5e: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  87987. 8023a62: 4973 ldr r1, [pc, #460] @ (8023c30 <etharp_find_entry+0x2d4>)
  87988. 8023a64: 4613 mov r3, r2
  87989. 8023a66: 005b lsls r3, r3, #1
  87990. 8023a68: 4413 add r3, r2
  87991. 8023a6a: 00db lsls r3, r3, #3
  87992. 8023a6c: 440b add r3, r1
  87993. 8023a6e: 3312 adds r3, #18
  87994. 8023a70: 881b ldrh r3, [r3, #0]
  87995. 8023a72: 83bb strh r3, [r7, #28]
  87996. 8023a74: e037 b.n 8023ae6 <etharp_find_entry+0x18a>
  87997. }
  87998. } else
  87999. /* pending without queued packets? */
  88000. {
  88001. if (arp_table[i].ctime >= age_pending) {
  88002. 8023a76: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88003. 8023a7a: 496d ldr r1, [pc, #436] @ (8023c30 <etharp_find_entry+0x2d4>)
  88004. 8023a7c: 4613 mov r3, r2
  88005. 8023a7e: 005b lsls r3, r3, #1
  88006. 8023a80: 4413 add r3, r2
  88007. 8023a82: 00db lsls r3, r3, #3
  88008. 8023a84: 440b add r3, r1
  88009. 8023a86: 3312 adds r3, #18
  88010. 8023a88: 881b ldrh r3, [r3, #0]
  88011. 8023a8a: 8b7a ldrh r2, [r7, #26]
  88012. 8023a8c: 429a cmp r2, r3
  88013. 8023a8e: d82a bhi.n 8023ae6 <etharp_find_entry+0x18a>
  88014. old_pending = i;
  88015. 8023a90: 8cfb ldrh r3, [r7, #38] @ 0x26
  88016. 8023a92: 843b strh r3, [r7, #32]
  88017. age_pending = arp_table[i].ctime;
  88018. 8023a94: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88019. 8023a98: 4965 ldr r1, [pc, #404] @ (8023c30 <etharp_find_entry+0x2d4>)
  88020. 8023a9a: 4613 mov r3, r2
  88021. 8023a9c: 005b lsls r3, r3, #1
  88022. 8023a9e: 4413 add r3, r2
  88023. 8023aa0: 00db lsls r3, r3, #3
  88024. 8023aa2: 440b add r3, r1
  88025. 8023aa4: 3312 adds r3, #18
  88026. 8023aa6: 881b ldrh r3, [r3, #0]
  88027. 8023aa8: 837b strh r3, [r7, #26]
  88028. 8023aaa: e01c b.n 8023ae6 <etharp_find_entry+0x18a>
  88029. }
  88030. }
  88031. /* stable entry? */
  88032. } else if (state >= ETHARP_STATE_STABLE) {
  88033. 8023aac: 7dfb ldrb r3, [r7, #23]
  88034. 8023aae: 2b01 cmp r3, #1
  88035. 8023ab0: d919 bls.n 8023ae6 <etharp_find_entry+0x18a>
  88036. /* don't record old_stable for static entries since they never expire */
  88037. if (state < ETHARP_STATE_STATIC)
  88038. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  88039. {
  88040. /* remember entry with oldest stable entry in oldest, its age in maxtime */
  88041. if (arp_table[i].ctime >= age_stable) {
  88042. 8023ab2: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88043. 8023ab6: 495e ldr r1, [pc, #376] @ (8023c30 <etharp_find_entry+0x2d4>)
  88044. 8023ab8: 4613 mov r3, r2
  88045. 8023aba: 005b lsls r3, r3, #1
  88046. 8023abc: 4413 add r3, r2
  88047. 8023abe: 00db lsls r3, r3, #3
  88048. 8023ac0: 440b add r3, r1
  88049. 8023ac2: 3312 adds r3, #18
  88050. 8023ac4: 881b ldrh r3, [r3, #0]
  88051. 8023ac6: 8b3a ldrh r2, [r7, #24]
  88052. 8023ac8: 429a cmp r2, r3
  88053. 8023aca: d80c bhi.n 8023ae6 <etharp_find_entry+0x18a>
  88054. old_stable = i;
  88055. 8023acc: 8cfb ldrh r3, [r7, #38] @ 0x26
  88056. 8023ace: 847b strh r3, [r7, #34] @ 0x22
  88057. age_stable = arp_table[i].ctime;
  88058. 8023ad0: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88059. 8023ad4: 4956 ldr r1, [pc, #344] @ (8023c30 <etharp_find_entry+0x2d4>)
  88060. 8023ad6: 4613 mov r3, r2
  88061. 8023ad8: 005b lsls r3, r3, #1
  88062. 8023ada: 4413 add r3, r2
  88063. 8023adc: 00db lsls r3, r3, #3
  88064. 8023ade: 440b add r3, r1
  88065. 8023ae0: 3312 adds r3, #18
  88066. 8023ae2: 881b ldrh r3, [r3, #0]
  88067. 8023ae4: 833b strh r3, [r7, #24]
  88068. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  88069. 8023ae6: 8cfb ldrh r3, [r7, #38] @ 0x26
  88070. 8023ae8: 3301 adds r3, #1
  88071. 8023aea: b29b uxth r3, r3
  88072. 8023aec: 84fb strh r3, [r7, #38] @ 0x26
  88073. 8023aee: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  88074. 8023af2: 2b09 cmp r3, #9
  88075. 8023af4: f77f af4c ble.w 8023990 <etharp_find_entry+0x34>
  88076. }
  88077. }
  88078. /* { we have no match } => try to create a new entry */
  88079. /* don't create new entry, only search? */
  88080. if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) ||
  88081. 8023af8: 7afb ldrb r3, [r7, #11]
  88082. 8023afa: f003 0302 and.w r3, r3, #2
  88083. 8023afe: 2b00 cmp r3, #0
  88084. 8023b00: d108 bne.n 8023b14 <etharp_find_entry+0x1b8>
  88085. 8023b02: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  88086. 8023b06: 2b0a cmp r3, #10
  88087. 8023b08: d107 bne.n 8023b1a <etharp_find_entry+0x1be>
  88088. /* or no empty entry found and not allowed to recycle? */
  88089. ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) {
  88090. 8023b0a: 7afb ldrb r3, [r7, #11]
  88091. 8023b0c: f003 0301 and.w r3, r3, #1
  88092. 8023b10: 2b00 cmp r3, #0
  88093. 8023b12: d102 bne.n 8023b1a <etharp_find_entry+0x1be>
  88094. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty entry found and not allowed to recycle\n"));
  88095. return (s16_t)ERR_MEM;
  88096. 8023b14: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  88097. 8023b18: e085 b.n 8023c26 <etharp_find_entry+0x2ca>
  88098. *
  88099. * { ETHARP_FLAG_TRY_HARD is set at this point }
  88100. */
  88101. /* 1) empty entry available? */
  88102. if (empty < ARP_TABLE_SIZE) {
  88103. 8023b1a: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  88104. 8023b1e: 2b09 cmp r3, #9
  88105. 8023b20: dc02 bgt.n 8023b28 <etharp_find_entry+0x1cc>
  88106. i = empty;
  88107. 8023b22: 8cbb ldrh r3, [r7, #36] @ 0x24
  88108. 8023b24: 84fb strh r3, [r7, #38] @ 0x26
  88109. 8023b26: e039 b.n 8023b9c <etharp_find_entry+0x240>
  88110. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %d\n", (int)i));
  88111. } else {
  88112. /* 2) found recyclable stable entry? */
  88113. if (old_stable < ARP_TABLE_SIZE) {
  88114. 8023b28: f9b7 3022 ldrsh.w r3, [r7, #34] @ 0x22
  88115. 8023b2c: 2b09 cmp r3, #9
  88116. 8023b2e: dc14 bgt.n 8023b5a <etharp_find_entry+0x1fe>
  88117. /* recycle oldest stable*/
  88118. i = old_stable;
  88119. 8023b30: 8c7b ldrh r3, [r7, #34] @ 0x22
  88120. 8023b32: 84fb strh r3, [r7, #38] @ 0x26
  88121. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %d\n", (int)i));
  88122. /* no queued packets should exist on stable entries */
  88123. LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL);
  88124. 8023b34: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88125. 8023b38: 493d ldr r1, [pc, #244] @ (8023c30 <etharp_find_entry+0x2d4>)
  88126. 8023b3a: 4613 mov r3, r2
  88127. 8023b3c: 005b lsls r3, r3, #1
  88128. 8023b3e: 4413 add r3, r2
  88129. 8023b40: 00db lsls r3, r3, #3
  88130. 8023b42: 440b add r3, r1
  88131. 8023b44: 681b ldr r3, [r3, #0]
  88132. 8023b46: 2b00 cmp r3, #0
  88133. 8023b48: d018 beq.n 8023b7c <etharp_find_entry+0x220>
  88134. 8023b4a: 4b3a ldr r3, [pc, #232] @ (8023c34 <etharp_find_entry+0x2d8>)
  88135. 8023b4c: f240 126d movw r2, #365 @ 0x16d
  88136. 8023b50: 493b ldr r1, [pc, #236] @ (8023c40 <etharp_find_entry+0x2e4>)
  88137. 8023b52: 483a ldr r0, [pc, #232] @ (8023c3c <etharp_find_entry+0x2e0>)
  88138. 8023b54: f005 ff42 bl 80299dc <iprintf>
  88139. 8023b58: e010 b.n 8023b7c <etharp_find_entry+0x220>
  88140. /* 3) found recyclable pending entry without queued packets? */
  88141. } else if (old_pending < ARP_TABLE_SIZE) {
  88142. 8023b5a: f9b7 3020 ldrsh.w r3, [r7, #32]
  88143. 8023b5e: 2b09 cmp r3, #9
  88144. 8023b60: dc02 bgt.n 8023b68 <etharp_find_entry+0x20c>
  88145. /* recycle oldest pending */
  88146. i = old_pending;
  88147. 8023b62: 8c3b ldrh r3, [r7, #32]
  88148. 8023b64: 84fb strh r3, [r7, #38] @ 0x26
  88149. 8023b66: e009 b.n 8023b7c <etharp_find_entry+0x220>
  88150. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d (without queue)\n", (int)i));
  88151. /* 4) found recyclable pending entry with queued packets? */
  88152. } else if (old_queue < ARP_TABLE_SIZE) {
  88153. 8023b68: f9b7 301e ldrsh.w r3, [r7, #30]
  88154. 8023b6c: 2b09 cmp r3, #9
  88155. 8023b6e: dc02 bgt.n 8023b76 <etharp_find_entry+0x21a>
  88156. /* recycle oldest pending (queued packets are free in etharp_free_entry) */
  88157. i = old_queue;
  88158. 8023b70: 8bfb ldrh r3, [r7, #30]
  88159. 8023b72: 84fb strh r3, [r7, #38] @ 0x26
  88160. 8023b74: e002 b.n 8023b7c <etharp_find_entry+0x220>
  88161. 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)));
  88162. /* no empty or recyclable entries found */
  88163. } else {
  88164. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty or recyclable entries found\n"));
  88165. return (s16_t)ERR_MEM;
  88166. 8023b76: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  88167. 8023b7a: e054 b.n 8023c26 <etharp_find_entry+0x2ca>
  88168. }
  88169. /* { empty or recyclable entry found } */
  88170. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  88171. 8023b7c: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  88172. 8023b80: 2b09 cmp r3, #9
  88173. 8023b82: dd06 ble.n 8023b92 <etharp_find_entry+0x236>
  88174. 8023b84: 4b2b ldr r3, [pc, #172] @ (8023c34 <etharp_find_entry+0x2d8>)
  88175. 8023b86: f240 127f movw r2, #383 @ 0x17f
  88176. 8023b8a: 492e ldr r1, [pc, #184] @ (8023c44 <etharp_find_entry+0x2e8>)
  88177. 8023b8c: 482b ldr r0, [pc, #172] @ (8023c3c <etharp_find_entry+0x2e0>)
  88178. 8023b8e: f005 ff25 bl 80299dc <iprintf>
  88179. etharp_free_entry(i);
  88180. 8023b92: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  88181. 8023b96: 4618 mov r0, r3
  88182. 8023b98: f7ff fdd8 bl 802374c <etharp_free_entry>
  88183. }
  88184. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  88185. 8023b9c: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  88186. 8023ba0: 2b09 cmp r3, #9
  88187. 8023ba2: dd06 ble.n 8023bb2 <etharp_find_entry+0x256>
  88188. 8023ba4: 4b23 ldr r3, [pc, #140] @ (8023c34 <etharp_find_entry+0x2d8>)
  88189. 8023ba6: f240 1283 movw r2, #387 @ 0x183
  88190. 8023baa: 4926 ldr r1, [pc, #152] @ (8023c44 <etharp_find_entry+0x2e8>)
  88191. 8023bac: 4823 ldr r0, [pc, #140] @ (8023c3c <etharp_find_entry+0x2e0>)
  88192. 8023bae: f005 ff15 bl 80299dc <iprintf>
  88193. LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY",
  88194. 8023bb2: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88195. 8023bb6: 491e ldr r1, [pc, #120] @ (8023c30 <etharp_find_entry+0x2d4>)
  88196. 8023bb8: 4613 mov r3, r2
  88197. 8023bba: 005b lsls r3, r3, #1
  88198. 8023bbc: 4413 add r3, r2
  88199. 8023bbe: 00db lsls r3, r3, #3
  88200. 8023bc0: 440b add r3, r1
  88201. 8023bc2: 3314 adds r3, #20
  88202. 8023bc4: 781b ldrb r3, [r3, #0]
  88203. 8023bc6: 2b00 cmp r3, #0
  88204. 8023bc8: d006 beq.n 8023bd8 <etharp_find_entry+0x27c>
  88205. 8023bca: 4b1a ldr r3, [pc, #104] @ (8023c34 <etharp_find_entry+0x2d8>)
  88206. 8023bcc: f44f 72c2 mov.w r2, #388 @ 0x184
  88207. 8023bd0: 491d ldr r1, [pc, #116] @ (8023c48 <etharp_find_entry+0x2ec>)
  88208. 8023bd2: 481a ldr r0, [pc, #104] @ (8023c3c <etharp_find_entry+0x2e0>)
  88209. 8023bd4: f005 ff02 bl 80299dc <iprintf>
  88210. arp_table[i].state == ETHARP_STATE_EMPTY);
  88211. /* IP address given? */
  88212. if (ipaddr != NULL) {
  88213. 8023bd8: 68fb ldr r3, [r7, #12]
  88214. 8023bda: 2b00 cmp r3, #0
  88215. 8023bdc: d00b beq.n 8023bf6 <etharp_find_entry+0x29a>
  88216. /* set IP address */
  88217. ip4_addr_copy(arp_table[i].ipaddr, *ipaddr);
  88218. 8023bde: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88219. 8023be2: 68fb ldr r3, [r7, #12]
  88220. 8023be4: 6819 ldr r1, [r3, #0]
  88221. 8023be6: 4812 ldr r0, [pc, #72] @ (8023c30 <etharp_find_entry+0x2d4>)
  88222. 8023be8: 4613 mov r3, r2
  88223. 8023bea: 005b lsls r3, r3, #1
  88224. 8023bec: 4413 add r3, r2
  88225. 8023bee: 00db lsls r3, r3, #3
  88226. 8023bf0: 4403 add r3, r0
  88227. 8023bf2: 3304 adds r3, #4
  88228. 8023bf4: 6019 str r1, [r3, #0]
  88229. }
  88230. arp_table[i].ctime = 0;
  88231. 8023bf6: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88232. 8023bfa: 490d ldr r1, [pc, #52] @ (8023c30 <etharp_find_entry+0x2d4>)
  88233. 8023bfc: 4613 mov r3, r2
  88234. 8023bfe: 005b lsls r3, r3, #1
  88235. 8023c00: 4413 add r3, r2
  88236. 8023c02: 00db lsls r3, r3, #3
  88237. 8023c04: 440b add r3, r1
  88238. 8023c06: 3312 adds r3, #18
  88239. 8023c08: 2200 movs r2, #0
  88240. 8023c0a: 801a strh r2, [r3, #0]
  88241. #if ETHARP_TABLE_MATCH_NETIF
  88242. arp_table[i].netif = netif;
  88243. 8023c0c: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  88244. 8023c10: 4907 ldr r1, [pc, #28] @ (8023c30 <etharp_find_entry+0x2d4>)
  88245. 8023c12: 4613 mov r3, r2
  88246. 8023c14: 005b lsls r3, r3, #1
  88247. 8023c16: 4413 add r3, r2
  88248. 8023c18: 00db lsls r3, r3, #3
  88249. 8023c1a: 440b add r3, r1
  88250. 8023c1c: 3308 adds r3, #8
  88251. 8023c1e: 687a ldr r2, [r7, #4]
  88252. 8023c20: 601a str r2, [r3, #0]
  88253. #endif /* ETHARP_TABLE_MATCH_NETIF */
  88254. return (s16_t)i;
  88255. 8023c22: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  88256. }
  88257. 8023c26: 4618 mov r0, r3
  88258. 8023c28: 3728 adds r7, #40 @ 0x28
  88259. 8023c2a: 46bd mov sp, r7
  88260. 8023c2c: bd80 pop {r7, pc}
  88261. 8023c2e: bf00 nop
  88262. 8023c30: 2402af20 .word 0x2402af20
  88263. 8023c34: 0803023c .word 0x0803023c
  88264. 8023c38: 08030274 .word 0x08030274
  88265. 8023c3c: 080302b4 .word 0x080302b4
  88266. 8023c40: 080302dc .word 0x080302dc
  88267. 8023c44: 080302f4 .word 0x080302f4
  88268. 8023c48: 08030308 .word 0x08030308
  88269. 08023c4c <etharp_update_arp_entry>:
  88270. *
  88271. * @see pbuf_free()
  88272. */
  88273. static err_t
  88274. etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags)
  88275. {
  88276. 8023c4c: b580 push {r7, lr}
  88277. 8023c4e: b088 sub sp, #32
  88278. 8023c50: af02 add r7, sp, #8
  88279. 8023c52: 60f8 str r0, [r7, #12]
  88280. 8023c54: 60b9 str r1, [r7, #8]
  88281. 8023c56: 607a str r2, [r7, #4]
  88282. 8023c58: 70fb strb r3, [r7, #3]
  88283. s16_t i;
  88284. LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN);
  88285. 8023c5a: 68fb ldr r3, [r7, #12]
  88286. 8023c5c: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  88287. 8023c60: 2b06 cmp r3, #6
  88288. 8023c62: d006 beq.n 8023c72 <etharp_update_arp_entry+0x26>
  88289. 8023c64: 4b48 ldr r3, [pc, #288] @ (8023d88 <etharp_update_arp_entry+0x13c>)
  88290. 8023c66: f240 12a9 movw r2, #425 @ 0x1a9
  88291. 8023c6a: 4948 ldr r1, [pc, #288] @ (8023d8c <etharp_update_arp_entry+0x140>)
  88292. 8023c6c: 4848 ldr r0, [pc, #288] @ (8023d90 <etharp_update_arp_entry+0x144>)
  88293. 8023c6e: f005 feb5 bl 80299dc <iprintf>
  88294. 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",
  88295. ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr),
  88296. (u16_t)ethaddr->addr[0], (u16_t)ethaddr->addr[1], (u16_t)ethaddr->addr[2],
  88297. (u16_t)ethaddr->addr[3], (u16_t)ethaddr->addr[4], (u16_t)ethaddr->addr[5]));
  88298. /* non-unicast address? */
  88299. if (ip4_addr_isany(ipaddr) ||
  88300. 8023c72: 68bb ldr r3, [r7, #8]
  88301. 8023c74: 2b00 cmp r3, #0
  88302. 8023c76: d012 beq.n 8023c9e <etharp_update_arp_entry+0x52>
  88303. 8023c78: 68bb ldr r3, [r7, #8]
  88304. 8023c7a: 681b ldr r3, [r3, #0]
  88305. 8023c7c: 2b00 cmp r3, #0
  88306. 8023c7e: d00e beq.n 8023c9e <etharp_update_arp_entry+0x52>
  88307. ip4_addr_isbroadcast(ipaddr, netif) ||
  88308. 8023c80: 68bb ldr r3, [r7, #8]
  88309. 8023c82: 681b ldr r3, [r3, #0]
  88310. 8023c84: 68f9 ldr r1, [r7, #12]
  88311. 8023c86: 4618 mov r0, r3
  88312. 8023c88: f001 f952 bl 8024f30 <ip4_addr_isbroadcast_u32>
  88313. 8023c8c: 4603 mov r3, r0
  88314. if (ip4_addr_isany(ipaddr) ||
  88315. 8023c8e: 2b00 cmp r3, #0
  88316. 8023c90: d105 bne.n 8023c9e <etharp_update_arp_entry+0x52>
  88317. ip4_addr_ismulticast(ipaddr)) {
  88318. 8023c92: 68bb ldr r3, [r7, #8]
  88319. 8023c94: 681b ldr r3, [r3, #0]
  88320. 8023c96: f003 03f0 and.w r3, r3, #240 @ 0xf0
  88321. ip4_addr_isbroadcast(ipaddr, netif) ||
  88322. 8023c9a: 2be0 cmp r3, #224 @ 0xe0
  88323. 8023c9c: d102 bne.n 8023ca4 <etharp_update_arp_entry+0x58>
  88324. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: will not add non-unicast IP address to ARP cache\n"));
  88325. return ERR_ARG;
  88326. 8023c9e: f06f 030f mvn.w r3, #15
  88327. 8023ca2: e06c b.n 8023d7e <etharp_update_arp_entry+0x132>
  88328. }
  88329. /* find or create ARP entry */
  88330. i = etharp_find_entry(ipaddr, flags, netif);
  88331. 8023ca4: 78fb ldrb r3, [r7, #3]
  88332. 8023ca6: 68fa ldr r2, [r7, #12]
  88333. 8023ca8: 4619 mov r1, r3
  88334. 8023caa: 68b8 ldr r0, [r7, #8]
  88335. 8023cac: f7ff fe56 bl 802395c <etharp_find_entry>
  88336. 8023cb0: 4603 mov r3, r0
  88337. 8023cb2: 82fb strh r3, [r7, #22]
  88338. /* bail out if no entry could be found */
  88339. if (i < 0) {
  88340. 8023cb4: f9b7 3016 ldrsh.w r3, [r7, #22]
  88341. 8023cb8: 2b00 cmp r3, #0
  88342. 8023cba: da02 bge.n 8023cc2 <etharp_update_arp_entry+0x76>
  88343. return (err_t)i;
  88344. 8023cbc: 8afb ldrh r3, [r7, #22]
  88345. 8023cbe: b25b sxtb r3, r3
  88346. 8023cc0: e05d b.n 8023d7e <etharp_update_arp_entry+0x132>
  88347. return ERR_VAL;
  88348. } else
  88349. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  88350. {
  88351. /* mark it stable */
  88352. arp_table[i].state = ETHARP_STATE_STABLE;
  88353. 8023cc2: f9b7 2016 ldrsh.w r2, [r7, #22]
  88354. 8023cc6: 4933 ldr r1, [pc, #204] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88355. 8023cc8: 4613 mov r3, r2
  88356. 8023cca: 005b lsls r3, r3, #1
  88357. 8023ccc: 4413 add r3, r2
  88358. 8023cce: 00db lsls r3, r3, #3
  88359. 8023cd0: 440b add r3, r1
  88360. 8023cd2: 3314 adds r3, #20
  88361. 8023cd4: 2202 movs r2, #2
  88362. 8023cd6: 701a strb r2, [r3, #0]
  88363. }
  88364. /* record network interface */
  88365. arp_table[i].netif = netif;
  88366. 8023cd8: f9b7 2016 ldrsh.w r2, [r7, #22]
  88367. 8023cdc: 492d ldr r1, [pc, #180] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88368. 8023cde: 4613 mov r3, r2
  88369. 8023ce0: 005b lsls r3, r3, #1
  88370. 8023ce2: 4413 add r3, r2
  88371. 8023ce4: 00db lsls r3, r3, #3
  88372. 8023ce6: 440b add r3, r1
  88373. 8023ce8: 3308 adds r3, #8
  88374. 8023cea: 68fa ldr r2, [r7, #12]
  88375. 8023cec: 601a str r2, [r3, #0]
  88376. /* insert in SNMP ARP index tree */
  88377. mib2_add_arp_entry(netif, &arp_table[i].ipaddr);
  88378. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: updating stable entry %"S16_F"\n", i));
  88379. /* update address */
  88380. SMEMCPY(&arp_table[i].ethaddr, ethaddr, ETH_HWADDR_LEN);
  88381. 8023cee: f9b7 2016 ldrsh.w r2, [r7, #22]
  88382. 8023cf2: 4613 mov r3, r2
  88383. 8023cf4: 005b lsls r3, r3, #1
  88384. 8023cf6: 4413 add r3, r2
  88385. 8023cf8: 00db lsls r3, r3, #3
  88386. 8023cfa: 3308 adds r3, #8
  88387. 8023cfc: 4a25 ldr r2, [pc, #148] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88388. 8023cfe: 4413 add r3, r2
  88389. 8023d00: 3304 adds r3, #4
  88390. 8023d02: 2206 movs r2, #6
  88391. 8023d04: 6879 ldr r1, [r7, #4]
  88392. 8023d06: 4618 mov r0, r3
  88393. 8023d08: f006 f8f1 bl 8029eee <memcpy>
  88394. /* reset time stamp */
  88395. arp_table[i].ctime = 0;
  88396. 8023d0c: f9b7 2016 ldrsh.w r2, [r7, #22]
  88397. 8023d10: 4920 ldr r1, [pc, #128] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88398. 8023d12: 4613 mov r3, r2
  88399. 8023d14: 005b lsls r3, r3, #1
  88400. 8023d16: 4413 add r3, r2
  88401. 8023d18: 00db lsls r3, r3, #3
  88402. 8023d1a: 440b add r3, r1
  88403. 8023d1c: 3312 adds r3, #18
  88404. 8023d1e: 2200 movs r2, #0
  88405. 8023d20: 801a strh r2, [r3, #0]
  88406. /* get the packet pointer */
  88407. p = q->p;
  88408. /* now queue entry can be freed */
  88409. memp_free(MEMP_ARP_QUEUE, q);
  88410. #else /* ARP_QUEUEING */
  88411. if (arp_table[i].q != NULL) {
  88412. 8023d22: f9b7 2016 ldrsh.w r2, [r7, #22]
  88413. 8023d26: 491b ldr r1, [pc, #108] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88414. 8023d28: 4613 mov r3, r2
  88415. 8023d2a: 005b lsls r3, r3, #1
  88416. 8023d2c: 4413 add r3, r2
  88417. 8023d2e: 00db lsls r3, r3, #3
  88418. 8023d30: 440b add r3, r1
  88419. 8023d32: 681b ldr r3, [r3, #0]
  88420. 8023d34: 2b00 cmp r3, #0
  88421. 8023d36: d021 beq.n 8023d7c <etharp_update_arp_entry+0x130>
  88422. struct pbuf *p = arp_table[i].q;
  88423. 8023d38: f9b7 2016 ldrsh.w r2, [r7, #22]
  88424. 8023d3c: 4915 ldr r1, [pc, #84] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88425. 8023d3e: 4613 mov r3, r2
  88426. 8023d40: 005b lsls r3, r3, #1
  88427. 8023d42: 4413 add r3, r2
  88428. 8023d44: 00db lsls r3, r3, #3
  88429. 8023d46: 440b add r3, r1
  88430. 8023d48: 681b ldr r3, [r3, #0]
  88431. 8023d4a: 613b str r3, [r7, #16]
  88432. arp_table[i].q = NULL;
  88433. 8023d4c: f9b7 2016 ldrsh.w r2, [r7, #22]
  88434. 8023d50: 4910 ldr r1, [pc, #64] @ (8023d94 <etharp_update_arp_entry+0x148>)
  88435. 8023d52: 4613 mov r3, r2
  88436. 8023d54: 005b lsls r3, r3, #1
  88437. 8023d56: 4413 add r3, r2
  88438. 8023d58: 00db lsls r3, r3, #3
  88439. 8023d5a: 440b add r3, r1
  88440. 8023d5c: 2200 movs r2, #0
  88441. 8023d5e: 601a str r2, [r3, #0]
  88442. #endif /* ARP_QUEUEING */
  88443. /* send the queued IP packet */
  88444. ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP);
  88445. 8023d60: 68fb ldr r3, [r7, #12]
  88446. 8023d62: f103 022a add.w r2, r3, #42 @ 0x2a
  88447. 8023d66: f44f 6300 mov.w r3, #2048 @ 0x800
  88448. 8023d6a: 9300 str r3, [sp, #0]
  88449. 8023d6c: 687b ldr r3, [r7, #4]
  88450. 8023d6e: 6939 ldr r1, [r7, #16]
  88451. 8023d70: 68f8 ldr r0, [r7, #12]
  88452. 8023d72: f002 f9bb bl 80260ec <ethernet_output>
  88453. /* free the queued IP packet */
  88454. pbuf_free(p);
  88455. 8023d76: 6938 ldr r0, [r7, #16]
  88456. 8023d78: f7f6 fbb8 bl 801a4ec <pbuf_free>
  88457. }
  88458. return ERR_OK;
  88459. 8023d7c: 2300 movs r3, #0
  88460. }
  88461. 8023d7e: 4618 mov r0, r3
  88462. 8023d80: 3718 adds r7, #24
  88463. 8023d82: 46bd mov sp, r7
  88464. 8023d84: bd80 pop {r7, pc}
  88465. 8023d86: bf00 nop
  88466. 8023d88: 0803023c .word 0x0803023c
  88467. 8023d8c: 08030334 .word 0x08030334
  88468. 8023d90: 080302b4 .word 0x080302b4
  88469. 8023d94: 2402af20 .word 0x2402af20
  88470. 08023d98 <etharp_cleanup_netif>:
  88471. *
  88472. * @param netif points to a network interface
  88473. */
  88474. void
  88475. etharp_cleanup_netif(struct netif *netif)
  88476. {
  88477. 8023d98: b580 push {r7, lr}
  88478. 8023d9a: b084 sub sp, #16
  88479. 8023d9c: af00 add r7, sp, #0
  88480. 8023d9e: 6078 str r0, [r7, #4]
  88481. int i;
  88482. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  88483. 8023da0: 2300 movs r3, #0
  88484. 8023da2: 60fb str r3, [r7, #12]
  88485. 8023da4: e01e b.n 8023de4 <etharp_cleanup_netif+0x4c>
  88486. u8_t state = arp_table[i].state;
  88487. 8023da6: 4913 ldr r1, [pc, #76] @ (8023df4 <etharp_cleanup_netif+0x5c>)
  88488. 8023da8: 68fa ldr r2, [r7, #12]
  88489. 8023daa: 4613 mov r3, r2
  88490. 8023dac: 005b lsls r3, r3, #1
  88491. 8023dae: 4413 add r3, r2
  88492. 8023db0: 00db lsls r3, r3, #3
  88493. 8023db2: 440b add r3, r1
  88494. 8023db4: 3314 adds r3, #20
  88495. 8023db6: 781b ldrb r3, [r3, #0]
  88496. 8023db8: 72fb strb r3, [r7, #11]
  88497. if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) {
  88498. 8023dba: 7afb ldrb r3, [r7, #11]
  88499. 8023dbc: 2b00 cmp r3, #0
  88500. 8023dbe: d00e beq.n 8023dde <etharp_cleanup_netif+0x46>
  88501. 8023dc0: 490c ldr r1, [pc, #48] @ (8023df4 <etharp_cleanup_netif+0x5c>)
  88502. 8023dc2: 68fa ldr r2, [r7, #12]
  88503. 8023dc4: 4613 mov r3, r2
  88504. 8023dc6: 005b lsls r3, r3, #1
  88505. 8023dc8: 4413 add r3, r2
  88506. 8023dca: 00db lsls r3, r3, #3
  88507. 8023dcc: 440b add r3, r1
  88508. 8023dce: 3308 adds r3, #8
  88509. 8023dd0: 681b ldr r3, [r3, #0]
  88510. 8023dd2: 687a ldr r2, [r7, #4]
  88511. 8023dd4: 429a cmp r2, r3
  88512. 8023dd6: d102 bne.n 8023dde <etharp_cleanup_netif+0x46>
  88513. etharp_free_entry(i);
  88514. 8023dd8: 68f8 ldr r0, [r7, #12]
  88515. 8023dda: f7ff fcb7 bl 802374c <etharp_free_entry>
  88516. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  88517. 8023dde: 68fb ldr r3, [r7, #12]
  88518. 8023de0: 3301 adds r3, #1
  88519. 8023de2: 60fb str r3, [r7, #12]
  88520. 8023de4: 68fb ldr r3, [r7, #12]
  88521. 8023de6: 2b09 cmp r3, #9
  88522. 8023de8: dddd ble.n 8023da6 <etharp_cleanup_netif+0xe>
  88523. }
  88524. }
  88525. }
  88526. 8023dea: bf00 nop
  88527. 8023dec: bf00 nop
  88528. 8023dee: 3710 adds r7, #16
  88529. 8023df0: 46bd mov sp, r7
  88530. 8023df2: bd80 pop {r7, pc}
  88531. 8023df4: 2402af20 .word 0x2402af20
  88532. 08023df8 <etharp_input>:
  88533. *
  88534. * @see pbuf_free()
  88535. */
  88536. void
  88537. etharp_input(struct pbuf *p, struct netif *netif)
  88538. {
  88539. 8023df8: b5b0 push {r4, r5, r7, lr}
  88540. 8023dfa: b08a sub sp, #40 @ 0x28
  88541. 8023dfc: af04 add r7, sp, #16
  88542. 8023dfe: 6078 str r0, [r7, #4]
  88543. 8023e00: 6039 str r1, [r7, #0]
  88544. struct etharp_hdr *hdr;
  88545. /* these are aligned properly, whereas the ARP header fields might not be */
  88546. ip4_addr_t sipaddr, dipaddr;
  88547. u8_t for_us;
  88548. LWIP_ASSERT_CORE_LOCKED();
  88549. 8023e02: f7ec fb9f bl 8010544 <sys_check_core_locking>
  88550. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  88551. 8023e06: 683b ldr r3, [r7, #0]
  88552. 8023e08: 2b00 cmp r3, #0
  88553. 8023e0a: d107 bne.n 8023e1c <etharp_input+0x24>
  88554. 8023e0c: 4b3f ldr r3, [pc, #252] @ (8023f0c <etharp_input+0x114>)
  88555. 8023e0e: f240 228a movw r2, #650 @ 0x28a
  88556. 8023e12: 493f ldr r1, [pc, #252] @ (8023f10 <etharp_input+0x118>)
  88557. 8023e14: 483f ldr r0, [pc, #252] @ (8023f14 <etharp_input+0x11c>)
  88558. 8023e16: f005 fde1 bl 80299dc <iprintf>
  88559. 8023e1a: e074 b.n 8023f06 <etharp_input+0x10e>
  88560. hdr = (struct etharp_hdr *)p->payload;
  88561. 8023e1c: 687b ldr r3, [r7, #4]
  88562. 8023e1e: 685b ldr r3, [r3, #4]
  88563. 8023e20: 617b str r3, [r7, #20]
  88564. /* RFC 826 "Packet Reception": */
  88565. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  88566. 8023e22: 697b ldr r3, [r7, #20]
  88567. 8023e24: 881b ldrh r3, [r3, #0]
  88568. 8023e26: b29b uxth r3, r3
  88569. 8023e28: f5b3 7f80 cmp.w r3, #256 @ 0x100
  88570. 8023e2c: d10c bne.n 8023e48 <etharp_input+0x50>
  88571. (hdr->hwlen != ETH_HWADDR_LEN) ||
  88572. 8023e2e: 697b ldr r3, [r7, #20]
  88573. 8023e30: 791b ldrb r3, [r3, #4]
  88574. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  88575. 8023e32: 2b06 cmp r3, #6
  88576. 8023e34: d108 bne.n 8023e48 <etharp_input+0x50>
  88577. (hdr->protolen != sizeof(ip4_addr_t)) ||
  88578. 8023e36: 697b ldr r3, [r7, #20]
  88579. 8023e38: 795b ldrb r3, [r3, #5]
  88580. (hdr->hwlen != ETH_HWADDR_LEN) ||
  88581. 8023e3a: 2b04 cmp r3, #4
  88582. 8023e3c: d104 bne.n 8023e48 <etharp_input+0x50>
  88583. (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
  88584. 8023e3e: 697b ldr r3, [r7, #20]
  88585. 8023e40: 885b ldrh r3, [r3, #2]
  88586. 8023e42: b29b uxth r3, r3
  88587. (hdr->protolen != sizeof(ip4_addr_t)) ||
  88588. 8023e44: 2b08 cmp r3, #8
  88589. 8023e46: d003 beq.n 8023e50 <etharp_input+0x58>
  88590. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  88591. ("etharp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n",
  88592. hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen));
  88593. ETHARP_STATS_INC(etharp.proterr);
  88594. ETHARP_STATS_INC(etharp.drop);
  88595. pbuf_free(p);
  88596. 8023e48: 6878 ldr r0, [r7, #4]
  88597. 8023e4a: f7f6 fb4f bl 801a4ec <pbuf_free>
  88598. return;
  88599. 8023e4e: e05a b.n 8023f06 <etharp_input+0x10e>
  88600. autoip_arp_reply(netif, hdr);
  88601. #endif /* LWIP_AUTOIP */
  88602. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  88603. * structure packing (not using structure copy which breaks strict-aliasing rules). */
  88604. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr);
  88605. 8023e50: 697b ldr r3, [r7, #20]
  88606. 8023e52: 330e adds r3, #14
  88607. 8023e54: 681b ldr r3, [r3, #0]
  88608. 8023e56: 60fb str r3, [r7, #12]
  88609. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr);
  88610. 8023e58: 697b ldr r3, [r7, #20]
  88611. 8023e5a: 3318 adds r3, #24
  88612. 8023e5c: 681b ldr r3, [r3, #0]
  88613. 8023e5e: 60bb str r3, [r7, #8]
  88614. /* this interface is not configured? */
  88615. if (ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  88616. 8023e60: 683b ldr r3, [r7, #0]
  88617. 8023e62: 3304 adds r3, #4
  88618. 8023e64: 681b ldr r3, [r3, #0]
  88619. 8023e66: 2b00 cmp r3, #0
  88620. 8023e68: d102 bne.n 8023e70 <etharp_input+0x78>
  88621. for_us = 0;
  88622. 8023e6a: 2300 movs r3, #0
  88623. 8023e6c: 74fb strb r3, [r7, #19]
  88624. 8023e6e: e009 b.n 8023e84 <etharp_input+0x8c>
  88625. } else {
  88626. /* ARP packet directed to us? */
  88627. for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif));
  88628. 8023e70: 68ba ldr r2, [r7, #8]
  88629. 8023e72: 683b ldr r3, [r7, #0]
  88630. 8023e74: 3304 adds r3, #4
  88631. 8023e76: 681b ldr r3, [r3, #0]
  88632. 8023e78: 429a cmp r2, r3
  88633. 8023e7a: bf0c ite eq
  88634. 8023e7c: 2301 moveq r3, #1
  88635. 8023e7e: 2300 movne r3, #0
  88636. 8023e80: b2db uxtb r3, r3
  88637. 8023e82: 74fb strb r3, [r7, #19]
  88638. /* ARP message directed to us?
  88639. -> add IP address in ARP cache; assume requester wants to talk to us,
  88640. can result in directly sending the queued packets for this host.
  88641. ARP message not directed to us?
  88642. -> update the source IP address in the cache, if present */
  88643. etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr),
  88644. 8023e84: 697b ldr r3, [r7, #20]
  88645. 8023e86: f103 0208 add.w r2, r3, #8
  88646. 8023e8a: 7cfb ldrb r3, [r7, #19]
  88647. 8023e8c: 2b00 cmp r3, #0
  88648. 8023e8e: d001 beq.n 8023e94 <etharp_input+0x9c>
  88649. 8023e90: 2301 movs r3, #1
  88650. 8023e92: e000 b.n 8023e96 <etharp_input+0x9e>
  88651. 8023e94: 2302 movs r3, #2
  88652. 8023e96: f107 010c add.w r1, r7, #12
  88653. 8023e9a: 6838 ldr r0, [r7, #0]
  88654. 8023e9c: f7ff fed6 bl 8023c4c <etharp_update_arp_entry>
  88655. for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY);
  88656. /* now act on the message itself */
  88657. switch (hdr->opcode) {
  88658. 8023ea0: 697b ldr r3, [r7, #20]
  88659. 8023ea2: 88db ldrh r3, [r3, #6]
  88660. 8023ea4: b29b uxth r3, r3
  88661. 8023ea6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  88662. 8023eaa: d003 beq.n 8023eb4 <etharp_input+0xbc>
  88663. 8023eac: f5b3 7f00 cmp.w r3, #512 @ 0x200
  88664. 8023eb0: d01e beq.n 8023ef0 <etharp_input+0xf8>
  88665. #endif /* (LWIP_DHCP && DHCP_DOES_ARP_CHECK) */
  88666. break;
  88667. default:
  88668. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP unknown opcode type %"S16_F"\n", lwip_htons(hdr->opcode)));
  88669. ETHARP_STATS_INC(etharp.err);
  88670. break;
  88671. 8023eb2: e025 b.n 8023f00 <etharp_input+0x108>
  88672. if (for_us) {
  88673. 8023eb4: 7cfb ldrb r3, [r7, #19]
  88674. 8023eb6: 2b00 cmp r3, #0
  88675. 8023eb8: d021 beq.n 8023efe <etharp_input+0x106>
  88676. (struct eth_addr *)netif->hwaddr, &hdr->shwaddr,
  88677. 8023eba: 683b ldr r3, [r7, #0]
  88678. 8023ebc: f103 002a add.w r0, r3, #42 @ 0x2a
  88679. 8023ec0: 697b ldr r3, [r7, #20]
  88680. 8023ec2: f103 0408 add.w r4, r3, #8
  88681. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
  88682. 8023ec6: 683b ldr r3, [r7, #0]
  88683. 8023ec8: f103 052a add.w r5, r3, #42 @ 0x2a
  88684. 8023ecc: 683b ldr r3, [r7, #0]
  88685. 8023ece: 3304 adds r3, #4
  88686. &hdr->shwaddr, &sipaddr,
  88687. 8023ed0: 697a ldr r2, [r7, #20]
  88688. 8023ed2: 3208 adds r2, #8
  88689. etharp_raw(netif,
  88690. 8023ed4: 2102 movs r1, #2
  88691. 8023ed6: 9103 str r1, [sp, #12]
  88692. 8023ed8: f107 010c add.w r1, r7, #12
  88693. 8023edc: 9102 str r1, [sp, #8]
  88694. 8023ede: 9201 str r2, [sp, #4]
  88695. 8023ee0: 9300 str r3, [sp, #0]
  88696. 8023ee2: 462b mov r3, r5
  88697. 8023ee4: 4622 mov r2, r4
  88698. 8023ee6: 4601 mov r1, r0
  88699. 8023ee8: 6838 ldr r0, [r7, #0]
  88700. 8023eea: f000 faf1 bl 80244d0 <etharp_raw>
  88701. break;
  88702. 8023eee: e006 b.n 8023efe <etharp_input+0x106>
  88703. dhcp_arp_reply(netif, &sipaddr);
  88704. 8023ef0: f107 030c add.w r3, r7, #12
  88705. 8023ef4: 4619 mov r1, r3
  88706. 8023ef6: 6838 ldr r0, [r7, #0]
  88707. 8023ef8: f7fe f9b6 bl 8022268 <dhcp_arp_reply>
  88708. break;
  88709. 8023efc: e000 b.n 8023f00 <etharp_input+0x108>
  88710. break;
  88711. 8023efe: bf00 nop
  88712. }
  88713. /* free ARP packet */
  88714. pbuf_free(p);
  88715. 8023f00: 6878 ldr r0, [r7, #4]
  88716. 8023f02: f7f6 faf3 bl 801a4ec <pbuf_free>
  88717. }
  88718. 8023f06: 3718 adds r7, #24
  88719. 8023f08: 46bd mov sp, r7
  88720. 8023f0a: bdb0 pop {r4, r5, r7, pc}
  88721. 8023f0c: 0803023c .word 0x0803023c
  88722. 8023f10: 0803038c .word 0x0803038c
  88723. 8023f14: 080302b4 .word 0x080302b4
  88724. 08023f18 <etharp_output_to_arp_index>:
  88725. /** Just a small helper function that sends a pbuf to an ethernet address
  88726. * in the arp_table specified by the index 'arp_idx'.
  88727. */
  88728. static err_t
  88729. etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx)
  88730. {
  88731. 8023f18: b580 push {r7, lr}
  88732. 8023f1a: b086 sub sp, #24
  88733. 8023f1c: af02 add r7, sp, #8
  88734. 8023f1e: 60f8 str r0, [r7, #12]
  88735. 8023f20: 60b9 str r1, [r7, #8]
  88736. 8023f22: 4613 mov r3, r2
  88737. 8023f24: 71fb strb r3, [r7, #7]
  88738. LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE",
  88739. 8023f26: 79fa ldrb r2, [r7, #7]
  88740. 8023f28: 4944 ldr r1, [pc, #272] @ (802403c <etharp_output_to_arp_index+0x124>)
  88741. 8023f2a: 4613 mov r3, r2
  88742. 8023f2c: 005b lsls r3, r3, #1
  88743. 8023f2e: 4413 add r3, r2
  88744. 8023f30: 00db lsls r3, r3, #3
  88745. 8023f32: 440b add r3, r1
  88746. 8023f34: 3314 adds r3, #20
  88747. 8023f36: 781b ldrb r3, [r3, #0]
  88748. 8023f38: 2b01 cmp r3, #1
  88749. 8023f3a: d806 bhi.n 8023f4a <etharp_output_to_arp_index+0x32>
  88750. 8023f3c: 4b40 ldr r3, [pc, #256] @ (8024040 <etharp_output_to_arp_index+0x128>)
  88751. 8023f3e: f240 22ee movw r2, #750 @ 0x2ee
  88752. 8023f42: 4940 ldr r1, [pc, #256] @ (8024044 <etharp_output_to_arp_index+0x12c>)
  88753. 8023f44: 4840 ldr r0, [pc, #256] @ (8024048 <etharp_output_to_arp_index+0x130>)
  88754. 8023f46: f005 fd49 bl 80299dc <iprintf>
  88755. arp_table[arp_idx].state >= ETHARP_STATE_STABLE);
  88756. /* if arp table entry is about to expire: re-request it,
  88757. but only if its state is ETHARP_STATE_STABLE to prevent flooding the
  88758. network with ARP requests if this address is used frequently. */
  88759. if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) {
  88760. 8023f4a: 79fa ldrb r2, [r7, #7]
  88761. 8023f4c: 493b ldr r1, [pc, #236] @ (802403c <etharp_output_to_arp_index+0x124>)
  88762. 8023f4e: 4613 mov r3, r2
  88763. 8023f50: 005b lsls r3, r3, #1
  88764. 8023f52: 4413 add r3, r2
  88765. 8023f54: 00db lsls r3, r3, #3
  88766. 8023f56: 440b add r3, r1
  88767. 8023f58: 3314 adds r3, #20
  88768. 8023f5a: 781b ldrb r3, [r3, #0]
  88769. 8023f5c: 2b02 cmp r3, #2
  88770. 8023f5e: d153 bne.n 8024008 <etharp_output_to_arp_index+0xf0>
  88771. if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) {
  88772. 8023f60: 79fa ldrb r2, [r7, #7]
  88773. 8023f62: 4936 ldr r1, [pc, #216] @ (802403c <etharp_output_to_arp_index+0x124>)
  88774. 8023f64: 4613 mov r3, r2
  88775. 8023f66: 005b lsls r3, r3, #1
  88776. 8023f68: 4413 add r3, r2
  88777. 8023f6a: 00db lsls r3, r3, #3
  88778. 8023f6c: 440b add r3, r1
  88779. 8023f6e: 3312 adds r3, #18
  88780. 8023f70: 881b ldrh r3, [r3, #0]
  88781. 8023f72: f5b3 7f8e cmp.w r3, #284 @ 0x11c
  88782. 8023f76: d919 bls.n 8023fac <etharp_output_to_arp_index+0x94>
  88783. /* issue a standard request using broadcast */
  88784. if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) {
  88785. 8023f78: 79fa ldrb r2, [r7, #7]
  88786. 8023f7a: 4613 mov r3, r2
  88787. 8023f7c: 005b lsls r3, r3, #1
  88788. 8023f7e: 4413 add r3, r2
  88789. 8023f80: 00db lsls r3, r3, #3
  88790. 8023f82: 4a2e ldr r2, [pc, #184] @ (802403c <etharp_output_to_arp_index+0x124>)
  88791. 8023f84: 4413 add r3, r2
  88792. 8023f86: 3304 adds r3, #4
  88793. 8023f88: 4619 mov r1, r3
  88794. 8023f8a: 68f8 ldr r0, [r7, #12]
  88795. 8023f8c: f000 fb4e bl 802462c <etharp_request>
  88796. 8023f90: 4603 mov r3, r0
  88797. 8023f92: 2b00 cmp r3, #0
  88798. 8023f94: d138 bne.n 8024008 <etharp_output_to_arp_index+0xf0>
  88799. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  88800. 8023f96: 79fa ldrb r2, [r7, #7]
  88801. 8023f98: 4928 ldr r1, [pc, #160] @ (802403c <etharp_output_to_arp_index+0x124>)
  88802. 8023f9a: 4613 mov r3, r2
  88803. 8023f9c: 005b lsls r3, r3, #1
  88804. 8023f9e: 4413 add r3, r2
  88805. 8023fa0: 00db lsls r3, r3, #3
  88806. 8023fa2: 440b add r3, r1
  88807. 8023fa4: 3314 adds r3, #20
  88808. 8023fa6: 2203 movs r2, #3
  88809. 8023fa8: 701a strb r2, [r3, #0]
  88810. 8023faa: e02d b.n 8024008 <etharp_output_to_arp_index+0xf0>
  88811. }
  88812. } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) {
  88813. 8023fac: 79fa ldrb r2, [r7, #7]
  88814. 8023fae: 4923 ldr r1, [pc, #140] @ (802403c <etharp_output_to_arp_index+0x124>)
  88815. 8023fb0: 4613 mov r3, r2
  88816. 8023fb2: 005b lsls r3, r3, #1
  88817. 8023fb4: 4413 add r3, r2
  88818. 8023fb6: 00db lsls r3, r3, #3
  88819. 8023fb8: 440b add r3, r1
  88820. 8023fba: 3312 adds r3, #18
  88821. 8023fbc: 881b ldrh r3, [r3, #0]
  88822. 8023fbe: f5b3 7f87 cmp.w r3, #270 @ 0x10e
  88823. 8023fc2: d321 bcc.n 8024008 <etharp_output_to_arp_index+0xf0>
  88824. /* issue a unicast request (for 15 seconds) to prevent unnecessary broadcast */
  88825. if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) {
  88826. 8023fc4: 79fa ldrb r2, [r7, #7]
  88827. 8023fc6: 4613 mov r3, r2
  88828. 8023fc8: 005b lsls r3, r3, #1
  88829. 8023fca: 4413 add r3, r2
  88830. 8023fcc: 00db lsls r3, r3, #3
  88831. 8023fce: 4a1b ldr r2, [pc, #108] @ (802403c <etharp_output_to_arp_index+0x124>)
  88832. 8023fd0: 4413 add r3, r2
  88833. 8023fd2: 1d19 adds r1, r3, #4
  88834. 8023fd4: 79fa ldrb r2, [r7, #7]
  88835. 8023fd6: 4613 mov r3, r2
  88836. 8023fd8: 005b lsls r3, r3, #1
  88837. 8023fda: 4413 add r3, r2
  88838. 8023fdc: 00db lsls r3, r3, #3
  88839. 8023fde: 3308 adds r3, #8
  88840. 8023fe0: 4a16 ldr r2, [pc, #88] @ (802403c <etharp_output_to_arp_index+0x124>)
  88841. 8023fe2: 4413 add r3, r2
  88842. 8023fe4: 3304 adds r3, #4
  88843. 8023fe6: 461a mov r2, r3
  88844. 8023fe8: 68f8 ldr r0, [r7, #12]
  88845. 8023fea: f000 fafd bl 80245e8 <etharp_request_dst>
  88846. 8023fee: 4603 mov r3, r0
  88847. 8023ff0: 2b00 cmp r3, #0
  88848. 8023ff2: d109 bne.n 8024008 <etharp_output_to_arp_index+0xf0>
  88849. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  88850. 8023ff4: 79fa ldrb r2, [r7, #7]
  88851. 8023ff6: 4911 ldr r1, [pc, #68] @ (802403c <etharp_output_to_arp_index+0x124>)
  88852. 8023ff8: 4613 mov r3, r2
  88853. 8023ffa: 005b lsls r3, r3, #1
  88854. 8023ffc: 4413 add r3, r2
  88855. 8023ffe: 00db lsls r3, r3, #3
  88856. 8024000: 440b add r3, r1
  88857. 8024002: 3314 adds r3, #20
  88858. 8024004: 2203 movs r2, #3
  88859. 8024006: 701a strb r2, [r3, #0]
  88860. }
  88861. }
  88862. }
  88863. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP);
  88864. 8024008: 68fb ldr r3, [r7, #12]
  88865. 802400a: f103 012a add.w r1, r3, #42 @ 0x2a
  88866. 802400e: 79fa ldrb r2, [r7, #7]
  88867. 8024010: 4613 mov r3, r2
  88868. 8024012: 005b lsls r3, r3, #1
  88869. 8024014: 4413 add r3, r2
  88870. 8024016: 00db lsls r3, r3, #3
  88871. 8024018: 3308 adds r3, #8
  88872. 802401a: 4a08 ldr r2, [pc, #32] @ (802403c <etharp_output_to_arp_index+0x124>)
  88873. 802401c: 4413 add r3, r2
  88874. 802401e: 3304 adds r3, #4
  88875. 8024020: f44f 6200 mov.w r2, #2048 @ 0x800
  88876. 8024024: 9200 str r2, [sp, #0]
  88877. 8024026: 460a mov r2, r1
  88878. 8024028: 68b9 ldr r1, [r7, #8]
  88879. 802402a: 68f8 ldr r0, [r7, #12]
  88880. 802402c: f002 f85e bl 80260ec <ethernet_output>
  88881. 8024030: 4603 mov r3, r0
  88882. }
  88883. 8024032: 4618 mov r0, r3
  88884. 8024034: 3710 adds r7, #16
  88885. 8024036: 46bd mov sp, r7
  88886. 8024038: bd80 pop {r7, pc}
  88887. 802403a: bf00 nop
  88888. 802403c: 2402af20 .word 0x2402af20
  88889. 8024040: 0803023c .word 0x0803023c
  88890. 8024044: 080303ac .word 0x080303ac
  88891. 8024048: 080302b4 .word 0x080302b4
  88892. 0802404c <etharp_output>:
  88893. * - ERR_RTE No route to destination (no gateway to external networks),
  88894. * or the return type of either etharp_query() or ethernet_output().
  88895. */
  88896. err_t
  88897. etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
  88898. {
  88899. 802404c: b580 push {r7, lr}
  88900. 802404e: b08a sub sp, #40 @ 0x28
  88901. 8024050: af02 add r7, sp, #8
  88902. 8024052: 60f8 str r0, [r7, #12]
  88903. 8024054: 60b9 str r1, [r7, #8]
  88904. 8024056: 607a str r2, [r7, #4]
  88905. const struct eth_addr *dest;
  88906. struct eth_addr mcastaddr;
  88907. const ip4_addr_t *dst_addr = ipaddr;
  88908. 8024058: 687b ldr r3, [r7, #4]
  88909. 802405a: 61bb str r3, [r7, #24]
  88910. LWIP_ASSERT_CORE_LOCKED();
  88911. 802405c: f7ec fa72 bl 8010544 <sys_check_core_locking>
  88912. LWIP_ASSERT("netif != NULL", netif != NULL);
  88913. 8024060: 68fb ldr r3, [r7, #12]
  88914. 8024062: 2b00 cmp r3, #0
  88915. 8024064: d106 bne.n 8024074 <etharp_output+0x28>
  88916. 8024066: 4b73 ldr r3, [pc, #460] @ (8024234 <etharp_output+0x1e8>)
  88917. 8024068: f240 321e movw r2, #798 @ 0x31e
  88918. 802406c: 4972 ldr r1, [pc, #456] @ (8024238 <etharp_output+0x1ec>)
  88919. 802406e: 4873 ldr r0, [pc, #460] @ (802423c <etharp_output+0x1f0>)
  88920. 8024070: f005 fcb4 bl 80299dc <iprintf>
  88921. LWIP_ASSERT("q != NULL", q != NULL);
  88922. 8024074: 68bb ldr r3, [r7, #8]
  88923. 8024076: 2b00 cmp r3, #0
  88924. 8024078: d106 bne.n 8024088 <etharp_output+0x3c>
  88925. 802407a: 4b6e ldr r3, [pc, #440] @ (8024234 <etharp_output+0x1e8>)
  88926. 802407c: f240 321f movw r2, #799 @ 0x31f
  88927. 8024080: 496f ldr r1, [pc, #444] @ (8024240 <etharp_output+0x1f4>)
  88928. 8024082: 486e ldr r0, [pc, #440] @ (802423c <etharp_output+0x1f0>)
  88929. 8024084: f005 fcaa bl 80299dc <iprintf>
  88930. LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
  88931. 8024088: 687b ldr r3, [r7, #4]
  88932. 802408a: 2b00 cmp r3, #0
  88933. 802408c: d106 bne.n 802409c <etharp_output+0x50>
  88934. 802408e: 4b69 ldr r3, [pc, #420] @ (8024234 <etharp_output+0x1e8>)
  88935. 8024090: f44f 7248 mov.w r2, #800 @ 0x320
  88936. 8024094: 496b ldr r1, [pc, #428] @ (8024244 <etharp_output+0x1f8>)
  88937. 8024096: 4869 ldr r0, [pc, #420] @ (802423c <etharp_output+0x1f0>)
  88938. 8024098: f005 fca0 bl 80299dc <iprintf>
  88939. /* Determine on destination hardware address. Broadcasts and multicasts
  88940. * are special, other IP addresses are looked up in the ARP table. */
  88941. /* broadcast destination IP address? */
  88942. if (ip4_addr_isbroadcast(ipaddr, netif)) {
  88943. 802409c: 687b ldr r3, [r7, #4]
  88944. 802409e: 681b ldr r3, [r3, #0]
  88945. 80240a0: 68f9 ldr r1, [r7, #12]
  88946. 80240a2: 4618 mov r0, r3
  88947. 80240a4: f000 ff44 bl 8024f30 <ip4_addr_isbroadcast_u32>
  88948. 80240a8: 4603 mov r3, r0
  88949. 80240aa: 2b00 cmp r3, #0
  88950. 80240ac: d002 beq.n 80240b4 <etharp_output+0x68>
  88951. /* broadcast on Ethernet also */
  88952. dest = (const struct eth_addr *)&ethbroadcast;
  88953. 80240ae: 4b66 ldr r3, [pc, #408] @ (8024248 <etharp_output+0x1fc>)
  88954. 80240b0: 61fb str r3, [r7, #28]
  88955. 80240b2: e0af b.n 8024214 <etharp_output+0x1c8>
  88956. /* multicast destination IP address? */
  88957. } else if (ip4_addr_ismulticast(ipaddr)) {
  88958. 80240b4: 687b ldr r3, [r7, #4]
  88959. 80240b6: 681b ldr r3, [r3, #0]
  88960. 80240b8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  88961. 80240bc: 2be0 cmp r3, #224 @ 0xe0
  88962. 80240be: d118 bne.n 80240f2 <etharp_output+0xa6>
  88963. /* Hash IP multicast address to MAC address.*/
  88964. mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0;
  88965. 80240c0: 2301 movs r3, #1
  88966. 80240c2: 743b strb r3, [r7, #16]
  88967. mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1;
  88968. 80240c4: 2300 movs r3, #0
  88969. 80240c6: 747b strb r3, [r7, #17]
  88970. mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2;
  88971. 80240c8: 235e movs r3, #94 @ 0x5e
  88972. 80240ca: 74bb strb r3, [r7, #18]
  88973. mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f;
  88974. 80240cc: 687b ldr r3, [r7, #4]
  88975. 80240ce: 3301 adds r3, #1
  88976. 80240d0: 781b ldrb r3, [r3, #0]
  88977. 80240d2: f003 037f and.w r3, r3, #127 @ 0x7f
  88978. 80240d6: b2db uxtb r3, r3
  88979. 80240d8: 74fb strb r3, [r7, #19]
  88980. mcastaddr.addr[4] = ip4_addr3(ipaddr);
  88981. 80240da: 687b ldr r3, [r7, #4]
  88982. 80240dc: 3302 adds r3, #2
  88983. 80240de: 781b ldrb r3, [r3, #0]
  88984. 80240e0: 753b strb r3, [r7, #20]
  88985. mcastaddr.addr[5] = ip4_addr4(ipaddr);
  88986. 80240e2: 687b ldr r3, [r7, #4]
  88987. 80240e4: 3303 adds r3, #3
  88988. 80240e6: 781b ldrb r3, [r3, #0]
  88989. 80240e8: 757b strb r3, [r7, #21]
  88990. /* destination Ethernet address is multicast */
  88991. dest = &mcastaddr;
  88992. 80240ea: f107 0310 add.w r3, r7, #16
  88993. 80240ee: 61fb str r3, [r7, #28]
  88994. 80240f0: e090 b.n 8024214 <etharp_output+0x1c8>
  88995. /* unicast destination IP address? */
  88996. } else {
  88997. netif_addr_idx_t i;
  88998. /* outside local network? if so, this can neither be a global broadcast nor
  88999. a subnet broadcast. */
  89000. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  89001. 80240f2: 687b ldr r3, [r7, #4]
  89002. 80240f4: 681a ldr r2, [r3, #0]
  89003. 80240f6: 68fb ldr r3, [r7, #12]
  89004. 80240f8: 3304 adds r3, #4
  89005. 80240fa: 681b ldr r3, [r3, #0]
  89006. 80240fc: 405a eors r2, r3
  89007. 80240fe: 68fb ldr r3, [r7, #12]
  89008. 8024100: 3308 adds r3, #8
  89009. 8024102: 681b ldr r3, [r3, #0]
  89010. 8024104: 4013 ands r3, r2
  89011. 8024106: 2b00 cmp r3, #0
  89012. 8024108: d012 beq.n 8024130 <etharp_output+0xe4>
  89013. !ip4_addr_islinklocal(ipaddr)) {
  89014. 802410a: 687b ldr r3, [r7, #4]
  89015. 802410c: 681b ldr r3, [r3, #0]
  89016. 802410e: b29b uxth r3, r3
  89017. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  89018. 8024110: f64f 62a9 movw r2, #65193 @ 0xfea9
  89019. 8024114: 4293 cmp r3, r2
  89020. 8024116: d00b beq.n 8024130 <etharp_output+0xe4>
  89021. dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr);
  89022. if (dst_addr == NULL)
  89023. #endif /* LWIP_HOOK_ETHARP_GET_GW */
  89024. {
  89025. /* interface has default gateway? */
  89026. if (!ip4_addr_isany_val(*netif_ip4_gw(netif))) {
  89027. 8024118: 68fb ldr r3, [r7, #12]
  89028. 802411a: 330c adds r3, #12
  89029. 802411c: 681b ldr r3, [r3, #0]
  89030. 802411e: 2b00 cmp r3, #0
  89031. 8024120: d003 beq.n 802412a <etharp_output+0xde>
  89032. /* send to hardware address of default gateway IP address */
  89033. dst_addr = netif_ip4_gw(netif);
  89034. 8024122: 68fb ldr r3, [r7, #12]
  89035. 8024124: 330c adds r3, #12
  89036. 8024126: 61bb str r3, [r7, #24]
  89037. 8024128: e002 b.n 8024130 <etharp_output+0xe4>
  89038. /* no default gateway available */
  89039. } else {
  89040. /* no route to destination error (default gateway missing) */
  89041. return ERR_RTE;
  89042. 802412a: f06f 0303 mvn.w r3, #3
  89043. 802412e: e07d b.n 802422c <etharp_output+0x1e0>
  89044. if (netif->hints != NULL) {
  89045. /* per-pcb cached entry was given */
  89046. netif_addr_idx_t etharp_cached_entry = netif->hints->addr_hint;
  89047. if (etharp_cached_entry < ARP_TABLE_SIZE) {
  89048. #endif /* LWIP_NETIF_HWADDRHINT */
  89049. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  89050. 8024130: 4b46 ldr r3, [pc, #280] @ (802424c <etharp_output+0x200>)
  89051. 8024132: 781b ldrb r3, [r3, #0]
  89052. 8024134: 4619 mov r1, r3
  89053. 8024136: 4a46 ldr r2, [pc, #280] @ (8024250 <etharp_output+0x204>)
  89054. 8024138: 460b mov r3, r1
  89055. 802413a: 005b lsls r3, r3, #1
  89056. 802413c: 440b add r3, r1
  89057. 802413e: 00db lsls r3, r3, #3
  89058. 8024140: 4413 add r3, r2
  89059. 8024142: 3314 adds r3, #20
  89060. 8024144: 781b ldrb r3, [r3, #0]
  89061. 8024146: 2b01 cmp r3, #1
  89062. 8024148: d925 bls.n 8024196 <etharp_output+0x14a>
  89063. #if ETHARP_TABLE_MATCH_NETIF
  89064. (arp_table[etharp_cached_entry].netif == netif) &&
  89065. 802414a: 4b40 ldr r3, [pc, #256] @ (802424c <etharp_output+0x200>)
  89066. 802414c: 781b ldrb r3, [r3, #0]
  89067. 802414e: 4619 mov r1, r3
  89068. 8024150: 4a3f ldr r2, [pc, #252] @ (8024250 <etharp_output+0x204>)
  89069. 8024152: 460b mov r3, r1
  89070. 8024154: 005b lsls r3, r3, #1
  89071. 8024156: 440b add r3, r1
  89072. 8024158: 00db lsls r3, r3, #3
  89073. 802415a: 4413 add r3, r2
  89074. 802415c: 3308 adds r3, #8
  89075. 802415e: 681b ldr r3, [r3, #0]
  89076. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  89077. 8024160: 68fa ldr r2, [r7, #12]
  89078. 8024162: 429a cmp r2, r3
  89079. 8024164: d117 bne.n 8024196 <etharp_output+0x14a>
  89080. #endif
  89081. (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) {
  89082. 8024166: 69bb ldr r3, [r7, #24]
  89083. 8024168: 681a ldr r2, [r3, #0]
  89084. 802416a: 4b38 ldr r3, [pc, #224] @ (802424c <etharp_output+0x200>)
  89085. 802416c: 781b ldrb r3, [r3, #0]
  89086. 802416e: 4618 mov r0, r3
  89087. 8024170: 4937 ldr r1, [pc, #220] @ (8024250 <etharp_output+0x204>)
  89088. 8024172: 4603 mov r3, r0
  89089. 8024174: 005b lsls r3, r3, #1
  89090. 8024176: 4403 add r3, r0
  89091. 8024178: 00db lsls r3, r3, #3
  89092. 802417a: 440b add r3, r1
  89093. 802417c: 3304 adds r3, #4
  89094. 802417e: 681b ldr r3, [r3, #0]
  89095. (arp_table[etharp_cached_entry].netif == netif) &&
  89096. 8024180: 429a cmp r2, r3
  89097. 8024182: d108 bne.n 8024196 <etharp_output+0x14a>
  89098. /* the per-pcb-cached entry is stable and the right one! */
  89099. ETHARP_STATS_INC(etharp.cachehit);
  89100. return etharp_output_to_arp_index(netif, q, etharp_cached_entry);
  89101. 8024184: 4b31 ldr r3, [pc, #196] @ (802424c <etharp_output+0x200>)
  89102. 8024186: 781b ldrb r3, [r3, #0]
  89103. 8024188: 461a mov r2, r3
  89104. 802418a: 68b9 ldr r1, [r7, #8]
  89105. 802418c: 68f8 ldr r0, [r7, #12]
  89106. 802418e: f7ff fec3 bl 8023f18 <etharp_output_to_arp_index>
  89107. 8024192: 4603 mov r3, r0
  89108. 8024194: e04a b.n 802422c <etharp_output+0x1e0>
  89109. }
  89110. #endif /* LWIP_NETIF_HWADDRHINT */
  89111. /* find stable entry: do this here since this is a critical path for
  89112. throughput and etharp_find_entry() is kind of slow */
  89113. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  89114. 8024196: 2300 movs r3, #0
  89115. 8024198: 75fb strb r3, [r7, #23]
  89116. 802419a: e031 b.n 8024200 <etharp_output+0x1b4>
  89117. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  89118. 802419c: 7dfa ldrb r2, [r7, #23]
  89119. 802419e: 492c ldr r1, [pc, #176] @ (8024250 <etharp_output+0x204>)
  89120. 80241a0: 4613 mov r3, r2
  89121. 80241a2: 005b lsls r3, r3, #1
  89122. 80241a4: 4413 add r3, r2
  89123. 80241a6: 00db lsls r3, r3, #3
  89124. 80241a8: 440b add r3, r1
  89125. 80241aa: 3314 adds r3, #20
  89126. 80241ac: 781b ldrb r3, [r3, #0]
  89127. 80241ae: 2b01 cmp r3, #1
  89128. 80241b0: d923 bls.n 80241fa <etharp_output+0x1ae>
  89129. #if ETHARP_TABLE_MATCH_NETIF
  89130. (arp_table[i].netif == netif) &&
  89131. 80241b2: 7dfa ldrb r2, [r7, #23]
  89132. 80241b4: 4926 ldr r1, [pc, #152] @ (8024250 <etharp_output+0x204>)
  89133. 80241b6: 4613 mov r3, r2
  89134. 80241b8: 005b lsls r3, r3, #1
  89135. 80241ba: 4413 add r3, r2
  89136. 80241bc: 00db lsls r3, r3, #3
  89137. 80241be: 440b add r3, r1
  89138. 80241c0: 3308 adds r3, #8
  89139. 80241c2: 681b ldr r3, [r3, #0]
  89140. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  89141. 80241c4: 68fa ldr r2, [r7, #12]
  89142. 80241c6: 429a cmp r2, r3
  89143. 80241c8: d117 bne.n 80241fa <etharp_output+0x1ae>
  89144. #endif
  89145. (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) {
  89146. 80241ca: 69bb ldr r3, [r7, #24]
  89147. 80241cc: 6819 ldr r1, [r3, #0]
  89148. 80241ce: 7dfa ldrb r2, [r7, #23]
  89149. 80241d0: 481f ldr r0, [pc, #124] @ (8024250 <etharp_output+0x204>)
  89150. 80241d2: 4613 mov r3, r2
  89151. 80241d4: 005b lsls r3, r3, #1
  89152. 80241d6: 4413 add r3, r2
  89153. 80241d8: 00db lsls r3, r3, #3
  89154. 80241da: 4403 add r3, r0
  89155. 80241dc: 3304 adds r3, #4
  89156. 80241de: 681b ldr r3, [r3, #0]
  89157. (arp_table[i].netif == netif) &&
  89158. 80241e0: 4299 cmp r1, r3
  89159. 80241e2: d10a bne.n 80241fa <etharp_output+0x1ae>
  89160. /* found an existing, stable entry */
  89161. ETHARP_SET_ADDRHINT(netif, i);
  89162. 80241e4: 4a19 ldr r2, [pc, #100] @ (802424c <etharp_output+0x200>)
  89163. 80241e6: 7dfb ldrb r3, [r7, #23]
  89164. 80241e8: 7013 strb r3, [r2, #0]
  89165. return etharp_output_to_arp_index(netif, q, i);
  89166. 80241ea: 7dfb ldrb r3, [r7, #23]
  89167. 80241ec: 461a mov r2, r3
  89168. 80241ee: 68b9 ldr r1, [r7, #8]
  89169. 80241f0: 68f8 ldr r0, [r7, #12]
  89170. 80241f2: f7ff fe91 bl 8023f18 <etharp_output_to_arp_index>
  89171. 80241f6: 4603 mov r3, r0
  89172. 80241f8: e018 b.n 802422c <etharp_output+0x1e0>
  89173. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  89174. 80241fa: 7dfb ldrb r3, [r7, #23]
  89175. 80241fc: 3301 adds r3, #1
  89176. 80241fe: 75fb strb r3, [r7, #23]
  89177. 8024200: 7dfb ldrb r3, [r7, #23]
  89178. 8024202: 2b09 cmp r3, #9
  89179. 8024204: d9ca bls.n 802419c <etharp_output+0x150>
  89180. }
  89181. }
  89182. /* no stable entry found, use the (slower) query function:
  89183. queue on destination Ethernet address belonging to ipaddr */
  89184. return etharp_query(netif, dst_addr, q);
  89185. 8024206: 68ba ldr r2, [r7, #8]
  89186. 8024208: 69b9 ldr r1, [r7, #24]
  89187. 802420a: 68f8 ldr r0, [r7, #12]
  89188. 802420c: f000 f822 bl 8024254 <etharp_query>
  89189. 8024210: 4603 mov r3, r0
  89190. 8024212: e00b b.n 802422c <etharp_output+0x1e0>
  89191. }
  89192. /* continuation for multicast/broadcast destinations */
  89193. /* obtain source Ethernet address of the given interface */
  89194. /* send packet directly on the link */
  89195. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP);
  89196. 8024214: 68fb ldr r3, [r7, #12]
  89197. 8024216: f103 022a add.w r2, r3, #42 @ 0x2a
  89198. 802421a: f44f 6300 mov.w r3, #2048 @ 0x800
  89199. 802421e: 9300 str r3, [sp, #0]
  89200. 8024220: 69fb ldr r3, [r7, #28]
  89201. 8024222: 68b9 ldr r1, [r7, #8]
  89202. 8024224: 68f8 ldr r0, [r7, #12]
  89203. 8024226: f001 ff61 bl 80260ec <ethernet_output>
  89204. 802422a: 4603 mov r3, r0
  89205. }
  89206. 802422c: 4618 mov r0, r3
  89207. 802422e: 3720 adds r7, #32
  89208. 8024230: 46bd mov sp, r7
  89209. 8024232: bd80 pop {r7, pc}
  89210. 8024234: 0803023c .word 0x0803023c
  89211. 8024238: 0803038c .word 0x0803038c
  89212. 802423c: 080302b4 .word 0x080302b4
  89213. 8024240: 080303dc .word 0x080303dc
  89214. 8024244: 0803037c .word 0x0803037c
  89215. 8024248: 08030c70 .word 0x08030c70
  89216. 802424c: 2402b010 .word 0x2402b010
  89217. 8024250: 2402af20 .word 0x2402af20
  89218. 08024254 <etharp_query>:
  89219. * - ERR_ARG Non-unicast address given, those will not appear in ARP cache.
  89220. *
  89221. */
  89222. err_t
  89223. etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
  89224. {
  89225. 8024254: b580 push {r7, lr}
  89226. 8024256: b08c sub sp, #48 @ 0x30
  89227. 8024258: af02 add r7, sp, #8
  89228. 802425a: 60f8 str r0, [r7, #12]
  89229. 802425c: 60b9 str r1, [r7, #8]
  89230. 802425e: 607a str r2, [r7, #4]
  89231. struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr;
  89232. 8024260: 68fb ldr r3, [r7, #12]
  89233. 8024262: 332a adds r3, #42 @ 0x2a
  89234. 8024264: 617b str r3, [r7, #20]
  89235. err_t result = ERR_MEM;
  89236. 8024266: 23ff movs r3, #255 @ 0xff
  89237. 8024268: f887 3027 strb.w r3, [r7, #39] @ 0x27
  89238. int is_new_entry = 0;
  89239. 802426c: 2300 movs r3, #0
  89240. 802426e: 623b str r3, [r7, #32]
  89241. s16_t i_err;
  89242. netif_addr_idx_t i;
  89243. /* non-unicast address? */
  89244. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  89245. 8024270: 68bb ldr r3, [r7, #8]
  89246. 8024272: 681b ldr r3, [r3, #0]
  89247. 8024274: 68f9 ldr r1, [r7, #12]
  89248. 8024276: 4618 mov r0, r3
  89249. 8024278: f000 fe5a bl 8024f30 <ip4_addr_isbroadcast_u32>
  89250. 802427c: 4603 mov r3, r0
  89251. 802427e: 2b00 cmp r3, #0
  89252. 8024280: d10c bne.n 802429c <etharp_query+0x48>
  89253. ip4_addr_ismulticast(ipaddr) ||
  89254. 8024282: 68bb ldr r3, [r7, #8]
  89255. 8024284: 681b ldr r3, [r3, #0]
  89256. 8024286: f003 03f0 and.w r3, r3, #240 @ 0xf0
  89257. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  89258. 802428a: 2be0 cmp r3, #224 @ 0xe0
  89259. 802428c: d006 beq.n 802429c <etharp_query+0x48>
  89260. ip4_addr_ismulticast(ipaddr) ||
  89261. 802428e: 68bb ldr r3, [r7, #8]
  89262. 8024290: 2b00 cmp r3, #0
  89263. 8024292: d003 beq.n 802429c <etharp_query+0x48>
  89264. ip4_addr_isany(ipaddr)) {
  89265. 8024294: 68bb ldr r3, [r7, #8]
  89266. 8024296: 681b ldr r3, [r3, #0]
  89267. 8024298: 2b00 cmp r3, #0
  89268. 802429a: d102 bne.n 80242a2 <etharp_query+0x4e>
  89269. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n"));
  89270. return ERR_ARG;
  89271. 802429c: f06f 030f mvn.w r3, #15
  89272. 80242a0: e101 b.n 80244a6 <etharp_query+0x252>
  89273. }
  89274. /* find entry in ARP cache, ask to create entry if queueing packet */
  89275. i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif);
  89276. 80242a2: 68fa ldr r2, [r7, #12]
  89277. 80242a4: 2101 movs r1, #1
  89278. 80242a6: 68b8 ldr r0, [r7, #8]
  89279. 80242a8: f7ff fb58 bl 802395c <etharp_find_entry>
  89280. 80242ac: 4603 mov r3, r0
  89281. 80242ae: 827b strh r3, [r7, #18]
  89282. /* could not find or create entry? */
  89283. if (i_err < 0) {
  89284. 80242b0: f9b7 3012 ldrsh.w r3, [r7, #18]
  89285. 80242b4: 2b00 cmp r3, #0
  89286. 80242b6: da02 bge.n 80242be <etharp_query+0x6a>
  89287. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not create ARP entry\n"));
  89288. if (q) {
  89289. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n"));
  89290. ETHARP_STATS_INC(etharp.memerr);
  89291. }
  89292. return (err_t)i_err;
  89293. 80242b8: 8a7b ldrh r3, [r7, #18]
  89294. 80242ba: b25b sxtb r3, r3
  89295. 80242bc: e0f3 b.n 80244a6 <etharp_query+0x252>
  89296. }
  89297. LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX);
  89298. 80242be: 8a7b ldrh r3, [r7, #18]
  89299. 80242c0: 2b7e cmp r3, #126 @ 0x7e
  89300. 80242c2: d906 bls.n 80242d2 <etharp_query+0x7e>
  89301. 80242c4: 4b7a ldr r3, [pc, #488] @ (80244b0 <etharp_query+0x25c>)
  89302. 80242c6: f240 32c1 movw r2, #961 @ 0x3c1
  89303. 80242ca: 497a ldr r1, [pc, #488] @ (80244b4 <etharp_query+0x260>)
  89304. 80242cc: 487a ldr r0, [pc, #488] @ (80244b8 <etharp_query+0x264>)
  89305. 80242ce: f005 fb85 bl 80299dc <iprintf>
  89306. i = (netif_addr_idx_t)i_err;
  89307. 80242d2: 8a7b ldrh r3, [r7, #18]
  89308. 80242d4: 747b strb r3, [r7, #17]
  89309. /* mark a fresh entry as pending (we just sent a request) */
  89310. if (arp_table[i].state == ETHARP_STATE_EMPTY) {
  89311. 80242d6: 7c7a ldrb r2, [r7, #17]
  89312. 80242d8: 4978 ldr r1, [pc, #480] @ (80244bc <etharp_query+0x268>)
  89313. 80242da: 4613 mov r3, r2
  89314. 80242dc: 005b lsls r3, r3, #1
  89315. 80242de: 4413 add r3, r2
  89316. 80242e0: 00db lsls r3, r3, #3
  89317. 80242e2: 440b add r3, r1
  89318. 80242e4: 3314 adds r3, #20
  89319. 80242e6: 781b ldrb r3, [r3, #0]
  89320. 80242e8: 2b00 cmp r3, #0
  89321. 80242ea: d115 bne.n 8024318 <etharp_query+0xc4>
  89322. is_new_entry = 1;
  89323. 80242ec: 2301 movs r3, #1
  89324. 80242ee: 623b str r3, [r7, #32]
  89325. arp_table[i].state = ETHARP_STATE_PENDING;
  89326. 80242f0: 7c7a ldrb r2, [r7, #17]
  89327. 80242f2: 4972 ldr r1, [pc, #456] @ (80244bc <etharp_query+0x268>)
  89328. 80242f4: 4613 mov r3, r2
  89329. 80242f6: 005b lsls r3, r3, #1
  89330. 80242f8: 4413 add r3, r2
  89331. 80242fa: 00db lsls r3, r3, #3
  89332. 80242fc: 440b add r3, r1
  89333. 80242fe: 3314 adds r3, #20
  89334. 8024300: 2201 movs r2, #1
  89335. 8024302: 701a strb r2, [r3, #0]
  89336. /* record network interface for re-sending arp request in etharp_tmr */
  89337. arp_table[i].netif = netif;
  89338. 8024304: 7c7a ldrb r2, [r7, #17]
  89339. 8024306: 496d ldr r1, [pc, #436] @ (80244bc <etharp_query+0x268>)
  89340. 8024308: 4613 mov r3, r2
  89341. 802430a: 005b lsls r3, r3, #1
  89342. 802430c: 4413 add r3, r2
  89343. 802430e: 00db lsls r3, r3, #3
  89344. 8024310: 440b add r3, r1
  89345. 8024312: 3308 adds r3, #8
  89346. 8024314: 68fa ldr r2, [r7, #12]
  89347. 8024316: 601a str r2, [r3, #0]
  89348. }
  89349. /* { i is either a STABLE or (new or existing) PENDING entry } */
  89350. LWIP_ASSERT("arp_table[i].state == PENDING or STABLE",
  89351. 8024318: 7c7a ldrb r2, [r7, #17]
  89352. 802431a: 4968 ldr r1, [pc, #416] @ (80244bc <etharp_query+0x268>)
  89353. 802431c: 4613 mov r3, r2
  89354. 802431e: 005b lsls r3, r3, #1
  89355. 8024320: 4413 add r3, r2
  89356. 8024322: 00db lsls r3, r3, #3
  89357. 8024324: 440b add r3, r1
  89358. 8024326: 3314 adds r3, #20
  89359. 8024328: 781b ldrb r3, [r3, #0]
  89360. 802432a: 2b01 cmp r3, #1
  89361. 802432c: d011 beq.n 8024352 <etharp_query+0xfe>
  89362. 802432e: 7c7a ldrb r2, [r7, #17]
  89363. 8024330: 4962 ldr r1, [pc, #392] @ (80244bc <etharp_query+0x268>)
  89364. 8024332: 4613 mov r3, r2
  89365. 8024334: 005b lsls r3, r3, #1
  89366. 8024336: 4413 add r3, r2
  89367. 8024338: 00db lsls r3, r3, #3
  89368. 802433a: 440b add r3, r1
  89369. 802433c: 3314 adds r3, #20
  89370. 802433e: 781b ldrb r3, [r3, #0]
  89371. 8024340: 2b01 cmp r3, #1
  89372. 8024342: d806 bhi.n 8024352 <etharp_query+0xfe>
  89373. 8024344: 4b5a ldr r3, [pc, #360] @ (80244b0 <etharp_query+0x25c>)
  89374. 8024346: f240 32cd movw r2, #973 @ 0x3cd
  89375. 802434a: 495d ldr r1, [pc, #372] @ (80244c0 <etharp_query+0x26c>)
  89376. 802434c: 485a ldr r0, [pc, #360] @ (80244b8 <etharp_query+0x264>)
  89377. 802434e: f005 fb45 bl 80299dc <iprintf>
  89378. ((arp_table[i].state == ETHARP_STATE_PENDING) ||
  89379. (arp_table[i].state >= ETHARP_STATE_STABLE)));
  89380. /* do we have a new entry? or an implicit query request? */
  89381. if (is_new_entry || (q == NULL)) {
  89382. 8024352: 6a3b ldr r3, [r7, #32]
  89383. 8024354: 2b00 cmp r3, #0
  89384. 8024356: d102 bne.n 802435e <etharp_query+0x10a>
  89385. 8024358: 687b ldr r3, [r7, #4]
  89386. 802435a: 2b00 cmp r3, #0
  89387. 802435c: d10c bne.n 8024378 <etharp_query+0x124>
  89388. /* try to resolve it; send out ARP request */
  89389. result = etharp_request(netif, ipaddr);
  89390. 802435e: 68b9 ldr r1, [r7, #8]
  89391. 8024360: 68f8 ldr r0, [r7, #12]
  89392. 8024362: f000 f963 bl 802462c <etharp_request>
  89393. 8024366: 4603 mov r3, r0
  89394. 8024368: f887 3027 strb.w r3, [r7, #39] @ 0x27
  89395. /* ARP request couldn't be sent */
  89396. /* We don't re-send arp request in etharp_tmr, but we still queue packets,
  89397. since this failure could be temporary, and the next packet calling
  89398. etharp_query again could lead to sending the queued packets. */
  89399. }
  89400. if (q == NULL) {
  89401. 802436c: 687b ldr r3, [r7, #4]
  89402. 802436e: 2b00 cmp r3, #0
  89403. 8024370: d102 bne.n 8024378 <etharp_query+0x124>
  89404. return result;
  89405. 8024372: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  89406. 8024376: e096 b.n 80244a6 <etharp_query+0x252>
  89407. }
  89408. }
  89409. /* packet given? */
  89410. LWIP_ASSERT("q != NULL", q != NULL);
  89411. 8024378: 687b ldr r3, [r7, #4]
  89412. 802437a: 2b00 cmp r3, #0
  89413. 802437c: d106 bne.n 802438c <etharp_query+0x138>
  89414. 802437e: 4b4c ldr r3, [pc, #304] @ (80244b0 <etharp_query+0x25c>)
  89415. 8024380: f240 32e1 movw r2, #993 @ 0x3e1
  89416. 8024384: 494f ldr r1, [pc, #316] @ (80244c4 <etharp_query+0x270>)
  89417. 8024386: 484c ldr r0, [pc, #304] @ (80244b8 <etharp_query+0x264>)
  89418. 8024388: f005 fb28 bl 80299dc <iprintf>
  89419. /* stable entry? */
  89420. if (arp_table[i].state >= ETHARP_STATE_STABLE) {
  89421. 802438c: 7c7a ldrb r2, [r7, #17]
  89422. 802438e: 494b ldr r1, [pc, #300] @ (80244bc <etharp_query+0x268>)
  89423. 8024390: 4613 mov r3, r2
  89424. 8024392: 005b lsls r3, r3, #1
  89425. 8024394: 4413 add r3, r2
  89426. 8024396: 00db lsls r3, r3, #3
  89427. 8024398: 440b add r3, r1
  89428. 802439a: 3314 adds r3, #20
  89429. 802439c: 781b ldrb r3, [r3, #0]
  89430. 802439e: 2b01 cmp r3, #1
  89431. 80243a0: d917 bls.n 80243d2 <etharp_query+0x17e>
  89432. /* we have a valid IP->Ethernet address mapping */
  89433. ETHARP_SET_ADDRHINT(netif, i);
  89434. 80243a2: 4a49 ldr r2, [pc, #292] @ (80244c8 <etharp_query+0x274>)
  89435. 80243a4: 7c7b ldrb r3, [r7, #17]
  89436. 80243a6: 7013 strb r3, [r2, #0]
  89437. /* send the packet */
  89438. result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP);
  89439. 80243a8: 7c7a ldrb r2, [r7, #17]
  89440. 80243aa: 4613 mov r3, r2
  89441. 80243ac: 005b lsls r3, r3, #1
  89442. 80243ae: 4413 add r3, r2
  89443. 80243b0: 00db lsls r3, r3, #3
  89444. 80243b2: 3308 adds r3, #8
  89445. 80243b4: 4a41 ldr r2, [pc, #260] @ (80244bc <etharp_query+0x268>)
  89446. 80243b6: 4413 add r3, r2
  89447. 80243b8: 3304 adds r3, #4
  89448. 80243ba: f44f 6200 mov.w r2, #2048 @ 0x800
  89449. 80243be: 9200 str r2, [sp, #0]
  89450. 80243c0: 697a ldr r2, [r7, #20]
  89451. 80243c2: 6879 ldr r1, [r7, #4]
  89452. 80243c4: 68f8 ldr r0, [r7, #12]
  89453. 80243c6: f001 fe91 bl 80260ec <ethernet_output>
  89454. 80243ca: 4603 mov r3, r0
  89455. 80243cc: f887 3027 strb.w r3, [r7, #39] @ 0x27
  89456. 80243d0: e067 b.n 80244a2 <etharp_query+0x24e>
  89457. /* pending entry? (either just created or already pending */
  89458. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  89459. 80243d2: 7c7a ldrb r2, [r7, #17]
  89460. 80243d4: 4939 ldr r1, [pc, #228] @ (80244bc <etharp_query+0x268>)
  89461. 80243d6: 4613 mov r3, r2
  89462. 80243d8: 005b lsls r3, r3, #1
  89463. 80243da: 4413 add r3, r2
  89464. 80243dc: 00db lsls r3, r3, #3
  89465. 80243de: 440b add r3, r1
  89466. 80243e0: 3314 adds r3, #20
  89467. 80243e2: 781b ldrb r3, [r3, #0]
  89468. 80243e4: 2b01 cmp r3, #1
  89469. 80243e6: d15c bne.n 80244a2 <etharp_query+0x24e>
  89470. /* entry is still pending, queue the given packet 'q' */
  89471. struct pbuf *p;
  89472. int copy_needed = 0;
  89473. 80243e8: 2300 movs r3, #0
  89474. 80243ea: 61bb str r3, [r7, #24]
  89475. /* IF q includes a pbuf that must be copied, copy the whole chain into a
  89476. * new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */
  89477. p = q;
  89478. 80243ec: 687b ldr r3, [r7, #4]
  89479. 80243ee: 61fb str r3, [r7, #28]
  89480. while (p) {
  89481. 80243f0: e01c b.n 802442c <etharp_query+0x1d8>
  89482. LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
  89483. 80243f2: 69fb ldr r3, [r7, #28]
  89484. 80243f4: 895a ldrh r2, [r3, #10]
  89485. 80243f6: 69fb ldr r3, [r7, #28]
  89486. 80243f8: 891b ldrh r3, [r3, #8]
  89487. 80243fa: 429a cmp r2, r3
  89488. 80243fc: d10a bne.n 8024414 <etharp_query+0x1c0>
  89489. 80243fe: 69fb ldr r3, [r7, #28]
  89490. 8024400: 681b ldr r3, [r3, #0]
  89491. 8024402: 2b00 cmp r3, #0
  89492. 8024404: d006 beq.n 8024414 <etharp_query+0x1c0>
  89493. 8024406: 4b2a ldr r3, [pc, #168] @ (80244b0 <etharp_query+0x25c>)
  89494. 8024408: f240 32f1 movw r2, #1009 @ 0x3f1
  89495. 802440c: 492f ldr r1, [pc, #188] @ (80244cc <etharp_query+0x278>)
  89496. 802440e: 482a ldr r0, [pc, #168] @ (80244b8 <etharp_query+0x264>)
  89497. 8024410: f005 fae4 bl 80299dc <iprintf>
  89498. if (PBUF_NEEDS_COPY(p)) {
  89499. 8024414: 69fb ldr r3, [r7, #28]
  89500. 8024416: 7b1b ldrb r3, [r3, #12]
  89501. 8024418: f003 0340 and.w r3, r3, #64 @ 0x40
  89502. 802441c: 2b00 cmp r3, #0
  89503. 802441e: d002 beq.n 8024426 <etharp_query+0x1d2>
  89504. copy_needed = 1;
  89505. 8024420: 2301 movs r3, #1
  89506. 8024422: 61bb str r3, [r7, #24]
  89507. break;
  89508. 8024424: e005 b.n 8024432 <etharp_query+0x1de>
  89509. }
  89510. p = p->next;
  89511. 8024426: 69fb ldr r3, [r7, #28]
  89512. 8024428: 681b ldr r3, [r3, #0]
  89513. 802442a: 61fb str r3, [r7, #28]
  89514. while (p) {
  89515. 802442c: 69fb ldr r3, [r7, #28]
  89516. 802442e: 2b00 cmp r3, #0
  89517. 8024430: d1df bne.n 80243f2 <etharp_query+0x19e>
  89518. }
  89519. if (copy_needed) {
  89520. 8024432: 69bb ldr r3, [r7, #24]
  89521. 8024434: 2b00 cmp r3, #0
  89522. 8024436: d007 beq.n 8024448 <etharp_query+0x1f4>
  89523. /* copy the whole packet into new pbufs */
  89524. p = pbuf_clone(PBUF_LINK, PBUF_RAM, q);
  89525. 8024438: 687a ldr r2, [r7, #4]
  89526. 802443a: f44f 7120 mov.w r1, #640 @ 0x280
  89527. 802443e: 200e movs r0, #14
  89528. 8024440: f7f6 facc bl 801a9dc <pbuf_clone>
  89529. 8024444: 61f8 str r0, [r7, #28]
  89530. 8024446: e004 b.n 8024452 <etharp_query+0x1fe>
  89531. } else {
  89532. /* referencing the old pbuf is enough */
  89533. p = q;
  89534. 8024448: 687b ldr r3, [r7, #4]
  89535. 802444a: 61fb str r3, [r7, #28]
  89536. pbuf_ref(p);
  89537. 802444c: 69f8 ldr r0, [r7, #28]
  89538. 802444e: f7f6 f8f3 bl 801a638 <pbuf_ref>
  89539. }
  89540. /* packet could be taken over? */
  89541. if (p != NULL) {
  89542. 8024452: 69fb ldr r3, [r7, #28]
  89543. 8024454: 2b00 cmp r3, #0
  89544. 8024456: d021 beq.n 802449c <etharp_query+0x248>
  89545. 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));
  89546. result = ERR_MEM;
  89547. }
  89548. #else /* ARP_QUEUEING */
  89549. /* always queue one packet per ARP request only, freeing a previously queued packet */
  89550. if (arp_table[i].q != NULL) {
  89551. 8024458: 7c7a ldrb r2, [r7, #17]
  89552. 802445a: 4918 ldr r1, [pc, #96] @ (80244bc <etharp_query+0x268>)
  89553. 802445c: 4613 mov r3, r2
  89554. 802445e: 005b lsls r3, r3, #1
  89555. 8024460: 4413 add r3, r2
  89556. 8024462: 00db lsls r3, r3, #3
  89557. 8024464: 440b add r3, r1
  89558. 8024466: 681b ldr r3, [r3, #0]
  89559. 8024468: 2b00 cmp r3, #0
  89560. 802446a: d00a beq.n 8024482 <etharp_query+0x22e>
  89561. 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));
  89562. pbuf_free(arp_table[i].q);
  89563. 802446c: 7c7a ldrb r2, [r7, #17]
  89564. 802446e: 4913 ldr r1, [pc, #76] @ (80244bc <etharp_query+0x268>)
  89565. 8024470: 4613 mov r3, r2
  89566. 8024472: 005b lsls r3, r3, #1
  89567. 8024474: 4413 add r3, r2
  89568. 8024476: 00db lsls r3, r3, #3
  89569. 8024478: 440b add r3, r1
  89570. 802447a: 681b ldr r3, [r3, #0]
  89571. 802447c: 4618 mov r0, r3
  89572. 802447e: f7f6 f835 bl 801a4ec <pbuf_free>
  89573. }
  89574. arp_table[i].q = p;
  89575. 8024482: 7c7a ldrb r2, [r7, #17]
  89576. 8024484: 490d ldr r1, [pc, #52] @ (80244bc <etharp_query+0x268>)
  89577. 8024486: 4613 mov r3, r2
  89578. 8024488: 005b lsls r3, r3, #1
  89579. 802448a: 4413 add r3, r2
  89580. 802448c: 00db lsls r3, r3, #3
  89581. 802448e: 440b add r3, r1
  89582. 8024490: 69fa ldr r2, [r7, #28]
  89583. 8024492: 601a str r2, [r3, #0]
  89584. result = ERR_OK;
  89585. 8024494: 2300 movs r3, #0
  89586. 8024496: f887 3027 strb.w r3, [r7, #39] @ 0x27
  89587. 802449a: e002 b.n 80244a2 <etharp_query+0x24e>
  89588. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, (u16_t)i));
  89589. #endif /* ARP_QUEUEING */
  89590. } else {
  89591. ETHARP_STATS_INC(etharp.memerr);
  89592. 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));
  89593. result = ERR_MEM;
  89594. 802449c: 23ff movs r3, #255 @ 0xff
  89595. 802449e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  89596. }
  89597. }
  89598. return result;
  89599. 80244a2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  89600. }
  89601. 80244a6: 4618 mov r0, r3
  89602. 80244a8: 3728 adds r7, #40 @ 0x28
  89603. 80244aa: 46bd mov sp, r7
  89604. 80244ac: bd80 pop {r7, pc}
  89605. 80244ae: bf00 nop
  89606. 80244b0: 0803023c .word 0x0803023c
  89607. 80244b4: 080303e8 .word 0x080303e8
  89608. 80244b8: 080302b4 .word 0x080302b4
  89609. 80244bc: 2402af20 .word 0x2402af20
  89610. 80244c0: 080303f8 .word 0x080303f8
  89611. 80244c4: 080303dc .word 0x080303dc
  89612. 80244c8: 2402b010 .word 0x2402b010
  89613. 80244cc: 08030420 .word 0x08030420
  89614. 080244d0 <etharp_raw>:
  89615. etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
  89616. const struct eth_addr *ethdst_addr,
  89617. const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr,
  89618. const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr,
  89619. const u16_t opcode)
  89620. {
  89621. 80244d0: b580 push {r7, lr}
  89622. 80244d2: b08a sub sp, #40 @ 0x28
  89623. 80244d4: af02 add r7, sp, #8
  89624. 80244d6: 60f8 str r0, [r7, #12]
  89625. 80244d8: 60b9 str r1, [r7, #8]
  89626. 80244da: 607a str r2, [r7, #4]
  89627. 80244dc: 603b str r3, [r7, #0]
  89628. struct pbuf *p;
  89629. err_t result = ERR_OK;
  89630. 80244de: 2300 movs r3, #0
  89631. 80244e0: 77fb strb r3, [r7, #31]
  89632. struct etharp_hdr *hdr;
  89633. LWIP_ASSERT("netif != NULL", netif != NULL);
  89634. 80244e2: 68fb ldr r3, [r7, #12]
  89635. 80244e4: 2b00 cmp r3, #0
  89636. 80244e6: d106 bne.n 80244f6 <etharp_raw+0x26>
  89637. 80244e8: 4b3a ldr r3, [pc, #232] @ (80245d4 <etharp_raw+0x104>)
  89638. 80244ea: f240 4257 movw r2, #1111 @ 0x457
  89639. 80244ee: 493a ldr r1, [pc, #232] @ (80245d8 <etharp_raw+0x108>)
  89640. 80244f0: 483a ldr r0, [pc, #232] @ (80245dc <etharp_raw+0x10c>)
  89641. 80244f2: f005 fa73 bl 80299dc <iprintf>
  89642. /* allocate a pbuf for the outgoing ARP request packet */
  89643. p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM);
  89644. 80244f6: f44f 7220 mov.w r2, #640 @ 0x280
  89645. 80244fa: 211c movs r1, #28
  89646. 80244fc: 200e movs r0, #14
  89647. 80244fe: f7f5 fcdf bl 8019ec0 <pbuf_alloc>
  89648. 8024502: 61b8 str r0, [r7, #24]
  89649. /* could allocate a pbuf for an ARP request? */
  89650. if (p == NULL) {
  89651. 8024504: 69bb ldr r3, [r7, #24]
  89652. 8024506: 2b00 cmp r3, #0
  89653. 8024508: d102 bne.n 8024510 <etharp_raw+0x40>
  89654. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  89655. ("etharp_raw: could not allocate pbuf for ARP request.\n"));
  89656. ETHARP_STATS_INC(etharp.memerr);
  89657. return ERR_MEM;
  89658. 802450a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  89659. 802450e: e05d b.n 80245cc <etharp_raw+0xfc>
  89660. }
  89661. LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr",
  89662. 8024510: 69bb ldr r3, [r7, #24]
  89663. 8024512: 895b ldrh r3, [r3, #10]
  89664. 8024514: 2b1b cmp r3, #27
  89665. 8024516: d806 bhi.n 8024526 <etharp_raw+0x56>
  89666. 8024518: 4b2e ldr r3, [pc, #184] @ (80245d4 <etharp_raw+0x104>)
  89667. 802451a: f240 4262 movw r2, #1122 @ 0x462
  89668. 802451e: 4930 ldr r1, [pc, #192] @ (80245e0 <etharp_raw+0x110>)
  89669. 8024520: 482e ldr r0, [pc, #184] @ (80245dc <etharp_raw+0x10c>)
  89670. 8024522: f005 fa5b bl 80299dc <iprintf>
  89671. (p->len >= SIZEOF_ETHARP_HDR));
  89672. hdr = (struct etharp_hdr *)p->payload;
  89673. 8024526: 69bb ldr r3, [r7, #24]
  89674. 8024528: 685b ldr r3, [r3, #4]
  89675. 802452a: 617b str r3, [r7, #20]
  89676. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n"));
  89677. hdr->opcode = lwip_htons(opcode);
  89678. 802452c: 8ebb ldrh r3, [r7, #52] @ 0x34
  89679. 802452e: 4618 mov r0, r3
  89680. 8024530: f7f4 fafa bl 8018b28 <lwip_htons>
  89681. 8024534: 4603 mov r3, r0
  89682. 8024536: 461a mov r2, r3
  89683. 8024538: 697b ldr r3, [r7, #20]
  89684. 802453a: 80da strh r2, [r3, #6]
  89685. LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!",
  89686. 802453c: 68fb ldr r3, [r7, #12]
  89687. 802453e: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  89688. 8024542: 2b06 cmp r3, #6
  89689. 8024544: d006 beq.n 8024554 <etharp_raw+0x84>
  89690. 8024546: 4b23 ldr r3, [pc, #140] @ (80245d4 <etharp_raw+0x104>)
  89691. 8024548: f240 4269 movw r2, #1129 @ 0x469
  89692. 802454c: 4925 ldr r1, [pc, #148] @ (80245e4 <etharp_raw+0x114>)
  89693. 802454e: 4823 ldr r0, [pc, #140] @ (80245dc <etharp_raw+0x10c>)
  89694. 8024550: f005 fa44 bl 80299dc <iprintf>
  89695. (netif->hwaddr_len == ETH_HWADDR_LEN));
  89696. /* Write the ARP MAC-Addresses */
  89697. SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN);
  89698. 8024554: 697b ldr r3, [r7, #20]
  89699. 8024556: 3308 adds r3, #8
  89700. 8024558: 2206 movs r2, #6
  89701. 802455a: 6839 ldr r1, [r7, #0]
  89702. 802455c: 4618 mov r0, r3
  89703. 802455e: f005 fcc6 bl 8029eee <memcpy>
  89704. SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN);
  89705. 8024562: 697b ldr r3, [r7, #20]
  89706. 8024564: 3312 adds r3, #18
  89707. 8024566: 2206 movs r2, #6
  89708. 8024568: 6af9 ldr r1, [r7, #44] @ 0x2c
  89709. 802456a: 4618 mov r0, r3
  89710. 802456c: f005 fcbf bl 8029eee <memcpy>
  89711. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  89712. * structure packing. */
  89713. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->sipaddr, ipsrc_addr);
  89714. 8024570: 697b ldr r3, [r7, #20]
  89715. 8024572: 330e adds r3, #14
  89716. 8024574: 6aba ldr r2, [r7, #40] @ 0x28
  89717. 8024576: 6812 ldr r2, [r2, #0]
  89718. 8024578: 601a str r2, [r3, #0]
  89719. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr);
  89720. 802457a: 697b ldr r3, [r7, #20]
  89721. 802457c: 3318 adds r3, #24
  89722. 802457e: 6b3a ldr r2, [r7, #48] @ 0x30
  89723. 8024580: 6812 ldr r2, [r2, #0]
  89724. 8024582: 601a str r2, [r3, #0]
  89725. hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET);
  89726. 8024584: 697b ldr r3, [r7, #20]
  89727. 8024586: 2200 movs r2, #0
  89728. 8024588: 701a strb r2, [r3, #0]
  89729. 802458a: 2200 movs r2, #0
  89730. 802458c: f042 0201 orr.w r2, r2, #1
  89731. 8024590: 705a strb r2, [r3, #1]
  89732. hdr->proto = PP_HTONS(ETHTYPE_IP);
  89733. 8024592: 697b ldr r3, [r7, #20]
  89734. 8024594: 2200 movs r2, #0
  89735. 8024596: f042 0208 orr.w r2, r2, #8
  89736. 802459a: 709a strb r2, [r3, #2]
  89737. 802459c: 2200 movs r2, #0
  89738. 802459e: 70da strb r2, [r3, #3]
  89739. /* set hwlen and protolen */
  89740. hdr->hwlen = ETH_HWADDR_LEN;
  89741. 80245a0: 697b ldr r3, [r7, #20]
  89742. 80245a2: 2206 movs r2, #6
  89743. 80245a4: 711a strb r2, [r3, #4]
  89744. hdr->protolen = sizeof(ip4_addr_t);
  89745. 80245a6: 697b ldr r3, [r7, #20]
  89746. 80245a8: 2204 movs r2, #4
  89747. 80245aa: 715a strb r2, [r3, #5]
  89748. if (ip4_addr_islinklocal(ipsrc_addr)) {
  89749. ethernet_output(netif, p, ethsrc_addr, &ethbroadcast, ETHTYPE_ARP);
  89750. } else
  89751. #endif /* LWIP_AUTOIP */
  89752. {
  89753. ethernet_output(netif, p, ethsrc_addr, ethdst_addr, ETHTYPE_ARP);
  89754. 80245ac: f640 0306 movw r3, #2054 @ 0x806
  89755. 80245b0: 9300 str r3, [sp, #0]
  89756. 80245b2: 687b ldr r3, [r7, #4]
  89757. 80245b4: 68ba ldr r2, [r7, #8]
  89758. 80245b6: 69b9 ldr r1, [r7, #24]
  89759. 80245b8: 68f8 ldr r0, [r7, #12]
  89760. 80245ba: f001 fd97 bl 80260ec <ethernet_output>
  89761. }
  89762. ETHARP_STATS_INC(etharp.xmit);
  89763. /* free ARP query packet */
  89764. pbuf_free(p);
  89765. 80245be: 69b8 ldr r0, [r7, #24]
  89766. 80245c0: f7f5 ff94 bl 801a4ec <pbuf_free>
  89767. p = NULL;
  89768. 80245c4: 2300 movs r3, #0
  89769. 80245c6: 61bb str r3, [r7, #24]
  89770. /* could not allocate pbuf for ARP request */
  89771. return result;
  89772. 80245c8: f997 301f ldrsb.w r3, [r7, #31]
  89773. }
  89774. 80245cc: 4618 mov r0, r3
  89775. 80245ce: 3720 adds r7, #32
  89776. 80245d0: 46bd mov sp, r7
  89777. 80245d2: bd80 pop {r7, pc}
  89778. 80245d4: 0803023c .word 0x0803023c
  89779. 80245d8: 0803038c .word 0x0803038c
  89780. 80245dc: 080302b4 .word 0x080302b4
  89781. 80245e0: 0803043c .word 0x0803043c
  89782. 80245e4: 08030470 .word 0x08030470
  89783. 080245e8 <etharp_request_dst>:
  89784. * ERR_MEM if the ARP packet couldn't be allocated
  89785. * any other err_t on failure
  89786. */
  89787. static err_t
  89788. etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr)
  89789. {
  89790. 80245e8: b580 push {r7, lr}
  89791. 80245ea: b088 sub sp, #32
  89792. 80245ec: af04 add r7, sp, #16
  89793. 80245ee: 60f8 str r0, [r7, #12]
  89794. 80245f0: 60b9 str r1, [r7, #8]
  89795. 80245f2: 607a str r2, [r7, #4]
  89796. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  89797. 80245f4: 68fb ldr r3, [r7, #12]
  89798. 80245f6: f103 012a add.w r1, r3, #42 @ 0x2a
  89799. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), &ethzero,
  89800. 80245fa: 68fb ldr r3, [r7, #12]
  89801. 80245fc: f103 002a add.w r0, r3, #42 @ 0x2a
  89802. 8024600: 68fb ldr r3, [r7, #12]
  89803. 8024602: 3304 adds r3, #4
  89804. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  89805. 8024604: 2201 movs r2, #1
  89806. 8024606: 9203 str r2, [sp, #12]
  89807. 8024608: 68ba ldr r2, [r7, #8]
  89808. 802460a: 9202 str r2, [sp, #8]
  89809. 802460c: 4a06 ldr r2, [pc, #24] @ (8024628 <etharp_request_dst+0x40>)
  89810. 802460e: 9201 str r2, [sp, #4]
  89811. 8024610: 9300 str r3, [sp, #0]
  89812. 8024612: 4603 mov r3, r0
  89813. 8024614: 687a ldr r2, [r7, #4]
  89814. 8024616: 68f8 ldr r0, [r7, #12]
  89815. 8024618: f7ff ff5a bl 80244d0 <etharp_raw>
  89816. 802461c: 4603 mov r3, r0
  89817. ipaddr, ARP_REQUEST);
  89818. }
  89819. 802461e: 4618 mov r0, r3
  89820. 8024620: 3710 adds r7, #16
  89821. 8024622: 46bd mov sp, r7
  89822. 8024624: bd80 pop {r7, pc}
  89823. 8024626: bf00 nop
  89824. 8024628: 08030c78 .word 0x08030c78
  89825. 0802462c <etharp_request>:
  89826. * ERR_MEM if the ARP packet couldn't be allocated
  89827. * any other err_t on failure
  89828. */
  89829. err_t
  89830. etharp_request(struct netif *netif, const ip4_addr_t *ipaddr)
  89831. {
  89832. 802462c: b580 push {r7, lr}
  89833. 802462e: b082 sub sp, #8
  89834. 8024630: af00 add r7, sp, #0
  89835. 8024632: 6078 str r0, [r7, #4]
  89836. 8024634: 6039 str r1, [r7, #0]
  89837. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n"));
  89838. return etharp_request_dst(netif, ipaddr, &ethbroadcast);
  89839. 8024636: 4a05 ldr r2, [pc, #20] @ (802464c <etharp_request+0x20>)
  89840. 8024638: 6839 ldr r1, [r7, #0]
  89841. 802463a: 6878 ldr r0, [r7, #4]
  89842. 802463c: f7ff ffd4 bl 80245e8 <etharp_request_dst>
  89843. 8024640: 4603 mov r3, r0
  89844. }
  89845. 8024642: 4618 mov r0, r3
  89846. 8024644: 3708 adds r7, #8
  89847. 8024646: 46bd mov sp, r7
  89848. 8024648: bd80 pop {r7, pc}
  89849. 802464a: bf00 nop
  89850. 802464c: 08030c70 .word 0x08030c70
  89851. 08024650 <icmp_input>:
  89852. * @param p the icmp echo request packet, p->payload pointing to the icmp header
  89853. * @param inp the netif on which this packet was received
  89854. */
  89855. void
  89856. icmp_input(struct pbuf *p, struct netif *inp)
  89857. {
  89858. 8024650: b580 push {r7, lr}
  89859. 8024652: b08e sub sp, #56 @ 0x38
  89860. 8024654: af04 add r7, sp, #16
  89861. 8024656: 6078 str r0, [r7, #4]
  89862. 8024658: 6039 str r1, [r7, #0]
  89863. const ip4_addr_t *src;
  89864. ICMP_STATS_INC(icmp.recv);
  89865. MIB2_STATS_INC(mib2.icmpinmsgs);
  89866. iphdr_in = ip4_current_header();
  89867. 802465a: 4b89 ldr r3, [pc, #548] @ (8024880 <icmp_input+0x230>)
  89868. 802465c: 689b ldr r3, [r3, #8]
  89869. 802465e: 627b str r3, [r7, #36] @ 0x24
  89870. hlen = IPH_HL_BYTES(iphdr_in);
  89871. 8024660: 6a7b ldr r3, [r7, #36] @ 0x24
  89872. 8024662: 781b ldrb r3, [r3, #0]
  89873. 8024664: f003 030f and.w r3, r3, #15
  89874. 8024668: b2db uxtb r3, r3
  89875. 802466a: 009b lsls r3, r3, #2
  89876. 802466c: b2db uxtb r3, r3
  89877. 802466e: 847b strh r3, [r7, #34] @ 0x22
  89878. if (hlen < IP_HLEN) {
  89879. 8024670: 8c7b ldrh r3, [r7, #34] @ 0x22
  89880. 8024672: 2b13 cmp r3, #19
  89881. 8024674: f240 80ed bls.w 8024852 <icmp_input+0x202>
  89882. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen));
  89883. goto lenerr;
  89884. }
  89885. if (p->len < sizeof(u16_t) * 2) {
  89886. 8024678: 687b ldr r3, [r7, #4]
  89887. 802467a: 895b ldrh r3, [r3, #10]
  89888. 802467c: 2b03 cmp r3, #3
  89889. 802467e: f240 80ea bls.w 8024856 <icmp_input+0x206>
  89890. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len));
  89891. goto lenerr;
  89892. }
  89893. type = *((u8_t *)p->payload);
  89894. 8024682: 687b ldr r3, [r7, #4]
  89895. 8024684: 685b ldr r3, [r3, #4]
  89896. 8024686: 781b ldrb r3, [r3, #0]
  89897. 8024688: f887 3021 strb.w r3, [r7, #33] @ 0x21
  89898. #ifdef LWIP_DEBUG
  89899. code = *(((u8_t *)p->payload) + 1);
  89900. 802468c: 687b ldr r3, [r7, #4]
  89901. 802468e: 685b ldr r3, [r3, #4]
  89902. 8024690: 785b ldrb r3, [r3, #1]
  89903. 8024692: f887 3020 strb.w r3, [r7, #32]
  89904. /* if debug is enabled but debug statement below is somehow disabled: */
  89905. LWIP_UNUSED_ARG(code);
  89906. #endif /* LWIP_DEBUG */
  89907. switch (type) {
  89908. 8024696: f897 3021 ldrb.w r3, [r7, #33] @ 0x21
  89909. 802469a: 2b00 cmp r3, #0
  89910. 802469c: f000 80d2 beq.w 8024844 <icmp_input+0x1f4>
  89911. 80246a0: 2b08 cmp r3, #8
  89912. 80246a2: f040 80d2 bne.w 802484a <icmp_input+0x1fa>
  89913. (as obviously, an echo request has been sent, too). */
  89914. MIB2_STATS_INC(mib2.icmpinechoreps);
  89915. break;
  89916. case ICMP_ECHO:
  89917. MIB2_STATS_INC(mib2.icmpinechos);
  89918. src = ip4_current_dest_addr();
  89919. 80246a6: 4b77 ldr r3, [pc, #476] @ (8024884 <icmp_input+0x234>)
  89920. 80246a8: 61fb str r3, [r7, #28]
  89921. /* multicast destination address? */
  89922. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  89923. 80246aa: 4b75 ldr r3, [pc, #468] @ (8024880 <icmp_input+0x230>)
  89924. 80246ac: 695b ldr r3, [r3, #20]
  89925. 80246ae: f003 03f0 and.w r3, r3, #240 @ 0xf0
  89926. 80246b2: 2be0 cmp r3, #224 @ 0xe0
  89927. 80246b4: f000 80d6 beq.w 8024864 <icmp_input+0x214>
  89928. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast pings\n"));
  89929. goto icmperr;
  89930. #endif /* LWIP_MULTICAST_PING */
  89931. }
  89932. /* broadcast destination address? */
  89933. if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) {
  89934. 80246b8: 4b71 ldr r3, [pc, #452] @ (8024880 <icmp_input+0x230>)
  89935. 80246ba: 695b ldr r3, [r3, #20]
  89936. 80246bc: 4a70 ldr r2, [pc, #448] @ (8024880 <icmp_input+0x230>)
  89937. 80246be: 6812 ldr r2, [r2, #0]
  89938. 80246c0: 4611 mov r1, r2
  89939. 80246c2: 4618 mov r0, r3
  89940. 80246c4: f000 fc34 bl 8024f30 <ip4_addr_isbroadcast_u32>
  89941. 80246c8: 4603 mov r3, r0
  89942. 80246ca: 2b00 cmp r3, #0
  89943. 80246cc: f040 80cc bne.w 8024868 <icmp_input+0x218>
  89944. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to broadcast pings\n"));
  89945. goto icmperr;
  89946. #endif /* LWIP_BROADCAST_PING */
  89947. }
  89948. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ping\n"));
  89949. if (p->tot_len < sizeof(struct icmp_echo_hdr)) {
  89950. 80246d0: 687b ldr r3, [r7, #4]
  89951. 80246d2: 891b ldrh r3, [r3, #8]
  89952. 80246d4: 2b07 cmp r3, #7
  89953. 80246d6: f240 80c0 bls.w 802485a <icmp_input+0x20a>
  89954. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: bad ICMP echo received\n"));
  89955. goto lenerr;
  89956. }
  89957. #if CHECKSUM_CHECK_ICMP
  89958. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP) {
  89959. if (inet_chksum_pbuf(p) != 0) {
  89960. 80246da: 6878 ldr r0, [r7, #4]
  89961. 80246dc: f7f4 fac1 bl 8018c62 <inet_chksum_pbuf>
  89962. 80246e0: 4603 mov r3, r0
  89963. 80246e2: 2b00 cmp r3, #0
  89964. 80246e4: d003 beq.n 80246ee <icmp_input+0x9e>
  89965. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo\n"));
  89966. pbuf_free(p);
  89967. 80246e6: 6878 ldr r0, [r7, #4]
  89968. 80246e8: f7f5 ff00 bl 801a4ec <pbuf_free>
  89969. ICMP_STATS_INC(icmp.chkerr);
  89970. MIB2_STATS_INC(mib2.icmpinerrors);
  89971. return;
  89972. 80246ec: e0c5 b.n 802487a <icmp_input+0x22a>
  89973. }
  89974. }
  89975. #endif
  89976. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
  89977. if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  89978. 80246ee: 8c7b ldrh r3, [r7, #34] @ 0x22
  89979. 80246f0: 330e adds r3, #14
  89980. 80246f2: 4619 mov r1, r3
  89981. 80246f4: 6878 ldr r0, [r7, #4]
  89982. 80246f6: f7f5 fe31 bl 801a35c <pbuf_add_header>
  89983. 80246fa: 4603 mov r3, r0
  89984. 80246fc: 2b00 cmp r3, #0
  89985. 80246fe: d04b beq.n 8024798 <icmp_input+0x148>
  89986. /* p is not big enough to contain link headers
  89987. * allocate a new one and copy p into it
  89988. */
  89989. struct pbuf *r;
  89990. u16_t alloc_len = (u16_t)(p->tot_len + hlen);
  89991. 8024700: 687b ldr r3, [r7, #4]
  89992. 8024702: 891a ldrh r2, [r3, #8]
  89993. 8024704: 8c7b ldrh r3, [r7, #34] @ 0x22
  89994. 8024706: 4413 add r3, r2
  89995. 8024708: 837b strh r3, [r7, #26]
  89996. if (alloc_len < p->tot_len) {
  89997. 802470a: 687b ldr r3, [r7, #4]
  89998. 802470c: 891b ldrh r3, [r3, #8]
  89999. 802470e: 8b7a ldrh r2, [r7, #26]
  90000. 8024710: 429a cmp r2, r3
  90001. 8024712: f0c0 80ab bcc.w 802486c <icmp_input+0x21c>
  90002. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n"));
  90003. goto icmperr;
  90004. }
  90005. /* allocate new packet buffer with space for link headers */
  90006. r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM);
  90007. 8024716: 8b7b ldrh r3, [r7, #26]
  90008. 8024718: f44f 7220 mov.w r2, #640 @ 0x280
  90009. 802471c: 4619 mov r1, r3
  90010. 802471e: 200e movs r0, #14
  90011. 8024720: f7f5 fbce bl 8019ec0 <pbuf_alloc>
  90012. 8024724: 6178 str r0, [r7, #20]
  90013. if (r == NULL) {
  90014. 8024726: 697b ldr r3, [r7, #20]
  90015. 8024728: 2b00 cmp r3, #0
  90016. 802472a: f000 80a1 beq.w 8024870 <icmp_input+0x220>
  90017. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n"));
  90018. goto icmperr;
  90019. }
  90020. if (r->len < hlen + sizeof(struct icmp_echo_hdr)) {
  90021. 802472e: 697b ldr r3, [r7, #20]
  90022. 8024730: 895b ldrh r3, [r3, #10]
  90023. 8024732: 461a mov r2, r3
  90024. 8024734: 8c7b ldrh r3, [r7, #34] @ 0x22
  90025. 8024736: 3308 adds r3, #8
  90026. 8024738: 429a cmp r2, r3
  90027. 802473a: d203 bcs.n 8024744 <icmp_input+0xf4>
  90028. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header"));
  90029. pbuf_free(r);
  90030. 802473c: 6978 ldr r0, [r7, #20]
  90031. 802473e: f7f5 fed5 bl 801a4ec <pbuf_free>
  90032. goto icmperr;
  90033. 8024742: e096 b.n 8024872 <icmp_input+0x222>
  90034. }
  90035. /* copy the ip header */
  90036. MEMCPY(r->payload, iphdr_in, hlen);
  90037. 8024744: 697b ldr r3, [r7, #20]
  90038. 8024746: 685b ldr r3, [r3, #4]
  90039. 8024748: 8c7a ldrh r2, [r7, #34] @ 0x22
  90040. 802474a: 6a79 ldr r1, [r7, #36] @ 0x24
  90041. 802474c: 4618 mov r0, r3
  90042. 802474e: f005 fbce bl 8029eee <memcpy>
  90043. /* switch r->payload back to icmp header (cannot fail) */
  90044. if (pbuf_remove_header(r, hlen)) {
  90045. 8024752: 8c7b ldrh r3, [r7, #34] @ 0x22
  90046. 8024754: 4619 mov r1, r3
  90047. 8024756: 6978 ldr r0, [r7, #20]
  90048. 8024758: f7f5 fe10 bl 801a37c <pbuf_remove_header>
  90049. 802475c: 4603 mov r3, r0
  90050. 802475e: 2b00 cmp r3, #0
  90051. 8024760: d009 beq.n 8024776 <icmp_input+0x126>
  90052. LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0);
  90053. 8024762: 4b49 ldr r3, [pc, #292] @ (8024888 <icmp_input+0x238>)
  90054. 8024764: 22b6 movs r2, #182 @ 0xb6
  90055. 8024766: 4949 ldr r1, [pc, #292] @ (802488c <icmp_input+0x23c>)
  90056. 8024768: 4849 ldr r0, [pc, #292] @ (8024890 <icmp_input+0x240>)
  90057. 802476a: f005 f937 bl 80299dc <iprintf>
  90058. pbuf_free(r);
  90059. 802476e: 6978 ldr r0, [r7, #20]
  90060. 8024770: f7f5 febc bl 801a4ec <pbuf_free>
  90061. goto icmperr;
  90062. 8024774: e07d b.n 8024872 <icmp_input+0x222>
  90063. }
  90064. /* copy the rest of the packet without ip header */
  90065. if (pbuf_copy(r, p) != ERR_OK) {
  90066. 8024776: 6879 ldr r1, [r7, #4]
  90067. 8024778: 6978 ldr r0, [r7, #20]
  90068. 802477a: f7f5 ffeb bl 801a754 <pbuf_copy>
  90069. 802477e: 4603 mov r3, r0
  90070. 8024780: 2b00 cmp r3, #0
  90071. 8024782: d003 beq.n 802478c <icmp_input+0x13c>
  90072. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed"));
  90073. pbuf_free(r);
  90074. 8024784: 6978 ldr r0, [r7, #20]
  90075. 8024786: f7f5 feb1 bl 801a4ec <pbuf_free>
  90076. goto icmperr;
  90077. 802478a: e072 b.n 8024872 <icmp_input+0x222>
  90078. }
  90079. /* free the original p */
  90080. pbuf_free(p);
  90081. 802478c: 6878 ldr r0, [r7, #4]
  90082. 802478e: f7f5 fead bl 801a4ec <pbuf_free>
  90083. /* we now have an identical copy of p that has room for link headers */
  90084. p = r;
  90085. 8024792: 697b ldr r3, [r7, #20]
  90086. 8024794: 607b str r3, [r7, #4]
  90087. 8024796: e00f b.n 80247b8 <icmp_input+0x168>
  90088. } else {
  90089. /* restore p->payload to point to icmp header (cannot fail) */
  90090. if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  90091. 8024798: 8c7b ldrh r3, [r7, #34] @ 0x22
  90092. 802479a: 330e adds r3, #14
  90093. 802479c: 4619 mov r1, r3
  90094. 802479e: 6878 ldr r0, [r7, #4]
  90095. 80247a0: f7f5 fdec bl 801a37c <pbuf_remove_header>
  90096. 80247a4: 4603 mov r3, r0
  90097. 80247a6: 2b00 cmp r3, #0
  90098. 80247a8: d006 beq.n 80247b8 <icmp_input+0x168>
  90099. LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0);
  90100. 80247aa: 4b37 ldr r3, [pc, #220] @ (8024888 <icmp_input+0x238>)
  90101. 80247ac: 22c7 movs r2, #199 @ 0xc7
  90102. 80247ae: 4939 ldr r1, [pc, #228] @ (8024894 <icmp_input+0x244>)
  90103. 80247b0: 4837 ldr r0, [pc, #220] @ (8024890 <icmp_input+0x240>)
  90104. 80247b2: f005 f913 bl 80299dc <iprintf>
  90105. goto icmperr;
  90106. 80247b6: e05c b.n 8024872 <icmp_input+0x222>
  90107. }
  90108. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */
  90109. /* At this point, all checks are OK. */
  90110. /* We generate an answer by switching the dest and src ip addresses,
  90111. * setting the icmp type to ECHO_RESPONSE and updating the checksum. */
  90112. iecho = (struct icmp_echo_hdr *)p->payload;
  90113. 80247b8: 687b ldr r3, [r7, #4]
  90114. 80247ba: 685b ldr r3, [r3, #4]
  90115. 80247bc: 613b str r3, [r7, #16]
  90116. if (pbuf_add_header(p, hlen)) {
  90117. 80247be: 8c7b ldrh r3, [r7, #34] @ 0x22
  90118. 80247c0: 4619 mov r1, r3
  90119. 80247c2: 6878 ldr r0, [r7, #4]
  90120. 80247c4: f7f5 fdca bl 801a35c <pbuf_add_header>
  90121. 80247c8: 4603 mov r3, r0
  90122. 80247ca: 2b00 cmp r3, #0
  90123. 80247cc: d13c bne.n 8024848 <icmp_input+0x1f8>
  90124. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet"));
  90125. } else {
  90126. err_t ret;
  90127. struct ip_hdr *iphdr = (struct ip_hdr *)p->payload;
  90128. 80247ce: 687b ldr r3, [r7, #4]
  90129. 80247d0: 685b ldr r3, [r3, #4]
  90130. 80247d2: 60fb str r3, [r7, #12]
  90131. ip4_addr_copy(iphdr->src, *src);
  90132. 80247d4: 69fb ldr r3, [r7, #28]
  90133. 80247d6: 681a ldr r2, [r3, #0]
  90134. 80247d8: 68fb ldr r3, [r7, #12]
  90135. 80247da: 60da str r2, [r3, #12]
  90136. ip4_addr_copy(iphdr->dest, *ip4_current_src_addr());
  90137. 80247dc: 4b28 ldr r3, [pc, #160] @ (8024880 <icmp_input+0x230>)
  90138. 80247de: 691a ldr r2, [r3, #16]
  90139. 80247e0: 68fb ldr r3, [r7, #12]
  90140. 80247e2: 611a str r2, [r3, #16]
  90141. ICMPH_TYPE_SET(iecho, ICMP_ER);
  90142. 80247e4: 693b ldr r3, [r7, #16]
  90143. 80247e6: 2200 movs r2, #0
  90144. 80247e8: 701a strb r2, [r3, #0]
  90145. #if CHECKSUM_GEN_ICMP
  90146. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP) {
  90147. /* adjust the checksum */
  90148. if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) {
  90149. 80247ea: 693b ldr r3, [r7, #16]
  90150. 80247ec: 885b ldrh r3, [r3, #2]
  90151. 80247ee: b29b uxth r3, r3
  90152. 80247f0: f64f 72f7 movw r2, #65527 @ 0xfff7
  90153. 80247f4: 4293 cmp r3, r2
  90154. 80247f6: d907 bls.n 8024808 <icmp_input+0x1b8>
  90155. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1);
  90156. 80247f8: 693b ldr r3, [r7, #16]
  90157. 80247fa: 885b ldrh r3, [r3, #2]
  90158. 80247fc: b29b uxth r3, r3
  90159. 80247fe: 3309 adds r3, #9
  90160. 8024800: b29a uxth r2, r3
  90161. 8024802: 693b ldr r3, [r7, #16]
  90162. 8024804: 805a strh r2, [r3, #2]
  90163. 8024806: e006 b.n 8024816 <icmp_input+0x1c6>
  90164. } else {
  90165. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8));
  90166. 8024808: 693b ldr r3, [r7, #16]
  90167. 802480a: 885b ldrh r3, [r3, #2]
  90168. 802480c: b29b uxth r3, r3
  90169. 802480e: 3308 adds r3, #8
  90170. 8024810: b29a uxth r2, r3
  90171. 8024812: 693b ldr r3, [r7, #16]
  90172. 8024814: 805a strh r2, [r3, #2]
  90173. #else /* CHECKSUM_GEN_ICMP */
  90174. iecho->chksum = 0;
  90175. #endif /* CHECKSUM_GEN_ICMP */
  90176. /* Set the correct TTL and recalculate the header checksum. */
  90177. IPH_TTL_SET(iphdr, ICMP_TTL);
  90178. 8024816: 68fb ldr r3, [r7, #12]
  90179. 8024818: 22ff movs r2, #255 @ 0xff
  90180. 802481a: 721a strb r2, [r3, #8]
  90181. IPH_CHKSUM_SET(iphdr, 0);
  90182. 802481c: 68fb ldr r3, [r7, #12]
  90183. 802481e: 2200 movs r2, #0
  90184. 8024820: 729a strb r2, [r3, #10]
  90185. 8024822: 2200 movs r2, #0
  90186. 8024824: 72da strb r2, [r3, #11]
  90187. MIB2_STATS_INC(mib2.icmpoutmsgs);
  90188. /* increase number of echo replies attempted to send */
  90189. MIB2_STATS_INC(mib2.icmpoutechoreps);
  90190. /* send an ICMP packet */
  90191. ret = ip4_output_if(p, src, LWIP_IP_HDRINCL,
  90192. 8024826: 683b ldr r3, [r7, #0]
  90193. 8024828: 9302 str r3, [sp, #8]
  90194. 802482a: 2301 movs r3, #1
  90195. 802482c: 9301 str r3, [sp, #4]
  90196. 802482e: 2300 movs r3, #0
  90197. 8024830: 9300 str r3, [sp, #0]
  90198. 8024832: 23ff movs r3, #255 @ 0xff
  90199. 8024834: 2200 movs r2, #0
  90200. 8024836: 69f9 ldr r1, [r7, #28]
  90201. 8024838: 6878 ldr r0, [r7, #4]
  90202. 802483a: f000 fa9f bl 8024d7c <ip4_output_if>
  90203. 802483e: 4603 mov r3, r0
  90204. 8024840: 72fb strb r3, [r7, #11]
  90205. ICMP_TTL, 0, IP_PROTO_ICMP, inp);
  90206. if (ret != ERR_OK) {
  90207. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ip_output_if returned an error: %s\n", lwip_strerr(ret)));
  90208. }
  90209. }
  90210. break;
  90211. 8024842: e001 b.n 8024848 <icmp_input+0x1f8>
  90212. break;
  90213. 8024844: bf00 nop
  90214. 8024846: e000 b.n 802484a <icmp_input+0x1fa>
  90215. break;
  90216. 8024848: bf00 nop
  90217. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n",
  90218. (s16_t)type, (s16_t)code));
  90219. ICMP_STATS_INC(icmp.proterr);
  90220. ICMP_STATS_INC(icmp.drop);
  90221. }
  90222. pbuf_free(p);
  90223. 802484a: 6878 ldr r0, [r7, #4]
  90224. 802484c: f7f5 fe4e bl 801a4ec <pbuf_free>
  90225. return;
  90226. 8024850: e013 b.n 802487a <icmp_input+0x22a>
  90227. goto lenerr;
  90228. 8024852: bf00 nop
  90229. 8024854: e002 b.n 802485c <icmp_input+0x20c>
  90230. goto lenerr;
  90231. 8024856: bf00 nop
  90232. 8024858: e000 b.n 802485c <icmp_input+0x20c>
  90233. goto lenerr;
  90234. 802485a: bf00 nop
  90235. lenerr:
  90236. pbuf_free(p);
  90237. 802485c: 6878 ldr r0, [r7, #4]
  90238. 802485e: f7f5 fe45 bl 801a4ec <pbuf_free>
  90239. ICMP_STATS_INC(icmp.lenerr);
  90240. MIB2_STATS_INC(mib2.icmpinerrors);
  90241. return;
  90242. 8024862: e00a b.n 802487a <icmp_input+0x22a>
  90243. goto icmperr;
  90244. 8024864: bf00 nop
  90245. 8024866: e004 b.n 8024872 <icmp_input+0x222>
  90246. goto icmperr;
  90247. 8024868: bf00 nop
  90248. 802486a: e002 b.n 8024872 <icmp_input+0x222>
  90249. goto icmperr;
  90250. 802486c: bf00 nop
  90251. 802486e: e000 b.n 8024872 <icmp_input+0x222>
  90252. goto icmperr;
  90253. 8024870: bf00 nop
  90254. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
  90255. icmperr:
  90256. pbuf_free(p);
  90257. 8024872: 6878 ldr r0, [r7, #4]
  90258. 8024874: f7f5 fe3a bl 801a4ec <pbuf_free>
  90259. ICMP_STATS_INC(icmp.err);
  90260. MIB2_STATS_INC(mib2.icmpinerrors);
  90261. return;
  90262. 8024878: bf00 nop
  90263. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */
  90264. }
  90265. 802487a: 3728 adds r7, #40 @ 0x28
  90266. 802487c: 46bd mov sp, r7
  90267. 802487e: bd80 pop {r7, pc}
  90268. 8024880: 24024338 .word 0x24024338
  90269. 8024884: 2402434c .word 0x2402434c
  90270. 8024888: 080304b4 .word 0x080304b4
  90271. 802488c: 080304ec .word 0x080304ec
  90272. 8024890: 08030524 .word 0x08030524
  90273. 8024894: 0803054c .word 0x0803054c
  90274. 08024898 <icmp_dest_unreach>:
  90275. * p->payload pointing to the IP header
  90276. * @param t type of the 'unreachable' packet
  90277. */
  90278. void
  90279. icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t)
  90280. {
  90281. 8024898: b580 push {r7, lr}
  90282. 802489a: b082 sub sp, #8
  90283. 802489c: af00 add r7, sp, #0
  90284. 802489e: 6078 str r0, [r7, #4]
  90285. 80248a0: 460b mov r3, r1
  90286. 80248a2: 70fb strb r3, [r7, #3]
  90287. MIB2_STATS_INC(mib2.icmpoutdestunreachs);
  90288. icmp_send_response(p, ICMP_DUR, t);
  90289. 80248a4: 78fb ldrb r3, [r7, #3]
  90290. 80248a6: 461a mov r2, r3
  90291. 80248a8: 2103 movs r1, #3
  90292. 80248aa: 6878 ldr r0, [r7, #4]
  90293. 80248ac: f000 f814 bl 80248d8 <icmp_send_response>
  90294. }
  90295. 80248b0: bf00 nop
  90296. 80248b2: 3708 adds r7, #8
  90297. 80248b4: 46bd mov sp, r7
  90298. 80248b6: bd80 pop {r7, pc}
  90299. 080248b8 <icmp_time_exceeded>:
  90300. * p->payload pointing to the IP header
  90301. * @param t type of the 'time exceeded' packet
  90302. */
  90303. void
  90304. icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t)
  90305. {
  90306. 80248b8: b580 push {r7, lr}
  90307. 80248ba: b082 sub sp, #8
  90308. 80248bc: af00 add r7, sp, #0
  90309. 80248be: 6078 str r0, [r7, #4]
  90310. 80248c0: 460b mov r3, r1
  90311. 80248c2: 70fb strb r3, [r7, #3]
  90312. MIB2_STATS_INC(mib2.icmpouttimeexcds);
  90313. icmp_send_response(p, ICMP_TE, t);
  90314. 80248c4: 78fb ldrb r3, [r7, #3]
  90315. 80248c6: 461a mov r2, r3
  90316. 80248c8: 210b movs r1, #11
  90317. 80248ca: 6878 ldr r0, [r7, #4]
  90318. 80248cc: f000 f804 bl 80248d8 <icmp_send_response>
  90319. }
  90320. 80248d0: bf00 nop
  90321. 80248d2: 3708 adds r7, #8
  90322. 80248d4: 46bd mov sp, r7
  90323. 80248d6: bd80 pop {r7, pc}
  90324. 080248d8 <icmp_send_response>:
  90325. * @param type Type of the ICMP header
  90326. * @param code Code of the ICMP header
  90327. */
  90328. static void
  90329. icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
  90330. {
  90331. 80248d8: b580 push {r7, lr}
  90332. 80248da: b08c sub sp, #48 @ 0x30
  90333. 80248dc: af04 add r7, sp, #16
  90334. 80248de: 6078 str r0, [r7, #4]
  90335. 80248e0: 460b mov r3, r1
  90336. 80248e2: 70fb strb r3, [r7, #3]
  90337. 80248e4: 4613 mov r3, r2
  90338. 80248e6: 70bb strb r3, [r7, #2]
  90339. /* increase number of messages attempted to send */
  90340. MIB2_STATS_INC(mib2.icmpoutmsgs);
  90341. /* ICMP header + IP header + 8 bytes of data */
  90342. q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE,
  90343. 80248e8: f44f 7220 mov.w r2, #640 @ 0x280
  90344. 80248ec: 2124 movs r1, #36 @ 0x24
  90345. 80248ee: 2022 movs r0, #34 @ 0x22
  90346. 80248f0: f7f5 fae6 bl 8019ec0 <pbuf_alloc>
  90347. 80248f4: 61b8 str r0, [r7, #24]
  90348. PBUF_RAM);
  90349. if (q == NULL) {
  90350. 80248f6: 69bb ldr r3, [r7, #24]
  90351. 80248f8: 2b00 cmp r3, #0
  90352. 80248fa: d056 beq.n 80249aa <icmp_send_response+0xd2>
  90353. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMP packet.\n"));
  90354. MIB2_STATS_INC(mib2.icmpouterrors);
  90355. return;
  90356. }
  90357. LWIP_ASSERT("check that first pbuf can hold icmp message",
  90358. 80248fc: 69bb ldr r3, [r7, #24]
  90359. 80248fe: 895b ldrh r3, [r3, #10]
  90360. 8024900: 2b23 cmp r3, #35 @ 0x23
  90361. 8024902: d806 bhi.n 8024912 <icmp_send_response+0x3a>
  90362. 8024904: 4b2b ldr r3, [pc, #172] @ (80249b4 <icmp_send_response+0xdc>)
  90363. 8024906: f44f 72b4 mov.w r2, #360 @ 0x168
  90364. 802490a: 492b ldr r1, [pc, #172] @ (80249b8 <icmp_send_response+0xe0>)
  90365. 802490c: 482b ldr r0, [pc, #172] @ (80249bc <icmp_send_response+0xe4>)
  90366. 802490e: f005 f865 bl 80299dc <iprintf>
  90367. (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE)));
  90368. iphdr = (struct ip_hdr *)p->payload;
  90369. 8024912: 687b ldr r3, [r7, #4]
  90370. 8024914: 685b ldr r3, [r3, #4]
  90371. 8024916: 617b str r3, [r7, #20]
  90372. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src);
  90373. LWIP_DEBUGF(ICMP_DEBUG, (" to "));
  90374. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest);
  90375. LWIP_DEBUGF(ICMP_DEBUG, ("\n"));
  90376. icmphdr = (struct icmp_echo_hdr *)q->payload;
  90377. 8024918: 69bb ldr r3, [r7, #24]
  90378. 802491a: 685b ldr r3, [r3, #4]
  90379. 802491c: 613b str r3, [r7, #16]
  90380. icmphdr->type = type;
  90381. 802491e: 693b ldr r3, [r7, #16]
  90382. 8024920: 78fa ldrb r2, [r7, #3]
  90383. 8024922: 701a strb r2, [r3, #0]
  90384. icmphdr->code = code;
  90385. 8024924: 693b ldr r3, [r7, #16]
  90386. 8024926: 78ba ldrb r2, [r7, #2]
  90387. 8024928: 705a strb r2, [r3, #1]
  90388. icmphdr->id = 0;
  90389. 802492a: 693b ldr r3, [r7, #16]
  90390. 802492c: 2200 movs r2, #0
  90391. 802492e: 711a strb r2, [r3, #4]
  90392. 8024930: 2200 movs r2, #0
  90393. 8024932: 715a strb r2, [r3, #5]
  90394. icmphdr->seqno = 0;
  90395. 8024934: 693b ldr r3, [r7, #16]
  90396. 8024936: 2200 movs r2, #0
  90397. 8024938: 719a strb r2, [r3, #6]
  90398. 802493a: 2200 movs r2, #0
  90399. 802493c: 71da strb r2, [r3, #7]
  90400. /* copy fields from original packet */
  90401. SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload,
  90402. 802493e: 69bb ldr r3, [r7, #24]
  90403. 8024940: 685b ldr r3, [r3, #4]
  90404. 8024942: f103 0008 add.w r0, r3, #8
  90405. 8024946: 687b ldr r3, [r7, #4]
  90406. 8024948: 685b ldr r3, [r3, #4]
  90407. 802494a: 221c movs r2, #28
  90408. 802494c: 4619 mov r1, r3
  90409. 802494e: f005 face bl 8029eee <memcpy>
  90410. IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
  90411. ip4_addr_copy(iphdr_src, iphdr->src);
  90412. 8024952: 697b ldr r3, [r7, #20]
  90413. 8024954: 68db ldr r3, [r3, #12]
  90414. 8024956: 60fb str r3, [r7, #12]
  90415. ip4_addr_t iphdr_dst;
  90416. ip4_addr_copy(iphdr_dst, iphdr->dest);
  90417. netif = ip4_route_src(&iphdr_dst, &iphdr_src);
  90418. }
  90419. #else
  90420. netif = ip4_route(&iphdr_src);
  90421. 8024958: f107 030c add.w r3, r7, #12
  90422. 802495c: 4618 mov r0, r3
  90423. 802495e: f000 f82f bl 80249c0 <ip4_route>
  90424. 8024962: 61f8 str r0, [r7, #28]
  90425. #endif
  90426. if (netif != NULL) {
  90427. 8024964: 69fb ldr r3, [r7, #28]
  90428. 8024966: 2b00 cmp r3, #0
  90429. 8024968: d01b beq.n 80249a2 <icmp_send_response+0xca>
  90430. /* calculate checksum */
  90431. icmphdr->chksum = 0;
  90432. 802496a: 693b ldr r3, [r7, #16]
  90433. 802496c: 2200 movs r2, #0
  90434. 802496e: 709a strb r2, [r3, #2]
  90435. 8024970: 2200 movs r2, #0
  90436. 8024972: 70da strb r2, [r3, #3]
  90437. #if CHECKSUM_GEN_ICMP
  90438. IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) {
  90439. icmphdr->chksum = inet_chksum(icmphdr, q->len);
  90440. 8024974: 69bb ldr r3, [r7, #24]
  90441. 8024976: 895b ldrh r3, [r3, #10]
  90442. 8024978: 4619 mov r1, r3
  90443. 802497a: 6938 ldr r0, [r7, #16]
  90444. 802497c: f7f4 f95f bl 8018c3e <inet_chksum>
  90445. 8024980: 4603 mov r3, r0
  90446. 8024982: 461a mov r2, r3
  90447. 8024984: 693b ldr r3, [r7, #16]
  90448. 8024986: 805a strh r2, [r3, #2]
  90449. }
  90450. #endif
  90451. ICMP_STATS_INC(icmp.xmit);
  90452. ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif);
  90453. 8024988: f107 020c add.w r2, r7, #12
  90454. 802498c: 69fb ldr r3, [r7, #28]
  90455. 802498e: 9302 str r3, [sp, #8]
  90456. 8024990: 2301 movs r3, #1
  90457. 8024992: 9301 str r3, [sp, #4]
  90458. 8024994: 2300 movs r3, #0
  90459. 8024996: 9300 str r3, [sp, #0]
  90460. 8024998: 23ff movs r3, #255 @ 0xff
  90461. 802499a: 2100 movs r1, #0
  90462. 802499c: 69b8 ldr r0, [r7, #24]
  90463. 802499e: f000 f9ed bl 8024d7c <ip4_output_if>
  90464. }
  90465. pbuf_free(q);
  90466. 80249a2: 69b8 ldr r0, [r7, #24]
  90467. 80249a4: f7f5 fda2 bl 801a4ec <pbuf_free>
  90468. 80249a8: e000 b.n 80249ac <icmp_send_response+0xd4>
  90469. return;
  90470. 80249aa: bf00 nop
  90471. }
  90472. 80249ac: 3720 adds r7, #32
  90473. 80249ae: 46bd mov sp, r7
  90474. 80249b0: bd80 pop {r7, pc}
  90475. 80249b2: bf00 nop
  90476. 80249b4: 080304b4 .word 0x080304b4
  90477. 80249b8: 08030580 .word 0x08030580
  90478. 80249bc: 08030524 .word 0x08030524
  90479. 080249c0 <ip4_route>:
  90480. * @param dest the destination IP address for which to find the route
  90481. * @return the netif on which to send to reach dest
  90482. */
  90483. struct netif *
  90484. ip4_route(const ip4_addr_t *dest)
  90485. {
  90486. 80249c0: b580 push {r7, lr}
  90487. 80249c2: b084 sub sp, #16
  90488. 80249c4: af00 add r7, sp, #0
  90489. 80249c6: 6078 str r0, [r7, #4]
  90490. #if !LWIP_SINGLE_NETIF
  90491. struct netif *netif;
  90492. LWIP_ASSERT_CORE_LOCKED();
  90493. 80249c8: f7eb fdbc bl 8010544 <sys_check_core_locking>
  90494. /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */
  90495. LWIP_UNUSED_ARG(dest);
  90496. /* iterate through netifs */
  90497. NETIF_FOREACH(netif) {
  90498. 80249cc: 4b32 ldr r3, [pc, #200] @ (8024a98 <ip4_route+0xd8>)
  90499. 80249ce: 681b ldr r3, [r3, #0]
  90500. 80249d0: 60fb str r3, [r7, #12]
  90501. 80249d2: e036 b.n 8024a42 <ip4_route+0x82>
  90502. /* is the netif up, does it have a link and a valid address? */
  90503. if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  90504. 80249d4: 68fb ldr r3, [r7, #12]
  90505. 80249d6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90506. 80249da: f003 0301 and.w r3, r3, #1
  90507. 80249de: b2db uxtb r3, r3
  90508. 80249e0: 2b00 cmp r3, #0
  90509. 80249e2: d02b beq.n 8024a3c <ip4_route+0x7c>
  90510. 80249e4: 68fb ldr r3, [r7, #12]
  90511. 80249e6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90512. 80249ea: 089b lsrs r3, r3, #2
  90513. 80249ec: f003 0301 and.w r3, r3, #1
  90514. 80249f0: b2db uxtb r3, r3
  90515. 80249f2: 2b00 cmp r3, #0
  90516. 80249f4: d022 beq.n 8024a3c <ip4_route+0x7c>
  90517. 80249f6: 68fb ldr r3, [r7, #12]
  90518. 80249f8: 3304 adds r3, #4
  90519. 80249fa: 681b ldr r3, [r3, #0]
  90520. 80249fc: 2b00 cmp r3, #0
  90521. 80249fe: d01d beq.n 8024a3c <ip4_route+0x7c>
  90522. /* network mask matches? */
  90523. if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) {
  90524. 8024a00: 687b ldr r3, [r7, #4]
  90525. 8024a02: 681a ldr r2, [r3, #0]
  90526. 8024a04: 68fb ldr r3, [r7, #12]
  90527. 8024a06: 3304 adds r3, #4
  90528. 8024a08: 681b ldr r3, [r3, #0]
  90529. 8024a0a: 405a eors r2, r3
  90530. 8024a0c: 68fb ldr r3, [r7, #12]
  90531. 8024a0e: 3308 adds r3, #8
  90532. 8024a10: 681b ldr r3, [r3, #0]
  90533. 8024a12: 4013 ands r3, r2
  90534. 8024a14: 2b00 cmp r3, #0
  90535. 8024a16: d101 bne.n 8024a1c <ip4_route+0x5c>
  90536. /* return netif on which to forward IP packet */
  90537. return netif;
  90538. 8024a18: 68fb ldr r3, [r7, #12]
  90539. 8024a1a: e038 b.n 8024a8e <ip4_route+0xce>
  90540. }
  90541. /* gateway matches on a non broadcast interface? (i.e. peer in a point to point interface) */
  90542. if (((netif->flags & NETIF_FLAG_BROADCAST) == 0) && ip4_addr_cmp(dest, netif_ip4_gw(netif))) {
  90543. 8024a1c: 68fb ldr r3, [r7, #12]
  90544. 8024a1e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90545. 8024a22: f003 0302 and.w r3, r3, #2
  90546. 8024a26: 2b00 cmp r3, #0
  90547. 8024a28: d108 bne.n 8024a3c <ip4_route+0x7c>
  90548. 8024a2a: 687b ldr r3, [r7, #4]
  90549. 8024a2c: 681a ldr r2, [r3, #0]
  90550. 8024a2e: 68fb ldr r3, [r7, #12]
  90551. 8024a30: 330c adds r3, #12
  90552. 8024a32: 681b ldr r3, [r3, #0]
  90553. 8024a34: 429a cmp r2, r3
  90554. 8024a36: d101 bne.n 8024a3c <ip4_route+0x7c>
  90555. /* return netif on which to forward IP packet */
  90556. return netif;
  90557. 8024a38: 68fb ldr r3, [r7, #12]
  90558. 8024a3a: e028 b.n 8024a8e <ip4_route+0xce>
  90559. NETIF_FOREACH(netif) {
  90560. 8024a3c: 68fb ldr r3, [r7, #12]
  90561. 8024a3e: 681b ldr r3, [r3, #0]
  90562. 8024a40: 60fb str r3, [r7, #12]
  90563. 8024a42: 68fb ldr r3, [r7, #12]
  90564. 8024a44: 2b00 cmp r3, #0
  90565. 8024a46: d1c5 bne.n 80249d4 <ip4_route+0x14>
  90566. return netif;
  90567. }
  90568. #endif
  90569. #endif /* !LWIP_SINGLE_NETIF */
  90570. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  90571. 8024a48: 4b14 ldr r3, [pc, #80] @ (8024a9c <ip4_route+0xdc>)
  90572. 8024a4a: 681b ldr r3, [r3, #0]
  90573. 8024a4c: 2b00 cmp r3, #0
  90574. 8024a4e: d01a beq.n 8024a86 <ip4_route+0xc6>
  90575. 8024a50: 4b12 ldr r3, [pc, #72] @ (8024a9c <ip4_route+0xdc>)
  90576. 8024a52: 681b ldr r3, [r3, #0]
  90577. 8024a54: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90578. 8024a58: f003 0301 and.w r3, r3, #1
  90579. 8024a5c: 2b00 cmp r3, #0
  90580. 8024a5e: d012 beq.n 8024a86 <ip4_route+0xc6>
  90581. 8024a60: 4b0e ldr r3, [pc, #56] @ (8024a9c <ip4_route+0xdc>)
  90582. 8024a62: 681b ldr r3, [r3, #0]
  90583. 8024a64: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90584. 8024a68: f003 0304 and.w r3, r3, #4
  90585. 8024a6c: 2b00 cmp r3, #0
  90586. 8024a6e: d00a beq.n 8024a86 <ip4_route+0xc6>
  90587. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  90588. 8024a70: 4b0a ldr r3, [pc, #40] @ (8024a9c <ip4_route+0xdc>)
  90589. 8024a72: 681b ldr r3, [r3, #0]
  90590. 8024a74: 3304 adds r3, #4
  90591. 8024a76: 681b ldr r3, [r3, #0]
  90592. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  90593. 8024a78: 2b00 cmp r3, #0
  90594. 8024a7a: d004 beq.n 8024a86 <ip4_route+0xc6>
  90595. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  90596. 8024a7c: 687b ldr r3, [r7, #4]
  90597. 8024a7e: 681b ldr r3, [r3, #0]
  90598. 8024a80: b2db uxtb r3, r3
  90599. 8024a82: 2b7f cmp r3, #127 @ 0x7f
  90600. 8024a84: d101 bne.n 8024a8a <ip4_route+0xca>
  90601. If this is not good enough for you, use LWIP_HOOK_IP4_ROUTE() */
  90602. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_route: No route to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",
  90603. ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
  90604. IP_STATS_INC(ip.rterr);
  90605. MIB2_STATS_INC(mib2.ipoutnoroutes);
  90606. return NULL;
  90607. 8024a86: 2300 movs r3, #0
  90608. 8024a88: e001 b.n 8024a8e <ip4_route+0xce>
  90609. }
  90610. return netif_default;
  90611. 8024a8a: 4b04 ldr r3, [pc, #16] @ (8024a9c <ip4_route+0xdc>)
  90612. 8024a8c: 681b ldr r3, [r3, #0]
  90613. }
  90614. 8024a8e: 4618 mov r0, r3
  90615. 8024a90: 3710 adds r7, #16
  90616. 8024a92: 46bd mov sp, r7
  90617. 8024a94: bd80 pop {r7, pc}
  90618. 8024a96: bf00 nop
  90619. 8024a98: 2402ae7c .word 0x2402ae7c
  90620. 8024a9c: 2402ae80 .word 0x2402ae80
  90621. 08024aa0 <ip4_input_accept>:
  90622. #endif /* IP_FORWARD */
  90623. /** Return true if the current input packet should be accepted on this netif */
  90624. static int
  90625. ip4_input_accept(struct netif *netif)
  90626. {
  90627. 8024aa0: b580 push {r7, lr}
  90628. 8024aa2: b082 sub sp, #8
  90629. 8024aa4: af00 add r7, sp, #0
  90630. 8024aa6: 6078 str r0, [r7, #4]
  90631. ip4_addr_get_u32(ip4_current_dest_addr()) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  90632. ip4_addr_get_u32(netif_ip4_addr(netif)) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  90633. ip4_addr_get_u32(ip4_current_dest_addr()) & ~ip4_addr_get_u32(netif_ip4_netmask(netif))));
  90634. /* interface is up and configured? */
  90635. if ((netif_is_up(netif)) && (!ip4_addr_isany_val(*netif_ip4_addr(netif)))) {
  90636. 8024aa8: 687b ldr r3, [r7, #4]
  90637. 8024aaa: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90638. 8024aae: f003 0301 and.w r3, r3, #1
  90639. 8024ab2: b2db uxtb r3, r3
  90640. 8024ab4: 2b00 cmp r3, #0
  90641. 8024ab6: d016 beq.n 8024ae6 <ip4_input_accept+0x46>
  90642. 8024ab8: 687b ldr r3, [r7, #4]
  90643. 8024aba: 3304 adds r3, #4
  90644. 8024abc: 681b ldr r3, [r3, #0]
  90645. 8024abe: 2b00 cmp r3, #0
  90646. 8024ac0: d011 beq.n 8024ae6 <ip4_input_accept+0x46>
  90647. /* unicast to this interface address? */
  90648. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  90649. 8024ac2: 4b0b ldr r3, [pc, #44] @ (8024af0 <ip4_input_accept+0x50>)
  90650. 8024ac4: 695a ldr r2, [r3, #20]
  90651. 8024ac6: 687b ldr r3, [r7, #4]
  90652. 8024ac8: 3304 adds r3, #4
  90653. 8024aca: 681b ldr r3, [r3, #0]
  90654. 8024acc: 429a cmp r2, r3
  90655. 8024ace: d008 beq.n 8024ae2 <ip4_input_accept+0x42>
  90656. /* or broadcast on this interface network address? */
  90657. ip4_addr_isbroadcast(ip4_current_dest_addr(), netif)
  90658. 8024ad0: 4b07 ldr r3, [pc, #28] @ (8024af0 <ip4_input_accept+0x50>)
  90659. 8024ad2: 695b ldr r3, [r3, #20]
  90660. 8024ad4: 6879 ldr r1, [r7, #4]
  90661. 8024ad6: 4618 mov r0, r3
  90662. 8024ad8: f000 fa2a bl 8024f30 <ip4_addr_isbroadcast_u32>
  90663. 8024adc: 4603 mov r3, r0
  90664. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  90665. 8024ade: 2b00 cmp r3, #0
  90666. 8024ae0: d001 beq.n 8024ae6 <ip4_input_accept+0x46>
  90667. #endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */
  90668. ) {
  90669. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: packet accepted on interface %c%c\n",
  90670. netif->name[0], netif->name[1]));
  90671. /* accept on this netif */
  90672. return 1;
  90673. 8024ae2: 2301 movs r3, #1
  90674. 8024ae4: e000 b.n 8024ae8 <ip4_input_accept+0x48>
  90675. /* accept on this netif */
  90676. return 1;
  90677. }
  90678. #endif /* LWIP_AUTOIP */
  90679. }
  90680. return 0;
  90681. 8024ae6: 2300 movs r3, #0
  90682. }
  90683. 8024ae8: 4618 mov r0, r3
  90684. 8024aea: 3708 adds r7, #8
  90685. 8024aec: 46bd mov sp, r7
  90686. 8024aee: bd80 pop {r7, pc}
  90687. 8024af0: 24024338 .word 0x24024338
  90688. 08024af4 <ip4_input>:
  90689. * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't
  90690. * processed, but currently always returns ERR_OK)
  90691. */
  90692. err_t
  90693. ip4_input(struct pbuf *p, struct netif *inp)
  90694. {
  90695. 8024af4: b580 push {r7, lr}
  90696. 8024af6: b088 sub sp, #32
  90697. 8024af8: af00 add r7, sp, #0
  90698. 8024afa: 6078 str r0, [r7, #4]
  90699. 8024afc: 6039 str r1, [r7, #0]
  90700. const struct ip_hdr *iphdr;
  90701. struct netif *netif;
  90702. u16_t iphdr_hlen;
  90703. u16_t iphdr_len;
  90704. #if IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP
  90705. int check_ip_src = 1;
  90706. 8024afe: 2301 movs r3, #1
  90707. 8024b00: 617b str r3, [r7, #20]
  90708. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP */
  90709. #if LWIP_RAW
  90710. raw_input_state_t raw_status;
  90711. #endif /* LWIP_RAW */
  90712. LWIP_ASSERT_CORE_LOCKED();
  90713. 8024b02: f7eb fd1f bl 8010544 <sys_check_core_locking>
  90714. IP_STATS_INC(ip.recv);
  90715. MIB2_STATS_INC(mib2.ipinreceives);
  90716. /* identify the IP header */
  90717. iphdr = (struct ip_hdr *)p->payload;
  90718. 8024b06: 687b ldr r3, [r7, #4]
  90719. 8024b08: 685b ldr r3, [r3, #4]
  90720. 8024b0a: 613b str r3, [r7, #16]
  90721. if (IPH_V(iphdr) != 4) {
  90722. 8024b0c: 693b ldr r3, [r7, #16]
  90723. 8024b0e: 781b ldrb r3, [r3, #0]
  90724. 8024b10: 091b lsrs r3, r3, #4
  90725. 8024b12: b2db uxtb r3, r3
  90726. 8024b14: 2b04 cmp r3, #4
  90727. 8024b16: d004 beq.n 8024b22 <ip4_input+0x2e>
  90728. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IP packet dropped due to bad version number %"U16_F"\n", (u16_t)IPH_V(iphdr)));
  90729. ip4_debug_print(p);
  90730. pbuf_free(p);
  90731. 8024b18: 6878 ldr r0, [r7, #4]
  90732. 8024b1a: f7f5 fce7 bl 801a4ec <pbuf_free>
  90733. IP_STATS_INC(ip.err);
  90734. IP_STATS_INC(ip.drop);
  90735. MIB2_STATS_INC(mib2.ipinhdrerrors);
  90736. return ERR_OK;
  90737. 8024b1e: 2300 movs r3, #0
  90738. 8024b20: e123 b.n 8024d6a <ip4_input+0x276>
  90739. return ERR_OK;
  90740. }
  90741. #endif
  90742. /* obtain IP header length in bytes */
  90743. iphdr_hlen = IPH_HL_BYTES(iphdr);
  90744. 8024b22: 693b ldr r3, [r7, #16]
  90745. 8024b24: 781b ldrb r3, [r3, #0]
  90746. 8024b26: f003 030f and.w r3, r3, #15
  90747. 8024b2a: b2db uxtb r3, r3
  90748. 8024b2c: 009b lsls r3, r3, #2
  90749. 8024b2e: b2db uxtb r3, r3
  90750. 8024b30: 81fb strh r3, [r7, #14]
  90751. /* obtain ip length in bytes */
  90752. iphdr_len = lwip_ntohs(IPH_LEN(iphdr));
  90753. 8024b32: 693b ldr r3, [r7, #16]
  90754. 8024b34: 885b ldrh r3, [r3, #2]
  90755. 8024b36: b29b uxth r3, r3
  90756. 8024b38: 4618 mov r0, r3
  90757. 8024b3a: f7f3 fff5 bl 8018b28 <lwip_htons>
  90758. 8024b3e: 4603 mov r3, r0
  90759. 8024b40: 837b strh r3, [r7, #26]
  90760. /* Trim pbuf. This is especially required for packets < 60 bytes. */
  90761. if (iphdr_len < p->tot_len) {
  90762. 8024b42: 687b ldr r3, [r7, #4]
  90763. 8024b44: 891b ldrh r3, [r3, #8]
  90764. 8024b46: 8b7a ldrh r2, [r7, #26]
  90765. 8024b48: 429a cmp r2, r3
  90766. 8024b4a: d204 bcs.n 8024b56 <ip4_input+0x62>
  90767. pbuf_realloc(p, iphdr_len);
  90768. 8024b4c: 8b7b ldrh r3, [r7, #26]
  90769. 8024b4e: 4619 mov r1, r3
  90770. 8024b50: 6878 ldr r0, [r7, #4]
  90771. 8024b52: f7f5 fb15 bl 801a180 <pbuf_realloc>
  90772. }
  90773. /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */
  90774. if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
  90775. 8024b56: 687b ldr r3, [r7, #4]
  90776. 8024b58: 895b ldrh r3, [r3, #10]
  90777. 8024b5a: 89fa ldrh r2, [r7, #14]
  90778. 8024b5c: 429a cmp r2, r3
  90779. 8024b5e: d807 bhi.n 8024b70 <ip4_input+0x7c>
  90780. 8024b60: 687b ldr r3, [r7, #4]
  90781. 8024b62: 891b ldrh r3, [r3, #8]
  90782. 8024b64: 8b7a ldrh r2, [r7, #26]
  90783. 8024b66: 429a cmp r2, r3
  90784. 8024b68: d802 bhi.n 8024b70 <ip4_input+0x7c>
  90785. 8024b6a: 89fb ldrh r3, [r7, #14]
  90786. 8024b6c: 2b13 cmp r3, #19
  90787. 8024b6e: d804 bhi.n 8024b7a <ip4_input+0x86>
  90788. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  90789. ("IP (len %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n",
  90790. iphdr_len, p->tot_len));
  90791. }
  90792. /* free (drop) packet pbufs */
  90793. pbuf_free(p);
  90794. 8024b70: 6878 ldr r0, [r7, #4]
  90795. 8024b72: f7f5 fcbb bl 801a4ec <pbuf_free>
  90796. IP_STATS_INC(ip.lenerr);
  90797. IP_STATS_INC(ip.drop);
  90798. MIB2_STATS_INC(mib2.ipindiscards);
  90799. return ERR_OK;
  90800. 8024b76: 2300 movs r3, #0
  90801. 8024b78: e0f7 b.n 8024d6a <ip4_input+0x276>
  90802. }
  90803. }
  90804. #endif
  90805. /* copy IP addresses to aligned ip_addr_t */
  90806. ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest);
  90807. 8024b7a: 693b ldr r3, [r7, #16]
  90808. 8024b7c: 691b ldr r3, [r3, #16]
  90809. 8024b7e: 4a7d ldr r2, [pc, #500] @ (8024d74 <ip4_input+0x280>)
  90810. 8024b80: 6153 str r3, [r2, #20]
  90811. ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src);
  90812. 8024b82: 693b ldr r3, [r7, #16]
  90813. 8024b84: 68db ldr r3, [r3, #12]
  90814. 8024b86: 4a7b ldr r2, [pc, #492] @ (8024d74 <ip4_input+0x280>)
  90815. 8024b88: 6113 str r3, [r2, #16]
  90816. /* match packet against an interface, i.e. is this packet for us? */
  90817. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  90818. 8024b8a: 4b7a ldr r3, [pc, #488] @ (8024d74 <ip4_input+0x280>)
  90819. 8024b8c: 695b ldr r3, [r3, #20]
  90820. 8024b8e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90821. 8024b92: 2be0 cmp r3, #224 @ 0xe0
  90822. 8024b94: d112 bne.n 8024bbc <ip4_input+0xc8>
  90823. netif = inp;
  90824. } else {
  90825. netif = NULL;
  90826. }
  90827. #else /* LWIP_IGMP */
  90828. if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) {
  90829. 8024b96: 683b ldr r3, [r7, #0]
  90830. 8024b98: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  90831. 8024b9c: f003 0301 and.w r3, r3, #1
  90832. 8024ba0: b2db uxtb r3, r3
  90833. 8024ba2: 2b00 cmp r3, #0
  90834. 8024ba4: d007 beq.n 8024bb6 <ip4_input+0xc2>
  90835. 8024ba6: 683b ldr r3, [r7, #0]
  90836. 8024ba8: 3304 adds r3, #4
  90837. 8024baa: 681b ldr r3, [r3, #0]
  90838. 8024bac: 2b00 cmp r3, #0
  90839. 8024bae: d002 beq.n 8024bb6 <ip4_input+0xc2>
  90840. netif = inp;
  90841. 8024bb0: 683b ldr r3, [r7, #0]
  90842. 8024bb2: 61fb str r3, [r7, #28]
  90843. 8024bb4: e02a b.n 8024c0c <ip4_input+0x118>
  90844. } else {
  90845. netif = NULL;
  90846. 8024bb6: 2300 movs r3, #0
  90847. 8024bb8: 61fb str r3, [r7, #28]
  90848. 8024bba: e027 b.n 8024c0c <ip4_input+0x118>
  90849. }
  90850. #endif /* LWIP_IGMP */
  90851. } else {
  90852. /* start trying with inp. if that's not acceptable, start walking the
  90853. list of configured netifs. */
  90854. if (ip4_input_accept(inp)) {
  90855. 8024bbc: 6838 ldr r0, [r7, #0]
  90856. 8024bbe: f7ff ff6f bl 8024aa0 <ip4_input_accept>
  90857. 8024bc2: 4603 mov r3, r0
  90858. 8024bc4: 2b00 cmp r3, #0
  90859. 8024bc6: d002 beq.n 8024bce <ip4_input+0xda>
  90860. netif = inp;
  90861. 8024bc8: 683b ldr r3, [r7, #0]
  90862. 8024bca: 61fb str r3, [r7, #28]
  90863. 8024bcc: e01e b.n 8024c0c <ip4_input+0x118>
  90864. } else {
  90865. netif = NULL;
  90866. 8024bce: 2300 movs r3, #0
  90867. 8024bd0: 61fb str r3, [r7, #28]
  90868. #if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF
  90869. /* Packets sent to the loopback address must not be accepted on an
  90870. * interface that does not have the loopback address assigned to it,
  90871. * unless a non-loopback interface is used for loopback traffic. */
  90872. if (!ip4_addr_isloopback(ip4_current_dest_addr()))
  90873. 8024bd2: 4b68 ldr r3, [pc, #416] @ (8024d74 <ip4_input+0x280>)
  90874. 8024bd4: 695b ldr r3, [r3, #20]
  90875. 8024bd6: b2db uxtb r3, r3
  90876. 8024bd8: 2b7f cmp r3, #127 @ 0x7f
  90877. 8024bda: d017 beq.n 8024c0c <ip4_input+0x118>
  90878. #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
  90879. {
  90880. #if !LWIP_SINGLE_NETIF
  90881. NETIF_FOREACH(netif) {
  90882. 8024bdc: 4b66 ldr r3, [pc, #408] @ (8024d78 <ip4_input+0x284>)
  90883. 8024bde: 681b ldr r3, [r3, #0]
  90884. 8024be0: 61fb str r3, [r7, #28]
  90885. 8024be2: e00e b.n 8024c02 <ip4_input+0x10e>
  90886. if (netif == inp) {
  90887. 8024be4: 69fa ldr r2, [r7, #28]
  90888. 8024be6: 683b ldr r3, [r7, #0]
  90889. 8024be8: 429a cmp r2, r3
  90890. 8024bea: d006 beq.n 8024bfa <ip4_input+0x106>
  90891. /* we checked that before already */
  90892. continue;
  90893. }
  90894. if (ip4_input_accept(netif)) {
  90895. 8024bec: 69f8 ldr r0, [r7, #28]
  90896. 8024bee: f7ff ff57 bl 8024aa0 <ip4_input_accept>
  90897. 8024bf2: 4603 mov r3, r0
  90898. 8024bf4: 2b00 cmp r3, #0
  90899. 8024bf6: d108 bne.n 8024c0a <ip4_input+0x116>
  90900. 8024bf8: e000 b.n 8024bfc <ip4_input+0x108>
  90901. continue;
  90902. 8024bfa: bf00 nop
  90903. NETIF_FOREACH(netif) {
  90904. 8024bfc: 69fb ldr r3, [r7, #28]
  90905. 8024bfe: 681b ldr r3, [r3, #0]
  90906. 8024c00: 61fb str r3, [r7, #28]
  90907. 8024c02: 69fb ldr r3, [r7, #28]
  90908. 8024c04: 2b00 cmp r3, #0
  90909. 8024c06: d1ed bne.n 8024be4 <ip4_input+0xf0>
  90910. 8024c08: e000 b.n 8024c0c <ip4_input+0x118>
  90911. break;
  90912. 8024c0a: bf00 nop
  90913. * If you want to accept private broadcast communication while a netif is down,
  90914. * define LWIP_IP_ACCEPT_UDP_PORT(dst_port), e.g.:
  90915. *
  90916. * #define LWIP_IP_ACCEPT_UDP_PORT(dst_port) ((dst_port) == PP_NTOHS(12345))
  90917. */
  90918. if (netif == NULL) {
  90919. 8024c0c: 69fb ldr r3, [r7, #28]
  90920. 8024c0e: 2b00 cmp r3, #0
  90921. 8024c10: d111 bne.n 8024c36 <ip4_input+0x142>
  90922. /* remote port is DHCP server? */
  90923. if (IPH_PROTO(iphdr) == IP_PROTO_UDP) {
  90924. 8024c12: 693b ldr r3, [r7, #16]
  90925. 8024c14: 7a5b ldrb r3, [r3, #9]
  90926. 8024c16: 2b11 cmp r3, #17
  90927. 8024c18: d10d bne.n 8024c36 <ip4_input+0x142>
  90928. const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen);
  90929. 8024c1a: 89fb ldrh r3, [r7, #14]
  90930. 8024c1c: 693a ldr r2, [r7, #16]
  90931. 8024c1e: 4413 add r3, r2
  90932. 8024c20: 60bb str r3, [r7, #8]
  90933. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: UDP packet to DHCP client port %"U16_F"\n",
  90934. lwip_ntohs(udphdr->dest)));
  90935. if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
  90936. 8024c22: 68bb ldr r3, [r7, #8]
  90937. 8024c24: 885b ldrh r3, [r3, #2]
  90938. 8024c26: b29b uxth r3, r3
  90939. 8024c28: f5b3 4f88 cmp.w r3, #17408 @ 0x4400
  90940. 8024c2c: d103 bne.n 8024c36 <ip4_input+0x142>
  90941. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n"));
  90942. netif = inp;
  90943. 8024c2e: 683b ldr r3, [r7, #0]
  90944. 8024c30: 61fb str r3, [r7, #28]
  90945. check_ip_src = 0;
  90946. 8024c32: 2300 movs r3, #0
  90947. 8024c34: 617b str r3, [r7, #20]
  90948. }
  90949. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  90950. /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */
  90951. #if LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING
  90952. if (check_ip_src
  90953. 8024c36: 697b ldr r3, [r7, #20]
  90954. 8024c38: 2b00 cmp r3, #0
  90955. 8024c3a: d017 beq.n 8024c6c <ip4_input+0x178>
  90956. #if IP_ACCEPT_LINK_LAYER_ADDRESSING
  90957. /* DHCP servers need 0.0.0.0 to be allowed as source address (RFC 1.1.2.2: 3.2.1.3/a) */
  90958. && !ip4_addr_isany_val(*ip4_current_src_addr())
  90959. 8024c3c: 4b4d ldr r3, [pc, #308] @ (8024d74 <ip4_input+0x280>)
  90960. 8024c3e: 691b ldr r3, [r3, #16]
  90961. 8024c40: 2b00 cmp r3, #0
  90962. 8024c42: d013 beq.n 8024c6c <ip4_input+0x178>
  90963. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  90964. )
  90965. #endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */
  90966. {
  90967. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  90968. 8024c44: 4b4b ldr r3, [pc, #300] @ (8024d74 <ip4_input+0x280>)
  90969. 8024c46: 691b ldr r3, [r3, #16]
  90970. 8024c48: 6839 ldr r1, [r7, #0]
  90971. 8024c4a: 4618 mov r0, r3
  90972. 8024c4c: f000 f970 bl 8024f30 <ip4_addr_isbroadcast_u32>
  90973. 8024c50: 4603 mov r3, r0
  90974. 8024c52: 2b00 cmp r3, #0
  90975. 8024c54: d105 bne.n 8024c62 <ip4_input+0x16e>
  90976. (ip4_addr_ismulticast(ip4_current_src_addr()))) {
  90977. 8024c56: 4b47 ldr r3, [pc, #284] @ (8024d74 <ip4_input+0x280>)
  90978. 8024c58: 691b ldr r3, [r3, #16]
  90979. 8024c5a: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90980. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  90981. 8024c5e: 2be0 cmp r3, #224 @ 0xe0
  90982. 8024c60: d104 bne.n 8024c6c <ip4_input+0x178>
  90983. /* packet source is not valid */
  90984. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("ip4_input: packet source is not valid.\n"));
  90985. /* free (drop) packet pbufs */
  90986. pbuf_free(p);
  90987. 8024c62: 6878 ldr r0, [r7, #4]
  90988. 8024c64: f7f5 fc42 bl 801a4ec <pbuf_free>
  90989. IP_STATS_INC(ip.drop);
  90990. MIB2_STATS_INC(mib2.ipinaddrerrors);
  90991. MIB2_STATS_INC(mib2.ipindiscards);
  90992. return ERR_OK;
  90993. 8024c68: 2300 movs r3, #0
  90994. 8024c6a: e07e b.n 8024d6a <ip4_input+0x276>
  90995. }
  90996. }
  90997. /* packet not for us? */
  90998. if (netif == NULL) {
  90999. 8024c6c: 69fb ldr r3, [r7, #28]
  91000. 8024c6e: 2b00 cmp r3, #0
  91001. 8024c70: d104 bne.n 8024c7c <ip4_input+0x188>
  91002. {
  91003. IP_STATS_INC(ip.drop);
  91004. MIB2_STATS_INC(mib2.ipinaddrerrors);
  91005. MIB2_STATS_INC(mib2.ipindiscards);
  91006. }
  91007. pbuf_free(p);
  91008. 8024c72: 6878 ldr r0, [r7, #4]
  91009. 8024c74: f7f5 fc3a bl 801a4ec <pbuf_free>
  91010. return ERR_OK;
  91011. 8024c78: 2300 movs r3, #0
  91012. 8024c7a: e076 b.n 8024d6a <ip4_input+0x276>
  91013. }
  91014. /* packet consists of multiple fragments? */
  91015. if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {
  91016. 8024c7c: 693b ldr r3, [r7, #16]
  91017. 8024c7e: 88db ldrh r3, [r3, #6]
  91018. 8024c80: b29b uxth r3, r3
  91019. 8024c82: 461a mov r2, r3
  91020. 8024c84: f64f 733f movw r3, #65343 @ 0xff3f
  91021. 8024c88: 4013 ands r3, r2
  91022. 8024c8a: 2b00 cmp r3, #0
  91023. 8024c8c: d00b beq.n 8024ca6 <ip4_input+0x1b2>
  91024. #if IP_REASSEMBLY /* packet fragment reassembly code present? */
  91025. 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",
  91026. 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)));
  91027. /* reassemble the packet*/
  91028. p = ip4_reass(p);
  91029. 8024c8e: 6878 ldr r0, [r7, #4]
  91030. 8024c90: f000 fe62 bl 8025958 <ip4_reass>
  91031. 8024c94: 6078 str r0, [r7, #4]
  91032. /* packet not fully reassembled yet? */
  91033. if (p == NULL) {
  91034. 8024c96: 687b ldr r3, [r7, #4]
  91035. 8024c98: 2b00 cmp r3, #0
  91036. 8024c9a: d101 bne.n 8024ca0 <ip4_input+0x1ac>
  91037. return ERR_OK;
  91038. 8024c9c: 2300 movs r3, #0
  91039. 8024c9e: e064 b.n 8024d6a <ip4_input+0x276>
  91040. }
  91041. iphdr = (const struct ip_hdr *)p->payload;
  91042. 8024ca0: 687b ldr r3, [r7, #4]
  91043. 8024ca2: 685b ldr r3, [r3, #4]
  91044. 8024ca4: 613b str r3, [r7, #16]
  91045. /* send to upper layers */
  91046. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: \n"));
  91047. ip4_debug_print(p);
  91048. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
  91049. ip_data.current_netif = netif;
  91050. 8024ca6: 4a33 ldr r2, [pc, #204] @ (8024d74 <ip4_input+0x280>)
  91051. 8024ca8: 69fb ldr r3, [r7, #28]
  91052. 8024caa: 6013 str r3, [r2, #0]
  91053. ip_data.current_input_netif = inp;
  91054. 8024cac: 4a31 ldr r2, [pc, #196] @ (8024d74 <ip4_input+0x280>)
  91055. 8024cae: 683b ldr r3, [r7, #0]
  91056. 8024cb0: 6053 str r3, [r2, #4]
  91057. ip_data.current_ip4_header = iphdr;
  91058. 8024cb2: 4a30 ldr r2, [pc, #192] @ (8024d74 <ip4_input+0x280>)
  91059. 8024cb4: 693b ldr r3, [r7, #16]
  91060. 8024cb6: 6093 str r3, [r2, #8]
  91061. ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr);
  91062. 8024cb8: 693b ldr r3, [r7, #16]
  91063. 8024cba: 781b ldrb r3, [r3, #0]
  91064. 8024cbc: f003 030f and.w r3, r3, #15
  91065. 8024cc0: b2db uxtb r3, r3
  91066. 8024cc2: 009b lsls r3, r3, #2
  91067. 8024cc4: b2db uxtb r3, r3
  91068. 8024cc6: 461a mov r2, r3
  91069. 8024cc8: 4b2a ldr r3, [pc, #168] @ (8024d74 <ip4_input+0x280>)
  91070. 8024cca: 819a strh r2, [r3, #12]
  91071. /* raw input did not eat the packet? */
  91072. raw_status = raw_input(p, inp);
  91073. if (raw_status != RAW_INPUT_EATEN)
  91074. #endif /* LWIP_RAW */
  91075. {
  91076. pbuf_remove_header(p, iphdr_hlen); /* Move to payload, no check necessary. */
  91077. 8024ccc: 89fb ldrh r3, [r7, #14]
  91078. 8024cce: 4619 mov r1, r3
  91079. 8024cd0: 6878 ldr r0, [r7, #4]
  91080. 8024cd2: f7f5 fb53 bl 801a37c <pbuf_remove_header>
  91081. switch (IPH_PROTO(iphdr)) {
  91082. 8024cd6: 693b ldr r3, [r7, #16]
  91083. 8024cd8: 7a5b ldrb r3, [r3, #9]
  91084. 8024cda: 2b11 cmp r3, #17
  91085. 8024cdc: d006 beq.n 8024cec <ip4_input+0x1f8>
  91086. 8024cde: 2b11 cmp r3, #17
  91087. 8024ce0: dc13 bgt.n 8024d0a <ip4_input+0x216>
  91088. 8024ce2: 2b01 cmp r3, #1
  91089. 8024ce4: d00c beq.n 8024d00 <ip4_input+0x20c>
  91090. 8024ce6: 2b06 cmp r3, #6
  91091. 8024ce8: d005 beq.n 8024cf6 <ip4_input+0x202>
  91092. 8024cea: e00e b.n 8024d0a <ip4_input+0x216>
  91093. case IP_PROTO_UDP:
  91094. #if LWIP_UDPLITE
  91095. case IP_PROTO_UDPLITE:
  91096. #endif /* LWIP_UDPLITE */
  91097. MIB2_STATS_INC(mib2.ipindelivers);
  91098. udp_input(p, inp);
  91099. 8024cec: 6839 ldr r1, [r7, #0]
  91100. 8024cee: 6878 ldr r0, [r7, #4]
  91101. 8024cf0: f7fc f99c bl 802102c <udp_input>
  91102. break;
  91103. 8024cf4: e026 b.n 8024d44 <ip4_input+0x250>
  91104. #endif /* LWIP_UDP */
  91105. #if LWIP_TCP
  91106. case IP_PROTO_TCP:
  91107. MIB2_STATS_INC(mib2.ipindelivers);
  91108. tcp_input(p, inp);
  91109. 8024cf6: 6839 ldr r1, [r7, #0]
  91110. 8024cf8: 6878 ldr r0, [r7, #4]
  91111. 8024cfa: f7f7 fcdd bl 801c6b8 <tcp_input>
  91112. break;
  91113. 8024cfe: e021 b.n 8024d44 <ip4_input+0x250>
  91114. #endif /* LWIP_TCP */
  91115. #if LWIP_ICMP
  91116. case IP_PROTO_ICMP:
  91117. MIB2_STATS_INC(mib2.ipindelivers);
  91118. icmp_input(p, inp);
  91119. 8024d00: 6839 ldr r1, [r7, #0]
  91120. 8024d02: 6878 ldr r0, [r7, #4]
  91121. 8024d04: f7ff fca4 bl 8024650 <icmp_input>
  91122. break;
  91123. 8024d08: e01c b.n 8024d44 <ip4_input+0x250>
  91124. } else
  91125. #endif /* LWIP_RAW */
  91126. {
  91127. #if LWIP_ICMP
  91128. /* send ICMP destination protocol unreachable unless is was a broadcast */
  91129. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  91130. 8024d0a: 4b1a ldr r3, [pc, #104] @ (8024d74 <ip4_input+0x280>)
  91131. 8024d0c: 695b ldr r3, [r3, #20]
  91132. 8024d0e: 69f9 ldr r1, [r7, #28]
  91133. 8024d10: 4618 mov r0, r3
  91134. 8024d12: f000 f90d bl 8024f30 <ip4_addr_isbroadcast_u32>
  91135. 8024d16: 4603 mov r3, r0
  91136. 8024d18: 2b00 cmp r3, #0
  91137. 8024d1a: d10f bne.n 8024d3c <ip4_input+0x248>
  91138. !ip4_addr_ismulticast(ip4_current_dest_addr())) {
  91139. 8024d1c: 4b15 ldr r3, [pc, #84] @ (8024d74 <ip4_input+0x280>)
  91140. 8024d1e: 695b ldr r3, [r3, #20]
  91141. 8024d20: f003 03f0 and.w r3, r3, #240 @ 0xf0
  91142. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  91143. 8024d24: 2be0 cmp r3, #224 @ 0xe0
  91144. 8024d26: d009 beq.n 8024d3c <ip4_input+0x248>
  91145. pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */
  91146. 8024d28: f9b7 300e ldrsh.w r3, [r7, #14]
  91147. 8024d2c: 4619 mov r1, r3
  91148. 8024d2e: 6878 ldr r0, [r7, #4]
  91149. 8024d30: f7f5 fb97 bl 801a462 <pbuf_header_force>
  91150. icmp_dest_unreach(p, ICMP_DUR_PROTO);
  91151. 8024d34: 2102 movs r1, #2
  91152. 8024d36: 6878 ldr r0, [r7, #4]
  91153. 8024d38: f7ff fdae bl 8024898 <icmp_dest_unreach>
  91154. IP_STATS_INC(ip.proterr);
  91155. IP_STATS_INC(ip.drop);
  91156. MIB2_STATS_INC(mib2.ipinunknownprotos);
  91157. }
  91158. pbuf_free(p);
  91159. 8024d3c: 6878 ldr r0, [r7, #4]
  91160. 8024d3e: f7f5 fbd5 bl 801a4ec <pbuf_free>
  91161. break;
  91162. 8024d42: bf00 nop
  91163. }
  91164. }
  91165. /* @todo: this is not really necessary... */
  91166. ip_data.current_netif = NULL;
  91167. 8024d44: 4b0b ldr r3, [pc, #44] @ (8024d74 <ip4_input+0x280>)
  91168. 8024d46: 2200 movs r2, #0
  91169. 8024d48: 601a str r2, [r3, #0]
  91170. ip_data.current_input_netif = NULL;
  91171. 8024d4a: 4b0a ldr r3, [pc, #40] @ (8024d74 <ip4_input+0x280>)
  91172. 8024d4c: 2200 movs r2, #0
  91173. 8024d4e: 605a str r2, [r3, #4]
  91174. ip_data.current_ip4_header = NULL;
  91175. 8024d50: 4b08 ldr r3, [pc, #32] @ (8024d74 <ip4_input+0x280>)
  91176. 8024d52: 2200 movs r2, #0
  91177. 8024d54: 609a str r2, [r3, #8]
  91178. ip_data.current_ip_header_tot_len = 0;
  91179. 8024d56: 4b07 ldr r3, [pc, #28] @ (8024d74 <ip4_input+0x280>)
  91180. 8024d58: 2200 movs r2, #0
  91181. 8024d5a: 819a strh r2, [r3, #12]
  91182. ip4_addr_set_any(ip4_current_src_addr());
  91183. 8024d5c: 4b05 ldr r3, [pc, #20] @ (8024d74 <ip4_input+0x280>)
  91184. 8024d5e: 2200 movs r2, #0
  91185. 8024d60: 611a str r2, [r3, #16]
  91186. ip4_addr_set_any(ip4_current_dest_addr());
  91187. 8024d62: 4b04 ldr r3, [pc, #16] @ (8024d74 <ip4_input+0x280>)
  91188. 8024d64: 2200 movs r2, #0
  91189. 8024d66: 615a str r2, [r3, #20]
  91190. return ERR_OK;
  91191. 8024d68: 2300 movs r3, #0
  91192. }
  91193. 8024d6a: 4618 mov r0, r3
  91194. 8024d6c: 3720 adds r7, #32
  91195. 8024d6e: 46bd mov sp, r7
  91196. 8024d70: bd80 pop {r7, pc}
  91197. 8024d72: bf00 nop
  91198. 8024d74: 24024338 .word 0x24024338
  91199. 8024d78: 2402ae7c .word 0x2402ae7c
  91200. 08024d7c <ip4_output_if>:
  91201. */
  91202. err_t
  91203. ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  91204. u8_t ttl, u8_t tos,
  91205. u8_t proto, struct netif *netif)
  91206. {
  91207. 8024d7c: b580 push {r7, lr}
  91208. 8024d7e: b08a sub sp, #40 @ 0x28
  91209. 8024d80: af04 add r7, sp, #16
  91210. 8024d82: 60f8 str r0, [r7, #12]
  91211. 8024d84: 60b9 str r1, [r7, #8]
  91212. 8024d86: 607a str r2, [r7, #4]
  91213. 8024d88: 70fb strb r3, [r7, #3]
  91214. ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  91215. u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
  91216. u16_t optlen)
  91217. {
  91218. #endif /* IP_OPTIONS_SEND */
  91219. const ip4_addr_t *src_used = src;
  91220. 8024d8a: 68bb ldr r3, [r7, #8]
  91221. 8024d8c: 617b str r3, [r7, #20]
  91222. if (dest != LWIP_IP_HDRINCL) {
  91223. 8024d8e: 687b ldr r3, [r7, #4]
  91224. 8024d90: 2b00 cmp r3, #0
  91225. 8024d92: d009 beq.n 8024da8 <ip4_output_if+0x2c>
  91226. if (ip4_addr_isany(src)) {
  91227. 8024d94: 68bb ldr r3, [r7, #8]
  91228. 8024d96: 2b00 cmp r3, #0
  91229. 8024d98: d003 beq.n 8024da2 <ip4_output_if+0x26>
  91230. 8024d9a: 68bb ldr r3, [r7, #8]
  91231. 8024d9c: 681b ldr r3, [r3, #0]
  91232. 8024d9e: 2b00 cmp r3, #0
  91233. 8024da0: d102 bne.n 8024da8 <ip4_output_if+0x2c>
  91234. src_used = netif_ip4_addr(netif);
  91235. 8024da2: 6abb ldr r3, [r7, #40] @ 0x28
  91236. 8024da4: 3304 adds r3, #4
  91237. 8024da6: 617b str r3, [r7, #20]
  91238. #if IP_OPTIONS_SEND
  91239. return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif,
  91240. ip_options, optlen);
  91241. #else /* IP_OPTIONS_SEND */
  91242. return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif);
  91243. 8024da8: 78fa ldrb r2, [r7, #3]
  91244. 8024daa: 6abb ldr r3, [r7, #40] @ 0x28
  91245. 8024dac: 9302 str r3, [sp, #8]
  91246. 8024dae: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  91247. 8024db2: 9301 str r3, [sp, #4]
  91248. 8024db4: f897 3020 ldrb.w r3, [r7, #32]
  91249. 8024db8: 9300 str r3, [sp, #0]
  91250. 8024dba: 4613 mov r3, r2
  91251. 8024dbc: 687a ldr r2, [r7, #4]
  91252. 8024dbe: 6979 ldr r1, [r7, #20]
  91253. 8024dc0: 68f8 ldr r0, [r7, #12]
  91254. 8024dc2: f000 f805 bl 8024dd0 <ip4_output_if_src>
  91255. 8024dc6: 4603 mov r3, r0
  91256. #endif /* IP_OPTIONS_SEND */
  91257. }
  91258. 8024dc8: 4618 mov r0, r3
  91259. 8024dca: 3718 adds r7, #24
  91260. 8024dcc: 46bd mov sp, r7
  91261. 8024dce: bd80 pop {r7, pc}
  91262. 08024dd0 <ip4_output_if_src>:
  91263. */
  91264. err_t
  91265. ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  91266. u8_t ttl, u8_t tos,
  91267. u8_t proto, struct netif *netif)
  91268. {
  91269. 8024dd0: b580 push {r7, lr}
  91270. 8024dd2: b088 sub sp, #32
  91271. 8024dd4: af00 add r7, sp, #0
  91272. 8024dd6: 60f8 str r0, [r7, #12]
  91273. 8024dd8: 60b9 str r1, [r7, #8]
  91274. 8024dda: 607a str r2, [r7, #4]
  91275. 8024ddc: 70fb strb r3, [r7, #3]
  91276. ip4_addr_t dest_addr;
  91277. #if CHECKSUM_GEN_IP_INLINE
  91278. u32_t chk_sum = 0;
  91279. #endif /* CHECKSUM_GEN_IP_INLINE */
  91280. LWIP_ASSERT_CORE_LOCKED();
  91281. 8024dde: f7eb fbb1 bl 8010544 <sys_check_core_locking>
  91282. LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p);
  91283. 8024de2: 68fb ldr r3, [r7, #12]
  91284. 8024de4: 7b9b ldrb r3, [r3, #14]
  91285. 8024de6: 2b01 cmp r3, #1
  91286. 8024de8: d006 beq.n 8024df8 <ip4_output_if_src+0x28>
  91287. 8024dea: 4b4b ldr r3, [pc, #300] @ (8024f18 <ip4_output_if_src+0x148>)
  91288. 8024dec: f44f 7255 mov.w r2, #852 @ 0x354
  91289. 8024df0: 494a ldr r1, [pc, #296] @ (8024f1c <ip4_output_if_src+0x14c>)
  91290. 8024df2: 484b ldr r0, [pc, #300] @ (8024f20 <ip4_output_if_src+0x150>)
  91291. 8024df4: f004 fdf2 bl 80299dc <iprintf>
  91292. MIB2_STATS_INC(mib2.ipoutrequests);
  91293. /* Should the IP header be generated or is it already included in p? */
  91294. if (dest != LWIP_IP_HDRINCL) {
  91295. 8024df8: 687b ldr r3, [r7, #4]
  91296. 8024dfa: 2b00 cmp r3, #0
  91297. 8024dfc: d060 beq.n 8024ec0 <ip4_output_if_src+0xf0>
  91298. u16_t ip_hlen = IP_HLEN;
  91299. 8024dfe: 2314 movs r3, #20
  91300. 8024e00: 837b strh r3, [r7, #26]
  91301. }
  91302. #endif /* CHECKSUM_GEN_IP_INLINE */
  91303. }
  91304. #endif /* IP_OPTIONS_SEND */
  91305. /* generate IP header */
  91306. if (pbuf_add_header(p, IP_HLEN)) {
  91307. 8024e02: 2114 movs r1, #20
  91308. 8024e04: 68f8 ldr r0, [r7, #12]
  91309. 8024e06: f7f5 faa9 bl 801a35c <pbuf_add_header>
  91310. 8024e0a: 4603 mov r3, r0
  91311. 8024e0c: 2b00 cmp r3, #0
  91312. 8024e0e: d002 beq.n 8024e16 <ip4_output_if_src+0x46>
  91313. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: not enough room for IP header in pbuf\n"));
  91314. IP_STATS_INC(ip.err);
  91315. MIB2_STATS_INC(mib2.ipoutdiscards);
  91316. return ERR_BUF;
  91317. 8024e10: f06f 0301 mvn.w r3, #1
  91318. 8024e14: e07c b.n 8024f10 <ip4_output_if_src+0x140>
  91319. }
  91320. iphdr = (struct ip_hdr *)p->payload;
  91321. 8024e16: 68fb ldr r3, [r7, #12]
  91322. 8024e18: 685b ldr r3, [r3, #4]
  91323. 8024e1a: 61fb str r3, [r7, #28]
  91324. LWIP_ASSERT("check that first pbuf can hold struct ip_hdr",
  91325. 8024e1c: 68fb ldr r3, [r7, #12]
  91326. 8024e1e: 895b ldrh r3, [r3, #10]
  91327. 8024e20: 2b13 cmp r3, #19
  91328. 8024e22: d806 bhi.n 8024e32 <ip4_output_if_src+0x62>
  91329. 8024e24: 4b3c ldr r3, [pc, #240] @ (8024f18 <ip4_output_if_src+0x148>)
  91330. 8024e26: f44f 7262 mov.w r2, #904 @ 0x388
  91331. 8024e2a: 493e ldr r1, [pc, #248] @ (8024f24 <ip4_output_if_src+0x154>)
  91332. 8024e2c: 483c ldr r0, [pc, #240] @ (8024f20 <ip4_output_if_src+0x150>)
  91333. 8024e2e: f004 fdd5 bl 80299dc <iprintf>
  91334. (p->len >= sizeof(struct ip_hdr)));
  91335. IPH_TTL_SET(iphdr, ttl);
  91336. 8024e32: 69fb ldr r3, [r7, #28]
  91337. 8024e34: 78fa ldrb r2, [r7, #3]
  91338. 8024e36: 721a strb r2, [r3, #8]
  91339. IPH_PROTO_SET(iphdr, proto);
  91340. 8024e38: 69fb ldr r3, [r7, #28]
  91341. 8024e3a: f897 202c ldrb.w r2, [r7, #44] @ 0x2c
  91342. 8024e3e: 725a strb r2, [r3, #9]
  91343. #if CHECKSUM_GEN_IP_INLINE
  91344. chk_sum += PP_NTOHS(proto | (ttl << 8));
  91345. #endif /* CHECKSUM_GEN_IP_INLINE */
  91346. /* dest cannot be NULL here */
  91347. ip4_addr_copy(iphdr->dest, *dest);
  91348. 8024e40: 687b ldr r3, [r7, #4]
  91349. 8024e42: 681a ldr r2, [r3, #0]
  91350. 8024e44: 69fb ldr r3, [r7, #28]
  91351. 8024e46: 611a str r2, [r3, #16]
  91352. #if CHECKSUM_GEN_IP_INLINE
  91353. chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF;
  91354. chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16;
  91355. #endif /* CHECKSUM_GEN_IP_INLINE */
  91356. IPH_VHL_SET(iphdr, 4, ip_hlen / 4);
  91357. 8024e48: 8b7b ldrh r3, [r7, #26]
  91358. 8024e4a: 089b lsrs r3, r3, #2
  91359. 8024e4c: b29b uxth r3, r3
  91360. 8024e4e: b2db uxtb r3, r3
  91361. 8024e50: f043 0340 orr.w r3, r3, #64 @ 0x40
  91362. 8024e54: b2da uxtb r2, r3
  91363. 8024e56: 69fb ldr r3, [r7, #28]
  91364. 8024e58: 701a strb r2, [r3, #0]
  91365. IPH_TOS_SET(iphdr, tos);
  91366. 8024e5a: 69fb ldr r3, [r7, #28]
  91367. 8024e5c: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  91368. 8024e60: 705a strb r2, [r3, #1]
  91369. #if CHECKSUM_GEN_IP_INLINE
  91370. chk_sum += PP_NTOHS(tos | (iphdr->_v_hl << 8));
  91371. #endif /* CHECKSUM_GEN_IP_INLINE */
  91372. IPH_LEN_SET(iphdr, lwip_htons(p->tot_len));
  91373. 8024e62: 68fb ldr r3, [r7, #12]
  91374. 8024e64: 891b ldrh r3, [r3, #8]
  91375. 8024e66: 4618 mov r0, r3
  91376. 8024e68: f7f3 fe5e bl 8018b28 <lwip_htons>
  91377. 8024e6c: 4603 mov r3, r0
  91378. 8024e6e: 461a mov r2, r3
  91379. 8024e70: 69fb ldr r3, [r7, #28]
  91380. 8024e72: 805a strh r2, [r3, #2]
  91381. #if CHECKSUM_GEN_IP_INLINE
  91382. chk_sum += iphdr->_len;
  91383. #endif /* CHECKSUM_GEN_IP_INLINE */
  91384. IPH_OFFSET_SET(iphdr, 0);
  91385. 8024e74: 69fb ldr r3, [r7, #28]
  91386. 8024e76: 2200 movs r2, #0
  91387. 8024e78: 719a strb r2, [r3, #6]
  91388. 8024e7a: 2200 movs r2, #0
  91389. 8024e7c: 71da strb r2, [r3, #7]
  91390. IPH_ID_SET(iphdr, lwip_htons(ip_id));
  91391. 8024e7e: 4b2a ldr r3, [pc, #168] @ (8024f28 <ip4_output_if_src+0x158>)
  91392. 8024e80: 881b ldrh r3, [r3, #0]
  91393. 8024e82: 4618 mov r0, r3
  91394. 8024e84: f7f3 fe50 bl 8018b28 <lwip_htons>
  91395. 8024e88: 4603 mov r3, r0
  91396. 8024e8a: 461a mov r2, r3
  91397. 8024e8c: 69fb ldr r3, [r7, #28]
  91398. 8024e8e: 809a strh r2, [r3, #4]
  91399. #if CHECKSUM_GEN_IP_INLINE
  91400. chk_sum += iphdr->_id;
  91401. #endif /* CHECKSUM_GEN_IP_INLINE */
  91402. ++ip_id;
  91403. 8024e90: 4b25 ldr r3, [pc, #148] @ (8024f28 <ip4_output_if_src+0x158>)
  91404. 8024e92: 881b ldrh r3, [r3, #0]
  91405. 8024e94: 3301 adds r3, #1
  91406. 8024e96: b29a uxth r2, r3
  91407. 8024e98: 4b23 ldr r3, [pc, #140] @ (8024f28 <ip4_output_if_src+0x158>)
  91408. 8024e9a: 801a strh r2, [r3, #0]
  91409. if (src == NULL) {
  91410. 8024e9c: 68bb ldr r3, [r7, #8]
  91411. 8024e9e: 2b00 cmp r3, #0
  91412. 8024ea0: d104 bne.n 8024eac <ip4_output_if_src+0xdc>
  91413. ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4);
  91414. 8024ea2: 4b22 ldr r3, [pc, #136] @ (8024f2c <ip4_output_if_src+0x15c>)
  91415. 8024ea4: 681a ldr r2, [r3, #0]
  91416. 8024ea6: 69fb ldr r3, [r7, #28]
  91417. 8024ea8: 60da str r2, [r3, #12]
  91418. 8024eaa: e003 b.n 8024eb4 <ip4_output_if_src+0xe4>
  91419. } else {
  91420. /* src cannot be NULL here */
  91421. ip4_addr_copy(iphdr->src, *src);
  91422. 8024eac: 68bb ldr r3, [r7, #8]
  91423. 8024eae: 681a ldr r2, [r3, #0]
  91424. 8024eb0: 69fb ldr r3, [r7, #28]
  91425. 8024eb2: 60da str r2, [r3, #12]
  91426. else {
  91427. IPH_CHKSUM_SET(iphdr, 0);
  91428. }
  91429. #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/
  91430. #else /* CHECKSUM_GEN_IP_INLINE */
  91431. IPH_CHKSUM_SET(iphdr, 0);
  91432. 8024eb4: 69fb ldr r3, [r7, #28]
  91433. 8024eb6: 2200 movs r2, #0
  91434. 8024eb8: 729a strb r2, [r3, #10]
  91435. 8024eba: 2200 movs r2, #0
  91436. 8024ebc: 72da strb r2, [r3, #11]
  91437. 8024ebe: e00f b.n 8024ee0 <ip4_output_if_src+0x110>
  91438. }
  91439. #endif /* CHECKSUM_GEN_IP */
  91440. #endif /* CHECKSUM_GEN_IP_INLINE */
  91441. } else {
  91442. /* IP header already included in p */
  91443. if (p->len < IP_HLEN) {
  91444. 8024ec0: 68fb ldr r3, [r7, #12]
  91445. 8024ec2: 895b ldrh r3, [r3, #10]
  91446. 8024ec4: 2b13 cmp r3, #19
  91447. 8024ec6: d802 bhi.n 8024ece <ip4_output_if_src+0xfe>
  91448. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: LWIP_IP_HDRINCL but pbuf is too short\n"));
  91449. IP_STATS_INC(ip.err);
  91450. MIB2_STATS_INC(mib2.ipoutdiscards);
  91451. return ERR_BUF;
  91452. 8024ec8: f06f 0301 mvn.w r3, #1
  91453. 8024ecc: e020 b.n 8024f10 <ip4_output_if_src+0x140>
  91454. }
  91455. iphdr = (struct ip_hdr *)p->payload;
  91456. 8024ece: 68fb ldr r3, [r7, #12]
  91457. 8024ed0: 685b ldr r3, [r3, #4]
  91458. 8024ed2: 61fb str r3, [r7, #28]
  91459. ip4_addr_copy(dest_addr, iphdr->dest);
  91460. 8024ed4: 69fb ldr r3, [r7, #28]
  91461. 8024ed6: 691b ldr r3, [r3, #16]
  91462. 8024ed8: 617b str r3, [r7, #20]
  91463. dest = &dest_addr;
  91464. 8024eda: f107 0314 add.w r3, r7, #20
  91465. 8024ede: 607b str r3, [r7, #4]
  91466. }
  91467. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  91468. #endif /* ENABLE_LOOPBACK */
  91469. #if IP_FRAG
  91470. /* don't fragment if interface has mtu set to 0 [loopif] */
  91471. if (netif->mtu && (p->tot_len > netif->mtu)) {
  91472. 8024ee0: 6b3b ldr r3, [r7, #48] @ 0x30
  91473. 8024ee2: 8d1b ldrh r3, [r3, #40] @ 0x28
  91474. 8024ee4: 2b00 cmp r3, #0
  91475. 8024ee6: d00c beq.n 8024f02 <ip4_output_if_src+0x132>
  91476. 8024ee8: 68fb ldr r3, [r7, #12]
  91477. 8024eea: 891a ldrh r2, [r3, #8]
  91478. 8024eec: 6b3b ldr r3, [r7, #48] @ 0x30
  91479. 8024eee: 8d1b ldrh r3, [r3, #40] @ 0x28
  91480. 8024ef0: 429a cmp r2, r3
  91481. 8024ef2: d906 bls.n 8024f02 <ip4_output_if_src+0x132>
  91482. return ip4_frag(p, netif, dest);
  91483. 8024ef4: 687a ldr r2, [r7, #4]
  91484. 8024ef6: 6b39 ldr r1, [r7, #48] @ 0x30
  91485. 8024ef8: 68f8 ldr r0, [r7, #12]
  91486. 8024efa: f000 ff21 bl 8025d40 <ip4_frag>
  91487. 8024efe: 4603 mov r3, r0
  91488. 8024f00: e006 b.n 8024f10 <ip4_output_if_src+0x140>
  91489. }
  91490. #endif /* IP_FRAG */
  91491. LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n"));
  91492. return netif->output(netif, p, dest);
  91493. 8024f02: 6b3b ldr r3, [r7, #48] @ 0x30
  91494. 8024f04: 695b ldr r3, [r3, #20]
  91495. 8024f06: 687a ldr r2, [r7, #4]
  91496. 8024f08: 68f9 ldr r1, [r7, #12]
  91497. 8024f0a: 6b38 ldr r0, [r7, #48] @ 0x30
  91498. 8024f0c: 4798 blx r3
  91499. 8024f0e: 4603 mov r3, r0
  91500. }
  91501. 8024f10: 4618 mov r0, r3
  91502. 8024f12: 3720 adds r7, #32
  91503. 8024f14: 46bd mov sp, r7
  91504. 8024f16: bd80 pop {r7, pc}
  91505. 8024f18: 080305ac .word 0x080305ac
  91506. 8024f1c: 080305e0 .word 0x080305e0
  91507. 8024f20: 080305ec .word 0x080305ec
  91508. 8024f24: 08030614 .word 0x08030614
  91509. 8024f28: 2402b012 .word 0x2402b012
  91510. 8024f2c: 08030c68 .word 0x08030c68
  91511. 08024f30 <ip4_addr_isbroadcast_u32>:
  91512. * @param netif the network interface against which the address is checked
  91513. * @return returns non-zero if the address is a broadcast address
  91514. */
  91515. u8_t
  91516. ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif)
  91517. {
  91518. 8024f30: b480 push {r7}
  91519. 8024f32: b085 sub sp, #20
  91520. 8024f34: af00 add r7, sp, #0
  91521. 8024f36: 6078 str r0, [r7, #4]
  91522. 8024f38: 6039 str r1, [r7, #0]
  91523. ip4_addr_t ipaddr;
  91524. ip4_addr_set_u32(&ipaddr, addr);
  91525. 8024f3a: 687b ldr r3, [r7, #4]
  91526. 8024f3c: 60fb str r3, [r7, #12]
  91527. /* all ones (broadcast) or all zeroes (old skool broadcast) */
  91528. if ((~addr == IPADDR_ANY) ||
  91529. 8024f3e: 687b ldr r3, [r7, #4]
  91530. 8024f40: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  91531. 8024f44: d002 beq.n 8024f4c <ip4_addr_isbroadcast_u32+0x1c>
  91532. 8024f46: 687b ldr r3, [r7, #4]
  91533. 8024f48: 2b00 cmp r3, #0
  91534. 8024f4a: d101 bne.n 8024f50 <ip4_addr_isbroadcast_u32+0x20>
  91535. (addr == IPADDR_ANY)) {
  91536. return 1;
  91537. 8024f4c: 2301 movs r3, #1
  91538. 8024f4e: e02a b.n 8024fa6 <ip4_addr_isbroadcast_u32+0x76>
  91539. /* no broadcast support on this network interface? */
  91540. } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) {
  91541. 8024f50: 683b ldr r3, [r7, #0]
  91542. 8024f52: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91543. 8024f56: f003 0302 and.w r3, r3, #2
  91544. 8024f5a: 2b00 cmp r3, #0
  91545. 8024f5c: d101 bne.n 8024f62 <ip4_addr_isbroadcast_u32+0x32>
  91546. /* the given address cannot be a broadcast address
  91547. * nor can we check against any broadcast addresses */
  91548. return 0;
  91549. 8024f5e: 2300 movs r3, #0
  91550. 8024f60: e021 b.n 8024fa6 <ip4_addr_isbroadcast_u32+0x76>
  91551. /* address matches network interface address exactly? => no broadcast */
  91552. } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) {
  91553. 8024f62: 683b ldr r3, [r7, #0]
  91554. 8024f64: 3304 adds r3, #4
  91555. 8024f66: 681b ldr r3, [r3, #0]
  91556. 8024f68: 687a ldr r2, [r7, #4]
  91557. 8024f6a: 429a cmp r2, r3
  91558. 8024f6c: d101 bne.n 8024f72 <ip4_addr_isbroadcast_u32+0x42>
  91559. return 0;
  91560. 8024f6e: 2300 movs r3, #0
  91561. 8024f70: e019 b.n 8024fa6 <ip4_addr_isbroadcast_u32+0x76>
  91562. /* on the same (sub) network... */
  91563. } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif))
  91564. 8024f72: 68fa ldr r2, [r7, #12]
  91565. 8024f74: 683b ldr r3, [r7, #0]
  91566. 8024f76: 3304 adds r3, #4
  91567. 8024f78: 681b ldr r3, [r3, #0]
  91568. 8024f7a: 405a eors r2, r3
  91569. 8024f7c: 683b ldr r3, [r7, #0]
  91570. 8024f7e: 3308 adds r3, #8
  91571. 8024f80: 681b ldr r3, [r3, #0]
  91572. 8024f82: 4013 ands r3, r2
  91573. 8024f84: 2b00 cmp r3, #0
  91574. 8024f86: d10d bne.n 8024fa4 <ip4_addr_isbroadcast_u32+0x74>
  91575. /* ...and host identifier bits are all ones? =>... */
  91576. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  91577. 8024f88: 683b ldr r3, [r7, #0]
  91578. 8024f8a: 3308 adds r3, #8
  91579. 8024f8c: 681b ldr r3, [r3, #0]
  91580. 8024f8e: 43da mvns r2, r3
  91581. 8024f90: 687b ldr r3, [r7, #4]
  91582. 8024f92: 401a ands r2, r3
  91583. (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) {
  91584. 8024f94: 683b ldr r3, [r7, #0]
  91585. 8024f96: 3308 adds r3, #8
  91586. 8024f98: 681b ldr r3, [r3, #0]
  91587. 8024f9a: 43db mvns r3, r3
  91588. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  91589. 8024f9c: 429a cmp r2, r3
  91590. 8024f9e: d101 bne.n 8024fa4 <ip4_addr_isbroadcast_u32+0x74>
  91591. /* => network broadcast address */
  91592. return 1;
  91593. 8024fa0: 2301 movs r3, #1
  91594. 8024fa2: e000 b.n 8024fa6 <ip4_addr_isbroadcast_u32+0x76>
  91595. } else {
  91596. return 0;
  91597. 8024fa4: 2300 movs r3, #0
  91598. }
  91599. }
  91600. 8024fa6: 4618 mov r0, r3
  91601. 8024fa8: 3714 adds r7, #20
  91602. 8024faa: 46bd mov sp, r7
  91603. 8024fac: f85d 7b04 ldr.w r7, [sp], #4
  91604. 8024fb0: 4770 bx lr
  91605. 08024fb2 <ipaddr_addr>:
  91606. * @param cp IP address in ascii representation (e.g. "127.0.0.1")
  91607. * @return ip address in network order
  91608. */
  91609. u32_t
  91610. ipaddr_addr(const char *cp)
  91611. {
  91612. 8024fb2: b580 push {r7, lr}
  91613. 8024fb4: b084 sub sp, #16
  91614. 8024fb6: af00 add r7, sp, #0
  91615. 8024fb8: 6078 str r0, [r7, #4]
  91616. ip4_addr_t val;
  91617. if (ip4addr_aton(cp, &val)) {
  91618. 8024fba: f107 030c add.w r3, r7, #12
  91619. 8024fbe: 4619 mov r1, r3
  91620. 8024fc0: 6878 ldr r0, [r7, #4]
  91621. 8024fc2: f000 f80b bl 8024fdc <ip4addr_aton>
  91622. 8024fc6: 4603 mov r3, r0
  91623. 8024fc8: 2b00 cmp r3, #0
  91624. 8024fca: d001 beq.n 8024fd0 <ipaddr_addr+0x1e>
  91625. return ip4_addr_get_u32(&val);
  91626. 8024fcc: 68fb ldr r3, [r7, #12]
  91627. 8024fce: e001 b.n 8024fd4 <ipaddr_addr+0x22>
  91628. }
  91629. return (IPADDR_NONE);
  91630. 8024fd0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  91631. }
  91632. 8024fd4: 4618 mov r0, r3
  91633. 8024fd6: 3710 adds r7, #16
  91634. 8024fd8: 46bd mov sp, r7
  91635. 8024fda: bd80 pop {r7, pc}
  91636. 08024fdc <ip4addr_aton>:
  91637. * @param addr pointer to which to save the ip address in network order
  91638. * @return 1 if cp could be converted to addr, 0 on failure
  91639. */
  91640. int
  91641. ip4addr_aton(const char *cp, ip4_addr_t *addr)
  91642. {
  91643. 8024fdc: b580 push {r7, lr}
  91644. 8024fde: b08a sub sp, #40 @ 0x28
  91645. 8024fe0: af00 add r7, sp, #0
  91646. 8024fe2: 6078 str r0, [r7, #4]
  91647. 8024fe4: 6039 str r1, [r7, #0]
  91648. u32_t val;
  91649. u8_t base;
  91650. char c;
  91651. u32_t parts[4];
  91652. u32_t *pp = parts;
  91653. 8024fe6: f107 030c add.w r3, r7, #12
  91654. 8024fea: 61fb str r3, [r7, #28]
  91655. c = *cp;
  91656. 8024fec: 687b ldr r3, [r7, #4]
  91657. 8024fee: 781b ldrb r3, [r3, #0]
  91658. 8024ff0: f887 3022 strb.w r3, [r7, #34] @ 0x22
  91659. /*
  91660. * Collect number up to ``.''.
  91661. * Values are specified as for C:
  91662. * 0x=hex, 0=octal, 1-9=decimal.
  91663. */
  91664. if (!lwip_isdigit(c)) {
  91665. 8024ff4: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91666. 8024ff8: 3301 adds r3, #1
  91667. 8024ffa: 4a89 ldr r2, [pc, #548] @ (8025220 <ip4addr_aton+0x244>)
  91668. 8024ffc: 4413 add r3, r2
  91669. 8024ffe: 781b ldrb r3, [r3, #0]
  91670. 8025000: f003 0304 and.w r3, r3, #4
  91671. 8025004: 2b00 cmp r3, #0
  91672. 8025006: d101 bne.n 802500c <ip4addr_aton+0x30>
  91673. return 0;
  91674. 8025008: 2300 movs r3, #0
  91675. 802500a: e105 b.n 8025218 <ip4addr_aton+0x23c>
  91676. }
  91677. val = 0;
  91678. 802500c: 2300 movs r3, #0
  91679. 802500e: 627b str r3, [r7, #36] @ 0x24
  91680. base = 10;
  91681. 8025010: 230a movs r3, #10
  91682. 8025012: f887 3023 strb.w r3, [r7, #35] @ 0x23
  91683. if (c == '0') {
  91684. 8025016: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91685. 802501a: 2b30 cmp r3, #48 @ 0x30
  91686. 802501c: d11c bne.n 8025058 <ip4addr_aton+0x7c>
  91687. c = *++cp;
  91688. 802501e: 687b ldr r3, [r7, #4]
  91689. 8025020: 3301 adds r3, #1
  91690. 8025022: 607b str r3, [r7, #4]
  91691. 8025024: 687b ldr r3, [r7, #4]
  91692. 8025026: 781b ldrb r3, [r3, #0]
  91693. 8025028: f887 3022 strb.w r3, [r7, #34] @ 0x22
  91694. if (c == 'x' || c == 'X') {
  91695. 802502c: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91696. 8025030: 2b78 cmp r3, #120 @ 0x78
  91697. 8025032: d003 beq.n 802503c <ip4addr_aton+0x60>
  91698. 8025034: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91699. 8025038: 2b58 cmp r3, #88 @ 0x58
  91700. 802503a: d10a bne.n 8025052 <ip4addr_aton+0x76>
  91701. base = 16;
  91702. 802503c: 2310 movs r3, #16
  91703. 802503e: f887 3023 strb.w r3, [r7, #35] @ 0x23
  91704. c = *++cp;
  91705. 8025042: 687b ldr r3, [r7, #4]
  91706. 8025044: 3301 adds r3, #1
  91707. 8025046: 607b str r3, [r7, #4]
  91708. 8025048: 687b ldr r3, [r7, #4]
  91709. 802504a: 781b ldrb r3, [r3, #0]
  91710. 802504c: f887 3022 strb.w r3, [r7, #34] @ 0x22
  91711. 8025050: e002 b.n 8025058 <ip4addr_aton+0x7c>
  91712. } else {
  91713. base = 8;
  91714. 8025052: 2308 movs r3, #8
  91715. 8025054: f887 3023 strb.w r3, [r7, #35] @ 0x23
  91716. }
  91717. }
  91718. for (;;) {
  91719. if (lwip_isdigit(c)) {
  91720. 8025058: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91721. 802505c: 3301 adds r3, #1
  91722. 802505e: 4a70 ldr r2, [pc, #448] @ (8025220 <ip4addr_aton+0x244>)
  91723. 8025060: 4413 add r3, r2
  91724. 8025062: 781b ldrb r3, [r3, #0]
  91725. 8025064: f003 0304 and.w r3, r3, #4
  91726. 8025068: 2b00 cmp r3, #0
  91727. 802506a: d011 beq.n 8025090 <ip4addr_aton+0xb4>
  91728. val = (val * base) + (u32_t)(c - '0');
  91729. 802506c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  91730. 8025070: 6a7a ldr r2, [r7, #36] @ 0x24
  91731. 8025072: fb03 f202 mul.w r2, r3, r2
  91732. 8025076: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91733. 802507a: 4413 add r3, r2
  91734. 802507c: 3b30 subs r3, #48 @ 0x30
  91735. 802507e: 627b str r3, [r7, #36] @ 0x24
  91736. c = *++cp;
  91737. 8025080: 687b ldr r3, [r7, #4]
  91738. 8025082: 3301 adds r3, #1
  91739. 8025084: 607b str r3, [r7, #4]
  91740. 8025086: 687b ldr r3, [r7, #4]
  91741. 8025088: 781b ldrb r3, [r3, #0]
  91742. 802508a: f887 3022 strb.w r3, [r7, #34] @ 0x22
  91743. 802508e: e7e3 b.n 8025058 <ip4addr_aton+0x7c>
  91744. } else if (base == 16 && lwip_isxdigit(c)) {
  91745. 8025090: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  91746. 8025094: 2b10 cmp r3, #16
  91747. 8025096: d127 bne.n 80250e8 <ip4addr_aton+0x10c>
  91748. 8025098: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91749. 802509c: 3301 adds r3, #1
  91750. 802509e: 4a60 ldr r2, [pc, #384] @ (8025220 <ip4addr_aton+0x244>)
  91751. 80250a0: 4413 add r3, r2
  91752. 80250a2: 781b ldrb r3, [r3, #0]
  91753. 80250a4: f003 0344 and.w r3, r3, #68 @ 0x44
  91754. 80250a8: 2b00 cmp r3, #0
  91755. 80250aa: d01d beq.n 80250e8 <ip4addr_aton+0x10c>
  91756. val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A'));
  91757. 80250ac: 6a7b ldr r3, [r7, #36] @ 0x24
  91758. 80250ae: 011b lsls r3, r3, #4
  91759. 80250b0: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  91760. 80250b4: f102 010a add.w r1, r2, #10
  91761. 80250b8: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  91762. 80250bc: 3201 adds r2, #1
  91763. 80250be: 4858 ldr r0, [pc, #352] @ (8025220 <ip4addr_aton+0x244>)
  91764. 80250c0: 4402 add r2, r0
  91765. 80250c2: 7812 ldrb r2, [r2, #0]
  91766. 80250c4: f002 0203 and.w r2, r2, #3
  91767. 80250c8: 2a02 cmp r2, #2
  91768. 80250ca: d101 bne.n 80250d0 <ip4addr_aton+0xf4>
  91769. 80250cc: 2261 movs r2, #97 @ 0x61
  91770. 80250ce: e000 b.n 80250d2 <ip4addr_aton+0xf6>
  91771. 80250d0: 2241 movs r2, #65 @ 0x41
  91772. 80250d2: 1a8a subs r2, r1, r2
  91773. 80250d4: 4313 orrs r3, r2
  91774. 80250d6: 627b str r3, [r7, #36] @ 0x24
  91775. c = *++cp;
  91776. 80250d8: 687b ldr r3, [r7, #4]
  91777. 80250da: 3301 adds r3, #1
  91778. 80250dc: 607b str r3, [r7, #4]
  91779. 80250de: 687b ldr r3, [r7, #4]
  91780. 80250e0: 781b ldrb r3, [r3, #0]
  91781. 80250e2: f887 3022 strb.w r3, [r7, #34] @ 0x22
  91782. if (lwip_isdigit(c)) {
  91783. 80250e6: e7b7 b.n 8025058 <ip4addr_aton+0x7c>
  91784. } else {
  91785. break;
  91786. }
  91787. }
  91788. if (c == '.') {
  91789. 80250e8: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91790. 80250ec: 2b2e cmp r3, #46 @ 0x2e
  91791. 80250ee: d114 bne.n 802511a <ip4addr_aton+0x13e>
  91792. * Internet format:
  91793. * a.b.c.d
  91794. * a.b.c (with c treated as 16 bits)
  91795. * a.b (with b treated as 24 bits)
  91796. */
  91797. if (pp >= parts + 3) {
  91798. 80250f0: f107 030c add.w r3, r7, #12
  91799. 80250f4: 330c adds r3, #12
  91800. 80250f6: 69fa ldr r2, [r7, #28]
  91801. 80250f8: 429a cmp r2, r3
  91802. 80250fa: d301 bcc.n 8025100 <ip4addr_aton+0x124>
  91803. return 0;
  91804. 80250fc: 2300 movs r3, #0
  91805. 80250fe: e08b b.n 8025218 <ip4addr_aton+0x23c>
  91806. }
  91807. *pp++ = val;
  91808. 8025100: 69fb ldr r3, [r7, #28]
  91809. 8025102: 1d1a adds r2, r3, #4
  91810. 8025104: 61fa str r2, [r7, #28]
  91811. 8025106: 6a7a ldr r2, [r7, #36] @ 0x24
  91812. 8025108: 601a str r2, [r3, #0]
  91813. c = *++cp;
  91814. 802510a: 687b ldr r3, [r7, #4]
  91815. 802510c: 3301 adds r3, #1
  91816. 802510e: 607b str r3, [r7, #4]
  91817. 8025110: 687b ldr r3, [r7, #4]
  91818. 8025112: 781b ldrb r3, [r3, #0]
  91819. 8025114: f887 3022 strb.w r3, [r7, #34] @ 0x22
  91820. if (!lwip_isdigit(c)) {
  91821. 8025118: e76c b.n 8024ff4 <ip4addr_aton+0x18>
  91822. } else {
  91823. break;
  91824. 802511a: bf00 nop
  91825. }
  91826. }
  91827. /*
  91828. * Check for trailing characters.
  91829. */
  91830. if (c != '\0' && !lwip_isspace(c)) {
  91831. 802511c: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91832. 8025120: 2b00 cmp r3, #0
  91833. 8025122: d00b beq.n 802513c <ip4addr_aton+0x160>
  91834. 8025124: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  91835. 8025128: 3301 adds r3, #1
  91836. 802512a: 4a3d ldr r2, [pc, #244] @ (8025220 <ip4addr_aton+0x244>)
  91837. 802512c: 4413 add r3, r2
  91838. 802512e: 781b ldrb r3, [r3, #0]
  91839. 8025130: f003 0308 and.w r3, r3, #8
  91840. 8025134: 2b00 cmp r3, #0
  91841. 8025136: d101 bne.n 802513c <ip4addr_aton+0x160>
  91842. return 0;
  91843. 8025138: 2300 movs r3, #0
  91844. 802513a: e06d b.n 8025218 <ip4addr_aton+0x23c>
  91845. }
  91846. /*
  91847. * Concoct the address according to
  91848. * the number of parts specified.
  91849. */
  91850. switch (pp - parts + 1) {
  91851. 802513c: f107 030c add.w r3, r7, #12
  91852. 8025140: 69fa ldr r2, [r7, #28]
  91853. 8025142: 1ad3 subs r3, r2, r3
  91854. 8025144: 109b asrs r3, r3, #2
  91855. 8025146: 3301 adds r3, #1
  91856. 8025148: 2b04 cmp r3, #4
  91857. 802514a: d853 bhi.n 80251f4 <ip4addr_aton+0x218>
  91858. 802514c: a201 add r2, pc, #4 @ (adr r2, 8025154 <ip4addr_aton+0x178>)
  91859. 802514e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  91860. 8025152: bf00 nop
  91861. 8025154: 08025169 .word 0x08025169
  91862. 8025158: 08025203 .word 0x08025203
  91863. 802515c: 0802516d .word 0x0802516d
  91864. 8025160: 0802518f .word 0x0802518f
  91865. 8025164: 080251bd .word 0x080251bd
  91866. case 0:
  91867. return 0; /* initial nondigit */
  91868. 8025168: 2300 movs r3, #0
  91869. 802516a: e055 b.n 8025218 <ip4addr_aton+0x23c>
  91870. case 1: /* a -- 32 bits */
  91871. break;
  91872. case 2: /* a.b -- 8.24 bits */
  91873. if (val > 0xffffffUL) {
  91874. 802516c: 6a7b ldr r3, [r7, #36] @ 0x24
  91875. 802516e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  91876. 8025172: d301 bcc.n 8025178 <ip4addr_aton+0x19c>
  91877. return 0;
  91878. 8025174: 2300 movs r3, #0
  91879. 8025176: e04f b.n 8025218 <ip4addr_aton+0x23c>
  91880. }
  91881. if (parts[0] > 0xff) {
  91882. 8025178: 68fb ldr r3, [r7, #12]
  91883. 802517a: 2bff cmp r3, #255 @ 0xff
  91884. 802517c: d901 bls.n 8025182 <ip4addr_aton+0x1a6>
  91885. return 0;
  91886. 802517e: 2300 movs r3, #0
  91887. 8025180: e04a b.n 8025218 <ip4addr_aton+0x23c>
  91888. }
  91889. val |= parts[0] << 24;
  91890. 8025182: 68fb ldr r3, [r7, #12]
  91891. 8025184: 061b lsls r3, r3, #24
  91892. 8025186: 6a7a ldr r2, [r7, #36] @ 0x24
  91893. 8025188: 4313 orrs r3, r2
  91894. 802518a: 627b str r3, [r7, #36] @ 0x24
  91895. break;
  91896. 802518c: e03a b.n 8025204 <ip4addr_aton+0x228>
  91897. case 3: /* a.b.c -- 8.8.16 bits */
  91898. if (val > 0xffff) {
  91899. 802518e: 6a7b ldr r3, [r7, #36] @ 0x24
  91900. 8025190: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  91901. 8025194: d301 bcc.n 802519a <ip4addr_aton+0x1be>
  91902. return 0;
  91903. 8025196: 2300 movs r3, #0
  91904. 8025198: e03e b.n 8025218 <ip4addr_aton+0x23c>
  91905. }
  91906. if ((parts[0] > 0xff) || (parts[1] > 0xff)) {
  91907. 802519a: 68fb ldr r3, [r7, #12]
  91908. 802519c: 2bff cmp r3, #255 @ 0xff
  91909. 802519e: d802 bhi.n 80251a6 <ip4addr_aton+0x1ca>
  91910. 80251a0: 693b ldr r3, [r7, #16]
  91911. 80251a2: 2bff cmp r3, #255 @ 0xff
  91912. 80251a4: d901 bls.n 80251aa <ip4addr_aton+0x1ce>
  91913. return 0;
  91914. 80251a6: 2300 movs r3, #0
  91915. 80251a8: e036 b.n 8025218 <ip4addr_aton+0x23c>
  91916. }
  91917. val |= (parts[0] << 24) | (parts[1] << 16);
  91918. 80251aa: 68fb ldr r3, [r7, #12]
  91919. 80251ac: 061a lsls r2, r3, #24
  91920. 80251ae: 693b ldr r3, [r7, #16]
  91921. 80251b0: 041b lsls r3, r3, #16
  91922. 80251b2: 4313 orrs r3, r2
  91923. 80251b4: 6a7a ldr r2, [r7, #36] @ 0x24
  91924. 80251b6: 4313 orrs r3, r2
  91925. 80251b8: 627b str r3, [r7, #36] @ 0x24
  91926. break;
  91927. 80251ba: e023 b.n 8025204 <ip4addr_aton+0x228>
  91928. case 4: /* a.b.c.d -- 8.8.8.8 bits */
  91929. if (val > 0xff) {
  91930. 80251bc: 6a7b ldr r3, [r7, #36] @ 0x24
  91931. 80251be: 2bff cmp r3, #255 @ 0xff
  91932. 80251c0: d901 bls.n 80251c6 <ip4addr_aton+0x1ea>
  91933. return 0;
  91934. 80251c2: 2300 movs r3, #0
  91935. 80251c4: e028 b.n 8025218 <ip4addr_aton+0x23c>
  91936. }
  91937. if ((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) {
  91938. 80251c6: 68fb ldr r3, [r7, #12]
  91939. 80251c8: 2bff cmp r3, #255 @ 0xff
  91940. 80251ca: d805 bhi.n 80251d8 <ip4addr_aton+0x1fc>
  91941. 80251cc: 693b ldr r3, [r7, #16]
  91942. 80251ce: 2bff cmp r3, #255 @ 0xff
  91943. 80251d0: d802 bhi.n 80251d8 <ip4addr_aton+0x1fc>
  91944. 80251d2: 697b ldr r3, [r7, #20]
  91945. 80251d4: 2bff cmp r3, #255 @ 0xff
  91946. 80251d6: d901 bls.n 80251dc <ip4addr_aton+0x200>
  91947. return 0;
  91948. 80251d8: 2300 movs r3, #0
  91949. 80251da: e01d b.n 8025218 <ip4addr_aton+0x23c>
  91950. }
  91951. val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
  91952. 80251dc: 68fb ldr r3, [r7, #12]
  91953. 80251de: 061a lsls r2, r3, #24
  91954. 80251e0: 693b ldr r3, [r7, #16]
  91955. 80251e2: 041b lsls r3, r3, #16
  91956. 80251e4: 431a orrs r2, r3
  91957. 80251e6: 697b ldr r3, [r7, #20]
  91958. 80251e8: 021b lsls r3, r3, #8
  91959. 80251ea: 4313 orrs r3, r2
  91960. 80251ec: 6a7a ldr r2, [r7, #36] @ 0x24
  91961. 80251ee: 4313 orrs r3, r2
  91962. 80251f0: 627b str r3, [r7, #36] @ 0x24
  91963. break;
  91964. 80251f2: e007 b.n 8025204 <ip4addr_aton+0x228>
  91965. default:
  91966. LWIP_ASSERT("unhandled", 0);
  91967. 80251f4: 4b0b ldr r3, [pc, #44] @ (8025224 <ip4addr_aton+0x248>)
  91968. 80251f6: 22f9 movs r2, #249 @ 0xf9
  91969. 80251f8: 490b ldr r1, [pc, #44] @ (8025228 <ip4addr_aton+0x24c>)
  91970. 80251fa: 480c ldr r0, [pc, #48] @ (802522c <ip4addr_aton+0x250>)
  91971. 80251fc: f004 fbee bl 80299dc <iprintf>
  91972. break;
  91973. 8025200: e000 b.n 8025204 <ip4addr_aton+0x228>
  91974. break;
  91975. 8025202: bf00 nop
  91976. }
  91977. if (addr) {
  91978. 8025204: 683b ldr r3, [r7, #0]
  91979. 8025206: 2b00 cmp r3, #0
  91980. 8025208: d005 beq.n 8025216 <ip4addr_aton+0x23a>
  91981. ip4_addr_set_u32(addr, lwip_htonl(val));
  91982. 802520a: 6a78 ldr r0, [r7, #36] @ 0x24
  91983. 802520c: f7f3 fca1 bl 8018b52 <lwip_htonl>
  91984. 8025210: 4602 mov r2, r0
  91985. 8025212: 683b ldr r3, [r7, #0]
  91986. 8025214: 601a str r2, [r3, #0]
  91987. }
  91988. return 1;
  91989. 8025216: 2301 movs r3, #1
  91990. }
  91991. 8025218: 4618 mov r0, r3
  91992. 802521a: 3728 adds r7, #40 @ 0x28
  91993. 802521c: 46bd mov sp, r7
  91994. 802521e: bd80 pop {r7, pc}
  91995. 8025220: 08030d40 .word 0x08030d40
  91996. 8025224: 08030644 .word 0x08030644
  91997. 8025228: 08030680 .word 0x08030680
  91998. 802522c: 0803068c .word 0x0803068c
  91999. 08025230 <ip4addr_ntoa>:
  92000. * @return pointer to a global static (!) buffer that holds the ASCII
  92001. * representation of addr
  92002. */
  92003. char *
  92004. ip4addr_ntoa(const ip4_addr_t *addr)
  92005. {
  92006. 8025230: b580 push {r7, lr}
  92007. 8025232: b082 sub sp, #8
  92008. 8025234: af00 add r7, sp, #0
  92009. 8025236: 6078 str r0, [r7, #4]
  92010. static char str[IP4ADDR_STRLEN_MAX];
  92011. return ip4addr_ntoa_r(addr, str, IP4ADDR_STRLEN_MAX);
  92012. 8025238: 2210 movs r2, #16
  92013. 802523a: 4904 ldr r1, [pc, #16] @ (802524c <ip4addr_ntoa+0x1c>)
  92014. 802523c: 6878 ldr r0, [r7, #4]
  92015. 802523e: f000 f807 bl 8025250 <ip4addr_ntoa_r>
  92016. 8025242: 4603 mov r3, r0
  92017. }
  92018. 8025244: 4618 mov r0, r3
  92019. 8025246: 3708 adds r7, #8
  92020. 8025248: 46bd mov sp, r7
  92021. 802524a: bd80 pop {r7, pc}
  92022. 802524c: 2402b014 .word 0x2402b014
  92023. 08025250 <ip4addr_ntoa_r>:
  92024. * @return either pointer to buf which now holds the ASCII
  92025. * representation of addr or NULL if buf was too small
  92026. */
  92027. char *
  92028. ip4addr_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen)
  92029. {
  92030. 8025250: b480 push {r7}
  92031. 8025252: b08d sub sp, #52 @ 0x34
  92032. 8025254: af00 add r7, sp, #0
  92033. 8025256: 60f8 str r0, [r7, #12]
  92034. 8025258: 60b9 str r1, [r7, #8]
  92035. 802525a: 607a str r2, [r7, #4]
  92036. char *rp;
  92037. u8_t *ap;
  92038. u8_t rem;
  92039. u8_t n;
  92040. u8_t i;
  92041. int len = 0;
  92042. 802525c: 2300 movs r3, #0
  92043. 802525e: 623b str r3, [r7, #32]
  92044. s_addr = ip4_addr_get_u32(addr);
  92045. 8025260: 68fb ldr r3, [r7, #12]
  92046. 8025262: 681b ldr r3, [r3, #0]
  92047. 8025264: 61bb str r3, [r7, #24]
  92048. rp = buf;
  92049. 8025266: 68bb ldr r3, [r7, #8]
  92050. 8025268: 62fb str r3, [r7, #44] @ 0x2c
  92051. ap = (u8_t *)&s_addr;
  92052. 802526a: f107 0318 add.w r3, r7, #24
  92053. 802526e: 62bb str r3, [r7, #40] @ 0x28
  92054. for (n = 0; n < 4; n++) {
  92055. 8025270: 2300 movs r3, #0
  92056. 8025272: f887 3027 strb.w r3, [r7, #39] @ 0x27
  92057. 8025276: e058 b.n 802532a <ip4addr_ntoa_r+0xda>
  92058. i = 0;
  92059. 8025278: 2300 movs r3, #0
  92060. 802527a: f887 3026 strb.w r3, [r7, #38] @ 0x26
  92061. do {
  92062. rem = *ap % (u8_t)10;
  92063. 802527e: 6abb ldr r3, [r7, #40] @ 0x28
  92064. 8025280: 781a ldrb r2, [r3, #0]
  92065. 8025282: 4b32 ldr r3, [pc, #200] @ (802534c <ip4addr_ntoa_r+0xfc>)
  92066. 8025284: fba3 1302 umull r1, r3, r3, r2
  92067. 8025288: 08d9 lsrs r1, r3, #3
  92068. 802528a: 460b mov r3, r1
  92069. 802528c: 009b lsls r3, r3, #2
  92070. 802528e: 440b add r3, r1
  92071. 8025290: 005b lsls r3, r3, #1
  92072. 8025292: 1ad3 subs r3, r2, r3
  92073. 8025294: 77fb strb r3, [r7, #31]
  92074. *ap /= (u8_t)10;
  92075. 8025296: 6abb ldr r3, [r7, #40] @ 0x28
  92076. 8025298: 781b ldrb r3, [r3, #0]
  92077. 802529a: 4a2c ldr r2, [pc, #176] @ (802534c <ip4addr_ntoa_r+0xfc>)
  92078. 802529c: fba2 2303 umull r2, r3, r2, r3
  92079. 80252a0: 08db lsrs r3, r3, #3
  92080. 80252a2: b2da uxtb r2, r3
  92081. 80252a4: 6abb ldr r3, [r7, #40] @ 0x28
  92082. 80252a6: 701a strb r2, [r3, #0]
  92083. inv[i++] = (char)('0' + rem);
  92084. 80252a8: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  92085. 80252ac: 1c5a adds r2, r3, #1
  92086. 80252ae: f887 2026 strb.w r2, [r7, #38] @ 0x26
  92087. 80252b2: 4619 mov r1, r3
  92088. 80252b4: 7ffb ldrb r3, [r7, #31]
  92089. 80252b6: 3330 adds r3, #48 @ 0x30
  92090. 80252b8: b2da uxtb r2, r3
  92091. 80252ba: f101 0330 add.w r3, r1, #48 @ 0x30
  92092. 80252be: 443b add r3, r7
  92093. 80252c0: f803 2c1c strb.w r2, [r3, #-28]
  92094. } while (*ap);
  92095. 80252c4: 6abb ldr r3, [r7, #40] @ 0x28
  92096. 80252c6: 781b ldrb r3, [r3, #0]
  92097. 80252c8: 2b00 cmp r3, #0
  92098. 80252ca: d1d8 bne.n 802527e <ip4addr_ntoa_r+0x2e>
  92099. while (i--) {
  92100. 80252cc: e011 b.n 80252f2 <ip4addr_ntoa_r+0xa2>
  92101. if (len++ >= buflen) {
  92102. 80252ce: 6a3b ldr r3, [r7, #32]
  92103. 80252d0: 1c5a adds r2, r3, #1
  92104. 80252d2: 623a str r2, [r7, #32]
  92105. 80252d4: 687a ldr r2, [r7, #4]
  92106. 80252d6: 429a cmp r2, r3
  92107. 80252d8: dc01 bgt.n 80252de <ip4addr_ntoa_r+0x8e>
  92108. return NULL;
  92109. 80252da: 2300 movs r3, #0
  92110. 80252dc: e030 b.n 8025340 <ip4addr_ntoa_r+0xf0>
  92111. }
  92112. *rp++ = inv[i];
  92113. 80252de: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  92114. 80252e2: 6afb ldr r3, [r7, #44] @ 0x2c
  92115. 80252e4: 1c59 adds r1, r3, #1
  92116. 80252e6: 62f9 str r1, [r7, #44] @ 0x2c
  92117. 80252e8: 3230 adds r2, #48 @ 0x30
  92118. 80252ea: 443a add r2, r7
  92119. 80252ec: f812 2c1c ldrb.w r2, [r2, #-28]
  92120. 80252f0: 701a strb r2, [r3, #0]
  92121. while (i--) {
  92122. 80252f2: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  92123. 80252f6: 1e5a subs r2, r3, #1
  92124. 80252f8: f887 2026 strb.w r2, [r7, #38] @ 0x26
  92125. 80252fc: 2b00 cmp r3, #0
  92126. 80252fe: d1e6 bne.n 80252ce <ip4addr_ntoa_r+0x7e>
  92127. }
  92128. if (len++ >= buflen) {
  92129. 8025300: 6a3b ldr r3, [r7, #32]
  92130. 8025302: 1c5a adds r2, r3, #1
  92131. 8025304: 623a str r2, [r7, #32]
  92132. 8025306: 687a ldr r2, [r7, #4]
  92133. 8025308: 429a cmp r2, r3
  92134. 802530a: dc01 bgt.n 8025310 <ip4addr_ntoa_r+0xc0>
  92135. return NULL;
  92136. 802530c: 2300 movs r3, #0
  92137. 802530e: e017 b.n 8025340 <ip4addr_ntoa_r+0xf0>
  92138. }
  92139. *rp++ = '.';
  92140. 8025310: 6afb ldr r3, [r7, #44] @ 0x2c
  92141. 8025312: 1c5a adds r2, r3, #1
  92142. 8025314: 62fa str r2, [r7, #44] @ 0x2c
  92143. 8025316: 222e movs r2, #46 @ 0x2e
  92144. 8025318: 701a strb r2, [r3, #0]
  92145. ap++;
  92146. 802531a: 6abb ldr r3, [r7, #40] @ 0x28
  92147. 802531c: 3301 adds r3, #1
  92148. 802531e: 62bb str r3, [r7, #40] @ 0x28
  92149. for (n = 0; n < 4; n++) {
  92150. 8025320: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  92151. 8025324: 3301 adds r3, #1
  92152. 8025326: f887 3027 strb.w r3, [r7, #39] @ 0x27
  92153. 802532a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  92154. 802532e: 2b03 cmp r3, #3
  92155. 8025330: d9a2 bls.n 8025278 <ip4addr_ntoa_r+0x28>
  92156. }
  92157. *--rp = 0;
  92158. 8025332: 6afb ldr r3, [r7, #44] @ 0x2c
  92159. 8025334: 3b01 subs r3, #1
  92160. 8025336: 62fb str r3, [r7, #44] @ 0x2c
  92161. 8025338: 6afb ldr r3, [r7, #44] @ 0x2c
  92162. 802533a: 2200 movs r2, #0
  92163. 802533c: 701a strb r2, [r3, #0]
  92164. return buf;
  92165. 802533e: 68bb ldr r3, [r7, #8]
  92166. }
  92167. 8025340: 4618 mov r0, r3
  92168. 8025342: 3734 adds r7, #52 @ 0x34
  92169. 8025344: 46bd mov sp, r7
  92170. 8025346: f85d 7b04 ldr.w r7, [sp], #4
  92171. 802534a: 4770 bx lr
  92172. 802534c: cccccccd .word 0xcccccccd
  92173. 08025350 <ip_reass_tmr>:
  92174. *
  92175. * Should be called every 1000 msec (defined by IP_TMR_INTERVAL).
  92176. */
  92177. void
  92178. ip_reass_tmr(void)
  92179. {
  92180. 8025350: b580 push {r7, lr}
  92181. 8025352: b084 sub sp, #16
  92182. 8025354: af00 add r7, sp, #0
  92183. struct ip_reassdata *r, *prev = NULL;
  92184. 8025356: 2300 movs r3, #0
  92185. 8025358: 60bb str r3, [r7, #8]
  92186. r = reassdatagrams;
  92187. 802535a: 4b12 ldr r3, [pc, #72] @ (80253a4 <ip_reass_tmr+0x54>)
  92188. 802535c: 681b ldr r3, [r3, #0]
  92189. 802535e: 60fb str r3, [r7, #12]
  92190. while (r != NULL) {
  92191. 8025360: e018 b.n 8025394 <ip_reass_tmr+0x44>
  92192. /* Decrement the timer. Once it reaches 0,
  92193. * clean up the incomplete fragment assembly */
  92194. if (r->timer > 0) {
  92195. 8025362: 68fb ldr r3, [r7, #12]
  92196. 8025364: 7fdb ldrb r3, [r3, #31]
  92197. 8025366: 2b00 cmp r3, #0
  92198. 8025368: d00b beq.n 8025382 <ip_reass_tmr+0x32>
  92199. r->timer--;
  92200. 802536a: 68fb ldr r3, [r7, #12]
  92201. 802536c: 7fdb ldrb r3, [r3, #31]
  92202. 802536e: 3b01 subs r3, #1
  92203. 8025370: b2da uxtb r2, r3
  92204. 8025372: 68fb ldr r3, [r7, #12]
  92205. 8025374: 77da strb r2, [r3, #31]
  92206. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer));
  92207. prev = r;
  92208. 8025376: 68fb ldr r3, [r7, #12]
  92209. 8025378: 60bb str r3, [r7, #8]
  92210. r = r->next;
  92211. 802537a: 68fb ldr r3, [r7, #12]
  92212. 802537c: 681b ldr r3, [r3, #0]
  92213. 802537e: 60fb str r3, [r7, #12]
  92214. 8025380: e008 b.n 8025394 <ip_reass_tmr+0x44>
  92215. } else {
  92216. /* reassembly timed out */
  92217. struct ip_reassdata *tmp;
  92218. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n"));
  92219. tmp = r;
  92220. 8025382: 68fb ldr r3, [r7, #12]
  92221. 8025384: 607b str r3, [r7, #4]
  92222. /* get the next pointer before freeing */
  92223. r = r->next;
  92224. 8025386: 68fb ldr r3, [r7, #12]
  92225. 8025388: 681b ldr r3, [r3, #0]
  92226. 802538a: 60fb str r3, [r7, #12]
  92227. /* free the helper struct and all enqueued pbufs */
  92228. ip_reass_free_complete_datagram(tmp, prev);
  92229. 802538c: 68b9 ldr r1, [r7, #8]
  92230. 802538e: 6878 ldr r0, [r7, #4]
  92231. 8025390: f000 f80a bl 80253a8 <ip_reass_free_complete_datagram>
  92232. while (r != NULL) {
  92233. 8025394: 68fb ldr r3, [r7, #12]
  92234. 8025396: 2b00 cmp r3, #0
  92235. 8025398: d1e3 bne.n 8025362 <ip_reass_tmr+0x12>
  92236. }
  92237. }
  92238. }
  92239. 802539a: bf00 nop
  92240. 802539c: bf00 nop
  92241. 802539e: 3710 adds r7, #16
  92242. 80253a0: 46bd mov sp, r7
  92243. 80253a2: bd80 pop {r7, pc}
  92244. 80253a4: 2402b024 .word 0x2402b024
  92245. 080253a8 <ip_reass_free_complete_datagram>:
  92246. * @param prev the previous datagram in the linked list
  92247. * @return the number of pbufs freed
  92248. */
  92249. static int
  92250. ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  92251. {
  92252. 80253a8: b580 push {r7, lr}
  92253. 80253aa: b088 sub sp, #32
  92254. 80253ac: af00 add r7, sp, #0
  92255. 80253ae: 6078 str r0, [r7, #4]
  92256. 80253b0: 6039 str r1, [r7, #0]
  92257. u16_t pbufs_freed = 0;
  92258. 80253b2: 2300 movs r3, #0
  92259. 80253b4: 83fb strh r3, [r7, #30]
  92260. u16_t clen;
  92261. struct pbuf *p;
  92262. struct ip_reass_helper *iprh;
  92263. LWIP_ASSERT("prev != ipr", prev != ipr);
  92264. 80253b6: 683a ldr r2, [r7, #0]
  92265. 80253b8: 687b ldr r3, [r7, #4]
  92266. 80253ba: 429a cmp r2, r3
  92267. 80253bc: d105 bne.n 80253ca <ip_reass_free_complete_datagram+0x22>
  92268. 80253be: 4b45 ldr r3, [pc, #276] @ (80254d4 <ip_reass_free_complete_datagram+0x12c>)
  92269. 80253c0: 22ab movs r2, #171 @ 0xab
  92270. 80253c2: 4945 ldr r1, [pc, #276] @ (80254d8 <ip_reass_free_complete_datagram+0x130>)
  92271. 80253c4: 4845 ldr r0, [pc, #276] @ (80254dc <ip_reass_free_complete_datagram+0x134>)
  92272. 80253c6: f004 fb09 bl 80299dc <iprintf>
  92273. if (prev != NULL) {
  92274. 80253ca: 683b ldr r3, [r7, #0]
  92275. 80253cc: 2b00 cmp r3, #0
  92276. 80253ce: d00a beq.n 80253e6 <ip_reass_free_complete_datagram+0x3e>
  92277. LWIP_ASSERT("prev->next == ipr", prev->next == ipr);
  92278. 80253d0: 683b ldr r3, [r7, #0]
  92279. 80253d2: 681b ldr r3, [r3, #0]
  92280. 80253d4: 687a ldr r2, [r7, #4]
  92281. 80253d6: 429a cmp r2, r3
  92282. 80253d8: d005 beq.n 80253e6 <ip_reass_free_complete_datagram+0x3e>
  92283. 80253da: 4b3e ldr r3, [pc, #248] @ (80254d4 <ip_reass_free_complete_datagram+0x12c>)
  92284. 80253dc: 22ad movs r2, #173 @ 0xad
  92285. 80253de: 4940 ldr r1, [pc, #256] @ (80254e0 <ip_reass_free_complete_datagram+0x138>)
  92286. 80253e0: 483e ldr r0, [pc, #248] @ (80254dc <ip_reass_free_complete_datagram+0x134>)
  92287. 80253e2: f004 fafb bl 80299dc <iprintf>
  92288. }
  92289. MIB2_STATS_INC(mib2.ipreasmfails);
  92290. #if LWIP_ICMP
  92291. iprh = (struct ip_reass_helper *)ipr->p->payload;
  92292. 80253e6: 687b ldr r3, [r7, #4]
  92293. 80253e8: 685b ldr r3, [r3, #4]
  92294. 80253ea: 685b ldr r3, [r3, #4]
  92295. 80253ec: 617b str r3, [r7, #20]
  92296. if (iprh->start == 0) {
  92297. 80253ee: 697b ldr r3, [r7, #20]
  92298. 80253f0: 889b ldrh r3, [r3, #4]
  92299. 80253f2: b29b uxth r3, r3
  92300. 80253f4: 2b00 cmp r3, #0
  92301. 80253f6: d12a bne.n 802544e <ip_reass_free_complete_datagram+0xa6>
  92302. /* The first fragment was received, send ICMP time exceeded. */
  92303. /* First, de-queue the first pbuf from r->p. */
  92304. p = ipr->p;
  92305. 80253f8: 687b ldr r3, [r7, #4]
  92306. 80253fa: 685b ldr r3, [r3, #4]
  92307. 80253fc: 61bb str r3, [r7, #24]
  92308. ipr->p = iprh->next_pbuf;
  92309. 80253fe: 697b ldr r3, [r7, #20]
  92310. 8025400: 681a ldr r2, [r3, #0]
  92311. 8025402: 687b ldr r3, [r7, #4]
  92312. 8025404: 605a str r2, [r3, #4]
  92313. /* Then, copy the original header into it. */
  92314. SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
  92315. 8025406: 69bb ldr r3, [r7, #24]
  92316. 8025408: 6858 ldr r0, [r3, #4]
  92317. 802540a: 687b ldr r3, [r7, #4]
  92318. 802540c: 3308 adds r3, #8
  92319. 802540e: 2214 movs r2, #20
  92320. 8025410: 4619 mov r1, r3
  92321. 8025412: f004 fd6c bl 8029eee <memcpy>
  92322. icmp_time_exceeded(p, ICMP_TE_FRAG);
  92323. 8025416: 2101 movs r1, #1
  92324. 8025418: 69b8 ldr r0, [r7, #24]
  92325. 802541a: f7ff fa4d bl 80248b8 <icmp_time_exceeded>
  92326. clen = pbuf_clen(p);
  92327. 802541e: 69b8 ldr r0, [r7, #24]
  92328. 8025420: f7f5 f8f2 bl 801a608 <pbuf_clen>
  92329. 8025424: 4603 mov r3, r0
  92330. 8025426: 827b strh r3, [r7, #18]
  92331. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  92332. 8025428: 8bfa ldrh r2, [r7, #30]
  92333. 802542a: 8a7b ldrh r3, [r7, #18]
  92334. 802542c: 4413 add r3, r2
  92335. 802542e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  92336. 8025432: db05 blt.n 8025440 <ip_reass_free_complete_datagram+0x98>
  92337. 8025434: 4b27 ldr r3, [pc, #156] @ (80254d4 <ip_reass_free_complete_datagram+0x12c>)
  92338. 8025436: 22bc movs r2, #188 @ 0xbc
  92339. 8025438: 492a ldr r1, [pc, #168] @ (80254e4 <ip_reass_free_complete_datagram+0x13c>)
  92340. 802543a: 4828 ldr r0, [pc, #160] @ (80254dc <ip_reass_free_complete_datagram+0x134>)
  92341. 802543c: f004 face bl 80299dc <iprintf>
  92342. pbufs_freed = (u16_t)(pbufs_freed + clen);
  92343. 8025440: 8bfa ldrh r2, [r7, #30]
  92344. 8025442: 8a7b ldrh r3, [r7, #18]
  92345. 8025444: 4413 add r3, r2
  92346. 8025446: 83fb strh r3, [r7, #30]
  92347. pbuf_free(p);
  92348. 8025448: 69b8 ldr r0, [r7, #24]
  92349. 802544a: f7f5 f84f bl 801a4ec <pbuf_free>
  92350. }
  92351. #endif /* LWIP_ICMP */
  92352. /* First, free all received pbufs. The individual pbufs need to be released
  92353. separately as they have not yet been chained */
  92354. p = ipr->p;
  92355. 802544e: 687b ldr r3, [r7, #4]
  92356. 8025450: 685b ldr r3, [r3, #4]
  92357. 8025452: 61bb str r3, [r7, #24]
  92358. while (p != NULL) {
  92359. 8025454: e01f b.n 8025496 <ip_reass_free_complete_datagram+0xee>
  92360. struct pbuf *pcur;
  92361. iprh = (struct ip_reass_helper *)p->payload;
  92362. 8025456: 69bb ldr r3, [r7, #24]
  92363. 8025458: 685b ldr r3, [r3, #4]
  92364. 802545a: 617b str r3, [r7, #20]
  92365. pcur = p;
  92366. 802545c: 69bb ldr r3, [r7, #24]
  92367. 802545e: 60fb str r3, [r7, #12]
  92368. /* get the next pointer before freeing */
  92369. p = iprh->next_pbuf;
  92370. 8025460: 697b ldr r3, [r7, #20]
  92371. 8025462: 681b ldr r3, [r3, #0]
  92372. 8025464: 61bb str r3, [r7, #24]
  92373. clen = pbuf_clen(pcur);
  92374. 8025466: 68f8 ldr r0, [r7, #12]
  92375. 8025468: f7f5 f8ce bl 801a608 <pbuf_clen>
  92376. 802546c: 4603 mov r3, r0
  92377. 802546e: 827b strh r3, [r7, #18]
  92378. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  92379. 8025470: 8bfa ldrh r2, [r7, #30]
  92380. 8025472: 8a7b ldrh r3, [r7, #18]
  92381. 8025474: 4413 add r3, r2
  92382. 8025476: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  92383. 802547a: db05 blt.n 8025488 <ip_reass_free_complete_datagram+0xe0>
  92384. 802547c: 4b15 ldr r3, [pc, #84] @ (80254d4 <ip_reass_free_complete_datagram+0x12c>)
  92385. 802547e: 22cc movs r2, #204 @ 0xcc
  92386. 8025480: 4918 ldr r1, [pc, #96] @ (80254e4 <ip_reass_free_complete_datagram+0x13c>)
  92387. 8025482: 4816 ldr r0, [pc, #88] @ (80254dc <ip_reass_free_complete_datagram+0x134>)
  92388. 8025484: f004 faaa bl 80299dc <iprintf>
  92389. pbufs_freed = (u16_t)(pbufs_freed + clen);
  92390. 8025488: 8bfa ldrh r2, [r7, #30]
  92391. 802548a: 8a7b ldrh r3, [r7, #18]
  92392. 802548c: 4413 add r3, r2
  92393. 802548e: 83fb strh r3, [r7, #30]
  92394. pbuf_free(pcur);
  92395. 8025490: 68f8 ldr r0, [r7, #12]
  92396. 8025492: f7f5 f82b bl 801a4ec <pbuf_free>
  92397. while (p != NULL) {
  92398. 8025496: 69bb ldr r3, [r7, #24]
  92399. 8025498: 2b00 cmp r3, #0
  92400. 802549a: d1dc bne.n 8025456 <ip_reass_free_complete_datagram+0xae>
  92401. }
  92402. /* Then, unchain the struct ip_reassdata from the list and free it. */
  92403. ip_reass_dequeue_datagram(ipr, prev);
  92404. 802549c: 6839 ldr r1, [r7, #0]
  92405. 802549e: 6878 ldr r0, [r7, #4]
  92406. 80254a0: f000 f8c2 bl 8025628 <ip_reass_dequeue_datagram>
  92407. LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed);
  92408. 80254a4: 4b10 ldr r3, [pc, #64] @ (80254e8 <ip_reass_free_complete_datagram+0x140>)
  92409. 80254a6: 881b ldrh r3, [r3, #0]
  92410. 80254a8: 8bfa ldrh r2, [r7, #30]
  92411. 80254aa: 429a cmp r2, r3
  92412. 80254ac: d905 bls.n 80254ba <ip_reass_free_complete_datagram+0x112>
  92413. 80254ae: 4b09 ldr r3, [pc, #36] @ (80254d4 <ip_reass_free_complete_datagram+0x12c>)
  92414. 80254b0: 22d2 movs r2, #210 @ 0xd2
  92415. 80254b2: 490e ldr r1, [pc, #56] @ (80254ec <ip_reass_free_complete_datagram+0x144>)
  92416. 80254b4: 4809 ldr r0, [pc, #36] @ (80254dc <ip_reass_free_complete_datagram+0x134>)
  92417. 80254b6: f004 fa91 bl 80299dc <iprintf>
  92418. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed);
  92419. 80254ba: 4b0b ldr r3, [pc, #44] @ (80254e8 <ip_reass_free_complete_datagram+0x140>)
  92420. 80254bc: 881a ldrh r2, [r3, #0]
  92421. 80254be: 8bfb ldrh r3, [r7, #30]
  92422. 80254c0: 1ad3 subs r3, r2, r3
  92423. 80254c2: b29a uxth r2, r3
  92424. 80254c4: 4b08 ldr r3, [pc, #32] @ (80254e8 <ip_reass_free_complete_datagram+0x140>)
  92425. 80254c6: 801a strh r2, [r3, #0]
  92426. return pbufs_freed;
  92427. 80254c8: 8bfb ldrh r3, [r7, #30]
  92428. }
  92429. 80254ca: 4618 mov r0, r3
  92430. 80254cc: 3720 adds r7, #32
  92431. 80254ce: 46bd mov sp, r7
  92432. 80254d0: bd80 pop {r7, pc}
  92433. 80254d2: bf00 nop
  92434. 80254d4: 080306b4 .word 0x080306b4
  92435. 80254d8: 080306f0 .word 0x080306f0
  92436. 80254dc: 080306fc .word 0x080306fc
  92437. 80254e0: 08030724 .word 0x08030724
  92438. 80254e4: 08030738 .word 0x08030738
  92439. 80254e8: 2402b028 .word 0x2402b028
  92440. 80254ec: 08030758 .word 0x08030758
  92441. 080254f0 <ip_reass_remove_oldest_datagram>:
  92442. * (used for freeing other datagrams if not enough space)
  92443. * @return the number of pbufs freed
  92444. */
  92445. static int
  92446. ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed)
  92447. {
  92448. 80254f0: b580 push {r7, lr}
  92449. 80254f2: b08a sub sp, #40 @ 0x28
  92450. 80254f4: af00 add r7, sp, #0
  92451. 80254f6: 6078 str r0, [r7, #4]
  92452. 80254f8: 6039 str r1, [r7, #0]
  92453. /* @todo Can't we simply remove the last datagram in the
  92454. * linked list behind reassdatagrams?
  92455. */
  92456. struct ip_reassdata *r, *oldest, *prev, *oldest_prev;
  92457. int pbufs_freed = 0, pbufs_freed_current;
  92458. 80254fa: 2300 movs r3, #0
  92459. 80254fc: 617b str r3, [r7, #20]
  92460. int other_datagrams;
  92461. /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs,
  92462. * but don't free the datagram that 'fraghdr' belongs to! */
  92463. do {
  92464. oldest = NULL;
  92465. 80254fe: 2300 movs r3, #0
  92466. 8025500: 623b str r3, [r7, #32]
  92467. prev = NULL;
  92468. 8025502: 2300 movs r3, #0
  92469. 8025504: 61fb str r3, [r7, #28]
  92470. oldest_prev = NULL;
  92471. 8025506: 2300 movs r3, #0
  92472. 8025508: 61bb str r3, [r7, #24]
  92473. other_datagrams = 0;
  92474. 802550a: 2300 movs r3, #0
  92475. 802550c: 613b str r3, [r7, #16]
  92476. r = reassdatagrams;
  92477. 802550e: 4b28 ldr r3, [pc, #160] @ (80255b0 <ip_reass_remove_oldest_datagram+0xc0>)
  92478. 8025510: 681b ldr r3, [r3, #0]
  92479. 8025512: 627b str r3, [r7, #36] @ 0x24
  92480. while (r != NULL) {
  92481. 8025514: e030 b.n 8025578 <ip_reass_remove_oldest_datagram+0x88>
  92482. if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
  92483. 8025516: 6a7b ldr r3, [r7, #36] @ 0x24
  92484. 8025518: 695a ldr r2, [r3, #20]
  92485. 802551a: 687b ldr r3, [r7, #4]
  92486. 802551c: 68db ldr r3, [r3, #12]
  92487. 802551e: 429a cmp r2, r3
  92488. 8025520: d10c bne.n 802553c <ip_reass_remove_oldest_datagram+0x4c>
  92489. 8025522: 6a7b ldr r3, [r7, #36] @ 0x24
  92490. 8025524: 699a ldr r2, [r3, #24]
  92491. 8025526: 687b ldr r3, [r7, #4]
  92492. 8025528: 691b ldr r3, [r3, #16]
  92493. 802552a: 429a cmp r2, r3
  92494. 802552c: d106 bne.n 802553c <ip_reass_remove_oldest_datagram+0x4c>
  92495. 802552e: 6a7b ldr r3, [r7, #36] @ 0x24
  92496. 8025530: 899a ldrh r2, [r3, #12]
  92497. 8025532: 687b ldr r3, [r7, #4]
  92498. 8025534: 889b ldrh r3, [r3, #4]
  92499. 8025536: b29b uxth r3, r3
  92500. 8025538: 429a cmp r2, r3
  92501. 802553a: d014 beq.n 8025566 <ip_reass_remove_oldest_datagram+0x76>
  92502. /* Not the same datagram as fraghdr */
  92503. other_datagrams++;
  92504. 802553c: 693b ldr r3, [r7, #16]
  92505. 802553e: 3301 adds r3, #1
  92506. 8025540: 613b str r3, [r7, #16]
  92507. if (oldest == NULL) {
  92508. 8025542: 6a3b ldr r3, [r7, #32]
  92509. 8025544: 2b00 cmp r3, #0
  92510. 8025546: d104 bne.n 8025552 <ip_reass_remove_oldest_datagram+0x62>
  92511. oldest = r;
  92512. 8025548: 6a7b ldr r3, [r7, #36] @ 0x24
  92513. 802554a: 623b str r3, [r7, #32]
  92514. oldest_prev = prev;
  92515. 802554c: 69fb ldr r3, [r7, #28]
  92516. 802554e: 61bb str r3, [r7, #24]
  92517. 8025550: e009 b.n 8025566 <ip_reass_remove_oldest_datagram+0x76>
  92518. } else if (r->timer <= oldest->timer) {
  92519. 8025552: 6a7b ldr r3, [r7, #36] @ 0x24
  92520. 8025554: 7fda ldrb r2, [r3, #31]
  92521. 8025556: 6a3b ldr r3, [r7, #32]
  92522. 8025558: 7fdb ldrb r3, [r3, #31]
  92523. 802555a: 429a cmp r2, r3
  92524. 802555c: d803 bhi.n 8025566 <ip_reass_remove_oldest_datagram+0x76>
  92525. /* older than the previous oldest */
  92526. oldest = r;
  92527. 802555e: 6a7b ldr r3, [r7, #36] @ 0x24
  92528. 8025560: 623b str r3, [r7, #32]
  92529. oldest_prev = prev;
  92530. 8025562: 69fb ldr r3, [r7, #28]
  92531. 8025564: 61bb str r3, [r7, #24]
  92532. }
  92533. }
  92534. if (r->next != NULL) {
  92535. 8025566: 6a7b ldr r3, [r7, #36] @ 0x24
  92536. 8025568: 681b ldr r3, [r3, #0]
  92537. 802556a: 2b00 cmp r3, #0
  92538. 802556c: d001 beq.n 8025572 <ip_reass_remove_oldest_datagram+0x82>
  92539. prev = r;
  92540. 802556e: 6a7b ldr r3, [r7, #36] @ 0x24
  92541. 8025570: 61fb str r3, [r7, #28]
  92542. }
  92543. r = r->next;
  92544. 8025572: 6a7b ldr r3, [r7, #36] @ 0x24
  92545. 8025574: 681b ldr r3, [r3, #0]
  92546. 8025576: 627b str r3, [r7, #36] @ 0x24
  92547. while (r != NULL) {
  92548. 8025578: 6a7b ldr r3, [r7, #36] @ 0x24
  92549. 802557a: 2b00 cmp r3, #0
  92550. 802557c: d1cb bne.n 8025516 <ip_reass_remove_oldest_datagram+0x26>
  92551. }
  92552. if (oldest != NULL) {
  92553. 802557e: 6a3b ldr r3, [r7, #32]
  92554. 8025580: 2b00 cmp r3, #0
  92555. 8025582: d008 beq.n 8025596 <ip_reass_remove_oldest_datagram+0xa6>
  92556. pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev);
  92557. 8025584: 69b9 ldr r1, [r7, #24]
  92558. 8025586: 6a38 ldr r0, [r7, #32]
  92559. 8025588: f7ff ff0e bl 80253a8 <ip_reass_free_complete_datagram>
  92560. 802558c: 60f8 str r0, [r7, #12]
  92561. pbufs_freed += pbufs_freed_current;
  92562. 802558e: 697a ldr r2, [r7, #20]
  92563. 8025590: 68fb ldr r3, [r7, #12]
  92564. 8025592: 4413 add r3, r2
  92565. 8025594: 617b str r3, [r7, #20]
  92566. }
  92567. } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1));
  92568. 8025596: 697a ldr r2, [r7, #20]
  92569. 8025598: 683b ldr r3, [r7, #0]
  92570. 802559a: 429a cmp r2, r3
  92571. 802559c: da02 bge.n 80255a4 <ip_reass_remove_oldest_datagram+0xb4>
  92572. 802559e: 693b ldr r3, [r7, #16]
  92573. 80255a0: 2b01 cmp r3, #1
  92574. 80255a2: dcac bgt.n 80254fe <ip_reass_remove_oldest_datagram+0xe>
  92575. return pbufs_freed;
  92576. 80255a4: 697b ldr r3, [r7, #20]
  92577. }
  92578. 80255a6: 4618 mov r0, r3
  92579. 80255a8: 3728 adds r7, #40 @ 0x28
  92580. 80255aa: 46bd mov sp, r7
  92581. 80255ac: bd80 pop {r7, pc}
  92582. 80255ae: bf00 nop
  92583. 80255b0: 2402b024 .word 0x2402b024
  92584. 080255b4 <ip_reass_enqueue_new_datagram>:
  92585. * @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space)
  92586. * @return A pointer to the queue location into which the fragment was enqueued
  92587. */
  92588. static struct ip_reassdata *
  92589. ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
  92590. {
  92591. 80255b4: b580 push {r7, lr}
  92592. 80255b6: b084 sub sp, #16
  92593. 80255b8: af00 add r7, sp, #0
  92594. 80255ba: 6078 str r0, [r7, #4]
  92595. 80255bc: 6039 str r1, [r7, #0]
  92596. #if ! IP_REASS_FREE_OLDEST
  92597. LWIP_UNUSED_ARG(clen);
  92598. #endif
  92599. /* No matching previous fragment found, allocate a new reassdata struct */
  92600. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  92601. 80255be: 2004 movs r0, #4
  92602. 80255c0: f7f4 f830 bl 8019624 <memp_malloc>
  92603. 80255c4: 60f8 str r0, [r7, #12]
  92604. if (ipr == NULL) {
  92605. 80255c6: 68fb ldr r3, [r7, #12]
  92606. 80255c8: 2b00 cmp r3, #0
  92607. 80255ca: d110 bne.n 80255ee <ip_reass_enqueue_new_datagram+0x3a>
  92608. #if IP_REASS_FREE_OLDEST
  92609. if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) {
  92610. 80255cc: 6839 ldr r1, [r7, #0]
  92611. 80255ce: 6878 ldr r0, [r7, #4]
  92612. 80255d0: f7ff ff8e bl 80254f0 <ip_reass_remove_oldest_datagram>
  92613. 80255d4: 4602 mov r2, r0
  92614. 80255d6: 683b ldr r3, [r7, #0]
  92615. 80255d8: 4293 cmp r3, r2
  92616. 80255da: dc03 bgt.n 80255e4 <ip_reass_enqueue_new_datagram+0x30>
  92617. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  92618. 80255dc: 2004 movs r0, #4
  92619. 80255de: f7f4 f821 bl 8019624 <memp_malloc>
  92620. 80255e2: 60f8 str r0, [r7, #12]
  92621. }
  92622. if (ipr == NULL)
  92623. 80255e4: 68fb ldr r3, [r7, #12]
  92624. 80255e6: 2b00 cmp r3, #0
  92625. 80255e8: d101 bne.n 80255ee <ip_reass_enqueue_new_datagram+0x3a>
  92626. #endif /* IP_REASS_FREE_OLDEST */
  92627. {
  92628. IPFRAG_STATS_INC(ip_frag.memerr);
  92629. LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n"));
  92630. return NULL;
  92631. 80255ea: 2300 movs r3, #0
  92632. 80255ec: e016 b.n 802561c <ip_reass_enqueue_new_datagram+0x68>
  92633. }
  92634. }
  92635. memset(ipr, 0, sizeof(struct ip_reassdata));
  92636. 80255ee: 2220 movs r2, #32
  92637. 80255f0: 2100 movs r1, #0
  92638. 80255f2: 68f8 ldr r0, [r7, #12]
  92639. 80255f4: f004 fb84 bl 8029d00 <memset>
  92640. ipr->timer = IP_REASS_MAXAGE;
  92641. 80255f8: 68fb ldr r3, [r7, #12]
  92642. 80255fa: 220f movs r2, #15
  92643. 80255fc: 77da strb r2, [r3, #31]
  92644. /* enqueue the new structure to the front of the list */
  92645. ipr->next = reassdatagrams;
  92646. 80255fe: 4b09 ldr r3, [pc, #36] @ (8025624 <ip_reass_enqueue_new_datagram+0x70>)
  92647. 8025600: 681a ldr r2, [r3, #0]
  92648. 8025602: 68fb ldr r3, [r7, #12]
  92649. 8025604: 601a str r2, [r3, #0]
  92650. reassdatagrams = ipr;
  92651. 8025606: 4a07 ldr r2, [pc, #28] @ (8025624 <ip_reass_enqueue_new_datagram+0x70>)
  92652. 8025608: 68fb ldr r3, [r7, #12]
  92653. 802560a: 6013 str r3, [r2, #0]
  92654. /* copy the ip header for later tests and input */
  92655. /* @todo: no ip options supported? */
  92656. SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
  92657. 802560c: 68fb ldr r3, [r7, #12]
  92658. 802560e: 3308 adds r3, #8
  92659. 8025610: 2214 movs r2, #20
  92660. 8025612: 6879 ldr r1, [r7, #4]
  92661. 8025614: 4618 mov r0, r3
  92662. 8025616: f004 fc6a bl 8029eee <memcpy>
  92663. return ipr;
  92664. 802561a: 68fb ldr r3, [r7, #12]
  92665. }
  92666. 802561c: 4618 mov r0, r3
  92667. 802561e: 3710 adds r7, #16
  92668. 8025620: 46bd mov sp, r7
  92669. 8025622: bd80 pop {r7, pc}
  92670. 8025624: 2402b024 .word 0x2402b024
  92671. 08025628 <ip_reass_dequeue_datagram>:
  92672. * Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs.
  92673. * @param ipr points to the queue entry to dequeue
  92674. */
  92675. static void
  92676. ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  92677. {
  92678. 8025628: b580 push {r7, lr}
  92679. 802562a: b082 sub sp, #8
  92680. 802562c: af00 add r7, sp, #0
  92681. 802562e: 6078 str r0, [r7, #4]
  92682. 8025630: 6039 str r1, [r7, #0]
  92683. /* dequeue the reass struct */
  92684. if (reassdatagrams == ipr) {
  92685. 8025632: 4b10 ldr r3, [pc, #64] @ (8025674 <ip_reass_dequeue_datagram+0x4c>)
  92686. 8025634: 681b ldr r3, [r3, #0]
  92687. 8025636: 687a ldr r2, [r7, #4]
  92688. 8025638: 429a cmp r2, r3
  92689. 802563a: d104 bne.n 8025646 <ip_reass_dequeue_datagram+0x1e>
  92690. /* it was the first in the list */
  92691. reassdatagrams = ipr->next;
  92692. 802563c: 687b ldr r3, [r7, #4]
  92693. 802563e: 681b ldr r3, [r3, #0]
  92694. 8025640: 4a0c ldr r2, [pc, #48] @ (8025674 <ip_reass_dequeue_datagram+0x4c>)
  92695. 8025642: 6013 str r3, [r2, #0]
  92696. 8025644: e00d b.n 8025662 <ip_reass_dequeue_datagram+0x3a>
  92697. } else {
  92698. /* it wasn't the first, so it must have a valid 'prev' */
  92699. LWIP_ASSERT("sanity check linked list", prev != NULL);
  92700. 8025646: 683b ldr r3, [r7, #0]
  92701. 8025648: 2b00 cmp r3, #0
  92702. 802564a: d106 bne.n 802565a <ip_reass_dequeue_datagram+0x32>
  92703. 802564c: 4b0a ldr r3, [pc, #40] @ (8025678 <ip_reass_dequeue_datagram+0x50>)
  92704. 802564e: f240 1245 movw r2, #325 @ 0x145
  92705. 8025652: 490a ldr r1, [pc, #40] @ (802567c <ip_reass_dequeue_datagram+0x54>)
  92706. 8025654: 480a ldr r0, [pc, #40] @ (8025680 <ip_reass_dequeue_datagram+0x58>)
  92707. 8025656: f004 f9c1 bl 80299dc <iprintf>
  92708. prev->next = ipr->next;
  92709. 802565a: 687b ldr r3, [r7, #4]
  92710. 802565c: 681a ldr r2, [r3, #0]
  92711. 802565e: 683b ldr r3, [r7, #0]
  92712. 8025660: 601a str r2, [r3, #0]
  92713. }
  92714. /* now we can free the ip_reassdata struct */
  92715. memp_free(MEMP_REASSDATA, ipr);
  92716. 8025662: 6879 ldr r1, [r7, #4]
  92717. 8025664: 2004 movs r0, #4
  92718. 8025666: f7f4 f853 bl 8019710 <memp_free>
  92719. }
  92720. 802566a: bf00 nop
  92721. 802566c: 3708 adds r7, #8
  92722. 802566e: 46bd mov sp, r7
  92723. 8025670: bd80 pop {r7, pc}
  92724. 8025672: bf00 nop
  92725. 8025674: 2402b024 .word 0x2402b024
  92726. 8025678: 080306b4 .word 0x080306b4
  92727. 802567c: 0803077c .word 0x0803077c
  92728. 8025680: 080306fc .word 0x080306fc
  92729. 08025684 <ip_reass_chain_frag_into_datagram_and_validate>:
  92730. * @param is_last is 1 if this pbuf has MF==0 (ipr->flags not updated yet)
  92731. * @return see IP_REASS_VALIDATE_* defines
  92732. */
  92733. static int
  92734. ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p, int is_last)
  92735. {
  92736. 8025684: b580 push {r7, lr}
  92737. 8025686: b08c sub sp, #48 @ 0x30
  92738. 8025688: af00 add r7, sp, #0
  92739. 802568a: 60f8 str r0, [r7, #12]
  92740. 802568c: 60b9 str r1, [r7, #8]
  92741. 802568e: 607a str r2, [r7, #4]
  92742. struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL;
  92743. 8025690: 2300 movs r3, #0
  92744. 8025692: 62bb str r3, [r7, #40] @ 0x28
  92745. struct pbuf *q;
  92746. u16_t offset, len;
  92747. u8_t hlen;
  92748. struct ip_hdr *fraghdr;
  92749. int valid = 1;
  92750. 8025694: 2301 movs r3, #1
  92751. 8025696: 623b str r3, [r7, #32]
  92752. /* Extract length and fragment offset from current fragment */
  92753. fraghdr = (struct ip_hdr *)new_p->payload;
  92754. 8025698: 68bb ldr r3, [r7, #8]
  92755. 802569a: 685b ldr r3, [r3, #4]
  92756. 802569c: 61fb str r3, [r7, #28]
  92757. len = lwip_ntohs(IPH_LEN(fraghdr));
  92758. 802569e: 69fb ldr r3, [r7, #28]
  92759. 80256a0: 885b ldrh r3, [r3, #2]
  92760. 80256a2: b29b uxth r3, r3
  92761. 80256a4: 4618 mov r0, r3
  92762. 80256a6: f7f3 fa3f bl 8018b28 <lwip_htons>
  92763. 80256aa: 4603 mov r3, r0
  92764. 80256ac: 837b strh r3, [r7, #26]
  92765. hlen = IPH_HL_BYTES(fraghdr);
  92766. 80256ae: 69fb ldr r3, [r7, #28]
  92767. 80256b0: 781b ldrb r3, [r3, #0]
  92768. 80256b2: f003 030f and.w r3, r3, #15
  92769. 80256b6: b2db uxtb r3, r3
  92770. 80256b8: 009b lsls r3, r3, #2
  92771. 80256ba: 767b strb r3, [r7, #25]
  92772. if (hlen > len) {
  92773. 80256bc: 7e7b ldrb r3, [r7, #25]
  92774. 80256be: b29b uxth r3, r3
  92775. 80256c0: 8b7a ldrh r2, [r7, #26]
  92776. 80256c2: 429a cmp r2, r3
  92777. 80256c4: d202 bcs.n 80256cc <ip_reass_chain_frag_into_datagram_and_validate+0x48>
  92778. /* invalid datagram */
  92779. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92780. 80256c6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92781. 80256ca: e135 b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92782. }
  92783. len = (u16_t)(len - hlen);
  92784. 80256cc: 7e7b ldrb r3, [r7, #25]
  92785. 80256ce: b29b uxth r3, r3
  92786. 80256d0: 8b7a ldrh r2, [r7, #26]
  92787. 80256d2: 1ad3 subs r3, r2, r3
  92788. 80256d4: 837b strh r3, [r7, #26]
  92789. offset = IPH_OFFSET_BYTES(fraghdr);
  92790. 80256d6: 69fb ldr r3, [r7, #28]
  92791. 80256d8: 88db ldrh r3, [r3, #6]
  92792. 80256da: b29b uxth r3, r3
  92793. 80256dc: 4618 mov r0, r3
  92794. 80256de: f7f3 fa23 bl 8018b28 <lwip_htons>
  92795. 80256e2: 4603 mov r3, r0
  92796. 80256e4: f3c3 030c ubfx r3, r3, #0, #13
  92797. 80256e8: b29b uxth r3, r3
  92798. 80256ea: 00db lsls r3, r3, #3
  92799. 80256ec: 82fb strh r3, [r7, #22]
  92800. /* overwrite the fragment's ip header from the pbuf with our helper struct,
  92801. * and setup the embedded helper structure. */
  92802. /* make sure the struct ip_reass_helper fits into the IP header */
  92803. LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN",
  92804. sizeof(struct ip_reass_helper) <= IP_HLEN);
  92805. iprh = (struct ip_reass_helper *)new_p->payload;
  92806. 80256ee: 68bb ldr r3, [r7, #8]
  92807. 80256f0: 685b ldr r3, [r3, #4]
  92808. 80256f2: 62fb str r3, [r7, #44] @ 0x2c
  92809. iprh->next_pbuf = NULL;
  92810. 80256f4: 6afb ldr r3, [r7, #44] @ 0x2c
  92811. 80256f6: 2200 movs r2, #0
  92812. 80256f8: 701a strb r2, [r3, #0]
  92813. 80256fa: 2200 movs r2, #0
  92814. 80256fc: 705a strb r2, [r3, #1]
  92815. 80256fe: 2200 movs r2, #0
  92816. 8025700: 709a strb r2, [r3, #2]
  92817. 8025702: 2200 movs r2, #0
  92818. 8025704: 70da strb r2, [r3, #3]
  92819. iprh->start = offset;
  92820. 8025706: 6afb ldr r3, [r7, #44] @ 0x2c
  92821. 8025708: 8afa ldrh r2, [r7, #22]
  92822. 802570a: 809a strh r2, [r3, #4]
  92823. iprh->end = (u16_t)(offset + len);
  92824. 802570c: 8afa ldrh r2, [r7, #22]
  92825. 802570e: 8b7b ldrh r3, [r7, #26]
  92826. 8025710: 4413 add r3, r2
  92827. 8025712: b29a uxth r2, r3
  92828. 8025714: 6afb ldr r3, [r7, #44] @ 0x2c
  92829. 8025716: 80da strh r2, [r3, #6]
  92830. if (iprh->end < offset) {
  92831. 8025718: 6afb ldr r3, [r7, #44] @ 0x2c
  92832. 802571a: 88db ldrh r3, [r3, #6]
  92833. 802571c: b29b uxth r3, r3
  92834. 802571e: 8afa ldrh r2, [r7, #22]
  92835. 8025720: 429a cmp r2, r3
  92836. 8025722: d902 bls.n 802572a <ip_reass_chain_frag_into_datagram_and_validate+0xa6>
  92837. /* u16_t overflow, cannot handle this */
  92838. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92839. 8025724: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92840. 8025728: e106 b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92841. }
  92842. /* Iterate through until we either get to the end of the list (append),
  92843. * or we find one with a larger offset (insert). */
  92844. for (q = ipr->p; q != NULL;) {
  92845. 802572a: 68fb ldr r3, [r7, #12]
  92846. 802572c: 685b ldr r3, [r3, #4]
  92847. 802572e: 627b str r3, [r7, #36] @ 0x24
  92848. 8025730: e068 b.n 8025804 <ip_reass_chain_frag_into_datagram_and_validate+0x180>
  92849. iprh_tmp = (struct ip_reass_helper *)q->payload;
  92850. 8025732: 6a7b ldr r3, [r7, #36] @ 0x24
  92851. 8025734: 685b ldr r3, [r3, #4]
  92852. 8025736: 613b str r3, [r7, #16]
  92853. if (iprh->start < iprh_tmp->start) {
  92854. 8025738: 6afb ldr r3, [r7, #44] @ 0x2c
  92855. 802573a: 889b ldrh r3, [r3, #4]
  92856. 802573c: b29a uxth r2, r3
  92857. 802573e: 693b ldr r3, [r7, #16]
  92858. 8025740: 889b ldrh r3, [r3, #4]
  92859. 8025742: b29b uxth r3, r3
  92860. 8025744: 429a cmp r2, r3
  92861. 8025746: d235 bcs.n 80257b4 <ip_reass_chain_frag_into_datagram_and_validate+0x130>
  92862. /* the new pbuf should be inserted before this */
  92863. iprh->next_pbuf = q;
  92864. 8025748: 6afb ldr r3, [r7, #44] @ 0x2c
  92865. 802574a: 6a7a ldr r2, [r7, #36] @ 0x24
  92866. 802574c: 601a str r2, [r3, #0]
  92867. if (iprh_prev != NULL) {
  92868. 802574e: 6abb ldr r3, [r7, #40] @ 0x28
  92869. 8025750: 2b00 cmp r3, #0
  92870. 8025752: d020 beq.n 8025796 <ip_reass_chain_frag_into_datagram_and_validate+0x112>
  92871. /* not the fragment with the lowest offset */
  92872. #if IP_REASS_CHECK_OVERLAP
  92873. if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) {
  92874. 8025754: 6afb ldr r3, [r7, #44] @ 0x2c
  92875. 8025756: 889b ldrh r3, [r3, #4]
  92876. 8025758: b29a uxth r2, r3
  92877. 802575a: 6abb ldr r3, [r7, #40] @ 0x28
  92878. 802575c: 88db ldrh r3, [r3, #6]
  92879. 802575e: b29b uxth r3, r3
  92880. 8025760: 429a cmp r2, r3
  92881. 8025762: d307 bcc.n 8025774 <ip_reass_chain_frag_into_datagram_and_validate+0xf0>
  92882. 8025764: 6afb ldr r3, [r7, #44] @ 0x2c
  92883. 8025766: 88db ldrh r3, [r3, #6]
  92884. 8025768: b29a uxth r2, r3
  92885. 802576a: 693b ldr r3, [r7, #16]
  92886. 802576c: 889b ldrh r3, [r3, #4]
  92887. 802576e: b29b uxth r3, r3
  92888. 8025770: 429a cmp r2, r3
  92889. 8025772: d902 bls.n 802577a <ip_reass_chain_frag_into_datagram_and_validate+0xf6>
  92890. /* fragment overlaps with previous or following, throw away */
  92891. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92892. 8025774: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92893. 8025778: e0de b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92894. }
  92895. #endif /* IP_REASS_CHECK_OVERLAP */
  92896. iprh_prev->next_pbuf = new_p;
  92897. 802577a: 6abb ldr r3, [r7, #40] @ 0x28
  92898. 802577c: 68ba ldr r2, [r7, #8]
  92899. 802577e: 601a str r2, [r3, #0]
  92900. if (iprh_prev->end != iprh->start) {
  92901. 8025780: 6abb ldr r3, [r7, #40] @ 0x28
  92902. 8025782: 88db ldrh r3, [r3, #6]
  92903. 8025784: b29a uxth r2, r3
  92904. 8025786: 6afb ldr r3, [r7, #44] @ 0x2c
  92905. 8025788: 889b ldrh r3, [r3, #4]
  92906. 802578a: b29b uxth r3, r3
  92907. 802578c: 429a cmp r2, r3
  92908. 802578e: d03d beq.n 802580c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  92909. /* There is a fragment missing between the current
  92910. * and the previous fragment */
  92911. valid = 0;
  92912. 8025790: 2300 movs r3, #0
  92913. 8025792: 623b str r3, [r7, #32]
  92914. }
  92915. #endif /* IP_REASS_CHECK_OVERLAP */
  92916. /* fragment with the lowest offset */
  92917. ipr->p = new_p;
  92918. }
  92919. break;
  92920. 8025794: e03a b.n 802580c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  92921. if (iprh->end > iprh_tmp->start) {
  92922. 8025796: 6afb ldr r3, [r7, #44] @ 0x2c
  92923. 8025798: 88db ldrh r3, [r3, #6]
  92924. 802579a: b29a uxth r2, r3
  92925. 802579c: 693b ldr r3, [r7, #16]
  92926. 802579e: 889b ldrh r3, [r3, #4]
  92927. 80257a0: b29b uxth r3, r3
  92928. 80257a2: 429a cmp r2, r3
  92929. 80257a4: d902 bls.n 80257ac <ip_reass_chain_frag_into_datagram_and_validate+0x128>
  92930. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92931. 80257a6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92932. 80257aa: e0c5 b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92933. ipr->p = new_p;
  92934. 80257ac: 68fb ldr r3, [r7, #12]
  92935. 80257ae: 68ba ldr r2, [r7, #8]
  92936. 80257b0: 605a str r2, [r3, #4]
  92937. break;
  92938. 80257b2: e02b b.n 802580c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  92939. } else if (iprh->start == iprh_tmp->start) {
  92940. 80257b4: 6afb ldr r3, [r7, #44] @ 0x2c
  92941. 80257b6: 889b ldrh r3, [r3, #4]
  92942. 80257b8: b29a uxth r2, r3
  92943. 80257ba: 693b ldr r3, [r7, #16]
  92944. 80257bc: 889b ldrh r3, [r3, #4]
  92945. 80257be: b29b uxth r3, r3
  92946. 80257c0: 429a cmp r2, r3
  92947. 80257c2: d102 bne.n 80257ca <ip_reass_chain_frag_into_datagram_and_validate+0x146>
  92948. /* received the same datagram twice: no need to keep the datagram */
  92949. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92950. 80257c4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92951. 80257c8: e0b6 b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92952. #if IP_REASS_CHECK_OVERLAP
  92953. } else if (iprh->start < iprh_tmp->end) {
  92954. 80257ca: 6afb ldr r3, [r7, #44] @ 0x2c
  92955. 80257cc: 889b ldrh r3, [r3, #4]
  92956. 80257ce: b29a uxth r2, r3
  92957. 80257d0: 693b ldr r3, [r7, #16]
  92958. 80257d2: 88db ldrh r3, [r3, #6]
  92959. 80257d4: b29b uxth r3, r3
  92960. 80257d6: 429a cmp r2, r3
  92961. 80257d8: d202 bcs.n 80257e0 <ip_reass_chain_frag_into_datagram_and_validate+0x15c>
  92962. /* overlap: no need to keep the new datagram */
  92963. return IP_REASS_VALIDATE_PBUF_DROPPED;
  92964. 80257da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92965. 80257de: e0ab b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  92966. #endif /* IP_REASS_CHECK_OVERLAP */
  92967. } else {
  92968. /* Check if the fragments received so far have no holes. */
  92969. if (iprh_prev != NULL) {
  92970. 80257e0: 6abb ldr r3, [r7, #40] @ 0x28
  92971. 80257e2: 2b00 cmp r3, #0
  92972. 80257e4: d009 beq.n 80257fa <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  92973. if (iprh_prev->end != iprh_tmp->start) {
  92974. 80257e6: 6abb ldr r3, [r7, #40] @ 0x28
  92975. 80257e8: 88db ldrh r3, [r3, #6]
  92976. 80257ea: b29a uxth r2, r3
  92977. 80257ec: 693b ldr r3, [r7, #16]
  92978. 80257ee: 889b ldrh r3, [r3, #4]
  92979. 80257f0: b29b uxth r3, r3
  92980. 80257f2: 429a cmp r2, r3
  92981. 80257f4: d001 beq.n 80257fa <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  92982. /* There is a fragment missing between the current
  92983. * and the previous fragment */
  92984. valid = 0;
  92985. 80257f6: 2300 movs r3, #0
  92986. 80257f8: 623b str r3, [r7, #32]
  92987. }
  92988. }
  92989. }
  92990. q = iprh_tmp->next_pbuf;
  92991. 80257fa: 693b ldr r3, [r7, #16]
  92992. 80257fc: 681b ldr r3, [r3, #0]
  92993. 80257fe: 627b str r3, [r7, #36] @ 0x24
  92994. iprh_prev = iprh_tmp;
  92995. 8025800: 693b ldr r3, [r7, #16]
  92996. 8025802: 62bb str r3, [r7, #40] @ 0x28
  92997. for (q = ipr->p; q != NULL;) {
  92998. 8025804: 6a7b ldr r3, [r7, #36] @ 0x24
  92999. 8025806: 2b00 cmp r3, #0
  93000. 8025808: d193 bne.n 8025732 <ip_reass_chain_frag_into_datagram_and_validate+0xae>
  93001. 802580a: e000 b.n 802580e <ip_reass_chain_frag_into_datagram_and_validate+0x18a>
  93002. break;
  93003. 802580c: bf00 nop
  93004. }
  93005. /* If q is NULL, then we made it to the end of the list. Determine what to do now */
  93006. if (q == NULL) {
  93007. 802580e: 6a7b ldr r3, [r7, #36] @ 0x24
  93008. 8025810: 2b00 cmp r3, #0
  93009. 8025812: d12d bne.n 8025870 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  93010. if (iprh_prev != NULL) {
  93011. 8025814: 6abb ldr r3, [r7, #40] @ 0x28
  93012. 8025816: 2b00 cmp r3, #0
  93013. 8025818: d01c beq.n 8025854 <ip_reass_chain_frag_into_datagram_and_validate+0x1d0>
  93014. /* this is (for now), the fragment with the highest offset:
  93015. * chain it to the last fragment */
  93016. #if IP_REASS_CHECK_OVERLAP
  93017. LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start);
  93018. 802581a: 6abb ldr r3, [r7, #40] @ 0x28
  93019. 802581c: 88db ldrh r3, [r3, #6]
  93020. 802581e: b29a uxth r2, r3
  93021. 8025820: 6afb ldr r3, [r7, #44] @ 0x2c
  93022. 8025822: 889b ldrh r3, [r3, #4]
  93023. 8025824: b29b uxth r3, r3
  93024. 8025826: 429a cmp r2, r3
  93025. 8025828: d906 bls.n 8025838 <ip_reass_chain_frag_into_datagram_and_validate+0x1b4>
  93026. 802582a: 4b45 ldr r3, [pc, #276] @ (8025940 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  93027. 802582c: f44f 72db mov.w r2, #438 @ 0x1b6
  93028. 8025830: 4944 ldr r1, [pc, #272] @ (8025944 <ip_reass_chain_frag_into_datagram_and_validate+0x2c0>)
  93029. 8025832: 4845 ldr r0, [pc, #276] @ (8025948 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  93030. 8025834: f004 f8d2 bl 80299dc <iprintf>
  93031. #endif /* IP_REASS_CHECK_OVERLAP */
  93032. iprh_prev->next_pbuf = new_p;
  93033. 8025838: 6abb ldr r3, [r7, #40] @ 0x28
  93034. 802583a: 68ba ldr r2, [r7, #8]
  93035. 802583c: 601a str r2, [r3, #0]
  93036. if (iprh_prev->end != iprh->start) {
  93037. 802583e: 6abb ldr r3, [r7, #40] @ 0x28
  93038. 8025840: 88db ldrh r3, [r3, #6]
  93039. 8025842: b29a uxth r2, r3
  93040. 8025844: 6afb ldr r3, [r7, #44] @ 0x2c
  93041. 8025846: 889b ldrh r3, [r3, #4]
  93042. 8025848: b29b uxth r3, r3
  93043. 802584a: 429a cmp r2, r3
  93044. 802584c: d010 beq.n 8025870 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  93045. valid = 0;
  93046. 802584e: 2300 movs r3, #0
  93047. 8025850: 623b str r3, [r7, #32]
  93048. 8025852: e00d b.n 8025870 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  93049. }
  93050. } else {
  93051. #if IP_REASS_CHECK_OVERLAP
  93052. LWIP_ASSERT("no previous fragment, this must be the first fragment!",
  93053. 8025854: 68fb ldr r3, [r7, #12]
  93054. 8025856: 685b ldr r3, [r3, #4]
  93055. 8025858: 2b00 cmp r3, #0
  93056. 802585a: d006 beq.n 802586a <ip_reass_chain_frag_into_datagram_and_validate+0x1e6>
  93057. 802585c: 4b38 ldr r3, [pc, #224] @ (8025940 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  93058. 802585e: f44f 72df mov.w r2, #446 @ 0x1be
  93059. 8025862: 493a ldr r1, [pc, #232] @ (802594c <ip_reass_chain_frag_into_datagram_and_validate+0x2c8>)
  93060. 8025864: 4838 ldr r0, [pc, #224] @ (8025948 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  93061. 8025866: f004 f8b9 bl 80299dc <iprintf>
  93062. ipr->p == NULL);
  93063. #endif /* IP_REASS_CHECK_OVERLAP */
  93064. /* this is the first fragment we ever received for this ip datagram */
  93065. ipr->p = new_p;
  93066. 802586a: 68fb ldr r3, [r7, #12]
  93067. 802586c: 68ba ldr r2, [r7, #8]
  93068. 802586e: 605a str r2, [r3, #4]
  93069. }
  93070. }
  93071. /* At this point, the validation part begins: */
  93072. /* If we already received the last fragment */
  93073. if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) {
  93074. 8025870: 687b ldr r3, [r7, #4]
  93075. 8025872: 2b00 cmp r3, #0
  93076. 8025874: d105 bne.n 8025882 <ip_reass_chain_frag_into_datagram_and_validate+0x1fe>
  93077. 8025876: 68fb ldr r3, [r7, #12]
  93078. 8025878: 7f9b ldrb r3, [r3, #30]
  93079. 802587a: f003 0301 and.w r3, r3, #1
  93080. 802587e: 2b00 cmp r3, #0
  93081. 8025880: d059 beq.n 8025936 <ip_reass_chain_frag_into_datagram_and_validate+0x2b2>
  93082. /* and had no holes so far */
  93083. if (valid) {
  93084. 8025882: 6a3b ldr r3, [r7, #32]
  93085. 8025884: 2b00 cmp r3, #0
  93086. 8025886: d04f beq.n 8025928 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  93087. /* then check if the rest of the fragments is here */
  93088. /* Check if the queue starts with the first datagram */
  93089. if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) {
  93090. 8025888: 68fb ldr r3, [r7, #12]
  93091. 802588a: 685b ldr r3, [r3, #4]
  93092. 802588c: 2b00 cmp r3, #0
  93093. 802588e: d006 beq.n 802589e <ip_reass_chain_frag_into_datagram_and_validate+0x21a>
  93094. 8025890: 68fb ldr r3, [r7, #12]
  93095. 8025892: 685b ldr r3, [r3, #4]
  93096. 8025894: 685b ldr r3, [r3, #4]
  93097. 8025896: 889b ldrh r3, [r3, #4]
  93098. 8025898: b29b uxth r3, r3
  93099. 802589a: 2b00 cmp r3, #0
  93100. 802589c: d002 beq.n 80258a4 <ip_reass_chain_frag_into_datagram_and_validate+0x220>
  93101. valid = 0;
  93102. 802589e: 2300 movs r3, #0
  93103. 80258a0: 623b str r3, [r7, #32]
  93104. 80258a2: e041 b.n 8025928 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  93105. } else {
  93106. /* and check that there are no holes after this datagram */
  93107. iprh_prev = iprh;
  93108. 80258a4: 6afb ldr r3, [r7, #44] @ 0x2c
  93109. 80258a6: 62bb str r3, [r7, #40] @ 0x28
  93110. q = iprh->next_pbuf;
  93111. 80258a8: 6afb ldr r3, [r7, #44] @ 0x2c
  93112. 80258aa: 681b ldr r3, [r3, #0]
  93113. 80258ac: 627b str r3, [r7, #36] @ 0x24
  93114. while (q != NULL) {
  93115. 80258ae: e012 b.n 80258d6 <ip_reass_chain_frag_into_datagram_and_validate+0x252>
  93116. iprh = (struct ip_reass_helper *)q->payload;
  93117. 80258b0: 6a7b ldr r3, [r7, #36] @ 0x24
  93118. 80258b2: 685b ldr r3, [r3, #4]
  93119. 80258b4: 62fb str r3, [r7, #44] @ 0x2c
  93120. if (iprh_prev->end != iprh->start) {
  93121. 80258b6: 6abb ldr r3, [r7, #40] @ 0x28
  93122. 80258b8: 88db ldrh r3, [r3, #6]
  93123. 80258ba: b29a uxth r2, r3
  93124. 80258bc: 6afb ldr r3, [r7, #44] @ 0x2c
  93125. 80258be: 889b ldrh r3, [r3, #4]
  93126. 80258c0: b29b uxth r3, r3
  93127. 80258c2: 429a cmp r2, r3
  93128. 80258c4: d002 beq.n 80258cc <ip_reass_chain_frag_into_datagram_and_validate+0x248>
  93129. valid = 0;
  93130. 80258c6: 2300 movs r3, #0
  93131. 80258c8: 623b str r3, [r7, #32]
  93132. break;
  93133. 80258ca: e007 b.n 80258dc <ip_reass_chain_frag_into_datagram_and_validate+0x258>
  93134. }
  93135. iprh_prev = iprh;
  93136. 80258cc: 6afb ldr r3, [r7, #44] @ 0x2c
  93137. 80258ce: 62bb str r3, [r7, #40] @ 0x28
  93138. q = iprh->next_pbuf;
  93139. 80258d0: 6afb ldr r3, [r7, #44] @ 0x2c
  93140. 80258d2: 681b ldr r3, [r3, #0]
  93141. 80258d4: 627b str r3, [r7, #36] @ 0x24
  93142. while (q != NULL) {
  93143. 80258d6: 6a7b ldr r3, [r7, #36] @ 0x24
  93144. 80258d8: 2b00 cmp r3, #0
  93145. 80258da: d1e9 bne.n 80258b0 <ip_reass_chain_frag_into_datagram_and_validate+0x22c>
  93146. }
  93147. /* if still valid, all fragments are received
  93148. * (because to the MF==0 already arrived */
  93149. if (valid) {
  93150. 80258dc: 6a3b ldr r3, [r7, #32]
  93151. 80258de: 2b00 cmp r3, #0
  93152. 80258e0: d022 beq.n 8025928 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  93153. LWIP_ASSERT("sanity check", ipr->p != NULL);
  93154. 80258e2: 68fb ldr r3, [r7, #12]
  93155. 80258e4: 685b ldr r3, [r3, #4]
  93156. 80258e6: 2b00 cmp r3, #0
  93157. 80258e8: d106 bne.n 80258f8 <ip_reass_chain_frag_into_datagram_and_validate+0x274>
  93158. 80258ea: 4b15 ldr r3, [pc, #84] @ (8025940 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  93159. 80258ec: f240 12df movw r2, #479 @ 0x1df
  93160. 80258f0: 4917 ldr r1, [pc, #92] @ (8025950 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  93161. 80258f2: 4815 ldr r0, [pc, #84] @ (8025948 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  93162. 80258f4: f004 f872 bl 80299dc <iprintf>
  93163. LWIP_ASSERT("sanity check",
  93164. 80258f8: 68fb ldr r3, [r7, #12]
  93165. 80258fa: 685b ldr r3, [r3, #4]
  93166. 80258fc: 685b ldr r3, [r3, #4]
  93167. 80258fe: 6afa ldr r2, [r7, #44] @ 0x2c
  93168. 8025900: 429a cmp r2, r3
  93169. 8025902: d106 bne.n 8025912 <ip_reass_chain_frag_into_datagram_and_validate+0x28e>
  93170. 8025904: 4b0e ldr r3, [pc, #56] @ (8025940 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  93171. 8025906: f44f 72f0 mov.w r2, #480 @ 0x1e0
  93172. 802590a: 4911 ldr r1, [pc, #68] @ (8025950 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  93173. 802590c: 480e ldr r0, [pc, #56] @ (8025948 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  93174. 802590e: f004 f865 bl 80299dc <iprintf>
  93175. ((struct ip_reass_helper *)ipr->p->payload) != iprh);
  93176. LWIP_ASSERT("validate_datagram:next_pbuf!=NULL",
  93177. 8025912: 6afb ldr r3, [r7, #44] @ 0x2c
  93178. 8025914: 681b ldr r3, [r3, #0]
  93179. 8025916: 2b00 cmp r3, #0
  93180. 8025918: d006 beq.n 8025928 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  93181. 802591a: 4b09 ldr r3, [pc, #36] @ (8025940 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  93182. 802591c: f44f 72f1 mov.w r2, #482 @ 0x1e2
  93183. 8025920: 490c ldr r1, [pc, #48] @ (8025954 <ip_reass_chain_frag_into_datagram_and_validate+0x2d0>)
  93184. 8025922: 4809 ldr r0, [pc, #36] @ (8025948 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  93185. 8025924: f004 f85a bl 80299dc <iprintf>
  93186. }
  93187. }
  93188. /* If valid is 0 here, there are some fragments missing in the middle
  93189. * (since MF == 0 has already arrived). Such datagrams simply time out if
  93190. * no more fragments are received... */
  93191. return valid ? IP_REASS_VALIDATE_TELEGRAM_FINISHED : IP_REASS_VALIDATE_PBUF_QUEUED;
  93192. 8025928: 6a3b ldr r3, [r7, #32]
  93193. 802592a: 2b00 cmp r3, #0
  93194. 802592c: bf14 ite ne
  93195. 802592e: 2301 movne r3, #1
  93196. 8025930: 2300 moveq r3, #0
  93197. 8025932: b2db uxtb r3, r3
  93198. 8025934: e000 b.n 8025938 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  93199. }
  93200. /* If we come here, not all fragments were received, yet! */
  93201. return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */
  93202. 8025936: 2300 movs r3, #0
  93203. }
  93204. 8025938: 4618 mov r0, r3
  93205. 802593a: 3730 adds r7, #48 @ 0x30
  93206. 802593c: 46bd mov sp, r7
  93207. 802593e: bd80 pop {r7, pc}
  93208. 8025940: 080306b4 .word 0x080306b4
  93209. 8025944: 08030798 .word 0x08030798
  93210. 8025948: 080306fc .word 0x080306fc
  93211. 802594c: 080307b8 .word 0x080307b8
  93212. 8025950: 080307f0 .word 0x080307f0
  93213. 8025954: 08030800 .word 0x08030800
  93214. 08025958 <ip4_reass>:
  93215. * @param p points to a pbuf chain of the fragment
  93216. * @return NULL if reassembly is incomplete, ? otherwise
  93217. */
  93218. struct pbuf *
  93219. ip4_reass(struct pbuf *p)
  93220. {
  93221. 8025958: b580 push {r7, lr}
  93222. 802595a: b08e sub sp, #56 @ 0x38
  93223. 802595c: af00 add r7, sp, #0
  93224. 802595e: 6078 str r0, [r7, #4]
  93225. int is_last;
  93226. IPFRAG_STATS_INC(ip_frag.recv);
  93227. MIB2_STATS_INC(mib2.ipreasmreqds);
  93228. fraghdr = (struct ip_hdr *)p->payload;
  93229. 8025960: 687b ldr r3, [r7, #4]
  93230. 8025962: 685b ldr r3, [r3, #4]
  93231. 8025964: 62bb str r3, [r7, #40] @ 0x28
  93232. if (IPH_HL_BYTES(fraghdr) != IP_HLEN) {
  93233. 8025966: 6abb ldr r3, [r7, #40] @ 0x28
  93234. 8025968: 781b ldrb r3, [r3, #0]
  93235. 802596a: f003 030f and.w r3, r3, #15
  93236. 802596e: b2db uxtb r3, r3
  93237. 8025970: 009b lsls r3, r3, #2
  93238. 8025972: b2db uxtb r3, r3
  93239. 8025974: 2b14 cmp r3, #20
  93240. 8025976: f040 8171 bne.w 8025c5c <ip4_reass+0x304>
  93241. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n"));
  93242. IPFRAG_STATS_INC(ip_frag.err);
  93243. goto nullreturn;
  93244. }
  93245. offset = IPH_OFFSET_BYTES(fraghdr);
  93246. 802597a: 6abb ldr r3, [r7, #40] @ 0x28
  93247. 802597c: 88db ldrh r3, [r3, #6]
  93248. 802597e: b29b uxth r3, r3
  93249. 8025980: 4618 mov r0, r3
  93250. 8025982: f7f3 f8d1 bl 8018b28 <lwip_htons>
  93251. 8025986: 4603 mov r3, r0
  93252. 8025988: f3c3 030c ubfx r3, r3, #0, #13
  93253. 802598c: b29b uxth r3, r3
  93254. 802598e: 00db lsls r3, r3, #3
  93255. 8025990: 84fb strh r3, [r7, #38] @ 0x26
  93256. len = lwip_ntohs(IPH_LEN(fraghdr));
  93257. 8025992: 6abb ldr r3, [r7, #40] @ 0x28
  93258. 8025994: 885b ldrh r3, [r3, #2]
  93259. 8025996: b29b uxth r3, r3
  93260. 8025998: 4618 mov r0, r3
  93261. 802599a: f7f3 f8c5 bl 8018b28 <lwip_htons>
  93262. 802599e: 4603 mov r3, r0
  93263. 80259a0: 84bb strh r3, [r7, #36] @ 0x24
  93264. hlen = IPH_HL_BYTES(fraghdr);
  93265. 80259a2: 6abb ldr r3, [r7, #40] @ 0x28
  93266. 80259a4: 781b ldrb r3, [r3, #0]
  93267. 80259a6: f003 030f and.w r3, r3, #15
  93268. 80259aa: b2db uxtb r3, r3
  93269. 80259ac: 009b lsls r3, r3, #2
  93270. 80259ae: f887 3023 strb.w r3, [r7, #35] @ 0x23
  93271. if (hlen > len) {
  93272. 80259b2: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  93273. 80259b6: b29b uxth r3, r3
  93274. 80259b8: 8cba ldrh r2, [r7, #36] @ 0x24
  93275. 80259ba: 429a cmp r2, r3
  93276. 80259bc: f0c0 8150 bcc.w 8025c60 <ip4_reass+0x308>
  93277. /* invalid datagram */
  93278. goto nullreturn;
  93279. }
  93280. len = (u16_t)(len - hlen);
  93281. 80259c0: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  93282. 80259c4: b29b uxth r3, r3
  93283. 80259c6: 8cba ldrh r2, [r7, #36] @ 0x24
  93284. 80259c8: 1ad3 subs r3, r2, r3
  93285. 80259ca: 84bb strh r3, [r7, #36] @ 0x24
  93286. /* Check if we are allowed to enqueue more datagrams. */
  93287. clen = pbuf_clen(p);
  93288. 80259cc: 6878 ldr r0, [r7, #4]
  93289. 80259ce: f7f4 fe1b bl 801a608 <pbuf_clen>
  93290. 80259d2: 4603 mov r3, r0
  93291. 80259d4: 843b strh r3, [r7, #32]
  93292. if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) {
  93293. 80259d6: 4b8c ldr r3, [pc, #560] @ (8025c08 <ip4_reass+0x2b0>)
  93294. 80259d8: 881b ldrh r3, [r3, #0]
  93295. 80259da: 461a mov r2, r3
  93296. 80259dc: 8c3b ldrh r3, [r7, #32]
  93297. 80259de: 4413 add r3, r2
  93298. 80259e0: 2b0a cmp r3, #10
  93299. 80259e2: dd10 ble.n 8025a06 <ip4_reass+0xae>
  93300. #if IP_REASS_FREE_OLDEST
  93301. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  93302. 80259e4: 8c3b ldrh r3, [r7, #32]
  93303. 80259e6: 4619 mov r1, r3
  93304. 80259e8: 6ab8 ldr r0, [r7, #40] @ 0x28
  93305. 80259ea: f7ff fd81 bl 80254f0 <ip_reass_remove_oldest_datagram>
  93306. 80259ee: 4603 mov r3, r0
  93307. 80259f0: 2b00 cmp r3, #0
  93308. 80259f2: f000 8137 beq.w 8025c64 <ip4_reass+0x30c>
  93309. ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS))
  93310. 80259f6: 4b84 ldr r3, [pc, #528] @ (8025c08 <ip4_reass+0x2b0>)
  93311. 80259f8: 881b ldrh r3, [r3, #0]
  93312. 80259fa: 461a mov r2, r3
  93313. 80259fc: 8c3b ldrh r3, [r7, #32]
  93314. 80259fe: 4413 add r3, r2
  93315. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  93316. 8025a00: 2b0a cmp r3, #10
  93317. 8025a02: f300 812f bgt.w 8025c64 <ip4_reass+0x30c>
  93318. }
  93319. }
  93320. /* Look for the datagram the fragment belongs to in the current datagram queue,
  93321. * remembering the previous in the queue for later dequeueing. */
  93322. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  93323. 8025a06: 4b81 ldr r3, [pc, #516] @ (8025c0c <ip4_reass+0x2b4>)
  93324. 8025a08: 681b ldr r3, [r3, #0]
  93325. 8025a0a: 633b str r3, [r7, #48] @ 0x30
  93326. 8025a0c: e015 b.n 8025a3a <ip4_reass+0xe2>
  93327. /* Check if the incoming fragment matches the one currently present
  93328. in the reassembly buffer. If so, we proceed with copying the
  93329. fragment into the buffer. */
  93330. if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
  93331. 8025a0e: 6b3b ldr r3, [r7, #48] @ 0x30
  93332. 8025a10: 695a ldr r2, [r3, #20]
  93333. 8025a12: 6abb ldr r3, [r7, #40] @ 0x28
  93334. 8025a14: 68db ldr r3, [r3, #12]
  93335. 8025a16: 429a cmp r2, r3
  93336. 8025a18: d10c bne.n 8025a34 <ip4_reass+0xdc>
  93337. 8025a1a: 6b3b ldr r3, [r7, #48] @ 0x30
  93338. 8025a1c: 699a ldr r2, [r3, #24]
  93339. 8025a1e: 6abb ldr r3, [r7, #40] @ 0x28
  93340. 8025a20: 691b ldr r3, [r3, #16]
  93341. 8025a22: 429a cmp r2, r3
  93342. 8025a24: d106 bne.n 8025a34 <ip4_reass+0xdc>
  93343. 8025a26: 6b3b ldr r3, [r7, #48] @ 0x30
  93344. 8025a28: 899a ldrh r2, [r3, #12]
  93345. 8025a2a: 6abb ldr r3, [r7, #40] @ 0x28
  93346. 8025a2c: 889b ldrh r3, [r3, #4]
  93347. 8025a2e: b29b uxth r3, r3
  93348. 8025a30: 429a cmp r2, r3
  93349. 8025a32: d006 beq.n 8025a42 <ip4_reass+0xea>
  93350. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  93351. 8025a34: 6b3b ldr r3, [r7, #48] @ 0x30
  93352. 8025a36: 681b ldr r3, [r3, #0]
  93353. 8025a38: 633b str r3, [r7, #48] @ 0x30
  93354. 8025a3a: 6b3b ldr r3, [r7, #48] @ 0x30
  93355. 8025a3c: 2b00 cmp r3, #0
  93356. 8025a3e: d1e6 bne.n 8025a0e <ip4_reass+0xb6>
  93357. 8025a40: e000 b.n 8025a44 <ip4_reass+0xec>
  93358. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: matching previous fragment ID=%"X16_F"\n",
  93359. lwip_ntohs(IPH_ID(fraghdr))));
  93360. IPFRAG_STATS_INC(ip_frag.cachehit);
  93361. break;
  93362. 8025a42: bf00 nop
  93363. }
  93364. }
  93365. if (ipr == NULL) {
  93366. 8025a44: 6b3b ldr r3, [r7, #48] @ 0x30
  93367. 8025a46: 2b00 cmp r3, #0
  93368. 8025a48: d109 bne.n 8025a5e <ip4_reass+0x106>
  93369. /* Enqueue a new datagram into the datagram queue */
  93370. ipr = ip_reass_enqueue_new_datagram(fraghdr, clen);
  93371. 8025a4a: 8c3b ldrh r3, [r7, #32]
  93372. 8025a4c: 4619 mov r1, r3
  93373. 8025a4e: 6ab8 ldr r0, [r7, #40] @ 0x28
  93374. 8025a50: f7ff fdb0 bl 80255b4 <ip_reass_enqueue_new_datagram>
  93375. 8025a54: 6338 str r0, [r7, #48] @ 0x30
  93376. /* Bail if unable to enqueue */
  93377. if (ipr == NULL) {
  93378. 8025a56: 6b3b ldr r3, [r7, #48] @ 0x30
  93379. 8025a58: 2b00 cmp r3, #0
  93380. 8025a5a: d11c bne.n 8025a96 <ip4_reass+0x13e>
  93381. goto nullreturn;
  93382. 8025a5c: e105 b.n 8025c6a <ip4_reass+0x312>
  93383. }
  93384. } else {
  93385. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  93386. 8025a5e: 6abb ldr r3, [r7, #40] @ 0x28
  93387. 8025a60: 88db ldrh r3, [r3, #6]
  93388. 8025a62: b29b uxth r3, r3
  93389. 8025a64: 4618 mov r0, r3
  93390. 8025a66: f7f3 f85f bl 8018b28 <lwip_htons>
  93391. 8025a6a: 4603 mov r3, r0
  93392. 8025a6c: f3c3 030c ubfx r3, r3, #0, #13
  93393. 8025a70: 2b00 cmp r3, #0
  93394. 8025a72: d110 bne.n 8025a96 <ip4_reass+0x13e>
  93395. ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
  93396. 8025a74: 6b3b ldr r3, [r7, #48] @ 0x30
  93397. 8025a76: 89db ldrh r3, [r3, #14]
  93398. 8025a78: 4618 mov r0, r3
  93399. 8025a7a: f7f3 f855 bl 8018b28 <lwip_htons>
  93400. 8025a7e: 4603 mov r3, r0
  93401. 8025a80: f3c3 030c ubfx r3, r3, #0, #13
  93402. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  93403. 8025a84: 2b00 cmp r3, #0
  93404. 8025a86: d006 beq.n 8025a96 <ip4_reass+0x13e>
  93405. /* ipr->iphdr is not the header from the first fragment, but fraghdr is
  93406. * -> copy fraghdr into ipr->iphdr since we want to have the header
  93407. * of the first fragment (for ICMP time exceeded and later, for copying
  93408. * all options, if supported)*/
  93409. SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
  93410. 8025a88: 6b3b ldr r3, [r7, #48] @ 0x30
  93411. 8025a8a: 3308 adds r3, #8
  93412. 8025a8c: 2214 movs r2, #20
  93413. 8025a8e: 6ab9 ldr r1, [r7, #40] @ 0x28
  93414. 8025a90: 4618 mov r0, r3
  93415. 8025a92: f004 fa2c bl 8029eee <memcpy>
  93416. /* At this point, we have either created a new entry or pointing
  93417. * to an existing one */
  93418. /* check for 'no more fragments', and update queue entry*/
  93419. is_last = (IPH_OFFSET(fraghdr) & PP_NTOHS(IP_MF)) == 0;
  93420. 8025a96: 6abb ldr r3, [r7, #40] @ 0x28
  93421. 8025a98: 88db ldrh r3, [r3, #6]
  93422. 8025a9a: b29b uxth r3, r3
  93423. 8025a9c: f003 0320 and.w r3, r3, #32
  93424. 8025aa0: 2b00 cmp r3, #0
  93425. 8025aa2: bf0c ite eq
  93426. 8025aa4: 2301 moveq r3, #1
  93427. 8025aa6: 2300 movne r3, #0
  93428. 8025aa8: b2db uxtb r3, r3
  93429. 8025aaa: 61fb str r3, [r7, #28]
  93430. if (is_last) {
  93431. 8025aac: 69fb ldr r3, [r7, #28]
  93432. 8025aae: 2b00 cmp r3, #0
  93433. 8025ab0: d00e beq.n 8025ad0 <ip4_reass+0x178>
  93434. u16_t datagram_len = (u16_t)(offset + len);
  93435. 8025ab2: 8cfa ldrh r2, [r7, #38] @ 0x26
  93436. 8025ab4: 8cbb ldrh r3, [r7, #36] @ 0x24
  93437. 8025ab6: 4413 add r3, r2
  93438. 8025ab8: 837b strh r3, [r7, #26]
  93439. if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) {
  93440. 8025aba: 8b7a ldrh r2, [r7, #26]
  93441. 8025abc: 8cfb ldrh r3, [r7, #38] @ 0x26
  93442. 8025abe: 429a cmp r2, r3
  93443. 8025ac0: f0c0 80a0 bcc.w 8025c04 <ip4_reass+0x2ac>
  93444. 8025ac4: 8b7b ldrh r3, [r7, #26]
  93445. 8025ac6: f64f 72eb movw r2, #65515 @ 0xffeb
  93446. 8025aca: 4293 cmp r3, r2
  93447. 8025acc: f200 809a bhi.w 8025c04 <ip4_reass+0x2ac>
  93448. goto nullreturn_ipr;
  93449. }
  93450. }
  93451. /* find the right place to insert this pbuf */
  93452. /* @todo: trim pbufs if fragments are overlapping */
  93453. valid = ip_reass_chain_frag_into_datagram_and_validate(ipr, p, is_last);
  93454. 8025ad0: 69fa ldr r2, [r7, #28]
  93455. 8025ad2: 6879 ldr r1, [r7, #4]
  93456. 8025ad4: 6b38 ldr r0, [r7, #48] @ 0x30
  93457. 8025ad6: f7ff fdd5 bl 8025684 <ip_reass_chain_frag_into_datagram_and_validate>
  93458. 8025ada: 6178 str r0, [r7, #20]
  93459. if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) {
  93460. 8025adc: 697b ldr r3, [r7, #20]
  93461. 8025ade: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  93462. 8025ae2: f000 809b beq.w 8025c1c <ip4_reass+0x2c4>
  93463. /* if we come here, the pbuf has been enqueued */
  93464. /* Track the current number of pbufs current 'in-flight', in order to limit
  93465. the number of fragments that may be enqueued at any one time
  93466. (overflow checked by testing against IP_REASS_MAX_PBUFS) */
  93467. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount + clen);
  93468. 8025ae6: 4b48 ldr r3, [pc, #288] @ (8025c08 <ip4_reass+0x2b0>)
  93469. 8025ae8: 881a ldrh r2, [r3, #0]
  93470. 8025aea: 8c3b ldrh r3, [r7, #32]
  93471. 8025aec: 4413 add r3, r2
  93472. 8025aee: b29a uxth r2, r3
  93473. 8025af0: 4b45 ldr r3, [pc, #276] @ (8025c08 <ip4_reass+0x2b0>)
  93474. 8025af2: 801a strh r2, [r3, #0]
  93475. if (is_last) {
  93476. 8025af4: 69fb ldr r3, [r7, #28]
  93477. 8025af6: 2b00 cmp r3, #0
  93478. 8025af8: d00d beq.n 8025b16 <ip4_reass+0x1be>
  93479. u16_t datagram_len = (u16_t)(offset + len);
  93480. 8025afa: 8cfa ldrh r2, [r7, #38] @ 0x26
  93481. 8025afc: 8cbb ldrh r3, [r7, #36] @ 0x24
  93482. 8025afe: 4413 add r3, r2
  93483. 8025b00: 827b strh r3, [r7, #18]
  93484. ipr->datagram_len = datagram_len;
  93485. 8025b02: 6b3b ldr r3, [r7, #48] @ 0x30
  93486. 8025b04: 8a7a ldrh r2, [r7, #18]
  93487. 8025b06: 839a strh r2, [r3, #28]
  93488. ipr->flags |= IP_REASS_FLAG_LASTFRAG;
  93489. 8025b08: 6b3b ldr r3, [r7, #48] @ 0x30
  93490. 8025b0a: 7f9b ldrb r3, [r3, #30]
  93491. 8025b0c: f043 0301 orr.w r3, r3, #1
  93492. 8025b10: b2da uxtb r2, r3
  93493. 8025b12: 6b3b ldr r3, [r7, #48] @ 0x30
  93494. 8025b14: 779a strb r2, [r3, #30]
  93495. LWIP_DEBUGF(IP_REASS_DEBUG,
  93496. ("ip4_reass: last fragment seen, total len %"S16_F"\n",
  93497. ipr->datagram_len));
  93498. }
  93499. if (valid == IP_REASS_VALIDATE_TELEGRAM_FINISHED) {
  93500. 8025b16: 697b ldr r3, [r7, #20]
  93501. 8025b18: 2b01 cmp r3, #1
  93502. 8025b1a: d171 bne.n 8025c00 <ip4_reass+0x2a8>
  93503. struct ip_reassdata *ipr_prev;
  93504. /* the totally last fragment (flag more fragments = 0) was received at least
  93505. * once AND all fragments are received */
  93506. u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN);
  93507. 8025b1c: 6b3b ldr r3, [r7, #48] @ 0x30
  93508. 8025b1e: 8b9b ldrh r3, [r3, #28]
  93509. 8025b20: 3314 adds r3, #20
  93510. 8025b22: 823b strh r3, [r7, #16]
  93511. /* save the second pbuf before copying the header over the pointer */
  93512. r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf;
  93513. 8025b24: 6b3b ldr r3, [r7, #48] @ 0x30
  93514. 8025b26: 685b ldr r3, [r3, #4]
  93515. 8025b28: 685b ldr r3, [r3, #4]
  93516. 8025b2a: 681b ldr r3, [r3, #0]
  93517. 8025b2c: 62fb str r3, [r7, #44] @ 0x2c
  93518. /* copy the original ip header back to the first pbuf */
  93519. fraghdr = (struct ip_hdr *)(ipr->p->payload);
  93520. 8025b2e: 6b3b ldr r3, [r7, #48] @ 0x30
  93521. 8025b30: 685b ldr r3, [r3, #4]
  93522. 8025b32: 685b ldr r3, [r3, #4]
  93523. 8025b34: 62bb str r3, [r7, #40] @ 0x28
  93524. SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
  93525. 8025b36: 6b3b ldr r3, [r7, #48] @ 0x30
  93526. 8025b38: 3308 adds r3, #8
  93527. 8025b3a: 2214 movs r2, #20
  93528. 8025b3c: 4619 mov r1, r3
  93529. 8025b3e: 6ab8 ldr r0, [r7, #40] @ 0x28
  93530. 8025b40: f004 f9d5 bl 8029eee <memcpy>
  93531. IPH_LEN_SET(fraghdr, lwip_htons(datagram_len));
  93532. 8025b44: 8a3b ldrh r3, [r7, #16]
  93533. 8025b46: 4618 mov r0, r3
  93534. 8025b48: f7f2 ffee bl 8018b28 <lwip_htons>
  93535. 8025b4c: 4603 mov r3, r0
  93536. 8025b4e: 461a mov r2, r3
  93537. 8025b50: 6abb ldr r3, [r7, #40] @ 0x28
  93538. 8025b52: 805a strh r2, [r3, #2]
  93539. IPH_OFFSET_SET(fraghdr, 0);
  93540. 8025b54: 6abb ldr r3, [r7, #40] @ 0x28
  93541. 8025b56: 2200 movs r2, #0
  93542. 8025b58: 719a strb r2, [r3, #6]
  93543. 8025b5a: 2200 movs r2, #0
  93544. 8025b5c: 71da strb r2, [r3, #7]
  93545. IPH_CHKSUM_SET(fraghdr, 0);
  93546. 8025b5e: 6abb ldr r3, [r7, #40] @ 0x28
  93547. 8025b60: 2200 movs r2, #0
  93548. 8025b62: 729a strb r2, [r3, #10]
  93549. 8025b64: 2200 movs r2, #0
  93550. 8025b66: 72da strb r2, [r3, #11]
  93551. IF__NETIF_CHECKSUM_ENABLED(ip_current_input_netif(), NETIF_CHECKSUM_GEN_IP) {
  93552. IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
  93553. }
  93554. #endif /* CHECKSUM_GEN_IP */
  93555. p = ipr->p;
  93556. 8025b68: 6b3b ldr r3, [r7, #48] @ 0x30
  93557. 8025b6a: 685b ldr r3, [r3, #4]
  93558. 8025b6c: 607b str r3, [r7, #4]
  93559. /* chain together the pbufs contained within the reass_data list. */
  93560. while (r != NULL) {
  93561. 8025b6e: e00d b.n 8025b8c <ip4_reass+0x234>
  93562. iprh = (struct ip_reass_helper *)r->payload;
  93563. 8025b70: 6afb ldr r3, [r7, #44] @ 0x2c
  93564. 8025b72: 685b ldr r3, [r3, #4]
  93565. 8025b74: 60fb str r3, [r7, #12]
  93566. /* hide the ip header for every succeeding fragment */
  93567. pbuf_remove_header(r, IP_HLEN);
  93568. 8025b76: 2114 movs r1, #20
  93569. 8025b78: 6af8 ldr r0, [r7, #44] @ 0x2c
  93570. 8025b7a: f7f4 fbff bl 801a37c <pbuf_remove_header>
  93571. pbuf_cat(p, r);
  93572. 8025b7e: 6af9 ldr r1, [r7, #44] @ 0x2c
  93573. 8025b80: 6878 ldr r0, [r7, #4]
  93574. 8025b82: f7f4 fd81 bl 801a688 <pbuf_cat>
  93575. r = iprh->next_pbuf;
  93576. 8025b86: 68fb ldr r3, [r7, #12]
  93577. 8025b88: 681b ldr r3, [r3, #0]
  93578. 8025b8a: 62fb str r3, [r7, #44] @ 0x2c
  93579. while (r != NULL) {
  93580. 8025b8c: 6afb ldr r3, [r7, #44] @ 0x2c
  93581. 8025b8e: 2b00 cmp r3, #0
  93582. 8025b90: d1ee bne.n 8025b70 <ip4_reass+0x218>
  93583. }
  93584. /* find the previous entry in the linked list */
  93585. if (ipr == reassdatagrams) {
  93586. 8025b92: 4b1e ldr r3, [pc, #120] @ (8025c0c <ip4_reass+0x2b4>)
  93587. 8025b94: 681b ldr r3, [r3, #0]
  93588. 8025b96: 6b3a ldr r2, [r7, #48] @ 0x30
  93589. 8025b98: 429a cmp r2, r3
  93590. 8025b9a: d102 bne.n 8025ba2 <ip4_reass+0x24a>
  93591. ipr_prev = NULL;
  93592. 8025b9c: 2300 movs r3, #0
  93593. 8025b9e: 637b str r3, [r7, #52] @ 0x34
  93594. 8025ba0: e010 b.n 8025bc4 <ip4_reass+0x26c>
  93595. } else {
  93596. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  93597. 8025ba2: 4b1a ldr r3, [pc, #104] @ (8025c0c <ip4_reass+0x2b4>)
  93598. 8025ba4: 681b ldr r3, [r3, #0]
  93599. 8025ba6: 637b str r3, [r7, #52] @ 0x34
  93600. 8025ba8: e007 b.n 8025bba <ip4_reass+0x262>
  93601. if (ipr_prev->next == ipr) {
  93602. 8025baa: 6b7b ldr r3, [r7, #52] @ 0x34
  93603. 8025bac: 681b ldr r3, [r3, #0]
  93604. 8025bae: 6b3a ldr r2, [r7, #48] @ 0x30
  93605. 8025bb0: 429a cmp r2, r3
  93606. 8025bb2: d006 beq.n 8025bc2 <ip4_reass+0x26a>
  93607. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  93608. 8025bb4: 6b7b ldr r3, [r7, #52] @ 0x34
  93609. 8025bb6: 681b ldr r3, [r3, #0]
  93610. 8025bb8: 637b str r3, [r7, #52] @ 0x34
  93611. 8025bba: 6b7b ldr r3, [r7, #52] @ 0x34
  93612. 8025bbc: 2b00 cmp r3, #0
  93613. 8025bbe: d1f4 bne.n 8025baa <ip4_reass+0x252>
  93614. 8025bc0: e000 b.n 8025bc4 <ip4_reass+0x26c>
  93615. break;
  93616. 8025bc2: bf00 nop
  93617. }
  93618. }
  93619. }
  93620. /* release the sources allocate for the fragment queue entry */
  93621. ip_reass_dequeue_datagram(ipr, ipr_prev);
  93622. 8025bc4: 6b79 ldr r1, [r7, #52] @ 0x34
  93623. 8025bc6: 6b38 ldr r0, [r7, #48] @ 0x30
  93624. 8025bc8: f7ff fd2e bl 8025628 <ip_reass_dequeue_datagram>
  93625. /* and adjust the number of pbufs currently queued for reassembly. */
  93626. clen = pbuf_clen(p);
  93627. 8025bcc: 6878 ldr r0, [r7, #4]
  93628. 8025bce: f7f4 fd1b bl 801a608 <pbuf_clen>
  93629. 8025bd2: 4603 mov r3, r0
  93630. 8025bd4: 843b strh r3, [r7, #32]
  93631. LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen);
  93632. 8025bd6: 4b0c ldr r3, [pc, #48] @ (8025c08 <ip4_reass+0x2b0>)
  93633. 8025bd8: 881b ldrh r3, [r3, #0]
  93634. 8025bda: 8c3a ldrh r2, [r7, #32]
  93635. 8025bdc: 429a cmp r2, r3
  93636. 8025bde: d906 bls.n 8025bee <ip4_reass+0x296>
  93637. 8025be0: 4b0b ldr r3, [pc, #44] @ (8025c10 <ip4_reass+0x2b8>)
  93638. 8025be2: f240 229b movw r2, #667 @ 0x29b
  93639. 8025be6: 490b ldr r1, [pc, #44] @ (8025c14 <ip4_reass+0x2bc>)
  93640. 8025be8: 480b ldr r0, [pc, #44] @ (8025c18 <ip4_reass+0x2c0>)
  93641. 8025bea: f003 fef7 bl 80299dc <iprintf>
  93642. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen);
  93643. 8025bee: 4b06 ldr r3, [pc, #24] @ (8025c08 <ip4_reass+0x2b0>)
  93644. 8025bf0: 881a ldrh r2, [r3, #0]
  93645. 8025bf2: 8c3b ldrh r3, [r7, #32]
  93646. 8025bf4: 1ad3 subs r3, r2, r3
  93647. 8025bf6: b29a uxth r2, r3
  93648. 8025bf8: 4b03 ldr r3, [pc, #12] @ (8025c08 <ip4_reass+0x2b0>)
  93649. 8025bfa: 801a strh r2, [r3, #0]
  93650. MIB2_STATS_INC(mib2.ipreasmoks);
  93651. /* Return the pbuf chain */
  93652. return p;
  93653. 8025bfc: 687b ldr r3, [r7, #4]
  93654. 8025bfe: e038 b.n 8025c72 <ip4_reass+0x31a>
  93655. }
  93656. /* the datagram is not (yet?) reassembled completely */
  93657. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount));
  93658. return NULL;
  93659. 8025c00: 2300 movs r3, #0
  93660. 8025c02: e036 b.n 8025c72 <ip4_reass+0x31a>
  93661. goto nullreturn_ipr;
  93662. 8025c04: bf00 nop
  93663. 8025c06: e00a b.n 8025c1e <ip4_reass+0x2c6>
  93664. 8025c08: 2402b028 .word 0x2402b028
  93665. 8025c0c: 2402b024 .word 0x2402b024
  93666. 8025c10: 080306b4 .word 0x080306b4
  93667. 8025c14: 08030824 .word 0x08030824
  93668. 8025c18: 080306fc .word 0x080306fc
  93669. goto nullreturn_ipr;
  93670. 8025c1c: bf00 nop
  93671. nullreturn_ipr:
  93672. LWIP_ASSERT("ipr != NULL", ipr != NULL);
  93673. 8025c1e: 6b3b ldr r3, [r7, #48] @ 0x30
  93674. 8025c20: 2b00 cmp r3, #0
  93675. 8025c22: d106 bne.n 8025c32 <ip4_reass+0x2da>
  93676. 8025c24: 4b15 ldr r3, [pc, #84] @ (8025c7c <ip4_reass+0x324>)
  93677. 8025c26: f44f 722a mov.w r2, #680 @ 0x2a8
  93678. 8025c2a: 4915 ldr r1, [pc, #84] @ (8025c80 <ip4_reass+0x328>)
  93679. 8025c2c: 4815 ldr r0, [pc, #84] @ (8025c84 <ip4_reass+0x32c>)
  93680. 8025c2e: f003 fed5 bl 80299dc <iprintf>
  93681. if (ipr->p == NULL) {
  93682. 8025c32: 6b3b ldr r3, [r7, #48] @ 0x30
  93683. 8025c34: 685b ldr r3, [r3, #4]
  93684. 8025c36: 2b00 cmp r3, #0
  93685. 8025c38: d116 bne.n 8025c68 <ip4_reass+0x310>
  93686. /* dropped pbuf after creating a new datagram entry: remove the entry, too */
  93687. LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
  93688. 8025c3a: 4b13 ldr r3, [pc, #76] @ (8025c88 <ip4_reass+0x330>)
  93689. 8025c3c: 681b ldr r3, [r3, #0]
  93690. 8025c3e: 6b3a ldr r2, [r7, #48] @ 0x30
  93691. 8025c40: 429a cmp r2, r3
  93692. 8025c42: d006 beq.n 8025c52 <ip4_reass+0x2fa>
  93693. 8025c44: 4b0d ldr r3, [pc, #52] @ (8025c7c <ip4_reass+0x324>)
  93694. 8025c46: f240 22ab movw r2, #683 @ 0x2ab
  93695. 8025c4a: 4910 ldr r1, [pc, #64] @ (8025c8c <ip4_reass+0x334>)
  93696. 8025c4c: 480d ldr r0, [pc, #52] @ (8025c84 <ip4_reass+0x32c>)
  93697. 8025c4e: f003 fec5 bl 80299dc <iprintf>
  93698. ip_reass_dequeue_datagram(ipr, NULL);
  93699. 8025c52: 2100 movs r1, #0
  93700. 8025c54: 6b38 ldr r0, [r7, #48] @ 0x30
  93701. 8025c56: f7ff fce7 bl 8025628 <ip_reass_dequeue_datagram>
  93702. 8025c5a: e006 b.n 8025c6a <ip4_reass+0x312>
  93703. goto nullreturn;
  93704. 8025c5c: bf00 nop
  93705. 8025c5e: e004 b.n 8025c6a <ip4_reass+0x312>
  93706. goto nullreturn;
  93707. 8025c60: bf00 nop
  93708. 8025c62: e002 b.n 8025c6a <ip4_reass+0x312>
  93709. goto nullreturn;
  93710. 8025c64: bf00 nop
  93711. 8025c66: e000 b.n 8025c6a <ip4_reass+0x312>
  93712. }
  93713. nullreturn:
  93714. 8025c68: bf00 nop
  93715. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n"));
  93716. IPFRAG_STATS_INC(ip_frag.drop);
  93717. pbuf_free(p);
  93718. 8025c6a: 6878 ldr r0, [r7, #4]
  93719. 8025c6c: f7f4 fc3e bl 801a4ec <pbuf_free>
  93720. return NULL;
  93721. 8025c70: 2300 movs r3, #0
  93722. }
  93723. 8025c72: 4618 mov r0, r3
  93724. 8025c74: 3738 adds r7, #56 @ 0x38
  93725. 8025c76: 46bd mov sp, r7
  93726. 8025c78: bd80 pop {r7, pc}
  93727. 8025c7a: bf00 nop
  93728. 8025c7c: 080306b4 .word 0x080306b4
  93729. 8025c80: 08030840 .word 0x08030840
  93730. 8025c84: 080306fc .word 0x080306fc
  93731. 8025c88: 2402b024 .word 0x2402b024
  93732. 8025c8c: 0803084c .word 0x0803084c
  93733. 08025c90 <ip_frag_alloc_pbuf_custom_ref>:
  93734. #if IP_FRAG
  93735. #if !LWIP_NETIF_TX_SINGLE_PBUF
  93736. /** Allocate a new struct pbuf_custom_ref */
  93737. static struct pbuf_custom_ref *
  93738. ip_frag_alloc_pbuf_custom_ref(void)
  93739. {
  93740. 8025c90: b580 push {r7, lr}
  93741. 8025c92: af00 add r7, sp, #0
  93742. return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF);
  93743. 8025c94: 2005 movs r0, #5
  93744. 8025c96: f7f3 fcc5 bl 8019624 <memp_malloc>
  93745. 8025c9a: 4603 mov r3, r0
  93746. }
  93747. 8025c9c: 4618 mov r0, r3
  93748. 8025c9e: bd80 pop {r7, pc}
  93749. 08025ca0 <ip_frag_free_pbuf_custom_ref>:
  93750. /** Free a struct pbuf_custom_ref */
  93751. static void
  93752. ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p)
  93753. {
  93754. 8025ca0: b580 push {r7, lr}
  93755. 8025ca2: b082 sub sp, #8
  93756. 8025ca4: af00 add r7, sp, #0
  93757. 8025ca6: 6078 str r0, [r7, #4]
  93758. LWIP_ASSERT("p != NULL", p != NULL);
  93759. 8025ca8: 687b ldr r3, [r7, #4]
  93760. 8025caa: 2b00 cmp r3, #0
  93761. 8025cac: d106 bne.n 8025cbc <ip_frag_free_pbuf_custom_ref+0x1c>
  93762. 8025cae: 4b07 ldr r3, [pc, #28] @ (8025ccc <ip_frag_free_pbuf_custom_ref+0x2c>)
  93763. 8025cb0: f44f 7231 mov.w r2, #708 @ 0x2c4
  93764. 8025cb4: 4906 ldr r1, [pc, #24] @ (8025cd0 <ip_frag_free_pbuf_custom_ref+0x30>)
  93765. 8025cb6: 4807 ldr r0, [pc, #28] @ (8025cd4 <ip_frag_free_pbuf_custom_ref+0x34>)
  93766. 8025cb8: f003 fe90 bl 80299dc <iprintf>
  93767. memp_free(MEMP_FRAG_PBUF, p);
  93768. 8025cbc: 6879 ldr r1, [r7, #4]
  93769. 8025cbe: 2005 movs r0, #5
  93770. 8025cc0: f7f3 fd26 bl 8019710 <memp_free>
  93771. }
  93772. 8025cc4: bf00 nop
  93773. 8025cc6: 3708 adds r7, #8
  93774. 8025cc8: 46bd mov sp, r7
  93775. 8025cca: bd80 pop {r7, pc}
  93776. 8025ccc: 080306b4 .word 0x080306b4
  93777. 8025cd0: 0803086c .word 0x0803086c
  93778. 8025cd4: 080306fc .word 0x080306fc
  93779. 08025cd8 <ipfrag_free_pbuf_custom>:
  93780. /** Free-callback function to free a 'struct pbuf_custom_ref', called by
  93781. * pbuf_free. */
  93782. static void
  93783. ipfrag_free_pbuf_custom(struct pbuf *p)
  93784. {
  93785. 8025cd8: b580 push {r7, lr}
  93786. 8025cda: b084 sub sp, #16
  93787. 8025cdc: af00 add r7, sp, #0
  93788. 8025cde: 6078 str r0, [r7, #4]
  93789. struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p;
  93790. 8025ce0: 687b ldr r3, [r7, #4]
  93791. 8025ce2: 60fb str r3, [r7, #12]
  93792. LWIP_ASSERT("pcr != NULL", pcr != NULL);
  93793. 8025ce4: 68fb ldr r3, [r7, #12]
  93794. 8025ce6: 2b00 cmp r3, #0
  93795. 8025ce8: d106 bne.n 8025cf8 <ipfrag_free_pbuf_custom+0x20>
  93796. 8025cea: 4b11 ldr r3, [pc, #68] @ (8025d30 <ipfrag_free_pbuf_custom+0x58>)
  93797. 8025cec: f240 22ce movw r2, #718 @ 0x2ce
  93798. 8025cf0: 4910 ldr r1, [pc, #64] @ (8025d34 <ipfrag_free_pbuf_custom+0x5c>)
  93799. 8025cf2: 4811 ldr r0, [pc, #68] @ (8025d38 <ipfrag_free_pbuf_custom+0x60>)
  93800. 8025cf4: f003 fe72 bl 80299dc <iprintf>
  93801. LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p);
  93802. 8025cf8: 68fa ldr r2, [r7, #12]
  93803. 8025cfa: 687b ldr r3, [r7, #4]
  93804. 8025cfc: 429a cmp r2, r3
  93805. 8025cfe: d006 beq.n 8025d0e <ipfrag_free_pbuf_custom+0x36>
  93806. 8025d00: 4b0b ldr r3, [pc, #44] @ (8025d30 <ipfrag_free_pbuf_custom+0x58>)
  93807. 8025d02: f240 22cf movw r2, #719 @ 0x2cf
  93808. 8025d06: 490d ldr r1, [pc, #52] @ (8025d3c <ipfrag_free_pbuf_custom+0x64>)
  93809. 8025d08: 480b ldr r0, [pc, #44] @ (8025d38 <ipfrag_free_pbuf_custom+0x60>)
  93810. 8025d0a: f003 fe67 bl 80299dc <iprintf>
  93811. if (pcr->original != NULL) {
  93812. 8025d0e: 68fb ldr r3, [r7, #12]
  93813. 8025d10: 695b ldr r3, [r3, #20]
  93814. 8025d12: 2b00 cmp r3, #0
  93815. 8025d14: d004 beq.n 8025d20 <ipfrag_free_pbuf_custom+0x48>
  93816. pbuf_free(pcr->original);
  93817. 8025d16: 68fb ldr r3, [r7, #12]
  93818. 8025d18: 695b ldr r3, [r3, #20]
  93819. 8025d1a: 4618 mov r0, r3
  93820. 8025d1c: f7f4 fbe6 bl 801a4ec <pbuf_free>
  93821. }
  93822. ip_frag_free_pbuf_custom_ref(pcr);
  93823. 8025d20: 68f8 ldr r0, [r7, #12]
  93824. 8025d22: f7ff ffbd bl 8025ca0 <ip_frag_free_pbuf_custom_ref>
  93825. }
  93826. 8025d26: bf00 nop
  93827. 8025d28: 3710 adds r7, #16
  93828. 8025d2a: 46bd mov sp, r7
  93829. 8025d2c: bd80 pop {r7, pc}
  93830. 8025d2e: bf00 nop
  93831. 8025d30: 080306b4 .word 0x080306b4
  93832. 8025d34: 08030878 .word 0x08030878
  93833. 8025d38: 080306fc .word 0x080306fc
  93834. 8025d3c: 08030884 .word 0x08030884
  93835. 08025d40 <ip4_frag>:
  93836. *
  93837. * @return ERR_OK if sent successfully, err_t otherwise
  93838. */
  93839. err_t
  93840. ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest)
  93841. {
  93842. 8025d40: b580 push {r7, lr}
  93843. 8025d42: b094 sub sp, #80 @ 0x50
  93844. 8025d44: af02 add r7, sp, #8
  93845. 8025d46: 60f8 str r0, [r7, #12]
  93846. 8025d48: 60b9 str r1, [r7, #8]
  93847. 8025d4a: 607a str r2, [r7, #4]
  93848. struct pbuf *rambuf;
  93849. #if !LWIP_NETIF_TX_SINGLE_PBUF
  93850. struct pbuf *newpbuf;
  93851. u16_t newpbuflen = 0;
  93852. 8025d4c: 2300 movs r3, #0
  93853. 8025d4e: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  93854. u16_t left_to_copy;
  93855. #endif
  93856. struct ip_hdr *original_iphdr;
  93857. struct ip_hdr *iphdr;
  93858. const u16_t nfb = (u16_t)((netif->mtu - IP_HLEN) / 8);
  93859. 8025d52: 68bb ldr r3, [r7, #8]
  93860. 8025d54: 8d1b ldrh r3, [r3, #40] @ 0x28
  93861. 8025d56: 3b14 subs r3, #20
  93862. 8025d58: 2b00 cmp r3, #0
  93863. 8025d5a: da00 bge.n 8025d5e <ip4_frag+0x1e>
  93864. 8025d5c: 3307 adds r3, #7
  93865. 8025d5e: 10db asrs r3, r3, #3
  93866. 8025d60: 877b strh r3, [r7, #58] @ 0x3a
  93867. u16_t left, fragsize;
  93868. u16_t ofo;
  93869. int last;
  93870. u16_t poff = IP_HLEN;
  93871. 8025d62: 2314 movs r3, #20
  93872. 8025d64: 87fb strh r3, [r7, #62] @ 0x3e
  93873. u16_t tmp;
  93874. int mf_set;
  93875. original_iphdr = (struct ip_hdr *)p->payload;
  93876. 8025d66: 68fb ldr r3, [r7, #12]
  93877. 8025d68: 685b ldr r3, [r3, #4]
  93878. 8025d6a: 637b str r3, [r7, #52] @ 0x34
  93879. iphdr = original_iphdr;
  93880. 8025d6c: 6b7b ldr r3, [r7, #52] @ 0x34
  93881. 8025d6e: 633b str r3, [r7, #48] @ 0x30
  93882. if (IPH_HL_BYTES(iphdr) != IP_HLEN) {
  93883. 8025d70: 6b3b ldr r3, [r7, #48] @ 0x30
  93884. 8025d72: 781b ldrb r3, [r3, #0]
  93885. 8025d74: f003 030f and.w r3, r3, #15
  93886. 8025d78: b2db uxtb r3, r3
  93887. 8025d7a: 009b lsls r3, r3, #2
  93888. 8025d7c: b2db uxtb r3, r3
  93889. 8025d7e: 2b14 cmp r3, #20
  93890. 8025d80: d002 beq.n 8025d88 <ip4_frag+0x48>
  93891. /* ip4_frag() does not support IP options */
  93892. return ERR_VAL;
  93893. 8025d82: f06f 0305 mvn.w r3, #5
  93894. 8025d86: e110 b.n 8025faa <ip4_frag+0x26a>
  93895. }
  93896. LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL);
  93897. 8025d88: 68fb ldr r3, [r7, #12]
  93898. 8025d8a: 895b ldrh r3, [r3, #10]
  93899. 8025d8c: 2b13 cmp r3, #19
  93900. 8025d8e: d809 bhi.n 8025da4 <ip4_frag+0x64>
  93901. 8025d90: 4b88 ldr r3, [pc, #544] @ (8025fb4 <ip4_frag+0x274>)
  93902. 8025d92: f44f 723f mov.w r2, #764 @ 0x2fc
  93903. 8025d96: 4988 ldr r1, [pc, #544] @ (8025fb8 <ip4_frag+0x278>)
  93904. 8025d98: 4888 ldr r0, [pc, #544] @ (8025fbc <ip4_frag+0x27c>)
  93905. 8025d9a: f003 fe1f bl 80299dc <iprintf>
  93906. 8025d9e: f06f 0305 mvn.w r3, #5
  93907. 8025da2: e102 b.n 8025faa <ip4_frag+0x26a>
  93908. /* Save original offset */
  93909. tmp = lwip_ntohs(IPH_OFFSET(iphdr));
  93910. 8025da4: 6b3b ldr r3, [r7, #48] @ 0x30
  93911. 8025da6: 88db ldrh r3, [r3, #6]
  93912. 8025da8: b29b uxth r3, r3
  93913. 8025daa: 4618 mov r0, r3
  93914. 8025dac: f7f2 febc bl 8018b28 <lwip_htons>
  93915. 8025db0: 4603 mov r3, r0
  93916. 8025db2: 87bb strh r3, [r7, #60] @ 0x3c
  93917. ofo = tmp & IP_OFFMASK;
  93918. 8025db4: 8fbb ldrh r3, [r7, #60] @ 0x3c
  93919. 8025db6: f3c3 030c ubfx r3, r3, #0, #13
  93920. 8025dba: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  93921. /* already fragmented? if so, the last fragment we create must have MF, too */
  93922. mf_set = tmp & IP_MF;
  93923. 8025dbe: 8fbb ldrh r3, [r7, #60] @ 0x3c
  93924. 8025dc0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  93925. 8025dc4: 62fb str r3, [r7, #44] @ 0x2c
  93926. left = (u16_t)(p->tot_len - IP_HLEN);
  93927. 8025dc6: 68fb ldr r3, [r7, #12]
  93928. 8025dc8: 891b ldrh r3, [r3, #8]
  93929. 8025dca: 3b14 subs r3, #20
  93930. 8025dcc: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  93931. while (left) {
  93932. 8025dd0: e0e1 b.n 8025f96 <ip4_frag+0x256>
  93933. /* Fill this fragment */
  93934. fragsize = LWIP_MIN(left, (u16_t)(nfb * 8));
  93935. 8025dd2: 8f7b ldrh r3, [r7, #58] @ 0x3a
  93936. 8025dd4: 00db lsls r3, r3, #3
  93937. 8025dd6: b29b uxth r3, r3
  93938. 8025dd8: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  93939. 8025ddc: 4293 cmp r3, r2
  93940. 8025dde: bf28 it cs
  93941. 8025de0: 4613 movcs r3, r2
  93942. 8025de2: 857b strh r3, [r7, #42] @ 0x2a
  93943. /* When not using a static buffer, create a chain of pbufs.
  93944. * The first will be a PBUF_RAM holding the link and IP header.
  93945. * The rest will be PBUF_REFs mirroring the pbuf chain to be fragged,
  93946. * but limited to the size of an mtu.
  93947. */
  93948. rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM);
  93949. 8025de4: f44f 7220 mov.w r2, #640 @ 0x280
  93950. 8025de8: 2114 movs r1, #20
  93951. 8025dea: 200e movs r0, #14
  93952. 8025dec: f7f4 f868 bl 8019ec0 <pbuf_alloc>
  93953. 8025df0: 6278 str r0, [r7, #36] @ 0x24
  93954. if (rambuf == NULL) {
  93955. 8025df2: 6a7b ldr r3, [r7, #36] @ 0x24
  93956. 8025df4: 2b00 cmp r3, #0
  93957. 8025df6: f000 80d5 beq.w 8025fa4 <ip4_frag+0x264>
  93958. goto memerr;
  93959. }
  93960. LWIP_ASSERT("this needs a pbuf in one piece!",
  93961. 8025dfa: 6a7b ldr r3, [r7, #36] @ 0x24
  93962. 8025dfc: 895b ldrh r3, [r3, #10]
  93963. 8025dfe: 2b13 cmp r3, #19
  93964. 8025e00: d806 bhi.n 8025e10 <ip4_frag+0xd0>
  93965. 8025e02: 4b6c ldr r3, [pc, #432] @ (8025fb4 <ip4_frag+0x274>)
  93966. 8025e04: f44f 7249 mov.w r2, #804 @ 0x324
  93967. 8025e08: 496d ldr r1, [pc, #436] @ (8025fc0 <ip4_frag+0x280>)
  93968. 8025e0a: 486c ldr r0, [pc, #432] @ (8025fbc <ip4_frag+0x27c>)
  93969. 8025e0c: f003 fde6 bl 80299dc <iprintf>
  93970. (rambuf->len >= (IP_HLEN)));
  93971. SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN);
  93972. 8025e10: 6a7b ldr r3, [r7, #36] @ 0x24
  93973. 8025e12: 685b ldr r3, [r3, #4]
  93974. 8025e14: 2214 movs r2, #20
  93975. 8025e16: 6b79 ldr r1, [r7, #52] @ 0x34
  93976. 8025e18: 4618 mov r0, r3
  93977. 8025e1a: f004 f868 bl 8029eee <memcpy>
  93978. iphdr = (struct ip_hdr *)rambuf->payload;
  93979. 8025e1e: 6a7b ldr r3, [r7, #36] @ 0x24
  93980. 8025e20: 685b ldr r3, [r3, #4]
  93981. 8025e22: 633b str r3, [r7, #48] @ 0x30
  93982. left_to_copy = fragsize;
  93983. 8025e24: 8d7b ldrh r3, [r7, #42] @ 0x2a
  93984. 8025e26: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  93985. while (left_to_copy) {
  93986. 8025e2a: e064 b.n 8025ef6 <ip4_frag+0x1b6>
  93987. struct pbuf_custom_ref *pcr;
  93988. u16_t plen = (u16_t)(p->len - poff);
  93989. 8025e2c: 68fb ldr r3, [r7, #12]
  93990. 8025e2e: 895a ldrh r2, [r3, #10]
  93991. 8025e30: 8ffb ldrh r3, [r7, #62] @ 0x3e
  93992. 8025e32: 1ad3 subs r3, r2, r3
  93993. 8025e34: 83fb strh r3, [r7, #30]
  93994. LWIP_ASSERT("p->len >= poff", p->len >= poff);
  93995. 8025e36: 68fb ldr r3, [r7, #12]
  93996. 8025e38: 895b ldrh r3, [r3, #10]
  93997. 8025e3a: 8ffa ldrh r2, [r7, #62] @ 0x3e
  93998. 8025e3c: 429a cmp r2, r3
  93999. 8025e3e: d906 bls.n 8025e4e <ip4_frag+0x10e>
  94000. 8025e40: 4b5c ldr r3, [pc, #368] @ (8025fb4 <ip4_frag+0x274>)
  94001. 8025e42: f240 322d movw r2, #813 @ 0x32d
  94002. 8025e46: 495f ldr r1, [pc, #380] @ (8025fc4 <ip4_frag+0x284>)
  94003. 8025e48: 485c ldr r0, [pc, #368] @ (8025fbc <ip4_frag+0x27c>)
  94004. 8025e4a: f003 fdc7 bl 80299dc <iprintf>
  94005. newpbuflen = LWIP_MIN(left_to_copy, plen);
  94006. 8025e4e: 8bfa ldrh r2, [r7, #30]
  94007. 8025e50: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  94008. 8025e54: 4293 cmp r3, r2
  94009. 8025e56: bf28 it cs
  94010. 8025e58: 4613 movcs r3, r2
  94011. 8025e5a: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  94012. /* Is this pbuf already empty? */
  94013. if (!newpbuflen) {
  94014. 8025e5e: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  94015. 8025e62: 2b00 cmp r3, #0
  94016. 8025e64: d105 bne.n 8025e72 <ip4_frag+0x132>
  94017. poff = 0;
  94018. 8025e66: 2300 movs r3, #0
  94019. 8025e68: 87fb strh r3, [r7, #62] @ 0x3e
  94020. p = p->next;
  94021. 8025e6a: 68fb ldr r3, [r7, #12]
  94022. 8025e6c: 681b ldr r3, [r3, #0]
  94023. 8025e6e: 60fb str r3, [r7, #12]
  94024. continue;
  94025. 8025e70: e041 b.n 8025ef6 <ip4_frag+0x1b6>
  94026. }
  94027. pcr = ip_frag_alloc_pbuf_custom_ref();
  94028. 8025e72: f7ff ff0d bl 8025c90 <ip_frag_alloc_pbuf_custom_ref>
  94029. 8025e76: 61b8 str r0, [r7, #24]
  94030. if (pcr == NULL) {
  94031. 8025e78: 69bb ldr r3, [r7, #24]
  94032. 8025e7a: 2b00 cmp r3, #0
  94033. 8025e7c: d103 bne.n 8025e86 <ip4_frag+0x146>
  94034. pbuf_free(rambuf);
  94035. 8025e7e: 6a78 ldr r0, [r7, #36] @ 0x24
  94036. 8025e80: f7f4 fb34 bl 801a4ec <pbuf_free>
  94037. goto memerr;
  94038. 8025e84: e08f b.n 8025fa6 <ip4_frag+0x266>
  94039. }
  94040. /* Mirror this pbuf, although we might not need all of it. */
  94041. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  94042. 8025e86: 69b8 ldr r0, [r7, #24]
  94043. (u8_t *)p->payload + poff, newpbuflen);
  94044. 8025e88: 68fb ldr r3, [r7, #12]
  94045. 8025e8a: 685a ldr r2, [r3, #4]
  94046. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  94047. 8025e8c: 8ffb ldrh r3, [r7, #62] @ 0x3e
  94048. 8025e8e: 4413 add r3, r2
  94049. 8025e90: f8b7 1046 ldrh.w r1, [r7, #70] @ 0x46
  94050. 8025e94: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  94051. 8025e98: 9201 str r2, [sp, #4]
  94052. 8025e9a: 9300 str r3, [sp, #0]
  94053. 8025e9c: 4603 mov r3, r0
  94054. 8025e9e: 2241 movs r2, #65 @ 0x41
  94055. 8025ea0: 2000 movs r0, #0
  94056. 8025ea2: f7f4 f939 bl 801a118 <pbuf_alloced_custom>
  94057. 8025ea6: 6178 str r0, [r7, #20]
  94058. if (newpbuf == NULL) {
  94059. 8025ea8: 697b ldr r3, [r7, #20]
  94060. 8025eaa: 2b00 cmp r3, #0
  94061. 8025eac: d106 bne.n 8025ebc <ip4_frag+0x17c>
  94062. ip_frag_free_pbuf_custom_ref(pcr);
  94063. 8025eae: 69b8 ldr r0, [r7, #24]
  94064. 8025eb0: f7ff fef6 bl 8025ca0 <ip_frag_free_pbuf_custom_ref>
  94065. pbuf_free(rambuf);
  94066. 8025eb4: 6a78 ldr r0, [r7, #36] @ 0x24
  94067. 8025eb6: f7f4 fb19 bl 801a4ec <pbuf_free>
  94068. goto memerr;
  94069. 8025eba: e074 b.n 8025fa6 <ip4_frag+0x266>
  94070. }
  94071. pbuf_ref(p);
  94072. 8025ebc: 68f8 ldr r0, [r7, #12]
  94073. 8025ebe: f7f4 fbbb bl 801a638 <pbuf_ref>
  94074. pcr->original = p;
  94075. 8025ec2: 69bb ldr r3, [r7, #24]
  94076. 8025ec4: 68fa ldr r2, [r7, #12]
  94077. 8025ec6: 615a str r2, [r3, #20]
  94078. pcr->pc.custom_free_function = ipfrag_free_pbuf_custom;
  94079. 8025ec8: 69bb ldr r3, [r7, #24]
  94080. 8025eca: 4a3f ldr r2, [pc, #252] @ (8025fc8 <ip4_frag+0x288>)
  94081. 8025ecc: 611a str r2, [r3, #16]
  94082. /* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain
  94083. * so that it is removed when pbuf_dechain is later called on rambuf.
  94084. */
  94085. pbuf_cat(rambuf, newpbuf);
  94086. 8025ece: 6979 ldr r1, [r7, #20]
  94087. 8025ed0: 6a78 ldr r0, [r7, #36] @ 0x24
  94088. 8025ed2: f7f4 fbd9 bl 801a688 <pbuf_cat>
  94089. left_to_copy = (u16_t)(left_to_copy - newpbuflen);
  94090. 8025ed6: f8b7 2044 ldrh.w r2, [r7, #68] @ 0x44
  94091. 8025eda: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  94092. 8025ede: 1ad3 subs r3, r2, r3
  94093. 8025ee0: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  94094. if (left_to_copy) {
  94095. 8025ee4: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  94096. 8025ee8: 2b00 cmp r3, #0
  94097. 8025eea: d004 beq.n 8025ef6 <ip4_frag+0x1b6>
  94098. poff = 0;
  94099. 8025eec: 2300 movs r3, #0
  94100. 8025eee: 87fb strh r3, [r7, #62] @ 0x3e
  94101. p = p->next;
  94102. 8025ef0: 68fb ldr r3, [r7, #12]
  94103. 8025ef2: 681b ldr r3, [r3, #0]
  94104. 8025ef4: 60fb str r3, [r7, #12]
  94105. while (left_to_copy) {
  94106. 8025ef6: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  94107. 8025efa: 2b00 cmp r3, #0
  94108. 8025efc: d196 bne.n 8025e2c <ip4_frag+0xec>
  94109. }
  94110. }
  94111. poff = (u16_t)(poff + newpbuflen);
  94112. 8025efe: 8ffa ldrh r2, [r7, #62] @ 0x3e
  94113. 8025f00: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  94114. 8025f04: 4413 add r3, r2
  94115. 8025f06: 87fb strh r3, [r7, #62] @ 0x3e
  94116. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  94117. /* Correct header */
  94118. last = (left <= netif->mtu - IP_HLEN);
  94119. 8025f08: 68bb ldr r3, [r7, #8]
  94120. 8025f0a: 8d1b ldrh r3, [r3, #40] @ 0x28
  94121. 8025f0c: f1a3 0213 sub.w r2, r3, #19
  94122. 8025f10: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  94123. 8025f14: 429a cmp r2, r3
  94124. 8025f16: bfcc ite gt
  94125. 8025f18: 2301 movgt r3, #1
  94126. 8025f1a: 2300 movle r3, #0
  94127. 8025f1c: b2db uxtb r3, r3
  94128. 8025f1e: 623b str r3, [r7, #32]
  94129. /* Set new offset and MF flag */
  94130. tmp = (IP_OFFMASK & (ofo));
  94131. 8025f20: f8b7 3040 ldrh.w r3, [r7, #64] @ 0x40
  94132. 8025f24: f3c3 030c ubfx r3, r3, #0, #13
  94133. 8025f28: 87bb strh r3, [r7, #60] @ 0x3c
  94134. if (!last || mf_set) {
  94135. 8025f2a: 6a3b ldr r3, [r7, #32]
  94136. 8025f2c: 2b00 cmp r3, #0
  94137. 8025f2e: d002 beq.n 8025f36 <ip4_frag+0x1f6>
  94138. 8025f30: 6afb ldr r3, [r7, #44] @ 0x2c
  94139. 8025f32: 2b00 cmp r3, #0
  94140. 8025f34: d003 beq.n 8025f3e <ip4_frag+0x1fe>
  94141. /* the last fragment has MF set if the input frame had it */
  94142. tmp = tmp | IP_MF;
  94143. 8025f36: 8fbb ldrh r3, [r7, #60] @ 0x3c
  94144. 8025f38: f443 5300 orr.w r3, r3, #8192 @ 0x2000
  94145. 8025f3c: 87bb strh r3, [r7, #60] @ 0x3c
  94146. }
  94147. IPH_OFFSET_SET(iphdr, lwip_htons(tmp));
  94148. 8025f3e: 8fbb ldrh r3, [r7, #60] @ 0x3c
  94149. 8025f40: 4618 mov r0, r3
  94150. 8025f42: f7f2 fdf1 bl 8018b28 <lwip_htons>
  94151. 8025f46: 4603 mov r3, r0
  94152. 8025f48: 461a mov r2, r3
  94153. 8025f4a: 6b3b ldr r3, [r7, #48] @ 0x30
  94154. 8025f4c: 80da strh r2, [r3, #6]
  94155. IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN)));
  94156. 8025f4e: 8d7b ldrh r3, [r7, #42] @ 0x2a
  94157. 8025f50: 3314 adds r3, #20
  94158. 8025f52: b29b uxth r3, r3
  94159. 8025f54: 4618 mov r0, r3
  94160. 8025f56: f7f2 fde7 bl 8018b28 <lwip_htons>
  94161. 8025f5a: 4603 mov r3, r0
  94162. 8025f5c: 461a mov r2, r3
  94163. 8025f5e: 6b3b ldr r3, [r7, #48] @ 0x30
  94164. 8025f60: 805a strh r2, [r3, #2]
  94165. IPH_CHKSUM_SET(iphdr, 0);
  94166. 8025f62: 6b3b ldr r3, [r7, #48] @ 0x30
  94167. 8025f64: 2200 movs r2, #0
  94168. 8025f66: 729a strb r2, [r3, #10]
  94169. 8025f68: 2200 movs r2, #0
  94170. 8025f6a: 72da strb r2, [r3, #11]
  94171. #endif /* CHECKSUM_GEN_IP */
  94172. /* No need for separate header pbuf - we allowed room for it in rambuf
  94173. * when allocated.
  94174. */
  94175. netif->output(netif, rambuf, dest);
  94176. 8025f6c: 68bb ldr r3, [r7, #8]
  94177. 8025f6e: 695b ldr r3, [r3, #20]
  94178. 8025f70: 687a ldr r2, [r7, #4]
  94179. 8025f72: 6a79 ldr r1, [r7, #36] @ 0x24
  94180. 8025f74: 68b8 ldr r0, [r7, #8]
  94181. 8025f76: 4798 blx r3
  94182. * recreate it next time round the loop. If we're lucky the hardware
  94183. * will have already sent the packet, the free will really free, and
  94184. * there will be zero memory penalty.
  94185. */
  94186. pbuf_free(rambuf);
  94187. 8025f78: 6a78 ldr r0, [r7, #36] @ 0x24
  94188. 8025f7a: f7f4 fab7 bl 801a4ec <pbuf_free>
  94189. left = (u16_t)(left - fragsize);
  94190. 8025f7e: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  94191. 8025f82: 8d7b ldrh r3, [r7, #42] @ 0x2a
  94192. 8025f84: 1ad3 subs r3, r2, r3
  94193. 8025f86: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  94194. ofo = (u16_t)(ofo + nfb);
  94195. 8025f8a: f8b7 2040 ldrh.w r2, [r7, #64] @ 0x40
  94196. 8025f8e: 8f7b ldrh r3, [r7, #58] @ 0x3a
  94197. 8025f90: 4413 add r3, r2
  94198. 8025f92: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  94199. while (left) {
  94200. 8025f96: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  94201. 8025f9a: 2b00 cmp r3, #0
  94202. 8025f9c: f47f af19 bne.w 8025dd2 <ip4_frag+0x92>
  94203. }
  94204. MIB2_STATS_INC(mib2.ipfragoks);
  94205. return ERR_OK;
  94206. 8025fa0: 2300 movs r3, #0
  94207. 8025fa2: e002 b.n 8025faa <ip4_frag+0x26a>
  94208. goto memerr;
  94209. 8025fa4: bf00 nop
  94210. memerr:
  94211. MIB2_STATS_INC(mib2.ipfragfails);
  94212. return ERR_MEM;
  94213. 8025fa6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94214. }
  94215. 8025faa: 4618 mov r0, r3
  94216. 8025fac: 3748 adds r7, #72 @ 0x48
  94217. 8025fae: 46bd mov sp, r7
  94218. 8025fb0: bd80 pop {r7, pc}
  94219. 8025fb2: bf00 nop
  94220. 8025fb4: 080306b4 .word 0x080306b4
  94221. 8025fb8: 08030890 .word 0x08030890
  94222. 8025fbc: 080306fc .word 0x080306fc
  94223. 8025fc0: 080308ac .word 0x080308ac
  94224. 8025fc4: 080308cc .word 0x080308cc
  94225. 8025fc8: 08025cd9 .word 0x08025cd9
  94226. 08025fcc <ethernet_input>:
  94227. * @see ETHARP_SUPPORT_VLAN
  94228. * @see LWIP_HOOK_VLAN_CHECK
  94229. */
  94230. err_t
  94231. ethernet_input(struct pbuf *p, struct netif *netif)
  94232. {
  94233. 8025fcc: b580 push {r7, lr}
  94234. 8025fce: b086 sub sp, #24
  94235. 8025fd0: af00 add r7, sp, #0
  94236. 8025fd2: 6078 str r0, [r7, #4]
  94237. 8025fd4: 6039 str r1, [r7, #0]
  94238. struct eth_hdr *ethhdr;
  94239. u16_t type;
  94240. #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6
  94241. u16_t next_hdr_offset = SIZEOF_ETH_HDR;
  94242. 8025fd6: 230e movs r3, #14
  94243. 8025fd8: 82fb strh r3, [r7, #22]
  94244. #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
  94245. LWIP_ASSERT_CORE_LOCKED();
  94246. 8025fda: f7ea fab3 bl 8010544 <sys_check_core_locking>
  94247. if (p->len <= SIZEOF_ETH_HDR) {
  94248. 8025fde: 687b ldr r3, [r7, #4]
  94249. 8025fe0: 895b ldrh r3, [r3, #10]
  94250. 8025fe2: 2b0e cmp r3, #14
  94251. 8025fe4: d96e bls.n 80260c4 <ethernet_input+0xf8>
  94252. ETHARP_STATS_INC(etharp.drop);
  94253. MIB2_STATS_NETIF_INC(netif, ifinerrors);
  94254. goto free_and_return;
  94255. }
  94256. if (p->if_idx == NETIF_NO_INDEX) {
  94257. 8025fe6: 687b ldr r3, [r7, #4]
  94258. 8025fe8: 7bdb ldrb r3, [r3, #15]
  94259. 8025fea: 2b00 cmp r3, #0
  94260. 8025fec: d106 bne.n 8025ffc <ethernet_input+0x30>
  94261. p->if_idx = netif_get_index(netif);
  94262. 8025fee: 683b ldr r3, [r7, #0]
  94263. 8025ff0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  94264. 8025ff4: 3301 adds r3, #1
  94265. 8025ff6: b2da uxtb r2, r3
  94266. 8025ff8: 687b ldr r3, [r7, #4]
  94267. 8025ffa: 73da strb r2, [r3, #15]
  94268. }
  94269. /* points to packet payload, which starts with an Ethernet header */
  94270. ethhdr = (struct eth_hdr *)p->payload;
  94271. 8025ffc: 687b ldr r3, [r7, #4]
  94272. 8025ffe: 685b ldr r3, [r3, #4]
  94273. 8026000: 613b str r3, [r7, #16]
  94274. (unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->dest.addr[5],
  94275. (unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->src.addr[2],
  94276. (unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->src.addr[5],
  94277. lwip_htons(ethhdr->type)));
  94278. type = ethhdr->type;
  94279. 8026002: 693b ldr r3, [r7, #16]
  94280. 8026004: 7b1a ldrb r2, [r3, #12]
  94281. 8026006: 7b5b ldrb r3, [r3, #13]
  94282. 8026008: 021b lsls r3, r3, #8
  94283. 802600a: 4313 orrs r3, r2
  94284. 802600c: 81fb strh r3, [r7, #14]
  94285. #if LWIP_ARP_FILTER_NETIF
  94286. netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type));
  94287. #endif /* LWIP_ARP_FILTER_NETIF*/
  94288. if (ethhdr->dest.addr[0] & 1) {
  94289. 802600e: 693b ldr r3, [r7, #16]
  94290. 8026010: 781b ldrb r3, [r3, #0]
  94291. 8026012: f003 0301 and.w r3, r3, #1
  94292. 8026016: 2b00 cmp r3, #0
  94293. 8026018: d023 beq.n 8026062 <ethernet_input+0x96>
  94294. /* this might be a multicast or broadcast packet */
  94295. if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
  94296. 802601a: 693b ldr r3, [r7, #16]
  94297. 802601c: 781b ldrb r3, [r3, #0]
  94298. 802601e: 2b01 cmp r3, #1
  94299. 8026020: d10f bne.n 8026042 <ethernet_input+0x76>
  94300. #if LWIP_IPV4
  94301. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  94302. 8026022: 693b ldr r3, [r7, #16]
  94303. 8026024: 785b ldrb r3, [r3, #1]
  94304. 8026026: 2b00 cmp r3, #0
  94305. 8026028: d11b bne.n 8026062 <ethernet_input+0x96>
  94306. (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
  94307. 802602a: 693b ldr r3, [r7, #16]
  94308. 802602c: 789b ldrb r3, [r3, #2]
  94309. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  94310. 802602e: 2b5e cmp r3, #94 @ 0x5e
  94311. 8026030: d117 bne.n 8026062 <ethernet_input+0x96>
  94312. /* mark the pbuf as link-layer multicast */
  94313. p->flags |= PBUF_FLAG_LLMCAST;
  94314. 8026032: 687b ldr r3, [r7, #4]
  94315. 8026034: 7b5b ldrb r3, [r3, #13]
  94316. 8026036: f043 0310 orr.w r3, r3, #16
  94317. 802603a: b2da uxtb r2, r3
  94318. 802603c: 687b ldr r3, [r7, #4]
  94319. 802603e: 735a strb r2, [r3, #13]
  94320. 8026040: e00f b.n 8026062 <ethernet_input+0x96>
  94321. (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
  94322. /* mark the pbuf as link-layer multicast */
  94323. p->flags |= PBUF_FLAG_LLMCAST;
  94324. }
  94325. #endif /* LWIP_IPV6 */
  94326. else if (eth_addr_cmp(&ethhdr->dest, &ethbroadcast)) {
  94327. 8026042: 693b ldr r3, [r7, #16]
  94328. 8026044: 2206 movs r2, #6
  94329. 8026046: 4928 ldr r1, [pc, #160] @ (80260e8 <ethernet_input+0x11c>)
  94330. 8026048: 4618 mov r0, r3
  94331. 802604a: f003 fe2f bl 8029cac <memcmp>
  94332. 802604e: 4603 mov r3, r0
  94333. 8026050: 2b00 cmp r3, #0
  94334. 8026052: d106 bne.n 8026062 <ethernet_input+0x96>
  94335. /* mark the pbuf as link-layer broadcast */
  94336. p->flags |= PBUF_FLAG_LLBCAST;
  94337. 8026054: 687b ldr r3, [r7, #4]
  94338. 8026056: 7b5b ldrb r3, [r3, #13]
  94339. 8026058: f043 0308 orr.w r3, r3, #8
  94340. 802605c: b2da uxtb r2, r3
  94341. 802605e: 687b ldr r3, [r7, #4]
  94342. 8026060: 735a strb r2, [r3, #13]
  94343. }
  94344. }
  94345. switch (type) {
  94346. 8026062: 89fb ldrh r3, [r7, #14]
  94347. 8026064: 2b08 cmp r3, #8
  94348. 8026066: d003 beq.n 8026070 <ethernet_input+0xa4>
  94349. 8026068: f5b3 6fc1 cmp.w r3, #1544 @ 0x608
  94350. 802606c: d014 beq.n 8026098 <ethernet_input+0xcc>
  94351. }
  94352. #endif
  94353. ETHARP_STATS_INC(etharp.proterr);
  94354. ETHARP_STATS_INC(etharp.drop);
  94355. MIB2_STATS_NETIF_INC(netif, ifinunknownprotos);
  94356. goto free_and_return;
  94357. 802606e: e032 b.n 80260d6 <ethernet_input+0x10a>
  94358. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  94359. 8026070: 683b ldr r3, [r7, #0]
  94360. 8026072: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  94361. 8026076: f003 0308 and.w r3, r3, #8
  94362. 802607a: 2b00 cmp r3, #0
  94363. 802607c: d024 beq.n 80260c8 <ethernet_input+0xfc>
  94364. if (pbuf_remove_header(p, next_hdr_offset)) {
  94365. 802607e: 8afb ldrh r3, [r7, #22]
  94366. 8026080: 4619 mov r1, r3
  94367. 8026082: 6878 ldr r0, [r7, #4]
  94368. 8026084: f7f4 f97a bl 801a37c <pbuf_remove_header>
  94369. 8026088: 4603 mov r3, r0
  94370. 802608a: 2b00 cmp r3, #0
  94371. 802608c: d11e bne.n 80260cc <ethernet_input+0x100>
  94372. ip4_input(p, netif);
  94373. 802608e: 6839 ldr r1, [r7, #0]
  94374. 8026090: 6878 ldr r0, [r7, #4]
  94375. 8026092: f7fe fd2f bl 8024af4 <ip4_input>
  94376. break;
  94377. 8026096: e013 b.n 80260c0 <ethernet_input+0xf4>
  94378. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  94379. 8026098: 683b ldr r3, [r7, #0]
  94380. 802609a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  94381. 802609e: f003 0308 and.w r3, r3, #8
  94382. 80260a2: 2b00 cmp r3, #0
  94383. 80260a4: d014 beq.n 80260d0 <ethernet_input+0x104>
  94384. if (pbuf_remove_header(p, next_hdr_offset)) {
  94385. 80260a6: 8afb ldrh r3, [r7, #22]
  94386. 80260a8: 4619 mov r1, r3
  94387. 80260aa: 6878 ldr r0, [r7, #4]
  94388. 80260ac: f7f4 f966 bl 801a37c <pbuf_remove_header>
  94389. 80260b0: 4603 mov r3, r0
  94390. 80260b2: 2b00 cmp r3, #0
  94391. 80260b4: d10e bne.n 80260d4 <ethernet_input+0x108>
  94392. etharp_input(p, netif);
  94393. 80260b6: 6839 ldr r1, [r7, #0]
  94394. 80260b8: 6878 ldr r0, [r7, #4]
  94395. 80260ba: f7fd fe9d bl 8023df8 <etharp_input>
  94396. break;
  94397. 80260be: bf00 nop
  94398. }
  94399. /* This means the pbuf is freed or consumed,
  94400. so the caller doesn't have to free it again */
  94401. return ERR_OK;
  94402. 80260c0: 2300 movs r3, #0
  94403. 80260c2: e00c b.n 80260de <ethernet_input+0x112>
  94404. goto free_and_return;
  94405. 80260c4: bf00 nop
  94406. 80260c6: e006 b.n 80260d6 <ethernet_input+0x10a>
  94407. goto free_and_return;
  94408. 80260c8: bf00 nop
  94409. 80260ca: e004 b.n 80260d6 <ethernet_input+0x10a>
  94410. goto free_and_return;
  94411. 80260cc: bf00 nop
  94412. 80260ce: e002 b.n 80260d6 <ethernet_input+0x10a>
  94413. goto free_and_return;
  94414. 80260d0: bf00 nop
  94415. 80260d2: e000 b.n 80260d6 <ethernet_input+0x10a>
  94416. goto free_and_return;
  94417. 80260d4: bf00 nop
  94418. free_and_return:
  94419. pbuf_free(p);
  94420. 80260d6: 6878 ldr r0, [r7, #4]
  94421. 80260d8: f7f4 fa08 bl 801a4ec <pbuf_free>
  94422. return ERR_OK;
  94423. 80260dc: 2300 movs r3, #0
  94424. }
  94425. 80260de: 4618 mov r0, r3
  94426. 80260e0: 3718 adds r7, #24
  94427. 80260e2: 46bd mov sp, r7
  94428. 80260e4: bd80 pop {r7, pc}
  94429. 80260e6: bf00 nop
  94430. 80260e8: 08030c70 .word 0x08030c70
  94431. 080260ec <ethernet_output>:
  94432. * @return ERR_OK if the packet was sent, any other err_t on failure
  94433. */
  94434. err_t
  94435. ethernet_output(struct netif * netif, struct pbuf * p,
  94436. const struct eth_addr * src, const struct eth_addr * dst,
  94437. u16_t eth_type) {
  94438. 80260ec: b580 push {r7, lr}
  94439. 80260ee: b086 sub sp, #24
  94440. 80260f0: af00 add r7, sp, #0
  94441. 80260f2: 60f8 str r0, [r7, #12]
  94442. 80260f4: 60b9 str r1, [r7, #8]
  94443. 80260f6: 607a str r2, [r7, #4]
  94444. 80260f8: 603b str r3, [r7, #0]
  94445. struct eth_hdr *ethhdr;
  94446. u16_t eth_type_be = lwip_htons(eth_type);
  94447. 80260fa: 8c3b ldrh r3, [r7, #32]
  94448. 80260fc: 4618 mov r0, r3
  94449. 80260fe: f7f2 fd13 bl 8018b28 <lwip_htons>
  94450. 8026102: 4603 mov r3, r0
  94451. 8026104: 82fb strh r3, [r7, #22]
  94452. eth_type_be = PP_HTONS(ETHTYPE_VLAN);
  94453. } else
  94454. #endif /* ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) */
  94455. {
  94456. if (pbuf_add_header(p, SIZEOF_ETH_HDR) != 0) {
  94457. 8026106: 210e movs r1, #14
  94458. 8026108: 68b8 ldr r0, [r7, #8]
  94459. 802610a: f7f4 f927 bl 801a35c <pbuf_add_header>
  94460. 802610e: 4603 mov r3, r0
  94461. 8026110: 2b00 cmp r3, #0
  94462. 8026112: d127 bne.n 8026164 <ethernet_output+0x78>
  94463. goto pbuf_header_failed;
  94464. }
  94465. }
  94466. LWIP_ASSERT_CORE_LOCKED();
  94467. 8026114: f7ea fa16 bl 8010544 <sys_check_core_locking>
  94468. ethhdr = (struct eth_hdr *)p->payload;
  94469. 8026118: 68bb ldr r3, [r7, #8]
  94470. 802611a: 685b ldr r3, [r3, #4]
  94471. 802611c: 613b str r3, [r7, #16]
  94472. ethhdr->type = eth_type_be;
  94473. 802611e: 693b ldr r3, [r7, #16]
  94474. 8026120: 8afa ldrh r2, [r7, #22]
  94475. 8026122: 819a strh r2, [r3, #12]
  94476. SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);
  94477. 8026124: 693b ldr r3, [r7, #16]
  94478. 8026126: 2206 movs r2, #6
  94479. 8026128: 6839 ldr r1, [r7, #0]
  94480. 802612a: 4618 mov r0, r3
  94481. 802612c: f003 fedf bl 8029eee <memcpy>
  94482. SMEMCPY(&ethhdr->src, src, ETH_HWADDR_LEN);
  94483. 8026130: 693b ldr r3, [r7, #16]
  94484. 8026132: 3306 adds r3, #6
  94485. 8026134: 2206 movs r2, #6
  94486. 8026136: 6879 ldr r1, [r7, #4]
  94487. 8026138: 4618 mov r0, r3
  94488. 802613a: f003 fed8 bl 8029eee <memcpy>
  94489. LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!",
  94490. 802613e: 68fb ldr r3, [r7, #12]
  94491. 8026140: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  94492. 8026144: 2b06 cmp r3, #6
  94493. 8026146: d006 beq.n 8026156 <ethernet_output+0x6a>
  94494. 8026148: 4b0a ldr r3, [pc, #40] @ (8026174 <ethernet_output+0x88>)
  94495. 802614a: f44f 7299 mov.w r2, #306 @ 0x132
  94496. 802614e: 490a ldr r1, [pc, #40] @ (8026178 <ethernet_output+0x8c>)
  94497. 8026150: 480a ldr r0, [pc, #40] @ (802617c <ethernet_output+0x90>)
  94498. 8026152: f003 fc43 bl 80299dc <iprintf>
  94499. (netif->hwaddr_len == ETH_HWADDR_LEN));
  94500. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
  94501. ("ethernet_output: sending packet %p\n", (void *)p));
  94502. /* send the packet */
  94503. return netif->linkoutput(netif, p);
  94504. 8026156: 68fb ldr r3, [r7, #12]
  94505. 8026158: 699b ldr r3, [r3, #24]
  94506. 802615a: 68b9 ldr r1, [r7, #8]
  94507. 802615c: 68f8 ldr r0, [r7, #12]
  94508. 802615e: 4798 blx r3
  94509. 8026160: 4603 mov r3, r0
  94510. 8026162: e002 b.n 802616a <ethernet_output+0x7e>
  94511. goto pbuf_header_failed;
  94512. 8026164: bf00 nop
  94513. pbuf_header_failed:
  94514. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  94515. ("ethernet_output: could not allocate room for header.\n"));
  94516. LINK_STATS_INC(link.lenerr);
  94517. return ERR_BUF;
  94518. 8026166: f06f 0301 mvn.w r3, #1
  94519. }
  94520. 802616a: 4618 mov r0, r3
  94521. 802616c: 3718 adds r7, #24
  94522. 802616e: 46bd mov sp, r7
  94523. 8026170: bd80 pop {r7, pc}
  94524. 8026172: bf00 nop
  94525. 8026174: 080308dc .word 0x080308dc
  94526. 8026178: 08030914 .word 0x08030914
  94527. 802617c: 08030948 .word 0x08030948
  94528. 08026180 <sys_mbox_new>:
  94529. #endif
  94530. /*-----------------------------------------------------------------------------------*/
  94531. // Creates an empty mailbox.
  94532. err_t sys_mbox_new(sys_mbox_t *mbox, int size)
  94533. {
  94534. 8026180: b580 push {r7, lr}
  94535. 8026182: b082 sub sp, #8
  94536. 8026184: af00 add r7, sp, #0
  94537. 8026186: 6078 str r0, [r7, #4]
  94538. 8026188: 6039 str r1, [r7, #0]
  94539. #if (osCMSIS < 0x20000U)
  94540. osMessageQDef(QUEUE, size, void *);
  94541. *mbox = osMessageCreate(osMessageQ(QUEUE), NULL);
  94542. #else
  94543. *mbox = osMessageQueueNew(size, sizeof(void *), NULL);
  94544. 802618a: 683b ldr r3, [r7, #0]
  94545. 802618c: 2200 movs r2, #0
  94546. 802618e: 2104 movs r1, #4
  94547. 8026190: 4618 mov r0, r3
  94548. 8026192: f7ea fe6d bl 8010e70 <osMessageQueueNew>
  94549. 8026196: 4602 mov r2, r0
  94550. 8026198: 687b ldr r3, [r7, #4]
  94551. 802619a: 601a str r2, [r3, #0]
  94552. if(lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used)
  94553. {
  94554. lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used;
  94555. }
  94556. #endif /* SYS_STATS */
  94557. if(*mbox == NULL)
  94558. 802619c: 687b ldr r3, [r7, #4]
  94559. 802619e: 681b ldr r3, [r3, #0]
  94560. 80261a0: 2b00 cmp r3, #0
  94561. 80261a2: d102 bne.n 80261aa <sys_mbox_new+0x2a>
  94562. return ERR_MEM;
  94563. 80261a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94564. 80261a8: e000 b.n 80261ac <sys_mbox_new+0x2c>
  94565. return ERR_OK;
  94566. 80261aa: 2300 movs r3, #0
  94567. }
  94568. 80261ac: 4618 mov r0, r3
  94569. 80261ae: 3708 adds r7, #8
  94570. 80261b0: 46bd mov sp, r7
  94571. 80261b2: bd80 pop {r7, pc}
  94572. 080261b4 <sys_mbox_free>:
  94573. Deallocates a mailbox. If there are messages still present in the
  94574. mailbox when the mailbox is deallocated, it is an indication of a
  94575. programming error in lwIP and the developer should be notified.
  94576. */
  94577. void sys_mbox_free(sys_mbox_t *mbox)
  94578. {
  94579. 80261b4: b580 push {r7, lr}
  94580. 80261b6: b082 sub sp, #8
  94581. 80261b8: af00 add r7, sp, #0
  94582. 80261ba: 6078 str r0, [r7, #4]
  94583. #if (osCMSIS < 0x20000U)
  94584. if(osMessageWaiting(*mbox))
  94585. #else
  94586. if(osMessageQueueGetCount(*mbox))
  94587. 80261bc: 687b ldr r3, [r7, #4]
  94588. 80261be: 681b ldr r3, [r3, #0]
  94589. 80261c0: 4618 mov r0, r3
  94590. 80261c2: f7ea ff87 bl 80110d4 <osMessageQueueGetCount>
  94591. }
  94592. #if (osCMSIS < 0x20000U)
  94593. osMessageDelete(*mbox);
  94594. #else
  94595. osMessageQueueDelete(*mbox);
  94596. 80261c6: 687b ldr r3, [r7, #4]
  94597. 80261c8: 681b ldr r3, [r3, #0]
  94598. 80261ca: 4618 mov r0, r3
  94599. 80261cc: f7ea ffa2 bl 8011114 <osMessageQueueDelete>
  94600. #endif
  94601. #if SYS_STATS
  94602. --lwip_stats.sys.mbox.used;
  94603. #endif /* SYS_STATS */
  94604. }
  94605. 80261d0: bf00 nop
  94606. 80261d2: 3708 adds r7, #8
  94607. 80261d4: 46bd mov sp, r7
  94608. 80261d6: bd80 pop {r7, pc}
  94609. 080261d8 <sys_mbox_trypost>:
  94610. /*-----------------------------------------------------------------------------------*/
  94611. // Try to post the "msg" to the mailbox.
  94612. err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
  94613. {
  94614. 80261d8: b580 push {r7, lr}
  94615. 80261da: b084 sub sp, #16
  94616. 80261dc: af00 add r7, sp, #0
  94617. 80261de: 6078 str r0, [r7, #4]
  94618. 80261e0: 6039 str r1, [r7, #0]
  94619. err_t result;
  94620. #if (osCMSIS < 0x20000U)
  94621. if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK)
  94622. #else
  94623. if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK)
  94624. 80261e2: 687b ldr r3, [r7, #4]
  94625. 80261e4: 6818 ldr r0, [r3, #0]
  94626. 80261e6: 4639 mov r1, r7
  94627. 80261e8: 2300 movs r3, #0
  94628. 80261ea: 2200 movs r2, #0
  94629. 80261ec: f7ea feb4 bl 8010f58 <osMessageQueuePut>
  94630. 80261f0: 4603 mov r3, r0
  94631. 80261f2: 2b00 cmp r3, #0
  94632. 80261f4: d102 bne.n 80261fc <sys_mbox_trypost+0x24>
  94633. #endif
  94634. {
  94635. result = ERR_OK;
  94636. 80261f6: 2300 movs r3, #0
  94637. 80261f8: 73fb strb r3, [r7, #15]
  94638. 80261fa: e001 b.n 8026200 <sys_mbox_trypost+0x28>
  94639. }
  94640. else
  94641. {
  94642. // could not post, queue must be full
  94643. result = ERR_MEM;
  94644. 80261fc: 23ff movs r3, #255 @ 0xff
  94645. 80261fe: 73fb strb r3, [r7, #15]
  94646. #if SYS_STATS
  94647. lwip_stats.sys.mbox.err++;
  94648. #endif /* SYS_STATS */
  94649. }
  94650. return result;
  94651. 8026200: f997 300f ldrsb.w r3, [r7, #15]
  94652. }
  94653. 8026204: 4618 mov r0, r3
  94654. 8026206: 3710 adds r7, #16
  94655. 8026208: 46bd mov sp, r7
  94656. 802620a: bd80 pop {r7, pc}
  94657. 0802620c <sys_arch_mbox_fetch>:
  94658. Note that a function with a similar name, sys_mbox_fetch(), is
  94659. implemented by lwIP.
  94660. */
  94661. u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
  94662. {
  94663. 802620c: b580 push {r7, lr}
  94664. 802620e: b086 sub sp, #24
  94665. 8026210: af00 add r7, sp, #0
  94666. 8026212: 60f8 str r0, [r7, #12]
  94667. 8026214: 60b9 str r1, [r7, #8]
  94668. 8026216: 607a str r2, [r7, #4]
  94669. #if (osCMSIS < 0x20000U)
  94670. osEvent event;
  94671. uint32_t starttime = osKernelSysTick();
  94672. #else
  94673. osStatus_t status;
  94674. uint32_t starttime = osKernelGetTickCount();
  94675. 8026218: f7ea fb0a bl 8010830 <osKernelGetTickCount>
  94676. 802621c: 6178 str r0, [r7, #20]
  94677. #endif
  94678. if(timeout != 0)
  94679. 802621e: 687b ldr r3, [r7, #4]
  94680. 8026220: 2b00 cmp r3, #0
  94681. 8026222: d013 beq.n 802624c <sys_arch_mbox_fetch+0x40>
  94682. {
  94683. *msg = (void *)event.value.v;
  94684. return (osKernelSysTick() - starttime);
  94685. }
  94686. #else
  94687. status = osMessageQueueGet(*mbox, msg, 0, timeout);
  94688. 8026224: 68fb ldr r3, [r7, #12]
  94689. 8026226: 6818 ldr r0, [r3, #0]
  94690. 8026228: 687b ldr r3, [r7, #4]
  94691. 802622a: 2200 movs r2, #0
  94692. 802622c: 68b9 ldr r1, [r7, #8]
  94693. 802622e: f7ea fef3 bl 8011018 <osMessageQueueGet>
  94694. 8026232: 6138 str r0, [r7, #16]
  94695. if (status == osOK)
  94696. 8026234: 693b ldr r3, [r7, #16]
  94697. 8026236: 2b00 cmp r3, #0
  94698. 8026238: d105 bne.n 8026246 <sys_arch_mbox_fetch+0x3a>
  94699. {
  94700. return (osKernelGetTickCount() - starttime);
  94701. 802623a: f7ea faf9 bl 8010830 <osKernelGetTickCount>
  94702. 802623e: 4602 mov r2, r0
  94703. 8026240: 697b ldr r3, [r7, #20]
  94704. 8026242: 1ad3 subs r3, r2, r3
  94705. 8026244: e00f b.n 8026266 <sys_arch_mbox_fetch+0x5a>
  94706. }
  94707. #endif
  94708. else
  94709. {
  94710. return SYS_ARCH_TIMEOUT;
  94711. 8026246: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94712. 802624a: e00c b.n 8026266 <sys_arch_mbox_fetch+0x5a>
  94713. #if (osCMSIS < 0x20000U)
  94714. event = osMessageGet (*mbox, osWaitForever);
  94715. *msg = (void *)event.value.v;
  94716. return (osKernelSysTick() - starttime);
  94717. #else
  94718. osMessageQueueGet(*mbox, msg, 0, osWaitForever );
  94719. 802624c: 68fb ldr r3, [r7, #12]
  94720. 802624e: 6818 ldr r0, [r3, #0]
  94721. 8026250: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94722. 8026254: 2200 movs r2, #0
  94723. 8026256: 68b9 ldr r1, [r7, #8]
  94724. 8026258: f7ea fede bl 8011018 <osMessageQueueGet>
  94725. return (osKernelGetTickCount() - starttime);
  94726. 802625c: f7ea fae8 bl 8010830 <osKernelGetTickCount>
  94727. 8026260: 4602 mov r2, r0
  94728. 8026262: 697b ldr r3, [r7, #20]
  94729. 8026264: 1ad3 subs r3, r2, r3
  94730. #endif
  94731. }
  94732. }
  94733. 8026266: 4618 mov r0, r3
  94734. 8026268: 3718 adds r7, #24
  94735. 802626a: 46bd mov sp, r7
  94736. 802626c: bd80 pop {r7, pc}
  94737. 0802626e <sys_arch_mbox_tryfetch>:
  94738. /*
  94739. Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll
  94740. return with SYS_MBOX_EMPTY. On success, 0 is returned.
  94741. */
  94742. u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
  94743. {
  94744. 802626e: b580 push {r7, lr}
  94745. 8026270: b082 sub sp, #8
  94746. 8026272: af00 add r7, sp, #0
  94747. 8026274: 6078 str r0, [r7, #4]
  94748. 8026276: 6039 str r1, [r7, #0]
  94749. if(event.status == osEventMessage)
  94750. {
  94751. *msg = (void *)event.value.v;
  94752. #else
  94753. if (osMessageQueueGet(*mbox, msg, 0, 0) == osOK)
  94754. 8026278: 687b ldr r3, [r7, #4]
  94755. 802627a: 6818 ldr r0, [r3, #0]
  94756. 802627c: 2300 movs r3, #0
  94757. 802627e: 2200 movs r2, #0
  94758. 8026280: 6839 ldr r1, [r7, #0]
  94759. 8026282: f7ea fec9 bl 8011018 <osMessageQueueGet>
  94760. 8026286: 4603 mov r3, r0
  94761. 8026288: 2b00 cmp r3, #0
  94762. 802628a: d101 bne.n 8026290 <sys_arch_mbox_tryfetch+0x22>
  94763. {
  94764. #endif
  94765. return ERR_OK;
  94766. 802628c: 2300 movs r3, #0
  94767. 802628e: e001 b.n 8026294 <sys_arch_mbox_tryfetch+0x26>
  94768. }
  94769. else
  94770. {
  94771. return SYS_MBOX_EMPTY;
  94772. 8026290: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94773. }
  94774. }
  94775. 8026294: 4618 mov r0, r3
  94776. 8026296: 3708 adds r7, #8
  94777. 8026298: 46bd mov sp, r7
  94778. 802629a: bd80 pop {r7, pc}
  94779. 0802629c <sys_mbox_valid>:
  94780. /*----------------------------------------------------------------------------------*/
  94781. int sys_mbox_valid(sys_mbox_t *mbox)
  94782. {
  94783. 802629c: b480 push {r7}
  94784. 802629e: b083 sub sp, #12
  94785. 80262a0: af00 add r7, sp, #0
  94786. 80262a2: 6078 str r0, [r7, #4]
  94787. if (*mbox == SYS_MBOX_NULL)
  94788. 80262a4: 687b ldr r3, [r7, #4]
  94789. 80262a6: 681b ldr r3, [r3, #0]
  94790. 80262a8: 2b00 cmp r3, #0
  94791. 80262aa: d101 bne.n 80262b0 <sys_mbox_valid+0x14>
  94792. return 0;
  94793. 80262ac: 2300 movs r3, #0
  94794. 80262ae: e000 b.n 80262b2 <sys_mbox_valid+0x16>
  94795. else
  94796. return 1;
  94797. 80262b0: 2301 movs r3, #1
  94798. }
  94799. 80262b2: 4618 mov r0, r3
  94800. 80262b4: 370c adds r7, #12
  94801. 80262b6: 46bd mov sp, r7
  94802. 80262b8: f85d 7b04 ldr.w r7, [sp], #4
  94803. 80262bc: 4770 bx lr
  94804. 080262be <sys_mbox_set_invalid>:
  94805. /*-----------------------------------------------------------------------------------*/
  94806. void sys_mbox_set_invalid(sys_mbox_t *mbox)
  94807. {
  94808. 80262be: b480 push {r7}
  94809. 80262c0: b083 sub sp, #12
  94810. 80262c2: af00 add r7, sp, #0
  94811. 80262c4: 6078 str r0, [r7, #4]
  94812. *mbox = SYS_MBOX_NULL;
  94813. 80262c6: 687b ldr r3, [r7, #4]
  94814. 80262c8: 2200 movs r2, #0
  94815. 80262ca: 601a str r2, [r3, #0]
  94816. }
  94817. 80262cc: bf00 nop
  94818. 80262ce: 370c adds r7, #12
  94819. 80262d0: 46bd mov sp, r7
  94820. 80262d2: f85d 7b04 ldr.w r7, [sp], #4
  94821. 80262d6: 4770 bx lr
  94822. 080262d8 <sys_sem_new>:
  94823. /*-----------------------------------------------------------------------------------*/
  94824. // Creates a new semaphore. The "count" argument specifies
  94825. // the initial state of the semaphore.
  94826. err_t sys_sem_new(sys_sem_t *sem, u8_t count)
  94827. {
  94828. 80262d8: b580 push {r7, lr}
  94829. 80262da: b082 sub sp, #8
  94830. 80262dc: af00 add r7, sp, #0
  94831. 80262de: 6078 str r0, [r7, #4]
  94832. 80262e0: 460b mov r3, r1
  94833. 80262e2: 70fb strb r3, [r7, #3]
  94834. #if (osCMSIS < 0x20000U)
  94835. osSemaphoreDef(SEM);
  94836. *sem = osSemaphoreCreate (osSemaphore(SEM), 1);
  94837. #else
  94838. *sem = osSemaphoreNew(UINT16_MAX, count, NULL);
  94839. 80262e4: 78fb ldrb r3, [r7, #3]
  94840. 80262e6: 2200 movs r2, #0
  94841. 80262e8: 4619 mov r1, r3
  94842. 80262ea: f64f 70ff movw r0, #65535 @ 0xffff
  94843. 80262ee: f7ea fc7b bl 8010be8 <osSemaphoreNew>
  94844. 80262f2: 4602 mov r2, r0
  94845. 80262f4: 687b ldr r3, [r7, #4]
  94846. 80262f6: 601a str r2, [r3, #0]
  94847. #endif
  94848. if(*sem == NULL)
  94849. 80262f8: 687b ldr r3, [r7, #4]
  94850. 80262fa: 681b ldr r3, [r3, #0]
  94851. 80262fc: 2b00 cmp r3, #0
  94852. 80262fe: d102 bne.n 8026306 <sys_sem_new+0x2e>
  94853. {
  94854. #if SYS_STATS
  94855. ++lwip_stats.sys.sem.err;
  94856. #endif /* SYS_STATS */
  94857. return ERR_MEM;
  94858. 8026300: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94859. 8026304: e009 b.n 802631a <sys_sem_new+0x42>
  94860. }
  94861. if(count == 0) // Means it can't be taken
  94862. 8026306: 78fb ldrb r3, [r7, #3]
  94863. 8026308: 2b00 cmp r3, #0
  94864. 802630a: d105 bne.n 8026318 <sys_sem_new+0x40>
  94865. {
  94866. #if (osCMSIS < 0x20000U)
  94867. osSemaphoreWait(*sem, 0);
  94868. #else
  94869. osSemaphoreAcquire(*sem, 0);
  94870. 802630c: 687b ldr r3, [r7, #4]
  94871. 802630e: 681b ldr r3, [r3, #0]
  94872. 8026310: 2100 movs r1, #0
  94873. 8026312: 4618 mov r0, r3
  94874. 8026314: f7ea fcf2 bl 8010cfc <osSemaphoreAcquire>
  94875. if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) {
  94876. lwip_stats.sys.sem.max = lwip_stats.sys.sem.used;
  94877. }
  94878. #endif /* SYS_STATS */
  94879. return ERR_OK;
  94880. 8026318: 2300 movs r3, #0
  94881. }
  94882. 802631a: 4618 mov r0, r3
  94883. 802631c: 3708 adds r7, #8
  94884. 802631e: 46bd mov sp, r7
  94885. 8026320: bd80 pop {r7, pc}
  94886. 08026322 <sys_arch_sem_wait>:
  94887. Notice that lwIP implements a function with a similar name,
  94888. sys_sem_wait(), that uses the sys_arch_sem_wait() function.
  94889. */
  94890. u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
  94891. {
  94892. 8026322: b580 push {r7, lr}
  94893. 8026324: b084 sub sp, #16
  94894. 8026326: af00 add r7, sp, #0
  94895. 8026328: 6078 str r0, [r7, #4]
  94896. 802632a: 6039 str r1, [r7, #0]
  94897. #if (osCMSIS < 0x20000U)
  94898. uint32_t starttime = osKernelSysTick();
  94899. #else
  94900. uint32_t starttime = osKernelGetTickCount();
  94901. 802632c: f7ea fa80 bl 8010830 <osKernelGetTickCount>
  94902. 8026330: 60f8 str r0, [r7, #12]
  94903. #endif
  94904. if(timeout != 0)
  94905. 8026332: 683b ldr r3, [r7, #0]
  94906. 8026334: 2b00 cmp r3, #0
  94907. 8026336: d011 beq.n 802635c <sys_arch_sem_wait+0x3a>
  94908. #if (osCMSIS < 0x20000U)
  94909. if(osSemaphoreWait (*sem, timeout) == osOK)
  94910. {
  94911. return (osKernelSysTick() - starttime);
  94912. #else
  94913. if(osSemaphoreAcquire(*sem, timeout) == osOK)
  94914. 8026338: 687b ldr r3, [r7, #4]
  94915. 802633a: 681b ldr r3, [r3, #0]
  94916. 802633c: 6839 ldr r1, [r7, #0]
  94917. 802633e: 4618 mov r0, r3
  94918. 8026340: f7ea fcdc bl 8010cfc <osSemaphoreAcquire>
  94919. 8026344: 4603 mov r3, r0
  94920. 8026346: 2b00 cmp r3, #0
  94921. 8026348: d105 bne.n 8026356 <sys_arch_sem_wait+0x34>
  94922. {
  94923. return (osKernelGetTickCount() - starttime);
  94924. 802634a: f7ea fa71 bl 8010830 <osKernelGetTickCount>
  94925. 802634e: 4602 mov r2, r0
  94926. 8026350: 68fb ldr r3, [r7, #12]
  94927. 8026352: 1ad3 subs r3, r2, r3
  94928. 8026354: e012 b.n 802637c <sys_arch_sem_wait+0x5a>
  94929. #endif
  94930. }
  94931. else
  94932. {
  94933. return SYS_ARCH_TIMEOUT;
  94934. 8026356: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94935. 802635a: e00f b.n 802637c <sys_arch_sem_wait+0x5a>
  94936. {
  94937. #if (osCMSIS < 0x20000U)
  94938. while(osSemaphoreWait (*sem, osWaitForever) != osOK);
  94939. return (osKernelSysTick() - starttime);
  94940. #else
  94941. while(osSemaphoreAcquire(*sem, osWaitForever) != osOK);
  94942. 802635c: bf00 nop
  94943. 802635e: 687b ldr r3, [r7, #4]
  94944. 8026360: 681b ldr r3, [r3, #0]
  94945. 8026362: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  94946. 8026366: 4618 mov r0, r3
  94947. 8026368: f7ea fcc8 bl 8010cfc <osSemaphoreAcquire>
  94948. 802636c: 4603 mov r3, r0
  94949. 802636e: 2b00 cmp r3, #0
  94950. 8026370: d1f5 bne.n 802635e <sys_arch_sem_wait+0x3c>
  94951. return (osKernelGetTickCount() - starttime);
  94952. 8026372: f7ea fa5d bl 8010830 <osKernelGetTickCount>
  94953. 8026376: 4602 mov r2, r0
  94954. 8026378: 68fb ldr r3, [r7, #12]
  94955. 802637a: 1ad3 subs r3, r2, r3
  94956. #endif
  94957. }
  94958. }
  94959. 802637c: 4618 mov r0, r3
  94960. 802637e: 3710 adds r7, #16
  94961. 8026380: 46bd mov sp, r7
  94962. 8026382: bd80 pop {r7, pc}
  94963. 08026384 <sys_sem_signal>:
  94964. /*-----------------------------------------------------------------------------------*/
  94965. // Signals a semaphore
  94966. void sys_sem_signal(sys_sem_t *sem)
  94967. {
  94968. 8026384: b580 push {r7, lr}
  94969. 8026386: b082 sub sp, #8
  94970. 8026388: af00 add r7, sp, #0
  94971. 802638a: 6078 str r0, [r7, #4]
  94972. osSemaphoreRelease(*sem);
  94973. 802638c: 687b ldr r3, [r7, #4]
  94974. 802638e: 681b ldr r3, [r3, #0]
  94975. 8026390: 4618 mov r0, r3
  94976. 8026392: f7ea fd05 bl 8010da0 <osSemaphoreRelease>
  94977. }
  94978. 8026396: bf00 nop
  94979. 8026398: 3708 adds r7, #8
  94980. 802639a: 46bd mov sp, r7
  94981. 802639c: bd80 pop {r7, pc}
  94982. 0802639e <sys_sem_free>:
  94983. /*-----------------------------------------------------------------------------------*/
  94984. // Deallocates a semaphore
  94985. void sys_sem_free(sys_sem_t *sem)
  94986. {
  94987. 802639e: b580 push {r7, lr}
  94988. 80263a0: b082 sub sp, #8
  94989. 80263a2: af00 add r7, sp, #0
  94990. 80263a4: 6078 str r0, [r7, #4]
  94991. #if SYS_STATS
  94992. --lwip_stats.sys.sem.used;
  94993. #endif /* SYS_STATS */
  94994. osSemaphoreDelete(*sem);
  94995. 80263a6: 687b ldr r3, [r7, #4]
  94996. 80263a8: 681b ldr r3, [r3, #0]
  94997. 80263aa: 4618 mov r0, r3
  94998. 80263ac: f7ea fd3c bl 8010e28 <osSemaphoreDelete>
  94999. }
  95000. 80263b0: bf00 nop
  95001. 80263b2: 3708 adds r7, #8
  95002. 80263b4: 46bd mov sp, r7
  95003. 80263b6: bd80 pop {r7, pc}
  95004. 080263b8 <sys_sem_valid>:
  95005. /*-----------------------------------------------------------------------------------*/
  95006. int sys_sem_valid(sys_sem_t *sem)
  95007. {
  95008. 80263b8: b480 push {r7}
  95009. 80263ba: b083 sub sp, #12
  95010. 80263bc: af00 add r7, sp, #0
  95011. 80263be: 6078 str r0, [r7, #4]
  95012. if (*sem == SYS_SEM_NULL)
  95013. 80263c0: 687b ldr r3, [r7, #4]
  95014. 80263c2: 681b ldr r3, [r3, #0]
  95015. 80263c4: 2b00 cmp r3, #0
  95016. 80263c6: d101 bne.n 80263cc <sys_sem_valid+0x14>
  95017. return 0;
  95018. 80263c8: 2300 movs r3, #0
  95019. 80263ca: e000 b.n 80263ce <sys_sem_valid+0x16>
  95020. else
  95021. return 1;
  95022. 80263cc: 2301 movs r3, #1
  95023. }
  95024. 80263ce: 4618 mov r0, r3
  95025. 80263d0: 370c adds r7, #12
  95026. 80263d2: 46bd mov sp, r7
  95027. 80263d4: f85d 7b04 ldr.w r7, [sp], #4
  95028. 80263d8: 4770 bx lr
  95029. 080263da <sys_sem_set_invalid>:
  95030. /*-----------------------------------------------------------------------------------*/
  95031. void sys_sem_set_invalid(sys_sem_t *sem)
  95032. {
  95033. 80263da: b480 push {r7}
  95034. 80263dc: b083 sub sp, #12
  95035. 80263de: af00 add r7, sp, #0
  95036. 80263e0: 6078 str r0, [r7, #4]
  95037. *sem = SYS_SEM_NULL;
  95038. 80263e2: 687b ldr r3, [r7, #4]
  95039. 80263e4: 2200 movs r2, #0
  95040. 80263e6: 601a str r2, [r3, #0]
  95041. }
  95042. 80263e8: bf00 nop
  95043. 80263ea: 370c adds r7, #12
  95044. 80263ec: 46bd mov sp, r7
  95045. 80263ee: f85d 7b04 ldr.w r7, [sp], #4
  95046. 80263f2: 4770 bx lr
  95047. 080263f4 <sys_init>:
  95048. #else
  95049. osMutexId_t lwip_sys_mutex;
  95050. #endif
  95051. // Initialize sys arch
  95052. void sys_init(void)
  95053. {
  95054. 80263f4: b580 push {r7, lr}
  95055. 80263f6: af00 add r7, sp, #0
  95056. #if (osCMSIS < 0x20000U)
  95057. lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex));
  95058. #else
  95059. lwip_sys_mutex = osMutexNew(NULL);
  95060. 80263f8: 2000 movs r0, #0
  95061. 80263fa: f7ea fae7 bl 80109cc <osMutexNew>
  95062. 80263fe: 4603 mov r3, r0
  95063. 8026400: 4a01 ldr r2, [pc, #4] @ (8026408 <sys_init+0x14>)
  95064. 8026402: 6013 str r3, [r2, #0]
  95065. #endif
  95066. }
  95067. 8026404: bf00 nop
  95068. 8026406: bd80 pop {r7, pc}
  95069. 8026408: 2402b02c .word 0x2402b02c
  95070. 0802640c <sys_mutex_new>:
  95071. /* Mutexes*/
  95072. /*-----------------------------------------------------------------------------------*/
  95073. /*-----------------------------------------------------------------------------------*/
  95074. #if LWIP_COMPAT_MUTEX == 0
  95075. /* Create a new mutex*/
  95076. err_t sys_mutex_new(sys_mutex_t *mutex) {
  95077. 802640c: b580 push {r7, lr}
  95078. 802640e: b082 sub sp, #8
  95079. 8026410: af00 add r7, sp, #0
  95080. 8026412: 6078 str r0, [r7, #4]
  95081. #if (osCMSIS < 0x20000U)
  95082. osMutexDef(MUTEX);
  95083. *mutex = osMutexCreate(osMutex(MUTEX));
  95084. #else
  95085. *mutex = osMutexNew(NULL);
  95086. 8026414: 2000 movs r0, #0
  95087. 8026416: f7ea fad9 bl 80109cc <osMutexNew>
  95088. 802641a: 4602 mov r2, r0
  95089. 802641c: 687b ldr r3, [r7, #4]
  95090. 802641e: 601a str r2, [r3, #0]
  95091. #endif
  95092. if(*mutex == NULL)
  95093. 8026420: 687b ldr r3, [r7, #4]
  95094. 8026422: 681b ldr r3, [r3, #0]
  95095. 8026424: 2b00 cmp r3, #0
  95096. 8026426: d102 bne.n 802642e <sys_mutex_new+0x22>
  95097. {
  95098. #if SYS_STATS
  95099. ++lwip_stats.sys.mutex.err;
  95100. #endif /* SYS_STATS */
  95101. return ERR_MEM;
  95102. 8026428: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95103. 802642c: e000 b.n 8026430 <sys_mutex_new+0x24>
  95104. ++lwip_stats.sys.mutex.used;
  95105. if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) {
  95106. lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used;
  95107. }
  95108. #endif /* SYS_STATS */
  95109. return ERR_OK;
  95110. 802642e: 2300 movs r3, #0
  95111. }
  95112. 8026430: 4618 mov r0, r3
  95113. 8026432: 3708 adds r7, #8
  95114. 8026434: 46bd mov sp, r7
  95115. 8026436: bd80 pop {r7, pc}
  95116. 08026438 <sys_mutex_lock>:
  95117. osMutexDelete(*mutex);
  95118. }
  95119. /*-----------------------------------------------------------------------------------*/
  95120. /* Lock a mutex*/
  95121. void sys_mutex_lock(sys_mutex_t *mutex)
  95122. {
  95123. 8026438: b580 push {r7, lr}
  95124. 802643a: b082 sub sp, #8
  95125. 802643c: af00 add r7, sp, #0
  95126. 802643e: 6078 str r0, [r7, #4]
  95127. #if (osCMSIS < 0x20000U)
  95128. osMutexWait(*mutex, osWaitForever);
  95129. #else
  95130. osMutexAcquire(*mutex, osWaitForever);
  95131. 8026440: 687b ldr r3, [r7, #4]
  95132. 8026442: 681b ldr r3, [r3, #0]
  95133. 8026444: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  95134. 8026448: 4618 mov r0, r3
  95135. 802644a: f7ea fb45 bl 8010ad8 <osMutexAcquire>
  95136. #endif
  95137. }
  95138. 802644e: bf00 nop
  95139. 8026450: 3708 adds r7, #8
  95140. 8026452: 46bd mov sp, r7
  95141. 8026454: bd80 pop {r7, pc}
  95142. 08026456 <sys_mutex_unlock>:
  95143. /*-----------------------------------------------------------------------------------*/
  95144. /* Unlock a mutex*/
  95145. void sys_mutex_unlock(sys_mutex_t *mutex)
  95146. {
  95147. 8026456: b580 push {r7, lr}
  95148. 8026458: b082 sub sp, #8
  95149. 802645a: af00 add r7, sp, #0
  95150. 802645c: 6078 str r0, [r7, #4]
  95151. osMutexRelease(*mutex);
  95152. 802645e: 687b ldr r3, [r7, #4]
  95153. 8026460: 681b ldr r3, [r3, #0]
  95154. 8026462: 4618 mov r0, r3
  95155. 8026464: f7ea fb83 bl 8010b6e <osMutexRelease>
  95156. }
  95157. 8026468: bf00 nop
  95158. 802646a: 3708 adds r7, #8
  95159. 802646c: 46bd mov sp, r7
  95160. 802646e: bd80 pop {r7, pc}
  95161. 08026470 <sys_thread_new>:
  95162. function "thread()". The "arg" argument will be passed as an argument to the
  95163. thread() function. The id of the new thread is returned. Both the id and
  95164. the priority are system dependent.
  95165. */
  95166. sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio)
  95167. {
  95168. 8026470: b580 push {r7, lr}
  95169. 8026472: b08e sub sp, #56 @ 0x38
  95170. 8026474: af00 add r7, sp, #0
  95171. 8026476: 60f8 str r0, [r7, #12]
  95172. 8026478: 60b9 str r1, [r7, #8]
  95173. 802647a: 607a str r2, [r7, #4]
  95174. 802647c: 603b str r3, [r7, #0]
  95175. #if (osCMSIS < 0x20000U)
  95176. const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize};
  95177. return osThreadCreate(&os_thread_def, arg);
  95178. #else
  95179. const osThreadAttr_t attributes = {
  95180. 802647e: f107 0314 add.w r3, r7, #20
  95181. 8026482: 2224 movs r2, #36 @ 0x24
  95182. 8026484: 2100 movs r1, #0
  95183. 8026486: 4618 mov r0, r3
  95184. 8026488: f003 fc3a bl 8029d00 <memset>
  95185. 802648c: 68fb ldr r3, [r7, #12]
  95186. 802648e: 617b str r3, [r7, #20]
  95187. 8026490: 683b ldr r3, [r7, #0]
  95188. 8026492: 62bb str r3, [r7, #40] @ 0x28
  95189. 8026494: 6c3b ldr r3, [r7, #64] @ 0x40
  95190. 8026496: 62fb str r3, [r7, #44] @ 0x2c
  95191. .name = name,
  95192. .stack_size = stacksize,
  95193. .priority = (osPriority_t)prio,
  95194. };
  95195. return osThreadNew(thread, arg, &attributes);
  95196. 8026498: f107 0314 add.w r3, r7, #20
  95197. 802649c: 461a mov r2, r3
  95198. 802649e: 6879 ldr r1, [r7, #4]
  95199. 80264a0: 68b8 ldr r0, [r7, #8]
  95200. 80264a2: f7ea f9da bl 801085a <osThreadNew>
  95201. 80264a6: 4603 mov r3, r0
  95202. #endif
  95203. }
  95204. 80264a8: 4618 mov r0, r3
  95205. 80264aa: 3738 adds r7, #56 @ 0x38
  95206. 80264ac: 46bd mov sp, r7
  95207. 80264ae: bd80 pop {r7, pc}
  95208. 080264b0 <sys_arch_protect>:
  95209. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  95210. API is available
  95211. */
  95212. sys_prot_t sys_arch_protect(void)
  95213. {
  95214. 80264b0: b580 push {r7, lr}
  95215. 80264b2: af00 add r7, sp, #0
  95216. #if (osCMSIS < 0x20000U)
  95217. osMutexWait(lwip_sys_mutex, osWaitForever);
  95218. #else
  95219. osMutexAcquire(lwip_sys_mutex, osWaitForever);
  95220. 80264b4: 4b04 ldr r3, [pc, #16] @ (80264c8 <sys_arch_protect+0x18>)
  95221. 80264b6: 681b ldr r3, [r3, #0]
  95222. 80264b8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  95223. 80264bc: 4618 mov r0, r3
  95224. 80264be: f7ea fb0b bl 8010ad8 <osMutexAcquire>
  95225. #endif
  95226. return (sys_prot_t)1;
  95227. 80264c2: 2301 movs r3, #1
  95228. }
  95229. 80264c4: 4618 mov r0, r3
  95230. 80264c6: bd80 pop {r7, pc}
  95231. 80264c8: 2402b02c .word 0x2402b02c
  95232. 080264cc <sys_arch_unprotect>:
  95233. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  95234. API is available
  95235. */
  95236. void sys_arch_unprotect(sys_prot_t pval)
  95237. {
  95238. 80264cc: b580 push {r7, lr}
  95239. 80264ce: b082 sub sp, #8
  95240. 80264d0: af00 add r7, sp, #0
  95241. 80264d2: 6078 str r0, [r7, #4]
  95242. ( void ) pval;
  95243. osMutexRelease(lwip_sys_mutex);
  95244. 80264d4: 4b04 ldr r3, [pc, #16] @ (80264e8 <sys_arch_unprotect+0x1c>)
  95245. 80264d6: 681b ldr r3, [r3, #0]
  95246. 80264d8: 4618 mov r0, r3
  95247. 80264da: f7ea fb48 bl 8010b6e <osMutexRelease>
  95248. }
  95249. 80264de: bf00 nop
  95250. 80264e0: 3708 adds r7, #8
  95251. 80264e2: 46bd mov sp, r7
  95252. 80264e4: bd80 pop {r7, pc}
  95253. 80264e6: bf00 nop
  95254. 80264e8: 2402b02c .word 0x2402b02c
  95255. 080264ec <NewMessageData>:
  95256. #include <string.h>
  95257. //#include "cmsis_os.h"
  95258. osMutexId_t mqttMutex;
  95259. static void NewMessageData(MessageData* md, MQTTString* aTopicName, MQTTMessage* aMessage) {
  95260. 80264ec: b480 push {r7}
  95261. 80264ee: b085 sub sp, #20
  95262. 80264f0: af00 add r7, sp, #0
  95263. 80264f2: 60f8 str r0, [r7, #12]
  95264. 80264f4: 60b9 str r1, [r7, #8]
  95265. 80264f6: 607a str r2, [r7, #4]
  95266. md->topicName = aTopicName;
  95267. 80264f8: 68fb ldr r3, [r7, #12]
  95268. 80264fa: 68ba ldr r2, [r7, #8]
  95269. 80264fc: 605a str r2, [r3, #4]
  95270. md->message = aMessage;
  95271. 80264fe: 68fb ldr r3, [r7, #12]
  95272. 8026500: 687a ldr r2, [r7, #4]
  95273. 8026502: 601a str r2, [r3, #0]
  95274. }
  95275. 8026504: bf00 nop
  95276. 8026506: 3714 adds r7, #20
  95277. 8026508: 46bd mov sp, r7
  95278. 802650a: f85d 7b04 ldr.w r7, [sp], #4
  95279. 802650e: 4770 bx lr
  95280. 08026510 <getNextPacketId>:
  95281. static int getNextPacketId(MQTTClient *c) {
  95282. 8026510: b480 push {r7}
  95283. 8026512: b083 sub sp, #12
  95284. 8026514: af00 add r7, sp, #0
  95285. 8026516: 6078 str r0, [r7, #4]
  95286. return c->next_packetid = (c->next_packetid == MAX_PACKET_ID) ? 1 : c->next_packetid + 1;
  95287. 8026518: 687b ldr r3, [r7, #4]
  95288. 802651a: 681b ldr r3, [r3, #0]
  95289. 802651c: f64f 72ff movw r2, #65535 @ 0xffff
  95290. 8026520: 4293 cmp r3, r2
  95291. 8026522: d003 beq.n 802652c <getNextPacketId+0x1c>
  95292. 8026524: 687b ldr r3, [r7, #4]
  95293. 8026526: 681b ldr r3, [r3, #0]
  95294. 8026528: 3301 adds r3, #1
  95295. 802652a: e000 b.n 802652e <getNextPacketId+0x1e>
  95296. 802652c: 2301 movs r3, #1
  95297. 802652e: 687a ldr r2, [r7, #4]
  95298. 8026530: 6013 str r3, [r2, #0]
  95299. 8026532: 687b ldr r3, [r7, #4]
  95300. 8026534: 681b ldr r3, [r3, #0]
  95301. }
  95302. 8026536: 4618 mov r0, r3
  95303. 8026538: 370c adds r7, #12
  95304. 802653a: 46bd mov sp, r7
  95305. 802653c: f85d 7b04 ldr.w r7, [sp], #4
  95306. 8026540: 4770 bx lr
  95307. 08026542 <sendPacket>:
  95308. static int sendPacket(MQTTClient* c, int length, Timer* timer)
  95309. {
  95310. 8026542: b5f0 push {r4, r5, r6, r7, lr}
  95311. 8026544: b087 sub sp, #28
  95312. 8026546: af00 add r7, sp, #0
  95313. 8026548: 60f8 str r0, [r7, #12]
  95314. 802654a: 60b9 str r1, [r7, #8]
  95315. 802654c: 607a str r2, [r7, #4]
  95316. int rc = FAILURE,
  95317. 802654e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95318. 8026552: 617b str r3, [r7, #20]
  95319. sent = 0;
  95320. 8026554: 2300 movs r3, #0
  95321. 8026556: 613b str r3, [r7, #16]
  95322. while (sent < length && !TimerIsExpired(timer))
  95323. 8026558: e018 b.n 802658c <sendPacket+0x4a>
  95324. {
  95325. rc = c->ipstack->mqttwrite(c->ipstack, &c->buf[sent], length, TimerLeftMS(timer));
  95326. 802655a: 68fb ldr r3, [r7, #12]
  95327. 802655c: 6d5b ldr r3, [r3, #84] @ 0x54
  95328. 802655e: 689c ldr r4, [r3, #8]
  95329. 8026560: 68fb ldr r3, [r7, #12]
  95330. 8026562: 6d5d ldr r5, [r3, #84] @ 0x54
  95331. 8026564: 68fb ldr r3, [r7, #12]
  95332. 8026566: 691a ldr r2, [r3, #16]
  95333. 8026568: 693b ldr r3, [r7, #16]
  95334. 802656a: 18d6 adds r6, r2, r3
  95335. 802656c: 6878 ldr r0, [r7, #4]
  95336. 802656e: f000 fed3 bl 8027318 <TimerLeftMS>
  95337. 8026572: 4603 mov r3, r0
  95338. 8026574: 68ba ldr r2, [r7, #8]
  95339. 8026576: 4631 mov r1, r6
  95340. 8026578: 4628 mov r0, r5
  95341. 802657a: 47a0 blx r4
  95342. 802657c: 6178 str r0, [r7, #20]
  95343. if (rc < 0) // there was an error writing the data
  95344. 802657e: 697b ldr r3, [r7, #20]
  95345. 8026580: 2b00 cmp r3, #0
  95346. 8026582: db0e blt.n 80265a2 <sendPacket+0x60>
  95347. break;
  95348. sent += rc;
  95349. 8026584: 693a ldr r2, [r7, #16]
  95350. 8026586: 697b ldr r3, [r7, #20]
  95351. 8026588: 4413 add r3, r2
  95352. 802658a: 613b str r3, [r7, #16]
  95353. while (sent < length && !TimerIsExpired(timer))
  95354. 802658c: 693a ldr r2, [r7, #16]
  95355. 802658e: 68bb ldr r3, [r7, #8]
  95356. 8026590: 429a cmp r2, r3
  95357. 8026592: da07 bge.n 80265a4 <sendPacket+0x62>
  95358. 8026594: 6878 ldr r0, [r7, #4]
  95359. 8026596: f000 fe7d bl 8027294 <TimerIsExpired>
  95360. 802659a: 4603 mov r3, r0
  95361. 802659c: 2b00 cmp r3, #0
  95362. 802659e: d0dc beq.n 802655a <sendPacket+0x18>
  95363. 80265a0: e000 b.n 80265a4 <sendPacket+0x62>
  95364. break;
  95365. 80265a2: bf00 nop
  95366. }
  95367. if (sent == length)
  95368. 80265a4: 693a ldr r2, [r7, #16]
  95369. 80265a6: 68bb ldr r3, [r7, #8]
  95370. 80265a8: 429a cmp r2, r3
  95371. 80265aa: d10b bne.n 80265c4 <sendPacket+0x82>
  95372. {
  95373. TimerCountdown(&c->last_sent, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully sent the packet
  95374. 80265ac: 68fb ldr r3, [r7, #12]
  95375. 80265ae: f103 0258 add.w r2, r3, #88 @ 0x58
  95376. 80265b2: 68fb ldr r3, [r7, #12]
  95377. 80265b4: 699b ldr r3, [r3, #24]
  95378. 80265b6: 4619 mov r1, r3
  95379. 80265b8: 4610 mov r0, r2
  95380. 80265ba: f000 fe95 bl 80272e8 <TimerCountdown>
  95381. rc = MQTT_SUCCESS;
  95382. 80265be: 2300 movs r3, #0
  95383. 80265c0: 617b str r3, [r7, #20]
  95384. 80265c2: e002 b.n 80265ca <sendPacket+0x88>
  95385. }
  95386. else
  95387. rc = FAILURE;
  95388. 80265c4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95389. 80265c8: 617b str r3, [r7, #20]
  95390. return rc;
  95391. 80265ca: 697b ldr r3, [r7, #20]
  95392. }
  95393. 80265cc: 4618 mov r0, r3
  95394. 80265ce: 371c adds r7, #28
  95395. 80265d0: 46bd mov sp, r7
  95396. 80265d2: bdf0 pop {r4, r5, r6, r7, pc}
  95397. 080265d4 <MQTTClientInit>:
  95398. void MQTTClientInit(MQTTClient* c, Network* network, unsigned int command_timeout_ms,
  95399. unsigned char* sendbuf, size_t sendbuf_size, unsigned char* readbuf, size_t readbuf_size)
  95400. {
  95401. 80265d4: b580 push {r7, lr}
  95402. 80265d6: b086 sub sp, #24
  95403. 80265d8: af00 add r7, sp, #0
  95404. 80265da: 60f8 str r0, [r7, #12]
  95405. 80265dc: 60b9 str r1, [r7, #8]
  95406. 80265de: 607a str r2, [r7, #4]
  95407. 80265e0: 603b str r3, [r7, #0]
  95408. int i;
  95409. c->ipstack = network;
  95410. 80265e2: 68fb ldr r3, [r7, #12]
  95411. 80265e4: 68ba ldr r2, [r7, #8]
  95412. 80265e6: 655a str r2, [r3, #84] @ 0x54
  95413. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95414. 80265e8: 2300 movs r3, #0
  95415. 80265ea: 617b str r3, [r7, #20]
  95416. 80265ec: e008 b.n 8026600 <MQTTClientInit+0x2c>
  95417. c->messageHandlers[i].topicFilter = 0;
  95418. 80265ee: 68fb ldr r3, [r7, #12]
  95419. 80265f0: 697a ldr r2, [r7, #20]
  95420. 80265f2: 3205 adds r2, #5
  95421. 80265f4: 2100 movs r1, #0
  95422. 80265f6: f843 1032 str.w r1, [r3, r2, lsl #3]
  95423. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95424. 80265fa: 697b ldr r3, [r7, #20]
  95425. 80265fc: 3301 adds r3, #1
  95426. 80265fe: 617b str r3, [r7, #20]
  95427. 8026600: 697b ldr r3, [r7, #20]
  95428. 8026602: 2b04 cmp r3, #4
  95429. 8026604: ddf3 ble.n 80265ee <MQTTClientInit+0x1a>
  95430. c->command_timeout_ms = command_timeout_ms;
  95431. 8026606: 68fb ldr r3, [r7, #12]
  95432. 8026608: 687a ldr r2, [r7, #4]
  95433. 802660a: 605a str r2, [r3, #4]
  95434. c->buf = sendbuf;
  95435. 802660c: 68fb ldr r3, [r7, #12]
  95436. 802660e: 683a ldr r2, [r7, #0]
  95437. 8026610: 611a str r2, [r3, #16]
  95438. c->buf_size = sendbuf_size;
  95439. 8026612: 68fb ldr r3, [r7, #12]
  95440. 8026614: 6a3a ldr r2, [r7, #32]
  95441. 8026616: 609a str r2, [r3, #8]
  95442. c->readbuf = readbuf;
  95443. 8026618: 68fb ldr r3, [r7, #12]
  95444. 802661a: 6a7a ldr r2, [r7, #36] @ 0x24
  95445. 802661c: 615a str r2, [r3, #20]
  95446. c->readbuf_size = readbuf_size;
  95447. 802661e: 68fb ldr r3, [r7, #12]
  95448. 8026620: 6aba ldr r2, [r7, #40] @ 0x28
  95449. 8026622: 60da str r2, [r3, #12]
  95450. c->isconnected = 0;
  95451. 8026624: 68fb ldr r3, [r7, #12]
  95452. 8026626: 2200 movs r2, #0
  95453. 8026628: 621a str r2, [r3, #32]
  95454. c->cleansession = 0;
  95455. 802662a: 68fb ldr r3, [r7, #12]
  95456. 802662c: 2200 movs r2, #0
  95457. 802662e: 625a str r2, [r3, #36] @ 0x24
  95458. c->ping_outstanding = 0;
  95459. 8026630: 68fb ldr r3, [r7, #12]
  95460. 8026632: 2200 movs r2, #0
  95461. 8026634: 771a strb r2, [r3, #28]
  95462. c->defaultMessageHandler = NULL;
  95463. 8026636: 68fb ldr r3, [r7, #12]
  95464. 8026638: 2200 movs r2, #0
  95465. 802663a: 651a str r2, [r3, #80] @ 0x50
  95466. c->next_packetid = 1;
  95467. 802663c: 68fb ldr r3, [r7, #12]
  95468. 802663e: 2201 movs r2, #1
  95469. 8026640: 601a str r2, [r3, #0]
  95470. TimerInit(&c->last_sent);
  95471. 8026642: 68fb ldr r3, [r7, #12]
  95472. 8026644: 3358 adds r3, #88 @ 0x58
  95473. 8026646: 4618 mov r0, r3
  95474. 8026648: f000 fe7c bl 8027344 <TimerInit>
  95475. TimerInit(&c->last_received);
  95476. 802664c: 68fb ldr r3, [r7, #12]
  95477. 802664e: 3360 adds r3, #96 @ 0x60
  95478. 8026650: 4618 mov r0, r3
  95479. 8026652: f000 fe77 bl 8027344 <TimerInit>
  95480. #if defined(MQTT_TASK)
  95481. MutexInit(&c->mutex);
  95482. #endif
  95483. if(mqttMutex == NULL)
  95484. 8026656: 4b07 ldr r3, [pc, #28] @ (8026674 <MQTTClientInit+0xa0>)
  95485. 8026658: 681b ldr r3, [r3, #0]
  95486. 802665a: 2b00 cmp r3, #0
  95487. 802665c: d105 bne.n 802666a <MQTTClientInit+0x96>
  95488. {
  95489. // osMutexDef(mqttMutex);
  95490. // mqttMutex = osMutexNew(NULL);
  95491. c->mutex = osMutexNew(NULL);
  95492. 802665e: 2000 movs r0, #0
  95493. 8026660: f7ea f9b4 bl 80109cc <osMutexNew>
  95494. 8026664: 4602 mov r2, r0
  95495. 8026666: 68fb ldr r3, [r7, #12]
  95496. 8026668: 669a str r2, [r3, #104] @ 0x68
  95497. }
  95498. }
  95499. 802666a: bf00 nop
  95500. 802666c: 3718 adds r7, #24
  95501. 802666e: 46bd mov sp, r7
  95502. 8026670: bd80 pop {r7, pc}
  95503. 8026672: bf00 nop
  95504. 8026674: 2402b030 .word 0x2402b030
  95505. 08026678 <decodePacket>:
  95506. static int decodePacket(MQTTClient* c, int* value, int timeout)
  95507. {
  95508. 8026678: b590 push {r4, r7, lr}
  95509. 802667a: b08b sub sp, #44 @ 0x2c
  95510. 802667c: af00 add r7, sp, #0
  95511. 802667e: 60f8 str r0, [r7, #12]
  95512. 8026680: 60b9 str r1, [r7, #8]
  95513. 8026682: 607a str r2, [r7, #4]
  95514. unsigned char i;
  95515. int multiplier = 1;
  95516. 8026684: 2301 movs r3, #1
  95517. 8026686: 627b str r3, [r7, #36] @ 0x24
  95518. int len = 0;
  95519. 8026688: 2300 movs r3, #0
  95520. 802668a: 623b str r3, [r7, #32]
  95521. const int MAX_NO_OF_REMAINING_LENGTH_BYTES = 4;
  95522. 802668c: 2304 movs r3, #4
  95523. 802668e: 61fb str r3, [r7, #28]
  95524. *value = 0;
  95525. 8026690: 68bb ldr r3, [r7, #8]
  95526. 8026692: 2200 movs r2, #0
  95527. 8026694: 601a str r2, [r3, #0]
  95528. do
  95529. {
  95530. int rc = MQTTPACKET_READ_ERROR;
  95531. 8026696: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95532. 802669a: 61bb str r3, [r7, #24]
  95533. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  95534. 802669c: 6a3b ldr r3, [r7, #32]
  95535. 802669e: 3301 adds r3, #1
  95536. 80266a0: 623b str r3, [r7, #32]
  95537. 80266a2: 6a3a ldr r2, [r7, #32]
  95538. 80266a4: 69fb ldr r3, [r7, #28]
  95539. 80266a6: 429a cmp r2, r3
  95540. 80266a8: dd03 ble.n 80266b2 <decodePacket+0x3a>
  95541. {
  95542. rc = MQTTPACKET_READ_ERROR; /* bad data */
  95543. 80266aa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95544. 80266ae: 61bb str r3, [r7, #24]
  95545. goto exit;
  95546. 80266b0: e021 b.n 80266f6 <decodePacket+0x7e>
  95547. }
  95548. rc = c->ipstack->mqttread(c->ipstack, &i, 1, timeout);
  95549. 80266b2: 68fb ldr r3, [r7, #12]
  95550. 80266b4: 6d5b ldr r3, [r3, #84] @ 0x54
  95551. 80266b6: 685c ldr r4, [r3, #4]
  95552. 80266b8: 68fb ldr r3, [r7, #12]
  95553. 80266ba: 6d58 ldr r0, [r3, #84] @ 0x54
  95554. 80266bc: f107 0117 add.w r1, r7, #23
  95555. 80266c0: 687b ldr r3, [r7, #4]
  95556. 80266c2: 2201 movs r2, #1
  95557. 80266c4: 47a0 blx r4
  95558. 80266c6: 61b8 str r0, [r7, #24]
  95559. if (rc != 1)
  95560. 80266c8: 69bb ldr r3, [r7, #24]
  95561. 80266ca: 2b01 cmp r3, #1
  95562. 80266cc: d112 bne.n 80266f4 <decodePacket+0x7c>
  95563. goto exit;
  95564. *value += (i & 127) * multiplier;
  95565. 80266ce: 68bb ldr r3, [r7, #8]
  95566. 80266d0: 681a ldr r2, [r3, #0]
  95567. 80266d2: 7dfb ldrb r3, [r7, #23]
  95568. 80266d4: f003 037f and.w r3, r3, #127 @ 0x7f
  95569. 80266d8: 6a79 ldr r1, [r7, #36] @ 0x24
  95570. 80266da: fb01 f303 mul.w r3, r1, r3
  95571. 80266de: 441a add r2, r3
  95572. 80266e0: 68bb ldr r3, [r7, #8]
  95573. 80266e2: 601a str r2, [r3, #0]
  95574. multiplier *= 128;
  95575. 80266e4: 6a7b ldr r3, [r7, #36] @ 0x24
  95576. 80266e6: 01db lsls r3, r3, #7
  95577. 80266e8: 627b str r3, [r7, #36] @ 0x24
  95578. } while ((i & 128) != 0);
  95579. 80266ea: 7dfb ldrb r3, [r7, #23]
  95580. 80266ec: b25b sxtb r3, r3
  95581. 80266ee: 2b00 cmp r3, #0
  95582. 80266f0: dbd1 blt.n 8026696 <decodePacket+0x1e>
  95583. exit:
  95584. 80266f2: e000 b.n 80266f6 <decodePacket+0x7e>
  95585. goto exit;
  95586. 80266f4: bf00 nop
  95587. return len;
  95588. 80266f6: 6a3b ldr r3, [r7, #32]
  95589. }
  95590. 80266f8: 4618 mov r0, r3
  95591. 80266fa: 372c adds r7, #44 @ 0x2c
  95592. 80266fc: 46bd mov sp, r7
  95593. 80266fe: bd90 pop {r4, r7, pc}
  95594. 08026700 <readPacket>:
  95595. static int readPacket(MQTTClient* c, Timer* timer)
  95596. {
  95597. 8026700: b5f0 push {r4, r5, r6, r7, lr}
  95598. 8026702: b089 sub sp, #36 @ 0x24
  95599. 8026704: af00 add r7, sp, #0
  95600. 8026706: 60f8 str r0, [r7, #12]
  95601. 8026708: 60b9 str r1, [r7, #8]
  95602. MQTTHeader header = {0};
  95603. 802670a: 2300 movs r3, #0
  95604. 802670c: 617b str r3, [r7, #20]
  95605. int len = 0;
  95606. 802670e: 2300 movs r3, #0
  95607. 8026710: 61bb str r3, [r7, #24]
  95608. int rem_len = 0;
  95609. 8026712: 2300 movs r3, #0
  95610. 8026714: 613b str r3, [r7, #16]
  95611. /* 1. read the header byte. This has the packet type in it */
  95612. int rc = c->ipstack->mqttread(c->ipstack, c->readbuf, 1, TimerLeftMS(timer));
  95613. 8026716: 68fb ldr r3, [r7, #12]
  95614. 8026718: 6d5b ldr r3, [r3, #84] @ 0x54
  95615. 802671a: 685c ldr r4, [r3, #4]
  95616. 802671c: 68fb ldr r3, [r7, #12]
  95617. 802671e: 6d5d ldr r5, [r3, #84] @ 0x54
  95618. 8026720: 68fb ldr r3, [r7, #12]
  95619. 8026722: 695e ldr r6, [r3, #20]
  95620. 8026724: 68b8 ldr r0, [r7, #8]
  95621. 8026726: f000 fdf7 bl 8027318 <TimerLeftMS>
  95622. 802672a: 4603 mov r3, r0
  95623. 802672c: 2201 movs r2, #1
  95624. 802672e: 4631 mov r1, r6
  95625. 8026730: 4628 mov r0, r5
  95626. 8026732: 47a0 blx r4
  95627. 8026734: 61f8 str r0, [r7, #28]
  95628. if (rc != 1)
  95629. 8026736: 69fb ldr r3, [r7, #28]
  95630. 8026738: 2b01 cmp r3, #1
  95631. 802673a: d15d bne.n 80267f8 <readPacket+0xf8>
  95632. goto exit;
  95633. len = 1;
  95634. 802673c: 2301 movs r3, #1
  95635. 802673e: 61bb str r3, [r7, #24]
  95636. /* 2. read the remaining length. This is variable in itself */
  95637. decodePacket(c, &rem_len, TimerLeftMS(timer));
  95638. 8026740: 68b8 ldr r0, [r7, #8]
  95639. 8026742: f000 fde9 bl 8027318 <TimerLeftMS>
  95640. 8026746: 4602 mov r2, r0
  95641. 8026748: f107 0310 add.w r3, r7, #16
  95642. 802674c: 4619 mov r1, r3
  95643. 802674e: 68f8 ldr r0, [r7, #12]
  95644. 8026750: f7ff ff92 bl 8026678 <decodePacket>
  95645. len += MQTTPacket_encode(c->readbuf + 1, rem_len); /* put the original remaining length back into the buffer */
  95646. 8026754: 68fb ldr r3, [r7, #12]
  95647. 8026756: 695b ldr r3, [r3, #20]
  95648. 8026758: 3301 adds r3, #1
  95649. 802675a: 693a ldr r2, [r7, #16]
  95650. 802675c: 4611 mov r1, r2
  95651. 802675e: 4618 mov r0, r3
  95652. 8026760: f001 f959 bl 8027a16 <MQTTPacket_encode>
  95653. 8026764: 4602 mov r2, r0
  95654. 8026766: 69bb ldr r3, [r7, #24]
  95655. 8026768: 4413 add r3, r2
  95656. 802676a: 61bb str r3, [r7, #24]
  95657. if (rem_len > (c->readbuf_size - len))
  95658. 802676c: 68fb ldr r3, [r7, #12]
  95659. 802676e: 68da ldr r2, [r3, #12]
  95660. 8026770: 69bb ldr r3, [r7, #24]
  95661. 8026772: 1ad3 subs r3, r2, r3
  95662. 8026774: 693a ldr r2, [r7, #16]
  95663. 8026776: 4293 cmp r3, r2
  95664. 8026778: d203 bcs.n 8026782 <readPacket+0x82>
  95665. {
  95666. rc = BUFFER_OVERFLOW;
  95667. 802677a: f06f 0301 mvn.w r3, #1
  95668. 802677e: 61fb str r3, [r7, #28]
  95669. goto exit;
  95670. 8026780: e03d b.n 80267fe <readPacket+0xfe>
  95671. }
  95672. /* 3. read the rest of the buffer using a callback to supply the rest of the data */
  95673. if (rem_len > 0 && (rc = c->ipstack->mqttread(c->ipstack, c->readbuf + len, rem_len, TimerLeftMS(timer)) != rem_len)) {
  95674. 8026782: 693b ldr r3, [r7, #16]
  95675. 8026784: 2b00 cmp r3, #0
  95676. 8026786: dd20 ble.n 80267ca <readPacket+0xca>
  95677. 8026788: 68fb ldr r3, [r7, #12]
  95678. 802678a: 6d5b ldr r3, [r3, #84] @ 0x54
  95679. 802678c: 685c ldr r4, [r3, #4]
  95680. 802678e: 68fb ldr r3, [r7, #12]
  95681. 8026790: 6d5d ldr r5, [r3, #84] @ 0x54
  95682. 8026792: 68fb ldr r3, [r7, #12]
  95683. 8026794: 695a ldr r2, [r3, #20]
  95684. 8026796: 69bb ldr r3, [r7, #24]
  95685. 8026798: 18d6 adds r6, r2, r3
  95686. 802679a: 693b ldr r3, [r7, #16]
  95687. 802679c: 607b str r3, [r7, #4]
  95688. 802679e: 68b8 ldr r0, [r7, #8]
  95689. 80267a0: f000 fdba bl 8027318 <TimerLeftMS>
  95690. 80267a4: 4603 mov r3, r0
  95691. 80267a6: 687a ldr r2, [r7, #4]
  95692. 80267a8: 4631 mov r1, r6
  95693. 80267aa: 4628 mov r0, r5
  95694. 80267ac: 47a0 blx r4
  95695. 80267ae: 4602 mov r2, r0
  95696. 80267b0: 693b ldr r3, [r7, #16]
  95697. 80267b2: 429a cmp r2, r3
  95698. 80267b4: bf14 ite ne
  95699. 80267b6: 2301 movne r3, #1
  95700. 80267b8: 2300 moveq r3, #0
  95701. 80267ba: b2db uxtb r3, r3
  95702. 80267bc: 61fb str r3, [r7, #28]
  95703. 80267be: 69fb ldr r3, [r7, #28]
  95704. 80267c0: 2b00 cmp r3, #0
  95705. 80267c2: d002 beq.n 80267ca <readPacket+0xca>
  95706. rc = 0;
  95707. 80267c4: 2300 movs r3, #0
  95708. 80267c6: 61fb str r3, [r7, #28]
  95709. goto exit;
  95710. 80267c8: e019 b.n 80267fe <readPacket+0xfe>
  95711. }
  95712. header.byte = c->readbuf[0];
  95713. 80267ca: 68fb ldr r3, [r7, #12]
  95714. 80267cc: 695b ldr r3, [r3, #20]
  95715. 80267ce: 781b ldrb r3, [r3, #0]
  95716. 80267d0: 753b strb r3, [r7, #20]
  95717. rc = header.bits.type;
  95718. 80267d2: 7d3b ldrb r3, [r7, #20]
  95719. 80267d4: f3c3 1303 ubfx r3, r3, #4, #4
  95720. 80267d8: b2db uxtb r3, r3
  95721. 80267da: 61fb str r3, [r7, #28]
  95722. if (c->keepAliveInterval > 0)
  95723. 80267dc: 68fb ldr r3, [r7, #12]
  95724. 80267de: 699b ldr r3, [r3, #24]
  95725. 80267e0: 2b00 cmp r3, #0
  95726. 80267e2: d00b beq.n 80267fc <readPacket+0xfc>
  95727. TimerCountdown(&c->last_received, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully received a packet
  95728. 80267e4: 68fb ldr r3, [r7, #12]
  95729. 80267e6: f103 0260 add.w r2, r3, #96 @ 0x60
  95730. 80267ea: 68fb ldr r3, [r7, #12]
  95731. 80267ec: 699b ldr r3, [r3, #24]
  95732. 80267ee: 4619 mov r1, r3
  95733. 80267f0: 4610 mov r0, r2
  95734. 80267f2: f000 fd79 bl 80272e8 <TimerCountdown>
  95735. 80267f6: e002 b.n 80267fe <readPacket+0xfe>
  95736. goto exit;
  95737. 80267f8: bf00 nop
  95738. 80267fa: e000 b.n 80267fe <readPacket+0xfe>
  95739. exit:
  95740. 80267fc: bf00 nop
  95741. return rc;
  95742. 80267fe: 69fb ldr r3, [r7, #28]
  95743. }
  95744. 8026800: 4618 mov r0, r3
  95745. 8026802: 3724 adds r7, #36 @ 0x24
  95746. 8026804: 46bd mov sp, r7
  95747. 8026806: bdf0 pop {r4, r5, r6, r7, pc}
  95748. 08026808 <isTopicMatched>:
  95749. // assume topic filter and name is in correct format
  95750. // # can only be at end
  95751. // + and # can only be next to separator
  95752. static char isTopicMatched(char* topicFilter, MQTTString* topicName)
  95753. {
  95754. 8026808: b480 push {r7}
  95755. 802680a: b087 sub sp, #28
  95756. 802680c: af00 add r7, sp, #0
  95757. 802680e: 6078 str r0, [r7, #4]
  95758. 8026810: 6039 str r1, [r7, #0]
  95759. char* curf = topicFilter;
  95760. 8026812: 687b ldr r3, [r7, #4]
  95761. 8026814: 617b str r3, [r7, #20]
  95762. char* curn = topicName->lenstring.data;
  95763. 8026816: 683b ldr r3, [r7, #0]
  95764. 8026818: 689b ldr r3, [r3, #8]
  95765. 802681a: 613b str r3, [r7, #16]
  95766. char* curn_end = curn + topicName->lenstring.len;
  95767. 802681c: 683b ldr r3, [r7, #0]
  95768. 802681e: 685b ldr r3, [r3, #4]
  95769. 8026820: 461a mov r2, r3
  95770. 8026822: 693b ldr r3, [r7, #16]
  95771. 8026824: 4413 add r3, r2
  95772. 8026826: 60bb str r3, [r7, #8]
  95773. while (*curf && curn < curn_end)
  95774. 8026828: e039 b.n 802689e <isTopicMatched+0x96>
  95775. {
  95776. if (*curn == '/' && *curf != '/')
  95777. 802682a: 693b ldr r3, [r7, #16]
  95778. 802682c: 781b ldrb r3, [r3, #0]
  95779. 802682e: 2b2f cmp r3, #47 @ 0x2f
  95780. 8026830: d103 bne.n 802683a <isTopicMatched+0x32>
  95781. 8026832: 697b ldr r3, [r7, #20]
  95782. 8026834: 781b ldrb r3, [r3, #0]
  95783. 8026836: 2b2f cmp r3, #47 @ 0x2f
  95784. 8026838: d13a bne.n 80268b0 <isTopicMatched+0xa8>
  95785. break;
  95786. if (*curf != '+' && *curf != '#' && *curf != *curn)
  95787. 802683a: 697b ldr r3, [r7, #20]
  95788. 802683c: 781b ldrb r3, [r3, #0]
  95789. 802683e: 2b2b cmp r3, #43 @ 0x2b
  95790. 8026840: d009 beq.n 8026856 <isTopicMatched+0x4e>
  95791. 8026842: 697b ldr r3, [r7, #20]
  95792. 8026844: 781b ldrb r3, [r3, #0]
  95793. 8026846: 2b23 cmp r3, #35 @ 0x23
  95794. 8026848: d005 beq.n 8026856 <isTopicMatched+0x4e>
  95795. 802684a: 697b ldr r3, [r7, #20]
  95796. 802684c: 781a ldrb r2, [r3, #0]
  95797. 802684e: 693b ldr r3, [r7, #16]
  95798. 8026850: 781b ldrb r3, [r3, #0]
  95799. 8026852: 429a cmp r2, r3
  95800. 8026854: d12e bne.n 80268b4 <isTopicMatched+0xac>
  95801. break;
  95802. if (*curf == '+')
  95803. 8026856: 697b ldr r3, [r7, #20]
  95804. 8026858: 781b ldrb r3, [r3, #0]
  95805. 802685a: 2b2b cmp r3, #43 @ 0x2b
  95806. 802685c: d112 bne.n 8026884 <isTopicMatched+0x7c>
  95807. { // skip until we meet the next separator, or end of string
  95808. char* nextpos = curn + 1;
  95809. 802685e: 693b ldr r3, [r7, #16]
  95810. 8026860: 3301 adds r3, #1
  95811. 8026862: 60fb str r3, [r7, #12]
  95812. while (nextpos < curn_end && *nextpos != '/')
  95813. 8026864: e005 b.n 8026872 <isTopicMatched+0x6a>
  95814. nextpos = ++curn + 1;
  95815. 8026866: 693b ldr r3, [r7, #16]
  95816. 8026868: 3301 adds r3, #1
  95817. 802686a: 613b str r3, [r7, #16]
  95818. 802686c: 693b ldr r3, [r7, #16]
  95819. 802686e: 3301 adds r3, #1
  95820. 8026870: 60fb str r3, [r7, #12]
  95821. while (nextpos < curn_end && *nextpos != '/')
  95822. 8026872: 68fa ldr r2, [r7, #12]
  95823. 8026874: 68bb ldr r3, [r7, #8]
  95824. 8026876: 429a cmp r2, r3
  95825. 8026878: d20b bcs.n 8026892 <isTopicMatched+0x8a>
  95826. 802687a: 68fb ldr r3, [r7, #12]
  95827. 802687c: 781b ldrb r3, [r3, #0]
  95828. 802687e: 2b2f cmp r3, #47 @ 0x2f
  95829. 8026880: d1f1 bne.n 8026866 <isTopicMatched+0x5e>
  95830. 8026882: e006 b.n 8026892 <isTopicMatched+0x8a>
  95831. }
  95832. else if (*curf == '#')
  95833. 8026884: 697b ldr r3, [r7, #20]
  95834. 8026886: 781b ldrb r3, [r3, #0]
  95835. 8026888: 2b23 cmp r3, #35 @ 0x23
  95836. 802688a: d102 bne.n 8026892 <isTopicMatched+0x8a>
  95837. curn = curn_end - 1; // skip until end of string
  95838. 802688c: 68bb ldr r3, [r7, #8]
  95839. 802688e: 3b01 subs r3, #1
  95840. 8026890: 613b str r3, [r7, #16]
  95841. curf++;
  95842. 8026892: 697b ldr r3, [r7, #20]
  95843. 8026894: 3301 adds r3, #1
  95844. 8026896: 617b str r3, [r7, #20]
  95845. curn++;
  95846. 8026898: 693b ldr r3, [r7, #16]
  95847. 802689a: 3301 adds r3, #1
  95848. 802689c: 613b str r3, [r7, #16]
  95849. while (*curf && curn < curn_end)
  95850. 802689e: 697b ldr r3, [r7, #20]
  95851. 80268a0: 781b ldrb r3, [r3, #0]
  95852. 80268a2: 2b00 cmp r3, #0
  95853. 80268a4: d007 beq.n 80268b6 <isTopicMatched+0xae>
  95854. 80268a6: 693a ldr r2, [r7, #16]
  95855. 80268a8: 68bb ldr r3, [r7, #8]
  95856. 80268aa: 429a cmp r2, r3
  95857. 80268ac: d3bd bcc.n 802682a <isTopicMatched+0x22>
  95858. 80268ae: e002 b.n 80268b6 <isTopicMatched+0xae>
  95859. break;
  95860. 80268b0: bf00 nop
  95861. 80268b2: e000 b.n 80268b6 <isTopicMatched+0xae>
  95862. break;
  95863. 80268b4: bf00 nop
  95864. };
  95865. return (curn == curn_end) && (*curf == '\0');
  95866. 80268b6: 693a ldr r2, [r7, #16]
  95867. 80268b8: 68bb ldr r3, [r7, #8]
  95868. 80268ba: 429a cmp r2, r3
  95869. 80268bc: d105 bne.n 80268ca <isTopicMatched+0xc2>
  95870. 80268be: 697b ldr r3, [r7, #20]
  95871. 80268c0: 781b ldrb r3, [r3, #0]
  95872. 80268c2: 2b00 cmp r3, #0
  95873. 80268c4: d101 bne.n 80268ca <isTopicMatched+0xc2>
  95874. 80268c6: 2301 movs r3, #1
  95875. 80268c8: e000 b.n 80268cc <isTopicMatched+0xc4>
  95876. 80268ca: 2300 movs r3, #0
  95877. 80268cc: b2db uxtb r3, r3
  95878. }
  95879. 80268ce: 4618 mov r0, r3
  95880. 80268d0: 371c adds r7, #28
  95881. 80268d2: 46bd mov sp, r7
  95882. 80268d4: f85d 7b04 ldr.w r7, [sp], #4
  95883. 80268d8: 4770 bx lr
  95884. 080268da <deliverMessage>:
  95885. int deliverMessage(MQTTClient* c, MQTTString* topicName, MQTTMessage* message)
  95886. {
  95887. 80268da: b580 push {r7, lr}
  95888. 80268dc: b08a sub sp, #40 @ 0x28
  95889. 80268de: af00 add r7, sp, #0
  95890. 80268e0: 60f8 str r0, [r7, #12]
  95891. 80268e2: 60b9 str r1, [r7, #8]
  95892. 80268e4: 607a str r2, [r7, #4]
  95893. int i;
  95894. int rc = FAILURE;
  95895. 80268e6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95896. 80268ea: 623b str r3, [r7, #32]
  95897. // we have to find the right message handler - indexed by topic
  95898. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95899. 80268ec: 2300 movs r3, #0
  95900. 80268ee: 627b str r3, [r7, #36] @ 0x24
  95901. 80268f0: e03c b.n 802696c <deliverMessage+0x92>
  95902. {
  95903. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  95904. 80268f2: 68fb ldr r3, [r7, #12]
  95905. 80268f4: 6a7a ldr r2, [r7, #36] @ 0x24
  95906. 80268f6: 3205 adds r2, #5
  95907. 80268f8: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95908. 80268fc: 2b00 cmp r3, #0
  95909. 80268fe: d032 beq.n 8026966 <deliverMessage+0x8c>
  95910. 8026900: 68fb ldr r3, [r7, #12]
  95911. 8026902: 6a7a ldr r2, [r7, #36] @ 0x24
  95912. 8026904: 3205 adds r2, #5
  95913. 8026906: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95914. 802690a: 4619 mov r1, r3
  95915. 802690c: 68b8 ldr r0, [r7, #8]
  95916. 802690e: f001 fa51 bl 8027db4 <MQTTPacket_equals>
  95917. 8026912: 4603 mov r3, r0
  95918. 8026914: 2b00 cmp r3, #0
  95919. 8026916: d10b bne.n 8026930 <deliverMessage+0x56>
  95920. isTopicMatched((char*)c->messageHandlers[i].topicFilter, topicName)))
  95921. 8026918: 68fb ldr r3, [r7, #12]
  95922. 802691a: 6a7a ldr r2, [r7, #36] @ 0x24
  95923. 802691c: 3205 adds r2, #5
  95924. 802691e: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  95925. 8026922: 68b9 ldr r1, [r7, #8]
  95926. 8026924: 4618 mov r0, r3
  95927. 8026926: f7ff ff6f bl 8026808 <isTopicMatched>
  95928. 802692a: 4603 mov r3, r0
  95929. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  95930. 802692c: 2b00 cmp r3, #0
  95931. 802692e: d01a beq.n 8026966 <deliverMessage+0x8c>
  95932. {
  95933. if (c->messageHandlers[i].fp != NULL)
  95934. 8026930: 68fa ldr r2, [r7, #12]
  95935. 8026932: 6a7b ldr r3, [r7, #36] @ 0x24
  95936. 8026934: 3305 adds r3, #5
  95937. 8026936: 00db lsls r3, r3, #3
  95938. 8026938: 4413 add r3, r2
  95939. 802693a: 685b ldr r3, [r3, #4]
  95940. 802693c: 2b00 cmp r3, #0
  95941. 802693e: d012 beq.n 8026966 <deliverMessage+0x8c>
  95942. {
  95943. MessageData md;
  95944. NewMessageData(&md, topicName, message);
  95945. 8026940: f107 0318 add.w r3, r7, #24
  95946. 8026944: 687a ldr r2, [r7, #4]
  95947. 8026946: 68b9 ldr r1, [r7, #8]
  95948. 8026948: 4618 mov r0, r3
  95949. 802694a: f7ff fdcf bl 80264ec <NewMessageData>
  95950. c->messageHandlers[i].fp(&md);
  95951. 802694e: 68fa ldr r2, [r7, #12]
  95952. 8026950: 6a7b ldr r3, [r7, #36] @ 0x24
  95953. 8026952: 3305 adds r3, #5
  95954. 8026954: 00db lsls r3, r3, #3
  95955. 8026956: 4413 add r3, r2
  95956. 8026958: 685b ldr r3, [r3, #4]
  95957. 802695a: f107 0218 add.w r2, r7, #24
  95958. 802695e: 4610 mov r0, r2
  95959. 8026960: 4798 blx r3
  95960. rc = MQTT_SUCCESS;
  95961. 8026962: 2300 movs r3, #0
  95962. 8026964: 623b str r3, [r7, #32]
  95963. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  95964. 8026966: 6a7b ldr r3, [r7, #36] @ 0x24
  95965. 8026968: 3301 adds r3, #1
  95966. 802696a: 627b str r3, [r7, #36] @ 0x24
  95967. 802696c: 6a7b ldr r3, [r7, #36] @ 0x24
  95968. 802696e: 2b04 cmp r3, #4
  95969. 8026970: ddbf ble.n 80268f2 <deliverMessage+0x18>
  95970. }
  95971. }
  95972. }
  95973. if (rc == FAILURE && c->defaultMessageHandler != NULL)
  95974. 8026972: 6a3b ldr r3, [r7, #32]
  95975. 8026974: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  95976. 8026978: d112 bne.n 80269a0 <deliverMessage+0xc6>
  95977. 802697a: 68fb ldr r3, [r7, #12]
  95978. 802697c: 6d1b ldr r3, [r3, #80] @ 0x50
  95979. 802697e: 2b00 cmp r3, #0
  95980. 8026980: d00e beq.n 80269a0 <deliverMessage+0xc6>
  95981. {
  95982. MessageData md;
  95983. NewMessageData(&md, topicName, message);
  95984. 8026982: f107 0310 add.w r3, r7, #16
  95985. 8026986: 687a ldr r2, [r7, #4]
  95986. 8026988: 68b9 ldr r1, [r7, #8]
  95987. 802698a: 4618 mov r0, r3
  95988. 802698c: f7ff fdae bl 80264ec <NewMessageData>
  95989. c->defaultMessageHandler(&md);
  95990. 8026990: 68fb ldr r3, [r7, #12]
  95991. 8026992: 6d1b ldr r3, [r3, #80] @ 0x50
  95992. 8026994: f107 0210 add.w r2, r7, #16
  95993. 8026998: 4610 mov r0, r2
  95994. 802699a: 4798 blx r3
  95995. rc = MQTT_SUCCESS;
  95996. 802699c: 2300 movs r3, #0
  95997. 802699e: 623b str r3, [r7, #32]
  95998. }
  95999. return rc;
  96000. 80269a0: 6a3b ldr r3, [r7, #32]
  96001. }
  96002. 80269a2: 4618 mov r0, r3
  96003. 80269a4: 3728 adds r7, #40 @ 0x28
  96004. 80269a6: 46bd mov sp, r7
  96005. 80269a8: bd80 pop {r7, pc}
  96006. 080269aa <keepalive>:
  96007. int keepalive(MQTTClient* c)
  96008. {
  96009. 80269aa: b580 push {r7, lr}
  96010. 80269ac: b086 sub sp, #24
  96011. 80269ae: af00 add r7, sp, #0
  96012. 80269b0: 6078 str r0, [r7, #4]
  96013. int rc = MQTT_SUCCESS;
  96014. 80269b2: 2300 movs r3, #0
  96015. 80269b4: 617b str r3, [r7, #20]
  96016. if (c->keepAliveInterval == 0)
  96017. 80269b6: 687b ldr r3, [r7, #4]
  96018. 80269b8: 699b ldr r3, [r3, #24]
  96019. 80269ba: 2b00 cmp r3, #0
  96020. 80269bc: d03e beq.n 8026a3c <keepalive+0x92>
  96021. goto exit;
  96022. if (TimerIsExpired(&c->last_sent) || TimerIsExpired(&c->last_received))
  96023. 80269be: 687b ldr r3, [r7, #4]
  96024. 80269c0: 3358 adds r3, #88 @ 0x58
  96025. 80269c2: 4618 mov r0, r3
  96026. 80269c4: f000 fc66 bl 8027294 <TimerIsExpired>
  96027. 80269c8: 4603 mov r3, r0
  96028. 80269ca: 2b00 cmp r3, #0
  96029. 80269cc: d107 bne.n 80269de <keepalive+0x34>
  96030. 80269ce: 687b ldr r3, [r7, #4]
  96031. 80269d0: 3360 adds r3, #96 @ 0x60
  96032. 80269d2: 4618 mov r0, r3
  96033. 80269d4: f000 fc5e bl 8027294 <TimerIsExpired>
  96034. 80269d8: 4603 mov r3, r0
  96035. 80269da: 2b00 cmp r3, #0
  96036. 80269dc: d030 beq.n 8026a40 <keepalive+0x96>
  96037. {
  96038. if (c->ping_outstanding)
  96039. 80269de: 687b ldr r3, [r7, #4]
  96040. 80269e0: 7f1b ldrb r3, [r3, #28]
  96041. 80269e2: 2b00 cmp r3, #0
  96042. 80269e4: d003 beq.n 80269ee <keepalive+0x44>
  96043. rc = FAILURE; /* PINGRESP not received in keepalive interval */
  96044. 80269e6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96045. 80269ea: 617b str r3, [r7, #20]
  96046. 80269ec: e029 b.n 8026a42 <keepalive+0x98>
  96047. else
  96048. {
  96049. Timer timer;
  96050. TimerInit(&timer);
  96051. 80269ee: f107 0308 add.w r3, r7, #8
  96052. 80269f2: 4618 mov r0, r3
  96053. 80269f4: f000 fca6 bl 8027344 <TimerInit>
  96054. TimerCountdownMS(&timer, 1000);
  96055. 80269f8: f107 0308 add.w r3, r7, #8
  96056. 80269fc: f44f 717a mov.w r1, #1000 @ 0x3e8
  96057. 8026a00: 4618 mov r0, r3
  96058. 8026a02: f000 fc5d bl 80272c0 <TimerCountdownMS>
  96059. int len = MQTTSerialize_pingreq(c->buf, c->buf_size);
  96060. 8026a06: 687b ldr r3, [r7, #4]
  96061. 8026a08: 691a ldr r2, [r3, #16]
  96062. 8026a0a: 687b ldr r3, [r7, #4]
  96063. 8026a0c: 689b ldr r3, [r3, #8]
  96064. 8026a0e: 4619 mov r1, r3
  96065. 8026a10: 4610 mov r0, r2
  96066. 8026a12: f000 ff34 bl 802787e <MQTTSerialize_pingreq>
  96067. 8026a16: 6138 str r0, [r7, #16]
  96068. if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTT_SUCCESS) // send the ping packet
  96069. 8026a18: 693b ldr r3, [r7, #16]
  96070. 8026a1a: 2b00 cmp r3, #0
  96071. 8026a1c: dd11 ble.n 8026a42 <keepalive+0x98>
  96072. 8026a1e: f107 0308 add.w r3, r7, #8
  96073. 8026a22: 461a mov r2, r3
  96074. 8026a24: 6939 ldr r1, [r7, #16]
  96075. 8026a26: 6878 ldr r0, [r7, #4]
  96076. 8026a28: f7ff fd8b bl 8026542 <sendPacket>
  96077. 8026a2c: 6178 str r0, [r7, #20]
  96078. 8026a2e: 697b ldr r3, [r7, #20]
  96079. 8026a30: 2b00 cmp r3, #0
  96080. 8026a32: d106 bne.n 8026a42 <keepalive+0x98>
  96081. c->ping_outstanding = 1;
  96082. 8026a34: 687b ldr r3, [r7, #4]
  96083. 8026a36: 2201 movs r2, #1
  96084. 8026a38: 771a strb r2, [r3, #28]
  96085. 8026a3a: e002 b.n 8026a42 <keepalive+0x98>
  96086. goto exit;
  96087. 8026a3c: bf00 nop
  96088. 8026a3e: e000 b.n 8026a42 <keepalive+0x98>
  96089. }
  96090. }
  96091. exit:
  96092. 8026a40: bf00 nop
  96093. return rc;
  96094. 8026a42: 697b ldr r3, [r7, #20]
  96095. }
  96096. 8026a44: 4618 mov r0, r3
  96097. 8026a46: 3718 adds r7, #24
  96098. 8026a48: 46bd mov sp, r7
  96099. 8026a4a: bd80 pop {r7, pc}
  96100. 08026a4c <MQTTCleanSession>:
  96101. void MQTTCleanSession(MQTTClient* c)
  96102. {
  96103. 8026a4c: b480 push {r7}
  96104. 8026a4e: b085 sub sp, #20
  96105. 8026a50: af00 add r7, sp, #0
  96106. 8026a52: 6078 str r0, [r7, #4]
  96107. int i = 0;
  96108. 8026a54: 2300 movs r3, #0
  96109. 8026a56: 60fb str r3, [r7, #12]
  96110. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96111. 8026a58: 2300 movs r3, #0
  96112. 8026a5a: 60fb str r3, [r7, #12]
  96113. 8026a5c: e008 b.n 8026a70 <MQTTCleanSession+0x24>
  96114. c->messageHandlers[i].topicFilter = NULL;
  96115. 8026a5e: 687b ldr r3, [r7, #4]
  96116. 8026a60: 68fa ldr r2, [r7, #12]
  96117. 8026a62: 3205 adds r2, #5
  96118. 8026a64: 2100 movs r1, #0
  96119. 8026a66: f843 1032 str.w r1, [r3, r2, lsl #3]
  96120. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96121. 8026a6a: 68fb ldr r3, [r7, #12]
  96122. 8026a6c: 3301 adds r3, #1
  96123. 8026a6e: 60fb str r3, [r7, #12]
  96124. 8026a70: 68fb ldr r3, [r7, #12]
  96125. 8026a72: 2b04 cmp r3, #4
  96126. 8026a74: ddf3 ble.n 8026a5e <MQTTCleanSession+0x12>
  96127. }
  96128. 8026a76: bf00 nop
  96129. 8026a78: bf00 nop
  96130. 8026a7a: 3714 adds r7, #20
  96131. 8026a7c: 46bd mov sp, r7
  96132. 8026a7e: f85d 7b04 ldr.w r7, [sp], #4
  96133. 8026a82: 4770 bx lr
  96134. 08026a84 <MQTTCloseSession>:
  96135. void MQTTCloseSession(MQTTClient* c)
  96136. {
  96137. 8026a84: b580 push {r7, lr}
  96138. 8026a86: b082 sub sp, #8
  96139. 8026a88: af00 add r7, sp, #0
  96140. 8026a8a: 6078 str r0, [r7, #4]
  96141. c->ping_outstanding = 0;
  96142. 8026a8c: 687b ldr r3, [r7, #4]
  96143. 8026a8e: 2200 movs r2, #0
  96144. 8026a90: 771a strb r2, [r3, #28]
  96145. c->isconnected = 0;
  96146. 8026a92: 687b ldr r3, [r7, #4]
  96147. 8026a94: 2200 movs r2, #0
  96148. 8026a96: 621a str r2, [r3, #32]
  96149. if (c->cleansession)
  96150. 8026a98: 687b ldr r3, [r7, #4]
  96151. 8026a9a: 6a5b ldr r3, [r3, #36] @ 0x24
  96152. 8026a9c: 2b00 cmp r3, #0
  96153. 8026a9e: d002 beq.n 8026aa6 <MQTTCloseSession+0x22>
  96154. MQTTCleanSession(c);
  96155. 8026aa0: 6878 ldr r0, [r7, #4]
  96156. 8026aa2: f7ff ffd3 bl 8026a4c <MQTTCleanSession>
  96157. }
  96158. 8026aa6: bf00 nop
  96159. 8026aa8: 3708 adds r7, #8
  96160. 8026aaa: 46bd mov sp, r7
  96161. 8026aac: bd80 pop {r7, pc}
  96162. ...
  96163. 08026ab0 <cycle>:
  96164. int cycle(MQTTClient* c, Timer* timer)
  96165. {
  96166. 8026ab0: b5f0 push {r4, r5, r6, r7, lr}
  96167. 8026ab2: b095 sub sp, #84 @ 0x54
  96168. 8026ab4: af06 add r7, sp, #24
  96169. 8026ab6: 6078 str r0, [r7, #4]
  96170. 8026ab8: 6039 str r1, [r7, #0]
  96171. int len = 0,
  96172. 8026aba: 2300 movs r3, #0
  96173. 8026abc: 637b str r3, [r7, #52] @ 0x34
  96174. rc = MQTT_SUCCESS;
  96175. 8026abe: 2300 movs r3, #0
  96176. 8026ac0: 633b str r3, [r7, #48] @ 0x30
  96177. int packet_type = readPacket(c, timer); /* read the socket, see what work is due */
  96178. 8026ac2: 6839 ldr r1, [r7, #0]
  96179. 8026ac4: 6878 ldr r0, [r7, #4]
  96180. 8026ac6: f7ff fe1b bl 8026700 <readPacket>
  96181. 8026aca: 62f8 str r0, [r7, #44] @ 0x2c
  96182. switch (packet_type)
  96183. 8026acc: 6afb ldr r3, [r7, #44] @ 0x2c
  96184. 8026ace: 2b0d cmp r3, #13
  96185. 8026ad0: d81e bhi.n 8026b10 <cycle+0x60>
  96186. 8026ad2: a201 add r2, pc, #4 @ (adr r2, 8026ad8 <cycle+0x28>)
  96187. 8026ad4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  96188. 8026ad8: 08026c67 .word 0x08026c67
  96189. 8026adc: 08026b11 .word 0x08026b11
  96190. 8026ae0: 08026c67 .word 0x08026c67
  96191. 8026ae4: 08026b17 .word 0x08026b17
  96192. 8026ae8: 08026c67 .word 0x08026c67
  96193. 8026aec: 08026be3 .word 0x08026be3
  96194. 8026af0: 08026be3 .word 0x08026be3
  96195. 8026af4: 08026c67 .word 0x08026c67
  96196. 8026af8: 08026b11 .word 0x08026b11
  96197. 8026afc: 08026c67 .word 0x08026c67
  96198. 8026b00: 08026b11 .word 0x08026b11
  96199. 8026b04: 08026c67 .word 0x08026c67
  96200. 8026b08: 08026b11 .word 0x08026b11
  96201. 8026b0c: 08026c5f .word 0x08026c5f
  96202. {
  96203. default:
  96204. /* no more data to read, unrecoverable. Or read packet fails due to unexpected network error */
  96205. rc = packet_type;
  96206. 8026b10: 6afb ldr r3, [r7, #44] @ 0x2c
  96207. 8026b12: 633b str r3, [r7, #48] @ 0x30
  96208. goto exit;
  96209. 8026b14: e0b9 b.n 8026c8a <cycle+0x1da>
  96210. case PUBLISH:
  96211. {
  96212. MQTTString topicName;
  96213. MQTTMessage msg;
  96214. int intQoS;
  96215. msg.payloadlen = 0; /* this is a size_t, but deserialize publish sets this as int */
  96216. 8026b16: 2300 movs r3, #0
  96217. 8026b18: 61fb str r3, [r7, #28]
  96218. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  96219. 8026b1a: 687b ldr r3, [r7, #4]
  96220. 8026b1c: 695b ldr r3, [r3, #20]
  96221. (unsigned char**)&msg.payload, (int*)&msg.payloadlen, c->readbuf, c->readbuf_size) != 1)
  96222. 8026b1e: 687a ldr r2, [r7, #4]
  96223. 8026b20: 68d2 ldr r2, [r2, #12]
  96224. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  96225. 8026b22: 4616 mov r6, r2
  96226. 8026b24: f107 0210 add.w r2, r7, #16
  96227. 8026b28: 1d15 adds r5, r2, #4
  96228. 8026b2a: f107 0210 add.w r2, r7, #16
  96229. 8026b2e: 1c54 adds r4, r2, #1
  96230. 8026b30: f107 010c add.w r1, r7, #12
  96231. 8026b34: f107 0210 add.w r2, r7, #16
  96232. 8026b38: 1c90 adds r0, r2, #2
  96233. 8026b3a: 9604 str r6, [sp, #16]
  96234. 8026b3c: 9303 str r3, [sp, #12]
  96235. 8026b3e: f107 0310 add.w r3, r7, #16
  96236. 8026b42: 330c adds r3, #12
  96237. 8026b44: 9302 str r3, [sp, #8]
  96238. 8026b46: f107 0310 add.w r3, r7, #16
  96239. 8026b4a: 3308 adds r3, #8
  96240. 8026b4c: 9301 str r3, [sp, #4]
  96241. 8026b4e: f107 0320 add.w r3, r7, #32
  96242. 8026b52: 9300 str r3, [sp, #0]
  96243. 8026b54: 462b mov r3, r5
  96244. 8026b56: 4622 mov r2, r4
  96245. 8026b58: f000 fea0 bl 802789c <MQTTDeserialize_publish>
  96246. 8026b5c: 4603 mov r3, r0
  96247. 8026b5e: 2b01 cmp r3, #1
  96248. 8026b60: f040 8090 bne.w 8026c84 <cycle+0x1d4>
  96249. goto exit;
  96250. msg.qos = (enum QoS)intQoS;
  96251. 8026b64: 68fb ldr r3, [r7, #12]
  96252. 8026b66: b2db uxtb r3, r3
  96253. 8026b68: 743b strb r3, [r7, #16]
  96254. deliverMessage(c, &topicName, &msg);
  96255. 8026b6a: f107 0210 add.w r2, r7, #16
  96256. 8026b6e: f107 0320 add.w r3, r7, #32
  96257. 8026b72: 4619 mov r1, r3
  96258. 8026b74: 6878 ldr r0, [r7, #4]
  96259. 8026b76: f7ff feb0 bl 80268da <deliverMessage>
  96260. if (msg.qos != QOS0)
  96261. 8026b7a: 7c3b ldrb r3, [r7, #16]
  96262. 8026b7c: 2b00 cmp r3, #0
  96263. 8026b7e: d074 beq.n 8026c6a <cycle+0x1ba>
  96264. {
  96265. if (msg.qos == QOS1)
  96266. 8026b80: 7c3b ldrb r3, [r7, #16]
  96267. 8026b82: 2b01 cmp r3, #1
  96268. 8026b84: d10c bne.n 8026ba0 <cycle+0xf0>
  96269. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBACK, 0, msg.id);
  96270. 8026b86: 687b ldr r3, [r7, #4]
  96271. 8026b88: 6918 ldr r0, [r3, #16]
  96272. 8026b8a: 687b ldr r3, [r7, #4]
  96273. 8026b8c: 689b ldr r3, [r3, #8]
  96274. 8026b8e: 4619 mov r1, r3
  96275. 8026b90: 8abb ldrh r3, [r7, #20]
  96276. 8026b92: 9300 str r3, [sp, #0]
  96277. 8026b94: 2300 movs r3, #0
  96278. 8026b96: 2204 movs r2, #4
  96279. 8026b98: f001 f9d9 bl 8027f4e <MQTTSerialize_ack>
  96280. 8026b9c: 6378 str r0, [r7, #52] @ 0x34
  96281. 8026b9e: e00e b.n 8026bbe <cycle+0x10e>
  96282. else if (msg.qos == QOS2)
  96283. 8026ba0: 7c3b ldrb r3, [r7, #16]
  96284. 8026ba2: 2b02 cmp r3, #2
  96285. 8026ba4: d10b bne.n 8026bbe <cycle+0x10e>
  96286. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBREC, 0, msg.id);
  96287. 8026ba6: 687b ldr r3, [r7, #4]
  96288. 8026ba8: 6918 ldr r0, [r3, #16]
  96289. 8026baa: 687b ldr r3, [r7, #4]
  96290. 8026bac: 689b ldr r3, [r3, #8]
  96291. 8026bae: 4619 mov r1, r3
  96292. 8026bb0: 8abb ldrh r3, [r7, #20]
  96293. 8026bb2: 9300 str r3, [sp, #0]
  96294. 8026bb4: 2300 movs r3, #0
  96295. 8026bb6: 2205 movs r2, #5
  96296. 8026bb8: f001 f9c9 bl 8027f4e <MQTTSerialize_ack>
  96297. 8026bbc: 6378 str r0, [r7, #52] @ 0x34
  96298. if (len <= 0)
  96299. 8026bbe: 6b7b ldr r3, [r7, #52] @ 0x34
  96300. 8026bc0: 2b00 cmp r3, #0
  96301. 8026bc2: dc03 bgt.n 8026bcc <cycle+0x11c>
  96302. rc = FAILURE;
  96303. 8026bc4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96304. 8026bc8: 633b str r3, [r7, #48] @ 0x30
  96305. 8026bca: e005 b.n 8026bd8 <cycle+0x128>
  96306. else
  96307. rc = sendPacket(c, len, timer);
  96308. 8026bcc: 683a ldr r2, [r7, #0]
  96309. 8026bce: 6b79 ldr r1, [r7, #52] @ 0x34
  96310. 8026bd0: 6878 ldr r0, [r7, #4]
  96311. 8026bd2: f7ff fcb6 bl 8026542 <sendPacket>
  96312. 8026bd6: 6338 str r0, [r7, #48] @ 0x30
  96313. if (rc == FAILURE)
  96314. 8026bd8: 6b3b ldr r3, [r7, #48] @ 0x30
  96315. 8026bda: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  96316. 8026bde: d144 bne.n 8026c6a <cycle+0x1ba>
  96317. goto exit; // there was a problem
  96318. 8026be0: e053 b.n 8026c8a <cycle+0x1da>
  96319. case PUBREC:
  96320. case PUBREL:
  96321. {
  96322. unsigned short mypacketid;
  96323. unsigned char dup, type;
  96324. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  96325. 8026be2: 687b ldr r3, [r7, #4]
  96326. 8026be4: 695c ldr r4, [r3, #20]
  96327. 8026be6: 687b ldr r3, [r7, #4]
  96328. 8026be8: 68db ldr r3, [r3, #12]
  96329. 8026bea: f107 020a add.w r2, r7, #10
  96330. 8026bee: f107 0109 add.w r1, r7, #9
  96331. 8026bf2: f107 0008 add.w r0, r7, #8
  96332. 8026bf6: 9300 str r3, [sp, #0]
  96333. 8026bf8: 4623 mov r3, r4
  96334. 8026bfa: f000 fec1 bl 8027980 <MQTTDeserialize_ack>
  96335. 8026bfe: 4603 mov r3, r0
  96336. 8026c00: 2b01 cmp r3, #1
  96337. 8026c02: d003 beq.n 8026c0c <cycle+0x15c>
  96338. rc = FAILURE;
  96339. 8026c04: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96340. 8026c08: 633b str r3, [r7, #48] @ 0x30
  96341. 8026c0a: e023 b.n 8026c54 <cycle+0x1a4>
  96342. else if ((len = MQTTSerialize_ack(c->buf, c->buf_size,
  96343. 8026c0c: 687b ldr r3, [r7, #4]
  96344. 8026c0e: 6918 ldr r0, [r3, #16]
  96345. 8026c10: 687b ldr r3, [r7, #4]
  96346. 8026c12: 689b ldr r3, [r3, #8]
  96347. 8026c14: 4619 mov r1, r3
  96348. 8026c16: 6afb ldr r3, [r7, #44] @ 0x2c
  96349. 8026c18: 2b05 cmp r3, #5
  96350. 8026c1a: d101 bne.n 8026c20 <cycle+0x170>
  96351. 8026c1c: 2206 movs r2, #6
  96352. 8026c1e: e000 b.n 8026c22 <cycle+0x172>
  96353. 8026c20: 2207 movs r2, #7
  96354. 8026c22: 897b ldrh r3, [r7, #10]
  96355. 8026c24: 9300 str r3, [sp, #0]
  96356. 8026c26: 2300 movs r3, #0
  96357. 8026c28: f001 f991 bl 8027f4e <MQTTSerialize_ack>
  96358. 8026c2c: 6378 str r0, [r7, #52] @ 0x34
  96359. 8026c2e: 6b7b ldr r3, [r7, #52] @ 0x34
  96360. 8026c30: 2b00 cmp r3, #0
  96361. 8026c32: dc03 bgt.n 8026c3c <cycle+0x18c>
  96362. (packet_type == PUBREC) ? PUBREL : PUBCOMP, 0, mypacketid)) <= 0)
  96363. rc = FAILURE;
  96364. 8026c34: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96365. 8026c38: 633b str r3, [r7, #48] @ 0x30
  96366. 8026c3a: e00b b.n 8026c54 <cycle+0x1a4>
  96367. else if ((rc = sendPacket(c, len, timer)) != MQTT_SUCCESS) // send the PUBREL packet
  96368. 8026c3c: 683a ldr r2, [r7, #0]
  96369. 8026c3e: 6b79 ldr r1, [r7, #52] @ 0x34
  96370. 8026c40: 6878 ldr r0, [r7, #4]
  96371. 8026c42: f7ff fc7e bl 8026542 <sendPacket>
  96372. 8026c46: 6338 str r0, [r7, #48] @ 0x30
  96373. 8026c48: 6b3b ldr r3, [r7, #48] @ 0x30
  96374. 8026c4a: 2b00 cmp r3, #0
  96375. 8026c4c: d002 beq.n 8026c54 <cycle+0x1a4>
  96376. rc = FAILURE; // there was a problem
  96377. 8026c4e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96378. 8026c52: 633b str r3, [r7, #48] @ 0x30
  96379. if (rc == FAILURE)
  96380. 8026c54: 6b3b ldr r3, [r7, #48] @ 0x30
  96381. 8026c56: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  96382. 8026c5a: d108 bne.n 8026c6e <cycle+0x1be>
  96383. goto exit; // there was a problem
  96384. 8026c5c: e015 b.n 8026c8a <cycle+0x1da>
  96385. }
  96386. case PUBCOMP:
  96387. break;
  96388. case PINGRESP:
  96389. c->ping_outstanding = 0;
  96390. 8026c5e: 687b ldr r3, [r7, #4]
  96391. 8026c60: 2200 movs r2, #0
  96392. 8026c62: 771a strb r2, [r3, #28]
  96393. break;
  96394. 8026c64: e004 b.n 8026c70 <cycle+0x1c0>
  96395. break;
  96396. 8026c66: bf00 nop
  96397. 8026c68: e002 b.n 8026c70 <cycle+0x1c0>
  96398. break;
  96399. 8026c6a: bf00 nop
  96400. 8026c6c: e000 b.n 8026c70 <cycle+0x1c0>
  96401. break;
  96402. 8026c6e: bf00 nop
  96403. }
  96404. if (keepalive(c) != MQTT_SUCCESS) {
  96405. 8026c70: 6878 ldr r0, [r7, #4]
  96406. 8026c72: f7ff fe9a bl 80269aa <keepalive>
  96407. 8026c76: 4603 mov r3, r0
  96408. 8026c78: 2b00 cmp r3, #0
  96409. 8026c7a: d005 beq.n 8026c88 <cycle+0x1d8>
  96410. //check only keepalive FAILURE status so that previous FAILURE status can be considered as FAULT
  96411. rc = FAILURE;
  96412. 8026c7c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96413. 8026c80: 633b str r3, [r7, #48] @ 0x30
  96414. 8026c82: e002 b.n 8026c8a <cycle+0x1da>
  96415. goto exit;
  96416. 8026c84: bf00 nop
  96417. 8026c86: e000 b.n 8026c8a <cycle+0x1da>
  96418. }
  96419. exit:
  96420. 8026c88: bf00 nop
  96421. if (rc == MQTT_SUCCESS)
  96422. 8026c8a: 6b3b ldr r3, [r7, #48] @ 0x30
  96423. 8026c8c: 2b00 cmp r3, #0
  96424. 8026c8e: d102 bne.n 8026c96 <cycle+0x1e6>
  96425. rc = packet_type;
  96426. 8026c90: 6afb ldr r3, [r7, #44] @ 0x2c
  96427. 8026c92: 633b str r3, [r7, #48] @ 0x30
  96428. 8026c94: e006 b.n 8026ca4 <cycle+0x1f4>
  96429. else if (c->isconnected)
  96430. 8026c96: 687b ldr r3, [r7, #4]
  96431. 8026c98: 6a1b ldr r3, [r3, #32]
  96432. 8026c9a: 2b00 cmp r3, #0
  96433. 8026c9c: d002 beq.n 8026ca4 <cycle+0x1f4>
  96434. MQTTCloseSession(c);
  96435. 8026c9e: 6878 ldr r0, [r7, #4]
  96436. 8026ca0: f7ff fef0 bl 8026a84 <MQTTCloseSession>
  96437. return rc;
  96438. 8026ca4: 6b3b ldr r3, [r7, #48] @ 0x30
  96439. }
  96440. 8026ca6: 4618 mov r0, r3
  96441. 8026ca8: 373c adds r7, #60 @ 0x3c
  96442. 8026caa: 46bd mov sp, r7
  96443. 8026cac: bdf0 pop {r4, r5, r6, r7, pc}
  96444. 8026cae: bf00 nop
  96445. 08026cb0 <MQTTYield>:
  96446. int MQTTYield(MQTTClient* c, int timeout_ms)
  96447. {
  96448. 8026cb0: b580 push {r7, lr}
  96449. 8026cb2: b086 sub sp, #24
  96450. 8026cb4: af00 add r7, sp, #0
  96451. 8026cb6: 6078 str r0, [r7, #4]
  96452. 8026cb8: 6039 str r1, [r7, #0]
  96453. int rc = MQTT_SUCCESS;
  96454. 8026cba: 2300 movs r3, #0
  96455. 8026cbc: 617b str r3, [r7, #20]
  96456. Timer timer;
  96457. TimerInit(&timer);
  96458. 8026cbe: f107 030c add.w r3, r7, #12
  96459. 8026cc2: 4618 mov r0, r3
  96460. 8026cc4: f000 fb3e bl 8027344 <TimerInit>
  96461. TimerCountdownMS(&timer, timeout_ms);
  96462. 8026cc8: 683a ldr r2, [r7, #0]
  96463. 8026cca: f107 030c add.w r3, r7, #12
  96464. 8026cce: 4611 mov r1, r2
  96465. 8026cd0: 4618 mov r0, r3
  96466. 8026cd2: f000 faf5 bl 80272c0 <TimerCountdownMS>
  96467. do
  96468. {
  96469. if (cycle(c, &timer) < 0)
  96470. 8026cd6: f107 030c add.w r3, r7, #12
  96471. 8026cda: 4619 mov r1, r3
  96472. 8026cdc: 6878 ldr r0, [r7, #4]
  96473. 8026cde: f7ff fee7 bl 8026ab0 <cycle>
  96474. 8026ce2: 4603 mov r3, r0
  96475. 8026ce4: 2b00 cmp r3, #0
  96476. 8026ce6: da03 bge.n 8026cf0 <MQTTYield+0x40>
  96477. {
  96478. rc = FAILURE;
  96479. 8026ce8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96480. 8026cec: 617b str r3, [r7, #20]
  96481. break;
  96482. 8026cee: e007 b.n 8026d00 <MQTTYield+0x50>
  96483. }
  96484. } while (!TimerIsExpired(&timer));
  96485. 8026cf0: f107 030c add.w r3, r7, #12
  96486. 8026cf4: 4618 mov r0, r3
  96487. 8026cf6: f000 facd bl 8027294 <TimerIsExpired>
  96488. 8026cfa: 4603 mov r3, r0
  96489. 8026cfc: 2b00 cmp r3, #0
  96490. 8026cfe: d0ea beq.n 8026cd6 <MQTTYield+0x26>
  96491. return rc;
  96492. 8026d00: 697b ldr r3, [r7, #20]
  96493. }
  96494. 8026d02: 4618 mov r0, r3
  96495. 8026d04: 3718 adds r7, #24
  96496. 8026d06: 46bd mov sp, r7
  96497. 8026d08: bd80 pop {r7, pc}
  96498. 08026d0a <waitfor>:
  96499. }
  96500. #endif
  96501. int waitfor(MQTTClient* c, int packet_type, Timer* timer)
  96502. {
  96503. 8026d0a: b580 push {r7, lr}
  96504. 8026d0c: b086 sub sp, #24
  96505. 8026d0e: af00 add r7, sp, #0
  96506. 8026d10: 60f8 str r0, [r7, #12]
  96507. 8026d12: 60b9 str r1, [r7, #8]
  96508. 8026d14: 607a str r2, [r7, #4]
  96509. int rc = FAILURE;
  96510. 8026d16: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96511. 8026d1a: 617b str r3, [r7, #20]
  96512. do
  96513. {
  96514. if (TimerIsExpired(timer))
  96515. 8026d1c: 6878 ldr r0, [r7, #4]
  96516. 8026d1e: f000 fab9 bl 8027294 <TimerIsExpired>
  96517. 8026d22: 4603 mov r3, r0
  96518. 8026d24: 2b00 cmp r3, #0
  96519. 8026d26: d10c bne.n 8026d42 <waitfor+0x38>
  96520. break; // we timed out
  96521. rc = cycle(c, timer);
  96522. 8026d28: 6879 ldr r1, [r7, #4]
  96523. 8026d2a: 68f8 ldr r0, [r7, #12]
  96524. 8026d2c: f7ff fec0 bl 8026ab0 <cycle>
  96525. 8026d30: 6178 str r0, [r7, #20]
  96526. }
  96527. while (rc != packet_type && rc >= 0);
  96528. 8026d32: 697a ldr r2, [r7, #20]
  96529. 8026d34: 68bb ldr r3, [r7, #8]
  96530. 8026d36: 429a cmp r2, r3
  96531. 8026d38: d004 beq.n 8026d44 <waitfor+0x3a>
  96532. 8026d3a: 697b ldr r3, [r7, #20]
  96533. 8026d3c: 2b00 cmp r3, #0
  96534. 8026d3e: daed bge.n 8026d1c <waitfor+0x12>
  96535. 8026d40: e000 b.n 8026d44 <waitfor+0x3a>
  96536. break; // we timed out
  96537. 8026d42: bf00 nop
  96538. return rc;
  96539. 8026d44: 697b ldr r3, [r7, #20]
  96540. }
  96541. 8026d46: 4618 mov r0, r3
  96542. 8026d48: 3718 adds r7, #24
  96543. 8026d4a: 46bd mov sp, r7
  96544. 8026d4c: bd80 pop {r7, pc}
  96545. ...
  96546. 08026d50 <MQTTConnectWithResults>:
  96547. int MQTTConnectWithResults(MQTTClient* c, MQTTPacket_connectData* options, MQTTConnackData* data)
  96548. {
  96549. 8026d50: b580 push {r7, lr}
  96550. 8026d52: b09e sub sp, #120 @ 0x78
  96551. 8026d54: af00 add r7, sp, #0
  96552. 8026d56: 60f8 str r0, [r7, #12]
  96553. 8026d58: 60b9 str r1, [r7, #8]
  96554. 8026d5a: 607a str r2, [r7, #4]
  96555. Timer connect_timer;
  96556. int rc = FAILURE;
  96557. 8026d5c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96558. 8026d60: 677b str r3, [r7, #116] @ 0x74
  96559. MQTTPacket_connectData default_options = MQTTPacket_connectData_initializer;
  96560. 8026d62: 4a49 ldr r2, [pc, #292] @ (8026e88 <MQTTConnectWithResults+0x138>)
  96561. 8026d64: f107 0310 add.w r3, r7, #16
  96562. 8026d68: 4611 mov r1, r2
  96563. 8026d6a: 2258 movs r2, #88 @ 0x58
  96564. 8026d6c: 4618 mov r0, r3
  96565. 8026d6e: f003 f8be bl 8029eee <memcpy>
  96566. int len = 0;
  96567. 8026d72: 2300 movs r3, #0
  96568. 8026d74: 673b str r3, [r7, #112] @ 0x70
  96569. #if defined(MQTT_TASK)
  96570. MutexLock(&c->mutex);
  96571. #endif
  96572. // osMutexAcquire(mqttMutex, osWaitForever);
  96573. osMutexAcquire(c->mutex, osWaitForever);
  96574. 8026d76: 68fb ldr r3, [r7, #12]
  96575. 8026d78: 6e9b ldr r3, [r3, #104] @ 0x68
  96576. 8026d7a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96577. 8026d7e: 4618 mov r0, r3
  96578. 8026d80: f7e9 feaa bl 8010ad8 <osMutexAcquire>
  96579. if (c->isconnected) /* don't send connect packet again if we are already connected */
  96580. 8026d84: 68fb ldr r3, [r7, #12]
  96581. 8026d86: 6a1b ldr r3, [r3, #32]
  96582. 8026d88: 2b00 cmp r3, #0
  96583. 8026d8a: d164 bne.n 8026e56 <MQTTConnectWithResults+0x106>
  96584. goto exit;
  96585. TimerInit(&connect_timer);
  96586. 8026d8c: f107 0368 add.w r3, r7, #104 @ 0x68
  96587. 8026d90: 4618 mov r0, r3
  96588. 8026d92: f000 fad7 bl 8027344 <TimerInit>
  96589. TimerCountdownMS(&connect_timer, c->command_timeout_ms);
  96590. 8026d96: 68fb ldr r3, [r7, #12]
  96591. 8026d98: 685a ldr r2, [r3, #4]
  96592. 8026d9a: f107 0368 add.w r3, r7, #104 @ 0x68
  96593. 8026d9e: 4611 mov r1, r2
  96594. 8026da0: 4618 mov r0, r3
  96595. 8026da2: f000 fa8d bl 80272c0 <TimerCountdownMS>
  96596. if (options == 0)
  96597. 8026da6: 68bb ldr r3, [r7, #8]
  96598. 8026da8: 2b00 cmp r3, #0
  96599. 8026daa: d102 bne.n 8026db2 <MQTTConnectWithResults+0x62>
  96600. options = &default_options; /* set default options if none were supplied */
  96601. 8026dac: f107 0310 add.w r3, r7, #16
  96602. 8026db0: 60bb str r3, [r7, #8]
  96603. c->keepAliveInterval = options->keepAliveInterval;
  96604. 8026db2: 68bb ldr r3, [r7, #8]
  96605. 8026db4: 8b1b ldrh r3, [r3, #24]
  96606. 8026db6: 461a mov r2, r3
  96607. 8026db8: 68fb ldr r3, [r7, #12]
  96608. 8026dba: 619a str r2, [r3, #24]
  96609. c->cleansession = options->cleansession;
  96610. 8026dbc: 68bb ldr r3, [r7, #8]
  96611. 8026dbe: 7e9b ldrb r3, [r3, #26]
  96612. 8026dc0: 461a mov r2, r3
  96613. 8026dc2: 68fb ldr r3, [r7, #12]
  96614. 8026dc4: 625a str r2, [r3, #36] @ 0x24
  96615. TimerCountdown(&c->last_received, c->keepAliveInterval);
  96616. 8026dc6: 68fb ldr r3, [r7, #12]
  96617. 8026dc8: f103 0260 add.w r2, r3, #96 @ 0x60
  96618. 8026dcc: 68fb ldr r3, [r7, #12]
  96619. 8026dce: 699b ldr r3, [r3, #24]
  96620. 8026dd0: 4619 mov r1, r3
  96621. 8026dd2: 4610 mov r0, r2
  96622. 8026dd4: f000 fa88 bl 80272e8 <TimerCountdown>
  96623. if ((len = MQTTSerialize_connect(c->buf, c->buf_size, options)) <= 0)
  96624. 8026dd8: 68fb ldr r3, [r7, #12]
  96625. 8026dda: 6918 ldr r0, [r3, #16]
  96626. 8026ddc: 68fb ldr r3, [r7, #12]
  96627. 8026dde: 689b ldr r3, [r3, #8]
  96628. 8026de0: 68ba ldr r2, [r7, #8]
  96629. 8026de2: 4619 mov r1, r3
  96630. 8026de4: f000 fbd2 bl 802758c <MQTTSerialize_connect>
  96631. 8026de8: 6738 str r0, [r7, #112] @ 0x70
  96632. 8026dea: 6f3b ldr r3, [r7, #112] @ 0x70
  96633. 8026dec: 2b00 cmp r3, #0
  96634. 8026dee: dd34 ble.n 8026e5a <MQTTConnectWithResults+0x10a>
  96635. goto exit;
  96636. if ((rc = sendPacket(c, len, &connect_timer)) != MQTT_SUCCESS) // send the connect packet
  96637. 8026df0: f107 0368 add.w r3, r7, #104 @ 0x68
  96638. 8026df4: 461a mov r2, r3
  96639. 8026df6: 6f39 ldr r1, [r7, #112] @ 0x70
  96640. 8026df8: 68f8 ldr r0, [r7, #12]
  96641. 8026dfa: f7ff fba2 bl 8026542 <sendPacket>
  96642. 8026dfe: 6778 str r0, [r7, #116] @ 0x74
  96643. 8026e00: 6f7b ldr r3, [r7, #116] @ 0x74
  96644. 8026e02: 2b00 cmp r3, #0
  96645. 8026e04: d12b bne.n 8026e5e <MQTTConnectWithResults+0x10e>
  96646. goto exit; // there was a problem
  96647. // this will be a blocking call, wait for the connack
  96648. if (waitfor(c, CONNACK, &connect_timer) == CONNACK)
  96649. 8026e06: f107 0368 add.w r3, r7, #104 @ 0x68
  96650. 8026e0a: 461a mov r2, r3
  96651. 8026e0c: 2102 movs r1, #2
  96652. 8026e0e: 68f8 ldr r0, [r7, #12]
  96653. 8026e10: f7ff ff7b bl 8026d0a <waitfor>
  96654. 8026e14: 4603 mov r3, r0
  96655. 8026e16: 2b02 cmp r3, #2
  96656. 8026e18: d119 bne.n 8026e4e <MQTTConnectWithResults+0xfe>
  96657. {
  96658. data->rc = 0;
  96659. 8026e1a: 687b ldr r3, [r7, #4]
  96660. 8026e1c: 2200 movs r2, #0
  96661. 8026e1e: 701a strb r2, [r3, #0]
  96662. data->sessionPresent = 0;
  96663. 8026e20: 687b ldr r3, [r7, #4]
  96664. 8026e22: 2200 movs r2, #0
  96665. 8026e24: 705a strb r2, [r3, #1]
  96666. if (MQTTDeserialize_connack(&data->sessionPresent, &data->rc, c->readbuf, c->readbuf_size) == 1)
  96667. 8026e26: 687b ldr r3, [r7, #4]
  96668. 8026e28: 1c58 adds r0, r3, #1
  96669. 8026e2a: 6879 ldr r1, [r7, #4]
  96670. 8026e2c: 68fb ldr r3, [r7, #12]
  96671. 8026e2e: 695a ldr r2, [r3, #20]
  96672. 8026e30: 68fb ldr r3, [r7, #12]
  96673. 8026e32: 68db ldr r3, [r3, #12]
  96674. 8026e34: f000 fc96 bl 8027764 <MQTTDeserialize_connack>
  96675. 8026e38: 4603 mov r3, r0
  96676. 8026e3a: 2b01 cmp r3, #1
  96677. 8026e3c: d103 bne.n 8026e46 <MQTTConnectWithResults+0xf6>
  96678. rc = data->rc;
  96679. 8026e3e: 687b ldr r3, [r7, #4]
  96680. 8026e40: 781b ldrb r3, [r3, #0]
  96681. 8026e42: 677b str r3, [r7, #116] @ 0x74
  96682. 8026e44: e00c b.n 8026e60 <MQTTConnectWithResults+0x110>
  96683. // rc = MQTT_SUCCESS;
  96684. else
  96685. rc = FAILURE;
  96686. 8026e46: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96687. 8026e4a: 677b str r3, [r7, #116] @ 0x74
  96688. 8026e4c: e008 b.n 8026e60 <MQTTConnectWithResults+0x110>
  96689. }
  96690. else
  96691. rc = FAILURE;
  96692. 8026e4e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96693. 8026e52: 677b str r3, [r7, #116] @ 0x74
  96694. 8026e54: e004 b.n 8026e60 <MQTTConnectWithResults+0x110>
  96695. goto exit;
  96696. 8026e56: bf00 nop
  96697. 8026e58: e002 b.n 8026e60 <MQTTConnectWithResults+0x110>
  96698. goto exit;
  96699. 8026e5a: bf00 nop
  96700. 8026e5c: e000 b.n 8026e60 <MQTTConnectWithResults+0x110>
  96701. goto exit; // there was a problem
  96702. 8026e5e: bf00 nop
  96703. exit:
  96704. if (rc == MQTT_SUCCESS)
  96705. 8026e60: 6f7b ldr r3, [r7, #116] @ 0x74
  96706. 8026e62: 2b00 cmp r3, #0
  96707. 8026e64: d105 bne.n 8026e72 <MQTTConnectWithResults+0x122>
  96708. {
  96709. c->isconnected = 1;
  96710. 8026e66: 68fb ldr r3, [r7, #12]
  96711. 8026e68: 2201 movs r2, #1
  96712. 8026e6a: 621a str r2, [r3, #32]
  96713. c->ping_outstanding = 0;
  96714. 8026e6c: 68fb ldr r3, [r7, #12]
  96715. 8026e6e: 2200 movs r2, #0
  96716. 8026e70: 771a strb r2, [r3, #28]
  96717. #if defined(MQTT_TASK)
  96718. MutexUnlock(&c->mutex);
  96719. #endif
  96720. // osMutexRelease(mqttMutex);
  96721. osMutexRelease(c->mutex);
  96722. 8026e72: 68fb ldr r3, [r7, #12]
  96723. 8026e74: 6e9b ldr r3, [r3, #104] @ 0x68
  96724. 8026e76: 4618 mov r0, r3
  96725. 8026e78: f7e9 fe79 bl 8010b6e <osMutexRelease>
  96726. return rc;
  96727. 8026e7c: 6f7b ldr r3, [r7, #116] @ 0x74
  96728. }
  96729. 8026e7e: 4618 mov r0, r3
  96730. 8026e80: 3778 adds r7, #120 @ 0x78
  96731. 8026e82: 46bd mov sp, r7
  96732. 8026e84: bd80 pop {r7, pc}
  96733. 8026e86: bf00 nop
  96734. 8026e88: 08030970 .word 0x08030970
  96735. 08026e8c <MQTTConnect>:
  96736. int MQTTConnect(MQTTClient* c, MQTTPacket_connectData* options)
  96737. {
  96738. 8026e8c: b580 push {r7, lr}
  96739. 8026e8e: b084 sub sp, #16
  96740. 8026e90: af00 add r7, sp, #0
  96741. 8026e92: 6078 str r0, [r7, #4]
  96742. 8026e94: 6039 str r1, [r7, #0]
  96743. MQTTConnackData data;
  96744. return MQTTConnectWithResults(c, options, &data);
  96745. 8026e96: f107 030c add.w r3, r7, #12
  96746. 8026e9a: 461a mov r2, r3
  96747. 8026e9c: 6839 ldr r1, [r7, #0]
  96748. 8026e9e: 6878 ldr r0, [r7, #4]
  96749. 8026ea0: f7ff ff56 bl 8026d50 <MQTTConnectWithResults>
  96750. 8026ea4: 4603 mov r3, r0
  96751. }
  96752. 8026ea6: 4618 mov r0, r3
  96753. 8026ea8: 3710 adds r7, #16
  96754. 8026eaa: 46bd mov sp, r7
  96755. 8026eac: bd80 pop {r7, pc}
  96756. 08026eae <MQTTSetMessageHandler>:
  96757. int MQTTSetMessageHandler(MQTTClient* c, const char* topicFilter, messageHandler messageHandler)
  96758. {
  96759. 8026eae: b580 push {r7, lr}
  96760. 8026eb0: b086 sub sp, #24
  96761. 8026eb2: af00 add r7, sp, #0
  96762. 8026eb4: 60f8 str r0, [r7, #12]
  96763. 8026eb6: 60b9 str r1, [r7, #8]
  96764. 8026eb8: 607a str r2, [r7, #4]
  96765. int rc = FAILURE;
  96766. 8026eba: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96767. 8026ebe: 617b str r3, [r7, #20]
  96768. int i = -1;
  96769. 8026ec0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96770. 8026ec4: 613b str r3, [r7, #16]
  96771. /* first check for an existing matching slot */
  96772. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96773. 8026ec6: 2300 movs r3, #0
  96774. 8026ec8: 613b str r3, [r7, #16]
  96775. 8026eca: e028 b.n 8026f1e <MQTTSetMessageHandler+0x70>
  96776. {
  96777. if (c->messageHandlers[i].topicFilter != NULL && strcmp(c->messageHandlers[i].topicFilter, topicFilter) == 0)
  96778. 8026ecc: 68fb ldr r3, [r7, #12]
  96779. 8026ece: 693a ldr r2, [r7, #16]
  96780. 8026ed0: 3205 adds r2, #5
  96781. 8026ed2: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  96782. 8026ed6: 2b00 cmp r3, #0
  96783. 8026ed8: d01e beq.n 8026f18 <MQTTSetMessageHandler+0x6a>
  96784. 8026eda: 68fb ldr r3, [r7, #12]
  96785. 8026edc: 693a ldr r2, [r7, #16]
  96786. 8026ede: 3205 adds r2, #5
  96787. 8026ee0: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  96788. 8026ee4: 68b9 ldr r1, [r7, #8]
  96789. 8026ee6: 4618 mov r0, r3
  96790. 8026ee8: f7d9 f9fa bl 80002e0 <strcmp>
  96791. 8026eec: 4603 mov r3, r0
  96792. 8026eee: 2b00 cmp r3, #0
  96793. 8026ef0: d112 bne.n 8026f18 <MQTTSetMessageHandler+0x6a>
  96794. {
  96795. if (messageHandler == NULL) /* remove existing */
  96796. 8026ef2: 687b ldr r3, [r7, #4]
  96797. 8026ef4: 2b00 cmp r3, #0
  96798. 8026ef6: d10c bne.n 8026f12 <MQTTSetMessageHandler+0x64>
  96799. {
  96800. c->messageHandlers[i].topicFilter = NULL;
  96801. 8026ef8: 68fb ldr r3, [r7, #12]
  96802. 8026efa: 693a ldr r2, [r7, #16]
  96803. 8026efc: 3205 adds r2, #5
  96804. 8026efe: 2100 movs r1, #0
  96805. 8026f00: f843 1032 str.w r1, [r3, r2, lsl #3]
  96806. c->messageHandlers[i].fp = NULL;
  96807. 8026f04: 68fa ldr r2, [r7, #12]
  96808. 8026f06: 693b ldr r3, [r7, #16]
  96809. 8026f08: 3305 adds r3, #5
  96810. 8026f0a: 00db lsls r3, r3, #3
  96811. 8026f0c: 4413 add r3, r2
  96812. 8026f0e: 2200 movs r2, #0
  96813. 8026f10: 605a str r2, [r3, #4]
  96814. }
  96815. rc = MQTT_SUCCESS; /* return i when adding new subscription */
  96816. 8026f12: 2300 movs r3, #0
  96817. 8026f14: 617b str r3, [r7, #20]
  96818. break;
  96819. 8026f16: e005 b.n 8026f24 <MQTTSetMessageHandler+0x76>
  96820. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96821. 8026f18: 693b ldr r3, [r7, #16]
  96822. 8026f1a: 3301 adds r3, #1
  96823. 8026f1c: 613b str r3, [r7, #16]
  96824. 8026f1e: 693b ldr r3, [r7, #16]
  96825. 8026f20: 2b04 cmp r3, #4
  96826. 8026f22: ddd3 ble.n 8026ecc <MQTTSetMessageHandler+0x1e>
  96827. }
  96828. }
  96829. /* if no existing, look for empty slot (unless we are removing) */
  96830. if (messageHandler != NULL) {
  96831. 8026f24: 687b ldr r3, [r7, #4]
  96832. 8026f26: 2b00 cmp r3, #0
  96833. 8026f28: d026 beq.n 8026f78 <MQTTSetMessageHandler+0xca>
  96834. if (rc == FAILURE)
  96835. 8026f2a: 697b ldr r3, [r7, #20]
  96836. 8026f2c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  96837. 8026f30: d112 bne.n 8026f58 <MQTTSetMessageHandler+0xaa>
  96838. {
  96839. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96840. 8026f32: 2300 movs r3, #0
  96841. 8026f34: 613b str r3, [r7, #16]
  96842. 8026f36: e00c b.n 8026f52 <MQTTSetMessageHandler+0xa4>
  96843. {
  96844. if (c->messageHandlers[i].topicFilter == NULL)
  96845. 8026f38: 68fb ldr r3, [r7, #12]
  96846. 8026f3a: 693a ldr r2, [r7, #16]
  96847. 8026f3c: 3205 adds r2, #5
  96848. 8026f3e: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  96849. 8026f42: 2b00 cmp r3, #0
  96850. 8026f44: d102 bne.n 8026f4c <MQTTSetMessageHandler+0x9e>
  96851. {
  96852. rc = MQTT_SUCCESS;
  96853. 8026f46: 2300 movs r3, #0
  96854. 8026f48: 617b str r3, [r7, #20]
  96855. break;
  96856. 8026f4a: e005 b.n 8026f58 <MQTTSetMessageHandler+0xaa>
  96857. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96858. 8026f4c: 693b ldr r3, [r7, #16]
  96859. 8026f4e: 3301 adds r3, #1
  96860. 8026f50: 613b str r3, [r7, #16]
  96861. 8026f52: 693b ldr r3, [r7, #16]
  96862. 8026f54: 2b04 cmp r3, #4
  96863. 8026f56: ddef ble.n 8026f38 <MQTTSetMessageHandler+0x8a>
  96864. }
  96865. }
  96866. }
  96867. if (i < MAX_MESSAGE_HANDLERS)
  96868. 8026f58: 693b ldr r3, [r7, #16]
  96869. 8026f5a: 2b04 cmp r3, #4
  96870. 8026f5c: dc0c bgt.n 8026f78 <MQTTSetMessageHandler+0xca>
  96871. {
  96872. c->messageHandlers[i].topicFilter = topicFilter;
  96873. 8026f5e: 68fb ldr r3, [r7, #12]
  96874. 8026f60: 693a ldr r2, [r7, #16]
  96875. 8026f62: 3205 adds r2, #5
  96876. 8026f64: 68b9 ldr r1, [r7, #8]
  96877. 8026f66: f843 1032 str.w r1, [r3, r2, lsl #3]
  96878. c->messageHandlers[i].fp = messageHandler;
  96879. 8026f6a: 68fa ldr r2, [r7, #12]
  96880. 8026f6c: 693b ldr r3, [r7, #16]
  96881. 8026f6e: 3305 adds r3, #5
  96882. 8026f70: 00db lsls r3, r3, #3
  96883. 8026f72: 4413 add r3, r2
  96884. 8026f74: 687a ldr r2, [r7, #4]
  96885. 8026f76: 605a str r2, [r3, #4]
  96886. }
  96887. }
  96888. return rc;
  96889. 8026f78: 697b ldr r3, [r7, #20]
  96890. }
  96891. 8026f7a: 4618 mov r0, r3
  96892. 8026f7c: 3718 adds r7, #24
  96893. 8026f7e: 46bd mov sp, r7
  96894. 8026f80: bd80 pop {r7, pc}
  96895. 08026f82 <MQTTSubscribeWithResults>:
  96896. int MQTTSubscribeWithResults(MQTTClient* c, const char* topicFilter, enum QoS qos,
  96897. messageHandler messageHandler, MQTTSubackData* data)
  96898. {
  96899. 8026f82: b5b0 push {r4, r5, r7, lr}
  96900. 8026f84: b094 sub sp, #80 @ 0x50
  96901. 8026f86: af04 add r7, sp, #16
  96902. 8026f88: 60f8 str r0, [r7, #12]
  96903. 8026f8a: 60b9 str r1, [r7, #8]
  96904. 8026f8c: 603b str r3, [r7, #0]
  96905. 8026f8e: 4613 mov r3, r2
  96906. 8026f90: 71fb strb r3, [r7, #7]
  96907. int rc = FAILURE;
  96908. 8026f92: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96909. 8026f96: 63fb str r3, [r7, #60] @ 0x3c
  96910. Timer timer;
  96911. int len = 0;
  96912. 8026f98: 2300 movs r3, #0
  96913. 8026f9a: 63bb str r3, [r7, #56] @ 0x38
  96914. MQTTString topic = MQTTString_initializer;
  96915. 8026f9c: 2300 movs r3, #0
  96916. 8026f9e: 627b str r3, [r7, #36] @ 0x24
  96917. 8026fa0: 2300 movs r3, #0
  96918. 8026fa2: 62bb str r3, [r7, #40] @ 0x28
  96919. 8026fa4: 2300 movs r3, #0
  96920. 8026fa6: 62fb str r3, [r7, #44] @ 0x2c
  96921. topic.cstring = (char *)topicFilter;
  96922. 8026fa8: 68bb ldr r3, [r7, #8]
  96923. 8026faa: 627b str r3, [r7, #36] @ 0x24
  96924. #if defined(MQTT_TASK)
  96925. MutexLock(&c->mutex);
  96926. #endif
  96927. // osMutexAcquire(mqttMutex, osWaitForever);
  96928. osMutexAcquire(c->mutex, osWaitForever);
  96929. 8026fac: 68fb ldr r3, [r7, #12]
  96930. 8026fae: 6e9b ldr r3, [r3, #104] @ 0x68
  96931. 8026fb0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96932. 8026fb4: 4618 mov r0, r3
  96933. 8026fb6: f7e9 fd8f bl 8010ad8 <osMutexAcquire>
  96934. if (!c->isconnected)
  96935. 8026fba: 68fb ldr r3, [r7, #12]
  96936. 8026fbc: 6a1b ldr r3, [r3, #32]
  96937. 8026fbe: 2b00 cmp r3, #0
  96938. 8026fc0: d069 beq.n 8027096 <MQTTSubscribeWithResults+0x114>
  96939. goto exit;
  96940. TimerInit(&timer);
  96941. 8026fc2: f107 0330 add.w r3, r7, #48 @ 0x30
  96942. 8026fc6: 4618 mov r0, r3
  96943. 8026fc8: f000 f9bc bl 8027344 <TimerInit>
  96944. TimerCountdownMS(&timer, c->command_timeout_ms);
  96945. 8026fcc: 68fb ldr r3, [r7, #12]
  96946. 8026fce: 685a ldr r2, [r3, #4]
  96947. 8026fd0: f107 0330 add.w r3, r7, #48 @ 0x30
  96948. 8026fd4: 4611 mov r1, r2
  96949. 8026fd6: 4618 mov r0, r3
  96950. 8026fd8: f000 f972 bl 80272c0 <TimerCountdownMS>
  96951. int _qos[1] = {(int)qos};
  96952. 8026fdc: 79fb ldrb r3, [r7, #7]
  96953. 8026fde: 623b str r3, [r7, #32]
  96954. len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, _qos);
  96955. 8026fe0: 68fb ldr r3, [r7, #12]
  96956. 8026fe2: 691c ldr r4, [r3, #16]
  96957. 8026fe4: 68fb ldr r3, [r7, #12]
  96958. 8026fe6: 689b ldr r3, [r3, #8]
  96959. 8026fe8: 461d mov r5, r3
  96960. 8026fea: 68f8 ldr r0, [r7, #12]
  96961. 8026fec: f7ff fa90 bl 8026510 <getNextPacketId>
  96962. 8026ff0: 4603 mov r3, r0
  96963. 8026ff2: b29a uxth r2, r3
  96964. 8026ff4: f107 0320 add.w r3, r7, #32
  96965. 8026ff8: 9302 str r3, [sp, #8]
  96966. 8026ffa: f107 0324 add.w r3, r7, #36 @ 0x24
  96967. 8026ffe: 9301 str r3, [sp, #4]
  96968. 8027000: 2301 movs r3, #1
  96969. 8027002: 9300 str r3, [sp, #0]
  96970. 8027004: 4613 mov r3, r2
  96971. 8027006: 2200 movs r2, #0
  96972. 8027008: 4629 mov r1, r5
  96973. 802700a: 4620 mov r0, r4
  96974. 802700c: f001 f81b bl 8028046 <MQTTSerialize_subscribe>
  96975. 8027010: 63b8 str r0, [r7, #56] @ 0x38
  96976. // len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int*)&qos);
  96977. if (len <= 0)
  96978. 8027012: 6bbb ldr r3, [r7, #56] @ 0x38
  96979. 8027014: 2b00 cmp r3, #0
  96980. 8027016: dd40 ble.n 802709a <MQTTSubscribeWithResults+0x118>
  96981. goto exit;
  96982. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  96983. 8027018: f107 0330 add.w r3, r7, #48 @ 0x30
  96984. 802701c: 461a mov r2, r3
  96985. 802701e: 6bb9 ldr r1, [r7, #56] @ 0x38
  96986. 8027020: 68f8 ldr r0, [r7, #12]
  96987. 8027022: f7ff fa8e bl 8026542 <sendPacket>
  96988. 8027026: 63f8 str r0, [r7, #60] @ 0x3c
  96989. 8027028: 6bfb ldr r3, [r7, #60] @ 0x3c
  96990. 802702a: 2b00 cmp r3, #0
  96991. 802702c: d137 bne.n 802709e <MQTTSubscribeWithResults+0x11c>
  96992. goto exit; // there was a problem
  96993. if (waitfor(c, SUBACK, &timer) == SUBACK) // wait for suback
  96994. 802702e: f107 0330 add.w r3, r7, #48 @ 0x30
  96995. 8027032: 461a mov r2, r3
  96996. 8027034: 2109 movs r1, #9
  96997. 8027036: 68f8 ldr r0, [r7, #12]
  96998. 8027038: f7ff fe67 bl 8026d0a <waitfor>
  96999. 802703c: 4603 mov r3, r0
  97000. 802703e: 2b09 cmp r3, #9
  97001. 8027040: d125 bne.n 802708e <MQTTSubscribeWithResults+0x10c>
  97002. {
  97003. int count = 0;
  97004. 8027042: 2300 movs r3, #0
  97005. 8027044: 61fb str r3, [r7, #28]
  97006. unsigned short mypacketid;
  97007. data->grantedQoS = QOS0;
  97008. 8027046: 6d3b ldr r3, [r7, #80] @ 0x50
  97009. 8027048: 2200 movs r2, #0
  97010. 802704a: 701a strb r2, [r3, #0]
  97011. int _grantedQoS[1] = {(int)&data->grantedQoS};
  97012. 802704c: 6d3b ldr r3, [r7, #80] @ 0x50
  97013. 802704e: 617b str r3, [r7, #20]
  97014. // if (MQTTDeserialize_suback(&mypacketid, 1, &count, (int*)&data->grantedQoS, c->readbuf, c->readbuf_size) == 1)
  97015. if (MQTTDeserialize_suback(&mypacketid, 1, &count, _grantedQoS, c->readbuf, c->readbuf_size) == 1)
  97016. 8027050: 68fb ldr r3, [r7, #12]
  97017. 8027052: 695b ldr r3, [r3, #20]
  97018. 8027054: 68fa ldr r2, [r7, #12]
  97019. 8027056: 68d2 ldr r2, [r2, #12]
  97020. 8027058: 4614 mov r4, r2
  97021. 802705a: f107 0114 add.w r1, r7, #20
  97022. 802705e: f107 021c add.w r2, r7, #28
  97023. 8027062: f107 001a add.w r0, r7, #26
  97024. 8027066: 9401 str r4, [sp, #4]
  97025. 8027068: 9300 str r3, [sp, #0]
  97026. 802706a: 460b mov r3, r1
  97027. 802706c: 2101 movs r1, #1
  97028. 802706e: f001 f866 bl 802813e <MQTTDeserialize_suback>
  97029. 8027072: 4603 mov r3, r0
  97030. 8027074: 2b01 cmp r3, #1
  97031. 8027076: d113 bne.n 80270a0 <MQTTSubscribeWithResults+0x11e>
  97032. {
  97033. if (data->grantedQoS != 0x80)
  97034. 8027078: 6d3b ldr r3, [r7, #80] @ 0x50
  97035. 802707a: 781b ldrb r3, [r3, #0]
  97036. 802707c: 2b80 cmp r3, #128 @ 0x80
  97037. 802707e: d00f beq.n 80270a0 <MQTTSubscribeWithResults+0x11e>
  97038. rc = MQTTSetMessageHandler(c, topicFilter, messageHandler);
  97039. 8027080: 683a ldr r2, [r7, #0]
  97040. 8027082: 68b9 ldr r1, [r7, #8]
  97041. 8027084: 68f8 ldr r0, [r7, #12]
  97042. 8027086: f7ff ff12 bl 8026eae <MQTTSetMessageHandler>
  97043. 802708a: 63f8 str r0, [r7, #60] @ 0x3c
  97044. 802708c: e008 b.n 80270a0 <MQTTSubscribeWithResults+0x11e>
  97045. }
  97046. }
  97047. else
  97048. rc = FAILURE;
  97049. 802708e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97050. 8027092: 63fb str r3, [r7, #60] @ 0x3c
  97051. 8027094: e004 b.n 80270a0 <MQTTSubscribeWithResults+0x11e>
  97052. goto exit;
  97053. 8027096: bf00 nop
  97054. 8027098: e002 b.n 80270a0 <MQTTSubscribeWithResults+0x11e>
  97055. goto exit;
  97056. 802709a: bf00 nop
  97057. 802709c: e000 b.n 80270a0 <MQTTSubscribeWithResults+0x11e>
  97058. goto exit; // there was a problem
  97059. 802709e: bf00 nop
  97060. exit:
  97061. if (rc == FAILURE)
  97062. 80270a0: 6bfb ldr r3, [r7, #60] @ 0x3c
  97063. 80270a2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  97064. 80270a6: d102 bne.n 80270ae <MQTTSubscribeWithResults+0x12c>
  97065. MQTTCloseSession(c);
  97066. 80270a8: 68f8 ldr r0, [r7, #12]
  97067. 80270aa: f7ff fceb bl 8026a84 <MQTTCloseSession>
  97068. #if defined(MQTT_TASK)
  97069. MutexUnlock(&c->mutex);
  97070. #endif
  97071. // osMutexRelease(mqttMutex);
  97072. osMutexRelease(c->mutex);
  97073. 80270ae: 68fb ldr r3, [r7, #12]
  97074. 80270b0: 6e9b ldr r3, [r3, #104] @ 0x68
  97075. 80270b2: 4618 mov r0, r3
  97076. 80270b4: f7e9 fd5b bl 8010b6e <osMutexRelease>
  97077. return rc;
  97078. 80270b8: 6bfb ldr r3, [r7, #60] @ 0x3c
  97079. }
  97080. 80270ba: 4618 mov r0, r3
  97081. 80270bc: 3740 adds r7, #64 @ 0x40
  97082. 80270be: 46bd mov sp, r7
  97083. 80270c0: bdb0 pop {r4, r5, r7, pc}
  97084. 080270c2 <MQTTSubscribe>:
  97085. int MQTTSubscribe(MQTTClient* c, const char* topicFilter, enum QoS qos,
  97086. messageHandler messageHandler)
  97087. {
  97088. 80270c2: b580 push {r7, lr}
  97089. 80270c4: b088 sub sp, #32
  97090. 80270c6: af02 add r7, sp, #8
  97091. 80270c8: 60f8 str r0, [r7, #12]
  97092. 80270ca: 60b9 str r1, [r7, #8]
  97093. 80270cc: 603b str r3, [r7, #0]
  97094. 80270ce: 4613 mov r3, r2
  97095. 80270d0: 71fb strb r3, [r7, #7]
  97096. MQTTSubackData data;
  97097. return MQTTSubscribeWithResults(c, topicFilter, qos, messageHandler, &data);
  97098. 80270d2: 79fa ldrb r2, [r7, #7]
  97099. 80270d4: f107 0314 add.w r3, r7, #20
  97100. 80270d8: 9300 str r3, [sp, #0]
  97101. 80270da: 683b ldr r3, [r7, #0]
  97102. 80270dc: 68b9 ldr r1, [r7, #8]
  97103. 80270de: 68f8 ldr r0, [r7, #12]
  97104. 80270e0: f7ff ff4f bl 8026f82 <MQTTSubscribeWithResults>
  97105. 80270e4: 4603 mov r3, r0
  97106. }
  97107. 80270e6: 4618 mov r0, r3
  97108. 80270e8: 3718 adds r7, #24
  97109. 80270ea: 46bd mov sp, r7
  97110. 80270ec: bd80 pop {r7, pc}
  97111. 080270ee <MQTTPublish>:
  97112. return rc;
  97113. }
  97114. int MQTTPublish(MQTTClient* c, const char* topicName, MQTTMessage* message)
  97115. {
  97116. 80270ee: b5f0 push {r4, r5, r6, r7, lr}
  97117. 80270f0: b097 sub sp, #92 @ 0x5c
  97118. 80270f2: af08 add r7, sp, #32
  97119. 80270f4: 60f8 str r0, [r7, #12]
  97120. 80270f6: 60b9 str r1, [r7, #8]
  97121. 80270f8: 607a str r2, [r7, #4]
  97122. int rc = FAILURE;
  97123. 80270fa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97124. 80270fe: 637b str r3, [r7, #52] @ 0x34
  97125. Timer timer;
  97126. MQTTString topic = MQTTString_initializer;
  97127. 8027100: 2300 movs r3, #0
  97128. 8027102: 61fb str r3, [r7, #28]
  97129. 8027104: 2300 movs r3, #0
  97130. 8027106: 623b str r3, [r7, #32]
  97131. 8027108: 2300 movs r3, #0
  97132. 802710a: 627b str r3, [r7, #36] @ 0x24
  97133. topic.cstring = (char *)topicName;
  97134. 802710c: 68bb ldr r3, [r7, #8]
  97135. 802710e: 61fb str r3, [r7, #28]
  97136. int len = 0;
  97137. 8027110: 2300 movs r3, #0
  97138. 8027112: 633b str r3, [r7, #48] @ 0x30
  97139. #if defined(MQTT_TASK)
  97140. MutexLock(&c->mutex);
  97141. #endif
  97142. // osMutexAcquire(mqttMutex, osWaitForever);
  97143. osMutexAcquire(c->mutex, osWaitForever);
  97144. 8027114: 68fb ldr r3, [r7, #12]
  97145. 8027116: 6e9b ldr r3, [r3, #104] @ 0x68
  97146. 8027118: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  97147. 802711c: 4618 mov r0, r3
  97148. 802711e: f7e9 fcdb bl 8010ad8 <osMutexAcquire>
  97149. if (!c->isconnected)
  97150. 8027122: 68fb ldr r3, [r7, #12]
  97151. 8027124: 6a1b ldr r3, [r3, #32]
  97152. 8027126: 2b00 cmp r3, #0
  97153. 8027128: f000 809b beq.w 8027262 <MQTTPublish+0x174>
  97154. goto exit;
  97155. TimerInit(&timer);
  97156. 802712c: f107 0328 add.w r3, r7, #40 @ 0x28
  97157. 8027130: 4618 mov r0, r3
  97158. 8027132: f000 f907 bl 8027344 <TimerInit>
  97159. TimerCountdownMS(&timer, c->command_timeout_ms);
  97160. 8027136: 68fb ldr r3, [r7, #12]
  97161. 8027138: 685a ldr r2, [r3, #4]
  97162. 802713a: f107 0328 add.w r3, r7, #40 @ 0x28
  97163. 802713e: 4611 mov r1, r2
  97164. 8027140: 4618 mov r0, r3
  97165. 8027142: f000 f8bd bl 80272c0 <TimerCountdownMS>
  97166. if (message->qos == QOS1 || message->qos == QOS2)
  97167. 8027146: 687b ldr r3, [r7, #4]
  97168. 8027148: 781b ldrb r3, [r3, #0]
  97169. 802714a: 2b01 cmp r3, #1
  97170. 802714c: d003 beq.n 8027156 <MQTTPublish+0x68>
  97171. 802714e: 687b ldr r3, [r7, #4]
  97172. 8027150: 781b ldrb r3, [r3, #0]
  97173. 8027152: 2b02 cmp r3, #2
  97174. 8027154: d106 bne.n 8027164 <MQTTPublish+0x76>
  97175. message->id = getNextPacketId(c);
  97176. 8027156: 68f8 ldr r0, [r7, #12]
  97177. 8027158: f7ff f9da bl 8026510 <getNextPacketId>
  97178. 802715c: 4603 mov r3, r0
  97179. 802715e: b29a uxth r2, r3
  97180. 8027160: 687b ldr r3, [r7, #4]
  97181. 8027162: 809a strh r2, [r3, #4]
  97182. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  97183. 8027164: 68fb ldr r3, [r7, #12]
  97184. 8027166: 691b ldr r3, [r3, #16]
  97185. 8027168: 603b str r3, [r7, #0]
  97186. 802716a: 68fb ldr r3, [r7, #12]
  97187. 802716c: 689b ldr r3, [r3, #8]
  97188. 802716e: 469c mov ip, r3
  97189. 8027170: 687b ldr r3, [r7, #4]
  97190. 8027172: 781b ldrb r3, [r3, #0]
  97191. 8027174: 469e mov lr, r3
  97192. 8027176: 687b ldr r3, [r7, #4]
  97193. 8027178: 785d ldrb r5, [r3, #1]
  97194. 802717a: 687b ldr r3, [r7, #4]
  97195. 802717c: 889e ldrh r6, [r3, #4]
  97196. topic, (unsigned char*)message->payload, message->payloadlen);
  97197. 802717e: 687b ldr r3, [r7, #4]
  97198. 8027180: 689b ldr r3, [r3, #8]
  97199. 8027182: 687a ldr r2, [r7, #4]
  97200. 8027184: 68d2 ldr r2, [r2, #12]
  97201. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  97202. 8027186: 9206 str r2, [sp, #24]
  97203. 8027188: 9305 str r3, [sp, #20]
  97204. 802718a: ac02 add r4, sp, #8
  97205. 802718c: f107 031c add.w r3, r7, #28
  97206. 8027190: e893 0007 ldmia.w r3, {r0, r1, r2}
  97207. 8027194: e884 0007 stmia.w r4, {r0, r1, r2}
  97208. 8027198: 9601 str r6, [sp, #4]
  97209. 802719a: 9500 str r5, [sp, #0]
  97210. 802719c: 4673 mov r3, lr
  97211. 802719e: 2200 movs r2, #0
  97212. 80271a0: 4661 mov r1, ip
  97213. 80271a2: 6838 ldr r0, [r7, #0]
  97214. 80271a4: f000 fe5d bl 8027e62 <MQTTSerialize_publish>
  97215. 80271a8: 6338 str r0, [r7, #48] @ 0x30
  97216. if (len <= 0)
  97217. 80271aa: 6b3b ldr r3, [r7, #48] @ 0x30
  97218. 80271ac: 2b00 cmp r3, #0
  97219. 80271ae: dd5a ble.n 8027266 <MQTTPublish+0x178>
  97220. goto exit;
  97221. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  97222. 80271b0: f107 0328 add.w r3, r7, #40 @ 0x28
  97223. 80271b4: 461a mov r2, r3
  97224. 80271b6: 6b39 ldr r1, [r7, #48] @ 0x30
  97225. 80271b8: 68f8 ldr r0, [r7, #12]
  97226. 80271ba: f7ff f9c2 bl 8026542 <sendPacket>
  97227. 80271be: 6378 str r0, [r7, #52] @ 0x34
  97228. 80271c0: 6b7b ldr r3, [r7, #52] @ 0x34
  97229. 80271c2: 2b00 cmp r3, #0
  97230. 80271c4: d151 bne.n 802726a <MQTTPublish+0x17c>
  97231. goto exit; // there was a problem
  97232. if (message->qos == QOS1)
  97233. 80271c6: 687b ldr r3, [r7, #4]
  97234. 80271c8: 781b ldrb r3, [r3, #0]
  97235. 80271ca: 2b01 cmp r3, #1
  97236. 80271cc: d122 bne.n 8027214 <MQTTPublish+0x126>
  97237. {
  97238. if (waitfor(c, PUBACK, &timer) == PUBACK)
  97239. 80271ce: f107 0328 add.w r3, r7, #40 @ 0x28
  97240. 80271d2: 461a mov r2, r3
  97241. 80271d4: 2104 movs r1, #4
  97242. 80271d6: 68f8 ldr r0, [r7, #12]
  97243. 80271d8: f7ff fd97 bl 8026d0a <waitfor>
  97244. 80271dc: 4603 mov r3, r0
  97245. 80271de: 2b04 cmp r3, #4
  97246. 80271e0: d114 bne.n 802720c <MQTTPublish+0x11e>
  97247. {
  97248. unsigned short mypacketid;
  97249. unsigned char dup, type;
  97250. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  97251. 80271e2: 68fb ldr r3, [r7, #12]
  97252. 80271e4: 695c ldr r4, [r3, #20]
  97253. 80271e6: 68fb ldr r3, [r7, #12]
  97254. 80271e8: 68db ldr r3, [r3, #12]
  97255. 80271ea: f107 021a add.w r2, r7, #26
  97256. 80271ee: f107 0119 add.w r1, r7, #25
  97257. 80271f2: f107 0018 add.w r0, r7, #24
  97258. 80271f6: 9300 str r3, [sp, #0]
  97259. 80271f8: 4623 mov r3, r4
  97260. 80271fa: f000 fbc1 bl 8027980 <MQTTDeserialize_ack>
  97261. 80271fe: 4603 mov r3, r0
  97262. 8027200: 2b01 cmp r3, #1
  97263. 8027202: d035 beq.n 8027270 <MQTTPublish+0x182>
  97264. rc = FAILURE;
  97265. 8027204: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97266. 8027208: 637b str r3, [r7, #52] @ 0x34
  97267. 802720a: e031 b.n 8027270 <MQTTPublish+0x182>
  97268. }
  97269. else
  97270. rc = FAILURE;
  97271. 802720c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97272. 8027210: 637b str r3, [r7, #52] @ 0x34
  97273. 8027212: e02d b.n 8027270 <MQTTPublish+0x182>
  97274. }
  97275. else if (message->qos == QOS2)
  97276. 8027214: 687b ldr r3, [r7, #4]
  97277. 8027216: 781b ldrb r3, [r3, #0]
  97278. 8027218: 2b02 cmp r3, #2
  97279. 802721a: d128 bne.n 802726e <MQTTPublish+0x180>
  97280. {
  97281. if (waitfor(c, PUBCOMP, &timer) == PUBCOMP)
  97282. 802721c: f107 0328 add.w r3, r7, #40 @ 0x28
  97283. 8027220: 461a mov r2, r3
  97284. 8027222: 2107 movs r1, #7
  97285. 8027224: 68f8 ldr r0, [r7, #12]
  97286. 8027226: f7ff fd70 bl 8026d0a <waitfor>
  97287. 802722a: 4603 mov r3, r0
  97288. 802722c: 2b07 cmp r3, #7
  97289. 802722e: d114 bne.n 802725a <MQTTPublish+0x16c>
  97290. {
  97291. unsigned short mypacketid;
  97292. unsigned char dup, type;
  97293. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  97294. 8027230: 68fb ldr r3, [r7, #12]
  97295. 8027232: 695c ldr r4, [r3, #20]
  97296. 8027234: 68fb ldr r3, [r7, #12]
  97297. 8027236: 68db ldr r3, [r3, #12]
  97298. 8027238: f107 0216 add.w r2, r7, #22
  97299. 802723c: f107 0115 add.w r1, r7, #21
  97300. 8027240: f107 0014 add.w r0, r7, #20
  97301. 8027244: 9300 str r3, [sp, #0]
  97302. 8027246: 4623 mov r3, r4
  97303. 8027248: f000 fb9a bl 8027980 <MQTTDeserialize_ack>
  97304. 802724c: 4603 mov r3, r0
  97305. 802724e: 2b01 cmp r3, #1
  97306. 8027250: d00e beq.n 8027270 <MQTTPublish+0x182>
  97307. rc = FAILURE;
  97308. 8027252: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97309. 8027256: 637b str r3, [r7, #52] @ 0x34
  97310. 8027258: e00a b.n 8027270 <MQTTPublish+0x182>
  97311. }
  97312. else
  97313. rc = FAILURE;
  97314. 802725a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97315. 802725e: 637b str r3, [r7, #52] @ 0x34
  97316. 8027260: e006 b.n 8027270 <MQTTPublish+0x182>
  97317. goto exit;
  97318. 8027262: bf00 nop
  97319. 8027264: e004 b.n 8027270 <MQTTPublish+0x182>
  97320. goto exit;
  97321. 8027266: bf00 nop
  97322. 8027268: e002 b.n 8027270 <MQTTPublish+0x182>
  97323. goto exit; // there was a problem
  97324. 802726a: bf00 nop
  97325. 802726c: e000 b.n 8027270 <MQTTPublish+0x182>
  97326. }
  97327. exit:
  97328. 802726e: bf00 nop
  97329. if (rc == FAILURE)
  97330. 8027270: 6b7b ldr r3, [r7, #52] @ 0x34
  97331. 8027272: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  97332. 8027276: d102 bne.n 802727e <MQTTPublish+0x190>
  97333. MQTTCloseSession(c);
  97334. 8027278: 68f8 ldr r0, [r7, #12]
  97335. 802727a: f7ff fc03 bl 8026a84 <MQTTCloseSession>
  97336. #if defined(MQTT_TASK)
  97337. MutexUnlock(&c->mutex);
  97338. #endif
  97339. // osMutexRelease(mqttMutex);
  97340. osMutexRelease(c->mutex);
  97341. 802727e: 68fb ldr r3, [r7, #12]
  97342. 8027280: 6e9b ldr r3, [r3, #104] @ 0x68
  97343. 8027282: 4618 mov r0, r3
  97344. 8027284: f7e9 fc73 bl 8010b6e <osMutexRelease>
  97345. return rc;
  97346. 8027288: 6b7b ldr r3, [r7, #52] @ 0x34
  97347. }
  97348. 802728a: 4618 mov r0, r3
  97349. 802728c: 373c adds r7, #60 @ 0x3c
  97350. 802728e: 46bd mov sp, r7
  97351. 8027290: bdf0 pop {r4, r5, r6, r7, pc}
  97352. ...
  97353. 08027294 <TimerIsExpired>:
  97354. #define SERVER_IP4 34
  97355. uint32_t MilliTimer;
  97356. //Timer functions
  97357. char TimerIsExpired(Timer *timer) {
  97358. 8027294: b480 push {r7}
  97359. 8027296: b085 sub sp, #20
  97360. 8027298: af00 add r7, sp, #0
  97361. 802729a: 6078 str r0, [r7, #4]
  97362. long left = timer->end_time - MilliTimer;
  97363. 802729c: 687b ldr r3, [r7, #4]
  97364. 802729e: 685a ldr r2, [r3, #4]
  97365. 80272a0: 4b06 ldr r3, [pc, #24] @ (80272bc <TimerIsExpired+0x28>)
  97366. 80272a2: 681b ldr r3, [r3, #0]
  97367. 80272a4: 1ad3 subs r3, r2, r3
  97368. 80272a6: 60fb str r3, [r7, #12]
  97369. return (left < 0);
  97370. 80272a8: 68fb ldr r3, [r7, #12]
  97371. 80272aa: 0fdb lsrs r3, r3, #31
  97372. 80272ac: b2db uxtb r3, r3
  97373. }
  97374. 80272ae: 4618 mov r0, r3
  97375. 80272b0: 3714 adds r7, #20
  97376. 80272b2: 46bd mov sp, r7
  97377. 80272b4: f85d 7b04 ldr.w r7, [sp], #4
  97378. 80272b8: 4770 bx lr
  97379. 80272ba: bf00 nop
  97380. 80272bc: 2402b034 .word 0x2402b034
  97381. 080272c0 <TimerCountdownMS>:
  97382. void TimerCountdownMS(Timer *timer, unsigned int timeout) {
  97383. 80272c0: b480 push {r7}
  97384. 80272c2: b083 sub sp, #12
  97385. 80272c4: af00 add r7, sp, #0
  97386. 80272c6: 6078 str r0, [r7, #4]
  97387. 80272c8: 6039 str r1, [r7, #0]
  97388. timer->end_time = MilliTimer + timeout;
  97389. 80272ca: 4b06 ldr r3, [pc, #24] @ (80272e4 <TimerCountdownMS+0x24>)
  97390. 80272cc: 681a ldr r2, [r3, #0]
  97391. 80272ce: 683b ldr r3, [r7, #0]
  97392. 80272d0: 441a add r2, r3
  97393. 80272d2: 687b ldr r3, [r7, #4]
  97394. 80272d4: 605a str r2, [r3, #4]
  97395. }
  97396. 80272d6: bf00 nop
  97397. 80272d8: 370c adds r7, #12
  97398. 80272da: 46bd mov sp, r7
  97399. 80272dc: f85d 7b04 ldr.w r7, [sp], #4
  97400. 80272e0: 4770 bx lr
  97401. 80272e2: bf00 nop
  97402. 80272e4: 2402b034 .word 0x2402b034
  97403. 080272e8 <TimerCountdown>:
  97404. void TimerCountdown(Timer *timer, unsigned int timeout) {
  97405. 80272e8: b480 push {r7}
  97406. 80272ea: b083 sub sp, #12
  97407. 80272ec: af00 add r7, sp, #0
  97408. 80272ee: 6078 str r0, [r7, #4]
  97409. 80272f0: 6039 str r1, [r7, #0]
  97410. timer->end_time = MilliTimer + (timeout * 1000);
  97411. 80272f2: 683b ldr r3, [r7, #0]
  97412. 80272f4: f44f 727a mov.w r2, #1000 @ 0x3e8
  97413. 80272f8: fb03 f202 mul.w r2, r3, r2
  97414. 80272fc: 4b05 ldr r3, [pc, #20] @ (8027314 <TimerCountdown+0x2c>)
  97415. 80272fe: 681b ldr r3, [r3, #0]
  97416. 8027300: 441a add r2, r3
  97417. 8027302: 687b ldr r3, [r7, #4]
  97418. 8027304: 605a str r2, [r3, #4]
  97419. }
  97420. 8027306: bf00 nop
  97421. 8027308: 370c adds r7, #12
  97422. 802730a: 46bd mov sp, r7
  97423. 802730c: f85d 7b04 ldr.w r7, [sp], #4
  97424. 8027310: 4770 bx lr
  97425. 8027312: bf00 nop
  97426. 8027314: 2402b034 .word 0x2402b034
  97427. 08027318 <TimerLeftMS>:
  97428. int TimerLeftMS(Timer *timer) {
  97429. 8027318: b480 push {r7}
  97430. 802731a: b085 sub sp, #20
  97431. 802731c: af00 add r7, sp, #0
  97432. 802731e: 6078 str r0, [r7, #4]
  97433. long left = timer->end_time - MilliTimer;
  97434. 8027320: 687b ldr r3, [r7, #4]
  97435. 8027322: 685a ldr r2, [r3, #4]
  97436. 8027324: 4b06 ldr r3, [pc, #24] @ (8027340 <TimerLeftMS+0x28>)
  97437. 8027326: 681b ldr r3, [r3, #0]
  97438. 8027328: 1ad3 subs r3, r2, r3
  97439. 802732a: 60fb str r3, [r7, #12]
  97440. return (left < 0) ? 0 : left;
  97441. 802732c: 68fb ldr r3, [r7, #12]
  97442. 802732e: ea23 73e3 bic.w r3, r3, r3, asr #31
  97443. }
  97444. 8027332: 4618 mov r0, r3
  97445. 8027334: 3714 adds r7, #20
  97446. 8027336: 46bd mov sp, r7
  97447. 8027338: f85d 7b04 ldr.w r7, [sp], #4
  97448. 802733c: 4770 bx lr
  97449. 802733e: bf00 nop
  97450. 8027340: 2402b034 .word 0x2402b034
  97451. 08027344 <TimerInit>:
  97452. void TimerInit(Timer *timer) {
  97453. 8027344: b480 push {r7}
  97454. 8027346: b083 sub sp, #12
  97455. 8027348: af00 add r7, sp, #0
  97456. 802734a: 6078 str r0, [r7, #4]
  97457. timer->end_time = 0;
  97458. 802734c: 687b ldr r3, [r7, #4]
  97459. 802734e: 2200 movs r2, #0
  97460. 8027350: 605a str r2, [r3, #4]
  97461. }
  97462. 8027352: bf00 nop
  97463. 8027354: 370c adds r7, #12
  97464. 8027356: 46bd mov sp, r7
  97465. 8027358: f85d 7b04 ldr.w r7, [sp], #4
  97466. 802735c: 4770 bx lr
  97467. ...
  97468. 08027360 <NewNetwork>:
  97469. #ifdef MQTT_LWIP_SOCKET
  97470. void NewNetwork(Network *n) {
  97471. 8027360: b480 push {r7}
  97472. 8027362: b083 sub sp, #12
  97473. 8027364: af00 add r7, sp, #0
  97474. 8027366: 6078 str r0, [r7, #4]
  97475. n->socket = 0; //clear
  97476. 8027368: 687b ldr r3, [r7, #4]
  97477. 802736a: 2200 movs r2, #0
  97478. 802736c: 601a str r2, [r3, #0]
  97479. n->mqttread = net_read; //receive function
  97480. 802736e: 687b ldr r3, [r7, #4]
  97481. 8027370: 4a06 ldr r2, [pc, #24] @ (802738c <NewNetwork+0x2c>)
  97482. 8027372: 605a str r2, [r3, #4]
  97483. n->mqttwrite = net_write; //send function
  97484. 8027374: 687b ldr r3, [r7, #4]
  97485. 8027376: 4a06 ldr r2, [pc, #24] @ (8027390 <NewNetwork+0x30>)
  97486. 8027378: 609a str r2, [r3, #8]
  97487. n->disconnect = net_disconnect; //disconnection function
  97488. 802737a: 687b ldr r3, [r7, #4]
  97489. 802737c: 4a05 ldr r2, [pc, #20] @ (8027394 <NewNetwork+0x34>)
  97490. 802737e: 60da str r2, [r3, #12]
  97491. }
  97492. 8027380: bf00 nop
  97493. 8027382: 370c adds r7, #12
  97494. 8027384: 46bd mov sp, r7
  97495. 8027386: f85d 7b04 ldr.w r7, [sp], #4
  97496. 802738a: 4770 bx lr
  97497. 802738c: 08027435 .word 0x08027435
  97498. 8027390: 08027485 .word 0x08027485
  97499. 8027394: 080274ab .word 0x080274ab
  97500. 08027398 <ConnectNetwork>:
  97501. int ConnectNetwork(Network *n, char *ip, int port) {
  97502. 8027398: b580 push {r7, lr}
  97503. 802739a: b088 sub sp, #32
  97504. 802739c: af00 add r7, sp, #0
  97505. 802739e: 60f8 str r0, [r7, #12]
  97506. 80273a0: 60b9 str r1, [r7, #8]
  97507. 80273a2: 607a str r2, [r7, #4]
  97508. struct sockaddr_in server_addr;
  97509. if(n->socket)
  97510. 80273a4: 68fb ldr r3, [r7, #12]
  97511. 80273a6: 681b ldr r3, [r3, #0]
  97512. 80273a8: 2b00 cmp r3, #0
  97513. 80273aa: d004 beq.n 80273b6 <ConnectNetwork+0x1e>
  97514. {
  97515. close(n->socket);
  97516. 80273ac: 68fb ldr r3, [r7, #12]
  97517. 80273ae: 681b ldr r3, [r3, #0]
  97518. 80273b0: 4618 mov r0, r3
  97519. 80273b2: f7f0 fa65 bl 8017880 <lwip_close>
  97520. }
  97521. n->socket = socket(PF_INET, SOCK_STREAM, 0); //create socket
  97522. 80273b6: 2200 movs r2, #0
  97523. 80273b8: 2101 movs r1, #1
  97524. 80273ba: 2002 movs r0, #2
  97525. 80273bc: f7f0 ff72 bl 80182a4 <lwip_socket>
  97526. 80273c0: 4602 mov r2, r0
  97527. 80273c2: 68fb ldr r3, [r7, #12]
  97528. 80273c4: 601a str r2, [r3, #0]
  97529. if(n->socket < 0)
  97530. 80273c6: 68fb ldr r3, [r7, #12]
  97531. 80273c8: 681b ldr r3, [r3, #0]
  97532. 80273ca: 2b00 cmp r3, #0
  97533. 80273cc: da05 bge.n 80273da <ConnectNetwork+0x42>
  97534. {
  97535. n->socket = 0;
  97536. 80273ce: 68fb ldr r3, [r7, #12]
  97537. 80273d0: 2200 movs r2, #0
  97538. 80273d2: 601a str r2, [r3, #0]
  97539. return -1;
  97540. 80273d4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97541. 80273d8: e028 b.n 802742c <ConnectNetwork+0x94>
  97542. }
  97543. memset(&server_addr, 0, sizeof(struct sockaddr_in)); //broker address info
  97544. 80273da: f107 0310 add.w r3, r7, #16
  97545. 80273de: 2210 movs r2, #16
  97546. 80273e0: 2100 movs r1, #0
  97547. 80273e2: 4618 mov r0, r3
  97548. 80273e4: f002 fc8c bl 8029d00 <memset>
  97549. server_addr.sin_family = AF_INET;
  97550. 80273e8: 2302 movs r3, #2
  97551. 80273ea: 747b strb r3, [r7, #17]
  97552. server_addr.sin_addr.s_addr = inet_addr(ip);
  97553. 80273ec: 68b8 ldr r0, [r7, #8]
  97554. 80273ee: f7fd fde0 bl 8024fb2 <ipaddr_addr>
  97555. 80273f2: 4603 mov r3, r0
  97556. 80273f4: 617b str r3, [r7, #20]
  97557. server_addr.sin_port = htons(port);
  97558. 80273f6: 687b ldr r3, [r7, #4]
  97559. 80273f8: b29b uxth r3, r3
  97560. 80273fa: 4618 mov r0, r3
  97561. 80273fc: f7f1 fb94 bl 8018b28 <lwip_htons>
  97562. 8027400: 4603 mov r3, r0
  97563. 8027402: 827b strh r3, [r7, #18]
  97564. if(connect(n->socket, (struct sockaddr*)&server_addr, sizeof(struct sockaddr_in)) < 0) //connect to the broker
  97565. 8027404: 68fb ldr r3, [r7, #12]
  97566. 8027406: 681b ldr r3, [r3, #0]
  97567. 8027408: f107 0110 add.w r1, r7, #16
  97568. 802740c: 2210 movs r2, #16
  97569. 802740e: 4618 mov r0, r3
  97570. 8027410: f7f0 fa8c bl 801792c <lwip_connect>
  97571. 8027414: 4603 mov r3, r0
  97572. 8027416: 2b00 cmp r3, #0
  97573. 8027418: da07 bge.n 802742a <ConnectNetwork+0x92>
  97574. {
  97575. close(n->socket);
  97576. 802741a: 68fb ldr r3, [r7, #12]
  97577. 802741c: 681b ldr r3, [r3, #0]
  97578. 802741e: 4618 mov r0, r3
  97579. 8027420: f7f0 fa2e bl 8017880 <lwip_close>
  97580. return -1;
  97581. 8027424: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97582. 8027428: e000 b.n 802742c <ConnectNetwork+0x94>
  97583. }
  97584. return 0;
  97585. 802742a: 2300 movs r3, #0
  97586. }
  97587. 802742c: 4618 mov r0, r3
  97588. 802742e: 3720 adds r7, #32
  97589. 8027430: 46bd mov sp, r7
  97590. 8027432: bd80 pop {r7, pc}
  97591. 08027434 <net_read>:
  97592. int net_read(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  97593. 8027434: b580 push {r7, lr}
  97594. 8027436: b086 sub sp, #24
  97595. 8027438: af00 add r7, sp, #0
  97596. 802743a: 60f8 str r0, [r7, #12]
  97597. 802743c: 60b9 str r1, [r7, #8]
  97598. 802743e: 607a str r2, [r7, #4]
  97599. 8027440: 603b str r3, [r7, #0]
  97600. int available;
  97601. /* !!! LWIP_SO_RCVBUF must be enabled !!! */
  97602. if(ioctl(n->socket, FIONREAD, &available) < 0) return -1; //check receive buffer
  97603. 8027442: 68fb ldr r3, [r7, #12]
  97604. 8027444: 681b ldr r3, [r3, #0]
  97605. 8027446: f107 0214 add.w r2, r7, #20
  97606. 802744a: 490d ldr r1, [pc, #52] @ (8027480 <net_read+0x4c>)
  97607. 802744c: 4618 mov r0, r3
  97608. 802744e: f7f1 f917 bl 8018680 <lwip_ioctl>
  97609. 8027452: 4603 mov r3, r0
  97610. 8027454: 2b00 cmp r3, #0
  97611. 8027456: da02 bge.n 802745e <net_read+0x2a>
  97612. 8027458: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97613. 802745c: e00c b.n 8027478 <net_read+0x44>
  97614. if(available > 0)
  97615. 802745e: 697b ldr r3, [r7, #20]
  97616. 8027460: 2b00 cmp r3, #0
  97617. 8027462: dd08 ble.n 8027476 <net_read+0x42>
  97618. {
  97619. return recv(n->socket, buffer, len, 0);
  97620. 8027464: 68fb ldr r3, [r7, #12]
  97621. 8027466: 6818 ldr r0, [r3, #0]
  97622. 8027468: 687a ldr r2, [r7, #4]
  97623. 802746a: 2300 movs r3, #0
  97624. 802746c: 68b9 ldr r1, [r7, #8]
  97625. 802746e: f7f0 fdf3 bl 8018058 <lwip_recv>
  97626. 8027472: 4603 mov r3, r0
  97627. 8027474: e000 b.n 8027478 <net_read+0x44>
  97628. }
  97629. return 0;
  97630. 8027476: 2300 movs r3, #0
  97631. }
  97632. 8027478: 4618 mov r0, r3
  97633. 802747a: 3718 adds r7, #24
  97634. 802747c: 46bd mov sp, r7
  97635. 802747e: bd80 pop {r7, pc}
  97636. 8027480: 4004667f .word 0x4004667f
  97637. 08027484 <net_write>:
  97638. int net_write(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  97639. 8027484: b580 push {r7, lr}
  97640. 8027486: b084 sub sp, #16
  97641. 8027488: af00 add r7, sp, #0
  97642. 802748a: 60f8 str r0, [r7, #12]
  97643. 802748c: 60b9 str r1, [r7, #8]
  97644. 802748e: 607a str r2, [r7, #4]
  97645. 8027490: 603b str r3, [r7, #0]
  97646. return send(n->socket, buffer, len, 0);
  97647. 8027492: 68fb ldr r3, [r7, #12]
  97648. 8027494: 6818 ldr r0, [r3, #0]
  97649. 8027496: 687a ldr r2, [r7, #4]
  97650. 8027498: 2300 movs r3, #0
  97651. 802749a: 68b9 ldr r1, [r7, #8]
  97652. 802749c: f7f0 fdf2 bl 8018084 <lwip_send>
  97653. 80274a0: 4603 mov r3, r0
  97654. }
  97655. 80274a2: 4618 mov r0, r3
  97656. 80274a4: 3710 adds r7, #16
  97657. 80274a6: 46bd mov sp, r7
  97658. 80274a8: bd80 pop {r7, pc}
  97659. 080274aa <net_disconnect>:
  97660. void net_disconnect(Network *n) {
  97661. 80274aa: b580 push {r7, lr}
  97662. 80274ac: b082 sub sp, #8
  97663. 80274ae: af00 add r7, sp, #0
  97664. 80274b0: 6078 str r0, [r7, #4]
  97665. close(n->socket);
  97666. 80274b2: 687b ldr r3, [r7, #4]
  97667. 80274b4: 681b ldr r3, [r3, #0]
  97668. 80274b6: 4618 mov r0, r3
  97669. 80274b8: f7f0 f9e2 bl 8017880 <lwip_close>
  97670. n->socket = 0;
  97671. 80274bc: 687b ldr r3, [r7, #4]
  97672. 80274be: 2200 movs r2, #0
  97673. 80274c0: 601a str r2, [r3, #0]
  97674. }
  97675. 80274c2: bf00 nop
  97676. 80274c4: 3708 adds r7, #8
  97677. 80274c6: 46bd mov sp, r7
  97678. 80274c8: bd80 pop {r7, pc}
  97679. 080274ca <MQTTSerialize_connectLength>:
  97680. * Determines the length of the MQTT connect packet that would be produced using the supplied connect options.
  97681. * @param options the options to be used to build the connect packet
  97682. * @return the length of buffer needed to contain the serialized version of the packet
  97683. */
  97684. int MQTTSerialize_connectLength(MQTTPacket_connectData* options)
  97685. {
  97686. 80274ca: b590 push {r4, r7, lr}
  97687. 80274cc: b085 sub sp, #20
  97688. 80274ce: af00 add r7, sp, #0
  97689. 80274d0: 6078 str r0, [r7, #4]
  97690. int len = 0;
  97691. 80274d2: 2300 movs r3, #0
  97692. 80274d4: 60fb str r3, [r7, #12]
  97693. FUNC_ENTRY;
  97694. if (options->MQTTVersion == 3)
  97695. 80274d6: 687b ldr r3, [r7, #4]
  97696. 80274d8: 7a1b ldrb r3, [r3, #8]
  97697. 80274da: 2b03 cmp r3, #3
  97698. 80274dc: d102 bne.n 80274e4 <MQTTSerialize_connectLength+0x1a>
  97699. len = 12; /* variable depending on MQTT or MQIsdp */
  97700. 80274de: 230c movs r3, #12
  97701. 80274e0: 60fb str r3, [r7, #12]
  97702. 80274e2: e005 b.n 80274f0 <MQTTSerialize_connectLength+0x26>
  97703. else if (options->MQTTVersion == 4)
  97704. 80274e4: 687b ldr r3, [r7, #4]
  97705. 80274e6: 7a1b ldrb r3, [r3, #8]
  97706. 80274e8: 2b04 cmp r3, #4
  97707. 80274ea: d101 bne.n 80274f0 <MQTTSerialize_connectLength+0x26>
  97708. len = 10;
  97709. 80274ec: 230a movs r3, #10
  97710. 80274ee: 60fb str r3, [r7, #12]
  97711. len += MQTTstrlen(options->clientID)+2;
  97712. 80274f0: 687b ldr r3, [r7, #4]
  97713. 80274f2: 330c adds r3, #12
  97714. 80274f4: e893 0007 ldmia.w r3, {r0, r1, r2}
  97715. 80274f8: f000 fc43 bl 8027d82 <MQTTstrlen>
  97716. 80274fc: 4603 mov r3, r0
  97717. 80274fe: 3302 adds r3, #2
  97718. 8027500: 68fa ldr r2, [r7, #12]
  97719. 8027502: 4413 add r3, r2
  97720. 8027504: 60fb str r3, [r7, #12]
  97721. if (options->willFlag)
  97722. 8027506: 687b ldr r3, [r7, #4]
  97723. 8027508: 7edb ldrb r3, [r3, #27]
  97724. 802750a: 2b00 cmp r3, #0
  97725. 802750c: d013 beq.n 8027536 <MQTTSerialize_connectLength+0x6c>
  97726. len += MQTTstrlen(options->will.topicName)+2 + MQTTstrlen(options->will.message)+2;
  97727. 802750e: 687b ldr r3, [r7, #4]
  97728. 8027510: 3324 adds r3, #36 @ 0x24
  97729. 8027512: e893 0007 ldmia.w r3, {r0, r1, r2}
  97730. 8027516: f000 fc34 bl 8027d82 <MQTTstrlen>
  97731. 802751a: 4603 mov r3, r0
  97732. 802751c: 1c9c adds r4, r3, #2
  97733. 802751e: 687b ldr r3, [r7, #4]
  97734. 8027520: 3330 adds r3, #48 @ 0x30
  97735. 8027522: e893 0007 ldmia.w r3, {r0, r1, r2}
  97736. 8027526: f000 fc2c bl 8027d82 <MQTTstrlen>
  97737. 802752a: 4603 mov r3, r0
  97738. 802752c: 4423 add r3, r4
  97739. 802752e: 3302 adds r3, #2
  97740. 8027530: 68fa ldr r2, [r7, #12]
  97741. 8027532: 4413 add r3, r2
  97742. 8027534: 60fb str r3, [r7, #12]
  97743. if (options->username.cstring || options->username.lenstring.data)
  97744. 8027536: 687b ldr r3, [r7, #4]
  97745. 8027538: 6c1b ldr r3, [r3, #64] @ 0x40
  97746. 802753a: 2b00 cmp r3, #0
  97747. 802753c: d103 bne.n 8027546 <MQTTSerialize_connectLength+0x7c>
  97748. 802753e: 687b ldr r3, [r7, #4]
  97749. 8027540: 6c9b ldr r3, [r3, #72] @ 0x48
  97750. 8027542: 2b00 cmp r3, #0
  97751. 8027544: d00a beq.n 802755c <MQTTSerialize_connectLength+0x92>
  97752. len += MQTTstrlen(options->username)+2;
  97753. 8027546: 687b ldr r3, [r7, #4]
  97754. 8027548: 3340 adds r3, #64 @ 0x40
  97755. 802754a: e893 0007 ldmia.w r3, {r0, r1, r2}
  97756. 802754e: f000 fc18 bl 8027d82 <MQTTstrlen>
  97757. 8027552: 4603 mov r3, r0
  97758. 8027554: 3302 adds r3, #2
  97759. 8027556: 68fa ldr r2, [r7, #12]
  97760. 8027558: 4413 add r3, r2
  97761. 802755a: 60fb str r3, [r7, #12]
  97762. if (options->password.cstring || options->password.lenstring.data)
  97763. 802755c: 687b ldr r3, [r7, #4]
  97764. 802755e: 6cdb ldr r3, [r3, #76] @ 0x4c
  97765. 8027560: 2b00 cmp r3, #0
  97766. 8027562: d103 bne.n 802756c <MQTTSerialize_connectLength+0xa2>
  97767. 8027564: 687b ldr r3, [r7, #4]
  97768. 8027566: 6d5b ldr r3, [r3, #84] @ 0x54
  97769. 8027568: 2b00 cmp r3, #0
  97770. 802756a: d00a beq.n 8027582 <MQTTSerialize_connectLength+0xb8>
  97771. len += MQTTstrlen(options->password)+2;
  97772. 802756c: 687b ldr r3, [r7, #4]
  97773. 802756e: 334c adds r3, #76 @ 0x4c
  97774. 8027570: e893 0007 ldmia.w r3, {r0, r1, r2}
  97775. 8027574: f000 fc05 bl 8027d82 <MQTTstrlen>
  97776. 8027578: 4603 mov r3, r0
  97777. 802757a: 3302 adds r3, #2
  97778. 802757c: 68fa ldr r2, [r7, #12]
  97779. 802757e: 4413 add r3, r2
  97780. 8027580: 60fb str r3, [r7, #12]
  97781. FUNC_EXIT_RC(len);
  97782. return len;
  97783. 8027582: 68fb ldr r3, [r7, #12]
  97784. }
  97785. 8027584: 4618 mov r0, r3
  97786. 8027586: 3714 adds r7, #20
  97787. 8027588: 46bd mov sp, r7
  97788. 802758a: bd90 pop {r4, r7, pc}
  97789. 0802758c <MQTTSerialize_connect>:
  97790. * @param len the length in bytes of the supplied buffer
  97791. * @param options the options to be used to build the connect packet
  97792. * @return serialized length, or error if 0
  97793. */
  97794. int MQTTSerialize_connect(unsigned char* buf, int buflen, MQTTPacket_connectData* options)
  97795. {
  97796. 802758c: b580 push {r7, lr}
  97797. 802758e: b08a sub sp, #40 @ 0x28
  97798. 8027590: af00 add r7, sp, #0
  97799. 8027592: 60f8 str r0, [r7, #12]
  97800. 8027594: 60b9 str r1, [r7, #8]
  97801. 8027596: 607a str r2, [r7, #4]
  97802. unsigned char *ptr = buf;
  97803. 8027598: 68fb ldr r3, [r7, #12]
  97804. 802759a: 61fb str r3, [r7, #28]
  97805. MQTTHeader header = {0};
  97806. 802759c: 2300 movs r3, #0
  97807. 802759e: 61bb str r3, [r7, #24]
  97808. MQTTConnectFlags flags = {0};
  97809. 80275a0: 2300 movs r3, #0
  97810. 80275a2: 617b str r3, [r7, #20]
  97811. int len = 0;
  97812. 80275a4: 2300 movs r3, #0
  97813. 80275a6: 623b str r3, [r7, #32]
  97814. int rc = -1;
  97815. 80275a8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97816. 80275ac: 627b str r3, [r7, #36] @ 0x24
  97817. FUNC_ENTRY;
  97818. if (MQTTPacket_len(len = MQTTSerialize_connectLength(options)) > buflen)
  97819. 80275ae: 6878 ldr r0, [r7, #4]
  97820. 80275b0: f7ff ff8b bl 80274ca <MQTTSerialize_connectLength>
  97821. 80275b4: 6238 str r0, [r7, #32]
  97822. 80275b6: 6a38 ldr r0, [r7, #32]
  97823. 80275b8: f000 fa98 bl 8027aec <MQTTPacket_len>
  97824. 80275bc: 4602 mov r2, r0
  97825. 80275be: 68bb ldr r3, [r7, #8]
  97826. 80275c0: 4293 cmp r3, r2
  97827. 80275c2: da03 bge.n 80275cc <MQTTSerialize_connect+0x40>
  97828. {
  97829. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  97830. 80275c4: f06f 0301 mvn.w r3, #1
  97831. 80275c8: 627b str r3, [r7, #36] @ 0x24
  97832. goto exit;
  97833. 80275ca: e0c2 b.n 8027752 <MQTTSerialize_connect+0x1c6>
  97834. }
  97835. header.byte = 0;
  97836. 80275cc: 2300 movs r3, #0
  97837. 80275ce: 763b strb r3, [r7, #24]
  97838. header.bits.type = CONNECT;
  97839. 80275d0: 7e3b ldrb r3, [r7, #24]
  97840. 80275d2: 2201 movs r2, #1
  97841. 80275d4: f362 1307 bfi r3, r2, #4, #4
  97842. 80275d8: 763b strb r3, [r7, #24]
  97843. writeChar(&ptr, header.byte); /* write header */
  97844. 80275da: 7e3a ldrb r2, [r7, #24]
  97845. 80275dc: f107 031c add.w r3, r7, #28
  97846. 80275e0: 4611 mov r1, r2
  97847. 80275e2: 4618 mov r0, r3
  97848. 80275e4: f000 fb11 bl 8027c0a <writeChar>
  97849. ptr += MQTTPacket_encode(ptr, len); /* write remaining length */
  97850. 80275e8: 69fb ldr r3, [r7, #28]
  97851. 80275ea: 6a39 ldr r1, [r7, #32]
  97852. 80275ec: 4618 mov r0, r3
  97853. 80275ee: f000 fa12 bl 8027a16 <MQTTPacket_encode>
  97854. 80275f2: 4602 mov r2, r0
  97855. 80275f4: 69fb ldr r3, [r7, #28]
  97856. 80275f6: 4413 add r3, r2
  97857. 80275f8: 61fb str r3, [r7, #28]
  97858. if (options->MQTTVersion == 4)
  97859. 80275fa: 687b ldr r3, [r7, #4]
  97860. 80275fc: 7a1b ldrb r3, [r3, #8]
  97861. 80275fe: 2b04 cmp r3, #4
  97862. 8027600: d10c bne.n 802761c <MQTTSerialize_connect+0x90>
  97863. {
  97864. writeCString(&ptr, "MQTT");
  97865. 8027602: f107 031c add.w r3, r7, #28
  97866. 8027606: 4955 ldr r1, [pc, #340] @ (802775c <MQTTSerialize_connect+0x1d0>)
  97867. 8027608: 4618 mov r0, r3
  97868. 802760a: f000 fb3c bl 8027c86 <writeCString>
  97869. writeChar(&ptr, (char) 4);
  97870. 802760e: f107 031c add.w r3, r7, #28
  97871. 8027612: 2104 movs r1, #4
  97872. 8027614: 4618 mov r0, r3
  97873. 8027616: f000 faf8 bl 8027c0a <writeChar>
  97874. 802761a: e00b b.n 8027634 <MQTTSerialize_connect+0xa8>
  97875. }
  97876. else
  97877. {
  97878. writeCString(&ptr, "MQIsdp");
  97879. 802761c: f107 031c add.w r3, r7, #28
  97880. 8027620: 494f ldr r1, [pc, #316] @ (8027760 <MQTTSerialize_connect+0x1d4>)
  97881. 8027622: 4618 mov r0, r3
  97882. 8027624: f000 fb2f bl 8027c86 <writeCString>
  97883. writeChar(&ptr, (char) 3);
  97884. 8027628: f107 031c add.w r3, r7, #28
  97885. 802762c: 2103 movs r1, #3
  97886. 802762e: 4618 mov r0, r3
  97887. 8027630: f000 faeb bl 8027c0a <writeChar>
  97888. }
  97889. flags.all = 0;
  97890. 8027634: 2300 movs r3, #0
  97891. 8027636: 753b strb r3, [r7, #20]
  97892. flags.bits.cleansession = options->cleansession;
  97893. 8027638: 687b ldr r3, [r7, #4]
  97894. 802763a: 7e9b ldrb r3, [r3, #26]
  97895. 802763c: f003 0301 and.w r3, r3, #1
  97896. 8027640: b2da uxtb r2, r3
  97897. 8027642: 7d3b ldrb r3, [r7, #20]
  97898. 8027644: f362 0341 bfi r3, r2, #1, #1
  97899. 8027648: 753b strb r3, [r7, #20]
  97900. flags.bits.will = (options->willFlag) ? 1 : 0;
  97901. 802764a: 687b ldr r3, [r7, #4]
  97902. 802764c: 7edb ldrb r3, [r3, #27]
  97903. 802764e: 2b00 cmp r3, #0
  97904. 8027650: bf14 ite ne
  97905. 8027652: 2301 movne r3, #1
  97906. 8027654: 2300 moveq r3, #0
  97907. 8027656: b2da uxtb r2, r3
  97908. 8027658: 7d3b ldrb r3, [r7, #20]
  97909. 802765a: f362 0382 bfi r3, r2, #2, #1
  97910. 802765e: 753b strb r3, [r7, #20]
  97911. if (flags.bits.will)
  97912. 8027660: 7d3b ldrb r3, [r7, #20]
  97913. 8027662: f003 0304 and.w r3, r3, #4
  97914. 8027666: b2db uxtb r3, r3
  97915. 8027668: 2b00 cmp r3, #0
  97916. 802766a: d013 beq.n 8027694 <MQTTSerialize_connect+0x108>
  97917. {
  97918. flags.bits.willQoS = options->will.qos;
  97919. 802766c: 687b ldr r3, [r7, #4]
  97920. 802766e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  97921. 8027672: f003 0303 and.w r3, r3, #3
  97922. 8027676: b2da uxtb r2, r3
  97923. 8027678: 7d3b ldrb r3, [r7, #20]
  97924. 802767a: f362 03c4 bfi r3, r2, #3, #2
  97925. 802767e: 753b strb r3, [r7, #20]
  97926. flags.bits.willRetain = options->will.retained;
  97927. 8027680: 687b ldr r3, [r7, #4]
  97928. 8027682: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  97929. 8027686: f003 0301 and.w r3, r3, #1
  97930. 802768a: b2da uxtb r2, r3
  97931. 802768c: 7d3b ldrb r3, [r7, #20]
  97932. 802768e: f362 1345 bfi r3, r2, #5, #1
  97933. 8027692: 753b strb r3, [r7, #20]
  97934. }
  97935. if (options->username.cstring || options->username.lenstring.data)
  97936. 8027694: 687b ldr r3, [r7, #4]
  97937. 8027696: 6c1b ldr r3, [r3, #64] @ 0x40
  97938. 8027698: 2b00 cmp r3, #0
  97939. 802769a: d103 bne.n 80276a4 <MQTTSerialize_connect+0x118>
  97940. 802769c: 687b ldr r3, [r7, #4]
  97941. 802769e: 6c9b ldr r3, [r3, #72] @ 0x48
  97942. 80276a0: 2b00 cmp r3, #0
  97943. 80276a2: d003 beq.n 80276ac <MQTTSerialize_connect+0x120>
  97944. flags.bits.username = 1;
  97945. 80276a4: 7d3b ldrb r3, [r7, #20]
  97946. 80276a6: f043 0380 orr.w r3, r3, #128 @ 0x80
  97947. 80276aa: 753b strb r3, [r7, #20]
  97948. if (options->password.cstring || options->password.lenstring.data)
  97949. 80276ac: 687b ldr r3, [r7, #4]
  97950. 80276ae: 6cdb ldr r3, [r3, #76] @ 0x4c
  97951. 80276b0: 2b00 cmp r3, #0
  97952. 80276b2: d103 bne.n 80276bc <MQTTSerialize_connect+0x130>
  97953. 80276b4: 687b ldr r3, [r7, #4]
  97954. 80276b6: 6d5b ldr r3, [r3, #84] @ 0x54
  97955. 80276b8: 2b00 cmp r3, #0
  97956. 80276ba: d003 beq.n 80276c4 <MQTTSerialize_connect+0x138>
  97957. flags.bits.password = 1;
  97958. 80276bc: 7d3b ldrb r3, [r7, #20]
  97959. 80276be: f043 0340 orr.w r3, r3, #64 @ 0x40
  97960. 80276c2: 753b strb r3, [r7, #20]
  97961. writeChar(&ptr, flags.all);
  97962. 80276c4: 7d3a ldrb r2, [r7, #20]
  97963. 80276c6: f107 031c add.w r3, r7, #28
  97964. 80276ca: 4611 mov r1, r2
  97965. 80276cc: 4618 mov r0, r3
  97966. 80276ce: f000 fa9c bl 8027c0a <writeChar>
  97967. writeInt(&ptr, options->keepAliveInterval);
  97968. 80276d2: 687b ldr r3, [r7, #4]
  97969. 80276d4: 8b1b ldrh r3, [r3, #24]
  97970. 80276d6: 461a mov r2, r3
  97971. 80276d8: f107 031c add.w r3, r7, #28
  97972. 80276dc: 4611 mov r1, r2
  97973. 80276de: 4618 mov r0, r3
  97974. 80276e0: f000 faa8 bl 8027c34 <writeInt>
  97975. writeMQTTString(&ptr, options->clientID);
  97976. 80276e4: 687b ldr r3, [r7, #4]
  97977. 80276e6: f107 001c add.w r0, r7, #28
  97978. 80276ea: 330c adds r3, #12
  97979. 80276ec: cb0e ldmia r3, {r1, r2, r3}
  97980. 80276ee: f000 fae9 bl 8027cc4 <writeMQTTString>
  97981. if (options->willFlag)
  97982. 80276f2: 687b ldr r3, [r7, #4]
  97983. 80276f4: 7edb ldrb r3, [r3, #27]
  97984. 80276f6: 2b00 cmp r3, #0
  97985. 80276f8: d00d beq.n 8027716 <MQTTSerialize_connect+0x18a>
  97986. {
  97987. writeMQTTString(&ptr, options->will.topicName);
  97988. 80276fa: 687b ldr r3, [r7, #4]
  97989. 80276fc: f107 001c add.w r0, r7, #28
  97990. 8027700: 3324 adds r3, #36 @ 0x24
  97991. 8027702: cb0e ldmia r3, {r1, r2, r3}
  97992. 8027704: f000 fade bl 8027cc4 <writeMQTTString>
  97993. writeMQTTString(&ptr, options->will.message);
  97994. 8027708: 687b ldr r3, [r7, #4]
  97995. 802770a: f107 001c add.w r0, r7, #28
  97996. 802770e: 3330 adds r3, #48 @ 0x30
  97997. 8027710: cb0e ldmia r3, {r1, r2, r3}
  97998. 8027712: f000 fad7 bl 8027cc4 <writeMQTTString>
  97999. }
  98000. if (flags.bits.username)
  98001. 8027716: 7d3b ldrb r3, [r7, #20]
  98002. 8027718: f023 037f bic.w r3, r3, #127 @ 0x7f
  98003. 802771c: b2db uxtb r3, r3
  98004. 802771e: 2b00 cmp r3, #0
  98005. 8027720: d006 beq.n 8027730 <MQTTSerialize_connect+0x1a4>
  98006. writeMQTTString(&ptr, options->username);
  98007. 8027722: 687b ldr r3, [r7, #4]
  98008. 8027724: f107 001c add.w r0, r7, #28
  98009. 8027728: 3340 adds r3, #64 @ 0x40
  98010. 802772a: cb0e ldmia r3, {r1, r2, r3}
  98011. 802772c: f000 faca bl 8027cc4 <writeMQTTString>
  98012. if (flags.bits.password)
  98013. 8027730: 7d3b ldrb r3, [r7, #20]
  98014. 8027732: f003 0340 and.w r3, r3, #64 @ 0x40
  98015. 8027736: b2db uxtb r3, r3
  98016. 8027738: 2b00 cmp r3, #0
  98017. 802773a: d006 beq.n 802774a <MQTTSerialize_connect+0x1be>
  98018. writeMQTTString(&ptr, options->password);
  98019. 802773c: 687b ldr r3, [r7, #4]
  98020. 802773e: f107 001c add.w r0, r7, #28
  98021. 8027742: 334c adds r3, #76 @ 0x4c
  98022. 8027744: cb0e ldmia r3, {r1, r2, r3}
  98023. 8027746: f000 fabd bl 8027cc4 <writeMQTTString>
  98024. rc = ptr - buf;
  98025. 802774a: 69fa ldr r2, [r7, #28]
  98026. 802774c: 68fb ldr r3, [r7, #12]
  98027. 802774e: 1ad3 subs r3, r2, r3
  98028. 8027750: 627b str r3, [r7, #36] @ 0x24
  98029. exit: FUNC_EXIT_RC(rc);
  98030. return rc;
  98031. 8027752: 6a7b ldr r3, [r7, #36] @ 0x24
  98032. }
  98033. 8027754: 4618 mov r0, r3
  98034. 8027756: 3728 adds r7, #40 @ 0x28
  98035. 8027758: 46bd mov sp, r7
  98036. 802775a: bd80 pop {r7, pc}
  98037. 802775c: 080309c8 .word 0x080309c8
  98038. 8027760: 080309d0 .word 0x080309d0
  98039. 08027764 <MQTTDeserialize_connack>:
  98040. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  98041. * @param len the length in bytes of the data in the supplied buffer
  98042. * @return error code. 1 is success, 0 is failure
  98043. */
  98044. int MQTTDeserialize_connack(unsigned char* sessionPresent, unsigned char* connack_rc, unsigned char* buf, int buflen)
  98045. {
  98046. 8027764: b580 push {r7, lr}
  98047. 8027766: b08a sub sp, #40 @ 0x28
  98048. 8027768: af00 add r7, sp, #0
  98049. 802776a: 60f8 str r0, [r7, #12]
  98050. 802776c: 60b9 str r1, [r7, #8]
  98051. 802776e: 607a str r2, [r7, #4]
  98052. 8027770: 603b str r3, [r7, #0]
  98053. MQTTHeader header = {0};
  98054. 8027772: 2300 movs r3, #0
  98055. 8027774: 61fb str r3, [r7, #28]
  98056. unsigned char* curdata = buf;
  98057. 8027776: 687b ldr r3, [r7, #4]
  98058. 8027778: 61bb str r3, [r7, #24]
  98059. unsigned char* enddata = NULL;
  98060. 802777a: 2300 movs r3, #0
  98061. 802777c: 623b str r3, [r7, #32]
  98062. int rc = 0;
  98063. 802777e: 2300 movs r3, #0
  98064. 8027780: 627b str r3, [r7, #36] @ 0x24
  98065. int mylen;
  98066. MQTTConnackFlags flags = {0};
  98067. 8027782: 2300 movs r3, #0
  98068. 8027784: 613b str r3, [r7, #16]
  98069. FUNC_ENTRY;
  98070. header.byte = readChar(&curdata);
  98071. 8027786: f107 0318 add.w r3, r7, #24
  98072. 802778a: 4618 mov r0, r3
  98073. 802778c: f000 fa29 bl 8027be2 <readChar>
  98074. 8027790: 4603 mov r3, r0
  98075. 8027792: 773b strb r3, [r7, #28]
  98076. if (header.bits.type != CONNACK)
  98077. 8027794: 7f3b ldrb r3, [r7, #28]
  98078. 8027796: f023 030f bic.w r3, r3, #15
  98079. 802779a: b2db uxtb r3, r3
  98080. 802779c: 2b20 cmp r3, #32
  98081. 802779e: d12e bne.n 80277fe <MQTTDeserialize_connack+0x9a>
  98082. goto exit;
  98083. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  98084. 80277a0: 69bb ldr r3, [r7, #24]
  98085. 80277a2: f107 0214 add.w r2, r7, #20
  98086. 80277a6: 4611 mov r1, r2
  98087. 80277a8: 4618 mov r0, r3
  98088. 80277aa: f000 f9e9 bl 8027b80 <MQTTPacket_decodeBuf>
  98089. 80277ae: 6278 str r0, [r7, #36] @ 0x24
  98090. 80277b0: 6a7a ldr r2, [r7, #36] @ 0x24
  98091. 80277b2: 69bb ldr r3, [r7, #24]
  98092. 80277b4: 4413 add r3, r2
  98093. 80277b6: 61bb str r3, [r7, #24]
  98094. enddata = curdata + mylen;
  98095. 80277b8: 69bb ldr r3, [r7, #24]
  98096. 80277ba: 697a ldr r2, [r7, #20]
  98097. 80277bc: 4413 add r3, r2
  98098. 80277be: 623b str r3, [r7, #32]
  98099. if (enddata - curdata < 2)
  98100. 80277c0: 69bb ldr r3, [r7, #24]
  98101. 80277c2: 6a3a ldr r2, [r7, #32]
  98102. 80277c4: 1ad3 subs r3, r2, r3
  98103. 80277c6: 2b01 cmp r3, #1
  98104. 80277c8: dd1b ble.n 8027802 <MQTTDeserialize_connack+0x9e>
  98105. goto exit;
  98106. flags.all = readChar(&curdata);
  98107. 80277ca: f107 0318 add.w r3, r7, #24
  98108. 80277ce: 4618 mov r0, r3
  98109. 80277d0: f000 fa07 bl 8027be2 <readChar>
  98110. 80277d4: 4603 mov r3, r0
  98111. 80277d6: 743b strb r3, [r7, #16]
  98112. *sessionPresent = flags.bits.sessionpresent;
  98113. 80277d8: 7c3b ldrb r3, [r7, #16]
  98114. 80277da: f3c3 0300 ubfx r3, r3, #0, #1
  98115. 80277de: b2db uxtb r3, r3
  98116. 80277e0: 461a mov r2, r3
  98117. 80277e2: 68fb ldr r3, [r7, #12]
  98118. 80277e4: 701a strb r2, [r3, #0]
  98119. *connack_rc = readChar(&curdata);
  98120. 80277e6: f107 0318 add.w r3, r7, #24
  98121. 80277ea: 4618 mov r0, r3
  98122. 80277ec: f000 f9f9 bl 8027be2 <readChar>
  98123. 80277f0: 4603 mov r3, r0
  98124. 80277f2: 461a mov r2, r3
  98125. 80277f4: 68bb ldr r3, [r7, #8]
  98126. 80277f6: 701a strb r2, [r3, #0]
  98127. rc = 1;
  98128. 80277f8: 2301 movs r3, #1
  98129. 80277fa: 627b str r3, [r7, #36] @ 0x24
  98130. 80277fc: e002 b.n 8027804 <MQTTDeserialize_connack+0xa0>
  98131. goto exit;
  98132. 80277fe: bf00 nop
  98133. 8027800: e000 b.n 8027804 <MQTTDeserialize_connack+0xa0>
  98134. goto exit;
  98135. 8027802: bf00 nop
  98136. exit:
  98137. FUNC_EXIT_RC(rc);
  98138. return rc;
  98139. 8027804: 6a7b ldr r3, [r7, #36] @ 0x24
  98140. }
  98141. 8027806: 4618 mov r0, r3
  98142. 8027808: 3728 adds r7, #40 @ 0x28
  98143. 802780a: 46bd mov sp, r7
  98144. 802780c: bd80 pop {r7, pc}
  98145. 0802780e <MQTTSerialize_zero>:
  98146. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  98147. * @param packettype the message type
  98148. * @return serialized length, or error if 0
  98149. */
  98150. int MQTTSerialize_zero(unsigned char* buf, int buflen, unsigned char packettype)
  98151. {
  98152. 802780e: b580 push {r7, lr}
  98153. 8027810: b088 sub sp, #32
  98154. 8027812: af00 add r7, sp, #0
  98155. 8027814: 60f8 str r0, [r7, #12]
  98156. 8027816: 60b9 str r1, [r7, #8]
  98157. 8027818: 4613 mov r3, r2
  98158. 802781a: 71fb strb r3, [r7, #7]
  98159. MQTTHeader header = {0};
  98160. 802781c: 2300 movs r3, #0
  98161. 802781e: 61bb str r3, [r7, #24]
  98162. int rc = -1;
  98163. 8027820: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98164. 8027824: 61fb str r3, [r7, #28]
  98165. unsigned char *ptr = buf;
  98166. 8027826: 68fb ldr r3, [r7, #12]
  98167. 8027828: 617b str r3, [r7, #20]
  98168. FUNC_ENTRY;
  98169. if (buflen < 2)
  98170. 802782a: 68bb ldr r3, [r7, #8]
  98171. 802782c: 2b01 cmp r3, #1
  98172. 802782e: dc03 bgt.n 8027838 <MQTTSerialize_zero+0x2a>
  98173. {
  98174. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  98175. 8027830: f06f 0301 mvn.w r3, #1
  98176. 8027834: 61fb str r3, [r7, #28]
  98177. goto exit;
  98178. 8027836: e01d b.n 8027874 <MQTTSerialize_zero+0x66>
  98179. }
  98180. header.byte = 0;
  98181. 8027838: 2300 movs r3, #0
  98182. 802783a: 763b strb r3, [r7, #24]
  98183. header.bits.type = packettype;
  98184. 802783c: 79fb ldrb r3, [r7, #7]
  98185. 802783e: f003 030f and.w r3, r3, #15
  98186. 8027842: b2da uxtb r2, r3
  98187. 8027844: 7e3b ldrb r3, [r7, #24]
  98188. 8027846: f362 1307 bfi r3, r2, #4, #4
  98189. 802784a: 763b strb r3, [r7, #24]
  98190. writeChar(&ptr, header.byte); /* write header */
  98191. 802784c: 7e3a ldrb r2, [r7, #24]
  98192. 802784e: f107 0314 add.w r3, r7, #20
  98193. 8027852: 4611 mov r1, r2
  98194. 8027854: 4618 mov r0, r3
  98195. 8027856: f000 f9d8 bl 8027c0a <writeChar>
  98196. ptr += MQTTPacket_encode(ptr, 0); /* write remaining length */
  98197. 802785a: 697b ldr r3, [r7, #20]
  98198. 802785c: 2100 movs r1, #0
  98199. 802785e: 4618 mov r0, r3
  98200. 8027860: f000 f8d9 bl 8027a16 <MQTTPacket_encode>
  98201. 8027864: 4602 mov r2, r0
  98202. 8027866: 697b ldr r3, [r7, #20]
  98203. 8027868: 4413 add r3, r2
  98204. 802786a: 617b str r3, [r7, #20]
  98205. rc = ptr - buf;
  98206. 802786c: 697a ldr r2, [r7, #20]
  98207. 802786e: 68fb ldr r3, [r7, #12]
  98208. 8027870: 1ad3 subs r3, r2, r3
  98209. 8027872: 61fb str r3, [r7, #28]
  98210. exit:
  98211. FUNC_EXIT_RC(rc);
  98212. return rc;
  98213. 8027874: 69fb ldr r3, [r7, #28]
  98214. }
  98215. 8027876: 4618 mov r0, r3
  98216. 8027878: 3720 adds r7, #32
  98217. 802787a: 46bd mov sp, r7
  98218. 802787c: bd80 pop {r7, pc}
  98219. 0802787e <MQTTSerialize_pingreq>:
  98220. * @param buf the buffer into which the packet will be serialized
  98221. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  98222. * @return serialized length, or error if 0
  98223. */
  98224. int MQTTSerialize_pingreq(unsigned char* buf, int buflen)
  98225. {
  98226. 802787e: b580 push {r7, lr}
  98227. 8027880: b082 sub sp, #8
  98228. 8027882: af00 add r7, sp, #0
  98229. 8027884: 6078 str r0, [r7, #4]
  98230. 8027886: 6039 str r1, [r7, #0]
  98231. return MQTTSerialize_zero(buf, buflen, PINGREQ);
  98232. 8027888: 220c movs r2, #12
  98233. 802788a: 6839 ldr r1, [r7, #0]
  98234. 802788c: 6878 ldr r0, [r7, #4]
  98235. 802788e: f7ff ffbe bl 802780e <MQTTSerialize_zero>
  98236. 8027892: 4603 mov r3, r0
  98237. }
  98238. 8027894: 4618 mov r0, r3
  98239. 8027896: 3708 adds r7, #8
  98240. 8027898: 46bd mov sp, r7
  98241. 802789a: bd80 pop {r7, pc}
  98242. 0802789c <MQTTDeserialize_publish>:
  98243. * @param buflen the length in bytes of the data in the supplied buffer
  98244. * @return error code. 1 is success
  98245. */
  98246. int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName,
  98247. unsigned char** payload, int* payloadlen, unsigned char* buf, int buflen)
  98248. {
  98249. 802789c: b580 push {r7, lr}
  98250. 802789e: b08a sub sp, #40 @ 0x28
  98251. 80278a0: af00 add r7, sp, #0
  98252. 80278a2: 60f8 str r0, [r7, #12]
  98253. 80278a4: 60b9 str r1, [r7, #8]
  98254. 80278a6: 607a str r2, [r7, #4]
  98255. 80278a8: 603b str r3, [r7, #0]
  98256. MQTTHeader header = {0};
  98257. 80278aa: 2300 movs r3, #0
  98258. 80278ac: 61fb str r3, [r7, #28]
  98259. unsigned char* curdata = buf;
  98260. 80278ae: 6bfb ldr r3, [r7, #60] @ 0x3c
  98261. 80278b0: 61bb str r3, [r7, #24]
  98262. unsigned char* enddata = NULL;
  98263. 80278b2: 2300 movs r3, #0
  98264. 80278b4: 623b str r3, [r7, #32]
  98265. int rc = 0;
  98266. 80278b6: 2300 movs r3, #0
  98267. 80278b8: 627b str r3, [r7, #36] @ 0x24
  98268. int mylen = 0;
  98269. 80278ba: 2300 movs r3, #0
  98270. 80278bc: 617b str r3, [r7, #20]
  98271. FUNC_ENTRY;
  98272. header.byte = readChar(&curdata);
  98273. 80278be: f107 0318 add.w r3, r7, #24
  98274. 80278c2: 4618 mov r0, r3
  98275. 80278c4: f000 f98d bl 8027be2 <readChar>
  98276. 80278c8: 4603 mov r3, r0
  98277. 80278ca: 773b strb r3, [r7, #28]
  98278. if (header.bits.type != PUBLISH)
  98279. 80278cc: 7f3b ldrb r3, [r7, #28]
  98280. 80278ce: f023 030f bic.w r3, r3, #15
  98281. 80278d2: b2db uxtb r3, r3
  98282. 80278d4: 2b30 cmp r3, #48 @ 0x30
  98283. 80278d6: d14b bne.n 8027970 <MQTTDeserialize_publish+0xd4>
  98284. goto exit;
  98285. *dup = header.bits.dup;
  98286. 80278d8: 7f3b ldrb r3, [r7, #28]
  98287. 80278da: f3c3 03c0 ubfx r3, r3, #3, #1
  98288. 80278de: b2db uxtb r3, r3
  98289. 80278e0: 461a mov r2, r3
  98290. 80278e2: 68fb ldr r3, [r7, #12]
  98291. 80278e4: 701a strb r2, [r3, #0]
  98292. *qos = header.bits.qos;
  98293. 80278e6: 7f3b ldrb r3, [r7, #28]
  98294. 80278e8: f3c3 0341 ubfx r3, r3, #1, #2
  98295. 80278ec: b2db uxtb r3, r3
  98296. 80278ee: 461a mov r2, r3
  98297. 80278f0: 68bb ldr r3, [r7, #8]
  98298. 80278f2: 601a str r2, [r3, #0]
  98299. *retained = header.bits.retain;
  98300. 80278f4: 7f3b ldrb r3, [r7, #28]
  98301. 80278f6: f3c3 0300 ubfx r3, r3, #0, #1
  98302. 80278fa: b2db uxtb r3, r3
  98303. 80278fc: 461a mov r2, r3
  98304. 80278fe: 687b ldr r3, [r7, #4]
  98305. 8027900: 701a strb r2, [r3, #0]
  98306. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  98307. 8027902: 69bb ldr r3, [r7, #24]
  98308. 8027904: f107 0214 add.w r2, r7, #20
  98309. 8027908: 4611 mov r1, r2
  98310. 802790a: 4618 mov r0, r3
  98311. 802790c: f000 f938 bl 8027b80 <MQTTPacket_decodeBuf>
  98312. 8027910: 6278 str r0, [r7, #36] @ 0x24
  98313. 8027912: 6a7a ldr r2, [r7, #36] @ 0x24
  98314. 8027914: 69bb ldr r3, [r7, #24]
  98315. 8027916: 4413 add r3, r2
  98316. 8027918: 61bb str r3, [r7, #24]
  98317. enddata = curdata + mylen;
  98318. 802791a: 69bb ldr r3, [r7, #24]
  98319. 802791c: 697a ldr r2, [r7, #20]
  98320. 802791e: 4413 add r3, r2
  98321. 8027920: 623b str r3, [r7, #32]
  98322. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  98323. 8027922: f107 0318 add.w r3, r7, #24
  98324. 8027926: 6a3a ldr r2, [r7, #32]
  98325. 8027928: 4619 mov r1, r3
  98326. 802792a: 6b38 ldr r0, [r7, #48] @ 0x30
  98327. 802792c: f000 f9f8 bl 8027d20 <readMQTTLenString>
  98328. 8027930: 4603 mov r3, r0
  98329. 8027932: 2b00 cmp r3, #0
  98330. 8027934: d01e beq.n 8027974 <MQTTDeserialize_publish+0xd8>
  98331. enddata - curdata < 0) /* do we have enough data to read the protocol version byte? */
  98332. 8027936: 69bb ldr r3, [r7, #24]
  98333. 8027938: 6a3a ldr r2, [r7, #32]
  98334. 802793a: 1ad3 subs r3, r2, r3
  98335. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  98336. 802793c: 2b00 cmp r3, #0
  98337. 802793e: db19 blt.n 8027974 <MQTTDeserialize_publish+0xd8>
  98338. goto exit;
  98339. if (*qos > 0)
  98340. 8027940: 68bb ldr r3, [r7, #8]
  98341. 8027942: 681b ldr r3, [r3, #0]
  98342. 8027944: 2b00 cmp r3, #0
  98343. 8027946: dd08 ble.n 802795a <MQTTDeserialize_publish+0xbe>
  98344. *packetid = readInt(&curdata);
  98345. 8027948: f107 0318 add.w r3, r7, #24
  98346. 802794c: 4618 mov r0, r3
  98347. 802794e: f000 f92d bl 8027bac <readInt>
  98348. 8027952: 4603 mov r3, r0
  98349. 8027954: b29a uxth r2, r3
  98350. 8027956: 683b ldr r3, [r7, #0]
  98351. 8027958: 801a strh r2, [r3, #0]
  98352. *payloadlen = enddata - curdata;
  98353. 802795a: 69bb ldr r3, [r7, #24]
  98354. 802795c: 6a3a ldr r2, [r7, #32]
  98355. 802795e: 1ad2 subs r2, r2, r3
  98356. 8027960: 6bbb ldr r3, [r7, #56] @ 0x38
  98357. 8027962: 601a str r2, [r3, #0]
  98358. *payload = curdata;
  98359. 8027964: 69ba ldr r2, [r7, #24]
  98360. 8027966: 6b7b ldr r3, [r7, #52] @ 0x34
  98361. 8027968: 601a str r2, [r3, #0]
  98362. rc = 1;
  98363. 802796a: 2301 movs r3, #1
  98364. 802796c: 627b str r3, [r7, #36] @ 0x24
  98365. 802796e: e002 b.n 8027976 <MQTTDeserialize_publish+0xda>
  98366. goto exit;
  98367. 8027970: bf00 nop
  98368. 8027972: e000 b.n 8027976 <MQTTDeserialize_publish+0xda>
  98369. goto exit;
  98370. 8027974: bf00 nop
  98371. exit:
  98372. FUNC_EXIT_RC(rc);
  98373. return rc;
  98374. 8027976: 6a7b ldr r3, [r7, #36] @ 0x24
  98375. }
  98376. 8027978: 4618 mov r0, r3
  98377. 802797a: 3728 adds r7, #40 @ 0x28
  98378. 802797c: 46bd mov sp, r7
  98379. 802797e: bd80 pop {r7, pc}
  98380. 08027980 <MQTTDeserialize_ack>:
  98381. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  98382. * @param buflen the length in bytes of the data in the supplied buffer
  98383. * @return error code. 1 is success, 0 is failure
  98384. */
  98385. int MQTTDeserialize_ack(unsigned char* packettype, unsigned char* dup, unsigned short* packetid, unsigned char* buf, int buflen)
  98386. {
  98387. 8027980: b580 push {r7, lr}
  98388. 8027982: b08a sub sp, #40 @ 0x28
  98389. 8027984: af00 add r7, sp, #0
  98390. 8027986: 60f8 str r0, [r7, #12]
  98391. 8027988: 60b9 str r1, [r7, #8]
  98392. 802798a: 607a str r2, [r7, #4]
  98393. 802798c: 603b str r3, [r7, #0]
  98394. MQTTHeader header = {0};
  98395. 802798e: 2300 movs r3, #0
  98396. 8027990: 61fb str r3, [r7, #28]
  98397. unsigned char* curdata = buf;
  98398. 8027992: 683b ldr r3, [r7, #0]
  98399. 8027994: 61bb str r3, [r7, #24]
  98400. unsigned char* enddata = NULL;
  98401. 8027996: 2300 movs r3, #0
  98402. 8027998: 623b str r3, [r7, #32]
  98403. int rc = 0;
  98404. 802799a: 2300 movs r3, #0
  98405. 802799c: 627b str r3, [r7, #36] @ 0x24
  98406. int mylen;
  98407. FUNC_ENTRY;
  98408. header.byte = readChar(&curdata);
  98409. 802799e: f107 0318 add.w r3, r7, #24
  98410. 80279a2: 4618 mov r0, r3
  98411. 80279a4: f000 f91d bl 8027be2 <readChar>
  98412. 80279a8: 4603 mov r3, r0
  98413. 80279aa: 773b strb r3, [r7, #28]
  98414. *dup = header.bits.dup;
  98415. 80279ac: 7f3b ldrb r3, [r7, #28]
  98416. 80279ae: f3c3 03c0 ubfx r3, r3, #3, #1
  98417. 80279b2: b2db uxtb r3, r3
  98418. 80279b4: 461a mov r2, r3
  98419. 80279b6: 68bb ldr r3, [r7, #8]
  98420. 80279b8: 701a strb r2, [r3, #0]
  98421. *packettype = header.bits.type;
  98422. 80279ba: 7f3b ldrb r3, [r7, #28]
  98423. 80279bc: f3c3 1303 ubfx r3, r3, #4, #4
  98424. 80279c0: b2db uxtb r3, r3
  98425. 80279c2: 461a mov r2, r3
  98426. 80279c4: 68fb ldr r3, [r7, #12]
  98427. 80279c6: 701a strb r2, [r3, #0]
  98428. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  98429. 80279c8: 69bb ldr r3, [r7, #24]
  98430. 80279ca: f107 0214 add.w r2, r7, #20
  98431. 80279ce: 4611 mov r1, r2
  98432. 80279d0: 4618 mov r0, r3
  98433. 80279d2: f000 f8d5 bl 8027b80 <MQTTPacket_decodeBuf>
  98434. 80279d6: 6278 str r0, [r7, #36] @ 0x24
  98435. 80279d8: 6a7a ldr r2, [r7, #36] @ 0x24
  98436. 80279da: 69bb ldr r3, [r7, #24]
  98437. 80279dc: 4413 add r3, r2
  98438. 80279de: 61bb str r3, [r7, #24]
  98439. enddata = curdata + mylen;
  98440. 80279e0: 69bb ldr r3, [r7, #24]
  98441. 80279e2: 697a ldr r2, [r7, #20]
  98442. 80279e4: 4413 add r3, r2
  98443. 80279e6: 623b str r3, [r7, #32]
  98444. if (enddata - curdata < 2)
  98445. 80279e8: 69bb ldr r3, [r7, #24]
  98446. 80279ea: 6a3a ldr r2, [r7, #32]
  98447. 80279ec: 1ad3 subs r3, r2, r3
  98448. 80279ee: 2b01 cmp r3, #1
  98449. 80279f0: dd0b ble.n 8027a0a <MQTTDeserialize_ack+0x8a>
  98450. goto exit;
  98451. *packetid = readInt(&curdata);
  98452. 80279f2: f107 0318 add.w r3, r7, #24
  98453. 80279f6: 4618 mov r0, r3
  98454. 80279f8: f000 f8d8 bl 8027bac <readInt>
  98455. 80279fc: 4603 mov r3, r0
  98456. 80279fe: b29a uxth r2, r3
  98457. 8027a00: 687b ldr r3, [r7, #4]
  98458. 8027a02: 801a strh r2, [r3, #0]
  98459. rc = 1;
  98460. 8027a04: 2301 movs r3, #1
  98461. 8027a06: 627b str r3, [r7, #36] @ 0x24
  98462. 8027a08: e000 b.n 8027a0c <MQTTDeserialize_ack+0x8c>
  98463. goto exit;
  98464. 8027a0a: bf00 nop
  98465. exit:
  98466. FUNC_EXIT_RC(rc);
  98467. return rc;
  98468. 8027a0c: 6a7b ldr r3, [r7, #36] @ 0x24
  98469. }
  98470. 8027a0e: 4618 mov r0, r3
  98471. 8027a10: 3728 adds r7, #40 @ 0x28
  98472. 8027a12: 46bd mov sp, r7
  98473. 8027a14: bd80 pop {r7, pc}
  98474. 08027a16 <MQTTPacket_encode>:
  98475. * @param buf the buffer into which the encoded data is written
  98476. * @param length the length to be encoded
  98477. * @return the number of bytes written to buffer
  98478. */
  98479. int MQTTPacket_encode(unsigned char* buf, int length)
  98480. {
  98481. 8027a16: b480 push {r7}
  98482. 8027a18: b085 sub sp, #20
  98483. 8027a1a: af00 add r7, sp, #0
  98484. 8027a1c: 6078 str r0, [r7, #4]
  98485. 8027a1e: 6039 str r1, [r7, #0]
  98486. int rc = 0;
  98487. 8027a20: 2300 movs r3, #0
  98488. 8027a22: 60fb str r3, [r7, #12]
  98489. FUNC_ENTRY;
  98490. do
  98491. {
  98492. char d = length % 128;
  98493. 8027a24: 683b ldr r3, [r7, #0]
  98494. 8027a26: 425a negs r2, r3
  98495. 8027a28: f003 037f and.w r3, r3, #127 @ 0x7f
  98496. 8027a2c: f002 027f and.w r2, r2, #127 @ 0x7f
  98497. 8027a30: bf58 it pl
  98498. 8027a32: 4253 negpl r3, r2
  98499. 8027a34: 72fb strb r3, [r7, #11]
  98500. length /= 128;
  98501. 8027a36: 683b ldr r3, [r7, #0]
  98502. 8027a38: 2b00 cmp r3, #0
  98503. 8027a3a: da00 bge.n 8027a3e <MQTTPacket_encode+0x28>
  98504. 8027a3c: 337f adds r3, #127 @ 0x7f
  98505. 8027a3e: 11db asrs r3, r3, #7
  98506. 8027a40: 603b str r3, [r7, #0]
  98507. /* if there are more digits to encode, set the top bit of this digit */
  98508. if (length > 0)
  98509. 8027a42: 683b ldr r3, [r7, #0]
  98510. 8027a44: 2b00 cmp r3, #0
  98511. 8027a46: dd03 ble.n 8027a50 <MQTTPacket_encode+0x3a>
  98512. d |= 0x80;
  98513. 8027a48: 7afb ldrb r3, [r7, #11]
  98514. 8027a4a: f063 037f orn r3, r3, #127 @ 0x7f
  98515. 8027a4e: 72fb strb r3, [r7, #11]
  98516. buf[rc++] = d;
  98517. 8027a50: 68fb ldr r3, [r7, #12]
  98518. 8027a52: 1c5a adds r2, r3, #1
  98519. 8027a54: 60fa str r2, [r7, #12]
  98520. 8027a56: 461a mov r2, r3
  98521. 8027a58: 687b ldr r3, [r7, #4]
  98522. 8027a5a: 4413 add r3, r2
  98523. 8027a5c: 7afa ldrb r2, [r7, #11]
  98524. 8027a5e: 701a strb r2, [r3, #0]
  98525. } while (length > 0);
  98526. 8027a60: 683b ldr r3, [r7, #0]
  98527. 8027a62: 2b00 cmp r3, #0
  98528. 8027a64: dcde bgt.n 8027a24 <MQTTPacket_encode+0xe>
  98529. FUNC_EXIT_RC(rc);
  98530. return rc;
  98531. 8027a66: 68fb ldr r3, [r7, #12]
  98532. }
  98533. 8027a68: 4618 mov r0, r3
  98534. 8027a6a: 3714 adds r7, #20
  98535. 8027a6c: 46bd mov sp, r7
  98536. 8027a6e: f85d 7b04 ldr.w r7, [sp], #4
  98537. 8027a72: 4770 bx lr
  98538. 08027a74 <MQTTPacket_decode>:
  98539. * @param getcharfn pointer to function to read the next character from the data source
  98540. * @param value the decoded length returned
  98541. * @return the number of bytes read from the socket
  98542. */
  98543. int MQTTPacket_decode(int (*getcharfn)(unsigned char*, int), int* value)
  98544. {
  98545. 8027a74: b580 push {r7, lr}
  98546. 8027a76: b086 sub sp, #24
  98547. 8027a78: af00 add r7, sp, #0
  98548. 8027a7a: 6078 str r0, [r7, #4]
  98549. 8027a7c: 6039 str r1, [r7, #0]
  98550. unsigned char c;
  98551. int multiplier = 1;
  98552. 8027a7e: 2301 movs r3, #1
  98553. 8027a80: 617b str r3, [r7, #20]
  98554. int len = 0;
  98555. 8027a82: 2300 movs r3, #0
  98556. 8027a84: 613b str r3, [r7, #16]
  98557. #define MAX_NO_OF_REMAINING_LENGTH_BYTES 4
  98558. FUNC_ENTRY;
  98559. *value = 0;
  98560. 8027a86: 683b ldr r3, [r7, #0]
  98561. 8027a88: 2200 movs r2, #0
  98562. 8027a8a: 601a str r2, [r3, #0]
  98563. do
  98564. {
  98565. int rc = MQTTPACKET_READ_ERROR;
  98566. 8027a8c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98567. 8027a90: 60fb str r3, [r7, #12]
  98568. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  98569. 8027a92: 693b ldr r3, [r7, #16]
  98570. 8027a94: 3301 adds r3, #1
  98571. 8027a96: 613b str r3, [r7, #16]
  98572. 8027a98: 693b ldr r3, [r7, #16]
  98573. 8027a9a: 2b04 cmp r3, #4
  98574. 8027a9c: dd03 ble.n 8027aa6 <MQTTPacket_decode+0x32>
  98575. {
  98576. rc = MQTTPACKET_READ_ERROR; /* bad data */
  98577. 8027a9e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98578. 8027aa2: 60fb str r3, [r7, #12]
  98579. goto exit;
  98580. 8027aa4: e01d b.n 8027ae2 <MQTTPacket_decode+0x6e>
  98581. }
  98582. rc = (*getcharfn)(&c, 1);
  98583. 8027aa6: f107 020b add.w r2, r7, #11
  98584. 8027aaa: 687b ldr r3, [r7, #4]
  98585. 8027aac: 2101 movs r1, #1
  98586. 8027aae: 4610 mov r0, r2
  98587. 8027ab0: 4798 blx r3
  98588. 8027ab2: 60f8 str r0, [r7, #12]
  98589. if (rc != 1)
  98590. 8027ab4: 68fb ldr r3, [r7, #12]
  98591. 8027ab6: 2b01 cmp r3, #1
  98592. 8027ab8: d112 bne.n 8027ae0 <MQTTPacket_decode+0x6c>
  98593. goto exit;
  98594. *value += (c & 127) * multiplier;
  98595. 8027aba: 683b ldr r3, [r7, #0]
  98596. 8027abc: 681a ldr r2, [r3, #0]
  98597. 8027abe: 7afb ldrb r3, [r7, #11]
  98598. 8027ac0: f003 037f and.w r3, r3, #127 @ 0x7f
  98599. 8027ac4: 6979 ldr r1, [r7, #20]
  98600. 8027ac6: fb01 f303 mul.w r3, r1, r3
  98601. 8027aca: 441a add r2, r3
  98602. 8027acc: 683b ldr r3, [r7, #0]
  98603. 8027ace: 601a str r2, [r3, #0]
  98604. multiplier *= 128;
  98605. 8027ad0: 697b ldr r3, [r7, #20]
  98606. 8027ad2: 01db lsls r3, r3, #7
  98607. 8027ad4: 617b str r3, [r7, #20]
  98608. } while ((c & 128) != 0);
  98609. 8027ad6: 7afb ldrb r3, [r7, #11]
  98610. 8027ad8: b25b sxtb r3, r3
  98611. 8027ada: 2b00 cmp r3, #0
  98612. 8027adc: dbd6 blt.n 8027a8c <MQTTPacket_decode+0x18>
  98613. exit:
  98614. 8027ade: e000 b.n 8027ae2 <MQTTPacket_decode+0x6e>
  98615. goto exit;
  98616. 8027ae0: bf00 nop
  98617. FUNC_EXIT_RC(len);
  98618. return len;
  98619. 8027ae2: 693b ldr r3, [r7, #16]
  98620. }
  98621. 8027ae4: 4618 mov r0, r3
  98622. 8027ae6: 3718 adds r7, #24
  98623. 8027ae8: 46bd mov sp, r7
  98624. 8027aea: bd80 pop {r7, pc}
  98625. 08027aec <MQTTPacket_len>:
  98626. int MQTTPacket_len(int rem_len)
  98627. {
  98628. 8027aec: b480 push {r7}
  98629. 8027aee: b083 sub sp, #12
  98630. 8027af0: af00 add r7, sp, #0
  98631. 8027af2: 6078 str r0, [r7, #4]
  98632. rem_len += 1; /* header byte */
  98633. 8027af4: 687b ldr r3, [r7, #4]
  98634. 8027af6: 3301 adds r3, #1
  98635. 8027af8: 607b str r3, [r7, #4]
  98636. /* now remaining_length field */
  98637. if (rem_len < 128)
  98638. 8027afa: 687b ldr r3, [r7, #4]
  98639. 8027afc: 2b7f cmp r3, #127 @ 0x7f
  98640. 8027afe: dc03 bgt.n 8027b08 <MQTTPacket_len+0x1c>
  98641. rem_len += 1;
  98642. 8027b00: 687b ldr r3, [r7, #4]
  98643. 8027b02: 3301 adds r3, #1
  98644. 8027b04: 607b str r3, [r7, #4]
  98645. 8027b06: e012 b.n 8027b2e <MQTTPacket_len+0x42>
  98646. else if (rem_len < 16384)
  98647. 8027b08: 687b ldr r3, [r7, #4]
  98648. 8027b0a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  98649. 8027b0e: da03 bge.n 8027b18 <MQTTPacket_len+0x2c>
  98650. rem_len += 2;
  98651. 8027b10: 687b ldr r3, [r7, #4]
  98652. 8027b12: 3302 adds r3, #2
  98653. 8027b14: 607b str r3, [r7, #4]
  98654. 8027b16: e00a b.n 8027b2e <MQTTPacket_len+0x42>
  98655. else if (rem_len < 2097151)
  98656. 8027b18: 687b ldr r3, [r7, #4]
  98657. 8027b1a: 4a08 ldr r2, [pc, #32] @ (8027b3c <MQTTPacket_len+0x50>)
  98658. 8027b1c: 4293 cmp r3, r2
  98659. 8027b1e: dc03 bgt.n 8027b28 <MQTTPacket_len+0x3c>
  98660. rem_len += 3;
  98661. 8027b20: 687b ldr r3, [r7, #4]
  98662. 8027b22: 3303 adds r3, #3
  98663. 8027b24: 607b str r3, [r7, #4]
  98664. 8027b26: e002 b.n 8027b2e <MQTTPacket_len+0x42>
  98665. else
  98666. rem_len += 4;
  98667. 8027b28: 687b ldr r3, [r7, #4]
  98668. 8027b2a: 3304 adds r3, #4
  98669. 8027b2c: 607b str r3, [r7, #4]
  98670. return rem_len;
  98671. 8027b2e: 687b ldr r3, [r7, #4]
  98672. }
  98673. 8027b30: 4618 mov r0, r3
  98674. 8027b32: 370c adds r7, #12
  98675. 8027b34: 46bd mov sp, r7
  98676. 8027b36: f85d 7b04 ldr.w r7, [sp], #4
  98677. 8027b3a: 4770 bx lr
  98678. 8027b3c: 001ffffe .word 0x001ffffe
  98679. 08027b40 <bufchar>:
  98680. static unsigned char* bufptr;
  98681. int bufchar(unsigned char* c, int count)
  98682. {
  98683. 8027b40: b480 push {r7}
  98684. 8027b42: b085 sub sp, #20
  98685. 8027b44: af00 add r7, sp, #0
  98686. 8027b46: 6078 str r0, [r7, #4]
  98687. 8027b48: 6039 str r1, [r7, #0]
  98688. int i;
  98689. for (i = 0; i < count; ++i)
  98690. 8027b4a: 2300 movs r3, #0
  98691. 8027b4c: 60fb str r3, [r7, #12]
  98692. 8027b4e: e00a b.n 8027b66 <bufchar+0x26>
  98693. *c = *bufptr++;
  98694. 8027b50: 4b0a ldr r3, [pc, #40] @ (8027b7c <bufchar+0x3c>)
  98695. 8027b52: 681b ldr r3, [r3, #0]
  98696. 8027b54: 1c5a adds r2, r3, #1
  98697. 8027b56: 4909 ldr r1, [pc, #36] @ (8027b7c <bufchar+0x3c>)
  98698. 8027b58: 600a str r2, [r1, #0]
  98699. 8027b5a: 781a ldrb r2, [r3, #0]
  98700. 8027b5c: 687b ldr r3, [r7, #4]
  98701. 8027b5e: 701a strb r2, [r3, #0]
  98702. for (i = 0; i < count; ++i)
  98703. 8027b60: 68fb ldr r3, [r7, #12]
  98704. 8027b62: 3301 adds r3, #1
  98705. 8027b64: 60fb str r3, [r7, #12]
  98706. 8027b66: 68fa ldr r2, [r7, #12]
  98707. 8027b68: 683b ldr r3, [r7, #0]
  98708. 8027b6a: 429a cmp r2, r3
  98709. 8027b6c: dbf0 blt.n 8027b50 <bufchar+0x10>
  98710. return count;
  98711. 8027b6e: 683b ldr r3, [r7, #0]
  98712. }
  98713. 8027b70: 4618 mov r0, r3
  98714. 8027b72: 3714 adds r7, #20
  98715. 8027b74: 46bd mov sp, r7
  98716. 8027b76: f85d 7b04 ldr.w r7, [sp], #4
  98717. 8027b7a: 4770 bx lr
  98718. 8027b7c: 2402b038 .word 0x2402b038
  98719. 08027b80 <MQTTPacket_decodeBuf>:
  98720. int MQTTPacket_decodeBuf(unsigned char* buf, int* value)
  98721. {
  98722. 8027b80: b580 push {r7, lr}
  98723. 8027b82: b082 sub sp, #8
  98724. 8027b84: af00 add r7, sp, #0
  98725. 8027b86: 6078 str r0, [r7, #4]
  98726. 8027b88: 6039 str r1, [r7, #0]
  98727. bufptr = buf;
  98728. 8027b8a: 4a06 ldr r2, [pc, #24] @ (8027ba4 <MQTTPacket_decodeBuf+0x24>)
  98729. 8027b8c: 687b ldr r3, [r7, #4]
  98730. 8027b8e: 6013 str r3, [r2, #0]
  98731. return MQTTPacket_decode(bufchar, value);
  98732. 8027b90: 6839 ldr r1, [r7, #0]
  98733. 8027b92: 4805 ldr r0, [pc, #20] @ (8027ba8 <MQTTPacket_decodeBuf+0x28>)
  98734. 8027b94: f7ff ff6e bl 8027a74 <MQTTPacket_decode>
  98735. 8027b98: 4603 mov r3, r0
  98736. }
  98737. 8027b9a: 4618 mov r0, r3
  98738. 8027b9c: 3708 adds r7, #8
  98739. 8027b9e: 46bd mov sp, r7
  98740. 8027ba0: bd80 pop {r7, pc}
  98741. 8027ba2: bf00 nop
  98742. 8027ba4: 2402b038 .word 0x2402b038
  98743. 8027ba8: 08027b41 .word 0x08027b41
  98744. 08027bac <readInt>:
  98745. * Calculates an integer from two bytes read from the input buffer
  98746. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  98747. * @return the integer value calculated
  98748. */
  98749. int readInt(unsigned char** pptr)
  98750. {
  98751. 8027bac: b480 push {r7}
  98752. 8027bae: b085 sub sp, #20
  98753. 8027bb0: af00 add r7, sp, #0
  98754. 8027bb2: 6078 str r0, [r7, #4]
  98755. unsigned char* ptr = *pptr;
  98756. 8027bb4: 687b ldr r3, [r7, #4]
  98757. 8027bb6: 681b ldr r3, [r3, #0]
  98758. 8027bb8: 60fb str r3, [r7, #12]
  98759. int len = 256*(*ptr) + (*(ptr+1));
  98760. 8027bba: 68fb ldr r3, [r7, #12]
  98761. 8027bbc: 781b ldrb r3, [r3, #0]
  98762. 8027bbe: 021b lsls r3, r3, #8
  98763. 8027bc0: 68fa ldr r2, [r7, #12]
  98764. 8027bc2: 3201 adds r2, #1
  98765. 8027bc4: 7812 ldrb r2, [r2, #0]
  98766. 8027bc6: 4413 add r3, r2
  98767. 8027bc8: 60bb str r3, [r7, #8]
  98768. *pptr += 2;
  98769. 8027bca: 687b ldr r3, [r7, #4]
  98770. 8027bcc: 681b ldr r3, [r3, #0]
  98771. 8027bce: 1c9a adds r2, r3, #2
  98772. 8027bd0: 687b ldr r3, [r7, #4]
  98773. 8027bd2: 601a str r2, [r3, #0]
  98774. return len;
  98775. 8027bd4: 68bb ldr r3, [r7, #8]
  98776. }
  98777. 8027bd6: 4618 mov r0, r3
  98778. 8027bd8: 3714 adds r7, #20
  98779. 8027bda: 46bd mov sp, r7
  98780. 8027bdc: f85d 7b04 ldr.w r7, [sp], #4
  98781. 8027be0: 4770 bx lr
  98782. 08027be2 <readChar>:
  98783. * Reads one character from the input buffer.
  98784. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  98785. * @return the character read
  98786. */
  98787. char readChar(unsigned char** pptr)
  98788. {
  98789. 8027be2: b480 push {r7}
  98790. 8027be4: b085 sub sp, #20
  98791. 8027be6: af00 add r7, sp, #0
  98792. 8027be8: 6078 str r0, [r7, #4]
  98793. char c = **pptr;
  98794. 8027bea: 687b ldr r3, [r7, #4]
  98795. 8027bec: 681b ldr r3, [r3, #0]
  98796. 8027bee: 781b ldrb r3, [r3, #0]
  98797. 8027bf0: 73fb strb r3, [r7, #15]
  98798. (*pptr)++;
  98799. 8027bf2: 687b ldr r3, [r7, #4]
  98800. 8027bf4: 681b ldr r3, [r3, #0]
  98801. 8027bf6: 1c5a adds r2, r3, #1
  98802. 8027bf8: 687b ldr r3, [r7, #4]
  98803. 8027bfa: 601a str r2, [r3, #0]
  98804. return c;
  98805. 8027bfc: 7bfb ldrb r3, [r7, #15]
  98806. }
  98807. 8027bfe: 4618 mov r0, r3
  98808. 8027c00: 3714 adds r7, #20
  98809. 8027c02: 46bd mov sp, r7
  98810. 8027c04: f85d 7b04 ldr.w r7, [sp], #4
  98811. 8027c08: 4770 bx lr
  98812. 08027c0a <writeChar>:
  98813. * Writes one character to an output buffer.
  98814. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  98815. * @param c the character to write
  98816. */
  98817. void writeChar(unsigned char** pptr, char c)
  98818. {
  98819. 8027c0a: b480 push {r7}
  98820. 8027c0c: b083 sub sp, #12
  98821. 8027c0e: af00 add r7, sp, #0
  98822. 8027c10: 6078 str r0, [r7, #4]
  98823. 8027c12: 460b mov r3, r1
  98824. 8027c14: 70fb strb r3, [r7, #3]
  98825. **pptr = c;
  98826. 8027c16: 687b ldr r3, [r7, #4]
  98827. 8027c18: 681b ldr r3, [r3, #0]
  98828. 8027c1a: 78fa ldrb r2, [r7, #3]
  98829. 8027c1c: 701a strb r2, [r3, #0]
  98830. (*pptr)++;
  98831. 8027c1e: 687b ldr r3, [r7, #4]
  98832. 8027c20: 681b ldr r3, [r3, #0]
  98833. 8027c22: 1c5a adds r2, r3, #1
  98834. 8027c24: 687b ldr r3, [r7, #4]
  98835. 8027c26: 601a str r2, [r3, #0]
  98836. }
  98837. 8027c28: bf00 nop
  98838. 8027c2a: 370c adds r7, #12
  98839. 8027c2c: 46bd mov sp, r7
  98840. 8027c2e: f85d 7b04 ldr.w r7, [sp], #4
  98841. 8027c32: 4770 bx lr
  98842. 08027c34 <writeInt>:
  98843. * Writes an integer as 2 bytes to an output buffer.
  98844. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  98845. * @param anInt the integer to write
  98846. */
  98847. void writeInt(unsigned char** pptr, int anInt)
  98848. {
  98849. 8027c34: b480 push {r7}
  98850. 8027c36: b083 sub sp, #12
  98851. 8027c38: af00 add r7, sp, #0
  98852. 8027c3a: 6078 str r0, [r7, #4]
  98853. 8027c3c: 6039 str r1, [r7, #0]
  98854. **pptr = (unsigned char)(anInt / 256);
  98855. 8027c3e: 683b ldr r3, [r7, #0]
  98856. 8027c40: 2b00 cmp r3, #0
  98857. 8027c42: da00 bge.n 8027c46 <writeInt+0x12>
  98858. 8027c44: 33ff adds r3, #255 @ 0xff
  98859. 8027c46: 121b asrs r3, r3, #8
  98860. 8027c48: 461a mov r2, r3
  98861. 8027c4a: 687b ldr r3, [r7, #4]
  98862. 8027c4c: 681b ldr r3, [r3, #0]
  98863. 8027c4e: b2d2 uxtb r2, r2
  98864. 8027c50: 701a strb r2, [r3, #0]
  98865. (*pptr)++;
  98866. 8027c52: 687b ldr r3, [r7, #4]
  98867. 8027c54: 681b ldr r3, [r3, #0]
  98868. 8027c56: 1c5a adds r2, r3, #1
  98869. 8027c58: 687b ldr r3, [r7, #4]
  98870. 8027c5a: 601a str r2, [r3, #0]
  98871. **pptr = (unsigned char)(anInt % 256);
  98872. 8027c5c: 683b ldr r3, [r7, #0]
  98873. 8027c5e: 425a negs r2, r3
  98874. 8027c60: b2db uxtb r3, r3
  98875. 8027c62: b2d2 uxtb r2, r2
  98876. 8027c64: bf58 it pl
  98877. 8027c66: 4253 negpl r3, r2
  98878. 8027c68: 687a ldr r2, [r7, #4]
  98879. 8027c6a: 6812 ldr r2, [r2, #0]
  98880. 8027c6c: b2db uxtb r3, r3
  98881. 8027c6e: 7013 strb r3, [r2, #0]
  98882. (*pptr)++;
  98883. 8027c70: 687b ldr r3, [r7, #4]
  98884. 8027c72: 681b ldr r3, [r3, #0]
  98885. 8027c74: 1c5a adds r2, r3, #1
  98886. 8027c76: 687b ldr r3, [r7, #4]
  98887. 8027c78: 601a str r2, [r3, #0]
  98888. }
  98889. 8027c7a: bf00 nop
  98890. 8027c7c: 370c adds r7, #12
  98891. 8027c7e: 46bd mov sp, r7
  98892. 8027c80: f85d 7b04 ldr.w r7, [sp], #4
  98893. 8027c84: 4770 bx lr
  98894. 08027c86 <writeCString>:
  98895. * Writes a "UTF" string to an output buffer. Converts C string to length-delimited.
  98896. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  98897. * @param string the C string to write
  98898. */
  98899. void writeCString(unsigned char** pptr, const char* string)
  98900. {
  98901. 8027c86: b580 push {r7, lr}
  98902. 8027c88: b084 sub sp, #16
  98903. 8027c8a: af00 add r7, sp, #0
  98904. 8027c8c: 6078 str r0, [r7, #4]
  98905. 8027c8e: 6039 str r1, [r7, #0]
  98906. int len = strlen(string);
  98907. 8027c90: 6838 ldr r0, [r7, #0]
  98908. 8027c92: f7d8 fb85 bl 80003a0 <strlen>
  98909. 8027c96: 4603 mov r3, r0
  98910. 8027c98: 60fb str r3, [r7, #12]
  98911. writeInt(pptr, len);
  98912. 8027c9a: 68f9 ldr r1, [r7, #12]
  98913. 8027c9c: 6878 ldr r0, [r7, #4]
  98914. 8027c9e: f7ff ffc9 bl 8027c34 <writeInt>
  98915. memcpy(*pptr, string, len);
  98916. 8027ca2: 687b ldr r3, [r7, #4]
  98917. 8027ca4: 681b ldr r3, [r3, #0]
  98918. 8027ca6: 68fa ldr r2, [r7, #12]
  98919. 8027ca8: 6839 ldr r1, [r7, #0]
  98920. 8027caa: 4618 mov r0, r3
  98921. 8027cac: f002 f91f bl 8029eee <memcpy>
  98922. *pptr += len;
  98923. 8027cb0: 687b ldr r3, [r7, #4]
  98924. 8027cb2: 681a ldr r2, [r3, #0]
  98925. 8027cb4: 68fb ldr r3, [r7, #12]
  98926. 8027cb6: 441a add r2, r3
  98927. 8027cb8: 687b ldr r3, [r7, #4]
  98928. 8027cba: 601a str r2, [r3, #0]
  98929. }
  98930. 8027cbc: bf00 nop
  98931. 8027cbe: 3710 adds r7, #16
  98932. 8027cc0: 46bd mov sp, r7
  98933. 8027cc2: bd80 pop {r7, pc}
  98934. 08027cc4 <writeMQTTString>:
  98935. return len;
  98936. }
  98937. void writeMQTTString(unsigned char** pptr, MQTTString mqttstring)
  98938. {
  98939. 8027cc4: b580 push {r7, lr}
  98940. 8027cc6: b084 sub sp, #16
  98941. 8027cc8: af00 add r7, sp, #0
  98942. 8027cca: 60f8 str r0, [r7, #12]
  98943. 8027ccc: 4638 mov r0, r7
  98944. 8027cce: e880 000e stmia.w r0, {r1, r2, r3}
  98945. if (mqttstring.lenstring.len > 0)
  98946. 8027cd2: 687b ldr r3, [r7, #4]
  98947. 8027cd4: 2b00 cmp r3, #0
  98948. 8027cd6: dd12 ble.n 8027cfe <writeMQTTString+0x3a>
  98949. {
  98950. writeInt(pptr, mqttstring.lenstring.len);
  98951. 8027cd8: 687b ldr r3, [r7, #4]
  98952. 8027cda: 4619 mov r1, r3
  98953. 8027cdc: 68f8 ldr r0, [r7, #12]
  98954. 8027cde: f7ff ffa9 bl 8027c34 <writeInt>
  98955. memcpy(*pptr, mqttstring.lenstring.data, mqttstring.lenstring.len);
  98956. 8027ce2: 68fb ldr r3, [r7, #12]
  98957. 8027ce4: 681b ldr r3, [r3, #0]
  98958. 8027ce6: 68b9 ldr r1, [r7, #8]
  98959. 8027ce8: 687a ldr r2, [r7, #4]
  98960. 8027cea: 4618 mov r0, r3
  98961. 8027cec: f002 f8ff bl 8029eee <memcpy>
  98962. *pptr += mqttstring.lenstring.len;
  98963. 8027cf0: 68fb ldr r3, [r7, #12]
  98964. 8027cf2: 681b ldr r3, [r3, #0]
  98965. 8027cf4: 687a ldr r2, [r7, #4]
  98966. 8027cf6: 441a add r2, r3
  98967. 8027cf8: 68fb ldr r3, [r7, #12]
  98968. 8027cfa: 601a str r2, [r3, #0]
  98969. }
  98970. else if (mqttstring.cstring)
  98971. writeCString(pptr, mqttstring.cstring);
  98972. else
  98973. writeInt(pptr, 0);
  98974. }
  98975. 8027cfc: e00c b.n 8027d18 <writeMQTTString+0x54>
  98976. else if (mqttstring.cstring)
  98977. 8027cfe: 683b ldr r3, [r7, #0]
  98978. 8027d00: 2b00 cmp r3, #0
  98979. 8027d02: d005 beq.n 8027d10 <writeMQTTString+0x4c>
  98980. writeCString(pptr, mqttstring.cstring);
  98981. 8027d04: 683b ldr r3, [r7, #0]
  98982. 8027d06: 4619 mov r1, r3
  98983. 8027d08: 68f8 ldr r0, [r7, #12]
  98984. 8027d0a: f7ff ffbc bl 8027c86 <writeCString>
  98985. }
  98986. 8027d0e: e003 b.n 8027d18 <writeMQTTString+0x54>
  98987. writeInt(pptr, 0);
  98988. 8027d10: 2100 movs r1, #0
  98989. 8027d12: 68f8 ldr r0, [r7, #12]
  98990. 8027d14: f7ff ff8e bl 8027c34 <writeInt>
  98991. }
  98992. 8027d18: bf00 nop
  98993. 8027d1a: 3710 adds r7, #16
  98994. 8027d1c: 46bd mov sp, r7
  98995. 8027d1e: bd80 pop {r7, pc}
  98996. 08027d20 <readMQTTLenString>:
  98997. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  98998. * @param enddata pointer to the end of the data: do not read beyond
  98999. * @return 1 if successful, 0 if not
  99000. */
  99001. int readMQTTLenString(MQTTString* mqttstring, unsigned char** pptr, unsigned char* enddata)
  99002. {
  99003. 8027d20: b580 push {r7, lr}
  99004. 8027d22: b086 sub sp, #24
  99005. 8027d24: af00 add r7, sp, #0
  99006. 8027d26: 60f8 str r0, [r7, #12]
  99007. 8027d28: 60b9 str r1, [r7, #8]
  99008. 8027d2a: 607a str r2, [r7, #4]
  99009. int rc = 0;
  99010. 8027d2c: 2300 movs r3, #0
  99011. 8027d2e: 617b str r3, [r7, #20]
  99012. FUNC_ENTRY;
  99013. /* the first two bytes are the length of the string */
  99014. if (enddata - (*pptr) > 1) /* enough length to read the integer? */
  99015. 8027d30: 68bb ldr r3, [r7, #8]
  99016. 8027d32: 681b ldr r3, [r3, #0]
  99017. 8027d34: 687a ldr r2, [r7, #4]
  99018. 8027d36: 1ad3 subs r3, r2, r3
  99019. 8027d38: 2b01 cmp r3, #1
  99020. 8027d3a: dd1a ble.n 8027d72 <readMQTTLenString+0x52>
  99021. {
  99022. mqttstring->lenstring.len = readInt(pptr); /* increments pptr to point past length */
  99023. 8027d3c: 68b8 ldr r0, [r7, #8]
  99024. 8027d3e: f7ff ff35 bl 8027bac <readInt>
  99025. 8027d42: 4602 mov r2, r0
  99026. 8027d44: 68fb ldr r3, [r7, #12]
  99027. 8027d46: 605a str r2, [r3, #4]
  99028. if (&(*pptr)[mqttstring->lenstring.len] <= enddata)
  99029. 8027d48: 68bb ldr r3, [r7, #8]
  99030. 8027d4a: 681b ldr r3, [r3, #0]
  99031. 8027d4c: 68fa ldr r2, [r7, #12]
  99032. 8027d4e: 6852 ldr r2, [r2, #4]
  99033. 8027d50: 4413 add r3, r2
  99034. 8027d52: 687a ldr r2, [r7, #4]
  99035. 8027d54: 429a cmp r2, r3
  99036. 8027d56: d30c bcc.n 8027d72 <readMQTTLenString+0x52>
  99037. {
  99038. mqttstring->lenstring.data = (char*)*pptr;
  99039. 8027d58: 68bb ldr r3, [r7, #8]
  99040. 8027d5a: 681a ldr r2, [r3, #0]
  99041. 8027d5c: 68fb ldr r3, [r7, #12]
  99042. 8027d5e: 609a str r2, [r3, #8]
  99043. *pptr += mqttstring->lenstring.len;
  99044. 8027d60: 68bb ldr r3, [r7, #8]
  99045. 8027d62: 681b ldr r3, [r3, #0]
  99046. 8027d64: 68fa ldr r2, [r7, #12]
  99047. 8027d66: 6852 ldr r2, [r2, #4]
  99048. 8027d68: 441a add r2, r3
  99049. 8027d6a: 68bb ldr r3, [r7, #8]
  99050. 8027d6c: 601a str r2, [r3, #0]
  99051. rc = 1;
  99052. 8027d6e: 2301 movs r3, #1
  99053. 8027d70: 617b str r3, [r7, #20]
  99054. }
  99055. }
  99056. mqttstring->cstring = NULL;
  99057. 8027d72: 68fb ldr r3, [r7, #12]
  99058. 8027d74: 2200 movs r2, #0
  99059. 8027d76: 601a str r2, [r3, #0]
  99060. FUNC_EXIT_RC(rc);
  99061. return rc;
  99062. 8027d78: 697b ldr r3, [r7, #20]
  99063. }
  99064. 8027d7a: 4618 mov r0, r3
  99065. 8027d7c: 3718 adds r7, #24
  99066. 8027d7e: 46bd mov sp, r7
  99067. 8027d80: bd80 pop {r7, pc}
  99068. 08027d82 <MQTTstrlen>:
  99069. * Return the length of the MQTTstring - C string if there is one, otherwise the length delimited string
  99070. * @param mqttstring the string to return the length of
  99071. * @return the length of the string
  99072. */
  99073. int MQTTstrlen(MQTTString mqttstring)
  99074. {
  99075. 8027d82: b580 push {r7, lr}
  99076. 8027d84: b086 sub sp, #24
  99077. 8027d86: af00 add r7, sp, #0
  99078. 8027d88: 1d3b adds r3, r7, #4
  99079. 8027d8a: e883 0007 stmia.w r3, {r0, r1, r2}
  99080. int rc = 0;
  99081. 8027d8e: 2300 movs r3, #0
  99082. 8027d90: 617b str r3, [r7, #20]
  99083. if (mqttstring.cstring)
  99084. 8027d92: 687b ldr r3, [r7, #4]
  99085. 8027d94: 2b00 cmp r3, #0
  99086. 8027d96: d006 beq.n 8027da6 <MQTTstrlen+0x24>
  99087. rc = strlen(mqttstring.cstring);
  99088. 8027d98: 687b ldr r3, [r7, #4]
  99089. 8027d9a: 4618 mov r0, r3
  99090. 8027d9c: f7d8 fb00 bl 80003a0 <strlen>
  99091. 8027da0: 4603 mov r3, r0
  99092. 8027da2: 617b str r3, [r7, #20]
  99093. 8027da4: e001 b.n 8027daa <MQTTstrlen+0x28>
  99094. else
  99095. rc = mqttstring.lenstring.len;
  99096. 8027da6: 68bb ldr r3, [r7, #8]
  99097. 8027da8: 617b str r3, [r7, #20]
  99098. return rc;
  99099. 8027daa: 697b ldr r3, [r7, #20]
  99100. }
  99101. 8027dac: 4618 mov r0, r3
  99102. 8027dae: 3718 adds r7, #24
  99103. 8027db0: 46bd mov sp, r7
  99104. 8027db2: bd80 pop {r7, pc}
  99105. 08027db4 <MQTTPacket_equals>:
  99106. * @param a the MQTTString to compare
  99107. * @param bptr the C string to compare
  99108. * @return boolean - equal or not
  99109. */
  99110. int MQTTPacket_equals(MQTTString* a, char* bptr)
  99111. {
  99112. 8027db4: b580 push {r7, lr}
  99113. 8027db6: b086 sub sp, #24
  99114. 8027db8: af00 add r7, sp, #0
  99115. 8027dba: 6078 str r0, [r7, #4]
  99116. 8027dbc: 6039 str r1, [r7, #0]
  99117. int alen = 0,
  99118. 8027dbe: 2300 movs r3, #0
  99119. 8027dc0: 617b str r3, [r7, #20]
  99120. blen = 0;
  99121. 8027dc2: 2300 movs r3, #0
  99122. 8027dc4: 60fb str r3, [r7, #12]
  99123. char *aptr;
  99124. if (a->cstring)
  99125. 8027dc6: 687b ldr r3, [r7, #4]
  99126. 8027dc8: 681b ldr r3, [r3, #0]
  99127. 8027dca: 2b00 cmp r3, #0
  99128. 8027dcc: d00a beq.n 8027de4 <MQTTPacket_equals+0x30>
  99129. {
  99130. aptr = a->cstring;
  99131. 8027dce: 687b ldr r3, [r7, #4]
  99132. 8027dd0: 681b ldr r3, [r3, #0]
  99133. 8027dd2: 613b str r3, [r7, #16]
  99134. alen = strlen(a->cstring);
  99135. 8027dd4: 687b ldr r3, [r7, #4]
  99136. 8027dd6: 681b ldr r3, [r3, #0]
  99137. 8027dd8: 4618 mov r0, r3
  99138. 8027dda: f7d8 fae1 bl 80003a0 <strlen>
  99139. 8027dde: 4603 mov r3, r0
  99140. 8027de0: 617b str r3, [r7, #20]
  99141. 8027de2: e005 b.n 8027df0 <MQTTPacket_equals+0x3c>
  99142. }
  99143. else
  99144. {
  99145. aptr = a->lenstring.data;
  99146. 8027de4: 687b ldr r3, [r7, #4]
  99147. 8027de6: 689b ldr r3, [r3, #8]
  99148. 8027de8: 613b str r3, [r7, #16]
  99149. alen = a->lenstring.len;
  99150. 8027dea: 687b ldr r3, [r7, #4]
  99151. 8027dec: 685b ldr r3, [r3, #4]
  99152. 8027dee: 617b str r3, [r7, #20]
  99153. }
  99154. blen = strlen(bptr);
  99155. 8027df0: 6838 ldr r0, [r7, #0]
  99156. 8027df2: f7d8 fad5 bl 80003a0 <strlen>
  99157. 8027df6: 4603 mov r3, r0
  99158. 8027df8: 60fb str r3, [r7, #12]
  99159. return (alen == blen) && (strncmp(aptr, bptr, alen) == 0);
  99160. 8027dfa: 697a ldr r2, [r7, #20]
  99161. 8027dfc: 68fb ldr r3, [r7, #12]
  99162. 8027dfe: 429a cmp r2, r3
  99163. 8027e00: d10a bne.n 8027e18 <MQTTPacket_equals+0x64>
  99164. 8027e02: 697b ldr r3, [r7, #20]
  99165. 8027e04: 461a mov r2, r3
  99166. 8027e06: 6839 ldr r1, [r7, #0]
  99167. 8027e08: 6938 ldr r0, [r7, #16]
  99168. 8027e0a: f001 ff81 bl 8029d10 <strncmp>
  99169. 8027e0e: 4603 mov r3, r0
  99170. 8027e10: 2b00 cmp r3, #0
  99171. 8027e12: d101 bne.n 8027e18 <MQTTPacket_equals+0x64>
  99172. 8027e14: 2301 movs r3, #1
  99173. 8027e16: e000 b.n 8027e1a <MQTTPacket_equals+0x66>
  99174. 8027e18: 2300 movs r3, #0
  99175. }
  99176. 8027e1a: 4618 mov r0, r3
  99177. 8027e1c: 3718 adds r7, #24
  99178. 8027e1e: 46bd mov sp, r7
  99179. 8027e20: bd80 pop {r7, pc}
  99180. 08027e22 <MQTTSerialize_publishLength>:
  99181. * @param topicName the topic name to be used in the publish
  99182. * @param payloadlen the length of the payload to be sent
  99183. * @return the length of buffer needed to contain the serialized version of the packet
  99184. */
  99185. int MQTTSerialize_publishLength(int qos, MQTTString topicName, int payloadlen)
  99186. {
  99187. 8027e22: b580 push {r7, lr}
  99188. 8027e24: b086 sub sp, #24
  99189. 8027e26: af00 add r7, sp, #0
  99190. 8027e28: 60f8 str r0, [r7, #12]
  99191. 8027e2a: 4638 mov r0, r7
  99192. 8027e2c: e880 000e stmia.w r0, {r1, r2, r3}
  99193. int len = 0;
  99194. 8027e30: 2300 movs r3, #0
  99195. 8027e32: 617b str r3, [r7, #20]
  99196. len += 2 + MQTTstrlen(topicName) + payloadlen;
  99197. 8027e34: 463b mov r3, r7
  99198. 8027e36: e893 0007 ldmia.w r3, {r0, r1, r2}
  99199. 8027e3a: f7ff ffa2 bl 8027d82 <MQTTstrlen>
  99200. 8027e3e: 4603 mov r3, r0
  99201. 8027e40: 1c9a adds r2, r3, #2
  99202. 8027e42: 6a3b ldr r3, [r7, #32]
  99203. 8027e44: 4413 add r3, r2
  99204. 8027e46: 697a ldr r2, [r7, #20]
  99205. 8027e48: 4413 add r3, r2
  99206. 8027e4a: 617b str r3, [r7, #20]
  99207. if (qos > 0)
  99208. 8027e4c: 68fb ldr r3, [r7, #12]
  99209. 8027e4e: 2b00 cmp r3, #0
  99210. 8027e50: dd02 ble.n 8027e58 <MQTTSerialize_publishLength+0x36>
  99211. len += 2; /* packetid */
  99212. 8027e52: 697b ldr r3, [r7, #20]
  99213. 8027e54: 3302 adds r3, #2
  99214. 8027e56: 617b str r3, [r7, #20]
  99215. return len;
  99216. 8027e58: 697b ldr r3, [r7, #20]
  99217. }
  99218. 8027e5a: 4618 mov r0, r3
  99219. 8027e5c: 3718 adds r7, #24
  99220. 8027e5e: 46bd mov sp, r7
  99221. 8027e60: bd80 pop {r7, pc}
  99222. 08027e62 <MQTTSerialize_publish>:
  99223. * @param payloadlen integer - the length of the MQTT payload
  99224. * @return the length of the serialized data. <= 0 indicates error
  99225. */
  99226. int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid,
  99227. MQTTString topicName, unsigned char* payload, int payloadlen)
  99228. {
  99229. 8027e62: b580 push {r7, lr}
  99230. 8027e64: b08a sub sp, #40 @ 0x28
  99231. 8027e66: af02 add r7, sp, #8
  99232. 8027e68: 60f8 str r0, [r7, #12]
  99233. 8027e6a: 60b9 str r1, [r7, #8]
  99234. 8027e6c: 603b str r3, [r7, #0]
  99235. 8027e6e: 4613 mov r3, r2
  99236. 8027e70: 71fb strb r3, [r7, #7]
  99237. unsigned char *ptr = buf;
  99238. 8027e72: 68fb ldr r3, [r7, #12]
  99239. 8027e74: 617b str r3, [r7, #20]
  99240. MQTTHeader header = {0};
  99241. 8027e76: 2300 movs r3, #0
  99242. 8027e78: 613b str r3, [r7, #16]
  99243. int rem_len = 0;
  99244. 8027e7a: 2300 movs r3, #0
  99245. 8027e7c: 61bb str r3, [r7, #24]
  99246. int rc = 0;
  99247. 8027e7e: 2300 movs r3, #0
  99248. 8027e80: 61fb str r3, [r7, #28]
  99249. FUNC_ENTRY;
  99250. if (MQTTPacket_len(rem_len = MQTTSerialize_publishLength(qos, topicName, payloadlen)) > buflen)
  99251. 8027e82: 6c3b ldr r3, [r7, #64] @ 0x40
  99252. 8027e84: 9300 str r3, [sp, #0]
  99253. 8027e86: f107 0330 add.w r3, r7, #48 @ 0x30
  99254. 8027e8a: cb0e ldmia r3, {r1, r2, r3}
  99255. 8027e8c: 6838 ldr r0, [r7, #0]
  99256. 8027e8e: f7ff ffc8 bl 8027e22 <MQTTSerialize_publishLength>
  99257. 8027e92: 61b8 str r0, [r7, #24]
  99258. 8027e94: 69b8 ldr r0, [r7, #24]
  99259. 8027e96: f7ff fe29 bl 8027aec <MQTTPacket_len>
  99260. 8027e9a: 4602 mov r2, r0
  99261. 8027e9c: 68bb ldr r3, [r7, #8]
  99262. 8027e9e: 4293 cmp r3, r2
  99263. 8027ea0: da03 bge.n 8027eaa <MQTTSerialize_publish+0x48>
  99264. {
  99265. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  99266. 8027ea2: f06f 0301 mvn.w r3, #1
  99267. 8027ea6: 61fb str r3, [r7, #28]
  99268. goto exit;
  99269. 8027ea8: e04c b.n 8027f44 <MQTTSerialize_publish+0xe2>
  99270. }
  99271. header.bits.type = PUBLISH;
  99272. 8027eaa: 7c3b ldrb r3, [r7, #16]
  99273. 8027eac: 2203 movs r2, #3
  99274. 8027eae: f362 1307 bfi r3, r2, #4, #4
  99275. 8027eb2: 743b strb r3, [r7, #16]
  99276. header.bits.dup = dup;
  99277. 8027eb4: 79fb ldrb r3, [r7, #7]
  99278. 8027eb6: f003 0301 and.w r3, r3, #1
  99279. 8027eba: b2da uxtb r2, r3
  99280. 8027ebc: 7c3b ldrb r3, [r7, #16]
  99281. 8027ebe: f362 03c3 bfi r3, r2, #3, #1
  99282. 8027ec2: 743b strb r3, [r7, #16]
  99283. header.bits.qos = qos;
  99284. 8027ec4: 683b ldr r3, [r7, #0]
  99285. 8027ec6: f003 0303 and.w r3, r3, #3
  99286. 8027eca: b2da uxtb r2, r3
  99287. 8027ecc: 7c3b ldrb r3, [r7, #16]
  99288. 8027ece: f362 0342 bfi r3, r2, #1, #2
  99289. 8027ed2: 743b strb r3, [r7, #16]
  99290. header.bits.retain = retained;
  99291. 8027ed4: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  99292. 8027ed8: f003 0301 and.w r3, r3, #1
  99293. 8027edc: b2da uxtb r2, r3
  99294. 8027ede: 7c3b ldrb r3, [r7, #16]
  99295. 8027ee0: f362 0300 bfi r3, r2, #0, #1
  99296. 8027ee4: 743b strb r3, [r7, #16]
  99297. writeChar(&ptr, header.byte); /* write header */
  99298. 8027ee6: 7c3a ldrb r2, [r7, #16]
  99299. 8027ee8: f107 0314 add.w r3, r7, #20
  99300. 8027eec: 4611 mov r1, r2
  99301. 8027eee: 4618 mov r0, r3
  99302. 8027ef0: f7ff fe8b bl 8027c0a <writeChar>
  99303. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  99304. 8027ef4: 697b ldr r3, [r7, #20]
  99305. 8027ef6: 69b9 ldr r1, [r7, #24]
  99306. 8027ef8: 4618 mov r0, r3
  99307. 8027efa: f7ff fd8c bl 8027a16 <MQTTPacket_encode>
  99308. 8027efe: 4602 mov r2, r0
  99309. 8027f00: 697b ldr r3, [r7, #20]
  99310. 8027f02: 4413 add r3, r2
  99311. 8027f04: 617b str r3, [r7, #20]
  99312. writeMQTTString(&ptr, topicName);
  99313. 8027f06: f107 0014 add.w r0, r7, #20
  99314. 8027f0a: f107 0330 add.w r3, r7, #48 @ 0x30
  99315. 8027f0e: cb0e ldmia r3, {r1, r2, r3}
  99316. 8027f10: f7ff fed8 bl 8027cc4 <writeMQTTString>
  99317. if (qos > 0)
  99318. 8027f14: 683b ldr r3, [r7, #0]
  99319. 8027f16: 2b00 cmp r3, #0
  99320. 8027f18: dd06 ble.n 8027f28 <MQTTSerialize_publish+0xc6>
  99321. writeInt(&ptr, packetid);
  99322. 8027f1a: 8dba ldrh r2, [r7, #44] @ 0x2c
  99323. 8027f1c: f107 0314 add.w r3, r7, #20
  99324. 8027f20: 4611 mov r1, r2
  99325. 8027f22: 4618 mov r0, r3
  99326. 8027f24: f7ff fe86 bl 8027c34 <writeInt>
  99327. memcpy(ptr, payload, payloadlen);
  99328. 8027f28: 697b ldr r3, [r7, #20]
  99329. 8027f2a: 6c3a ldr r2, [r7, #64] @ 0x40
  99330. 8027f2c: 6bf9 ldr r1, [r7, #60] @ 0x3c
  99331. 8027f2e: 4618 mov r0, r3
  99332. 8027f30: f001 ffdd bl 8029eee <memcpy>
  99333. ptr += payloadlen;
  99334. 8027f34: 697a ldr r2, [r7, #20]
  99335. 8027f36: 6c3b ldr r3, [r7, #64] @ 0x40
  99336. 8027f38: 4413 add r3, r2
  99337. 8027f3a: 617b str r3, [r7, #20]
  99338. rc = ptr - buf;
  99339. 8027f3c: 697a ldr r2, [r7, #20]
  99340. 8027f3e: 68fb ldr r3, [r7, #12]
  99341. 8027f40: 1ad3 subs r3, r2, r3
  99342. 8027f42: 61fb str r3, [r7, #28]
  99343. exit:
  99344. FUNC_EXIT_RC(rc);
  99345. return rc;
  99346. 8027f44: 69fb ldr r3, [r7, #28]
  99347. }
  99348. 8027f46: 4618 mov r0, r3
  99349. 8027f48: 3720 adds r7, #32
  99350. 8027f4a: 46bd mov sp, r7
  99351. 8027f4c: bd80 pop {r7, pc}
  99352. 08027f4e <MQTTSerialize_ack>:
  99353. * @param dup the MQTT dup flag
  99354. * @param packetid the MQTT packet identifier
  99355. * @return serialized length, or error if 0
  99356. */
  99357. int MQTTSerialize_ack(unsigned char* buf, int buflen, unsigned char packettype, unsigned char dup, unsigned short packetid)
  99358. {
  99359. 8027f4e: b580 push {r7, lr}
  99360. 8027f50: b088 sub sp, #32
  99361. 8027f52: af00 add r7, sp, #0
  99362. 8027f54: 60f8 str r0, [r7, #12]
  99363. 8027f56: 60b9 str r1, [r7, #8]
  99364. 8027f58: 4611 mov r1, r2
  99365. 8027f5a: 461a mov r2, r3
  99366. 8027f5c: 460b mov r3, r1
  99367. 8027f5e: 71fb strb r3, [r7, #7]
  99368. 8027f60: 4613 mov r3, r2
  99369. 8027f62: 71bb strb r3, [r7, #6]
  99370. MQTTHeader header = {0};
  99371. 8027f64: 2300 movs r3, #0
  99372. 8027f66: 61bb str r3, [r7, #24]
  99373. int rc = 0;
  99374. 8027f68: 2300 movs r3, #0
  99375. 8027f6a: 61fb str r3, [r7, #28]
  99376. unsigned char *ptr = buf;
  99377. 8027f6c: 68fb ldr r3, [r7, #12]
  99378. 8027f6e: 617b str r3, [r7, #20]
  99379. FUNC_ENTRY;
  99380. if (buflen < 4)
  99381. 8027f70: 68bb ldr r3, [r7, #8]
  99382. 8027f72: 2b03 cmp r3, #3
  99383. 8027f74: dc03 bgt.n 8027f7e <MQTTSerialize_ack+0x30>
  99384. {
  99385. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  99386. 8027f76: f06f 0301 mvn.w r3, #1
  99387. 8027f7a: 61fb str r3, [r7, #28]
  99388. goto exit;
  99389. 8027f7c: e037 b.n 8027fee <MQTTSerialize_ack+0xa0>
  99390. }
  99391. header.bits.type = packettype;
  99392. 8027f7e: 79fb ldrb r3, [r7, #7]
  99393. 8027f80: f003 030f and.w r3, r3, #15
  99394. 8027f84: b2da uxtb r2, r3
  99395. 8027f86: 7e3b ldrb r3, [r7, #24]
  99396. 8027f88: f362 1307 bfi r3, r2, #4, #4
  99397. 8027f8c: 763b strb r3, [r7, #24]
  99398. header.bits.dup = dup;
  99399. 8027f8e: 79bb ldrb r3, [r7, #6]
  99400. 8027f90: f003 0301 and.w r3, r3, #1
  99401. 8027f94: b2da uxtb r2, r3
  99402. 8027f96: 7e3b ldrb r3, [r7, #24]
  99403. 8027f98: f362 03c3 bfi r3, r2, #3, #1
  99404. 8027f9c: 763b strb r3, [r7, #24]
  99405. header.bits.qos = (packettype == PUBREL) ? 1 : 0;
  99406. 8027f9e: 79fb ldrb r3, [r7, #7]
  99407. 8027fa0: 2b06 cmp r3, #6
  99408. 8027fa2: bf0c ite eq
  99409. 8027fa4: 2301 moveq r3, #1
  99410. 8027fa6: 2300 movne r3, #0
  99411. 8027fa8: b2db uxtb r3, r3
  99412. 8027faa: f003 0303 and.w r3, r3, #3
  99413. 8027fae: b2da uxtb r2, r3
  99414. 8027fb0: 7e3b ldrb r3, [r7, #24]
  99415. 8027fb2: f362 0342 bfi r3, r2, #1, #2
  99416. 8027fb6: 763b strb r3, [r7, #24]
  99417. writeChar(&ptr, header.byte); /* write header */
  99418. 8027fb8: 7e3a ldrb r2, [r7, #24]
  99419. 8027fba: f107 0314 add.w r3, r7, #20
  99420. 8027fbe: 4611 mov r1, r2
  99421. 8027fc0: 4618 mov r0, r3
  99422. 8027fc2: f7ff fe22 bl 8027c0a <writeChar>
  99423. ptr += MQTTPacket_encode(ptr, 2); /* write remaining length */
  99424. 8027fc6: 697b ldr r3, [r7, #20]
  99425. 8027fc8: 2102 movs r1, #2
  99426. 8027fca: 4618 mov r0, r3
  99427. 8027fcc: f7ff fd23 bl 8027a16 <MQTTPacket_encode>
  99428. 8027fd0: 4602 mov r2, r0
  99429. 8027fd2: 697b ldr r3, [r7, #20]
  99430. 8027fd4: 4413 add r3, r2
  99431. 8027fd6: 617b str r3, [r7, #20]
  99432. writeInt(&ptr, packetid);
  99433. 8027fd8: 8d3a ldrh r2, [r7, #40] @ 0x28
  99434. 8027fda: f107 0314 add.w r3, r7, #20
  99435. 8027fde: 4611 mov r1, r2
  99436. 8027fe0: 4618 mov r0, r3
  99437. 8027fe2: f7ff fe27 bl 8027c34 <writeInt>
  99438. rc = ptr - buf;
  99439. 8027fe6: 697a ldr r2, [r7, #20]
  99440. 8027fe8: 68fb ldr r3, [r7, #12]
  99441. 8027fea: 1ad3 subs r3, r2, r3
  99442. 8027fec: 61fb str r3, [r7, #28]
  99443. exit:
  99444. FUNC_EXIT_RC(rc);
  99445. return rc;
  99446. 8027fee: 69fb ldr r3, [r7, #28]
  99447. }
  99448. 8027ff0: 4618 mov r0, r3
  99449. 8027ff2: 3720 adds r7, #32
  99450. 8027ff4: 46bd mov sp, r7
  99451. 8027ff6: bd80 pop {r7, pc}
  99452. 08027ff8 <MQTTSerialize_subscribeLength>:
  99453. * @param count the number of topic filter strings in topicFilters
  99454. * @param topicFilters the array of topic filter strings to be used in the publish
  99455. * @return the length of buffer needed to contain the serialized version of the packet
  99456. */
  99457. int MQTTSerialize_subscribeLength(int count, MQTTString topicFilters[])
  99458. {
  99459. 8027ff8: b580 push {r7, lr}
  99460. 8027ffa: b084 sub sp, #16
  99461. 8027ffc: af00 add r7, sp, #0
  99462. 8027ffe: 6078 str r0, [r7, #4]
  99463. 8028000: 6039 str r1, [r7, #0]
  99464. int i;
  99465. int len = 2; /* packetid */
  99466. 8028002: 2302 movs r3, #2
  99467. 8028004: 60bb str r3, [r7, #8]
  99468. for (i = 0; i < count; ++i)
  99469. 8028006: 2300 movs r3, #0
  99470. 8028008: 60fb str r3, [r7, #12]
  99471. 802800a: e013 b.n 8028034 <MQTTSerialize_subscribeLength+0x3c>
  99472. len += 2 + MQTTstrlen(topicFilters[i]) + 1; /* length + topic + req_qos */
  99473. 802800c: 68fa ldr r2, [r7, #12]
  99474. 802800e: 4613 mov r3, r2
  99475. 8028010: 005b lsls r3, r3, #1
  99476. 8028012: 4413 add r3, r2
  99477. 8028014: 009b lsls r3, r3, #2
  99478. 8028016: 461a mov r2, r3
  99479. 8028018: 683b ldr r3, [r7, #0]
  99480. 802801a: 4413 add r3, r2
  99481. 802801c: e893 0007 ldmia.w r3, {r0, r1, r2}
  99482. 8028020: f7ff feaf bl 8027d82 <MQTTstrlen>
  99483. 8028024: 4603 mov r3, r0
  99484. 8028026: 3303 adds r3, #3
  99485. 8028028: 68ba ldr r2, [r7, #8]
  99486. 802802a: 4413 add r3, r2
  99487. 802802c: 60bb str r3, [r7, #8]
  99488. for (i = 0; i < count; ++i)
  99489. 802802e: 68fb ldr r3, [r7, #12]
  99490. 8028030: 3301 adds r3, #1
  99491. 8028032: 60fb str r3, [r7, #12]
  99492. 8028034: 68fa ldr r2, [r7, #12]
  99493. 8028036: 687b ldr r3, [r7, #4]
  99494. 8028038: 429a cmp r2, r3
  99495. 802803a: dbe7 blt.n 802800c <MQTTSerialize_subscribeLength+0x14>
  99496. return len;
  99497. 802803c: 68bb ldr r3, [r7, #8]
  99498. }
  99499. 802803e: 4618 mov r0, r3
  99500. 8028040: 3710 adds r7, #16
  99501. 8028042: 46bd mov sp, r7
  99502. 8028044: bd80 pop {r7, pc}
  99503. 08028046 <MQTTSerialize_subscribe>:
  99504. * @param requestedQoSs - array of requested QoS
  99505. * @return the length of the serialized data. <= 0 indicates error
  99506. */
  99507. int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, int count,
  99508. MQTTString topicFilters[], int requestedQoSs[])
  99509. {
  99510. 8028046: b580 push {r7, lr}
  99511. 8028048: b08a sub sp, #40 @ 0x28
  99512. 802804a: af00 add r7, sp, #0
  99513. 802804c: 60f8 str r0, [r7, #12]
  99514. 802804e: 60b9 str r1, [r7, #8]
  99515. 8028050: 4611 mov r1, r2
  99516. 8028052: 461a mov r2, r3
  99517. 8028054: 460b mov r3, r1
  99518. 8028056: 71fb strb r3, [r7, #7]
  99519. 8028058: 4613 mov r3, r2
  99520. 802805a: 80bb strh r3, [r7, #4]
  99521. unsigned char *ptr = buf;
  99522. 802805c: 68fb ldr r3, [r7, #12]
  99523. 802805e: 61bb str r3, [r7, #24]
  99524. MQTTHeader header = {0};
  99525. 8028060: 2300 movs r3, #0
  99526. 8028062: 617b str r3, [r7, #20]
  99527. int rem_len = 0;
  99528. 8028064: 2300 movs r3, #0
  99529. 8028066: 61fb str r3, [r7, #28]
  99530. int rc = 0;
  99531. 8028068: 2300 movs r3, #0
  99532. 802806a: 627b str r3, [r7, #36] @ 0x24
  99533. int i = 0;
  99534. 802806c: 2300 movs r3, #0
  99535. 802806e: 623b str r3, [r7, #32]
  99536. FUNC_ENTRY;
  99537. if (MQTTPacket_len(rem_len = MQTTSerialize_subscribeLength(count, topicFilters)) > buflen)
  99538. 8028070: 6b79 ldr r1, [r7, #52] @ 0x34
  99539. 8028072: 6b38 ldr r0, [r7, #48] @ 0x30
  99540. 8028074: f7ff ffc0 bl 8027ff8 <MQTTSerialize_subscribeLength>
  99541. 8028078: 61f8 str r0, [r7, #28]
  99542. 802807a: 69f8 ldr r0, [r7, #28]
  99543. 802807c: f7ff fd36 bl 8027aec <MQTTPacket_len>
  99544. 8028080: 4602 mov r2, r0
  99545. 8028082: 68bb ldr r3, [r7, #8]
  99546. 8028084: 4293 cmp r3, r2
  99547. 8028086: da03 bge.n 8028090 <MQTTSerialize_subscribe+0x4a>
  99548. {
  99549. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  99550. 8028088: f06f 0301 mvn.w r3, #1
  99551. 802808c: 627b str r3, [r7, #36] @ 0x24
  99552. goto exit;
  99553. 802808e: e051 b.n 8028134 <MQTTSerialize_subscribe+0xee>
  99554. }
  99555. header.byte = 0;
  99556. 8028090: 2300 movs r3, #0
  99557. 8028092: 753b strb r3, [r7, #20]
  99558. header.bits.type = SUBSCRIBE;
  99559. 8028094: 7d3b ldrb r3, [r7, #20]
  99560. 8028096: 2208 movs r2, #8
  99561. 8028098: f362 1307 bfi r3, r2, #4, #4
  99562. 802809c: 753b strb r3, [r7, #20]
  99563. header.bits.dup = dup;
  99564. 802809e: 79fb ldrb r3, [r7, #7]
  99565. 80280a0: f003 0301 and.w r3, r3, #1
  99566. 80280a4: b2da uxtb r2, r3
  99567. 80280a6: 7d3b ldrb r3, [r7, #20]
  99568. 80280a8: f362 03c3 bfi r3, r2, #3, #1
  99569. 80280ac: 753b strb r3, [r7, #20]
  99570. header.bits.qos = 1;
  99571. 80280ae: 7d3b ldrb r3, [r7, #20]
  99572. 80280b0: 2201 movs r2, #1
  99573. 80280b2: f362 0342 bfi r3, r2, #1, #2
  99574. 80280b6: 753b strb r3, [r7, #20]
  99575. writeChar(&ptr, header.byte); /* write header */
  99576. 80280b8: 7d3a ldrb r2, [r7, #20]
  99577. 80280ba: f107 0318 add.w r3, r7, #24
  99578. 80280be: 4611 mov r1, r2
  99579. 80280c0: 4618 mov r0, r3
  99580. 80280c2: f7ff fda2 bl 8027c0a <writeChar>
  99581. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  99582. 80280c6: 69bb ldr r3, [r7, #24]
  99583. 80280c8: 69f9 ldr r1, [r7, #28]
  99584. 80280ca: 4618 mov r0, r3
  99585. 80280cc: f7ff fca3 bl 8027a16 <MQTTPacket_encode>
  99586. 80280d0: 4602 mov r2, r0
  99587. 80280d2: 69bb ldr r3, [r7, #24]
  99588. 80280d4: 4413 add r3, r2
  99589. 80280d6: 61bb str r3, [r7, #24]
  99590. writeInt(&ptr, packetid);
  99591. 80280d8: 88ba ldrh r2, [r7, #4]
  99592. 80280da: f107 0318 add.w r3, r7, #24
  99593. 80280de: 4611 mov r1, r2
  99594. 80280e0: 4618 mov r0, r3
  99595. 80280e2: f7ff fda7 bl 8027c34 <writeInt>
  99596. for (i = 0; i < count; ++i)
  99597. 80280e6: 2300 movs r3, #0
  99598. 80280e8: 623b str r3, [r7, #32]
  99599. 80280ea: e01b b.n 8028124 <MQTTSerialize_subscribe+0xde>
  99600. {
  99601. writeMQTTString(&ptr, topicFilters[i]);
  99602. 80280ec: 6a3a ldr r2, [r7, #32]
  99603. 80280ee: 4613 mov r3, r2
  99604. 80280f0: 005b lsls r3, r3, #1
  99605. 80280f2: 4413 add r3, r2
  99606. 80280f4: 009b lsls r3, r3, #2
  99607. 80280f6: 461a mov r2, r3
  99608. 80280f8: 6b7b ldr r3, [r7, #52] @ 0x34
  99609. 80280fa: 4413 add r3, r2
  99610. 80280fc: f107 0018 add.w r0, r7, #24
  99611. 8028100: cb0e ldmia r3, {r1, r2, r3}
  99612. 8028102: f7ff fddf bl 8027cc4 <writeMQTTString>
  99613. writeChar(&ptr, requestedQoSs[i]);
  99614. 8028106: 6a3b ldr r3, [r7, #32]
  99615. 8028108: 009b lsls r3, r3, #2
  99616. 802810a: 6bba ldr r2, [r7, #56] @ 0x38
  99617. 802810c: 4413 add r3, r2
  99618. 802810e: 681b ldr r3, [r3, #0]
  99619. 8028110: b2da uxtb r2, r3
  99620. 8028112: f107 0318 add.w r3, r7, #24
  99621. 8028116: 4611 mov r1, r2
  99622. 8028118: 4618 mov r0, r3
  99623. 802811a: f7ff fd76 bl 8027c0a <writeChar>
  99624. for (i = 0; i < count; ++i)
  99625. 802811e: 6a3b ldr r3, [r7, #32]
  99626. 8028120: 3301 adds r3, #1
  99627. 8028122: 623b str r3, [r7, #32]
  99628. 8028124: 6a3a ldr r2, [r7, #32]
  99629. 8028126: 6b3b ldr r3, [r7, #48] @ 0x30
  99630. 8028128: 429a cmp r2, r3
  99631. 802812a: dbdf blt.n 80280ec <MQTTSerialize_subscribe+0xa6>
  99632. }
  99633. rc = ptr - buf;
  99634. 802812c: 69ba ldr r2, [r7, #24]
  99635. 802812e: 68fb ldr r3, [r7, #12]
  99636. 8028130: 1ad3 subs r3, r2, r3
  99637. 8028132: 627b str r3, [r7, #36] @ 0x24
  99638. exit:
  99639. FUNC_EXIT_RC(rc);
  99640. return rc;
  99641. 8028134: 6a7b ldr r3, [r7, #36] @ 0x24
  99642. }
  99643. 8028136: 4618 mov r0, r3
  99644. 8028138: 3728 adds r7, #40 @ 0x28
  99645. 802813a: 46bd mov sp, r7
  99646. 802813c: bd80 pop {r7, pc}
  99647. 0802813e <MQTTDeserialize_suback>:
  99648. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  99649. * @param buflen the length in bytes of the data in the supplied buffer
  99650. * @return error code. 1 is success, 0 is failure
  99651. */
  99652. int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int buflen)
  99653. {
  99654. 802813e: b580 push {r7, lr}
  99655. 8028140: b08a sub sp, #40 @ 0x28
  99656. 8028142: af00 add r7, sp, #0
  99657. 8028144: 60f8 str r0, [r7, #12]
  99658. 8028146: 60b9 str r1, [r7, #8]
  99659. 8028148: 607a str r2, [r7, #4]
  99660. 802814a: 603b str r3, [r7, #0]
  99661. MQTTHeader header = {0};
  99662. 802814c: 2300 movs r3, #0
  99663. 802814e: 61fb str r3, [r7, #28]
  99664. unsigned char* curdata = buf;
  99665. 8028150: 6b3b ldr r3, [r7, #48] @ 0x30
  99666. 8028152: 61bb str r3, [r7, #24]
  99667. unsigned char* enddata = NULL;
  99668. 8028154: 2300 movs r3, #0
  99669. 8028156: 623b str r3, [r7, #32]
  99670. int rc = 0;
  99671. 8028158: 2300 movs r3, #0
  99672. 802815a: 627b str r3, [r7, #36] @ 0x24
  99673. int mylen;
  99674. FUNC_ENTRY;
  99675. header.byte = readChar(&curdata);
  99676. 802815c: f107 0318 add.w r3, r7, #24
  99677. 8028160: 4618 mov r0, r3
  99678. 8028162: f7ff fd3e bl 8027be2 <readChar>
  99679. 8028166: 4603 mov r3, r0
  99680. 8028168: 773b strb r3, [r7, #28]
  99681. if (header.bits.type != SUBACK)
  99682. 802816a: 7f3b ldrb r3, [r7, #28]
  99683. 802816c: f023 030f bic.w r3, r3, #15
  99684. 8028170: b2db uxtb r3, r3
  99685. 8028172: 2b90 cmp r3, #144 @ 0x90
  99686. 8028174: d142 bne.n 80281fc <MQTTDeserialize_suback+0xbe>
  99687. goto exit;
  99688. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  99689. 8028176: 69bb ldr r3, [r7, #24]
  99690. 8028178: f107 0214 add.w r2, r7, #20
  99691. 802817c: 4611 mov r1, r2
  99692. 802817e: 4618 mov r0, r3
  99693. 8028180: f7ff fcfe bl 8027b80 <MQTTPacket_decodeBuf>
  99694. 8028184: 6278 str r0, [r7, #36] @ 0x24
  99695. 8028186: 6a7a ldr r2, [r7, #36] @ 0x24
  99696. 8028188: 69bb ldr r3, [r7, #24]
  99697. 802818a: 4413 add r3, r2
  99698. 802818c: 61bb str r3, [r7, #24]
  99699. enddata = curdata + mylen;
  99700. 802818e: 69bb ldr r3, [r7, #24]
  99701. 8028190: 697a ldr r2, [r7, #20]
  99702. 8028192: 4413 add r3, r2
  99703. 8028194: 623b str r3, [r7, #32]
  99704. if (enddata - curdata < 2)
  99705. 8028196: 69bb ldr r3, [r7, #24]
  99706. 8028198: 6a3a ldr r2, [r7, #32]
  99707. 802819a: 1ad3 subs r3, r2, r3
  99708. 802819c: 2b01 cmp r3, #1
  99709. 802819e: dd2f ble.n 8028200 <MQTTDeserialize_suback+0xc2>
  99710. goto exit;
  99711. *packetid = readInt(&curdata);
  99712. 80281a0: f107 0318 add.w r3, r7, #24
  99713. 80281a4: 4618 mov r0, r3
  99714. 80281a6: f7ff fd01 bl 8027bac <readInt>
  99715. 80281aa: 4603 mov r3, r0
  99716. 80281ac: b29a uxth r2, r3
  99717. 80281ae: 68fb ldr r3, [r7, #12]
  99718. 80281b0: 801a strh r2, [r3, #0]
  99719. *count = 0;
  99720. 80281b2: 687b ldr r3, [r7, #4]
  99721. 80281b4: 2200 movs r2, #0
  99722. 80281b6: 601a str r2, [r3, #0]
  99723. while (curdata < enddata)
  99724. 80281b8: e019 b.n 80281ee <MQTTDeserialize_suback+0xb0>
  99725. {
  99726. if (*count > maxcount)
  99727. 80281ba: 687b ldr r3, [r7, #4]
  99728. 80281bc: 681b ldr r3, [r3, #0]
  99729. 80281be: 68ba ldr r2, [r7, #8]
  99730. 80281c0: 429a cmp r2, r3
  99731. 80281c2: da03 bge.n 80281cc <MQTTDeserialize_suback+0x8e>
  99732. {
  99733. rc = -1;
  99734. 80281c4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99735. 80281c8: 627b str r3, [r7, #36] @ 0x24
  99736. goto exit;
  99737. 80281ca: e01a b.n 8028202 <MQTTDeserialize_suback+0xc4>
  99738. }
  99739. grantedQoSs[(*count)++] = readChar(&curdata);
  99740. 80281cc: f107 0318 add.w r3, r7, #24
  99741. 80281d0: 4618 mov r0, r3
  99742. 80281d2: f7ff fd06 bl 8027be2 <readChar>
  99743. 80281d6: 4603 mov r3, r0
  99744. 80281d8: 4618 mov r0, r3
  99745. 80281da: 687b ldr r3, [r7, #4]
  99746. 80281dc: 681b ldr r3, [r3, #0]
  99747. 80281de: 1c59 adds r1, r3, #1
  99748. 80281e0: 687a ldr r2, [r7, #4]
  99749. 80281e2: 6011 str r1, [r2, #0]
  99750. 80281e4: 009b lsls r3, r3, #2
  99751. 80281e6: 683a ldr r2, [r7, #0]
  99752. 80281e8: 4413 add r3, r2
  99753. 80281ea: 4602 mov r2, r0
  99754. 80281ec: 601a str r2, [r3, #0]
  99755. while (curdata < enddata)
  99756. 80281ee: 69bb ldr r3, [r7, #24]
  99757. 80281f0: 6a3a ldr r2, [r7, #32]
  99758. 80281f2: 429a cmp r2, r3
  99759. 80281f4: d8e1 bhi.n 80281ba <MQTTDeserialize_suback+0x7c>
  99760. }
  99761. rc = 1;
  99762. 80281f6: 2301 movs r3, #1
  99763. 80281f8: 627b str r3, [r7, #36] @ 0x24
  99764. 80281fa: e002 b.n 8028202 <MQTTDeserialize_suback+0xc4>
  99765. goto exit;
  99766. 80281fc: bf00 nop
  99767. 80281fe: e000 b.n 8028202 <MQTTDeserialize_suback+0xc4>
  99768. goto exit;
  99769. 8028200: bf00 nop
  99770. exit:
  99771. FUNC_EXIT_RC(rc);
  99772. return rc;
  99773. 8028202: 6a7b ldr r3, [r7, #36] @ 0x24
  99774. }
  99775. 8028204: 4618 mov r0, r3
  99776. 8028206: 3728 adds r7, #40 @ 0x28
  99777. 8028208: 46bd mov sp, r7
  99778. 802820a: bd80 pop {r7, pc}
  99779. 0802820c <malloc>:
  99780. 802820c: 4b02 ldr r3, [pc, #8] @ (8028218 <malloc+0xc>)
  99781. 802820e: 4601 mov r1, r0
  99782. 8028210: 6818 ldr r0, [r3, #0]
  99783. 8028212: f000 b82d b.w 8028270 <_malloc_r>
  99784. 8028216: bf00 nop
  99785. 8028218: 240001d4 .word 0x240001d4
  99786. 0802821c <free>:
  99787. 802821c: 4b02 ldr r3, [pc, #8] @ (8028228 <free+0xc>)
  99788. 802821e: 4601 mov r1, r0
  99789. 8028220: 6818 ldr r0, [r3, #0]
  99790. 8028222: f002 bc7b b.w 802ab1c <_free_r>
  99791. 8028226: bf00 nop
  99792. 8028228: 240001d4 .word 0x240001d4
  99793. 0802822c <sbrk_aligned>:
  99794. 802822c: b570 push {r4, r5, r6, lr}
  99795. 802822e: 4e0f ldr r6, [pc, #60] @ (802826c <sbrk_aligned+0x40>)
  99796. 8028230: 460c mov r4, r1
  99797. 8028232: 6831 ldr r1, [r6, #0]
  99798. 8028234: 4605 mov r5, r0
  99799. 8028236: b911 cbnz r1, 802823e <sbrk_aligned+0x12>
  99800. 8028238: f001 fe0a bl 8029e50 <_sbrk_r>
  99801. 802823c: 6030 str r0, [r6, #0]
  99802. 802823e: 4621 mov r1, r4
  99803. 8028240: 4628 mov r0, r5
  99804. 8028242: f001 fe05 bl 8029e50 <_sbrk_r>
  99805. 8028246: 1c43 adds r3, r0, #1
  99806. 8028248: d103 bne.n 8028252 <sbrk_aligned+0x26>
  99807. 802824a: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  99808. 802824e: 4620 mov r0, r4
  99809. 8028250: bd70 pop {r4, r5, r6, pc}
  99810. 8028252: 1cc4 adds r4, r0, #3
  99811. 8028254: f024 0403 bic.w r4, r4, #3
  99812. 8028258: 42a0 cmp r0, r4
  99813. 802825a: d0f8 beq.n 802824e <sbrk_aligned+0x22>
  99814. 802825c: 1a21 subs r1, r4, r0
  99815. 802825e: 4628 mov r0, r5
  99816. 8028260: f001 fdf6 bl 8029e50 <_sbrk_r>
  99817. 8028264: 3001 adds r0, #1
  99818. 8028266: d1f2 bne.n 802824e <sbrk_aligned+0x22>
  99819. 8028268: e7ef b.n 802824a <sbrk_aligned+0x1e>
  99820. 802826a: bf00 nop
  99821. 802826c: 2402b03c .word 0x2402b03c
  99822. 08028270 <_malloc_r>:
  99823. 8028270: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  99824. 8028274: 1ccd adds r5, r1, #3
  99825. 8028276: f025 0503 bic.w r5, r5, #3
  99826. 802827a: 3508 adds r5, #8
  99827. 802827c: 2d0c cmp r5, #12
  99828. 802827e: bf38 it cc
  99829. 8028280: 250c movcc r5, #12
  99830. 8028282: 2d00 cmp r5, #0
  99831. 8028284: 4606 mov r6, r0
  99832. 8028286: db01 blt.n 802828c <_malloc_r+0x1c>
  99833. 8028288: 42a9 cmp r1, r5
  99834. 802828a: d904 bls.n 8028296 <_malloc_r+0x26>
  99835. 802828c: 230c movs r3, #12
  99836. 802828e: 6033 str r3, [r6, #0]
  99837. 8028290: 2000 movs r0, #0
  99838. 8028292: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  99839. 8028296: f8df 80d4 ldr.w r8, [pc, #212] @ 802836c <_malloc_r+0xfc>
  99840. 802829a: f000 f869 bl 8028370 <__malloc_lock>
  99841. 802829e: f8d8 3000 ldr.w r3, [r8]
  99842. 80282a2: 461c mov r4, r3
  99843. 80282a4: bb44 cbnz r4, 80282f8 <_malloc_r+0x88>
  99844. 80282a6: 4629 mov r1, r5
  99845. 80282a8: 4630 mov r0, r6
  99846. 80282aa: f7ff ffbf bl 802822c <sbrk_aligned>
  99847. 80282ae: 1c43 adds r3, r0, #1
  99848. 80282b0: 4604 mov r4, r0
  99849. 80282b2: d158 bne.n 8028366 <_malloc_r+0xf6>
  99850. 80282b4: f8d8 4000 ldr.w r4, [r8]
  99851. 80282b8: 4627 mov r7, r4
  99852. 80282ba: 2f00 cmp r7, #0
  99853. 80282bc: d143 bne.n 8028346 <_malloc_r+0xd6>
  99854. 80282be: 2c00 cmp r4, #0
  99855. 80282c0: d04b beq.n 802835a <_malloc_r+0xea>
  99856. 80282c2: 6823 ldr r3, [r4, #0]
  99857. 80282c4: 4639 mov r1, r7
  99858. 80282c6: 4630 mov r0, r6
  99859. 80282c8: eb04 0903 add.w r9, r4, r3
  99860. 80282cc: f001 fdc0 bl 8029e50 <_sbrk_r>
  99861. 80282d0: 4581 cmp r9, r0
  99862. 80282d2: d142 bne.n 802835a <_malloc_r+0xea>
  99863. 80282d4: 6821 ldr r1, [r4, #0]
  99864. 80282d6: 1a6d subs r5, r5, r1
  99865. 80282d8: 4629 mov r1, r5
  99866. 80282da: 4630 mov r0, r6
  99867. 80282dc: f7ff ffa6 bl 802822c <sbrk_aligned>
  99868. 80282e0: 3001 adds r0, #1
  99869. 80282e2: d03a beq.n 802835a <_malloc_r+0xea>
  99870. 80282e4: 6823 ldr r3, [r4, #0]
  99871. 80282e6: 442b add r3, r5
  99872. 80282e8: 6023 str r3, [r4, #0]
  99873. 80282ea: f8d8 3000 ldr.w r3, [r8]
  99874. 80282ee: 685a ldr r2, [r3, #4]
  99875. 80282f0: bb62 cbnz r2, 802834c <_malloc_r+0xdc>
  99876. 80282f2: f8c8 7000 str.w r7, [r8]
  99877. 80282f6: e00f b.n 8028318 <_malloc_r+0xa8>
  99878. 80282f8: 6822 ldr r2, [r4, #0]
  99879. 80282fa: 1b52 subs r2, r2, r5
  99880. 80282fc: d420 bmi.n 8028340 <_malloc_r+0xd0>
  99881. 80282fe: 2a0b cmp r2, #11
  99882. 8028300: d917 bls.n 8028332 <_malloc_r+0xc2>
  99883. 8028302: 1961 adds r1, r4, r5
  99884. 8028304: 42a3 cmp r3, r4
  99885. 8028306: 6025 str r5, [r4, #0]
  99886. 8028308: bf18 it ne
  99887. 802830a: 6059 strne r1, [r3, #4]
  99888. 802830c: 6863 ldr r3, [r4, #4]
  99889. 802830e: bf08 it eq
  99890. 8028310: f8c8 1000 streq.w r1, [r8]
  99891. 8028314: 5162 str r2, [r4, r5]
  99892. 8028316: 604b str r3, [r1, #4]
  99893. 8028318: 4630 mov r0, r6
  99894. 802831a: f000 f82f bl 802837c <__malloc_unlock>
  99895. 802831e: f104 000b add.w r0, r4, #11
  99896. 8028322: 1d23 adds r3, r4, #4
  99897. 8028324: f020 0007 bic.w r0, r0, #7
  99898. 8028328: 1ac2 subs r2, r0, r3
  99899. 802832a: bf1c itt ne
  99900. 802832c: 1a1b subne r3, r3, r0
  99901. 802832e: 50a3 strne r3, [r4, r2]
  99902. 8028330: e7af b.n 8028292 <_malloc_r+0x22>
  99903. 8028332: 6862 ldr r2, [r4, #4]
  99904. 8028334: 42a3 cmp r3, r4
  99905. 8028336: bf0c ite eq
  99906. 8028338: f8c8 2000 streq.w r2, [r8]
  99907. 802833c: 605a strne r2, [r3, #4]
  99908. 802833e: e7eb b.n 8028318 <_malloc_r+0xa8>
  99909. 8028340: 4623 mov r3, r4
  99910. 8028342: 6864 ldr r4, [r4, #4]
  99911. 8028344: e7ae b.n 80282a4 <_malloc_r+0x34>
  99912. 8028346: 463c mov r4, r7
  99913. 8028348: 687f ldr r7, [r7, #4]
  99914. 802834a: e7b6 b.n 80282ba <_malloc_r+0x4a>
  99915. 802834c: 461a mov r2, r3
  99916. 802834e: 685b ldr r3, [r3, #4]
  99917. 8028350: 42a3 cmp r3, r4
  99918. 8028352: d1fb bne.n 802834c <_malloc_r+0xdc>
  99919. 8028354: 2300 movs r3, #0
  99920. 8028356: 6053 str r3, [r2, #4]
  99921. 8028358: e7de b.n 8028318 <_malloc_r+0xa8>
  99922. 802835a: 230c movs r3, #12
  99923. 802835c: 6033 str r3, [r6, #0]
  99924. 802835e: 4630 mov r0, r6
  99925. 8028360: f000 f80c bl 802837c <__malloc_unlock>
  99926. 8028364: e794 b.n 8028290 <_malloc_r+0x20>
  99927. 8028366: 6005 str r5, [r0, #0]
  99928. 8028368: e7d6 b.n 8028318 <_malloc_r+0xa8>
  99929. 802836a: bf00 nop
  99930. 802836c: 2402b040 .word 0x2402b040
  99931. 08028370 <__malloc_lock>:
  99932. 8028370: 4801 ldr r0, [pc, #4] @ (8028378 <__malloc_lock+0x8>)
  99933. 8028372: f001 bdba b.w 8029eea <__retarget_lock_acquire_recursive>
  99934. 8028376: bf00 nop
  99935. 8028378: 2402b184 .word 0x2402b184
  99936. 0802837c <__malloc_unlock>:
  99937. 802837c: 4801 ldr r0, [pc, #4] @ (8028384 <__malloc_unlock+0x8>)
  99938. 802837e: f001 bdb5 b.w 8029eec <__retarget_lock_release_recursive>
  99939. 8028382: bf00 nop
  99940. 8028384: 2402b184 .word 0x2402b184
  99941. 08028388 <rand>:
  99942. 8028388: 4b16 ldr r3, [pc, #88] @ (80283e4 <rand+0x5c>)
  99943. 802838a: b510 push {r4, lr}
  99944. 802838c: 681c ldr r4, [r3, #0]
  99945. 802838e: 6b23 ldr r3, [r4, #48] @ 0x30
  99946. 8028390: b9b3 cbnz r3, 80283c0 <rand+0x38>
  99947. 8028392: 2018 movs r0, #24
  99948. 8028394: f7ff ff3a bl 802820c <malloc>
  99949. 8028398: 4602 mov r2, r0
  99950. 802839a: 6320 str r0, [r4, #48] @ 0x30
  99951. 802839c: b920 cbnz r0, 80283a8 <rand+0x20>
  99952. 802839e: 4b12 ldr r3, [pc, #72] @ (80283e8 <rand+0x60>)
  99953. 80283a0: 4812 ldr r0, [pc, #72] @ (80283ec <rand+0x64>)
  99954. 80283a2: 2152 movs r1, #82 @ 0x52
  99955. 80283a4: f001 fdbc bl 8029f20 <__assert_func>
  99956. 80283a8: 4911 ldr r1, [pc, #68] @ (80283f0 <rand+0x68>)
  99957. 80283aa: 4b12 ldr r3, [pc, #72] @ (80283f4 <rand+0x6c>)
  99958. 80283ac: e9c0 1300 strd r1, r3, [r0]
  99959. 80283b0: 4b11 ldr r3, [pc, #68] @ (80283f8 <rand+0x70>)
  99960. 80283b2: 6083 str r3, [r0, #8]
  99961. 80283b4: 230b movs r3, #11
  99962. 80283b6: 8183 strh r3, [r0, #12]
  99963. 80283b8: 2100 movs r1, #0
  99964. 80283ba: 2001 movs r0, #1
  99965. 80283bc: e9c2 0104 strd r0, r1, [r2, #16]
  99966. 80283c0: 6b21 ldr r1, [r4, #48] @ 0x30
  99967. 80283c2: 480e ldr r0, [pc, #56] @ (80283fc <rand+0x74>)
  99968. 80283c4: 690b ldr r3, [r1, #16]
  99969. 80283c6: 694c ldr r4, [r1, #20]
  99970. 80283c8: 4a0d ldr r2, [pc, #52] @ (8028400 <rand+0x78>)
  99971. 80283ca: 4358 muls r0, r3
  99972. 80283cc: fb02 0004 mla r0, r2, r4, r0
  99973. 80283d0: fba3 3202 umull r3, r2, r3, r2
  99974. 80283d4: 3301 adds r3, #1
  99975. 80283d6: eb40 0002 adc.w r0, r0, r2
  99976. 80283da: e9c1 3004 strd r3, r0, [r1, #16]
  99977. 80283de: f020 4000 bic.w r0, r0, #2147483648 @ 0x80000000
  99978. 80283e2: bd10 pop {r4, pc}
  99979. 80283e4: 240001d4 .word 0x240001d4
  99980. 80283e8: 08030c7e .word 0x08030c7e
  99981. 80283ec: 08030c95 .word 0x08030c95
  99982. 80283f0: abcd330e .word 0xabcd330e
  99983. 80283f4: e66d1234 .word 0xe66d1234
  99984. 80283f8: 0005deec .word 0x0005deec
  99985. 80283fc: 5851f42d .word 0x5851f42d
  99986. 8028400: 4c957f2d .word 0x4c957f2d
  99987. 08028404 <realloc>:
  99988. 8028404: 4b02 ldr r3, [pc, #8] @ (8028410 <realloc+0xc>)
  99989. 8028406: 460a mov r2, r1
  99990. 8028408: 4601 mov r1, r0
  99991. 802840a: 6818 ldr r0, [r3, #0]
  99992. 802840c: f000 b802 b.w 8028414 <_realloc_r>
  99993. 8028410: 240001d4 .word 0x240001d4
  99994. 08028414 <_realloc_r>:
  99995. 8028414: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  99996. 8028418: 4680 mov r8, r0
  99997. 802841a: 4615 mov r5, r2
  99998. 802841c: 460c mov r4, r1
  99999. 802841e: b921 cbnz r1, 802842a <_realloc_r+0x16>
  100000. 8028420: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  100001. 8028424: 4611 mov r1, r2
  100002. 8028426: f7ff bf23 b.w 8028270 <_malloc_r>
  100003. 802842a: b92a cbnz r2, 8028438 <_realloc_r+0x24>
  100004. 802842c: f002 fb76 bl 802ab1c <_free_r>
  100005. 8028430: 2400 movs r4, #0
  100006. 8028432: 4620 mov r0, r4
  100007. 8028434: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  100008. 8028438: f003 fbb5 bl 802bba6 <_malloc_usable_size_r>
  100009. 802843c: 4285 cmp r5, r0
  100010. 802843e: 4606 mov r6, r0
  100011. 8028440: d802 bhi.n 8028448 <_realloc_r+0x34>
  100012. 8028442: ebb5 0f50 cmp.w r5, r0, lsr #1
  100013. 8028446: d8f4 bhi.n 8028432 <_realloc_r+0x1e>
  100014. 8028448: 4629 mov r1, r5
  100015. 802844a: 4640 mov r0, r8
  100016. 802844c: f7ff ff10 bl 8028270 <_malloc_r>
  100017. 8028450: 4607 mov r7, r0
  100018. 8028452: 2800 cmp r0, #0
  100019. 8028454: d0ec beq.n 8028430 <_realloc_r+0x1c>
  100020. 8028456: 42b5 cmp r5, r6
  100021. 8028458: 462a mov r2, r5
  100022. 802845a: 4621 mov r1, r4
  100023. 802845c: bf28 it cs
  100024. 802845e: 4632 movcs r2, r6
  100025. 8028460: f001 fd45 bl 8029eee <memcpy>
  100026. 8028464: 4621 mov r1, r4
  100027. 8028466: 4640 mov r0, r8
  100028. 8028468: f002 fb58 bl 802ab1c <_free_r>
  100029. 802846c: 463c mov r4, r7
  100030. 802846e: e7e0 b.n 8028432 <_realloc_r+0x1e>
  100031. 08028470 <sulp>:
  100032. 8028470: b570 push {r4, r5, r6, lr}
  100033. 8028472: 4604 mov r4, r0
  100034. 8028474: 460d mov r5, r1
  100035. 8028476: 4616 mov r6, r2
  100036. 8028478: ec45 4b10 vmov d0, r4, r5
  100037. 802847c: f003 fa58 bl 802b930 <__ulp>
  100038. 8028480: b17e cbz r6, 80284a2 <sulp+0x32>
  100039. 8028482: f3c5 530a ubfx r3, r5, #20, #11
  100040. 8028486: f1c3 036b rsb r3, r3, #107 @ 0x6b
  100041. 802848a: 2b00 cmp r3, #0
  100042. 802848c: dd09 ble.n 80284a2 <sulp+0x32>
  100043. 802848e: 051b lsls r3, r3, #20
  100044. 8028490: f103 517f add.w r1, r3, #1069547520 @ 0x3fc00000
  100045. 8028494: 2000 movs r0, #0
  100046. 8028496: f501 1140 add.w r1, r1, #3145728 @ 0x300000
  100047. 802849a: ec41 0b17 vmov d7, r0, r1
  100048. 802849e: ee20 0b07 vmul.f64 d0, d0, d7
  100049. 80284a2: bd70 pop {r4, r5, r6, pc}
  100050. 80284a4: 0000 movs r0, r0
  100051. ...
  100052. 080284a8 <_strtod_l>:
  100053. 80284a8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  100054. 80284ac: ed2d 8b0a vpush {d8-d12}
  100055. 80284b0: b097 sub sp, #92 @ 0x5c
  100056. 80284b2: 4688 mov r8, r1
  100057. 80284b4: 920e str r2, [sp, #56] @ 0x38
  100058. 80284b6: 2200 movs r2, #0
  100059. 80284b8: 9212 str r2, [sp, #72] @ 0x48
  100060. 80284ba: 9005 str r0, [sp, #20]
  100061. 80284bc: f04f 0a00 mov.w sl, #0
  100062. 80284c0: f04f 0b00 mov.w fp, #0
  100063. 80284c4: 460a mov r2, r1
  100064. 80284c6: 9211 str r2, [sp, #68] @ 0x44
  100065. 80284c8: 7811 ldrb r1, [r2, #0]
  100066. 80284ca: 292b cmp r1, #43 @ 0x2b
  100067. 80284cc: d04c beq.n 8028568 <_strtod_l+0xc0>
  100068. 80284ce: d839 bhi.n 8028544 <_strtod_l+0x9c>
  100069. 80284d0: 290d cmp r1, #13
  100070. 80284d2: d833 bhi.n 802853c <_strtod_l+0x94>
  100071. 80284d4: 2908 cmp r1, #8
  100072. 80284d6: d833 bhi.n 8028540 <_strtod_l+0x98>
  100073. 80284d8: 2900 cmp r1, #0
  100074. 80284da: d03c beq.n 8028556 <_strtod_l+0xae>
  100075. 80284dc: 2200 movs r2, #0
  100076. 80284de: 9208 str r2, [sp, #32]
  100077. 80284e0: 9d11 ldr r5, [sp, #68] @ 0x44
  100078. 80284e2: 782a ldrb r2, [r5, #0]
  100079. 80284e4: 2a30 cmp r2, #48 @ 0x30
  100080. 80284e6: f040 80b5 bne.w 8028654 <_strtod_l+0x1ac>
  100081. 80284ea: 786a ldrb r2, [r5, #1]
  100082. 80284ec: f002 02df and.w r2, r2, #223 @ 0xdf
  100083. 80284f0: 2a58 cmp r2, #88 @ 0x58
  100084. 80284f2: d170 bne.n 80285d6 <_strtod_l+0x12e>
  100085. 80284f4: 9302 str r3, [sp, #8]
  100086. 80284f6: 9b08 ldr r3, [sp, #32]
  100087. 80284f8: 9301 str r3, [sp, #4]
  100088. 80284fa: ab12 add r3, sp, #72 @ 0x48
  100089. 80284fc: 9300 str r3, [sp, #0]
  100090. 80284fe: 4a8b ldr r2, [pc, #556] @ (802872c <_strtod_l+0x284>)
  100091. 8028500: 9805 ldr r0, [sp, #20]
  100092. 8028502: ab13 add r3, sp, #76 @ 0x4c
  100093. 8028504: a911 add r1, sp, #68 @ 0x44
  100094. 8028506: f002 fbbb bl 802ac80 <__gethex>
  100095. 802850a: f010 060f ands.w r6, r0, #15
  100096. 802850e: 4604 mov r4, r0
  100097. 8028510: d005 beq.n 802851e <_strtod_l+0x76>
  100098. 8028512: 2e06 cmp r6, #6
  100099. 8028514: d12a bne.n 802856c <_strtod_l+0xc4>
  100100. 8028516: 3501 adds r5, #1
  100101. 8028518: 2300 movs r3, #0
  100102. 802851a: 9511 str r5, [sp, #68] @ 0x44
  100103. 802851c: 9308 str r3, [sp, #32]
  100104. 802851e: 9b0e ldr r3, [sp, #56] @ 0x38
  100105. 8028520: 2b00 cmp r3, #0
  100106. 8028522: f040 852f bne.w 8028f84 <_strtod_l+0xadc>
  100107. 8028526: 9b08 ldr r3, [sp, #32]
  100108. 8028528: ec4b ab10 vmov d0, sl, fp
  100109. 802852c: b1cb cbz r3, 8028562 <_strtod_l+0xba>
  100110. 802852e: eeb1 0b40 vneg.f64 d0, d0
  100111. 8028532: b017 add sp, #92 @ 0x5c
  100112. 8028534: ecbd 8b0a vpop {d8-d12}
  100113. 8028538: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  100114. 802853c: 2920 cmp r1, #32
  100115. 802853e: d1cd bne.n 80284dc <_strtod_l+0x34>
  100116. 8028540: 3201 adds r2, #1
  100117. 8028542: e7c0 b.n 80284c6 <_strtod_l+0x1e>
  100118. 8028544: 292d cmp r1, #45 @ 0x2d
  100119. 8028546: d1c9 bne.n 80284dc <_strtod_l+0x34>
  100120. 8028548: 2101 movs r1, #1
  100121. 802854a: 9108 str r1, [sp, #32]
  100122. 802854c: 1c51 adds r1, r2, #1
  100123. 802854e: 9111 str r1, [sp, #68] @ 0x44
  100124. 8028550: 7852 ldrb r2, [r2, #1]
  100125. 8028552: 2a00 cmp r2, #0
  100126. 8028554: d1c4 bne.n 80284e0 <_strtod_l+0x38>
  100127. 8028556: 9b0e ldr r3, [sp, #56] @ 0x38
  100128. 8028558: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  100129. 802855c: 2b00 cmp r3, #0
  100130. 802855e: f040 850f bne.w 8028f80 <_strtod_l+0xad8>
  100131. 8028562: ec4b ab10 vmov d0, sl, fp
  100132. 8028566: e7e4 b.n 8028532 <_strtod_l+0x8a>
  100133. 8028568: 2100 movs r1, #0
  100134. 802856a: e7ee b.n 802854a <_strtod_l+0xa2>
  100135. 802856c: 9a12 ldr r2, [sp, #72] @ 0x48
  100136. 802856e: b13a cbz r2, 8028580 <_strtod_l+0xd8>
  100137. 8028570: 2135 movs r1, #53 @ 0x35
  100138. 8028572: a814 add r0, sp, #80 @ 0x50
  100139. 8028574: f003 fad3 bl 802bb1e <__copybits>
  100140. 8028578: 9912 ldr r1, [sp, #72] @ 0x48
  100141. 802857a: 9805 ldr r0, [sp, #20]
  100142. 802857c: f002 fea4 bl 802b2c8 <_Bfree>
  100143. 8028580: 1e73 subs r3, r6, #1
  100144. 8028582: 9a13 ldr r2, [sp, #76] @ 0x4c
  100145. 8028584: 2b04 cmp r3, #4
  100146. 8028586: d806 bhi.n 8028596 <_strtod_l+0xee>
  100147. 8028588: e8df f003 tbb [pc, r3]
  100148. 802858c: 201d0314 .word 0x201d0314
  100149. 8028590: 14 .byte 0x14
  100150. 8028591: 00 .byte 0x00
  100151. 8028592: e9dd ab14 ldrd sl, fp, [sp, #80] @ 0x50
  100152. 8028596: 05e3 lsls r3, r4, #23
  100153. 8028598: bf48 it mi
  100154. 802859a: f04b 4b00 orrmi.w fp, fp, #2147483648 @ 0x80000000
  100155. 802859e: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  100156. 80285a2: 0d1b lsrs r3, r3, #20
  100157. 80285a4: 051b lsls r3, r3, #20
  100158. 80285a6: 2b00 cmp r3, #0
  100159. 80285a8: d1b9 bne.n 802851e <_strtod_l+0x76>
  100160. 80285aa: f001 fc73 bl 8029e94 <__errno>
  100161. 80285ae: 2322 movs r3, #34 @ 0x22
  100162. 80285b0: 6003 str r3, [r0, #0]
  100163. 80285b2: e7b4 b.n 802851e <_strtod_l+0x76>
  100164. 80285b4: e9dd a314 ldrd sl, r3, [sp, #80] @ 0x50
  100165. 80285b8: f202 4233 addw r2, r2, #1075 @ 0x433
  100166. 80285bc: f423 1380 bic.w r3, r3, #1048576 @ 0x100000
  100167. 80285c0: ea43 5b02 orr.w fp, r3, r2, lsl #20
  100168. 80285c4: e7e7 b.n 8028596 <_strtod_l+0xee>
  100169. 80285c6: f8df b16c ldr.w fp, [pc, #364] @ 8028734 <_strtod_l+0x28c>
  100170. 80285ca: e7e4 b.n 8028596 <_strtod_l+0xee>
  100171. 80285cc: f06f 4b00 mvn.w fp, #2147483648 @ 0x80000000
  100172. 80285d0: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  100173. 80285d4: e7df b.n 8028596 <_strtod_l+0xee>
  100174. 80285d6: 9b11 ldr r3, [sp, #68] @ 0x44
  100175. 80285d8: 1c5a adds r2, r3, #1
  100176. 80285da: 9211 str r2, [sp, #68] @ 0x44
  100177. 80285dc: 785b ldrb r3, [r3, #1]
  100178. 80285de: 2b30 cmp r3, #48 @ 0x30
  100179. 80285e0: d0f9 beq.n 80285d6 <_strtod_l+0x12e>
  100180. 80285e2: 2b00 cmp r3, #0
  100181. 80285e4: d09b beq.n 802851e <_strtod_l+0x76>
  100182. 80285e6: 2301 movs r3, #1
  100183. 80285e8: 2600 movs r6, #0
  100184. 80285ea: 9307 str r3, [sp, #28]
  100185. 80285ec: 9b11 ldr r3, [sp, #68] @ 0x44
  100186. 80285ee: 930a str r3, [sp, #40] @ 0x28
  100187. 80285f0: 46b1 mov r9, r6
  100188. 80285f2: 4635 mov r5, r6
  100189. 80285f4: 220a movs r2, #10
  100190. 80285f6: 9811 ldr r0, [sp, #68] @ 0x44
  100191. 80285f8: 7804 ldrb r4, [r0, #0]
  100192. 80285fa: f1a4 0330 sub.w r3, r4, #48 @ 0x30
  100193. 80285fe: b2d9 uxtb r1, r3
  100194. 8028600: 2909 cmp r1, #9
  100195. 8028602: d929 bls.n 8028658 <_strtod_l+0x1b0>
  100196. 8028604: 494a ldr r1, [pc, #296] @ (8028730 <_strtod_l+0x288>)
  100197. 8028606: 2201 movs r2, #1
  100198. 8028608: f001 fb82 bl 8029d10 <strncmp>
  100199. 802860c: b378 cbz r0, 802866e <_strtod_l+0x1c6>
  100200. 802860e: 2000 movs r0, #0
  100201. 8028610: 4622 mov r2, r4
  100202. 8028612: 462b mov r3, r5
  100203. 8028614: 4607 mov r7, r0
  100204. 8028616: 9006 str r0, [sp, #24]
  100205. 8028618: 2a65 cmp r2, #101 @ 0x65
  100206. 802861a: d001 beq.n 8028620 <_strtod_l+0x178>
  100207. 802861c: 2a45 cmp r2, #69 @ 0x45
  100208. 802861e: d117 bne.n 8028650 <_strtod_l+0x1a8>
  100209. 8028620: b91b cbnz r3, 802862a <_strtod_l+0x182>
  100210. 8028622: 9b07 ldr r3, [sp, #28]
  100211. 8028624: 4303 orrs r3, r0
  100212. 8028626: d096 beq.n 8028556 <_strtod_l+0xae>
  100213. 8028628: 2300 movs r3, #0
  100214. 802862a: f8dd 8044 ldr.w r8, [sp, #68] @ 0x44
  100215. 802862e: f108 0201 add.w r2, r8, #1
  100216. 8028632: 9211 str r2, [sp, #68] @ 0x44
  100217. 8028634: f898 2001 ldrb.w r2, [r8, #1]
  100218. 8028638: 2a2b cmp r2, #43 @ 0x2b
  100219. 802863a: d06b beq.n 8028714 <_strtod_l+0x26c>
  100220. 802863c: 2a2d cmp r2, #45 @ 0x2d
  100221. 802863e: d071 beq.n 8028724 <_strtod_l+0x27c>
  100222. 8028640: f04f 0e00 mov.w lr, #0
  100223. 8028644: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  100224. 8028648: 2c09 cmp r4, #9
  100225. 802864a: d979 bls.n 8028740 <_strtod_l+0x298>
  100226. 802864c: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  100227. 8028650: 2400 movs r4, #0
  100228. 8028652: e094 b.n 802877e <_strtod_l+0x2d6>
  100229. 8028654: 2300 movs r3, #0
  100230. 8028656: e7c7 b.n 80285e8 <_strtod_l+0x140>
  100231. 8028658: 2d08 cmp r5, #8
  100232. 802865a: f100 0001 add.w r0, r0, #1
  100233. 802865e: bfd4 ite le
  100234. 8028660: fb02 3909 mlale r9, r2, r9, r3
  100235. 8028664: fb02 3606 mlagt r6, r2, r6, r3
  100236. 8028668: 3501 adds r5, #1
  100237. 802866a: 9011 str r0, [sp, #68] @ 0x44
  100238. 802866c: e7c3 b.n 80285f6 <_strtod_l+0x14e>
  100239. 802866e: 9b11 ldr r3, [sp, #68] @ 0x44
  100240. 8028670: 1c5a adds r2, r3, #1
  100241. 8028672: 9211 str r2, [sp, #68] @ 0x44
  100242. 8028674: 785a ldrb r2, [r3, #1]
  100243. 8028676: b375 cbz r5, 80286d6 <_strtod_l+0x22e>
  100244. 8028678: 4607 mov r7, r0
  100245. 802867a: 462b mov r3, r5
  100246. 802867c: f1a2 0130 sub.w r1, r2, #48 @ 0x30
  100247. 8028680: 2909 cmp r1, #9
  100248. 8028682: d913 bls.n 80286ac <_strtod_l+0x204>
  100249. 8028684: 2101 movs r1, #1
  100250. 8028686: 9106 str r1, [sp, #24]
  100251. 8028688: e7c6 b.n 8028618 <_strtod_l+0x170>
  100252. 802868a: 9b11 ldr r3, [sp, #68] @ 0x44
  100253. 802868c: 1c5a adds r2, r3, #1
  100254. 802868e: 9211 str r2, [sp, #68] @ 0x44
  100255. 8028690: 785a ldrb r2, [r3, #1]
  100256. 8028692: 3001 adds r0, #1
  100257. 8028694: 2a30 cmp r2, #48 @ 0x30
  100258. 8028696: d0f8 beq.n 802868a <_strtod_l+0x1e2>
  100259. 8028698: f1a2 0331 sub.w r3, r2, #49 @ 0x31
  100260. 802869c: 2b08 cmp r3, #8
  100261. 802869e: f200 8476 bhi.w 8028f8e <_strtod_l+0xae6>
  100262. 80286a2: 9b11 ldr r3, [sp, #68] @ 0x44
  100263. 80286a4: 930a str r3, [sp, #40] @ 0x28
  100264. 80286a6: 4607 mov r7, r0
  100265. 80286a8: 2000 movs r0, #0
  100266. 80286aa: 4603 mov r3, r0
  100267. 80286ac: 3a30 subs r2, #48 @ 0x30
  100268. 80286ae: f100 0101 add.w r1, r0, #1
  100269. 80286b2: d023 beq.n 80286fc <_strtod_l+0x254>
  100270. 80286b4: 440f add r7, r1
  100271. 80286b6: eb00 0c03 add.w ip, r0, r3
  100272. 80286ba: 4619 mov r1, r3
  100273. 80286bc: 240a movs r4, #10
  100274. 80286be: 4561 cmp r1, ip
  100275. 80286c0: d10b bne.n 80286da <_strtod_l+0x232>
  100276. 80286c2: 1c5c adds r4, r3, #1
  100277. 80286c4: 4403 add r3, r0
  100278. 80286c6: 2b08 cmp r3, #8
  100279. 80286c8: 4404 add r4, r0
  100280. 80286ca: dc11 bgt.n 80286f0 <_strtod_l+0x248>
  100281. 80286cc: 230a movs r3, #10
  100282. 80286ce: fb03 2909 mla r9, r3, r9, r2
  100283. 80286d2: 2100 movs r1, #0
  100284. 80286d4: e013 b.n 80286fe <_strtod_l+0x256>
  100285. 80286d6: 4628 mov r0, r5
  100286. 80286d8: e7dc b.n 8028694 <_strtod_l+0x1ec>
  100287. 80286da: 2908 cmp r1, #8
  100288. 80286dc: f101 0101 add.w r1, r1, #1
  100289. 80286e0: dc02 bgt.n 80286e8 <_strtod_l+0x240>
  100290. 80286e2: fb04 f909 mul.w r9, r4, r9
  100291. 80286e6: e7ea b.n 80286be <_strtod_l+0x216>
  100292. 80286e8: 2910 cmp r1, #16
  100293. 80286ea: bfd8 it le
  100294. 80286ec: 4366 mulle r6, r4
  100295. 80286ee: e7e6 b.n 80286be <_strtod_l+0x216>
  100296. 80286f0: 2b0f cmp r3, #15
  100297. 80286f2: dcee bgt.n 80286d2 <_strtod_l+0x22a>
  100298. 80286f4: 230a movs r3, #10
  100299. 80286f6: fb03 2606 mla r6, r3, r6, r2
  100300. 80286fa: e7ea b.n 80286d2 <_strtod_l+0x22a>
  100301. 80286fc: 461c mov r4, r3
  100302. 80286fe: 9b11 ldr r3, [sp, #68] @ 0x44
  100303. 8028700: 1c5a adds r2, r3, #1
  100304. 8028702: 9211 str r2, [sp, #68] @ 0x44
  100305. 8028704: 785a ldrb r2, [r3, #1]
  100306. 8028706: 4608 mov r0, r1
  100307. 8028708: 4623 mov r3, r4
  100308. 802870a: e7b7 b.n 802867c <_strtod_l+0x1d4>
  100309. 802870c: 2301 movs r3, #1
  100310. 802870e: 2700 movs r7, #0
  100311. 8028710: 9306 str r3, [sp, #24]
  100312. 8028712: e786 b.n 8028622 <_strtod_l+0x17a>
  100313. 8028714: f04f 0e00 mov.w lr, #0
  100314. 8028718: f108 0202 add.w r2, r8, #2
  100315. 802871c: 9211 str r2, [sp, #68] @ 0x44
  100316. 802871e: f898 2002 ldrb.w r2, [r8, #2]
  100317. 8028722: e78f b.n 8028644 <_strtod_l+0x19c>
  100318. 8028724: f04f 0e01 mov.w lr, #1
  100319. 8028728: e7f6 b.n 8028718 <_strtod_l+0x270>
  100320. 802872a: bf00 nop
  100321. 802872c: 08030d04 .word 0x08030d04
  100322. 8028730: 08030ced .word 0x08030ced
  100323. 8028734: 7ff00000 .word 0x7ff00000
  100324. 8028738: 9a11 ldr r2, [sp, #68] @ 0x44
  100325. 802873a: 1c54 adds r4, r2, #1
  100326. 802873c: 9411 str r4, [sp, #68] @ 0x44
  100327. 802873e: 7852 ldrb r2, [r2, #1]
  100328. 8028740: 2a30 cmp r2, #48 @ 0x30
  100329. 8028742: d0f9 beq.n 8028738 <_strtod_l+0x290>
  100330. 8028744: f1a2 0431 sub.w r4, r2, #49 @ 0x31
  100331. 8028748: 2c08 cmp r4, #8
  100332. 802874a: d881 bhi.n 8028650 <_strtod_l+0x1a8>
  100333. 802874c: f1a2 0c30 sub.w ip, r2, #48 @ 0x30
  100334. 8028750: 9a11 ldr r2, [sp, #68] @ 0x44
  100335. 8028752: 9209 str r2, [sp, #36] @ 0x24
  100336. 8028754: 9a11 ldr r2, [sp, #68] @ 0x44
  100337. 8028756: 1c51 adds r1, r2, #1
  100338. 8028758: 9111 str r1, [sp, #68] @ 0x44
  100339. 802875a: 7852 ldrb r2, [r2, #1]
  100340. 802875c: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  100341. 8028760: 2c09 cmp r4, #9
  100342. 8028762: d938 bls.n 80287d6 <_strtod_l+0x32e>
  100343. 8028764: 9c09 ldr r4, [sp, #36] @ 0x24
  100344. 8028766: 1b0c subs r4, r1, r4
  100345. 8028768: 2c08 cmp r4, #8
  100346. 802876a: f644 641f movw r4, #19999 @ 0x4e1f
  100347. 802876e: dc02 bgt.n 8028776 <_strtod_l+0x2ce>
  100348. 8028770: 4564 cmp r4, ip
  100349. 8028772: bfa8 it ge
  100350. 8028774: 4664 movge r4, ip
  100351. 8028776: f1be 0f00 cmp.w lr, #0
  100352. 802877a: d000 beq.n 802877e <_strtod_l+0x2d6>
  100353. 802877c: 4264 negs r4, r4
  100354. 802877e: 2b00 cmp r3, #0
  100355. 8028780: d14e bne.n 8028820 <_strtod_l+0x378>
  100356. 8028782: 9b07 ldr r3, [sp, #28]
  100357. 8028784: 4318 orrs r0, r3
  100358. 8028786: f47f aeca bne.w 802851e <_strtod_l+0x76>
  100359. 802878a: 9b06 ldr r3, [sp, #24]
  100360. 802878c: 2b00 cmp r3, #0
  100361. 802878e: f47f aee2 bne.w 8028556 <_strtod_l+0xae>
  100362. 8028792: 2a69 cmp r2, #105 @ 0x69
  100363. 8028794: d027 beq.n 80287e6 <_strtod_l+0x33e>
  100364. 8028796: dc24 bgt.n 80287e2 <_strtod_l+0x33a>
  100365. 8028798: 2a49 cmp r2, #73 @ 0x49
  100366. 802879a: d024 beq.n 80287e6 <_strtod_l+0x33e>
  100367. 802879c: 2a4e cmp r2, #78 @ 0x4e
  100368. 802879e: f47f aeda bne.w 8028556 <_strtod_l+0xae>
  100369. 80287a2: 4997 ldr r1, [pc, #604] @ (8028a00 <_strtod_l+0x558>)
  100370. 80287a4: a811 add r0, sp, #68 @ 0x44
  100371. 80287a6: f002 fc8d bl 802b0c4 <__match>
  100372. 80287aa: 2800 cmp r0, #0
  100373. 80287ac: f43f aed3 beq.w 8028556 <_strtod_l+0xae>
  100374. 80287b0: 9b11 ldr r3, [sp, #68] @ 0x44
  100375. 80287b2: 781b ldrb r3, [r3, #0]
  100376. 80287b4: 2b28 cmp r3, #40 @ 0x28
  100377. 80287b6: d12d bne.n 8028814 <_strtod_l+0x36c>
  100378. 80287b8: 4992 ldr r1, [pc, #584] @ (8028a04 <_strtod_l+0x55c>)
  100379. 80287ba: aa14 add r2, sp, #80 @ 0x50
  100380. 80287bc: a811 add r0, sp, #68 @ 0x44
  100381. 80287be: f002 fc95 bl 802b0ec <__hexnan>
  100382. 80287c2: 2805 cmp r0, #5
  100383. 80287c4: d126 bne.n 8028814 <_strtod_l+0x36c>
  100384. 80287c6: 9b15 ldr r3, [sp, #84] @ 0x54
  100385. 80287c8: f8dd a050 ldr.w sl, [sp, #80] @ 0x50
  100386. 80287cc: f043 4bff orr.w fp, r3, #2139095040 @ 0x7f800000
  100387. 80287d0: f44b 0be0 orr.w fp, fp, #7340032 @ 0x700000
  100388. 80287d4: e6a3 b.n 802851e <_strtod_l+0x76>
  100389. 80287d6: 240a movs r4, #10
  100390. 80287d8: fb04 2c0c mla ip, r4, ip, r2
  100391. 80287dc: f1ac 0c30 sub.w ip, ip, #48 @ 0x30
  100392. 80287e0: e7b8 b.n 8028754 <_strtod_l+0x2ac>
  100393. 80287e2: 2a6e cmp r2, #110 @ 0x6e
  100394. 80287e4: e7db b.n 802879e <_strtod_l+0x2f6>
  100395. 80287e6: 4988 ldr r1, [pc, #544] @ (8028a08 <_strtod_l+0x560>)
  100396. 80287e8: a811 add r0, sp, #68 @ 0x44
  100397. 80287ea: f002 fc6b bl 802b0c4 <__match>
  100398. 80287ee: 2800 cmp r0, #0
  100399. 80287f0: f43f aeb1 beq.w 8028556 <_strtod_l+0xae>
  100400. 80287f4: 9b11 ldr r3, [sp, #68] @ 0x44
  100401. 80287f6: 4985 ldr r1, [pc, #532] @ (8028a0c <_strtod_l+0x564>)
  100402. 80287f8: 3b01 subs r3, #1
  100403. 80287fa: a811 add r0, sp, #68 @ 0x44
  100404. 80287fc: 9311 str r3, [sp, #68] @ 0x44
  100405. 80287fe: f002 fc61 bl 802b0c4 <__match>
  100406. 8028802: b910 cbnz r0, 802880a <_strtod_l+0x362>
  100407. 8028804: 9b11 ldr r3, [sp, #68] @ 0x44
  100408. 8028806: 3301 adds r3, #1
  100409. 8028808: 9311 str r3, [sp, #68] @ 0x44
  100410. 802880a: f8df b214 ldr.w fp, [pc, #532] @ 8028a20 <_strtod_l+0x578>
  100411. 802880e: f04f 0a00 mov.w sl, #0
  100412. 8028812: e684 b.n 802851e <_strtod_l+0x76>
  100413. 8028814: 487e ldr r0, [pc, #504] @ (8028a10 <_strtod_l+0x568>)
  100414. 8028816: f001 fb7b bl 8029f10 <nan>
  100415. 802881a: ec5b ab10 vmov sl, fp, d0
  100416. 802881e: e67e b.n 802851e <_strtod_l+0x76>
  100417. 8028820: ee07 9a90 vmov s15, r9
  100418. 8028824: 1be2 subs r2, r4, r7
  100419. 8028826: eeb8 7b67 vcvt.f64.u32 d7, s15
  100420. 802882a: 2d00 cmp r5, #0
  100421. 802882c: bf08 it eq
  100422. 802882e: 461d moveq r5, r3
  100423. 8028830: 2b10 cmp r3, #16
  100424. 8028832: 9209 str r2, [sp, #36] @ 0x24
  100425. 8028834: 461a mov r2, r3
  100426. 8028836: bfa8 it ge
  100427. 8028838: 2210 movge r2, #16
  100428. 802883a: 2b09 cmp r3, #9
  100429. 802883c: ec5b ab17 vmov sl, fp, d7
  100430. 8028840: dc15 bgt.n 802886e <_strtod_l+0x3c6>
  100431. 8028842: 1be1 subs r1, r4, r7
  100432. 8028844: 2900 cmp r1, #0
  100433. 8028846: f43f ae6a beq.w 802851e <_strtod_l+0x76>
  100434. 802884a: eba4 0107 sub.w r1, r4, r7
  100435. 802884e: dd72 ble.n 8028936 <_strtod_l+0x48e>
  100436. 8028850: 2916 cmp r1, #22
  100437. 8028852: dc59 bgt.n 8028908 <_strtod_l+0x460>
  100438. 8028854: 4b6f ldr r3, [pc, #444] @ (8028a14 <_strtod_l+0x56c>)
  100439. 8028856: 9a09 ldr r2, [sp, #36] @ 0x24
  100440. 8028858: eb03 03c2 add.w r3, r3, r2, lsl #3
  100441. 802885c: ed93 7b00 vldr d7, [r3]
  100442. 8028860: ec4b ab16 vmov d6, sl, fp
  100443. 8028864: ee27 7b06 vmul.f64 d7, d7, d6
  100444. 8028868: ec5b ab17 vmov sl, fp, d7
  100445. 802886c: e657 b.n 802851e <_strtod_l+0x76>
  100446. 802886e: 4969 ldr r1, [pc, #420] @ (8028a14 <_strtod_l+0x56c>)
  100447. 8028870: eb01 01c2 add.w r1, r1, r2, lsl #3
  100448. 8028874: ed11 5b12 vldr d5, [r1, #-72] @ 0xffffffb8
  100449. 8028878: ee06 6a90 vmov s13, r6
  100450. 802887c: 2b0f cmp r3, #15
  100451. 802887e: eeb8 6b66 vcvt.f64.u32 d6, s13
  100452. 8028882: eea7 6b05 vfma.f64 d6, d7, d5
  100453. 8028886: ec5b ab16 vmov sl, fp, d6
  100454. 802888a: ddda ble.n 8028842 <_strtod_l+0x39a>
  100455. 802888c: 1a9a subs r2, r3, r2
  100456. 802888e: 1be1 subs r1, r4, r7
  100457. 8028890: 440a add r2, r1
  100458. 8028892: 2a00 cmp r2, #0
  100459. 8028894: f340 8094 ble.w 80289c0 <_strtod_l+0x518>
  100460. 8028898: f012 000f ands.w r0, r2, #15
  100461. 802889c: d00a beq.n 80288b4 <_strtod_l+0x40c>
  100462. 802889e: 495d ldr r1, [pc, #372] @ (8028a14 <_strtod_l+0x56c>)
  100463. 80288a0: eb01 01c0 add.w r1, r1, r0, lsl #3
  100464. 80288a4: ed91 7b00 vldr d7, [r1]
  100465. 80288a8: ec4b ab16 vmov d6, sl, fp
  100466. 80288ac: ee27 7b06 vmul.f64 d7, d7, d6
  100467. 80288b0: ec5b ab17 vmov sl, fp, d7
  100468. 80288b4: f032 020f bics.w r2, r2, #15
  100469. 80288b8: d073 beq.n 80289a2 <_strtod_l+0x4fa>
  100470. 80288ba: f5b2 7f9a cmp.w r2, #308 @ 0x134
  100471. 80288be: dd47 ble.n 8028950 <_strtod_l+0x4a8>
  100472. 80288c0: 2400 movs r4, #0
  100473. 80288c2: 4625 mov r5, r4
  100474. 80288c4: 9407 str r4, [sp, #28]
  100475. 80288c6: 4626 mov r6, r4
  100476. 80288c8: 9a05 ldr r2, [sp, #20]
  100477. 80288ca: f8df b154 ldr.w fp, [pc, #340] @ 8028a20 <_strtod_l+0x578>
  100478. 80288ce: 2322 movs r3, #34 @ 0x22
  100479. 80288d0: 6013 str r3, [r2, #0]
  100480. 80288d2: f04f 0a00 mov.w sl, #0
  100481. 80288d6: 9b07 ldr r3, [sp, #28]
  100482. 80288d8: 2b00 cmp r3, #0
  100483. 80288da: f43f ae20 beq.w 802851e <_strtod_l+0x76>
  100484. 80288de: 9912 ldr r1, [sp, #72] @ 0x48
  100485. 80288e0: 9805 ldr r0, [sp, #20]
  100486. 80288e2: f002 fcf1 bl 802b2c8 <_Bfree>
  100487. 80288e6: 9805 ldr r0, [sp, #20]
  100488. 80288e8: 4631 mov r1, r6
  100489. 80288ea: f002 fced bl 802b2c8 <_Bfree>
  100490. 80288ee: 9805 ldr r0, [sp, #20]
  100491. 80288f0: 4629 mov r1, r5
  100492. 80288f2: f002 fce9 bl 802b2c8 <_Bfree>
  100493. 80288f6: 9907 ldr r1, [sp, #28]
  100494. 80288f8: 9805 ldr r0, [sp, #20]
  100495. 80288fa: f002 fce5 bl 802b2c8 <_Bfree>
  100496. 80288fe: 9805 ldr r0, [sp, #20]
  100497. 8028900: 4621 mov r1, r4
  100498. 8028902: f002 fce1 bl 802b2c8 <_Bfree>
  100499. 8028906: e60a b.n 802851e <_strtod_l+0x76>
  100500. 8028908: f1c3 0125 rsb r1, r3, #37 @ 0x25
  100501. 802890c: 1be0 subs r0, r4, r7
  100502. 802890e: 4281 cmp r1, r0
  100503. 8028910: dbbc blt.n 802888c <_strtod_l+0x3e4>
  100504. 8028912: 4a40 ldr r2, [pc, #256] @ (8028a14 <_strtod_l+0x56c>)
  100505. 8028914: f1c3 030f rsb r3, r3, #15
  100506. 8028918: eb02 01c3 add.w r1, r2, r3, lsl #3
  100507. 802891c: ed91 7b00 vldr d7, [r1]
  100508. 8028920: 9909 ldr r1, [sp, #36] @ 0x24
  100509. 8028922: ec4b ab16 vmov d6, sl, fp
  100510. 8028926: 1acb subs r3, r1, r3
  100511. 8028928: eb02 02c3 add.w r2, r2, r3, lsl #3
  100512. 802892c: ee27 7b06 vmul.f64 d7, d7, d6
  100513. 8028930: ed92 6b00 vldr d6, [r2]
  100514. 8028934: e796 b.n 8028864 <_strtod_l+0x3bc>
  100515. 8028936: 3116 adds r1, #22
  100516. 8028938: dba8 blt.n 802888c <_strtod_l+0x3e4>
  100517. 802893a: 4b36 ldr r3, [pc, #216] @ (8028a14 <_strtod_l+0x56c>)
  100518. 802893c: 1b3c subs r4, r7, r4
  100519. 802893e: eb03 04c4 add.w r4, r3, r4, lsl #3
  100520. 8028942: ed94 7b00 vldr d7, [r4]
  100521. 8028946: ec4b ab16 vmov d6, sl, fp
  100522. 802894a: ee86 7b07 vdiv.f64 d7, d6, d7
  100523. 802894e: e78b b.n 8028868 <_strtod_l+0x3c0>
  100524. 8028950: 2000 movs r0, #0
  100525. 8028952: ec4b ab17 vmov d7, sl, fp
  100526. 8028956: 4e30 ldr r6, [pc, #192] @ (8028a18 <_strtod_l+0x570>)
  100527. 8028958: 1112 asrs r2, r2, #4
  100528. 802895a: 4601 mov r1, r0
  100529. 802895c: 2a01 cmp r2, #1
  100530. 802895e: dc23 bgt.n 80289a8 <_strtod_l+0x500>
  100531. 8028960: b108 cbz r0, 8028966 <_strtod_l+0x4be>
  100532. 8028962: ec5b ab17 vmov sl, fp, d7
  100533. 8028966: 4a2c ldr r2, [pc, #176] @ (8028a18 <_strtod_l+0x570>)
  100534. 8028968: 482c ldr r0, [pc, #176] @ (8028a1c <_strtod_l+0x574>)
  100535. 802896a: eb02 02c1 add.w r2, r2, r1, lsl #3
  100536. 802896e: ed92 7b00 vldr d7, [r2]
  100537. 8028972: f1ab 7b54 sub.w fp, fp, #55574528 @ 0x3500000
  100538. 8028976: ec4b ab16 vmov d6, sl, fp
  100539. 802897a: 4a29 ldr r2, [pc, #164] @ (8028a20 <_strtod_l+0x578>)
  100540. 802897c: ee27 7b06 vmul.f64 d7, d7, d6
  100541. 8028980: ee17 1a90 vmov r1, s15
  100542. 8028984: 400a ands r2, r1
  100543. 8028986: 4282 cmp r2, r0
  100544. 8028988: ec5b ab17 vmov sl, fp, d7
  100545. 802898c: d898 bhi.n 80288c0 <_strtod_l+0x418>
  100546. 802898e: f5a0 1080 sub.w r0, r0, #1048576 @ 0x100000
  100547. 8028992: 4282 cmp r2, r0
  100548. 8028994: bf86 itte hi
  100549. 8028996: f8df b08c ldrhi.w fp, [pc, #140] @ 8028a24 <_strtod_l+0x57c>
  100550. 802899a: f04f 3aff movhi.w sl, #4294967295 @ 0xffffffff
  100551. 802899e: f101 7b54 addls.w fp, r1, #55574528 @ 0x3500000
  100552. 80289a2: 2200 movs r2, #0
  100553. 80289a4: 9206 str r2, [sp, #24]
  100554. 80289a6: e076 b.n 8028a96 <_strtod_l+0x5ee>
  100555. 80289a8: f012 0f01 tst.w r2, #1
  100556. 80289ac: d004 beq.n 80289b8 <_strtod_l+0x510>
  100557. 80289ae: ed96 6b00 vldr d6, [r6]
  100558. 80289b2: 2001 movs r0, #1
  100559. 80289b4: ee27 7b06 vmul.f64 d7, d7, d6
  100560. 80289b8: 3101 adds r1, #1
  100561. 80289ba: 1052 asrs r2, r2, #1
  100562. 80289bc: 3608 adds r6, #8
  100563. 80289be: e7cd b.n 802895c <_strtod_l+0x4b4>
  100564. 80289c0: d0ef beq.n 80289a2 <_strtod_l+0x4fa>
  100565. 80289c2: 4252 negs r2, r2
  100566. 80289c4: f012 000f ands.w r0, r2, #15
  100567. 80289c8: d00a beq.n 80289e0 <_strtod_l+0x538>
  100568. 80289ca: 4912 ldr r1, [pc, #72] @ (8028a14 <_strtod_l+0x56c>)
  100569. 80289cc: eb01 01c0 add.w r1, r1, r0, lsl #3
  100570. 80289d0: ed91 7b00 vldr d7, [r1]
  100571. 80289d4: ec4b ab16 vmov d6, sl, fp
  100572. 80289d8: ee86 7b07 vdiv.f64 d7, d6, d7
  100573. 80289dc: ec5b ab17 vmov sl, fp, d7
  100574. 80289e0: 1112 asrs r2, r2, #4
  100575. 80289e2: d0de beq.n 80289a2 <_strtod_l+0x4fa>
  100576. 80289e4: 2a1f cmp r2, #31
  100577. 80289e6: dd1f ble.n 8028a28 <_strtod_l+0x580>
  100578. 80289e8: 2400 movs r4, #0
  100579. 80289ea: 4625 mov r5, r4
  100580. 80289ec: 9407 str r4, [sp, #28]
  100581. 80289ee: 4626 mov r6, r4
  100582. 80289f0: 9a05 ldr r2, [sp, #20]
  100583. 80289f2: 2322 movs r3, #34 @ 0x22
  100584. 80289f4: f04f 0a00 mov.w sl, #0
  100585. 80289f8: f04f 0b00 mov.w fp, #0
  100586. 80289fc: 6013 str r3, [r2, #0]
  100587. 80289fe: e76a b.n 80288d6 <_strtod_l+0x42e>
  100588. 8028a00: 08030e4e .word 0x08030e4e
  100589. 8028a04: 08030cf0 .word 0x08030cf0
  100590. 8028a08: 08030e46 .word 0x08030e46
  100591. 8028a0c: 08030ebc .word 0x08030ebc
  100592. 8028a10: 08030eb8 .word 0x08030eb8
  100593. 8028a14: 08031020 .word 0x08031020
  100594. 8028a18: 08030ff8 .word 0x08030ff8
  100595. 8028a1c: 7ca00000 .word 0x7ca00000
  100596. 8028a20: 7ff00000 .word 0x7ff00000
  100597. 8028a24: 7fefffff .word 0x7fefffff
  100598. 8028a28: f012 0110 ands.w r1, r2, #16
  100599. 8028a2c: bf18 it ne
  100600. 8028a2e: 216a movne r1, #106 @ 0x6a
  100601. 8028a30: 9106 str r1, [sp, #24]
  100602. 8028a32: ec4b ab17 vmov d7, sl, fp
  100603. 8028a36: 49b0 ldr r1, [pc, #704] @ (8028cf8 <_strtod_l+0x850>)
  100604. 8028a38: 2000 movs r0, #0
  100605. 8028a3a: 07d6 lsls r6, r2, #31
  100606. 8028a3c: d504 bpl.n 8028a48 <_strtod_l+0x5a0>
  100607. 8028a3e: ed91 6b00 vldr d6, [r1]
  100608. 8028a42: 2001 movs r0, #1
  100609. 8028a44: ee27 7b06 vmul.f64 d7, d7, d6
  100610. 8028a48: 1052 asrs r2, r2, #1
  100611. 8028a4a: f101 0108 add.w r1, r1, #8
  100612. 8028a4e: d1f4 bne.n 8028a3a <_strtod_l+0x592>
  100613. 8028a50: b108 cbz r0, 8028a56 <_strtod_l+0x5ae>
  100614. 8028a52: ec5b ab17 vmov sl, fp, d7
  100615. 8028a56: 9a06 ldr r2, [sp, #24]
  100616. 8028a58: b1b2 cbz r2, 8028a88 <_strtod_l+0x5e0>
  100617. 8028a5a: f3cb 510a ubfx r1, fp, #20, #11
  100618. 8028a5e: f1c1 026b rsb r2, r1, #107 @ 0x6b
  100619. 8028a62: 2a00 cmp r2, #0
  100620. 8028a64: 4658 mov r0, fp
  100621. 8028a66: dd0f ble.n 8028a88 <_strtod_l+0x5e0>
  100622. 8028a68: 2a1f cmp r2, #31
  100623. 8028a6a: dd55 ble.n 8028b18 <_strtod_l+0x670>
  100624. 8028a6c: 2a34 cmp r2, #52 @ 0x34
  100625. 8028a6e: bfde ittt le
  100626. 8028a70: f04f 32ff movle.w r2, #4294967295 @ 0xffffffff
  100627. 8028a74: f1c1 014b rsble r1, r1, #75 @ 0x4b
  100628. 8028a78: 408a lslle r2, r1
  100629. 8028a7a: f04f 0a00 mov.w sl, #0
  100630. 8028a7e: bfcc ite gt
  100631. 8028a80: f04f 7b5c movgt.w fp, #57671680 @ 0x3700000
  100632. 8028a84: ea02 0b00 andle.w fp, r2, r0
  100633. 8028a88: ec4b ab17 vmov d7, sl, fp
  100634. 8028a8c: eeb5 7b40 vcmp.f64 d7, #0.0
  100635. 8028a90: eef1 fa10 vmrs APSR_nzcv, fpscr
  100636. 8028a94: d0a8 beq.n 80289e8 <_strtod_l+0x540>
  100637. 8028a96: 990a ldr r1, [sp, #40] @ 0x28
  100638. 8028a98: 9805 ldr r0, [sp, #20]
  100639. 8028a9a: f8cd 9000 str.w r9, [sp]
  100640. 8028a9e: 462a mov r2, r5
  100641. 8028aa0: f002 fc7a bl 802b398 <__s2b>
  100642. 8028aa4: 9007 str r0, [sp, #28]
  100643. 8028aa6: 2800 cmp r0, #0
  100644. 8028aa8: f43f af0a beq.w 80288c0 <_strtod_l+0x418>
  100645. 8028aac: 9b09 ldr r3, [sp, #36] @ 0x24
  100646. 8028aae: 1b3f subs r7, r7, r4
  100647. 8028ab0: 2b00 cmp r3, #0
  100648. 8028ab2: bfb4 ite lt
  100649. 8028ab4: 463b movlt r3, r7
  100650. 8028ab6: 2300 movge r3, #0
  100651. 8028ab8: 930a str r3, [sp, #40] @ 0x28
  100652. 8028aba: 9b09 ldr r3, [sp, #36] @ 0x24
  100653. 8028abc: ed9f bb8a vldr d11, [pc, #552] @ 8028ce8 <_strtod_l+0x840>
  100654. 8028ac0: ea23 73e3 bic.w r3, r3, r3, asr #31
  100655. 8028ac4: 2400 movs r4, #0
  100656. 8028ac6: 930d str r3, [sp, #52] @ 0x34
  100657. 8028ac8: 4625 mov r5, r4
  100658. 8028aca: 9b07 ldr r3, [sp, #28]
  100659. 8028acc: 9805 ldr r0, [sp, #20]
  100660. 8028ace: 6859 ldr r1, [r3, #4]
  100661. 8028ad0: f002 fbba bl 802b248 <_Balloc>
  100662. 8028ad4: 4606 mov r6, r0
  100663. 8028ad6: 2800 cmp r0, #0
  100664. 8028ad8: f43f aef6 beq.w 80288c8 <_strtod_l+0x420>
  100665. 8028adc: 9b07 ldr r3, [sp, #28]
  100666. 8028ade: 691a ldr r2, [r3, #16]
  100667. 8028ae0: ec4b ab19 vmov d9, sl, fp
  100668. 8028ae4: 3202 adds r2, #2
  100669. 8028ae6: f103 010c add.w r1, r3, #12
  100670. 8028aea: 0092 lsls r2, r2, #2
  100671. 8028aec: 300c adds r0, #12
  100672. 8028aee: f001 f9fe bl 8029eee <memcpy>
  100673. 8028af2: eeb0 0b49 vmov.f64 d0, d9
  100674. 8028af6: 9805 ldr r0, [sp, #20]
  100675. 8028af8: aa14 add r2, sp, #80 @ 0x50
  100676. 8028afa: a913 add r1, sp, #76 @ 0x4c
  100677. 8028afc: f002 ff88 bl 802ba10 <__d2b>
  100678. 8028b00: 9012 str r0, [sp, #72] @ 0x48
  100679. 8028b02: 2800 cmp r0, #0
  100680. 8028b04: f43f aee0 beq.w 80288c8 <_strtod_l+0x420>
  100681. 8028b08: 9805 ldr r0, [sp, #20]
  100682. 8028b0a: 2101 movs r1, #1
  100683. 8028b0c: f002 fcda bl 802b4c4 <__i2b>
  100684. 8028b10: 4605 mov r5, r0
  100685. 8028b12: b940 cbnz r0, 8028b26 <_strtod_l+0x67e>
  100686. 8028b14: 2500 movs r5, #0
  100687. 8028b16: e6d7 b.n 80288c8 <_strtod_l+0x420>
  100688. 8028b18: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  100689. 8028b1c: fa01 f202 lsl.w r2, r1, r2
  100690. 8028b20: ea02 0a0a and.w sl, r2, sl
  100691. 8028b24: e7b0 b.n 8028a88 <_strtod_l+0x5e0>
  100692. 8028b26: 9f13 ldr r7, [sp, #76] @ 0x4c
  100693. 8028b28: 9a14 ldr r2, [sp, #80] @ 0x50
  100694. 8028b2a: 2f00 cmp r7, #0
  100695. 8028b2c: bfab itete ge
  100696. 8028b2e: 9b0a ldrge r3, [sp, #40] @ 0x28
  100697. 8028b30: 9b0d ldrlt r3, [sp, #52] @ 0x34
  100698. 8028b32: f8dd 8034 ldrge.w r8, [sp, #52] @ 0x34
  100699. 8028b36: f8dd 9028 ldrlt.w r9, [sp, #40] @ 0x28
  100700. 8028b3a: bfac ite ge
  100701. 8028b3c: eb07 0903 addge.w r9, r7, r3
  100702. 8028b40: eba3 0807 sublt.w r8, r3, r7
  100703. 8028b44: 9b06 ldr r3, [sp, #24]
  100704. 8028b46: 1aff subs r7, r7, r3
  100705. 8028b48: 4417 add r7, r2
  100706. 8028b4a: f1c2 0336 rsb r3, r2, #54 @ 0x36
  100707. 8028b4e: 4a6b ldr r2, [pc, #428] @ (8028cfc <_strtod_l+0x854>)
  100708. 8028b50: 3f01 subs r7, #1
  100709. 8028b52: 4297 cmp r7, r2
  100710. 8028b54: da51 bge.n 8028bfa <_strtod_l+0x752>
  100711. 8028b56: 1bd1 subs r1, r2, r7
  100712. 8028b58: 291f cmp r1, #31
  100713. 8028b5a: eba3 0301 sub.w r3, r3, r1
  100714. 8028b5e: f04f 0201 mov.w r2, #1
  100715. 8028b62: dc3e bgt.n 8028be2 <_strtod_l+0x73a>
  100716. 8028b64: 408a lsls r2, r1
  100717. 8028b66: 920c str r2, [sp, #48] @ 0x30
  100718. 8028b68: 2200 movs r2, #0
  100719. 8028b6a: 920b str r2, [sp, #44] @ 0x2c
  100720. 8028b6c: eb09 0703 add.w r7, r9, r3
  100721. 8028b70: 4498 add r8, r3
  100722. 8028b72: 9b06 ldr r3, [sp, #24]
  100723. 8028b74: 45b9 cmp r9, r7
  100724. 8028b76: 4498 add r8, r3
  100725. 8028b78: 464b mov r3, r9
  100726. 8028b7a: bfa8 it ge
  100727. 8028b7c: 463b movge r3, r7
  100728. 8028b7e: 4543 cmp r3, r8
  100729. 8028b80: bfa8 it ge
  100730. 8028b82: 4643 movge r3, r8
  100731. 8028b84: 2b00 cmp r3, #0
  100732. 8028b86: bfc2 ittt gt
  100733. 8028b88: 1aff subgt r7, r7, r3
  100734. 8028b8a: eba8 0803 subgt.w r8, r8, r3
  100735. 8028b8e: eba9 0903 subgt.w r9, r9, r3
  100736. 8028b92: 9b0a ldr r3, [sp, #40] @ 0x28
  100737. 8028b94: 2b00 cmp r3, #0
  100738. 8028b96: dd16 ble.n 8028bc6 <_strtod_l+0x71e>
  100739. 8028b98: 4629 mov r1, r5
  100740. 8028b9a: 9805 ldr r0, [sp, #20]
  100741. 8028b9c: 461a mov r2, r3
  100742. 8028b9e: f002 fd51 bl 802b644 <__pow5mult>
  100743. 8028ba2: 4605 mov r5, r0
  100744. 8028ba4: 2800 cmp r0, #0
  100745. 8028ba6: d0b5 beq.n 8028b14 <_strtod_l+0x66c>
  100746. 8028ba8: 4601 mov r1, r0
  100747. 8028baa: 9a12 ldr r2, [sp, #72] @ 0x48
  100748. 8028bac: 9805 ldr r0, [sp, #20]
  100749. 8028bae: f002 fc9f bl 802b4f0 <__multiply>
  100750. 8028bb2: 900f str r0, [sp, #60] @ 0x3c
  100751. 8028bb4: 2800 cmp r0, #0
  100752. 8028bb6: f43f ae87 beq.w 80288c8 <_strtod_l+0x420>
  100753. 8028bba: 9912 ldr r1, [sp, #72] @ 0x48
  100754. 8028bbc: 9805 ldr r0, [sp, #20]
  100755. 8028bbe: f002 fb83 bl 802b2c8 <_Bfree>
  100756. 8028bc2: 9b0f ldr r3, [sp, #60] @ 0x3c
  100757. 8028bc4: 9312 str r3, [sp, #72] @ 0x48
  100758. 8028bc6: 2f00 cmp r7, #0
  100759. 8028bc8: dc1b bgt.n 8028c02 <_strtod_l+0x75a>
  100760. 8028bca: 9b09 ldr r3, [sp, #36] @ 0x24
  100761. 8028bcc: 2b00 cmp r3, #0
  100762. 8028bce: dd21 ble.n 8028c14 <_strtod_l+0x76c>
  100763. 8028bd0: 4631 mov r1, r6
  100764. 8028bd2: 9a0d ldr r2, [sp, #52] @ 0x34
  100765. 8028bd4: 9805 ldr r0, [sp, #20]
  100766. 8028bd6: f002 fd35 bl 802b644 <__pow5mult>
  100767. 8028bda: 4606 mov r6, r0
  100768. 8028bdc: b9d0 cbnz r0, 8028c14 <_strtod_l+0x76c>
  100769. 8028bde: 2600 movs r6, #0
  100770. 8028be0: e672 b.n 80288c8 <_strtod_l+0x420>
  100771. 8028be2: f1c7 477f rsb r7, r7, #4278190080 @ 0xff000000
  100772. 8028be6: f507 077f add.w r7, r7, #16711680 @ 0xff0000
  100773. 8028bea: f507 477b add.w r7, r7, #64256 @ 0xfb00
  100774. 8028bee: 37e2 adds r7, #226 @ 0xe2
  100775. 8028bf0: fa02 f107 lsl.w r1, r2, r7
  100776. 8028bf4: 910b str r1, [sp, #44] @ 0x2c
  100777. 8028bf6: 920c str r2, [sp, #48] @ 0x30
  100778. 8028bf8: e7b8 b.n 8028b6c <_strtod_l+0x6c4>
  100779. 8028bfa: 2200 movs r2, #0
  100780. 8028bfc: 920b str r2, [sp, #44] @ 0x2c
  100781. 8028bfe: 2201 movs r2, #1
  100782. 8028c00: e7f9 b.n 8028bf6 <_strtod_l+0x74e>
  100783. 8028c02: 9912 ldr r1, [sp, #72] @ 0x48
  100784. 8028c04: 9805 ldr r0, [sp, #20]
  100785. 8028c06: 463a mov r2, r7
  100786. 8028c08: f002 fd76 bl 802b6f8 <__lshift>
  100787. 8028c0c: 9012 str r0, [sp, #72] @ 0x48
  100788. 8028c0e: 2800 cmp r0, #0
  100789. 8028c10: d1db bne.n 8028bca <_strtod_l+0x722>
  100790. 8028c12: e659 b.n 80288c8 <_strtod_l+0x420>
  100791. 8028c14: f1b8 0f00 cmp.w r8, #0
  100792. 8028c18: dd07 ble.n 8028c2a <_strtod_l+0x782>
  100793. 8028c1a: 4631 mov r1, r6
  100794. 8028c1c: 9805 ldr r0, [sp, #20]
  100795. 8028c1e: 4642 mov r2, r8
  100796. 8028c20: f002 fd6a bl 802b6f8 <__lshift>
  100797. 8028c24: 4606 mov r6, r0
  100798. 8028c26: 2800 cmp r0, #0
  100799. 8028c28: d0d9 beq.n 8028bde <_strtod_l+0x736>
  100800. 8028c2a: f1b9 0f00 cmp.w r9, #0
  100801. 8028c2e: dd08 ble.n 8028c42 <_strtod_l+0x79a>
  100802. 8028c30: 4629 mov r1, r5
  100803. 8028c32: 9805 ldr r0, [sp, #20]
  100804. 8028c34: 464a mov r2, r9
  100805. 8028c36: f002 fd5f bl 802b6f8 <__lshift>
  100806. 8028c3a: 4605 mov r5, r0
  100807. 8028c3c: 2800 cmp r0, #0
  100808. 8028c3e: f43f ae43 beq.w 80288c8 <_strtod_l+0x420>
  100809. 8028c42: 9912 ldr r1, [sp, #72] @ 0x48
  100810. 8028c44: 9805 ldr r0, [sp, #20]
  100811. 8028c46: 4632 mov r2, r6
  100812. 8028c48: f002 fdde bl 802b808 <__mdiff>
  100813. 8028c4c: 4604 mov r4, r0
  100814. 8028c4e: 2800 cmp r0, #0
  100815. 8028c50: f43f ae3a beq.w 80288c8 <_strtod_l+0x420>
  100816. 8028c54: 2300 movs r3, #0
  100817. 8028c56: f8d0 800c ldr.w r8, [r0, #12]
  100818. 8028c5a: 60c3 str r3, [r0, #12]
  100819. 8028c5c: 4629 mov r1, r5
  100820. 8028c5e: f002 fdb7 bl 802b7d0 <__mcmp>
  100821. 8028c62: 2800 cmp r0, #0
  100822. 8028c64: da4e bge.n 8028d04 <_strtod_l+0x85c>
  100823. 8028c66: ea58 080a orrs.w r8, r8, sl
  100824. 8028c6a: d174 bne.n 8028d56 <_strtod_l+0x8ae>
  100825. 8028c6c: f3cb 0313 ubfx r3, fp, #0, #20
  100826. 8028c70: 2b00 cmp r3, #0
  100827. 8028c72: d170 bne.n 8028d56 <_strtod_l+0x8ae>
  100828. 8028c74: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  100829. 8028c78: 0d1b lsrs r3, r3, #20
  100830. 8028c7a: 051b lsls r3, r3, #20
  100831. 8028c7c: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  100832. 8028c80: d969 bls.n 8028d56 <_strtod_l+0x8ae>
  100833. 8028c82: 6963 ldr r3, [r4, #20]
  100834. 8028c84: b913 cbnz r3, 8028c8c <_strtod_l+0x7e4>
  100835. 8028c86: 6923 ldr r3, [r4, #16]
  100836. 8028c88: 2b01 cmp r3, #1
  100837. 8028c8a: dd64 ble.n 8028d56 <_strtod_l+0x8ae>
  100838. 8028c8c: 4621 mov r1, r4
  100839. 8028c8e: 2201 movs r2, #1
  100840. 8028c90: 9805 ldr r0, [sp, #20]
  100841. 8028c92: f002 fd31 bl 802b6f8 <__lshift>
  100842. 8028c96: 4629 mov r1, r5
  100843. 8028c98: 4604 mov r4, r0
  100844. 8028c9a: f002 fd99 bl 802b7d0 <__mcmp>
  100845. 8028c9e: 2800 cmp r0, #0
  100846. 8028ca0: dd59 ble.n 8028d56 <_strtod_l+0x8ae>
  100847. 8028ca2: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  100848. 8028ca6: 9a06 ldr r2, [sp, #24]
  100849. 8028ca8: 0d1b lsrs r3, r3, #20
  100850. 8028caa: 051b lsls r3, r3, #20
  100851. 8028cac: 2a00 cmp r2, #0
  100852. 8028cae: d070 beq.n 8028d92 <_strtod_l+0x8ea>
  100853. 8028cb0: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  100854. 8028cb4: d86d bhi.n 8028d92 <_strtod_l+0x8ea>
  100855. 8028cb6: f1b3 7f5c cmp.w r3, #57671680 @ 0x3700000
  100856. 8028cba: f67f ae99 bls.w 80289f0 <_strtod_l+0x548>
  100857. 8028cbe: ed9f 7b0c vldr d7, [pc, #48] @ 8028cf0 <_strtod_l+0x848>
  100858. 8028cc2: ec4b ab16 vmov d6, sl, fp
  100859. 8028cc6: 4b0e ldr r3, [pc, #56] @ (8028d00 <_strtod_l+0x858>)
  100860. 8028cc8: ee26 7b07 vmul.f64 d7, d6, d7
  100861. 8028ccc: ee17 2a90 vmov r2, s15
  100862. 8028cd0: 4013 ands r3, r2
  100863. 8028cd2: ec5b ab17 vmov sl, fp, d7
  100864. 8028cd6: 2b00 cmp r3, #0
  100865. 8028cd8: f47f ae01 bne.w 80288de <_strtod_l+0x436>
  100866. 8028cdc: 9a05 ldr r2, [sp, #20]
  100867. 8028cde: 2322 movs r3, #34 @ 0x22
  100868. 8028ce0: 6013 str r3, [r2, #0]
  100869. 8028ce2: e5fc b.n 80288de <_strtod_l+0x436>
  100870. 8028ce4: f3af 8000 nop.w
  100871. 8028ce8: ffc00000 .word 0xffc00000
  100872. 8028cec: 41dfffff .word 0x41dfffff
  100873. 8028cf0: 00000000 .word 0x00000000
  100874. 8028cf4: 39500000 .word 0x39500000
  100875. 8028cf8: 08030d18 .word 0x08030d18
  100876. 8028cfc: fffffc02 .word 0xfffffc02
  100877. 8028d00: 7ff00000 .word 0x7ff00000
  100878. 8028d04: 46d9 mov r9, fp
  100879. 8028d06: d15d bne.n 8028dc4 <_strtod_l+0x91c>
  100880. 8028d08: f3cb 0313 ubfx r3, fp, #0, #20
  100881. 8028d0c: f1b8 0f00 cmp.w r8, #0
  100882. 8028d10: d02a beq.n 8028d68 <_strtod_l+0x8c0>
  100883. 8028d12: 4aab ldr r2, [pc, #684] @ (8028fc0 <_strtod_l+0xb18>)
  100884. 8028d14: 4293 cmp r3, r2
  100885. 8028d16: d12a bne.n 8028d6e <_strtod_l+0x8c6>
  100886. 8028d18: 9b06 ldr r3, [sp, #24]
  100887. 8028d1a: 4652 mov r2, sl
  100888. 8028d1c: b1fb cbz r3, 8028d5e <_strtod_l+0x8b6>
  100889. 8028d1e: 4ba9 ldr r3, [pc, #676] @ (8028fc4 <_strtod_l+0xb1c>)
  100890. 8028d20: ea0b 0303 and.w r3, fp, r3
  100891. 8028d24: f1b3 6fd4 cmp.w r3, #111149056 @ 0x6a00000
  100892. 8028d28: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  100893. 8028d2c: d81a bhi.n 8028d64 <_strtod_l+0x8bc>
  100894. 8028d2e: 0d1b lsrs r3, r3, #20
  100895. 8028d30: f1c3 036b rsb r3, r3, #107 @ 0x6b
  100896. 8028d34: fa01 f303 lsl.w r3, r1, r3
  100897. 8028d38: 429a cmp r2, r3
  100898. 8028d3a: d118 bne.n 8028d6e <_strtod_l+0x8c6>
  100899. 8028d3c: 4ba2 ldr r3, [pc, #648] @ (8028fc8 <_strtod_l+0xb20>)
  100900. 8028d3e: 4599 cmp r9, r3
  100901. 8028d40: d102 bne.n 8028d48 <_strtod_l+0x8a0>
  100902. 8028d42: 3201 adds r2, #1
  100903. 8028d44: f43f adc0 beq.w 80288c8 <_strtod_l+0x420>
  100904. 8028d48: 4b9e ldr r3, [pc, #632] @ (8028fc4 <_strtod_l+0xb1c>)
  100905. 8028d4a: ea09 0303 and.w r3, r9, r3
  100906. 8028d4e: f503 1b80 add.w fp, r3, #1048576 @ 0x100000
  100907. 8028d52: f04f 0a00 mov.w sl, #0
  100908. 8028d56: 9b06 ldr r3, [sp, #24]
  100909. 8028d58: 2b00 cmp r3, #0
  100910. 8028d5a: d1b0 bne.n 8028cbe <_strtod_l+0x816>
  100911. 8028d5c: e5bf b.n 80288de <_strtod_l+0x436>
  100912. 8028d5e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  100913. 8028d62: e7e9 b.n 8028d38 <_strtod_l+0x890>
  100914. 8028d64: 460b mov r3, r1
  100915. 8028d66: e7e7 b.n 8028d38 <_strtod_l+0x890>
  100916. 8028d68: ea53 030a orrs.w r3, r3, sl
  100917. 8028d6c: d099 beq.n 8028ca2 <_strtod_l+0x7fa>
  100918. 8028d6e: 9b0b ldr r3, [sp, #44] @ 0x2c
  100919. 8028d70: b1c3 cbz r3, 8028da4 <_strtod_l+0x8fc>
  100920. 8028d72: ea13 0f09 tst.w r3, r9
  100921. 8028d76: d0ee beq.n 8028d56 <_strtod_l+0x8ae>
  100922. 8028d78: 9a06 ldr r2, [sp, #24]
  100923. 8028d7a: 4650 mov r0, sl
  100924. 8028d7c: 4659 mov r1, fp
  100925. 8028d7e: f1b8 0f00 cmp.w r8, #0
  100926. 8028d82: d013 beq.n 8028dac <_strtod_l+0x904>
  100927. 8028d84: f7ff fb74 bl 8028470 <sulp>
  100928. 8028d88: ee39 7b00 vadd.f64 d7, d9, d0
  100929. 8028d8c: ec5b ab17 vmov sl, fp, d7
  100930. 8028d90: e7e1 b.n 8028d56 <_strtod_l+0x8ae>
  100931. 8028d92: f5a3 1380 sub.w r3, r3, #1048576 @ 0x100000
  100932. 8028d96: ea6f 5b13 mvn.w fp, r3, lsr #20
  100933. 8028d9a: ea6f 5b0b mvn.w fp, fp, lsl #20
  100934. 8028d9e: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  100935. 8028da2: e7d8 b.n 8028d56 <_strtod_l+0x8ae>
  100936. 8028da4: 9b0c ldr r3, [sp, #48] @ 0x30
  100937. 8028da6: ea13 0f0a tst.w r3, sl
  100938. 8028daa: e7e4 b.n 8028d76 <_strtod_l+0x8ce>
  100939. 8028dac: f7ff fb60 bl 8028470 <sulp>
  100940. 8028db0: ee39 0b40 vsub.f64 d0, d9, d0
  100941. 8028db4: eeb5 0b40 vcmp.f64 d0, #0.0
  100942. 8028db8: eef1 fa10 vmrs APSR_nzcv, fpscr
  100943. 8028dbc: ec5b ab10 vmov sl, fp, d0
  100944. 8028dc0: d1c9 bne.n 8028d56 <_strtod_l+0x8ae>
  100945. 8028dc2: e615 b.n 80289f0 <_strtod_l+0x548>
  100946. 8028dc4: 4629 mov r1, r5
  100947. 8028dc6: 4620 mov r0, r4
  100948. 8028dc8: f002 fe7a bl 802bac0 <__ratio>
  100949. 8028dcc: eeb0 7b00 vmov.f64 d7, #0 @ 0x40000000 2.0
  100950. 8028dd0: eeb4 0bc7 vcmpe.f64 d0, d7
  100951. 8028dd4: eef1 fa10 vmrs APSR_nzcv, fpscr
  100952. 8028dd8: d85d bhi.n 8028e96 <_strtod_l+0x9ee>
  100953. 8028dda: f1b8 0f00 cmp.w r8, #0
  100954. 8028dde: d164 bne.n 8028eaa <_strtod_l+0xa02>
  100955. 8028de0: f1ba 0f00 cmp.w sl, #0
  100956. 8028de4: d14b bne.n 8028e7e <_strtod_l+0x9d6>
  100957. 8028de6: f3cb 0313 ubfx r3, fp, #0, #20
  100958. 8028dea: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  100959. 8028dee: 2b00 cmp r3, #0
  100960. 8028df0: d160 bne.n 8028eb4 <_strtod_l+0xa0c>
  100961. 8028df2: eeb4 0bc8 vcmpe.f64 d0, d8
  100962. 8028df6: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  100963. 8028dfa: eef1 fa10 vmrs APSR_nzcv, fpscr
  100964. 8028dfe: d401 bmi.n 8028e04 <_strtod_l+0x95c>
  100965. 8028e00: ee20 8b08 vmul.f64 d8, d0, d8
  100966. 8028e04: eeb1 ab48 vneg.f64 d10, d8
  100967. 8028e08: 486e ldr r0, [pc, #440] @ (8028fc4 <_strtod_l+0xb1c>)
  100968. 8028e0a: 4970 ldr r1, [pc, #448] @ (8028fcc <_strtod_l+0xb24>)
  100969. 8028e0c: ea09 0700 and.w r7, r9, r0
  100970. 8028e10: 428f cmp r7, r1
  100971. 8028e12: ec53 2b1a vmov r2, r3, d10
  100972. 8028e16: d17d bne.n 8028f14 <_strtod_l+0xa6c>
  100973. 8028e18: f1a9 7b54 sub.w fp, r9, #55574528 @ 0x3500000
  100974. 8028e1c: ec4b ab1c vmov d12, sl, fp
  100975. 8028e20: eeb0 0b4c vmov.f64 d0, d12
  100976. 8028e24: f002 fd84 bl 802b930 <__ulp>
  100977. 8028e28: 4866 ldr r0, [pc, #408] @ (8028fc4 <_strtod_l+0xb1c>)
  100978. 8028e2a: eea0 cb0a vfma.f64 d12, d0, d10
  100979. 8028e2e: ee1c 3a90 vmov r3, s25
  100980. 8028e32: 4a67 ldr r2, [pc, #412] @ (8028fd0 <_strtod_l+0xb28>)
  100981. 8028e34: ea03 0100 and.w r1, r3, r0
  100982. 8028e38: 4291 cmp r1, r2
  100983. 8028e3a: ec5b ab1c vmov sl, fp, d12
  100984. 8028e3e: d93c bls.n 8028eba <_strtod_l+0xa12>
  100985. 8028e40: ee19 2a90 vmov r2, s19
  100986. 8028e44: 4b60 ldr r3, [pc, #384] @ (8028fc8 <_strtod_l+0xb20>)
  100987. 8028e46: 429a cmp r2, r3
  100988. 8028e48: d104 bne.n 8028e54 <_strtod_l+0x9ac>
  100989. 8028e4a: ee19 3a10 vmov r3, s18
  100990. 8028e4e: 3301 adds r3, #1
  100991. 8028e50: f43f ad3a beq.w 80288c8 <_strtod_l+0x420>
  100992. 8028e54: f8df b170 ldr.w fp, [pc, #368] @ 8028fc8 <_strtod_l+0xb20>
  100993. 8028e58: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  100994. 8028e5c: 9912 ldr r1, [sp, #72] @ 0x48
  100995. 8028e5e: 9805 ldr r0, [sp, #20]
  100996. 8028e60: f002 fa32 bl 802b2c8 <_Bfree>
  100997. 8028e64: 9805 ldr r0, [sp, #20]
  100998. 8028e66: 4631 mov r1, r6
  100999. 8028e68: f002 fa2e bl 802b2c8 <_Bfree>
  101000. 8028e6c: 9805 ldr r0, [sp, #20]
  101001. 8028e6e: 4629 mov r1, r5
  101002. 8028e70: f002 fa2a bl 802b2c8 <_Bfree>
  101003. 8028e74: 9805 ldr r0, [sp, #20]
  101004. 8028e76: 4621 mov r1, r4
  101005. 8028e78: f002 fa26 bl 802b2c8 <_Bfree>
  101006. 8028e7c: e625 b.n 8028aca <_strtod_l+0x622>
  101007. 8028e7e: f1ba 0f01 cmp.w sl, #1
  101008. 8028e82: d103 bne.n 8028e8c <_strtod_l+0x9e4>
  101009. 8028e84: f1bb 0f00 cmp.w fp, #0
  101010. 8028e88: f43f adb2 beq.w 80289f0 <_strtod_l+0x548>
  101011. 8028e8c: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  101012. 8028e90: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  101013. 8028e94: e7b8 b.n 8028e08 <_strtod_l+0x960>
  101014. 8028e96: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  101015. 8028e9a: ee20 8b08 vmul.f64 d8, d0, d8
  101016. 8028e9e: f1b8 0f00 cmp.w r8, #0
  101017. 8028ea2: d0af beq.n 8028e04 <_strtod_l+0x95c>
  101018. 8028ea4: eeb0 ab48 vmov.f64 d10, d8
  101019. 8028ea8: e7ae b.n 8028e08 <_strtod_l+0x960>
  101020. 8028eaa: eeb7 ab00 vmov.f64 d10, #112 @ 0x3f800000 1.0
  101021. 8028eae: eeb0 8b4a vmov.f64 d8, d10
  101022. 8028eb2: e7a9 b.n 8028e08 <_strtod_l+0x960>
  101023. 8028eb4: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  101024. 8028eb8: e7a6 b.n 8028e08 <_strtod_l+0x960>
  101025. 8028eba: f103 7b54 add.w fp, r3, #55574528 @ 0x3500000
  101026. 8028ebe: 9b06 ldr r3, [sp, #24]
  101027. 8028ec0: 46d9 mov r9, fp
  101028. 8028ec2: 2b00 cmp r3, #0
  101029. 8028ec4: d1ca bne.n 8028e5c <_strtod_l+0x9b4>
  101030. 8028ec6: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  101031. 8028eca: 0d1b lsrs r3, r3, #20
  101032. 8028ecc: 051b lsls r3, r3, #20
  101033. 8028ece: 429f cmp r7, r3
  101034. 8028ed0: d1c4 bne.n 8028e5c <_strtod_l+0x9b4>
  101035. 8028ed2: ec51 0b18 vmov r0, r1, d8
  101036. 8028ed6: f7d7 fc3f bl 8000758 <__aeabi_d2lz>
  101037. 8028eda: f7d7 fbf7 bl 80006cc <__aeabi_l2d>
  101038. 8028ede: f3cb 0913 ubfx r9, fp, #0, #20
  101039. 8028ee2: ec41 0b17 vmov d7, r0, r1
  101040. 8028ee6: ea49 090a orr.w r9, r9, sl
  101041. 8028eea: ea59 0908 orrs.w r9, r9, r8
  101042. 8028eee: ee38 8b47 vsub.f64 d8, d8, d7
  101043. 8028ef2: d03c beq.n 8028f6e <_strtod_l+0xac6>
  101044. 8028ef4: ed9f 7b2c vldr d7, [pc, #176] @ 8028fa8 <_strtod_l+0xb00>
  101045. 8028ef8: eeb4 8bc7 vcmpe.f64 d8, d7
  101046. 8028efc: eef1 fa10 vmrs APSR_nzcv, fpscr
  101047. 8028f00: f53f aced bmi.w 80288de <_strtod_l+0x436>
  101048. 8028f04: ed9f 7b2a vldr d7, [pc, #168] @ 8028fb0 <_strtod_l+0xb08>
  101049. 8028f08: eeb4 8bc7 vcmpe.f64 d8, d7
  101050. 8028f0c: eef1 fa10 vmrs APSR_nzcv, fpscr
  101051. 8028f10: dda4 ble.n 8028e5c <_strtod_l+0x9b4>
  101052. 8028f12: e4e4 b.n 80288de <_strtod_l+0x436>
  101053. 8028f14: 9906 ldr r1, [sp, #24]
  101054. 8028f16: b1e1 cbz r1, 8028f52 <_strtod_l+0xaaa>
  101055. 8028f18: f1b7 6fd4 cmp.w r7, #111149056 @ 0x6a00000
  101056. 8028f1c: d819 bhi.n 8028f52 <_strtod_l+0xaaa>
  101057. 8028f1e: eeb4 8bcb vcmpe.f64 d8, d11
  101058. 8028f22: eef1 fa10 vmrs APSR_nzcv, fpscr
  101059. 8028f26: d811 bhi.n 8028f4c <_strtod_l+0xaa4>
  101060. 8028f28: eebc 8bc8 vcvt.u32.f64 s16, d8
  101061. 8028f2c: ee18 3a10 vmov r3, s16
  101062. 8028f30: 2b01 cmp r3, #1
  101063. 8028f32: bf38 it cc
  101064. 8028f34: 2301 movcc r3, #1
  101065. 8028f36: ee08 3a10 vmov s16, r3
  101066. 8028f3a: eeb8 8b48 vcvt.f64.u32 d8, s16
  101067. 8028f3e: f1b8 0f00 cmp.w r8, #0
  101068. 8028f42: d111 bne.n 8028f68 <_strtod_l+0xac0>
  101069. 8028f44: eeb1 7b48 vneg.f64 d7, d8
  101070. 8028f48: ec53 2b17 vmov r2, r3, d7
  101071. 8028f4c: f103 61d6 add.w r1, r3, #112197632 @ 0x6b00000
  101072. 8028f50: 1bcb subs r3, r1, r7
  101073. 8028f52: eeb0 0b49 vmov.f64 d0, d9
  101074. 8028f56: ec43 2b1a vmov d10, r2, r3
  101075. 8028f5a: f002 fce9 bl 802b930 <__ulp>
  101076. 8028f5e: eeaa 9b00 vfma.f64 d9, d10, d0
  101077. 8028f62: ec5b ab19 vmov sl, fp, d9
  101078. 8028f66: e7aa b.n 8028ebe <_strtod_l+0xa16>
  101079. 8028f68: eeb0 7b48 vmov.f64 d7, d8
  101080. 8028f6c: e7ec b.n 8028f48 <_strtod_l+0xaa0>
  101081. 8028f6e: ed9f 7b12 vldr d7, [pc, #72] @ 8028fb8 <_strtod_l+0xb10>
  101082. 8028f72: eeb4 8bc7 vcmpe.f64 d8, d7
  101083. 8028f76: eef1 fa10 vmrs APSR_nzcv, fpscr
  101084. 8028f7a: f57f af6f bpl.w 8028e5c <_strtod_l+0x9b4>
  101085. 8028f7e: e4ae b.n 80288de <_strtod_l+0x436>
  101086. 8028f80: 2300 movs r3, #0
  101087. 8028f82: 9308 str r3, [sp, #32]
  101088. 8028f84: 9a0e ldr r2, [sp, #56] @ 0x38
  101089. 8028f86: 9b11 ldr r3, [sp, #68] @ 0x44
  101090. 8028f88: 6013 str r3, [r2, #0]
  101091. 8028f8a: f7ff bacc b.w 8028526 <_strtod_l+0x7e>
  101092. 8028f8e: 2a65 cmp r2, #101 @ 0x65
  101093. 8028f90: f43f abbc beq.w 802870c <_strtod_l+0x264>
  101094. 8028f94: 2a45 cmp r2, #69 @ 0x45
  101095. 8028f96: f43f abb9 beq.w 802870c <_strtod_l+0x264>
  101096. 8028f9a: 2301 movs r3, #1
  101097. 8028f9c: 9306 str r3, [sp, #24]
  101098. 8028f9e: f7ff bbf0 b.w 8028782 <_strtod_l+0x2da>
  101099. 8028fa2: bf00 nop
  101100. 8028fa4: f3af 8000 nop.w
  101101. 8028fa8: 94a03595 .word 0x94a03595
  101102. 8028fac: 3fdfffff .word 0x3fdfffff
  101103. 8028fb0: 35afe535 .word 0x35afe535
  101104. 8028fb4: 3fe00000 .word 0x3fe00000
  101105. 8028fb8: 94a03595 .word 0x94a03595
  101106. 8028fbc: 3fcfffff .word 0x3fcfffff
  101107. 8028fc0: 000fffff .word 0x000fffff
  101108. 8028fc4: 7ff00000 .word 0x7ff00000
  101109. 8028fc8: 7fefffff .word 0x7fefffff
  101110. 8028fcc: 7fe00000 .word 0x7fe00000
  101111. 8028fd0: 7c9fffff .word 0x7c9fffff
  101112. 08028fd4 <strtod>:
  101113. 8028fd4: 460a mov r2, r1
  101114. 8028fd6: 4601 mov r1, r0
  101115. 8028fd8: 4802 ldr r0, [pc, #8] @ (8028fe4 <strtod+0x10>)
  101116. 8028fda: 4b03 ldr r3, [pc, #12] @ (8028fe8 <strtod+0x14>)
  101117. 8028fdc: 6800 ldr r0, [r0, #0]
  101118. 8028fde: f7ff ba63 b.w 80284a8 <_strtod_l>
  101119. 8028fe2: bf00 nop
  101120. 8028fe4: 240001d4 .word 0x240001d4
  101121. 8028fe8: 24000068 .word 0x24000068
  101122. 08028fec <__cvt>:
  101123. 8028fec: b5f0 push {r4, r5, r6, r7, lr}
  101124. 8028fee: ed2d 8b02 vpush {d8}
  101125. 8028ff2: eeb0 8b40 vmov.f64 d8, d0
  101126. 8028ff6: b085 sub sp, #20
  101127. 8028ff8: 4617 mov r7, r2
  101128. 8028ffa: 9d0d ldr r5, [sp, #52] @ 0x34
  101129. 8028ffc: 9e0c ldr r6, [sp, #48] @ 0x30
  101130. 8028ffe: ee18 2a90 vmov r2, s17
  101131. 8029002: f025 0520 bic.w r5, r5, #32
  101132. 8029006: 2a00 cmp r2, #0
  101133. 8029008: bfb6 itet lt
  101134. 802900a: 222d movlt r2, #45 @ 0x2d
  101135. 802900c: 2200 movge r2, #0
  101136. 802900e: eeb1 8b40 vneglt.f64 d8, d0
  101137. 8029012: 2d46 cmp r5, #70 @ 0x46
  101138. 8029014: 460c mov r4, r1
  101139. 8029016: 701a strb r2, [r3, #0]
  101140. 8029018: d004 beq.n 8029024 <__cvt+0x38>
  101141. 802901a: 2d45 cmp r5, #69 @ 0x45
  101142. 802901c: d100 bne.n 8029020 <__cvt+0x34>
  101143. 802901e: 3401 adds r4, #1
  101144. 8029020: 2102 movs r1, #2
  101145. 8029022: e000 b.n 8029026 <__cvt+0x3a>
  101146. 8029024: 2103 movs r1, #3
  101147. 8029026: ab03 add r3, sp, #12
  101148. 8029028: 9301 str r3, [sp, #4]
  101149. 802902a: ab02 add r3, sp, #8
  101150. 802902c: 9300 str r3, [sp, #0]
  101151. 802902e: 4622 mov r2, r4
  101152. 8029030: 4633 mov r3, r6
  101153. 8029032: eeb0 0b48 vmov.f64 d0, d8
  101154. 8029036: f001 f81b bl 802a070 <_dtoa_r>
  101155. 802903a: 2d47 cmp r5, #71 @ 0x47
  101156. 802903c: d114 bne.n 8029068 <__cvt+0x7c>
  101157. 802903e: 07fb lsls r3, r7, #31
  101158. 8029040: d50a bpl.n 8029058 <__cvt+0x6c>
  101159. 8029042: 1902 adds r2, r0, r4
  101160. 8029044: eeb5 8b40 vcmp.f64 d8, #0.0
  101161. 8029048: eef1 fa10 vmrs APSR_nzcv, fpscr
  101162. 802904c: bf08 it eq
  101163. 802904e: 9203 streq r2, [sp, #12]
  101164. 8029050: 2130 movs r1, #48 @ 0x30
  101165. 8029052: 9b03 ldr r3, [sp, #12]
  101166. 8029054: 4293 cmp r3, r2
  101167. 8029056: d319 bcc.n 802908c <__cvt+0xa0>
  101168. 8029058: 9b03 ldr r3, [sp, #12]
  101169. 802905a: 9a0e ldr r2, [sp, #56] @ 0x38
  101170. 802905c: 1a1b subs r3, r3, r0
  101171. 802905e: 6013 str r3, [r2, #0]
  101172. 8029060: b005 add sp, #20
  101173. 8029062: ecbd 8b02 vpop {d8}
  101174. 8029066: bdf0 pop {r4, r5, r6, r7, pc}
  101175. 8029068: 2d46 cmp r5, #70 @ 0x46
  101176. 802906a: eb00 0204 add.w r2, r0, r4
  101177. 802906e: d1e9 bne.n 8029044 <__cvt+0x58>
  101178. 8029070: 7803 ldrb r3, [r0, #0]
  101179. 8029072: 2b30 cmp r3, #48 @ 0x30
  101180. 8029074: d107 bne.n 8029086 <__cvt+0x9a>
  101181. 8029076: eeb5 8b40 vcmp.f64 d8, #0.0
  101182. 802907a: eef1 fa10 vmrs APSR_nzcv, fpscr
  101183. 802907e: bf1c itt ne
  101184. 8029080: f1c4 0401 rsbne r4, r4, #1
  101185. 8029084: 6034 strne r4, [r6, #0]
  101186. 8029086: 6833 ldr r3, [r6, #0]
  101187. 8029088: 441a add r2, r3
  101188. 802908a: e7db b.n 8029044 <__cvt+0x58>
  101189. 802908c: 1c5c adds r4, r3, #1
  101190. 802908e: 9403 str r4, [sp, #12]
  101191. 8029090: 7019 strb r1, [r3, #0]
  101192. 8029092: e7de b.n 8029052 <__cvt+0x66>
  101193. 08029094 <__exponent>:
  101194. 8029094: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  101195. 8029096: 2900 cmp r1, #0
  101196. 8029098: bfba itte lt
  101197. 802909a: 4249 neglt r1, r1
  101198. 802909c: 232d movlt r3, #45 @ 0x2d
  101199. 802909e: 232b movge r3, #43 @ 0x2b
  101200. 80290a0: 2909 cmp r1, #9
  101201. 80290a2: 7002 strb r2, [r0, #0]
  101202. 80290a4: 7043 strb r3, [r0, #1]
  101203. 80290a6: dd29 ble.n 80290fc <__exponent+0x68>
  101204. 80290a8: f10d 0307 add.w r3, sp, #7
  101205. 80290ac: 461d mov r5, r3
  101206. 80290ae: 270a movs r7, #10
  101207. 80290b0: 461a mov r2, r3
  101208. 80290b2: fbb1 f6f7 udiv r6, r1, r7
  101209. 80290b6: fb07 1416 mls r4, r7, r6, r1
  101210. 80290ba: 3430 adds r4, #48 @ 0x30
  101211. 80290bc: f802 4c01 strb.w r4, [r2, #-1]
  101212. 80290c0: 460c mov r4, r1
  101213. 80290c2: 2c63 cmp r4, #99 @ 0x63
  101214. 80290c4: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff
  101215. 80290c8: 4631 mov r1, r6
  101216. 80290ca: dcf1 bgt.n 80290b0 <__exponent+0x1c>
  101217. 80290cc: 3130 adds r1, #48 @ 0x30
  101218. 80290ce: 1e94 subs r4, r2, #2
  101219. 80290d0: f803 1c01 strb.w r1, [r3, #-1]
  101220. 80290d4: 1c41 adds r1, r0, #1
  101221. 80290d6: 4623 mov r3, r4
  101222. 80290d8: 42ab cmp r3, r5
  101223. 80290da: d30a bcc.n 80290f2 <__exponent+0x5e>
  101224. 80290dc: f10d 0309 add.w r3, sp, #9
  101225. 80290e0: 1a9b subs r3, r3, r2
  101226. 80290e2: 42ac cmp r4, r5
  101227. 80290e4: bf88 it hi
  101228. 80290e6: 2300 movhi r3, #0
  101229. 80290e8: 3302 adds r3, #2
  101230. 80290ea: 4403 add r3, r0
  101231. 80290ec: 1a18 subs r0, r3, r0
  101232. 80290ee: b003 add sp, #12
  101233. 80290f0: bdf0 pop {r4, r5, r6, r7, pc}
  101234. 80290f2: f813 6b01 ldrb.w r6, [r3], #1
  101235. 80290f6: f801 6f01 strb.w r6, [r1, #1]!
  101236. 80290fa: e7ed b.n 80290d8 <__exponent+0x44>
  101237. 80290fc: 2330 movs r3, #48 @ 0x30
  101238. 80290fe: 3130 adds r1, #48 @ 0x30
  101239. 8029100: 7083 strb r3, [r0, #2]
  101240. 8029102: 70c1 strb r1, [r0, #3]
  101241. 8029104: 1d03 adds r3, r0, #4
  101242. 8029106: e7f1 b.n 80290ec <__exponent+0x58>
  101243. 08029108 <_printf_float>:
  101244. 8029108: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  101245. 802910c: b08d sub sp, #52 @ 0x34
  101246. 802910e: 460c mov r4, r1
  101247. 8029110: f8dd 8058 ldr.w r8, [sp, #88] @ 0x58
  101248. 8029114: 4616 mov r6, r2
  101249. 8029116: 461f mov r7, r3
  101250. 8029118: 4605 mov r5, r0
  101251. 802911a: f000 fe0b bl 8029d34 <_localeconv_r>
  101252. 802911e: f8d0 b000 ldr.w fp, [r0]
  101253. 8029122: 4658 mov r0, fp
  101254. 8029124: f7d7 f93c bl 80003a0 <strlen>
  101255. 8029128: 2300 movs r3, #0
  101256. 802912a: 930a str r3, [sp, #40] @ 0x28
  101257. 802912c: f8d8 3000 ldr.w r3, [r8]
  101258. 8029130: f894 9018 ldrb.w r9, [r4, #24]
  101259. 8029134: 6822 ldr r2, [r4, #0]
  101260. 8029136: 9005 str r0, [sp, #20]
  101261. 8029138: 3307 adds r3, #7
  101262. 802913a: f023 0307 bic.w r3, r3, #7
  101263. 802913e: f103 0108 add.w r1, r3, #8
  101264. 8029142: f8c8 1000 str.w r1, [r8]
  101265. 8029146: ed93 0b00 vldr d0, [r3]
  101266. 802914a: ed9f 6b97 vldr d6, [pc, #604] @ 80293a8 <_printf_float+0x2a0>
  101267. 802914e: eeb0 7bc0 vabs.f64 d7, d0
  101268. 8029152: eeb4 7b46 vcmp.f64 d7, d6
  101269. 8029156: eef1 fa10 vmrs APSR_nzcv, fpscr
  101270. 802915a: ed84 0b12 vstr d0, [r4, #72] @ 0x48
  101271. 802915e: dd24 ble.n 80291aa <_printf_float+0xa2>
  101272. 8029160: eeb5 0bc0 vcmpe.f64 d0, #0.0
  101273. 8029164: eef1 fa10 vmrs APSR_nzcv, fpscr
  101274. 8029168: d502 bpl.n 8029170 <_printf_float+0x68>
  101275. 802916a: 232d movs r3, #45 @ 0x2d
  101276. 802916c: f884 3043 strb.w r3, [r4, #67] @ 0x43
  101277. 8029170: 498f ldr r1, [pc, #572] @ (80293b0 <_printf_float+0x2a8>)
  101278. 8029172: 4b90 ldr r3, [pc, #576] @ (80293b4 <_printf_float+0x2ac>)
  101279. 8029174: f1b9 0f47 cmp.w r9, #71 @ 0x47
  101280. 8029178: bf94 ite ls
  101281. 802917a: 4688 movls r8, r1
  101282. 802917c: 4698 movhi r8, r3
  101283. 802917e: f022 0204 bic.w r2, r2, #4
  101284. 8029182: 2303 movs r3, #3
  101285. 8029184: 6123 str r3, [r4, #16]
  101286. 8029186: 6022 str r2, [r4, #0]
  101287. 8029188: f04f 0a00 mov.w sl, #0
  101288. 802918c: 9700 str r7, [sp, #0]
  101289. 802918e: 4633 mov r3, r6
  101290. 8029190: aa0b add r2, sp, #44 @ 0x2c
  101291. 8029192: 4621 mov r1, r4
  101292. 8029194: 4628 mov r0, r5
  101293. 8029196: f000 f9d1 bl 802953c <_printf_common>
  101294. 802919a: 3001 adds r0, #1
  101295. 802919c: f040 8089 bne.w 80292b2 <_printf_float+0x1aa>
  101296. 80291a0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  101297. 80291a4: b00d add sp, #52 @ 0x34
  101298. 80291a6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  101299. 80291aa: eeb4 0b40 vcmp.f64 d0, d0
  101300. 80291ae: eef1 fa10 vmrs APSR_nzcv, fpscr
  101301. 80291b2: d709 bvc.n 80291c8 <_printf_float+0xc0>
  101302. 80291b4: ee10 3a90 vmov r3, s1
  101303. 80291b8: 2b00 cmp r3, #0
  101304. 80291ba: bfbc itt lt
  101305. 80291bc: 232d movlt r3, #45 @ 0x2d
  101306. 80291be: f884 3043 strblt.w r3, [r4, #67] @ 0x43
  101307. 80291c2: 497d ldr r1, [pc, #500] @ (80293b8 <_printf_float+0x2b0>)
  101308. 80291c4: 4b7d ldr r3, [pc, #500] @ (80293bc <_printf_float+0x2b4>)
  101309. 80291c6: e7d5 b.n 8029174 <_printf_float+0x6c>
  101310. 80291c8: 6863 ldr r3, [r4, #4]
  101311. 80291ca: 1c59 adds r1, r3, #1
  101312. 80291cc: f009 0adf and.w sl, r9, #223 @ 0xdf
  101313. 80291d0: d139 bne.n 8029246 <_printf_float+0x13e>
  101314. 80291d2: 2306 movs r3, #6
  101315. 80291d4: 6063 str r3, [r4, #4]
  101316. 80291d6: f442 6280 orr.w r2, r2, #1024 @ 0x400
  101317. 80291da: 2300 movs r3, #0
  101318. 80291dc: 6022 str r2, [r4, #0]
  101319. 80291de: 9303 str r3, [sp, #12]
  101320. 80291e0: ab0a add r3, sp, #40 @ 0x28
  101321. 80291e2: e9cd 9301 strd r9, r3, [sp, #4]
  101322. 80291e6: ab09 add r3, sp, #36 @ 0x24
  101323. 80291e8: 9300 str r3, [sp, #0]
  101324. 80291ea: 6861 ldr r1, [r4, #4]
  101325. 80291ec: f10d 0323 add.w r3, sp, #35 @ 0x23
  101326. 80291f0: 4628 mov r0, r5
  101327. 80291f2: f7ff fefb bl 8028fec <__cvt>
  101328. 80291f6: f1ba 0f47 cmp.w sl, #71 @ 0x47
  101329. 80291fa: 9909 ldr r1, [sp, #36] @ 0x24
  101330. 80291fc: 4680 mov r8, r0
  101331. 80291fe: d129 bne.n 8029254 <_printf_float+0x14c>
  101332. 8029200: 1cc8 adds r0, r1, #3
  101333. 8029202: db02 blt.n 802920a <_printf_float+0x102>
  101334. 8029204: 6863 ldr r3, [r4, #4]
  101335. 8029206: 4299 cmp r1, r3
  101336. 8029208: dd41 ble.n 802928e <_printf_float+0x186>
  101337. 802920a: f1a9 0902 sub.w r9, r9, #2
  101338. 802920e: fa5f f989 uxtb.w r9, r9
  101339. 8029212: 3901 subs r1, #1
  101340. 8029214: 464a mov r2, r9
  101341. 8029216: f104 0050 add.w r0, r4, #80 @ 0x50
  101342. 802921a: 9109 str r1, [sp, #36] @ 0x24
  101343. 802921c: f7ff ff3a bl 8029094 <__exponent>
  101344. 8029220: 9a0a ldr r2, [sp, #40] @ 0x28
  101345. 8029222: 1813 adds r3, r2, r0
  101346. 8029224: 2a01 cmp r2, #1
  101347. 8029226: 4682 mov sl, r0
  101348. 8029228: 6123 str r3, [r4, #16]
  101349. 802922a: dc02 bgt.n 8029232 <_printf_float+0x12a>
  101350. 802922c: 6822 ldr r2, [r4, #0]
  101351. 802922e: 07d2 lsls r2, r2, #31
  101352. 8029230: d501 bpl.n 8029236 <_printf_float+0x12e>
  101353. 8029232: 3301 adds r3, #1
  101354. 8029234: 6123 str r3, [r4, #16]
  101355. 8029236: f89d 3023 ldrb.w r3, [sp, #35] @ 0x23
  101356. 802923a: 2b00 cmp r3, #0
  101357. 802923c: d0a6 beq.n 802918c <_printf_float+0x84>
  101358. 802923e: 232d movs r3, #45 @ 0x2d
  101359. 8029240: f884 3043 strb.w r3, [r4, #67] @ 0x43
  101360. 8029244: e7a2 b.n 802918c <_printf_float+0x84>
  101361. 8029246: f1ba 0f47 cmp.w sl, #71 @ 0x47
  101362. 802924a: d1c4 bne.n 80291d6 <_printf_float+0xce>
  101363. 802924c: 2b00 cmp r3, #0
  101364. 802924e: d1c2 bne.n 80291d6 <_printf_float+0xce>
  101365. 8029250: 2301 movs r3, #1
  101366. 8029252: e7bf b.n 80291d4 <_printf_float+0xcc>
  101367. 8029254: f1b9 0f65 cmp.w r9, #101 @ 0x65
  101368. 8029258: d9db bls.n 8029212 <_printf_float+0x10a>
  101369. 802925a: f1b9 0f66 cmp.w r9, #102 @ 0x66
  101370. 802925e: d118 bne.n 8029292 <_printf_float+0x18a>
  101371. 8029260: 2900 cmp r1, #0
  101372. 8029262: 6863 ldr r3, [r4, #4]
  101373. 8029264: dd0b ble.n 802927e <_printf_float+0x176>
  101374. 8029266: 6121 str r1, [r4, #16]
  101375. 8029268: b913 cbnz r3, 8029270 <_printf_float+0x168>
  101376. 802926a: 6822 ldr r2, [r4, #0]
  101377. 802926c: 07d0 lsls r0, r2, #31
  101378. 802926e: d502 bpl.n 8029276 <_printf_float+0x16e>
  101379. 8029270: 3301 adds r3, #1
  101380. 8029272: 440b add r3, r1
  101381. 8029274: 6123 str r3, [r4, #16]
  101382. 8029276: 65a1 str r1, [r4, #88] @ 0x58
  101383. 8029278: f04f 0a00 mov.w sl, #0
  101384. 802927c: e7db b.n 8029236 <_printf_float+0x12e>
  101385. 802927e: b913 cbnz r3, 8029286 <_printf_float+0x17e>
  101386. 8029280: 6822 ldr r2, [r4, #0]
  101387. 8029282: 07d2 lsls r2, r2, #31
  101388. 8029284: d501 bpl.n 802928a <_printf_float+0x182>
  101389. 8029286: 3302 adds r3, #2
  101390. 8029288: e7f4 b.n 8029274 <_printf_float+0x16c>
  101391. 802928a: 2301 movs r3, #1
  101392. 802928c: e7f2 b.n 8029274 <_printf_float+0x16c>
  101393. 802928e: f04f 0967 mov.w r9, #103 @ 0x67
  101394. 8029292: 9b0a ldr r3, [sp, #40] @ 0x28
  101395. 8029294: 4299 cmp r1, r3
  101396. 8029296: db05 blt.n 80292a4 <_printf_float+0x19c>
  101397. 8029298: 6823 ldr r3, [r4, #0]
  101398. 802929a: 6121 str r1, [r4, #16]
  101399. 802929c: 07d8 lsls r0, r3, #31
  101400. 802929e: d5ea bpl.n 8029276 <_printf_float+0x16e>
  101401. 80292a0: 1c4b adds r3, r1, #1
  101402. 80292a2: e7e7 b.n 8029274 <_printf_float+0x16c>
  101403. 80292a4: 2900 cmp r1, #0
  101404. 80292a6: bfd4 ite le
  101405. 80292a8: f1c1 0202 rsble r2, r1, #2
  101406. 80292ac: 2201 movgt r2, #1
  101407. 80292ae: 4413 add r3, r2
  101408. 80292b0: e7e0 b.n 8029274 <_printf_float+0x16c>
  101409. 80292b2: 6823 ldr r3, [r4, #0]
  101410. 80292b4: 055a lsls r2, r3, #21
  101411. 80292b6: d407 bmi.n 80292c8 <_printf_float+0x1c0>
  101412. 80292b8: 6923 ldr r3, [r4, #16]
  101413. 80292ba: 4642 mov r2, r8
  101414. 80292bc: 4631 mov r1, r6
  101415. 80292be: 4628 mov r0, r5
  101416. 80292c0: 47b8 blx r7
  101417. 80292c2: 3001 adds r0, #1
  101418. 80292c4: d12a bne.n 802931c <_printf_float+0x214>
  101419. 80292c6: e76b b.n 80291a0 <_printf_float+0x98>
  101420. 80292c8: f1b9 0f65 cmp.w r9, #101 @ 0x65
  101421. 80292cc: f240 80e0 bls.w 8029490 <_printf_float+0x388>
  101422. 80292d0: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  101423. 80292d4: eeb5 7b40 vcmp.f64 d7, #0.0
  101424. 80292d8: eef1 fa10 vmrs APSR_nzcv, fpscr
  101425. 80292dc: d133 bne.n 8029346 <_printf_float+0x23e>
  101426. 80292de: 4a38 ldr r2, [pc, #224] @ (80293c0 <_printf_float+0x2b8>)
  101427. 80292e0: 2301 movs r3, #1
  101428. 80292e2: 4631 mov r1, r6
  101429. 80292e4: 4628 mov r0, r5
  101430. 80292e6: 47b8 blx r7
  101431. 80292e8: 3001 adds r0, #1
  101432. 80292ea: f43f af59 beq.w 80291a0 <_printf_float+0x98>
  101433. 80292ee: e9dd 3809 ldrd r3, r8, [sp, #36] @ 0x24
  101434. 80292f2: 4543 cmp r3, r8
  101435. 80292f4: db02 blt.n 80292fc <_printf_float+0x1f4>
  101436. 80292f6: 6823 ldr r3, [r4, #0]
  101437. 80292f8: 07d8 lsls r0, r3, #31
  101438. 80292fa: d50f bpl.n 802931c <_printf_float+0x214>
  101439. 80292fc: 9b05 ldr r3, [sp, #20]
  101440. 80292fe: 465a mov r2, fp
  101441. 8029300: 4631 mov r1, r6
  101442. 8029302: 4628 mov r0, r5
  101443. 8029304: 47b8 blx r7
  101444. 8029306: 3001 adds r0, #1
  101445. 8029308: f43f af4a beq.w 80291a0 <_printf_float+0x98>
  101446. 802930c: f04f 0900 mov.w r9, #0
  101447. 8029310: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  101448. 8029314: f104 0a1a add.w sl, r4, #26
  101449. 8029318: 45c8 cmp r8, r9
  101450. 802931a: dc09 bgt.n 8029330 <_printf_float+0x228>
  101451. 802931c: 6823 ldr r3, [r4, #0]
  101452. 802931e: 079b lsls r3, r3, #30
  101453. 8029320: f100 8107 bmi.w 8029532 <_printf_float+0x42a>
  101454. 8029324: 68e0 ldr r0, [r4, #12]
  101455. 8029326: 9b0b ldr r3, [sp, #44] @ 0x2c
  101456. 8029328: 4298 cmp r0, r3
  101457. 802932a: bfb8 it lt
  101458. 802932c: 4618 movlt r0, r3
  101459. 802932e: e739 b.n 80291a4 <_printf_float+0x9c>
  101460. 8029330: 2301 movs r3, #1
  101461. 8029332: 4652 mov r2, sl
  101462. 8029334: 4631 mov r1, r6
  101463. 8029336: 4628 mov r0, r5
  101464. 8029338: 47b8 blx r7
  101465. 802933a: 3001 adds r0, #1
  101466. 802933c: f43f af30 beq.w 80291a0 <_printf_float+0x98>
  101467. 8029340: f109 0901 add.w r9, r9, #1
  101468. 8029344: e7e8 b.n 8029318 <_printf_float+0x210>
  101469. 8029346: 9b09 ldr r3, [sp, #36] @ 0x24
  101470. 8029348: 2b00 cmp r3, #0
  101471. 802934a: dc3b bgt.n 80293c4 <_printf_float+0x2bc>
  101472. 802934c: 4a1c ldr r2, [pc, #112] @ (80293c0 <_printf_float+0x2b8>)
  101473. 802934e: 2301 movs r3, #1
  101474. 8029350: 4631 mov r1, r6
  101475. 8029352: 4628 mov r0, r5
  101476. 8029354: 47b8 blx r7
  101477. 8029356: 3001 adds r0, #1
  101478. 8029358: f43f af22 beq.w 80291a0 <_printf_float+0x98>
  101479. 802935c: e9dd 3909 ldrd r3, r9, [sp, #36] @ 0x24
  101480. 8029360: ea59 0303 orrs.w r3, r9, r3
  101481. 8029364: d102 bne.n 802936c <_printf_float+0x264>
  101482. 8029366: 6823 ldr r3, [r4, #0]
  101483. 8029368: 07d9 lsls r1, r3, #31
  101484. 802936a: d5d7 bpl.n 802931c <_printf_float+0x214>
  101485. 802936c: 9b05 ldr r3, [sp, #20]
  101486. 802936e: 465a mov r2, fp
  101487. 8029370: 4631 mov r1, r6
  101488. 8029372: 4628 mov r0, r5
  101489. 8029374: 47b8 blx r7
  101490. 8029376: 3001 adds r0, #1
  101491. 8029378: f43f af12 beq.w 80291a0 <_printf_float+0x98>
  101492. 802937c: f04f 0a00 mov.w sl, #0
  101493. 8029380: f104 0b1a add.w fp, r4, #26
  101494. 8029384: 9b09 ldr r3, [sp, #36] @ 0x24
  101495. 8029386: 425b negs r3, r3
  101496. 8029388: 4553 cmp r3, sl
  101497. 802938a: dc01 bgt.n 8029390 <_printf_float+0x288>
  101498. 802938c: 464b mov r3, r9
  101499. 802938e: e794 b.n 80292ba <_printf_float+0x1b2>
  101500. 8029390: 2301 movs r3, #1
  101501. 8029392: 465a mov r2, fp
  101502. 8029394: 4631 mov r1, r6
  101503. 8029396: 4628 mov r0, r5
  101504. 8029398: 47b8 blx r7
  101505. 802939a: 3001 adds r0, #1
  101506. 802939c: f43f af00 beq.w 80291a0 <_printf_float+0x98>
  101507. 80293a0: f10a 0a01 add.w sl, sl, #1
  101508. 80293a4: e7ee b.n 8029384 <_printf_float+0x27c>
  101509. 80293a6: bf00 nop
  101510. 80293a8: ffffffff .word 0xffffffff
  101511. 80293ac: 7fefffff .word 0x7fefffff
  101512. 80293b0: 08030e41 .word 0x08030e41
  101513. 80293b4: 08030e45 .word 0x08030e45
  101514. 80293b8: 08030e49 .word 0x08030e49
  101515. 80293bc: 08030e4d .word 0x08030e4d
  101516. 80293c0: 08030e51 .word 0x08030e51
  101517. 80293c4: 6da3 ldr r3, [r4, #88] @ 0x58
  101518. 80293c6: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
  101519. 80293ca: 4553 cmp r3, sl
  101520. 80293cc: bfa8 it ge
  101521. 80293ce: 4653 movge r3, sl
  101522. 80293d0: 2b00 cmp r3, #0
  101523. 80293d2: 4699 mov r9, r3
  101524. 80293d4: dc37 bgt.n 8029446 <_printf_float+0x33e>
  101525. 80293d6: 2300 movs r3, #0
  101526. 80293d8: 9307 str r3, [sp, #28]
  101527. 80293da: ea29 79e9 bic.w r9, r9, r9, asr #31
  101528. 80293de: f104 021a add.w r2, r4, #26
  101529. 80293e2: 6da3 ldr r3, [r4, #88] @ 0x58
  101530. 80293e4: 9907 ldr r1, [sp, #28]
  101531. 80293e6: 9306 str r3, [sp, #24]
  101532. 80293e8: eba3 0309 sub.w r3, r3, r9
  101533. 80293ec: 428b cmp r3, r1
  101534. 80293ee: dc31 bgt.n 8029454 <_printf_float+0x34c>
  101535. 80293f0: 9b09 ldr r3, [sp, #36] @ 0x24
  101536. 80293f2: 459a cmp sl, r3
  101537. 80293f4: dc3b bgt.n 802946e <_printf_float+0x366>
  101538. 80293f6: 6823 ldr r3, [r4, #0]
  101539. 80293f8: 07da lsls r2, r3, #31
  101540. 80293fa: d438 bmi.n 802946e <_printf_float+0x366>
  101541. 80293fc: 9b09 ldr r3, [sp, #36] @ 0x24
  101542. 80293fe: ebaa 0903 sub.w r9, sl, r3
  101543. 8029402: 9b06 ldr r3, [sp, #24]
  101544. 8029404: ebaa 0303 sub.w r3, sl, r3
  101545. 8029408: 4599 cmp r9, r3
  101546. 802940a: bfa8 it ge
  101547. 802940c: 4699 movge r9, r3
  101548. 802940e: f1b9 0f00 cmp.w r9, #0
  101549. 8029412: dc34 bgt.n 802947e <_printf_float+0x376>
  101550. 8029414: f04f 0800 mov.w r8, #0
  101551. 8029418: ea29 79e9 bic.w r9, r9, r9, asr #31
  101552. 802941c: f104 0b1a add.w fp, r4, #26
  101553. 8029420: 9b09 ldr r3, [sp, #36] @ 0x24
  101554. 8029422: ebaa 0303 sub.w r3, sl, r3
  101555. 8029426: eba3 0309 sub.w r3, r3, r9
  101556. 802942a: 4543 cmp r3, r8
  101557. 802942c: f77f af76 ble.w 802931c <_printf_float+0x214>
  101558. 8029430: 2301 movs r3, #1
  101559. 8029432: 465a mov r2, fp
  101560. 8029434: 4631 mov r1, r6
  101561. 8029436: 4628 mov r0, r5
  101562. 8029438: 47b8 blx r7
  101563. 802943a: 3001 adds r0, #1
  101564. 802943c: f43f aeb0 beq.w 80291a0 <_printf_float+0x98>
  101565. 8029440: f108 0801 add.w r8, r8, #1
  101566. 8029444: e7ec b.n 8029420 <_printf_float+0x318>
  101567. 8029446: 4642 mov r2, r8
  101568. 8029448: 4631 mov r1, r6
  101569. 802944a: 4628 mov r0, r5
  101570. 802944c: 47b8 blx r7
  101571. 802944e: 3001 adds r0, #1
  101572. 8029450: d1c1 bne.n 80293d6 <_printf_float+0x2ce>
  101573. 8029452: e6a5 b.n 80291a0 <_printf_float+0x98>
  101574. 8029454: 2301 movs r3, #1
  101575. 8029456: 4631 mov r1, r6
  101576. 8029458: 4628 mov r0, r5
  101577. 802945a: 9206 str r2, [sp, #24]
  101578. 802945c: 47b8 blx r7
  101579. 802945e: 3001 adds r0, #1
  101580. 8029460: f43f ae9e beq.w 80291a0 <_printf_float+0x98>
  101581. 8029464: 9b07 ldr r3, [sp, #28]
  101582. 8029466: 9a06 ldr r2, [sp, #24]
  101583. 8029468: 3301 adds r3, #1
  101584. 802946a: 9307 str r3, [sp, #28]
  101585. 802946c: e7b9 b.n 80293e2 <_printf_float+0x2da>
  101586. 802946e: 9b05 ldr r3, [sp, #20]
  101587. 8029470: 465a mov r2, fp
  101588. 8029472: 4631 mov r1, r6
  101589. 8029474: 4628 mov r0, r5
  101590. 8029476: 47b8 blx r7
  101591. 8029478: 3001 adds r0, #1
  101592. 802947a: d1bf bne.n 80293fc <_printf_float+0x2f4>
  101593. 802947c: e690 b.n 80291a0 <_printf_float+0x98>
  101594. 802947e: 9a06 ldr r2, [sp, #24]
  101595. 8029480: 464b mov r3, r9
  101596. 8029482: 4442 add r2, r8
  101597. 8029484: 4631 mov r1, r6
  101598. 8029486: 4628 mov r0, r5
  101599. 8029488: 47b8 blx r7
  101600. 802948a: 3001 adds r0, #1
  101601. 802948c: d1c2 bne.n 8029414 <_printf_float+0x30c>
  101602. 802948e: e687 b.n 80291a0 <_printf_float+0x98>
  101603. 8029490: f8dd 9028 ldr.w r9, [sp, #40] @ 0x28
  101604. 8029494: f1b9 0f01 cmp.w r9, #1
  101605. 8029498: dc01 bgt.n 802949e <_printf_float+0x396>
  101606. 802949a: 07db lsls r3, r3, #31
  101607. 802949c: d536 bpl.n 802950c <_printf_float+0x404>
  101608. 802949e: 2301 movs r3, #1
  101609. 80294a0: 4642 mov r2, r8
  101610. 80294a2: 4631 mov r1, r6
  101611. 80294a4: 4628 mov r0, r5
  101612. 80294a6: 47b8 blx r7
  101613. 80294a8: 3001 adds r0, #1
  101614. 80294aa: f43f ae79 beq.w 80291a0 <_printf_float+0x98>
  101615. 80294ae: 9b05 ldr r3, [sp, #20]
  101616. 80294b0: 465a mov r2, fp
  101617. 80294b2: 4631 mov r1, r6
  101618. 80294b4: 4628 mov r0, r5
  101619. 80294b6: 47b8 blx r7
  101620. 80294b8: 3001 adds r0, #1
  101621. 80294ba: f43f ae71 beq.w 80291a0 <_printf_float+0x98>
  101622. 80294be: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  101623. 80294c2: eeb5 7b40 vcmp.f64 d7, #0.0
  101624. 80294c6: eef1 fa10 vmrs APSR_nzcv, fpscr
  101625. 80294ca: f109 39ff add.w r9, r9, #4294967295 @ 0xffffffff
  101626. 80294ce: d018 beq.n 8029502 <_printf_float+0x3fa>
  101627. 80294d0: 464b mov r3, r9
  101628. 80294d2: f108 0201 add.w r2, r8, #1
  101629. 80294d6: 4631 mov r1, r6
  101630. 80294d8: 4628 mov r0, r5
  101631. 80294da: 47b8 blx r7
  101632. 80294dc: 3001 adds r0, #1
  101633. 80294de: d10c bne.n 80294fa <_printf_float+0x3f2>
  101634. 80294e0: e65e b.n 80291a0 <_printf_float+0x98>
  101635. 80294e2: 2301 movs r3, #1
  101636. 80294e4: 465a mov r2, fp
  101637. 80294e6: 4631 mov r1, r6
  101638. 80294e8: 4628 mov r0, r5
  101639. 80294ea: 47b8 blx r7
  101640. 80294ec: 3001 adds r0, #1
  101641. 80294ee: f43f ae57 beq.w 80291a0 <_printf_float+0x98>
  101642. 80294f2: f108 0801 add.w r8, r8, #1
  101643. 80294f6: 45c8 cmp r8, r9
  101644. 80294f8: dbf3 blt.n 80294e2 <_printf_float+0x3da>
  101645. 80294fa: 4653 mov r3, sl
  101646. 80294fc: f104 0250 add.w r2, r4, #80 @ 0x50
  101647. 8029500: e6dc b.n 80292bc <_printf_float+0x1b4>
  101648. 8029502: f04f 0800 mov.w r8, #0
  101649. 8029506: f104 0b1a add.w fp, r4, #26
  101650. 802950a: e7f4 b.n 80294f6 <_printf_float+0x3ee>
  101651. 802950c: 2301 movs r3, #1
  101652. 802950e: 4642 mov r2, r8
  101653. 8029510: e7e1 b.n 80294d6 <_printf_float+0x3ce>
  101654. 8029512: 2301 movs r3, #1
  101655. 8029514: 464a mov r2, r9
  101656. 8029516: 4631 mov r1, r6
  101657. 8029518: 4628 mov r0, r5
  101658. 802951a: 47b8 blx r7
  101659. 802951c: 3001 adds r0, #1
  101660. 802951e: f43f ae3f beq.w 80291a0 <_printf_float+0x98>
  101661. 8029522: f108 0801 add.w r8, r8, #1
  101662. 8029526: 68e3 ldr r3, [r4, #12]
  101663. 8029528: 990b ldr r1, [sp, #44] @ 0x2c
  101664. 802952a: 1a5b subs r3, r3, r1
  101665. 802952c: 4543 cmp r3, r8
  101666. 802952e: dcf0 bgt.n 8029512 <_printf_float+0x40a>
  101667. 8029530: e6f8 b.n 8029324 <_printf_float+0x21c>
  101668. 8029532: f04f 0800 mov.w r8, #0
  101669. 8029536: f104 0919 add.w r9, r4, #25
  101670. 802953a: e7f4 b.n 8029526 <_printf_float+0x41e>
  101671. 0802953c <_printf_common>:
  101672. 802953c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  101673. 8029540: 4616 mov r6, r2
  101674. 8029542: 4698 mov r8, r3
  101675. 8029544: 688a ldr r2, [r1, #8]
  101676. 8029546: 690b ldr r3, [r1, #16]
  101677. 8029548: f8dd 9020 ldr.w r9, [sp, #32]
  101678. 802954c: 4293 cmp r3, r2
  101679. 802954e: bfb8 it lt
  101680. 8029550: 4613 movlt r3, r2
  101681. 8029552: 6033 str r3, [r6, #0]
  101682. 8029554: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  101683. 8029558: 4607 mov r7, r0
  101684. 802955a: 460c mov r4, r1
  101685. 802955c: b10a cbz r2, 8029562 <_printf_common+0x26>
  101686. 802955e: 3301 adds r3, #1
  101687. 8029560: 6033 str r3, [r6, #0]
  101688. 8029562: 6823 ldr r3, [r4, #0]
  101689. 8029564: 0699 lsls r1, r3, #26
  101690. 8029566: bf42 ittt mi
  101691. 8029568: 6833 ldrmi r3, [r6, #0]
  101692. 802956a: 3302 addmi r3, #2
  101693. 802956c: 6033 strmi r3, [r6, #0]
  101694. 802956e: 6825 ldr r5, [r4, #0]
  101695. 8029570: f015 0506 ands.w r5, r5, #6
  101696. 8029574: d106 bne.n 8029584 <_printf_common+0x48>
  101697. 8029576: f104 0a19 add.w sl, r4, #25
  101698. 802957a: 68e3 ldr r3, [r4, #12]
  101699. 802957c: 6832 ldr r2, [r6, #0]
  101700. 802957e: 1a9b subs r3, r3, r2
  101701. 8029580: 42ab cmp r3, r5
  101702. 8029582: dc26 bgt.n 80295d2 <_printf_common+0x96>
  101703. 8029584: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  101704. 8029588: 6822 ldr r2, [r4, #0]
  101705. 802958a: 3b00 subs r3, #0
  101706. 802958c: bf18 it ne
  101707. 802958e: 2301 movne r3, #1
  101708. 8029590: 0692 lsls r2, r2, #26
  101709. 8029592: d42b bmi.n 80295ec <_printf_common+0xb0>
  101710. 8029594: f104 0243 add.w r2, r4, #67 @ 0x43
  101711. 8029598: 4641 mov r1, r8
  101712. 802959a: 4638 mov r0, r7
  101713. 802959c: 47c8 blx r9
  101714. 802959e: 3001 adds r0, #1
  101715. 80295a0: d01e beq.n 80295e0 <_printf_common+0xa4>
  101716. 80295a2: 6823 ldr r3, [r4, #0]
  101717. 80295a4: 6922 ldr r2, [r4, #16]
  101718. 80295a6: f003 0306 and.w r3, r3, #6
  101719. 80295aa: 2b04 cmp r3, #4
  101720. 80295ac: bf02 ittt eq
  101721. 80295ae: 68e5 ldreq r5, [r4, #12]
  101722. 80295b0: 6833 ldreq r3, [r6, #0]
  101723. 80295b2: 1aed subeq r5, r5, r3
  101724. 80295b4: 68a3 ldr r3, [r4, #8]
  101725. 80295b6: bf0c ite eq
  101726. 80295b8: ea25 75e5 biceq.w r5, r5, r5, asr #31
  101727. 80295bc: 2500 movne r5, #0
  101728. 80295be: 4293 cmp r3, r2
  101729. 80295c0: bfc4 itt gt
  101730. 80295c2: 1a9b subgt r3, r3, r2
  101731. 80295c4: 18ed addgt r5, r5, r3
  101732. 80295c6: 2600 movs r6, #0
  101733. 80295c8: 341a adds r4, #26
  101734. 80295ca: 42b5 cmp r5, r6
  101735. 80295cc: d11a bne.n 8029604 <_printf_common+0xc8>
  101736. 80295ce: 2000 movs r0, #0
  101737. 80295d0: e008 b.n 80295e4 <_printf_common+0xa8>
  101738. 80295d2: 2301 movs r3, #1
  101739. 80295d4: 4652 mov r2, sl
  101740. 80295d6: 4641 mov r1, r8
  101741. 80295d8: 4638 mov r0, r7
  101742. 80295da: 47c8 blx r9
  101743. 80295dc: 3001 adds r0, #1
  101744. 80295de: d103 bne.n 80295e8 <_printf_common+0xac>
  101745. 80295e0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  101746. 80295e4: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  101747. 80295e8: 3501 adds r5, #1
  101748. 80295ea: e7c6 b.n 802957a <_printf_common+0x3e>
  101749. 80295ec: 18e1 adds r1, r4, r3
  101750. 80295ee: 1c5a adds r2, r3, #1
  101751. 80295f0: 2030 movs r0, #48 @ 0x30
  101752. 80295f2: f881 0043 strb.w r0, [r1, #67] @ 0x43
  101753. 80295f6: 4422 add r2, r4
  101754. 80295f8: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  101755. 80295fc: f882 1043 strb.w r1, [r2, #67] @ 0x43
  101756. 8029600: 3302 adds r3, #2
  101757. 8029602: e7c7 b.n 8029594 <_printf_common+0x58>
  101758. 8029604: 2301 movs r3, #1
  101759. 8029606: 4622 mov r2, r4
  101760. 8029608: 4641 mov r1, r8
  101761. 802960a: 4638 mov r0, r7
  101762. 802960c: 47c8 blx r9
  101763. 802960e: 3001 adds r0, #1
  101764. 8029610: d0e6 beq.n 80295e0 <_printf_common+0xa4>
  101765. 8029612: 3601 adds r6, #1
  101766. 8029614: e7d9 b.n 80295ca <_printf_common+0x8e>
  101767. ...
  101768. 08029618 <_printf_i>:
  101769. 8029618: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  101770. 802961c: 7e0f ldrb r7, [r1, #24]
  101771. 802961e: 9e0c ldr r6, [sp, #48] @ 0x30
  101772. 8029620: 2f78 cmp r7, #120 @ 0x78
  101773. 8029622: 4691 mov r9, r2
  101774. 8029624: 4680 mov r8, r0
  101775. 8029626: 460c mov r4, r1
  101776. 8029628: 469a mov sl, r3
  101777. 802962a: f101 0243 add.w r2, r1, #67 @ 0x43
  101778. 802962e: d807 bhi.n 8029640 <_printf_i+0x28>
  101779. 8029630: 2f62 cmp r7, #98 @ 0x62
  101780. 8029632: d80a bhi.n 802964a <_printf_i+0x32>
  101781. 8029634: 2f00 cmp r7, #0
  101782. 8029636: f000 80d2 beq.w 80297de <_printf_i+0x1c6>
  101783. 802963a: 2f58 cmp r7, #88 @ 0x58
  101784. 802963c: f000 80b9 beq.w 80297b2 <_printf_i+0x19a>
  101785. 8029640: f104 0642 add.w r6, r4, #66 @ 0x42
  101786. 8029644: f884 7042 strb.w r7, [r4, #66] @ 0x42
  101787. 8029648: e03a b.n 80296c0 <_printf_i+0xa8>
  101788. 802964a: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  101789. 802964e: 2b15 cmp r3, #21
  101790. 8029650: d8f6 bhi.n 8029640 <_printf_i+0x28>
  101791. 8029652: a101 add r1, pc, #4 @ (adr r1, 8029658 <_printf_i+0x40>)
  101792. 8029654: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  101793. 8029658: 080296b1 .word 0x080296b1
  101794. 802965c: 080296c5 .word 0x080296c5
  101795. 8029660: 08029641 .word 0x08029641
  101796. 8029664: 08029641 .word 0x08029641
  101797. 8029668: 08029641 .word 0x08029641
  101798. 802966c: 08029641 .word 0x08029641
  101799. 8029670: 080296c5 .word 0x080296c5
  101800. 8029674: 08029641 .word 0x08029641
  101801. 8029678: 08029641 .word 0x08029641
  101802. 802967c: 08029641 .word 0x08029641
  101803. 8029680: 08029641 .word 0x08029641
  101804. 8029684: 080297c5 .word 0x080297c5
  101805. 8029688: 080296ef .word 0x080296ef
  101806. 802968c: 0802977f .word 0x0802977f
  101807. 8029690: 08029641 .word 0x08029641
  101808. 8029694: 08029641 .word 0x08029641
  101809. 8029698: 080297e7 .word 0x080297e7
  101810. 802969c: 08029641 .word 0x08029641
  101811. 80296a0: 080296ef .word 0x080296ef
  101812. 80296a4: 08029641 .word 0x08029641
  101813. 80296a8: 08029641 .word 0x08029641
  101814. 80296ac: 08029787 .word 0x08029787
  101815. 80296b0: 6833 ldr r3, [r6, #0]
  101816. 80296b2: 1d1a adds r2, r3, #4
  101817. 80296b4: 681b ldr r3, [r3, #0]
  101818. 80296b6: 6032 str r2, [r6, #0]
  101819. 80296b8: f104 0642 add.w r6, r4, #66 @ 0x42
  101820. 80296bc: f884 3042 strb.w r3, [r4, #66] @ 0x42
  101821. 80296c0: 2301 movs r3, #1
  101822. 80296c2: e09d b.n 8029800 <_printf_i+0x1e8>
  101823. 80296c4: 6833 ldr r3, [r6, #0]
  101824. 80296c6: 6820 ldr r0, [r4, #0]
  101825. 80296c8: 1d19 adds r1, r3, #4
  101826. 80296ca: 6031 str r1, [r6, #0]
  101827. 80296cc: 0606 lsls r6, r0, #24
  101828. 80296ce: d501 bpl.n 80296d4 <_printf_i+0xbc>
  101829. 80296d0: 681d ldr r5, [r3, #0]
  101830. 80296d2: e003 b.n 80296dc <_printf_i+0xc4>
  101831. 80296d4: 0645 lsls r5, r0, #25
  101832. 80296d6: d5fb bpl.n 80296d0 <_printf_i+0xb8>
  101833. 80296d8: f9b3 5000 ldrsh.w r5, [r3]
  101834. 80296dc: 2d00 cmp r5, #0
  101835. 80296de: da03 bge.n 80296e8 <_printf_i+0xd0>
  101836. 80296e0: 232d movs r3, #45 @ 0x2d
  101837. 80296e2: 426d negs r5, r5
  101838. 80296e4: f884 3043 strb.w r3, [r4, #67] @ 0x43
  101839. 80296e8: 4859 ldr r0, [pc, #356] @ (8029850 <_printf_i+0x238>)
  101840. 80296ea: 230a movs r3, #10
  101841. 80296ec: e011 b.n 8029712 <_printf_i+0xfa>
  101842. 80296ee: 6821 ldr r1, [r4, #0]
  101843. 80296f0: 6833 ldr r3, [r6, #0]
  101844. 80296f2: 0608 lsls r0, r1, #24
  101845. 80296f4: f853 5b04 ldr.w r5, [r3], #4
  101846. 80296f8: d402 bmi.n 8029700 <_printf_i+0xe8>
  101847. 80296fa: 0649 lsls r1, r1, #25
  101848. 80296fc: bf48 it mi
  101849. 80296fe: b2ad uxthmi r5, r5
  101850. 8029700: 2f6f cmp r7, #111 @ 0x6f
  101851. 8029702: 4853 ldr r0, [pc, #332] @ (8029850 <_printf_i+0x238>)
  101852. 8029704: 6033 str r3, [r6, #0]
  101853. 8029706: bf14 ite ne
  101854. 8029708: 230a movne r3, #10
  101855. 802970a: 2308 moveq r3, #8
  101856. 802970c: 2100 movs r1, #0
  101857. 802970e: f884 1043 strb.w r1, [r4, #67] @ 0x43
  101858. 8029712: 6866 ldr r6, [r4, #4]
  101859. 8029714: 60a6 str r6, [r4, #8]
  101860. 8029716: 2e00 cmp r6, #0
  101861. 8029718: bfa2 ittt ge
  101862. 802971a: 6821 ldrge r1, [r4, #0]
  101863. 802971c: f021 0104 bicge.w r1, r1, #4
  101864. 8029720: 6021 strge r1, [r4, #0]
  101865. 8029722: b90d cbnz r5, 8029728 <_printf_i+0x110>
  101866. 8029724: 2e00 cmp r6, #0
  101867. 8029726: d04b beq.n 80297c0 <_printf_i+0x1a8>
  101868. 8029728: 4616 mov r6, r2
  101869. 802972a: fbb5 f1f3 udiv r1, r5, r3
  101870. 802972e: fb03 5711 mls r7, r3, r1, r5
  101871. 8029732: 5dc7 ldrb r7, [r0, r7]
  101872. 8029734: f806 7d01 strb.w r7, [r6, #-1]!
  101873. 8029738: 462f mov r7, r5
  101874. 802973a: 42bb cmp r3, r7
  101875. 802973c: 460d mov r5, r1
  101876. 802973e: d9f4 bls.n 802972a <_printf_i+0x112>
  101877. 8029740: 2b08 cmp r3, #8
  101878. 8029742: d10b bne.n 802975c <_printf_i+0x144>
  101879. 8029744: 6823 ldr r3, [r4, #0]
  101880. 8029746: 07df lsls r7, r3, #31
  101881. 8029748: d508 bpl.n 802975c <_printf_i+0x144>
  101882. 802974a: 6923 ldr r3, [r4, #16]
  101883. 802974c: 6861 ldr r1, [r4, #4]
  101884. 802974e: 4299 cmp r1, r3
  101885. 8029750: bfde ittt le
  101886. 8029752: 2330 movle r3, #48 @ 0x30
  101887. 8029754: f806 3c01 strble.w r3, [r6, #-1]
  101888. 8029758: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  101889. 802975c: 1b92 subs r2, r2, r6
  101890. 802975e: 6122 str r2, [r4, #16]
  101891. 8029760: f8cd a000 str.w sl, [sp]
  101892. 8029764: 464b mov r3, r9
  101893. 8029766: aa03 add r2, sp, #12
  101894. 8029768: 4621 mov r1, r4
  101895. 802976a: 4640 mov r0, r8
  101896. 802976c: f7ff fee6 bl 802953c <_printf_common>
  101897. 8029770: 3001 adds r0, #1
  101898. 8029772: d14a bne.n 802980a <_printf_i+0x1f2>
  101899. 8029774: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  101900. 8029778: b004 add sp, #16
  101901. 802977a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  101902. 802977e: 6823 ldr r3, [r4, #0]
  101903. 8029780: f043 0320 orr.w r3, r3, #32
  101904. 8029784: 6023 str r3, [r4, #0]
  101905. 8029786: 4833 ldr r0, [pc, #204] @ (8029854 <_printf_i+0x23c>)
  101906. 8029788: 2778 movs r7, #120 @ 0x78
  101907. 802978a: f884 7045 strb.w r7, [r4, #69] @ 0x45
  101908. 802978e: 6823 ldr r3, [r4, #0]
  101909. 8029790: 6831 ldr r1, [r6, #0]
  101910. 8029792: 061f lsls r7, r3, #24
  101911. 8029794: f851 5b04 ldr.w r5, [r1], #4
  101912. 8029798: d402 bmi.n 80297a0 <_printf_i+0x188>
  101913. 802979a: 065f lsls r7, r3, #25
  101914. 802979c: bf48 it mi
  101915. 802979e: b2ad uxthmi r5, r5
  101916. 80297a0: 6031 str r1, [r6, #0]
  101917. 80297a2: 07d9 lsls r1, r3, #31
  101918. 80297a4: bf44 itt mi
  101919. 80297a6: f043 0320 orrmi.w r3, r3, #32
  101920. 80297aa: 6023 strmi r3, [r4, #0]
  101921. 80297ac: b11d cbz r5, 80297b6 <_printf_i+0x19e>
  101922. 80297ae: 2310 movs r3, #16
  101923. 80297b0: e7ac b.n 802970c <_printf_i+0xf4>
  101924. 80297b2: 4827 ldr r0, [pc, #156] @ (8029850 <_printf_i+0x238>)
  101925. 80297b4: e7e9 b.n 802978a <_printf_i+0x172>
  101926. 80297b6: 6823 ldr r3, [r4, #0]
  101927. 80297b8: f023 0320 bic.w r3, r3, #32
  101928. 80297bc: 6023 str r3, [r4, #0]
  101929. 80297be: e7f6 b.n 80297ae <_printf_i+0x196>
  101930. 80297c0: 4616 mov r6, r2
  101931. 80297c2: e7bd b.n 8029740 <_printf_i+0x128>
  101932. 80297c4: 6833 ldr r3, [r6, #0]
  101933. 80297c6: 6825 ldr r5, [r4, #0]
  101934. 80297c8: 6961 ldr r1, [r4, #20]
  101935. 80297ca: 1d18 adds r0, r3, #4
  101936. 80297cc: 6030 str r0, [r6, #0]
  101937. 80297ce: 062e lsls r6, r5, #24
  101938. 80297d0: 681b ldr r3, [r3, #0]
  101939. 80297d2: d501 bpl.n 80297d8 <_printf_i+0x1c0>
  101940. 80297d4: 6019 str r1, [r3, #0]
  101941. 80297d6: e002 b.n 80297de <_printf_i+0x1c6>
  101942. 80297d8: 0668 lsls r0, r5, #25
  101943. 80297da: d5fb bpl.n 80297d4 <_printf_i+0x1bc>
  101944. 80297dc: 8019 strh r1, [r3, #0]
  101945. 80297de: 2300 movs r3, #0
  101946. 80297e0: 6123 str r3, [r4, #16]
  101947. 80297e2: 4616 mov r6, r2
  101948. 80297e4: e7bc b.n 8029760 <_printf_i+0x148>
  101949. 80297e6: 6833 ldr r3, [r6, #0]
  101950. 80297e8: 1d1a adds r2, r3, #4
  101951. 80297ea: 6032 str r2, [r6, #0]
  101952. 80297ec: 681e ldr r6, [r3, #0]
  101953. 80297ee: 6862 ldr r2, [r4, #4]
  101954. 80297f0: 2100 movs r1, #0
  101955. 80297f2: 4630 mov r0, r6
  101956. 80297f4: f7d6 fd84 bl 8000300 <memchr>
  101957. 80297f8: b108 cbz r0, 80297fe <_printf_i+0x1e6>
  101958. 80297fa: 1b80 subs r0, r0, r6
  101959. 80297fc: 6060 str r0, [r4, #4]
  101960. 80297fe: 6863 ldr r3, [r4, #4]
  101961. 8029800: 6123 str r3, [r4, #16]
  101962. 8029802: 2300 movs r3, #0
  101963. 8029804: f884 3043 strb.w r3, [r4, #67] @ 0x43
  101964. 8029808: e7aa b.n 8029760 <_printf_i+0x148>
  101965. 802980a: 6923 ldr r3, [r4, #16]
  101966. 802980c: 4632 mov r2, r6
  101967. 802980e: 4649 mov r1, r9
  101968. 8029810: 4640 mov r0, r8
  101969. 8029812: 47d0 blx sl
  101970. 8029814: 3001 adds r0, #1
  101971. 8029816: d0ad beq.n 8029774 <_printf_i+0x15c>
  101972. 8029818: 6823 ldr r3, [r4, #0]
  101973. 802981a: 079b lsls r3, r3, #30
  101974. 802981c: d413 bmi.n 8029846 <_printf_i+0x22e>
  101975. 802981e: 68e0 ldr r0, [r4, #12]
  101976. 8029820: 9b03 ldr r3, [sp, #12]
  101977. 8029822: 4298 cmp r0, r3
  101978. 8029824: bfb8 it lt
  101979. 8029826: 4618 movlt r0, r3
  101980. 8029828: e7a6 b.n 8029778 <_printf_i+0x160>
  101981. 802982a: 2301 movs r3, #1
  101982. 802982c: 4632 mov r2, r6
  101983. 802982e: 4649 mov r1, r9
  101984. 8029830: 4640 mov r0, r8
  101985. 8029832: 47d0 blx sl
  101986. 8029834: 3001 adds r0, #1
  101987. 8029836: d09d beq.n 8029774 <_printf_i+0x15c>
  101988. 8029838: 3501 adds r5, #1
  101989. 802983a: 68e3 ldr r3, [r4, #12]
  101990. 802983c: 9903 ldr r1, [sp, #12]
  101991. 802983e: 1a5b subs r3, r3, r1
  101992. 8029840: 42ab cmp r3, r5
  101993. 8029842: dcf2 bgt.n 802982a <_printf_i+0x212>
  101994. 8029844: e7eb b.n 802981e <_printf_i+0x206>
  101995. 8029846: 2500 movs r5, #0
  101996. 8029848: f104 0619 add.w r6, r4, #25
  101997. 802984c: e7f5 b.n 802983a <_printf_i+0x222>
  101998. 802984e: bf00 nop
  101999. 8029850: 08030e53 .word 0x08030e53
  102000. 8029854: 08030e64 .word 0x08030e64
  102001. 08029858 <std>:
  102002. 8029858: 2300 movs r3, #0
  102003. 802985a: b510 push {r4, lr}
  102004. 802985c: 4604 mov r4, r0
  102005. 802985e: e9c0 3300 strd r3, r3, [r0]
  102006. 8029862: e9c0 3304 strd r3, r3, [r0, #16]
  102007. 8029866: 6083 str r3, [r0, #8]
  102008. 8029868: 8181 strh r1, [r0, #12]
  102009. 802986a: 6643 str r3, [r0, #100] @ 0x64
  102010. 802986c: 81c2 strh r2, [r0, #14]
  102011. 802986e: 6183 str r3, [r0, #24]
  102012. 8029870: 4619 mov r1, r3
  102013. 8029872: 2208 movs r2, #8
  102014. 8029874: 305c adds r0, #92 @ 0x5c
  102015. 8029876: f000 fa43 bl 8029d00 <memset>
  102016. 802987a: 4b0d ldr r3, [pc, #52] @ (80298b0 <std+0x58>)
  102017. 802987c: 6263 str r3, [r4, #36] @ 0x24
  102018. 802987e: 4b0d ldr r3, [pc, #52] @ (80298b4 <std+0x5c>)
  102019. 8029880: 62a3 str r3, [r4, #40] @ 0x28
  102020. 8029882: 4b0d ldr r3, [pc, #52] @ (80298b8 <std+0x60>)
  102021. 8029884: 62e3 str r3, [r4, #44] @ 0x2c
  102022. 8029886: 4b0d ldr r3, [pc, #52] @ (80298bc <std+0x64>)
  102023. 8029888: 6323 str r3, [r4, #48] @ 0x30
  102024. 802988a: 4b0d ldr r3, [pc, #52] @ (80298c0 <std+0x68>)
  102025. 802988c: 6224 str r4, [r4, #32]
  102026. 802988e: 429c cmp r4, r3
  102027. 8029890: d006 beq.n 80298a0 <std+0x48>
  102028. 8029892: f103 0268 add.w r2, r3, #104 @ 0x68
  102029. 8029896: 4294 cmp r4, r2
  102030. 8029898: d002 beq.n 80298a0 <std+0x48>
  102031. 802989a: 33d0 adds r3, #208 @ 0xd0
  102032. 802989c: 429c cmp r4, r3
  102033. 802989e: d105 bne.n 80298ac <std+0x54>
  102034. 80298a0: f104 0058 add.w r0, r4, #88 @ 0x58
  102035. 80298a4: e8bd 4010 ldmia.w sp!, {r4, lr}
  102036. 80298a8: f000 bb1e b.w 8029ee8 <__retarget_lock_init_recursive>
  102037. 80298ac: bd10 pop {r4, pc}
  102038. 80298ae: bf00 nop
  102039. 80298b0: 08029afd .word 0x08029afd
  102040. 80298b4: 08029b1f .word 0x08029b1f
  102041. 80298b8: 08029b57 .word 0x08029b57
  102042. 80298bc: 08029b7b .word 0x08029b7b
  102043. 80298c0: 2402b044 .word 0x2402b044
  102044. 080298c4 <stdio_exit_handler>:
  102045. 80298c4: 4a02 ldr r2, [pc, #8] @ (80298d0 <stdio_exit_handler+0xc>)
  102046. 80298c6: 4903 ldr r1, [pc, #12] @ (80298d4 <stdio_exit_handler+0x10>)
  102047. 80298c8: 4803 ldr r0, [pc, #12] @ (80298d8 <stdio_exit_handler+0x14>)
  102048. 80298ca: f000 b869 b.w 80299a0 <_fwalk_sglue>
  102049. 80298ce: bf00 nop
  102050. 80298d0: 2400005c .word 0x2400005c
  102051. 80298d4: 0802c20d .word 0x0802c20d
  102052. 80298d8: 240001d8 .word 0x240001d8
  102053. 080298dc <cleanup_stdio>:
  102054. 80298dc: 6841 ldr r1, [r0, #4]
  102055. 80298de: 4b0c ldr r3, [pc, #48] @ (8029910 <cleanup_stdio+0x34>)
  102056. 80298e0: 4299 cmp r1, r3
  102057. 80298e2: b510 push {r4, lr}
  102058. 80298e4: 4604 mov r4, r0
  102059. 80298e6: d001 beq.n 80298ec <cleanup_stdio+0x10>
  102060. 80298e8: f002 fc90 bl 802c20c <_fflush_r>
  102061. 80298ec: 68a1 ldr r1, [r4, #8]
  102062. 80298ee: 4b09 ldr r3, [pc, #36] @ (8029914 <cleanup_stdio+0x38>)
  102063. 80298f0: 4299 cmp r1, r3
  102064. 80298f2: d002 beq.n 80298fa <cleanup_stdio+0x1e>
  102065. 80298f4: 4620 mov r0, r4
  102066. 80298f6: f002 fc89 bl 802c20c <_fflush_r>
  102067. 80298fa: 68e1 ldr r1, [r4, #12]
  102068. 80298fc: 4b06 ldr r3, [pc, #24] @ (8029918 <cleanup_stdio+0x3c>)
  102069. 80298fe: 4299 cmp r1, r3
  102070. 8029900: d004 beq.n 802990c <cleanup_stdio+0x30>
  102071. 8029902: 4620 mov r0, r4
  102072. 8029904: e8bd 4010 ldmia.w sp!, {r4, lr}
  102073. 8029908: f002 bc80 b.w 802c20c <_fflush_r>
  102074. 802990c: bd10 pop {r4, pc}
  102075. 802990e: bf00 nop
  102076. 8029910: 2402b044 .word 0x2402b044
  102077. 8029914: 2402b0ac .word 0x2402b0ac
  102078. 8029918: 2402b114 .word 0x2402b114
  102079. 0802991c <global_stdio_init.part.0>:
  102080. 802991c: b510 push {r4, lr}
  102081. 802991e: 4b0b ldr r3, [pc, #44] @ (802994c <global_stdio_init.part.0+0x30>)
  102082. 8029920: 4c0b ldr r4, [pc, #44] @ (8029950 <global_stdio_init.part.0+0x34>)
  102083. 8029922: 4a0c ldr r2, [pc, #48] @ (8029954 <global_stdio_init.part.0+0x38>)
  102084. 8029924: 601a str r2, [r3, #0]
  102085. 8029926: 4620 mov r0, r4
  102086. 8029928: 2200 movs r2, #0
  102087. 802992a: 2104 movs r1, #4
  102088. 802992c: f7ff ff94 bl 8029858 <std>
  102089. 8029930: f104 0068 add.w r0, r4, #104 @ 0x68
  102090. 8029934: 2201 movs r2, #1
  102091. 8029936: 2109 movs r1, #9
  102092. 8029938: f7ff ff8e bl 8029858 <std>
  102093. 802993c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  102094. 8029940: 2202 movs r2, #2
  102095. 8029942: e8bd 4010 ldmia.w sp!, {r4, lr}
  102096. 8029946: 2112 movs r1, #18
  102097. 8029948: f7ff bf86 b.w 8029858 <std>
  102098. 802994c: 2402b17c .word 0x2402b17c
  102099. 8029950: 2402b044 .word 0x2402b044
  102100. 8029954: 080298c5 .word 0x080298c5
  102101. 08029958 <__sfp_lock_acquire>:
  102102. 8029958: 4801 ldr r0, [pc, #4] @ (8029960 <__sfp_lock_acquire+0x8>)
  102103. 802995a: f000 bac6 b.w 8029eea <__retarget_lock_acquire_recursive>
  102104. 802995e: bf00 nop
  102105. 8029960: 2402b185 .word 0x2402b185
  102106. 08029964 <__sfp_lock_release>:
  102107. 8029964: 4801 ldr r0, [pc, #4] @ (802996c <__sfp_lock_release+0x8>)
  102108. 8029966: f000 bac1 b.w 8029eec <__retarget_lock_release_recursive>
  102109. 802996a: bf00 nop
  102110. 802996c: 2402b185 .word 0x2402b185
  102111. 08029970 <__sinit>:
  102112. 8029970: b510 push {r4, lr}
  102113. 8029972: 4604 mov r4, r0
  102114. 8029974: f7ff fff0 bl 8029958 <__sfp_lock_acquire>
  102115. 8029978: 6a23 ldr r3, [r4, #32]
  102116. 802997a: b11b cbz r3, 8029984 <__sinit+0x14>
  102117. 802997c: e8bd 4010 ldmia.w sp!, {r4, lr}
  102118. 8029980: f7ff bff0 b.w 8029964 <__sfp_lock_release>
  102119. 8029984: 4b04 ldr r3, [pc, #16] @ (8029998 <__sinit+0x28>)
  102120. 8029986: 6223 str r3, [r4, #32]
  102121. 8029988: 4b04 ldr r3, [pc, #16] @ (802999c <__sinit+0x2c>)
  102122. 802998a: 681b ldr r3, [r3, #0]
  102123. 802998c: 2b00 cmp r3, #0
  102124. 802998e: d1f5 bne.n 802997c <__sinit+0xc>
  102125. 8029990: f7ff ffc4 bl 802991c <global_stdio_init.part.0>
  102126. 8029994: e7f2 b.n 802997c <__sinit+0xc>
  102127. 8029996: bf00 nop
  102128. 8029998: 080298dd .word 0x080298dd
  102129. 802999c: 2402b17c .word 0x2402b17c
  102130. 080299a0 <_fwalk_sglue>:
  102131. 80299a0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  102132. 80299a4: 4607 mov r7, r0
  102133. 80299a6: 4688 mov r8, r1
  102134. 80299a8: 4614 mov r4, r2
  102135. 80299aa: 2600 movs r6, #0
  102136. 80299ac: e9d4 9501 ldrd r9, r5, [r4, #4]
  102137. 80299b0: f1b9 0901 subs.w r9, r9, #1
  102138. 80299b4: d505 bpl.n 80299c2 <_fwalk_sglue+0x22>
  102139. 80299b6: 6824 ldr r4, [r4, #0]
  102140. 80299b8: 2c00 cmp r4, #0
  102141. 80299ba: d1f7 bne.n 80299ac <_fwalk_sglue+0xc>
  102142. 80299bc: 4630 mov r0, r6
  102143. 80299be: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  102144. 80299c2: 89ab ldrh r3, [r5, #12]
  102145. 80299c4: 2b01 cmp r3, #1
  102146. 80299c6: d907 bls.n 80299d8 <_fwalk_sglue+0x38>
  102147. 80299c8: f9b5 300e ldrsh.w r3, [r5, #14]
  102148. 80299cc: 3301 adds r3, #1
  102149. 80299ce: d003 beq.n 80299d8 <_fwalk_sglue+0x38>
  102150. 80299d0: 4629 mov r1, r5
  102151. 80299d2: 4638 mov r0, r7
  102152. 80299d4: 47c0 blx r8
  102153. 80299d6: 4306 orrs r6, r0
  102154. 80299d8: 3568 adds r5, #104 @ 0x68
  102155. 80299da: e7e9 b.n 80299b0 <_fwalk_sglue+0x10>
  102156. 080299dc <iprintf>:
  102157. 80299dc: b40f push {r0, r1, r2, r3}
  102158. 80299de: b507 push {r0, r1, r2, lr}
  102159. 80299e0: 4906 ldr r1, [pc, #24] @ (80299fc <iprintf+0x20>)
  102160. 80299e2: ab04 add r3, sp, #16
  102161. 80299e4: 6808 ldr r0, [r1, #0]
  102162. 80299e6: f853 2b04 ldr.w r2, [r3], #4
  102163. 80299ea: 6881 ldr r1, [r0, #8]
  102164. 80299ec: 9301 str r3, [sp, #4]
  102165. 80299ee: f002 fa71 bl 802bed4 <_vfiprintf_r>
  102166. 80299f2: b003 add sp, #12
  102167. 80299f4: f85d eb04 ldr.w lr, [sp], #4
  102168. 80299f8: b004 add sp, #16
  102169. 80299fa: 4770 bx lr
  102170. 80299fc: 240001d4 .word 0x240001d4
  102171. 08029a00 <_puts_r>:
  102172. 8029a00: 6a03 ldr r3, [r0, #32]
  102173. 8029a02: b570 push {r4, r5, r6, lr}
  102174. 8029a04: 6884 ldr r4, [r0, #8]
  102175. 8029a06: 4605 mov r5, r0
  102176. 8029a08: 460e mov r6, r1
  102177. 8029a0a: b90b cbnz r3, 8029a10 <_puts_r+0x10>
  102178. 8029a0c: f7ff ffb0 bl 8029970 <__sinit>
  102179. 8029a10: 6e63 ldr r3, [r4, #100] @ 0x64
  102180. 8029a12: 07db lsls r3, r3, #31
  102181. 8029a14: d405 bmi.n 8029a22 <_puts_r+0x22>
  102182. 8029a16: 89a3 ldrh r3, [r4, #12]
  102183. 8029a18: 0598 lsls r0, r3, #22
  102184. 8029a1a: d402 bmi.n 8029a22 <_puts_r+0x22>
  102185. 8029a1c: 6da0 ldr r0, [r4, #88] @ 0x58
  102186. 8029a1e: f000 fa64 bl 8029eea <__retarget_lock_acquire_recursive>
  102187. 8029a22: 89a3 ldrh r3, [r4, #12]
  102188. 8029a24: 0719 lsls r1, r3, #28
  102189. 8029a26: d502 bpl.n 8029a2e <_puts_r+0x2e>
  102190. 8029a28: 6923 ldr r3, [r4, #16]
  102191. 8029a2a: 2b00 cmp r3, #0
  102192. 8029a2c: d135 bne.n 8029a9a <_puts_r+0x9a>
  102193. 8029a2e: 4621 mov r1, r4
  102194. 8029a30: 4628 mov r0, r5
  102195. 8029a32: f000 f8e5 bl 8029c00 <__swsetup_r>
  102196. 8029a36: b380 cbz r0, 8029a9a <_puts_r+0x9a>
  102197. 8029a38: f04f 35ff mov.w r5, #4294967295 @ 0xffffffff
  102198. 8029a3c: 6e63 ldr r3, [r4, #100] @ 0x64
  102199. 8029a3e: 07da lsls r2, r3, #31
  102200. 8029a40: d405 bmi.n 8029a4e <_puts_r+0x4e>
  102201. 8029a42: 89a3 ldrh r3, [r4, #12]
  102202. 8029a44: 059b lsls r3, r3, #22
  102203. 8029a46: d402 bmi.n 8029a4e <_puts_r+0x4e>
  102204. 8029a48: 6da0 ldr r0, [r4, #88] @ 0x58
  102205. 8029a4a: f000 fa4f bl 8029eec <__retarget_lock_release_recursive>
  102206. 8029a4e: 4628 mov r0, r5
  102207. 8029a50: bd70 pop {r4, r5, r6, pc}
  102208. 8029a52: 2b00 cmp r3, #0
  102209. 8029a54: da04 bge.n 8029a60 <_puts_r+0x60>
  102210. 8029a56: 69a2 ldr r2, [r4, #24]
  102211. 8029a58: 429a cmp r2, r3
  102212. 8029a5a: dc17 bgt.n 8029a8c <_puts_r+0x8c>
  102213. 8029a5c: 290a cmp r1, #10
  102214. 8029a5e: d015 beq.n 8029a8c <_puts_r+0x8c>
  102215. 8029a60: 6823 ldr r3, [r4, #0]
  102216. 8029a62: 1c5a adds r2, r3, #1
  102217. 8029a64: 6022 str r2, [r4, #0]
  102218. 8029a66: 7019 strb r1, [r3, #0]
  102219. 8029a68: 68a3 ldr r3, [r4, #8]
  102220. 8029a6a: f816 1f01 ldrb.w r1, [r6, #1]!
  102221. 8029a6e: 3b01 subs r3, #1
  102222. 8029a70: 60a3 str r3, [r4, #8]
  102223. 8029a72: 2900 cmp r1, #0
  102224. 8029a74: d1ed bne.n 8029a52 <_puts_r+0x52>
  102225. 8029a76: 2b00 cmp r3, #0
  102226. 8029a78: da11 bge.n 8029a9e <_puts_r+0x9e>
  102227. 8029a7a: 4622 mov r2, r4
  102228. 8029a7c: 210a movs r1, #10
  102229. 8029a7e: 4628 mov r0, r5
  102230. 8029a80: f000 f87f bl 8029b82 <__swbuf_r>
  102231. 8029a84: 3001 adds r0, #1
  102232. 8029a86: d0d7 beq.n 8029a38 <_puts_r+0x38>
  102233. 8029a88: 250a movs r5, #10
  102234. 8029a8a: e7d7 b.n 8029a3c <_puts_r+0x3c>
  102235. 8029a8c: 4622 mov r2, r4
  102236. 8029a8e: 4628 mov r0, r5
  102237. 8029a90: f000 f877 bl 8029b82 <__swbuf_r>
  102238. 8029a94: 3001 adds r0, #1
  102239. 8029a96: d1e7 bne.n 8029a68 <_puts_r+0x68>
  102240. 8029a98: e7ce b.n 8029a38 <_puts_r+0x38>
  102241. 8029a9a: 3e01 subs r6, #1
  102242. 8029a9c: e7e4 b.n 8029a68 <_puts_r+0x68>
  102243. 8029a9e: 6823 ldr r3, [r4, #0]
  102244. 8029aa0: 1c5a adds r2, r3, #1
  102245. 8029aa2: 6022 str r2, [r4, #0]
  102246. 8029aa4: 220a movs r2, #10
  102247. 8029aa6: 701a strb r2, [r3, #0]
  102248. 8029aa8: e7ee b.n 8029a88 <_puts_r+0x88>
  102249. ...
  102250. 08029aac <puts>:
  102251. 8029aac: 4b02 ldr r3, [pc, #8] @ (8029ab8 <puts+0xc>)
  102252. 8029aae: 4601 mov r1, r0
  102253. 8029ab0: 6818 ldr r0, [r3, #0]
  102254. 8029ab2: f7ff bfa5 b.w 8029a00 <_puts_r>
  102255. 8029ab6: bf00 nop
  102256. 8029ab8: 240001d4 .word 0x240001d4
  102257. 08029abc <siprintf>:
  102258. 8029abc: b40e push {r1, r2, r3}
  102259. 8029abe: b500 push {lr}
  102260. 8029ac0: b09c sub sp, #112 @ 0x70
  102261. 8029ac2: ab1d add r3, sp, #116 @ 0x74
  102262. 8029ac4: 9002 str r0, [sp, #8]
  102263. 8029ac6: 9006 str r0, [sp, #24]
  102264. 8029ac8: f06f 4100 mvn.w r1, #2147483648 @ 0x80000000
  102265. 8029acc: 4809 ldr r0, [pc, #36] @ (8029af4 <siprintf+0x38>)
  102266. 8029ace: 9107 str r1, [sp, #28]
  102267. 8029ad0: 9104 str r1, [sp, #16]
  102268. 8029ad2: 4909 ldr r1, [pc, #36] @ (8029af8 <siprintf+0x3c>)
  102269. 8029ad4: f853 2b04 ldr.w r2, [r3], #4
  102270. 8029ad8: 9105 str r1, [sp, #20]
  102271. 8029ada: 6800 ldr r0, [r0, #0]
  102272. 8029adc: 9301 str r3, [sp, #4]
  102273. 8029ade: a902 add r1, sp, #8
  102274. 8029ae0: f002 f8d2 bl 802bc88 <_svfiprintf_r>
  102275. 8029ae4: 9b02 ldr r3, [sp, #8]
  102276. 8029ae6: 2200 movs r2, #0
  102277. 8029ae8: 701a strb r2, [r3, #0]
  102278. 8029aea: b01c add sp, #112 @ 0x70
  102279. 8029aec: f85d eb04 ldr.w lr, [sp], #4
  102280. 8029af0: b003 add sp, #12
  102281. 8029af2: 4770 bx lr
  102282. 8029af4: 240001d4 .word 0x240001d4
  102283. 8029af8: ffff0208 .word 0xffff0208
  102284. 08029afc <__sread>:
  102285. 8029afc: b510 push {r4, lr}
  102286. 8029afe: 460c mov r4, r1
  102287. 8029b00: f9b1 100e ldrsh.w r1, [r1, #14]
  102288. 8029b04: f000 f992 bl 8029e2c <_read_r>
  102289. 8029b08: 2800 cmp r0, #0
  102290. 8029b0a: bfab itete ge
  102291. 8029b0c: 6d63 ldrge r3, [r4, #84] @ 0x54
  102292. 8029b0e: 89a3 ldrhlt r3, [r4, #12]
  102293. 8029b10: 181b addge r3, r3, r0
  102294. 8029b12: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  102295. 8029b16: bfac ite ge
  102296. 8029b18: 6563 strge r3, [r4, #84] @ 0x54
  102297. 8029b1a: 81a3 strhlt r3, [r4, #12]
  102298. 8029b1c: bd10 pop {r4, pc}
  102299. 08029b1e <__swrite>:
  102300. 8029b1e: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  102301. 8029b22: 461f mov r7, r3
  102302. 8029b24: 898b ldrh r3, [r1, #12]
  102303. 8029b26: 05db lsls r3, r3, #23
  102304. 8029b28: 4605 mov r5, r0
  102305. 8029b2a: 460c mov r4, r1
  102306. 8029b2c: 4616 mov r6, r2
  102307. 8029b2e: d505 bpl.n 8029b3c <__swrite+0x1e>
  102308. 8029b30: f9b1 100e ldrsh.w r1, [r1, #14]
  102309. 8029b34: 2302 movs r3, #2
  102310. 8029b36: 2200 movs r2, #0
  102311. 8029b38: f000 f966 bl 8029e08 <_lseek_r>
  102312. 8029b3c: 89a3 ldrh r3, [r4, #12]
  102313. 8029b3e: f9b4 100e ldrsh.w r1, [r4, #14]
  102314. 8029b42: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  102315. 8029b46: 81a3 strh r3, [r4, #12]
  102316. 8029b48: 4632 mov r2, r6
  102317. 8029b4a: 463b mov r3, r7
  102318. 8029b4c: 4628 mov r0, r5
  102319. 8029b4e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  102320. 8029b52: f000 b98d b.w 8029e70 <_write_r>
  102321. 08029b56 <__sseek>:
  102322. 8029b56: b510 push {r4, lr}
  102323. 8029b58: 460c mov r4, r1
  102324. 8029b5a: f9b1 100e ldrsh.w r1, [r1, #14]
  102325. 8029b5e: f000 f953 bl 8029e08 <_lseek_r>
  102326. 8029b62: 1c43 adds r3, r0, #1
  102327. 8029b64: 89a3 ldrh r3, [r4, #12]
  102328. 8029b66: bf15 itete ne
  102329. 8029b68: 6560 strne r0, [r4, #84] @ 0x54
  102330. 8029b6a: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  102331. 8029b6e: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  102332. 8029b72: 81a3 strheq r3, [r4, #12]
  102333. 8029b74: bf18 it ne
  102334. 8029b76: 81a3 strhne r3, [r4, #12]
  102335. 8029b78: bd10 pop {r4, pc}
  102336. 08029b7a <__sclose>:
  102337. 8029b7a: f9b1 100e ldrsh.w r1, [r1, #14]
  102338. 8029b7e: f000 b8dd b.w 8029d3c <_close_r>
  102339. 08029b82 <__swbuf_r>:
  102340. 8029b82: b5f8 push {r3, r4, r5, r6, r7, lr}
  102341. 8029b84: 460e mov r6, r1
  102342. 8029b86: 4614 mov r4, r2
  102343. 8029b88: 4605 mov r5, r0
  102344. 8029b8a: b118 cbz r0, 8029b94 <__swbuf_r+0x12>
  102345. 8029b8c: 6a03 ldr r3, [r0, #32]
  102346. 8029b8e: b90b cbnz r3, 8029b94 <__swbuf_r+0x12>
  102347. 8029b90: f7ff feee bl 8029970 <__sinit>
  102348. 8029b94: 69a3 ldr r3, [r4, #24]
  102349. 8029b96: 60a3 str r3, [r4, #8]
  102350. 8029b98: 89a3 ldrh r3, [r4, #12]
  102351. 8029b9a: 071a lsls r2, r3, #28
  102352. 8029b9c: d501 bpl.n 8029ba2 <__swbuf_r+0x20>
  102353. 8029b9e: 6923 ldr r3, [r4, #16]
  102354. 8029ba0: b943 cbnz r3, 8029bb4 <__swbuf_r+0x32>
  102355. 8029ba2: 4621 mov r1, r4
  102356. 8029ba4: 4628 mov r0, r5
  102357. 8029ba6: f000 f82b bl 8029c00 <__swsetup_r>
  102358. 8029baa: b118 cbz r0, 8029bb4 <__swbuf_r+0x32>
  102359. 8029bac: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  102360. 8029bb0: 4638 mov r0, r7
  102361. 8029bb2: bdf8 pop {r3, r4, r5, r6, r7, pc}
  102362. 8029bb4: 6823 ldr r3, [r4, #0]
  102363. 8029bb6: 6922 ldr r2, [r4, #16]
  102364. 8029bb8: 1a98 subs r0, r3, r2
  102365. 8029bba: 6963 ldr r3, [r4, #20]
  102366. 8029bbc: b2f6 uxtb r6, r6
  102367. 8029bbe: 4283 cmp r3, r0
  102368. 8029bc0: 4637 mov r7, r6
  102369. 8029bc2: dc05 bgt.n 8029bd0 <__swbuf_r+0x4e>
  102370. 8029bc4: 4621 mov r1, r4
  102371. 8029bc6: 4628 mov r0, r5
  102372. 8029bc8: f002 fb20 bl 802c20c <_fflush_r>
  102373. 8029bcc: 2800 cmp r0, #0
  102374. 8029bce: d1ed bne.n 8029bac <__swbuf_r+0x2a>
  102375. 8029bd0: 68a3 ldr r3, [r4, #8]
  102376. 8029bd2: 3b01 subs r3, #1
  102377. 8029bd4: 60a3 str r3, [r4, #8]
  102378. 8029bd6: 6823 ldr r3, [r4, #0]
  102379. 8029bd8: 1c5a adds r2, r3, #1
  102380. 8029bda: 6022 str r2, [r4, #0]
  102381. 8029bdc: 701e strb r6, [r3, #0]
  102382. 8029bde: 6962 ldr r2, [r4, #20]
  102383. 8029be0: 1c43 adds r3, r0, #1
  102384. 8029be2: 429a cmp r2, r3
  102385. 8029be4: d004 beq.n 8029bf0 <__swbuf_r+0x6e>
  102386. 8029be6: 89a3 ldrh r3, [r4, #12]
  102387. 8029be8: 07db lsls r3, r3, #31
  102388. 8029bea: d5e1 bpl.n 8029bb0 <__swbuf_r+0x2e>
  102389. 8029bec: 2e0a cmp r6, #10
  102390. 8029bee: d1df bne.n 8029bb0 <__swbuf_r+0x2e>
  102391. 8029bf0: 4621 mov r1, r4
  102392. 8029bf2: 4628 mov r0, r5
  102393. 8029bf4: f002 fb0a bl 802c20c <_fflush_r>
  102394. 8029bf8: 2800 cmp r0, #0
  102395. 8029bfa: d0d9 beq.n 8029bb0 <__swbuf_r+0x2e>
  102396. 8029bfc: e7d6 b.n 8029bac <__swbuf_r+0x2a>
  102397. ...
  102398. 08029c00 <__swsetup_r>:
  102399. 8029c00: b538 push {r3, r4, r5, lr}
  102400. 8029c02: 4b29 ldr r3, [pc, #164] @ (8029ca8 <__swsetup_r+0xa8>)
  102401. 8029c04: 4605 mov r5, r0
  102402. 8029c06: 6818 ldr r0, [r3, #0]
  102403. 8029c08: 460c mov r4, r1
  102404. 8029c0a: b118 cbz r0, 8029c14 <__swsetup_r+0x14>
  102405. 8029c0c: 6a03 ldr r3, [r0, #32]
  102406. 8029c0e: b90b cbnz r3, 8029c14 <__swsetup_r+0x14>
  102407. 8029c10: f7ff feae bl 8029970 <__sinit>
  102408. 8029c14: f9b4 300c ldrsh.w r3, [r4, #12]
  102409. 8029c18: 0719 lsls r1, r3, #28
  102410. 8029c1a: d422 bmi.n 8029c62 <__swsetup_r+0x62>
  102411. 8029c1c: 06da lsls r2, r3, #27
  102412. 8029c1e: d407 bmi.n 8029c30 <__swsetup_r+0x30>
  102413. 8029c20: 2209 movs r2, #9
  102414. 8029c22: 602a str r2, [r5, #0]
  102415. 8029c24: f043 0340 orr.w r3, r3, #64 @ 0x40
  102416. 8029c28: 81a3 strh r3, [r4, #12]
  102417. 8029c2a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  102418. 8029c2e: e033 b.n 8029c98 <__swsetup_r+0x98>
  102419. 8029c30: 0758 lsls r0, r3, #29
  102420. 8029c32: d512 bpl.n 8029c5a <__swsetup_r+0x5a>
  102421. 8029c34: 6b61 ldr r1, [r4, #52] @ 0x34
  102422. 8029c36: b141 cbz r1, 8029c4a <__swsetup_r+0x4a>
  102423. 8029c38: f104 0344 add.w r3, r4, #68 @ 0x44
  102424. 8029c3c: 4299 cmp r1, r3
  102425. 8029c3e: d002 beq.n 8029c46 <__swsetup_r+0x46>
  102426. 8029c40: 4628 mov r0, r5
  102427. 8029c42: f000 ff6b bl 802ab1c <_free_r>
  102428. 8029c46: 2300 movs r3, #0
  102429. 8029c48: 6363 str r3, [r4, #52] @ 0x34
  102430. 8029c4a: 89a3 ldrh r3, [r4, #12]
  102431. 8029c4c: f023 0324 bic.w r3, r3, #36 @ 0x24
  102432. 8029c50: 81a3 strh r3, [r4, #12]
  102433. 8029c52: 2300 movs r3, #0
  102434. 8029c54: 6063 str r3, [r4, #4]
  102435. 8029c56: 6923 ldr r3, [r4, #16]
  102436. 8029c58: 6023 str r3, [r4, #0]
  102437. 8029c5a: 89a3 ldrh r3, [r4, #12]
  102438. 8029c5c: f043 0308 orr.w r3, r3, #8
  102439. 8029c60: 81a3 strh r3, [r4, #12]
  102440. 8029c62: 6923 ldr r3, [r4, #16]
  102441. 8029c64: b94b cbnz r3, 8029c7a <__swsetup_r+0x7a>
  102442. 8029c66: 89a3 ldrh r3, [r4, #12]
  102443. 8029c68: f403 7320 and.w r3, r3, #640 @ 0x280
  102444. 8029c6c: f5b3 7f00 cmp.w r3, #512 @ 0x200
  102445. 8029c70: d003 beq.n 8029c7a <__swsetup_r+0x7a>
  102446. 8029c72: 4621 mov r1, r4
  102447. 8029c74: 4628 mov r0, r5
  102448. 8029c76: f002 fb29 bl 802c2cc <__smakebuf_r>
  102449. 8029c7a: f9b4 300c ldrsh.w r3, [r4, #12]
  102450. 8029c7e: f013 0201 ands.w r2, r3, #1
  102451. 8029c82: d00a beq.n 8029c9a <__swsetup_r+0x9a>
  102452. 8029c84: 2200 movs r2, #0
  102453. 8029c86: 60a2 str r2, [r4, #8]
  102454. 8029c88: 6962 ldr r2, [r4, #20]
  102455. 8029c8a: 4252 negs r2, r2
  102456. 8029c8c: 61a2 str r2, [r4, #24]
  102457. 8029c8e: 6922 ldr r2, [r4, #16]
  102458. 8029c90: b942 cbnz r2, 8029ca4 <__swsetup_r+0xa4>
  102459. 8029c92: f013 0080 ands.w r0, r3, #128 @ 0x80
  102460. 8029c96: d1c5 bne.n 8029c24 <__swsetup_r+0x24>
  102461. 8029c98: bd38 pop {r3, r4, r5, pc}
  102462. 8029c9a: 0799 lsls r1, r3, #30
  102463. 8029c9c: bf58 it pl
  102464. 8029c9e: 6962 ldrpl r2, [r4, #20]
  102465. 8029ca0: 60a2 str r2, [r4, #8]
  102466. 8029ca2: e7f4 b.n 8029c8e <__swsetup_r+0x8e>
  102467. 8029ca4: 2000 movs r0, #0
  102468. 8029ca6: e7f7 b.n 8029c98 <__swsetup_r+0x98>
  102469. 8029ca8: 240001d4 .word 0x240001d4
  102470. 08029cac <memcmp>:
  102471. 8029cac: b510 push {r4, lr}
  102472. 8029cae: 3901 subs r1, #1
  102473. 8029cb0: 4402 add r2, r0
  102474. 8029cb2: 4290 cmp r0, r2
  102475. 8029cb4: d101 bne.n 8029cba <memcmp+0xe>
  102476. 8029cb6: 2000 movs r0, #0
  102477. 8029cb8: e005 b.n 8029cc6 <memcmp+0x1a>
  102478. 8029cba: 7803 ldrb r3, [r0, #0]
  102479. 8029cbc: f811 4f01 ldrb.w r4, [r1, #1]!
  102480. 8029cc0: 42a3 cmp r3, r4
  102481. 8029cc2: d001 beq.n 8029cc8 <memcmp+0x1c>
  102482. 8029cc4: 1b18 subs r0, r3, r4
  102483. 8029cc6: bd10 pop {r4, pc}
  102484. 8029cc8: 3001 adds r0, #1
  102485. 8029cca: e7f2 b.n 8029cb2 <memcmp+0x6>
  102486. 08029ccc <memmove>:
  102487. 8029ccc: 4288 cmp r0, r1
  102488. 8029cce: b510 push {r4, lr}
  102489. 8029cd0: eb01 0402 add.w r4, r1, r2
  102490. 8029cd4: d902 bls.n 8029cdc <memmove+0x10>
  102491. 8029cd6: 4284 cmp r4, r0
  102492. 8029cd8: 4623 mov r3, r4
  102493. 8029cda: d807 bhi.n 8029cec <memmove+0x20>
  102494. 8029cdc: 1e43 subs r3, r0, #1
  102495. 8029cde: 42a1 cmp r1, r4
  102496. 8029ce0: d008 beq.n 8029cf4 <memmove+0x28>
  102497. 8029ce2: f811 2b01 ldrb.w r2, [r1], #1
  102498. 8029ce6: f803 2f01 strb.w r2, [r3, #1]!
  102499. 8029cea: e7f8 b.n 8029cde <memmove+0x12>
  102500. 8029cec: 4402 add r2, r0
  102501. 8029cee: 4601 mov r1, r0
  102502. 8029cf0: 428a cmp r2, r1
  102503. 8029cf2: d100 bne.n 8029cf6 <memmove+0x2a>
  102504. 8029cf4: bd10 pop {r4, pc}
  102505. 8029cf6: f813 4d01 ldrb.w r4, [r3, #-1]!
  102506. 8029cfa: f802 4d01 strb.w r4, [r2, #-1]!
  102507. 8029cfe: e7f7 b.n 8029cf0 <memmove+0x24>
  102508. 08029d00 <memset>:
  102509. 8029d00: 4402 add r2, r0
  102510. 8029d02: 4603 mov r3, r0
  102511. 8029d04: 4293 cmp r3, r2
  102512. 8029d06: d100 bne.n 8029d0a <memset+0xa>
  102513. 8029d08: 4770 bx lr
  102514. 8029d0a: f803 1b01 strb.w r1, [r3], #1
  102515. 8029d0e: e7f9 b.n 8029d04 <memset+0x4>
  102516. 08029d10 <strncmp>:
  102517. 8029d10: b510 push {r4, lr}
  102518. 8029d12: b16a cbz r2, 8029d30 <strncmp+0x20>
  102519. 8029d14: 3901 subs r1, #1
  102520. 8029d16: 1884 adds r4, r0, r2
  102521. 8029d18: f810 2b01 ldrb.w r2, [r0], #1
  102522. 8029d1c: f811 3f01 ldrb.w r3, [r1, #1]!
  102523. 8029d20: 429a cmp r2, r3
  102524. 8029d22: d103 bne.n 8029d2c <strncmp+0x1c>
  102525. 8029d24: 42a0 cmp r0, r4
  102526. 8029d26: d001 beq.n 8029d2c <strncmp+0x1c>
  102527. 8029d28: 2a00 cmp r2, #0
  102528. 8029d2a: d1f5 bne.n 8029d18 <strncmp+0x8>
  102529. 8029d2c: 1ad0 subs r0, r2, r3
  102530. 8029d2e: bd10 pop {r4, pc}
  102531. 8029d30: 4610 mov r0, r2
  102532. 8029d32: e7fc b.n 8029d2e <strncmp+0x1e>
  102533. 08029d34 <_localeconv_r>:
  102534. 8029d34: 4800 ldr r0, [pc, #0] @ (8029d38 <_localeconv_r+0x4>)
  102535. 8029d36: 4770 bx lr
  102536. 8029d38: 24000158 .word 0x24000158
  102537. 08029d3c <_close_r>:
  102538. 8029d3c: b538 push {r3, r4, r5, lr}
  102539. 8029d3e: 4d06 ldr r5, [pc, #24] @ (8029d58 <_close_r+0x1c>)
  102540. 8029d40: 2300 movs r3, #0
  102541. 8029d42: 4604 mov r4, r0
  102542. 8029d44: 4608 mov r0, r1
  102543. 8029d46: 602b str r3, [r5, #0]
  102544. 8029d48: f7d9 ff3c bl 8003bc4 <_close>
  102545. 8029d4c: 1c43 adds r3, r0, #1
  102546. 8029d4e: d102 bne.n 8029d56 <_close_r+0x1a>
  102547. 8029d50: 682b ldr r3, [r5, #0]
  102548. 8029d52: b103 cbz r3, 8029d56 <_close_r+0x1a>
  102549. 8029d54: 6023 str r3, [r4, #0]
  102550. 8029d56: bd38 pop {r3, r4, r5, pc}
  102551. 8029d58: 2402b180 .word 0x2402b180
  102552. 08029d5c <_reclaim_reent>:
  102553. 8029d5c: 4b29 ldr r3, [pc, #164] @ (8029e04 <_reclaim_reent+0xa8>)
  102554. 8029d5e: 681b ldr r3, [r3, #0]
  102555. 8029d60: 4283 cmp r3, r0
  102556. 8029d62: b570 push {r4, r5, r6, lr}
  102557. 8029d64: 4604 mov r4, r0
  102558. 8029d66: d04b beq.n 8029e00 <_reclaim_reent+0xa4>
  102559. 8029d68: 69c3 ldr r3, [r0, #28]
  102560. 8029d6a: b1ab cbz r3, 8029d98 <_reclaim_reent+0x3c>
  102561. 8029d6c: 68db ldr r3, [r3, #12]
  102562. 8029d6e: b16b cbz r3, 8029d8c <_reclaim_reent+0x30>
  102563. 8029d70: 2500 movs r5, #0
  102564. 8029d72: 69e3 ldr r3, [r4, #28]
  102565. 8029d74: 68db ldr r3, [r3, #12]
  102566. 8029d76: 5959 ldr r1, [r3, r5]
  102567. 8029d78: 2900 cmp r1, #0
  102568. 8029d7a: d13b bne.n 8029df4 <_reclaim_reent+0x98>
  102569. 8029d7c: 3504 adds r5, #4
  102570. 8029d7e: 2d80 cmp r5, #128 @ 0x80
  102571. 8029d80: d1f7 bne.n 8029d72 <_reclaim_reent+0x16>
  102572. 8029d82: 69e3 ldr r3, [r4, #28]
  102573. 8029d84: 4620 mov r0, r4
  102574. 8029d86: 68d9 ldr r1, [r3, #12]
  102575. 8029d88: f000 fec8 bl 802ab1c <_free_r>
  102576. 8029d8c: 69e3 ldr r3, [r4, #28]
  102577. 8029d8e: 6819 ldr r1, [r3, #0]
  102578. 8029d90: b111 cbz r1, 8029d98 <_reclaim_reent+0x3c>
  102579. 8029d92: 4620 mov r0, r4
  102580. 8029d94: f000 fec2 bl 802ab1c <_free_r>
  102581. 8029d98: 6961 ldr r1, [r4, #20]
  102582. 8029d9a: b111 cbz r1, 8029da2 <_reclaim_reent+0x46>
  102583. 8029d9c: 4620 mov r0, r4
  102584. 8029d9e: f000 febd bl 802ab1c <_free_r>
  102585. 8029da2: 69e1 ldr r1, [r4, #28]
  102586. 8029da4: b111 cbz r1, 8029dac <_reclaim_reent+0x50>
  102587. 8029da6: 4620 mov r0, r4
  102588. 8029da8: f000 feb8 bl 802ab1c <_free_r>
  102589. 8029dac: 6b21 ldr r1, [r4, #48] @ 0x30
  102590. 8029dae: b111 cbz r1, 8029db6 <_reclaim_reent+0x5a>
  102591. 8029db0: 4620 mov r0, r4
  102592. 8029db2: f000 feb3 bl 802ab1c <_free_r>
  102593. 8029db6: 6b61 ldr r1, [r4, #52] @ 0x34
  102594. 8029db8: b111 cbz r1, 8029dc0 <_reclaim_reent+0x64>
  102595. 8029dba: 4620 mov r0, r4
  102596. 8029dbc: f000 feae bl 802ab1c <_free_r>
  102597. 8029dc0: 6ba1 ldr r1, [r4, #56] @ 0x38
  102598. 8029dc2: b111 cbz r1, 8029dca <_reclaim_reent+0x6e>
  102599. 8029dc4: 4620 mov r0, r4
  102600. 8029dc6: f000 fea9 bl 802ab1c <_free_r>
  102601. 8029dca: 6ca1 ldr r1, [r4, #72] @ 0x48
  102602. 8029dcc: b111 cbz r1, 8029dd4 <_reclaim_reent+0x78>
  102603. 8029dce: 4620 mov r0, r4
  102604. 8029dd0: f000 fea4 bl 802ab1c <_free_r>
  102605. 8029dd4: 6c61 ldr r1, [r4, #68] @ 0x44
  102606. 8029dd6: b111 cbz r1, 8029dde <_reclaim_reent+0x82>
  102607. 8029dd8: 4620 mov r0, r4
  102608. 8029dda: f000 fe9f bl 802ab1c <_free_r>
  102609. 8029dde: 6ae1 ldr r1, [r4, #44] @ 0x2c
  102610. 8029de0: b111 cbz r1, 8029de8 <_reclaim_reent+0x8c>
  102611. 8029de2: 4620 mov r0, r4
  102612. 8029de4: f000 fe9a bl 802ab1c <_free_r>
  102613. 8029de8: 6a23 ldr r3, [r4, #32]
  102614. 8029dea: b14b cbz r3, 8029e00 <_reclaim_reent+0xa4>
  102615. 8029dec: 4620 mov r0, r4
  102616. 8029dee: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  102617. 8029df2: 4718 bx r3
  102618. 8029df4: 680e ldr r6, [r1, #0]
  102619. 8029df6: 4620 mov r0, r4
  102620. 8029df8: f000 fe90 bl 802ab1c <_free_r>
  102621. 8029dfc: 4631 mov r1, r6
  102622. 8029dfe: e7bb b.n 8029d78 <_reclaim_reent+0x1c>
  102623. 8029e00: bd70 pop {r4, r5, r6, pc}
  102624. 8029e02: bf00 nop
  102625. 8029e04: 240001d4 .word 0x240001d4
  102626. 08029e08 <_lseek_r>:
  102627. 8029e08: b538 push {r3, r4, r5, lr}
  102628. 8029e0a: 4d07 ldr r5, [pc, #28] @ (8029e28 <_lseek_r+0x20>)
  102629. 8029e0c: 4604 mov r4, r0
  102630. 8029e0e: 4608 mov r0, r1
  102631. 8029e10: 4611 mov r1, r2
  102632. 8029e12: 2200 movs r2, #0
  102633. 8029e14: 602a str r2, [r5, #0]
  102634. 8029e16: 461a mov r2, r3
  102635. 8029e18: f7d9 fefb bl 8003c12 <_lseek>
  102636. 8029e1c: 1c43 adds r3, r0, #1
  102637. 8029e1e: d102 bne.n 8029e26 <_lseek_r+0x1e>
  102638. 8029e20: 682b ldr r3, [r5, #0]
  102639. 8029e22: b103 cbz r3, 8029e26 <_lseek_r+0x1e>
  102640. 8029e24: 6023 str r3, [r4, #0]
  102641. 8029e26: bd38 pop {r3, r4, r5, pc}
  102642. 8029e28: 2402b180 .word 0x2402b180
  102643. 08029e2c <_read_r>:
  102644. 8029e2c: b538 push {r3, r4, r5, lr}
  102645. 8029e2e: 4d07 ldr r5, [pc, #28] @ (8029e4c <_read_r+0x20>)
  102646. 8029e30: 4604 mov r4, r0
  102647. 8029e32: 4608 mov r0, r1
  102648. 8029e34: 4611 mov r1, r2
  102649. 8029e36: 2200 movs r2, #0
  102650. 8029e38: 602a str r2, [r5, #0]
  102651. 8029e3a: 461a mov r2, r3
  102652. 8029e3c: f7d9 fe89 bl 8003b52 <_read>
  102653. 8029e40: 1c43 adds r3, r0, #1
  102654. 8029e42: d102 bne.n 8029e4a <_read_r+0x1e>
  102655. 8029e44: 682b ldr r3, [r5, #0]
  102656. 8029e46: b103 cbz r3, 8029e4a <_read_r+0x1e>
  102657. 8029e48: 6023 str r3, [r4, #0]
  102658. 8029e4a: bd38 pop {r3, r4, r5, pc}
  102659. 8029e4c: 2402b180 .word 0x2402b180
  102660. 08029e50 <_sbrk_r>:
  102661. 8029e50: b538 push {r3, r4, r5, lr}
  102662. 8029e52: 4d06 ldr r5, [pc, #24] @ (8029e6c <_sbrk_r+0x1c>)
  102663. 8029e54: 2300 movs r3, #0
  102664. 8029e56: 4604 mov r4, r0
  102665. 8029e58: 4608 mov r0, r1
  102666. 8029e5a: 602b str r3, [r5, #0]
  102667. 8029e5c: f7d9 fee6 bl 8003c2c <_sbrk>
  102668. 8029e60: 1c43 adds r3, r0, #1
  102669. 8029e62: d102 bne.n 8029e6a <_sbrk_r+0x1a>
  102670. 8029e64: 682b ldr r3, [r5, #0]
  102671. 8029e66: b103 cbz r3, 8029e6a <_sbrk_r+0x1a>
  102672. 8029e68: 6023 str r3, [r4, #0]
  102673. 8029e6a: bd38 pop {r3, r4, r5, pc}
  102674. 8029e6c: 2402b180 .word 0x2402b180
  102675. 08029e70 <_write_r>:
  102676. 8029e70: b538 push {r3, r4, r5, lr}
  102677. 8029e72: 4d07 ldr r5, [pc, #28] @ (8029e90 <_write_r+0x20>)
  102678. 8029e74: 4604 mov r4, r0
  102679. 8029e76: 4608 mov r0, r1
  102680. 8029e78: 4611 mov r1, r2
  102681. 8029e7a: 2200 movs r2, #0
  102682. 8029e7c: 602a str r2, [r5, #0]
  102683. 8029e7e: 461a mov r2, r3
  102684. 8029e80: f7d9 fe84 bl 8003b8c <_write>
  102685. 8029e84: 1c43 adds r3, r0, #1
  102686. 8029e86: d102 bne.n 8029e8e <_write_r+0x1e>
  102687. 8029e88: 682b ldr r3, [r5, #0]
  102688. 8029e8a: b103 cbz r3, 8029e8e <_write_r+0x1e>
  102689. 8029e8c: 6023 str r3, [r4, #0]
  102690. 8029e8e: bd38 pop {r3, r4, r5, pc}
  102691. 8029e90: 2402b180 .word 0x2402b180
  102692. 08029e94 <__errno>:
  102693. 8029e94: 4b01 ldr r3, [pc, #4] @ (8029e9c <__errno+0x8>)
  102694. 8029e96: 6818 ldr r0, [r3, #0]
  102695. 8029e98: 4770 bx lr
  102696. 8029e9a: bf00 nop
  102697. 8029e9c: 240001d4 .word 0x240001d4
  102698. 08029ea0 <__libc_init_array>:
  102699. 8029ea0: b570 push {r4, r5, r6, lr}
  102700. 8029ea2: 4d0d ldr r5, [pc, #52] @ (8029ed8 <__libc_init_array+0x38>)
  102701. 8029ea4: 4c0d ldr r4, [pc, #52] @ (8029edc <__libc_init_array+0x3c>)
  102702. 8029ea6: 1b64 subs r4, r4, r5
  102703. 8029ea8: 10a4 asrs r4, r4, #2
  102704. 8029eaa: 2600 movs r6, #0
  102705. 8029eac: 42a6 cmp r6, r4
  102706. 8029eae: d109 bne.n 8029ec4 <__libc_init_array+0x24>
  102707. 8029eb0: 4d0b ldr r5, [pc, #44] @ (8029ee0 <__libc_init_array+0x40>)
  102708. 8029eb2: 4c0c ldr r4, [pc, #48] @ (8029ee4 <__libc_init_array+0x44>)
  102709. 8029eb4: f002 fac8 bl 802c448 <_init>
  102710. 8029eb8: 1b64 subs r4, r4, r5
  102711. 8029eba: 10a4 asrs r4, r4, #2
  102712. 8029ebc: 2600 movs r6, #0
  102713. 8029ebe: 42a6 cmp r6, r4
  102714. 8029ec0: d105 bne.n 8029ece <__libc_init_array+0x2e>
  102715. 8029ec2: bd70 pop {r4, r5, r6, pc}
  102716. 8029ec4: f855 3b04 ldr.w r3, [r5], #4
  102717. 8029ec8: 4798 blx r3
  102718. 8029eca: 3601 adds r6, #1
  102719. 8029ecc: e7ee b.n 8029eac <__libc_init_array+0xc>
  102720. 8029ece: f855 3b04 ldr.w r3, [r5], #4
  102721. 8029ed2: 4798 blx r3
  102722. 8029ed4: 3601 adds r6, #1
  102723. 8029ed6: e7f2 b.n 8029ebe <__libc_init_array+0x1e>
  102724. 8029ed8: 08031104 .word 0x08031104
  102725. 8029edc: 08031104 .word 0x08031104
  102726. 8029ee0: 08031104 .word 0x08031104
  102727. 8029ee4: 08031108 .word 0x08031108
  102728. 08029ee8 <__retarget_lock_init_recursive>:
  102729. 8029ee8: 4770 bx lr
  102730. 08029eea <__retarget_lock_acquire_recursive>:
  102731. 8029eea: 4770 bx lr
  102732. 08029eec <__retarget_lock_release_recursive>:
  102733. 8029eec: 4770 bx lr
  102734. 08029eee <memcpy>:
  102735. 8029eee: 440a add r2, r1
  102736. 8029ef0: 4291 cmp r1, r2
  102737. 8029ef2: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  102738. 8029ef6: d100 bne.n 8029efa <memcpy+0xc>
  102739. 8029ef8: 4770 bx lr
  102740. 8029efa: b510 push {r4, lr}
  102741. 8029efc: f811 4b01 ldrb.w r4, [r1], #1
  102742. 8029f00: f803 4f01 strb.w r4, [r3, #1]!
  102743. 8029f04: 4291 cmp r1, r2
  102744. 8029f06: d1f9 bne.n 8029efc <memcpy+0xe>
  102745. 8029f08: bd10 pop {r4, pc}
  102746. 8029f0a: 0000 movs r0, r0
  102747. 8029f0c: 0000 movs r0, r0
  102748. ...
  102749. 08029f10 <nan>:
  102750. 8029f10: ed9f 0b01 vldr d0, [pc, #4] @ 8029f18 <nan+0x8>
  102751. 8029f14: 4770 bx lr
  102752. 8029f16: bf00 nop
  102753. 8029f18: 00000000 .word 0x00000000
  102754. 8029f1c: 7ff80000 .word 0x7ff80000
  102755. 08029f20 <__assert_func>:
  102756. 8029f20: b51f push {r0, r1, r2, r3, r4, lr}
  102757. 8029f22: 4614 mov r4, r2
  102758. 8029f24: 461a mov r2, r3
  102759. 8029f26: 4b09 ldr r3, [pc, #36] @ (8029f4c <__assert_func+0x2c>)
  102760. 8029f28: 681b ldr r3, [r3, #0]
  102761. 8029f2a: 4605 mov r5, r0
  102762. 8029f2c: 68d8 ldr r0, [r3, #12]
  102763. 8029f2e: b954 cbnz r4, 8029f46 <__assert_func+0x26>
  102764. 8029f30: 4b07 ldr r3, [pc, #28] @ (8029f50 <__assert_func+0x30>)
  102765. 8029f32: 461c mov r4, r3
  102766. 8029f34: e9cd 3401 strd r3, r4, [sp, #4]
  102767. 8029f38: 9100 str r1, [sp, #0]
  102768. 8029f3a: 462b mov r3, r5
  102769. 8029f3c: 4905 ldr r1, [pc, #20] @ (8029f54 <__assert_func+0x34>)
  102770. 8029f3e: f002 f98d bl 802c25c <fiprintf>
  102771. 8029f42: f002 fa21 bl 802c388 <abort>
  102772. 8029f46: 4b04 ldr r3, [pc, #16] @ (8029f58 <__assert_func+0x38>)
  102773. 8029f48: e7f4 b.n 8029f34 <__assert_func+0x14>
  102774. 8029f4a: bf00 nop
  102775. 8029f4c: 240001d4 .word 0x240001d4
  102776. 8029f50: 08030eb8 .word 0x08030eb8
  102777. 8029f54: 08030e8a .word 0x08030e8a
  102778. 8029f58: 08030e7d .word 0x08030e7d
  102779. 08029f5c <quorem>:
  102780. 8029f5c: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  102781. 8029f60: 6903 ldr r3, [r0, #16]
  102782. 8029f62: 690c ldr r4, [r1, #16]
  102783. 8029f64: 42a3 cmp r3, r4
  102784. 8029f66: 4607 mov r7, r0
  102785. 8029f68: db7e blt.n 802a068 <quorem+0x10c>
  102786. 8029f6a: 3c01 subs r4, #1
  102787. 8029f6c: f101 0814 add.w r8, r1, #20
  102788. 8029f70: 00a3 lsls r3, r4, #2
  102789. 8029f72: f100 0514 add.w r5, r0, #20
  102790. 8029f76: 9300 str r3, [sp, #0]
  102791. 8029f78: eb05 0384 add.w r3, r5, r4, lsl #2
  102792. 8029f7c: 9301 str r3, [sp, #4]
  102793. 8029f7e: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  102794. 8029f82: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  102795. 8029f86: 3301 adds r3, #1
  102796. 8029f88: 429a cmp r2, r3
  102797. 8029f8a: eb08 0984 add.w r9, r8, r4, lsl #2
  102798. 8029f8e: fbb2 f6f3 udiv r6, r2, r3
  102799. 8029f92: d32e bcc.n 8029ff2 <quorem+0x96>
  102800. 8029f94: f04f 0a00 mov.w sl, #0
  102801. 8029f98: 46c4 mov ip, r8
  102802. 8029f9a: 46ae mov lr, r5
  102803. 8029f9c: 46d3 mov fp, sl
  102804. 8029f9e: f85c 3b04 ldr.w r3, [ip], #4
  102805. 8029fa2: b298 uxth r0, r3
  102806. 8029fa4: fb06 a000 mla r0, r6, r0, sl
  102807. 8029fa8: 0c02 lsrs r2, r0, #16
  102808. 8029faa: 0c1b lsrs r3, r3, #16
  102809. 8029fac: fb06 2303 mla r3, r6, r3, r2
  102810. 8029fb0: f8de 2000 ldr.w r2, [lr]
  102811. 8029fb4: b280 uxth r0, r0
  102812. 8029fb6: b292 uxth r2, r2
  102813. 8029fb8: 1a12 subs r2, r2, r0
  102814. 8029fba: 445a add r2, fp
  102815. 8029fbc: f8de 0000 ldr.w r0, [lr]
  102816. 8029fc0: ea4f 4a13 mov.w sl, r3, lsr #16
  102817. 8029fc4: b29b uxth r3, r3
  102818. 8029fc6: ebc3 4322 rsb r3, r3, r2, asr #16
  102819. 8029fca: eb03 4310 add.w r3, r3, r0, lsr #16
  102820. 8029fce: b292 uxth r2, r2
  102821. 8029fd0: ea42 4203 orr.w r2, r2, r3, lsl #16
  102822. 8029fd4: 45e1 cmp r9, ip
  102823. 8029fd6: f84e 2b04 str.w r2, [lr], #4
  102824. 8029fda: ea4f 4b23 mov.w fp, r3, asr #16
  102825. 8029fde: d2de bcs.n 8029f9e <quorem+0x42>
  102826. 8029fe0: 9b00 ldr r3, [sp, #0]
  102827. 8029fe2: 58eb ldr r3, [r5, r3]
  102828. 8029fe4: b92b cbnz r3, 8029ff2 <quorem+0x96>
  102829. 8029fe6: 9b01 ldr r3, [sp, #4]
  102830. 8029fe8: 3b04 subs r3, #4
  102831. 8029fea: 429d cmp r5, r3
  102832. 8029fec: 461a mov r2, r3
  102833. 8029fee: d32f bcc.n 802a050 <quorem+0xf4>
  102834. 8029ff0: 613c str r4, [r7, #16]
  102835. 8029ff2: 4638 mov r0, r7
  102836. 8029ff4: f001 fbec bl 802b7d0 <__mcmp>
  102837. 8029ff8: 2800 cmp r0, #0
  102838. 8029ffa: db25 blt.n 802a048 <quorem+0xec>
  102839. 8029ffc: 4629 mov r1, r5
  102840. 8029ffe: 2000 movs r0, #0
  102841. 802a000: f858 2b04 ldr.w r2, [r8], #4
  102842. 802a004: f8d1 c000 ldr.w ip, [r1]
  102843. 802a008: fa1f fe82 uxth.w lr, r2
  102844. 802a00c: fa1f f38c uxth.w r3, ip
  102845. 802a010: eba3 030e sub.w r3, r3, lr
  102846. 802a014: 4403 add r3, r0
  102847. 802a016: 0c12 lsrs r2, r2, #16
  102848. 802a018: ebc2 4223 rsb r2, r2, r3, asr #16
  102849. 802a01c: eb02 421c add.w r2, r2, ip, lsr #16
  102850. 802a020: b29b uxth r3, r3
  102851. 802a022: ea43 4302 orr.w r3, r3, r2, lsl #16
  102852. 802a026: 45c1 cmp r9, r8
  102853. 802a028: f841 3b04 str.w r3, [r1], #4
  102854. 802a02c: ea4f 4022 mov.w r0, r2, asr #16
  102855. 802a030: d2e6 bcs.n 802a000 <quorem+0xa4>
  102856. 802a032: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  102857. 802a036: eb05 0384 add.w r3, r5, r4, lsl #2
  102858. 802a03a: b922 cbnz r2, 802a046 <quorem+0xea>
  102859. 802a03c: 3b04 subs r3, #4
  102860. 802a03e: 429d cmp r5, r3
  102861. 802a040: 461a mov r2, r3
  102862. 802a042: d30b bcc.n 802a05c <quorem+0x100>
  102863. 802a044: 613c str r4, [r7, #16]
  102864. 802a046: 3601 adds r6, #1
  102865. 802a048: 4630 mov r0, r6
  102866. 802a04a: b003 add sp, #12
  102867. 802a04c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  102868. 802a050: 6812 ldr r2, [r2, #0]
  102869. 802a052: 3b04 subs r3, #4
  102870. 802a054: 2a00 cmp r2, #0
  102871. 802a056: d1cb bne.n 8029ff0 <quorem+0x94>
  102872. 802a058: 3c01 subs r4, #1
  102873. 802a05a: e7c6 b.n 8029fea <quorem+0x8e>
  102874. 802a05c: 6812 ldr r2, [r2, #0]
  102875. 802a05e: 3b04 subs r3, #4
  102876. 802a060: 2a00 cmp r2, #0
  102877. 802a062: d1ef bne.n 802a044 <quorem+0xe8>
  102878. 802a064: 3c01 subs r4, #1
  102879. 802a066: e7ea b.n 802a03e <quorem+0xe2>
  102880. 802a068: 2000 movs r0, #0
  102881. 802a06a: e7ee b.n 802a04a <quorem+0xee>
  102882. 802a06c: 0000 movs r0, r0
  102883. ...
  102884. 0802a070 <_dtoa_r>:
  102885. 802a070: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  102886. 802a074: ed2d 8b02 vpush {d8}
  102887. 802a078: 69c7 ldr r7, [r0, #28]
  102888. 802a07a: b091 sub sp, #68 @ 0x44
  102889. 802a07c: ed8d 0b02 vstr d0, [sp, #8]
  102890. 802a080: ec55 4b10 vmov r4, r5, d0
  102891. 802a084: 9e1c ldr r6, [sp, #112] @ 0x70
  102892. 802a086: 9107 str r1, [sp, #28]
  102893. 802a088: 4681 mov r9, r0
  102894. 802a08a: 9209 str r2, [sp, #36] @ 0x24
  102895. 802a08c: 930d str r3, [sp, #52] @ 0x34
  102896. 802a08e: b97f cbnz r7, 802a0b0 <_dtoa_r+0x40>
  102897. 802a090: 2010 movs r0, #16
  102898. 802a092: f7fe f8bb bl 802820c <malloc>
  102899. 802a096: 4602 mov r2, r0
  102900. 802a098: f8c9 001c str.w r0, [r9, #28]
  102901. 802a09c: b920 cbnz r0, 802a0a8 <_dtoa_r+0x38>
  102902. 802a09e: 4ba0 ldr r3, [pc, #640] @ (802a320 <_dtoa_r+0x2b0>)
  102903. 802a0a0: 21ef movs r1, #239 @ 0xef
  102904. 802a0a2: 48a0 ldr r0, [pc, #640] @ (802a324 <_dtoa_r+0x2b4>)
  102905. 802a0a4: f7ff ff3c bl 8029f20 <__assert_func>
  102906. 802a0a8: e9c0 7701 strd r7, r7, [r0, #4]
  102907. 802a0ac: 6007 str r7, [r0, #0]
  102908. 802a0ae: 60c7 str r7, [r0, #12]
  102909. 802a0b0: f8d9 301c ldr.w r3, [r9, #28]
  102910. 802a0b4: 6819 ldr r1, [r3, #0]
  102911. 802a0b6: b159 cbz r1, 802a0d0 <_dtoa_r+0x60>
  102912. 802a0b8: 685a ldr r2, [r3, #4]
  102913. 802a0ba: 604a str r2, [r1, #4]
  102914. 802a0bc: 2301 movs r3, #1
  102915. 802a0be: 4093 lsls r3, r2
  102916. 802a0c0: 608b str r3, [r1, #8]
  102917. 802a0c2: 4648 mov r0, r9
  102918. 802a0c4: f001 f900 bl 802b2c8 <_Bfree>
  102919. 802a0c8: f8d9 301c ldr.w r3, [r9, #28]
  102920. 802a0cc: 2200 movs r2, #0
  102921. 802a0ce: 601a str r2, [r3, #0]
  102922. 802a0d0: 1e2b subs r3, r5, #0
  102923. 802a0d2: bfbb ittet lt
  102924. 802a0d4: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000
  102925. 802a0d8: 9303 strlt r3, [sp, #12]
  102926. 802a0da: 2300 movge r3, #0
  102927. 802a0dc: 2201 movlt r2, #1
  102928. 802a0de: bfac ite ge
  102929. 802a0e0: 6033 strge r3, [r6, #0]
  102930. 802a0e2: 6032 strlt r2, [r6, #0]
  102931. 802a0e4: 4b90 ldr r3, [pc, #576] @ (802a328 <_dtoa_r+0x2b8>)
  102932. 802a0e6: 9e03 ldr r6, [sp, #12]
  102933. 802a0e8: 43b3 bics r3, r6
  102934. 802a0ea: d110 bne.n 802a10e <_dtoa_r+0x9e>
  102935. 802a0ec: 9a0d ldr r2, [sp, #52] @ 0x34
  102936. 802a0ee: f242 730f movw r3, #9999 @ 0x270f
  102937. 802a0f2: 6013 str r3, [r2, #0]
  102938. 802a0f4: f3c6 0313 ubfx r3, r6, #0, #20
  102939. 802a0f8: 4323 orrs r3, r4
  102940. 802a0fa: f000 84de beq.w 802aaba <_dtoa_r+0xa4a>
  102941. 802a0fe: 9b1d ldr r3, [sp, #116] @ 0x74
  102942. 802a100: 4f8a ldr r7, [pc, #552] @ (802a32c <_dtoa_r+0x2bc>)
  102943. 802a102: 2b00 cmp r3, #0
  102944. 802a104: f000 84e0 beq.w 802aac8 <_dtoa_r+0xa58>
  102945. 802a108: 1cfb adds r3, r7, #3
  102946. 802a10a: f000 bcdb b.w 802aac4 <_dtoa_r+0xa54>
  102947. 802a10e: ed9d 8b02 vldr d8, [sp, #8]
  102948. 802a112: eeb5 8b40 vcmp.f64 d8, #0.0
  102949. 802a116: eef1 fa10 vmrs APSR_nzcv, fpscr
  102950. 802a11a: d10a bne.n 802a132 <_dtoa_r+0xc2>
  102951. 802a11c: 9a0d ldr r2, [sp, #52] @ 0x34
  102952. 802a11e: 2301 movs r3, #1
  102953. 802a120: 6013 str r3, [r2, #0]
  102954. 802a122: 9b1d ldr r3, [sp, #116] @ 0x74
  102955. 802a124: b113 cbz r3, 802a12c <_dtoa_r+0xbc>
  102956. 802a126: 9a1d ldr r2, [sp, #116] @ 0x74
  102957. 802a128: 4b81 ldr r3, [pc, #516] @ (802a330 <_dtoa_r+0x2c0>)
  102958. 802a12a: 6013 str r3, [r2, #0]
  102959. 802a12c: 4f81 ldr r7, [pc, #516] @ (802a334 <_dtoa_r+0x2c4>)
  102960. 802a12e: f000 bccb b.w 802aac8 <_dtoa_r+0xa58>
  102961. 802a132: aa0e add r2, sp, #56 @ 0x38
  102962. 802a134: a90f add r1, sp, #60 @ 0x3c
  102963. 802a136: 4648 mov r0, r9
  102964. 802a138: eeb0 0b48 vmov.f64 d0, d8
  102965. 802a13c: f001 fc68 bl 802ba10 <__d2b>
  102966. 802a140: f3c6 530a ubfx r3, r6, #20, #11
  102967. 802a144: 9a0e ldr r2, [sp, #56] @ 0x38
  102968. 802a146: 9001 str r0, [sp, #4]
  102969. 802a148: 2b00 cmp r3, #0
  102970. 802a14a: d045 beq.n 802a1d8 <_dtoa_r+0x168>
  102971. 802a14c: eeb0 7b48 vmov.f64 d7, d8
  102972. 802a150: ee18 1a90 vmov r1, s17
  102973. 802a154: f3c1 0113 ubfx r1, r1, #0, #20
  102974. 802a158: f041 517f orr.w r1, r1, #1069547520 @ 0x3fc00000
  102975. 802a15c: f441 1140 orr.w r1, r1, #3145728 @ 0x300000
  102976. 802a160: f2a3 33ff subw r3, r3, #1023 @ 0x3ff
  102977. 802a164: 2500 movs r5, #0
  102978. 802a166: ee07 1a90 vmov s15, r1
  102979. 802a16a: eeb7 6b08 vmov.f64 d6, #120 @ 0x3fc00000 1.5
  102980. 802a16e: ed9f 5b66 vldr d5, [pc, #408] @ 802a308 <_dtoa_r+0x298>
  102981. 802a172: ee37 7b46 vsub.f64 d7, d7, d6
  102982. 802a176: ed9f 6b66 vldr d6, [pc, #408] @ 802a310 <_dtoa_r+0x2a0>
  102983. 802a17a: eea7 6b05 vfma.f64 d6, d7, d5
  102984. 802a17e: ed9f 5b66 vldr d5, [pc, #408] @ 802a318 <_dtoa_r+0x2a8>
  102985. 802a182: ee07 3a90 vmov s15, r3
  102986. 802a186: eeb8 4be7 vcvt.f64.s32 d4, s15
  102987. 802a18a: eeb0 7b46 vmov.f64 d7, d6
  102988. 802a18e: eea4 7b05 vfma.f64 d7, d4, d5
  102989. 802a192: eefd 6bc7 vcvt.s32.f64 s13, d7
  102990. 802a196: eeb5 7bc0 vcmpe.f64 d7, #0.0
  102991. 802a19a: eef1 fa10 vmrs APSR_nzcv, fpscr
  102992. 802a19e: ee16 8a90 vmov r8, s13
  102993. 802a1a2: d508 bpl.n 802a1b6 <_dtoa_r+0x146>
  102994. 802a1a4: eeb8 6be6 vcvt.f64.s32 d6, s13
  102995. 802a1a8: eeb4 6b47 vcmp.f64 d6, d7
  102996. 802a1ac: eef1 fa10 vmrs APSR_nzcv, fpscr
  102997. 802a1b0: bf18 it ne
  102998. 802a1b2: f108 38ff addne.w r8, r8, #4294967295 @ 0xffffffff
  102999. 802a1b6: f1b8 0f16 cmp.w r8, #22
  103000. 802a1ba: d82b bhi.n 802a214 <_dtoa_r+0x1a4>
  103001. 802a1bc: 495e ldr r1, [pc, #376] @ (802a338 <_dtoa_r+0x2c8>)
  103002. 802a1be: eb01 01c8 add.w r1, r1, r8, lsl #3
  103003. 802a1c2: ed91 7b00 vldr d7, [r1]
  103004. 802a1c6: eeb4 8bc7 vcmpe.f64 d8, d7
  103005. 802a1ca: eef1 fa10 vmrs APSR_nzcv, fpscr
  103006. 802a1ce: d501 bpl.n 802a1d4 <_dtoa_r+0x164>
  103007. 802a1d0: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  103008. 802a1d4: 2100 movs r1, #0
  103009. 802a1d6: e01e b.n 802a216 <_dtoa_r+0x1a6>
  103010. 802a1d8: 9b0f ldr r3, [sp, #60] @ 0x3c
  103011. 802a1da: 4413 add r3, r2
  103012. 802a1dc: f203 4132 addw r1, r3, #1074 @ 0x432
  103013. 802a1e0: 2920 cmp r1, #32
  103014. 802a1e2: bfc1 itttt gt
  103015. 802a1e4: f1c1 0140 rsbgt r1, r1, #64 @ 0x40
  103016. 802a1e8: 408e lslgt r6, r1
  103017. 802a1ea: f203 4112 addwgt r1, r3, #1042 @ 0x412
  103018. 802a1ee: fa24 f101 lsrgt.w r1, r4, r1
  103019. 802a1f2: bfd6 itet le
  103020. 802a1f4: f1c1 0120 rsble r1, r1, #32
  103021. 802a1f8: 4331 orrgt r1, r6
  103022. 802a1fa: fa04 f101 lslle.w r1, r4, r1
  103023. 802a1fe: ee07 1a90 vmov s15, r1
  103024. 802a202: eeb8 7b67 vcvt.f64.u32 d7, s15
  103025. 802a206: 3b01 subs r3, #1
  103026. 802a208: ee17 1a90 vmov r1, s15
  103027. 802a20c: 2501 movs r5, #1
  103028. 802a20e: f1a1 71f8 sub.w r1, r1, #32505856 @ 0x1f00000
  103029. 802a212: e7a8 b.n 802a166 <_dtoa_r+0xf6>
  103030. 802a214: 2101 movs r1, #1
  103031. 802a216: 1ad2 subs r2, r2, r3
  103032. 802a218: 1e53 subs r3, r2, #1
  103033. 802a21a: 9306 str r3, [sp, #24]
  103034. 802a21c: bf45 ittet mi
  103035. 802a21e: f1c2 0301 rsbmi r3, r2, #1
  103036. 802a222: 9305 strmi r3, [sp, #20]
  103037. 802a224: 2300 movpl r3, #0
  103038. 802a226: 2300 movmi r3, #0
  103039. 802a228: bf4c ite mi
  103040. 802a22a: 9306 strmi r3, [sp, #24]
  103041. 802a22c: 9305 strpl r3, [sp, #20]
  103042. 802a22e: f1b8 0f00 cmp.w r8, #0
  103043. 802a232: 910c str r1, [sp, #48] @ 0x30
  103044. 802a234: db18 blt.n 802a268 <_dtoa_r+0x1f8>
  103045. 802a236: 9b06 ldr r3, [sp, #24]
  103046. 802a238: f8cd 8028 str.w r8, [sp, #40] @ 0x28
  103047. 802a23c: 4443 add r3, r8
  103048. 802a23e: 9306 str r3, [sp, #24]
  103049. 802a240: 2300 movs r3, #0
  103050. 802a242: 9a07 ldr r2, [sp, #28]
  103051. 802a244: 2a09 cmp r2, #9
  103052. 802a246: d849 bhi.n 802a2dc <_dtoa_r+0x26c>
  103053. 802a248: 2a05 cmp r2, #5
  103054. 802a24a: bfc4 itt gt
  103055. 802a24c: 3a04 subgt r2, #4
  103056. 802a24e: 9207 strgt r2, [sp, #28]
  103057. 802a250: 9a07 ldr r2, [sp, #28]
  103058. 802a252: f1a2 0202 sub.w r2, r2, #2
  103059. 802a256: bfcc ite gt
  103060. 802a258: 2400 movgt r4, #0
  103061. 802a25a: 2401 movle r4, #1
  103062. 802a25c: 2a03 cmp r2, #3
  103063. 802a25e: d848 bhi.n 802a2f2 <_dtoa_r+0x282>
  103064. 802a260: e8df f002 tbb [pc, r2]
  103065. 802a264: 3a2c2e0b .word 0x3a2c2e0b
  103066. 802a268: 9b05 ldr r3, [sp, #20]
  103067. 802a26a: 2200 movs r2, #0
  103068. 802a26c: eba3 0308 sub.w r3, r3, r8
  103069. 802a270: 9305 str r3, [sp, #20]
  103070. 802a272: 920a str r2, [sp, #40] @ 0x28
  103071. 802a274: f1c8 0300 rsb r3, r8, #0
  103072. 802a278: e7e3 b.n 802a242 <_dtoa_r+0x1d2>
  103073. 802a27a: 2200 movs r2, #0
  103074. 802a27c: 9208 str r2, [sp, #32]
  103075. 802a27e: 9a09 ldr r2, [sp, #36] @ 0x24
  103076. 802a280: 2a00 cmp r2, #0
  103077. 802a282: dc39 bgt.n 802a2f8 <_dtoa_r+0x288>
  103078. 802a284: f04f 0b01 mov.w fp, #1
  103079. 802a288: 46da mov sl, fp
  103080. 802a28a: 465a mov r2, fp
  103081. 802a28c: f8cd b024 str.w fp, [sp, #36] @ 0x24
  103082. 802a290: f8d9 701c ldr.w r7, [r9, #28]
  103083. 802a294: 2100 movs r1, #0
  103084. 802a296: 2004 movs r0, #4
  103085. 802a298: f100 0614 add.w r6, r0, #20
  103086. 802a29c: 4296 cmp r6, r2
  103087. 802a29e: d930 bls.n 802a302 <_dtoa_r+0x292>
  103088. 802a2a0: 6079 str r1, [r7, #4]
  103089. 802a2a2: 4648 mov r0, r9
  103090. 802a2a4: 9304 str r3, [sp, #16]
  103091. 802a2a6: f000 ffcf bl 802b248 <_Balloc>
  103092. 802a2aa: 9b04 ldr r3, [sp, #16]
  103093. 802a2ac: 4607 mov r7, r0
  103094. 802a2ae: 2800 cmp r0, #0
  103095. 802a2b0: d146 bne.n 802a340 <_dtoa_r+0x2d0>
  103096. 802a2b2: 4b22 ldr r3, [pc, #136] @ (802a33c <_dtoa_r+0x2cc>)
  103097. 802a2b4: 4602 mov r2, r0
  103098. 802a2b6: f240 11af movw r1, #431 @ 0x1af
  103099. 802a2ba: e6f2 b.n 802a0a2 <_dtoa_r+0x32>
  103100. 802a2bc: 2201 movs r2, #1
  103101. 802a2be: e7dd b.n 802a27c <_dtoa_r+0x20c>
  103102. 802a2c0: 2200 movs r2, #0
  103103. 802a2c2: 9208 str r2, [sp, #32]
  103104. 802a2c4: 9a09 ldr r2, [sp, #36] @ 0x24
  103105. 802a2c6: eb08 0b02 add.w fp, r8, r2
  103106. 802a2ca: f10b 0a01 add.w sl, fp, #1
  103107. 802a2ce: 4652 mov r2, sl
  103108. 802a2d0: 2a01 cmp r2, #1
  103109. 802a2d2: bfb8 it lt
  103110. 802a2d4: 2201 movlt r2, #1
  103111. 802a2d6: e7db b.n 802a290 <_dtoa_r+0x220>
  103112. 802a2d8: 2201 movs r2, #1
  103113. 802a2da: e7f2 b.n 802a2c2 <_dtoa_r+0x252>
  103114. 802a2dc: 2401 movs r4, #1
  103115. 802a2de: 2200 movs r2, #0
  103116. 802a2e0: e9cd 2407 strd r2, r4, [sp, #28]
  103117. 802a2e4: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff
  103118. 802a2e8: 2100 movs r1, #0
  103119. 802a2ea: 46da mov sl, fp
  103120. 802a2ec: 2212 movs r2, #18
  103121. 802a2ee: 9109 str r1, [sp, #36] @ 0x24
  103122. 802a2f0: e7ce b.n 802a290 <_dtoa_r+0x220>
  103123. 802a2f2: 2201 movs r2, #1
  103124. 802a2f4: 9208 str r2, [sp, #32]
  103125. 802a2f6: e7f5 b.n 802a2e4 <_dtoa_r+0x274>
  103126. 802a2f8: f8dd b024 ldr.w fp, [sp, #36] @ 0x24
  103127. 802a2fc: 46da mov sl, fp
  103128. 802a2fe: 465a mov r2, fp
  103129. 802a300: e7c6 b.n 802a290 <_dtoa_r+0x220>
  103130. 802a302: 3101 adds r1, #1
  103131. 802a304: 0040 lsls r0, r0, #1
  103132. 802a306: e7c7 b.n 802a298 <_dtoa_r+0x228>
  103133. 802a308: 636f4361 .word 0x636f4361
  103134. 802a30c: 3fd287a7 .word 0x3fd287a7
  103135. 802a310: 8b60c8b3 .word 0x8b60c8b3
  103136. 802a314: 3fc68a28 .word 0x3fc68a28
  103137. 802a318: 509f79fb .word 0x509f79fb
  103138. 802a31c: 3fd34413 .word 0x3fd34413
  103139. 802a320: 08030c7e .word 0x08030c7e
  103140. 802a324: 08030ec6 .word 0x08030ec6
  103141. 802a328: 7ff00000 .word 0x7ff00000
  103142. 802a32c: 08030ec2 .word 0x08030ec2
  103143. 802a330: 08030e52 .word 0x08030e52
  103144. 802a334: 08030e51 .word 0x08030e51
  103145. 802a338: 08031020 .word 0x08031020
  103146. 802a33c: 08030f1e .word 0x08030f1e
  103147. 802a340: f8d9 201c ldr.w r2, [r9, #28]
  103148. 802a344: f1ba 0f0e cmp.w sl, #14
  103149. 802a348: 6010 str r0, [r2, #0]
  103150. 802a34a: d86f bhi.n 802a42c <_dtoa_r+0x3bc>
  103151. 802a34c: 2c00 cmp r4, #0
  103152. 802a34e: d06d beq.n 802a42c <_dtoa_r+0x3bc>
  103153. 802a350: f1b8 0f00 cmp.w r8, #0
  103154. 802a354: f340 80c2 ble.w 802a4dc <_dtoa_r+0x46c>
  103155. 802a358: 4aca ldr r2, [pc, #808] @ (802a684 <_dtoa_r+0x614>)
  103156. 802a35a: f008 010f and.w r1, r8, #15
  103157. 802a35e: eb02 02c1 add.w r2, r2, r1, lsl #3
  103158. 802a362: f418 7f80 tst.w r8, #256 @ 0x100
  103159. 802a366: ed92 7b00 vldr d7, [r2]
  103160. 802a36a: ea4f 1128 mov.w r1, r8, asr #4
  103161. 802a36e: f000 80a9 beq.w 802a4c4 <_dtoa_r+0x454>
  103162. 802a372: 4ac5 ldr r2, [pc, #788] @ (802a688 <_dtoa_r+0x618>)
  103163. 802a374: ed92 6b08 vldr d6, [r2, #32]
  103164. 802a378: ee88 6b06 vdiv.f64 d6, d8, d6
  103165. 802a37c: ed8d 6b02 vstr d6, [sp, #8]
  103166. 802a380: f001 010f and.w r1, r1, #15
  103167. 802a384: 2203 movs r2, #3
  103168. 802a386: 48c0 ldr r0, [pc, #768] @ (802a688 <_dtoa_r+0x618>)
  103169. 802a388: 2900 cmp r1, #0
  103170. 802a38a: f040 809d bne.w 802a4c8 <_dtoa_r+0x458>
  103171. 802a38e: ed9d 6b02 vldr d6, [sp, #8]
  103172. 802a392: ee86 7b07 vdiv.f64 d7, d6, d7
  103173. 802a396: ed8d 7b02 vstr d7, [sp, #8]
  103174. 802a39a: 990c ldr r1, [sp, #48] @ 0x30
  103175. 802a39c: ed9d 7b02 vldr d7, [sp, #8]
  103176. 802a3a0: 2900 cmp r1, #0
  103177. 802a3a2: f000 80c1 beq.w 802a528 <_dtoa_r+0x4b8>
  103178. 802a3a6: eeb7 6b00 vmov.f64 d6, #112 @ 0x3f800000 1.0
  103179. 802a3aa: eeb4 7bc6 vcmpe.f64 d7, d6
  103180. 802a3ae: eef1 fa10 vmrs APSR_nzcv, fpscr
  103181. 802a3b2: f140 80b9 bpl.w 802a528 <_dtoa_r+0x4b8>
  103182. 802a3b6: f1ba 0f00 cmp.w sl, #0
  103183. 802a3ba: f000 80b5 beq.w 802a528 <_dtoa_r+0x4b8>
  103184. 802a3be: f1bb 0f00 cmp.w fp, #0
  103185. 802a3c2: dd31 ble.n 802a428 <_dtoa_r+0x3b8>
  103186. 802a3c4: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  103187. 802a3c8: ee27 7b06 vmul.f64 d7, d7, d6
  103188. 802a3cc: ed8d 7b02 vstr d7, [sp, #8]
  103189. 802a3d0: f108 31ff add.w r1, r8, #4294967295 @ 0xffffffff
  103190. 802a3d4: 9104 str r1, [sp, #16]
  103191. 802a3d6: 3201 adds r2, #1
  103192. 802a3d8: 465c mov r4, fp
  103193. 802a3da: ed9d 6b02 vldr d6, [sp, #8]
  103194. 802a3de: eeb1 5b0c vmov.f64 d5, #28 @ 0x40e00000 7.0
  103195. 802a3e2: ee07 2a90 vmov s15, r2
  103196. 802a3e6: eeb8 7be7 vcvt.f64.s32 d7, s15
  103197. 802a3ea: eea7 5b06 vfma.f64 d5, d7, d6
  103198. 802a3ee: ee15 2a90 vmov r2, s11
  103199. 802a3f2: ec51 0b15 vmov r0, r1, d5
  103200. 802a3f6: f1a2 7150 sub.w r1, r2, #54525952 @ 0x3400000
  103201. 802a3fa: 2c00 cmp r4, #0
  103202. 802a3fc: f040 8098 bne.w 802a530 <_dtoa_r+0x4c0>
  103203. 802a400: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  103204. 802a404: ee36 6b47 vsub.f64 d6, d6, d7
  103205. 802a408: ec41 0b17 vmov d7, r0, r1
  103206. 802a40c: eeb4 6bc7 vcmpe.f64 d6, d7
  103207. 802a410: eef1 fa10 vmrs APSR_nzcv, fpscr
  103208. 802a414: f300 8261 bgt.w 802a8da <_dtoa_r+0x86a>
  103209. 802a418: eeb1 7b47 vneg.f64 d7, d7
  103210. 802a41c: eeb4 6bc7 vcmpe.f64 d6, d7
  103211. 802a420: eef1 fa10 vmrs APSR_nzcv, fpscr
  103212. 802a424: f100 80f5 bmi.w 802a612 <_dtoa_r+0x5a2>
  103213. 802a428: ed8d 8b02 vstr d8, [sp, #8]
  103214. 802a42c: 9a0f ldr r2, [sp, #60] @ 0x3c
  103215. 802a42e: 2a00 cmp r2, #0
  103216. 802a430: f2c0 812c blt.w 802a68c <_dtoa_r+0x61c>
  103217. 802a434: f1b8 0f0e cmp.w r8, #14
  103218. 802a438: f300 8128 bgt.w 802a68c <_dtoa_r+0x61c>
  103219. 802a43c: 4b91 ldr r3, [pc, #580] @ (802a684 <_dtoa_r+0x614>)
  103220. 802a43e: eb03 03c8 add.w r3, r3, r8, lsl #3
  103221. 802a442: ed93 6b00 vldr d6, [r3]
  103222. 802a446: 9b09 ldr r3, [sp, #36] @ 0x24
  103223. 802a448: 2b00 cmp r3, #0
  103224. 802a44a: da03 bge.n 802a454 <_dtoa_r+0x3e4>
  103225. 802a44c: f1ba 0f00 cmp.w sl, #0
  103226. 802a450: f340 80d2 ble.w 802a5f8 <_dtoa_r+0x588>
  103227. 802a454: eeb2 4b04 vmov.f64 d4, #36 @ 0x41200000 10.0
  103228. 802a458: ed9d 7b02 vldr d7, [sp, #8]
  103229. 802a45c: 463e mov r6, r7
  103230. 802a45e: ee87 5b06 vdiv.f64 d5, d7, d6
  103231. 802a462: eebd 5bc5 vcvt.s32.f64 s10, d5
  103232. 802a466: ee15 3a10 vmov r3, s10
  103233. 802a46a: 3330 adds r3, #48 @ 0x30
  103234. 802a46c: f806 3b01 strb.w r3, [r6], #1
  103235. 802a470: 1bf3 subs r3, r6, r7
  103236. 802a472: 459a cmp sl, r3
  103237. 802a474: eeb8 3bc5 vcvt.f64.s32 d3, s10
  103238. 802a478: eea3 7b46 vfms.f64 d7, d3, d6
  103239. 802a47c: f040 80f8 bne.w 802a670 <_dtoa_r+0x600>
  103240. 802a480: ee37 7b07 vadd.f64 d7, d7, d7
  103241. 802a484: eeb4 7bc6 vcmpe.f64 d7, d6
  103242. 802a488: eef1 fa10 vmrs APSR_nzcv, fpscr
  103243. 802a48c: f300 80dd bgt.w 802a64a <_dtoa_r+0x5da>
  103244. 802a490: eeb4 7b46 vcmp.f64 d7, d6
  103245. 802a494: eef1 fa10 vmrs APSR_nzcv, fpscr
  103246. 802a498: d104 bne.n 802a4a4 <_dtoa_r+0x434>
  103247. 802a49a: ee15 3a10 vmov r3, s10
  103248. 802a49e: 07db lsls r3, r3, #31
  103249. 802a4a0: f100 80d3 bmi.w 802a64a <_dtoa_r+0x5da>
  103250. 802a4a4: 9901 ldr r1, [sp, #4]
  103251. 802a4a6: 4648 mov r0, r9
  103252. 802a4a8: f000 ff0e bl 802b2c8 <_Bfree>
  103253. 802a4ac: 2300 movs r3, #0
  103254. 802a4ae: 9a0d ldr r2, [sp, #52] @ 0x34
  103255. 802a4b0: 7033 strb r3, [r6, #0]
  103256. 802a4b2: f108 0301 add.w r3, r8, #1
  103257. 802a4b6: 6013 str r3, [r2, #0]
  103258. 802a4b8: 9b1d ldr r3, [sp, #116] @ 0x74
  103259. 802a4ba: 2b00 cmp r3, #0
  103260. 802a4bc: f000 8304 beq.w 802aac8 <_dtoa_r+0xa58>
  103261. 802a4c0: 601e str r6, [r3, #0]
  103262. 802a4c2: e301 b.n 802aac8 <_dtoa_r+0xa58>
  103263. 802a4c4: 2202 movs r2, #2
  103264. 802a4c6: e75e b.n 802a386 <_dtoa_r+0x316>
  103265. 802a4c8: 07cc lsls r4, r1, #31
  103266. 802a4ca: d504 bpl.n 802a4d6 <_dtoa_r+0x466>
  103267. 802a4cc: ed90 6b00 vldr d6, [r0]
  103268. 802a4d0: 3201 adds r2, #1
  103269. 802a4d2: ee27 7b06 vmul.f64 d7, d7, d6
  103270. 802a4d6: 1049 asrs r1, r1, #1
  103271. 802a4d8: 3008 adds r0, #8
  103272. 802a4da: e755 b.n 802a388 <_dtoa_r+0x318>
  103273. 802a4dc: d022 beq.n 802a524 <_dtoa_r+0x4b4>
  103274. 802a4de: f1c8 0100 rsb r1, r8, #0
  103275. 802a4e2: 4a68 ldr r2, [pc, #416] @ (802a684 <_dtoa_r+0x614>)
  103276. 802a4e4: f001 000f and.w r0, r1, #15
  103277. 802a4e8: eb02 02c0 add.w r2, r2, r0, lsl #3
  103278. 802a4ec: ed92 7b00 vldr d7, [r2]
  103279. 802a4f0: ee28 7b07 vmul.f64 d7, d8, d7
  103280. 802a4f4: ed8d 7b02 vstr d7, [sp, #8]
  103281. 802a4f8: 4863 ldr r0, [pc, #396] @ (802a688 <_dtoa_r+0x618>)
  103282. 802a4fa: 1109 asrs r1, r1, #4
  103283. 802a4fc: 2400 movs r4, #0
  103284. 802a4fe: 2202 movs r2, #2
  103285. 802a500: b929 cbnz r1, 802a50e <_dtoa_r+0x49e>
  103286. 802a502: 2c00 cmp r4, #0
  103287. 802a504: f43f af49 beq.w 802a39a <_dtoa_r+0x32a>
  103288. 802a508: ed8d 7b02 vstr d7, [sp, #8]
  103289. 802a50c: e745 b.n 802a39a <_dtoa_r+0x32a>
  103290. 802a50e: 07ce lsls r6, r1, #31
  103291. 802a510: d505 bpl.n 802a51e <_dtoa_r+0x4ae>
  103292. 802a512: ed90 6b00 vldr d6, [r0]
  103293. 802a516: 3201 adds r2, #1
  103294. 802a518: 2401 movs r4, #1
  103295. 802a51a: ee27 7b06 vmul.f64 d7, d7, d6
  103296. 802a51e: 1049 asrs r1, r1, #1
  103297. 802a520: 3008 adds r0, #8
  103298. 802a522: e7ed b.n 802a500 <_dtoa_r+0x490>
  103299. 802a524: 2202 movs r2, #2
  103300. 802a526: e738 b.n 802a39a <_dtoa_r+0x32a>
  103301. 802a528: f8cd 8010 str.w r8, [sp, #16]
  103302. 802a52c: 4654 mov r4, sl
  103303. 802a52e: e754 b.n 802a3da <_dtoa_r+0x36a>
  103304. 802a530: 4a54 ldr r2, [pc, #336] @ (802a684 <_dtoa_r+0x614>)
  103305. 802a532: eb02 02c4 add.w r2, r2, r4, lsl #3
  103306. 802a536: ed12 4b02 vldr d4, [r2, #-8]
  103307. 802a53a: 9a08 ldr r2, [sp, #32]
  103308. 802a53c: ec41 0b17 vmov d7, r0, r1
  103309. 802a540: 443c add r4, r7
  103310. 802a542: b34a cbz r2, 802a598 <_dtoa_r+0x528>
  103311. 802a544: eeb6 3b00 vmov.f64 d3, #96 @ 0x3f000000 0.5
  103312. 802a548: eeb7 2b00 vmov.f64 d2, #112 @ 0x3f800000 1.0
  103313. 802a54c: 463e mov r6, r7
  103314. 802a54e: ee83 5b04 vdiv.f64 d5, d3, d4
  103315. 802a552: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  103316. 802a556: ee35 7b47 vsub.f64 d7, d5, d7
  103317. 802a55a: eefd 4bc6 vcvt.s32.f64 s9, d6
  103318. 802a55e: ee14 2a90 vmov r2, s9
  103319. 802a562: eeb8 5be4 vcvt.f64.s32 d5, s9
  103320. 802a566: 3230 adds r2, #48 @ 0x30
  103321. 802a568: ee36 6b45 vsub.f64 d6, d6, d5
  103322. 802a56c: eeb4 6bc7 vcmpe.f64 d6, d7
  103323. 802a570: eef1 fa10 vmrs APSR_nzcv, fpscr
  103324. 802a574: f806 2b01 strb.w r2, [r6], #1
  103325. 802a578: d438 bmi.n 802a5ec <_dtoa_r+0x57c>
  103326. 802a57a: ee32 5b46 vsub.f64 d5, d2, d6
  103327. 802a57e: eeb4 5bc7 vcmpe.f64 d5, d7
  103328. 802a582: eef1 fa10 vmrs APSR_nzcv, fpscr
  103329. 802a586: d462 bmi.n 802a64e <_dtoa_r+0x5de>
  103330. 802a588: 42a6 cmp r6, r4
  103331. 802a58a: f43f af4d beq.w 802a428 <_dtoa_r+0x3b8>
  103332. 802a58e: ee27 7b03 vmul.f64 d7, d7, d3
  103333. 802a592: ee26 6b03 vmul.f64 d6, d6, d3
  103334. 802a596: e7e0 b.n 802a55a <_dtoa_r+0x4ea>
  103335. 802a598: 4621 mov r1, r4
  103336. 802a59a: 463e mov r6, r7
  103337. 802a59c: ee27 7b04 vmul.f64 d7, d7, d4
  103338. 802a5a0: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  103339. 802a5a4: eefd 4bc6 vcvt.s32.f64 s9, d6
  103340. 802a5a8: ee14 2a90 vmov r2, s9
  103341. 802a5ac: 3230 adds r2, #48 @ 0x30
  103342. 802a5ae: f806 2b01 strb.w r2, [r6], #1
  103343. 802a5b2: 42a6 cmp r6, r4
  103344. 802a5b4: eeb8 5be4 vcvt.f64.s32 d5, s9
  103345. 802a5b8: ee36 6b45 vsub.f64 d6, d6, d5
  103346. 802a5bc: d119 bne.n 802a5f2 <_dtoa_r+0x582>
  103347. 802a5be: eeb6 5b00 vmov.f64 d5, #96 @ 0x3f000000 0.5
  103348. 802a5c2: ee37 4b05 vadd.f64 d4, d7, d5
  103349. 802a5c6: eeb4 6bc4 vcmpe.f64 d6, d4
  103350. 802a5ca: eef1 fa10 vmrs APSR_nzcv, fpscr
  103351. 802a5ce: dc3e bgt.n 802a64e <_dtoa_r+0x5de>
  103352. 802a5d0: ee35 5b47 vsub.f64 d5, d5, d7
  103353. 802a5d4: eeb4 6bc5 vcmpe.f64 d6, d5
  103354. 802a5d8: eef1 fa10 vmrs APSR_nzcv, fpscr
  103355. 802a5dc: f57f af24 bpl.w 802a428 <_dtoa_r+0x3b8>
  103356. 802a5e0: 460e mov r6, r1
  103357. 802a5e2: 3901 subs r1, #1
  103358. 802a5e4: f816 3c01 ldrb.w r3, [r6, #-1]
  103359. 802a5e8: 2b30 cmp r3, #48 @ 0x30
  103360. 802a5ea: d0f9 beq.n 802a5e0 <_dtoa_r+0x570>
  103361. 802a5ec: f8dd 8010 ldr.w r8, [sp, #16]
  103362. 802a5f0: e758 b.n 802a4a4 <_dtoa_r+0x434>
  103363. 802a5f2: ee26 6b03 vmul.f64 d6, d6, d3
  103364. 802a5f6: e7d5 b.n 802a5a4 <_dtoa_r+0x534>
  103365. 802a5f8: d10b bne.n 802a612 <_dtoa_r+0x5a2>
  103366. 802a5fa: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  103367. 802a5fe: ee26 6b07 vmul.f64 d6, d6, d7
  103368. 802a602: ed9d 7b02 vldr d7, [sp, #8]
  103369. 802a606: eeb4 6bc7 vcmpe.f64 d6, d7
  103370. 802a60a: eef1 fa10 vmrs APSR_nzcv, fpscr
  103371. 802a60e: f2c0 8161 blt.w 802a8d4 <_dtoa_r+0x864>
  103372. 802a612: 2400 movs r4, #0
  103373. 802a614: 4625 mov r5, r4
  103374. 802a616: 9b09 ldr r3, [sp, #36] @ 0x24
  103375. 802a618: 43db mvns r3, r3
  103376. 802a61a: 9304 str r3, [sp, #16]
  103377. 802a61c: 463e mov r6, r7
  103378. 802a61e: f04f 0800 mov.w r8, #0
  103379. 802a622: 4621 mov r1, r4
  103380. 802a624: 4648 mov r0, r9
  103381. 802a626: f000 fe4f bl 802b2c8 <_Bfree>
  103382. 802a62a: 2d00 cmp r5, #0
  103383. 802a62c: d0de beq.n 802a5ec <_dtoa_r+0x57c>
  103384. 802a62e: f1b8 0f00 cmp.w r8, #0
  103385. 802a632: d005 beq.n 802a640 <_dtoa_r+0x5d0>
  103386. 802a634: 45a8 cmp r8, r5
  103387. 802a636: d003 beq.n 802a640 <_dtoa_r+0x5d0>
  103388. 802a638: 4641 mov r1, r8
  103389. 802a63a: 4648 mov r0, r9
  103390. 802a63c: f000 fe44 bl 802b2c8 <_Bfree>
  103391. 802a640: 4629 mov r1, r5
  103392. 802a642: 4648 mov r0, r9
  103393. 802a644: f000 fe40 bl 802b2c8 <_Bfree>
  103394. 802a648: e7d0 b.n 802a5ec <_dtoa_r+0x57c>
  103395. 802a64a: f8cd 8010 str.w r8, [sp, #16]
  103396. 802a64e: 4633 mov r3, r6
  103397. 802a650: 461e mov r6, r3
  103398. 802a652: f813 2d01 ldrb.w r2, [r3, #-1]!
  103399. 802a656: 2a39 cmp r2, #57 @ 0x39
  103400. 802a658: d106 bne.n 802a668 <_dtoa_r+0x5f8>
  103401. 802a65a: 429f cmp r7, r3
  103402. 802a65c: d1f8 bne.n 802a650 <_dtoa_r+0x5e0>
  103403. 802a65e: 9a04 ldr r2, [sp, #16]
  103404. 802a660: 3201 adds r2, #1
  103405. 802a662: 9204 str r2, [sp, #16]
  103406. 802a664: 2230 movs r2, #48 @ 0x30
  103407. 802a666: 703a strb r2, [r7, #0]
  103408. 802a668: 781a ldrb r2, [r3, #0]
  103409. 802a66a: 3201 adds r2, #1
  103410. 802a66c: 701a strb r2, [r3, #0]
  103411. 802a66e: e7bd b.n 802a5ec <_dtoa_r+0x57c>
  103412. 802a670: ee27 7b04 vmul.f64 d7, d7, d4
  103413. 802a674: eeb5 7b40 vcmp.f64 d7, #0.0
  103414. 802a678: eef1 fa10 vmrs APSR_nzcv, fpscr
  103415. 802a67c: f47f aeef bne.w 802a45e <_dtoa_r+0x3ee>
  103416. 802a680: e710 b.n 802a4a4 <_dtoa_r+0x434>
  103417. 802a682: bf00 nop
  103418. 802a684: 08031020 .word 0x08031020
  103419. 802a688: 08030ff8 .word 0x08030ff8
  103420. 802a68c: 9908 ldr r1, [sp, #32]
  103421. 802a68e: 2900 cmp r1, #0
  103422. 802a690: f000 80e3 beq.w 802a85a <_dtoa_r+0x7ea>
  103423. 802a694: 9907 ldr r1, [sp, #28]
  103424. 802a696: 2901 cmp r1, #1
  103425. 802a698: f300 80c8 bgt.w 802a82c <_dtoa_r+0x7bc>
  103426. 802a69c: 2d00 cmp r5, #0
  103427. 802a69e: f000 80c1 beq.w 802a824 <_dtoa_r+0x7b4>
  103428. 802a6a2: f202 4233 addw r2, r2, #1075 @ 0x433
  103429. 802a6a6: 9e05 ldr r6, [sp, #20]
  103430. 802a6a8: 461c mov r4, r3
  103431. 802a6aa: 9304 str r3, [sp, #16]
  103432. 802a6ac: 9b05 ldr r3, [sp, #20]
  103433. 802a6ae: 4413 add r3, r2
  103434. 802a6b0: 9305 str r3, [sp, #20]
  103435. 802a6b2: 9b06 ldr r3, [sp, #24]
  103436. 802a6b4: 2101 movs r1, #1
  103437. 802a6b6: 4413 add r3, r2
  103438. 802a6b8: 4648 mov r0, r9
  103439. 802a6ba: 9306 str r3, [sp, #24]
  103440. 802a6bc: f000 ff02 bl 802b4c4 <__i2b>
  103441. 802a6c0: 9b04 ldr r3, [sp, #16]
  103442. 802a6c2: 4605 mov r5, r0
  103443. 802a6c4: b166 cbz r6, 802a6e0 <_dtoa_r+0x670>
  103444. 802a6c6: 9a06 ldr r2, [sp, #24]
  103445. 802a6c8: 2a00 cmp r2, #0
  103446. 802a6ca: dd09 ble.n 802a6e0 <_dtoa_r+0x670>
  103447. 802a6cc: 42b2 cmp r2, r6
  103448. 802a6ce: 9905 ldr r1, [sp, #20]
  103449. 802a6d0: bfa8 it ge
  103450. 802a6d2: 4632 movge r2, r6
  103451. 802a6d4: 1a89 subs r1, r1, r2
  103452. 802a6d6: 9105 str r1, [sp, #20]
  103453. 802a6d8: 9906 ldr r1, [sp, #24]
  103454. 802a6da: 1ab6 subs r6, r6, r2
  103455. 802a6dc: 1a8a subs r2, r1, r2
  103456. 802a6de: 9206 str r2, [sp, #24]
  103457. 802a6e0: b1fb cbz r3, 802a722 <_dtoa_r+0x6b2>
  103458. 802a6e2: 9a08 ldr r2, [sp, #32]
  103459. 802a6e4: 2a00 cmp r2, #0
  103460. 802a6e6: f000 80bc beq.w 802a862 <_dtoa_r+0x7f2>
  103461. 802a6ea: b19c cbz r4, 802a714 <_dtoa_r+0x6a4>
  103462. 802a6ec: 4629 mov r1, r5
  103463. 802a6ee: 4622 mov r2, r4
  103464. 802a6f0: 4648 mov r0, r9
  103465. 802a6f2: 930b str r3, [sp, #44] @ 0x2c
  103466. 802a6f4: f000 ffa6 bl 802b644 <__pow5mult>
  103467. 802a6f8: 9a01 ldr r2, [sp, #4]
  103468. 802a6fa: 4601 mov r1, r0
  103469. 802a6fc: 4605 mov r5, r0
  103470. 802a6fe: 4648 mov r0, r9
  103471. 802a700: f000 fef6 bl 802b4f0 <__multiply>
  103472. 802a704: 9901 ldr r1, [sp, #4]
  103473. 802a706: 9004 str r0, [sp, #16]
  103474. 802a708: 4648 mov r0, r9
  103475. 802a70a: f000 fddd bl 802b2c8 <_Bfree>
  103476. 802a70e: 9a04 ldr r2, [sp, #16]
  103477. 802a710: 9b0b ldr r3, [sp, #44] @ 0x2c
  103478. 802a712: 9201 str r2, [sp, #4]
  103479. 802a714: 1b1a subs r2, r3, r4
  103480. 802a716: d004 beq.n 802a722 <_dtoa_r+0x6b2>
  103481. 802a718: 9901 ldr r1, [sp, #4]
  103482. 802a71a: 4648 mov r0, r9
  103483. 802a71c: f000 ff92 bl 802b644 <__pow5mult>
  103484. 802a720: 9001 str r0, [sp, #4]
  103485. 802a722: 2101 movs r1, #1
  103486. 802a724: 4648 mov r0, r9
  103487. 802a726: f000 fecd bl 802b4c4 <__i2b>
  103488. 802a72a: 9b0a ldr r3, [sp, #40] @ 0x28
  103489. 802a72c: 4604 mov r4, r0
  103490. 802a72e: 2b00 cmp r3, #0
  103491. 802a730: f000 81d0 beq.w 802aad4 <_dtoa_r+0xa64>
  103492. 802a734: 461a mov r2, r3
  103493. 802a736: 4601 mov r1, r0
  103494. 802a738: 4648 mov r0, r9
  103495. 802a73a: f000 ff83 bl 802b644 <__pow5mult>
  103496. 802a73e: 9b07 ldr r3, [sp, #28]
  103497. 802a740: 2b01 cmp r3, #1
  103498. 802a742: 4604 mov r4, r0
  103499. 802a744: f300 8095 bgt.w 802a872 <_dtoa_r+0x802>
  103500. 802a748: 9b02 ldr r3, [sp, #8]
  103501. 802a74a: 2b00 cmp r3, #0
  103502. 802a74c: f040 808b bne.w 802a866 <_dtoa_r+0x7f6>
  103503. 802a750: 9b03 ldr r3, [sp, #12]
  103504. 802a752: f3c3 0213 ubfx r2, r3, #0, #20
  103505. 802a756: 2a00 cmp r2, #0
  103506. 802a758: f040 8087 bne.w 802a86a <_dtoa_r+0x7fa>
  103507. 802a75c: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  103508. 802a760: 0d12 lsrs r2, r2, #20
  103509. 802a762: 0512 lsls r2, r2, #20
  103510. 802a764: 2a00 cmp r2, #0
  103511. 802a766: f000 8082 beq.w 802a86e <_dtoa_r+0x7fe>
  103512. 802a76a: 9b05 ldr r3, [sp, #20]
  103513. 802a76c: 3301 adds r3, #1
  103514. 802a76e: 9305 str r3, [sp, #20]
  103515. 802a770: 9b06 ldr r3, [sp, #24]
  103516. 802a772: 3301 adds r3, #1
  103517. 802a774: 9306 str r3, [sp, #24]
  103518. 802a776: 2301 movs r3, #1
  103519. 802a778: 930b str r3, [sp, #44] @ 0x2c
  103520. 802a77a: 9b0a ldr r3, [sp, #40] @ 0x28
  103521. 802a77c: 2b00 cmp r3, #0
  103522. 802a77e: f000 81af beq.w 802aae0 <_dtoa_r+0xa70>
  103523. 802a782: 6922 ldr r2, [r4, #16]
  103524. 802a784: eb04 0282 add.w r2, r4, r2, lsl #2
  103525. 802a788: 6910 ldr r0, [r2, #16]
  103526. 802a78a: f000 fe4f bl 802b42c <__hi0bits>
  103527. 802a78e: f1c0 0020 rsb r0, r0, #32
  103528. 802a792: 9b06 ldr r3, [sp, #24]
  103529. 802a794: 4418 add r0, r3
  103530. 802a796: f010 001f ands.w r0, r0, #31
  103531. 802a79a: d076 beq.n 802a88a <_dtoa_r+0x81a>
  103532. 802a79c: f1c0 0220 rsb r2, r0, #32
  103533. 802a7a0: 2a04 cmp r2, #4
  103534. 802a7a2: dd69 ble.n 802a878 <_dtoa_r+0x808>
  103535. 802a7a4: 9b05 ldr r3, [sp, #20]
  103536. 802a7a6: f1c0 001c rsb r0, r0, #28
  103537. 802a7aa: 4403 add r3, r0
  103538. 802a7ac: 9305 str r3, [sp, #20]
  103539. 802a7ae: 9b06 ldr r3, [sp, #24]
  103540. 802a7b0: 4406 add r6, r0
  103541. 802a7b2: 4403 add r3, r0
  103542. 802a7b4: 9306 str r3, [sp, #24]
  103543. 802a7b6: 9b05 ldr r3, [sp, #20]
  103544. 802a7b8: 2b00 cmp r3, #0
  103545. 802a7ba: dd05 ble.n 802a7c8 <_dtoa_r+0x758>
  103546. 802a7bc: 9901 ldr r1, [sp, #4]
  103547. 802a7be: 461a mov r2, r3
  103548. 802a7c0: 4648 mov r0, r9
  103549. 802a7c2: f000 ff99 bl 802b6f8 <__lshift>
  103550. 802a7c6: 9001 str r0, [sp, #4]
  103551. 802a7c8: 9b06 ldr r3, [sp, #24]
  103552. 802a7ca: 2b00 cmp r3, #0
  103553. 802a7cc: dd05 ble.n 802a7da <_dtoa_r+0x76a>
  103554. 802a7ce: 4621 mov r1, r4
  103555. 802a7d0: 461a mov r2, r3
  103556. 802a7d2: 4648 mov r0, r9
  103557. 802a7d4: f000 ff90 bl 802b6f8 <__lshift>
  103558. 802a7d8: 4604 mov r4, r0
  103559. 802a7da: 9b0c ldr r3, [sp, #48] @ 0x30
  103560. 802a7dc: 2b00 cmp r3, #0
  103561. 802a7de: d056 beq.n 802a88e <_dtoa_r+0x81e>
  103562. 802a7e0: 9801 ldr r0, [sp, #4]
  103563. 802a7e2: 4621 mov r1, r4
  103564. 802a7e4: f000 fff4 bl 802b7d0 <__mcmp>
  103565. 802a7e8: 2800 cmp r0, #0
  103566. 802a7ea: da50 bge.n 802a88e <_dtoa_r+0x81e>
  103567. 802a7ec: f108 33ff add.w r3, r8, #4294967295 @ 0xffffffff
  103568. 802a7f0: 9304 str r3, [sp, #16]
  103569. 802a7f2: 9901 ldr r1, [sp, #4]
  103570. 802a7f4: 2300 movs r3, #0
  103571. 802a7f6: 220a movs r2, #10
  103572. 802a7f8: 4648 mov r0, r9
  103573. 802a7fa: f000 fd87 bl 802b30c <__multadd>
  103574. 802a7fe: 9b08 ldr r3, [sp, #32]
  103575. 802a800: 9001 str r0, [sp, #4]
  103576. 802a802: 2b00 cmp r3, #0
  103577. 802a804: f000 816e beq.w 802aae4 <_dtoa_r+0xa74>
  103578. 802a808: 4629 mov r1, r5
  103579. 802a80a: 2300 movs r3, #0
  103580. 802a80c: 220a movs r2, #10
  103581. 802a80e: 4648 mov r0, r9
  103582. 802a810: f000 fd7c bl 802b30c <__multadd>
  103583. 802a814: f1bb 0f00 cmp.w fp, #0
  103584. 802a818: 4605 mov r5, r0
  103585. 802a81a: dc64 bgt.n 802a8e6 <_dtoa_r+0x876>
  103586. 802a81c: 9b07 ldr r3, [sp, #28]
  103587. 802a81e: 2b02 cmp r3, #2
  103588. 802a820: dc3e bgt.n 802a8a0 <_dtoa_r+0x830>
  103589. 802a822: e060 b.n 802a8e6 <_dtoa_r+0x876>
  103590. 802a824: 9a0e ldr r2, [sp, #56] @ 0x38
  103591. 802a826: f1c2 0236 rsb r2, r2, #54 @ 0x36
  103592. 802a82a: e73c b.n 802a6a6 <_dtoa_r+0x636>
  103593. 802a82c: f10a 34ff add.w r4, sl, #4294967295 @ 0xffffffff
  103594. 802a830: 42a3 cmp r3, r4
  103595. 802a832: bfbf itttt lt
  103596. 802a834: 1ae2 sublt r2, r4, r3
  103597. 802a836: 9b0a ldrlt r3, [sp, #40] @ 0x28
  103598. 802a838: 189b addlt r3, r3, r2
  103599. 802a83a: 930a strlt r3, [sp, #40] @ 0x28
  103600. 802a83c: bfae itee ge
  103601. 802a83e: 1b1c subge r4, r3, r4
  103602. 802a840: 4623 movlt r3, r4
  103603. 802a842: 2400 movlt r4, #0
  103604. 802a844: f1ba 0f00 cmp.w sl, #0
  103605. 802a848: bfb5 itete lt
  103606. 802a84a: 9a05 ldrlt r2, [sp, #20]
  103607. 802a84c: 9e05 ldrge r6, [sp, #20]
  103608. 802a84e: eba2 060a sublt.w r6, r2, sl
  103609. 802a852: 4652 movge r2, sl
  103610. 802a854: bfb8 it lt
  103611. 802a856: 2200 movlt r2, #0
  103612. 802a858: e727 b.n 802a6aa <_dtoa_r+0x63a>
  103613. 802a85a: 9e05 ldr r6, [sp, #20]
  103614. 802a85c: 9d08 ldr r5, [sp, #32]
  103615. 802a85e: 461c mov r4, r3
  103616. 802a860: e730 b.n 802a6c4 <_dtoa_r+0x654>
  103617. 802a862: 461a mov r2, r3
  103618. 802a864: e758 b.n 802a718 <_dtoa_r+0x6a8>
  103619. 802a866: 2300 movs r3, #0
  103620. 802a868: e786 b.n 802a778 <_dtoa_r+0x708>
  103621. 802a86a: 9b02 ldr r3, [sp, #8]
  103622. 802a86c: e784 b.n 802a778 <_dtoa_r+0x708>
  103623. 802a86e: 920b str r2, [sp, #44] @ 0x2c
  103624. 802a870: e783 b.n 802a77a <_dtoa_r+0x70a>
  103625. 802a872: 2300 movs r3, #0
  103626. 802a874: 930b str r3, [sp, #44] @ 0x2c
  103627. 802a876: e784 b.n 802a782 <_dtoa_r+0x712>
  103628. 802a878: d09d beq.n 802a7b6 <_dtoa_r+0x746>
  103629. 802a87a: 9b05 ldr r3, [sp, #20]
  103630. 802a87c: 321c adds r2, #28
  103631. 802a87e: 4413 add r3, r2
  103632. 802a880: 9305 str r3, [sp, #20]
  103633. 802a882: 9b06 ldr r3, [sp, #24]
  103634. 802a884: 4416 add r6, r2
  103635. 802a886: 4413 add r3, r2
  103636. 802a888: e794 b.n 802a7b4 <_dtoa_r+0x744>
  103637. 802a88a: 4602 mov r2, r0
  103638. 802a88c: e7f5 b.n 802a87a <_dtoa_r+0x80a>
  103639. 802a88e: f1ba 0f00 cmp.w sl, #0
  103640. 802a892: f8cd 8010 str.w r8, [sp, #16]
  103641. 802a896: 46d3 mov fp, sl
  103642. 802a898: dc21 bgt.n 802a8de <_dtoa_r+0x86e>
  103643. 802a89a: 9b07 ldr r3, [sp, #28]
  103644. 802a89c: 2b02 cmp r3, #2
  103645. 802a89e: dd1e ble.n 802a8de <_dtoa_r+0x86e>
  103646. 802a8a0: f1bb 0f00 cmp.w fp, #0
  103647. 802a8a4: f47f aeb7 bne.w 802a616 <_dtoa_r+0x5a6>
  103648. 802a8a8: 4621 mov r1, r4
  103649. 802a8aa: 465b mov r3, fp
  103650. 802a8ac: 2205 movs r2, #5
  103651. 802a8ae: 4648 mov r0, r9
  103652. 802a8b0: f000 fd2c bl 802b30c <__multadd>
  103653. 802a8b4: 4601 mov r1, r0
  103654. 802a8b6: 4604 mov r4, r0
  103655. 802a8b8: 9801 ldr r0, [sp, #4]
  103656. 802a8ba: f000 ff89 bl 802b7d0 <__mcmp>
  103657. 802a8be: 2800 cmp r0, #0
  103658. 802a8c0: f77f aea9 ble.w 802a616 <_dtoa_r+0x5a6>
  103659. 802a8c4: 463e mov r6, r7
  103660. 802a8c6: 2331 movs r3, #49 @ 0x31
  103661. 802a8c8: f806 3b01 strb.w r3, [r6], #1
  103662. 802a8cc: 9b04 ldr r3, [sp, #16]
  103663. 802a8ce: 3301 adds r3, #1
  103664. 802a8d0: 9304 str r3, [sp, #16]
  103665. 802a8d2: e6a4 b.n 802a61e <_dtoa_r+0x5ae>
  103666. 802a8d4: f8cd 8010 str.w r8, [sp, #16]
  103667. 802a8d8: 4654 mov r4, sl
  103668. 802a8da: 4625 mov r5, r4
  103669. 802a8dc: e7f2 b.n 802a8c4 <_dtoa_r+0x854>
  103670. 802a8de: 9b08 ldr r3, [sp, #32]
  103671. 802a8e0: 2b00 cmp r3, #0
  103672. 802a8e2: f000 8103 beq.w 802aaec <_dtoa_r+0xa7c>
  103673. 802a8e6: 2e00 cmp r6, #0
  103674. 802a8e8: dd05 ble.n 802a8f6 <_dtoa_r+0x886>
  103675. 802a8ea: 4629 mov r1, r5
  103676. 802a8ec: 4632 mov r2, r6
  103677. 802a8ee: 4648 mov r0, r9
  103678. 802a8f0: f000 ff02 bl 802b6f8 <__lshift>
  103679. 802a8f4: 4605 mov r5, r0
  103680. 802a8f6: 9b0b ldr r3, [sp, #44] @ 0x2c
  103681. 802a8f8: 2b00 cmp r3, #0
  103682. 802a8fa: d058 beq.n 802a9ae <_dtoa_r+0x93e>
  103683. 802a8fc: 6869 ldr r1, [r5, #4]
  103684. 802a8fe: 4648 mov r0, r9
  103685. 802a900: f000 fca2 bl 802b248 <_Balloc>
  103686. 802a904: 4606 mov r6, r0
  103687. 802a906: b928 cbnz r0, 802a914 <_dtoa_r+0x8a4>
  103688. 802a908: 4b82 ldr r3, [pc, #520] @ (802ab14 <_dtoa_r+0xaa4>)
  103689. 802a90a: 4602 mov r2, r0
  103690. 802a90c: f240 21ef movw r1, #751 @ 0x2ef
  103691. 802a910: f7ff bbc7 b.w 802a0a2 <_dtoa_r+0x32>
  103692. 802a914: 692a ldr r2, [r5, #16]
  103693. 802a916: 3202 adds r2, #2
  103694. 802a918: 0092 lsls r2, r2, #2
  103695. 802a91a: f105 010c add.w r1, r5, #12
  103696. 802a91e: 300c adds r0, #12
  103697. 802a920: f7ff fae5 bl 8029eee <memcpy>
  103698. 802a924: 2201 movs r2, #1
  103699. 802a926: 4631 mov r1, r6
  103700. 802a928: 4648 mov r0, r9
  103701. 802a92a: f000 fee5 bl 802b6f8 <__lshift>
  103702. 802a92e: 1c7b adds r3, r7, #1
  103703. 802a930: 9305 str r3, [sp, #20]
  103704. 802a932: eb07 030b add.w r3, r7, fp
  103705. 802a936: 9309 str r3, [sp, #36] @ 0x24
  103706. 802a938: 9b02 ldr r3, [sp, #8]
  103707. 802a93a: f003 0301 and.w r3, r3, #1
  103708. 802a93e: 46a8 mov r8, r5
  103709. 802a940: 9308 str r3, [sp, #32]
  103710. 802a942: 4605 mov r5, r0
  103711. 802a944: 9b05 ldr r3, [sp, #20]
  103712. 802a946: 9801 ldr r0, [sp, #4]
  103713. 802a948: 4621 mov r1, r4
  103714. 802a94a: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff
  103715. 802a94e: f7ff fb05 bl 8029f5c <quorem>
  103716. 802a952: 4641 mov r1, r8
  103717. 802a954: 9002 str r0, [sp, #8]
  103718. 802a956: f100 0a30 add.w sl, r0, #48 @ 0x30
  103719. 802a95a: 9801 ldr r0, [sp, #4]
  103720. 802a95c: f000 ff38 bl 802b7d0 <__mcmp>
  103721. 802a960: 462a mov r2, r5
  103722. 802a962: 9006 str r0, [sp, #24]
  103723. 802a964: 4621 mov r1, r4
  103724. 802a966: 4648 mov r0, r9
  103725. 802a968: f000 ff4e bl 802b808 <__mdiff>
  103726. 802a96c: 68c2 ldr r2, [r0, #12]
  103727. 802a96e: 4606 mov r6, r0
  103728. 802a970: b9fa cbnz r2, 802a9b2 <_dtoa_r+0x942>
  103729. 802a972: 4601 mov r1, r0
  103730. 802a974: 9801 ldr r0, [sp, #4]
  103731. 802a976: f000 ff2b bl 802b7d0 <__mcmp>
  103732. 802a97a: 4602 mov r2, r0
  103733. 802a97c: 4631 mov r1, r6
  103734. 802a97e: 4648 mov r0, r9
  103735. 802a980: 920a str r2, [sp, #40] @ 0x28
  103736. 802a982: f000 fca1 bl 802b2c8 <_Bfree>
  103737. 802a986: 9b07 ldr r3, [sp, #28]
  103738. 802a988: 9a0a ldr r2, [sp, #40] @ 0x28
  103739. 802a98a: 9e05 ldr r6, [sp, #20]
  103740. 802a98c: ea43 0102 orr.w r1, r3, r2
  103741. 802a990: 9b08 ldr r3, [sp, #32]
  103742. 802a992: 4319 orrs r1, r3
  103743. 802a994: d10f bne.n 802a9b6 <_dtoa_r+0x946>
  103744. 802a996: f1ba 0f39 cmp.w sl, #57 @ 0x39
  103745. 802a99a: d028 beq.n 802a9ee <_dtoa_r+0x97e>
  103746. 802a99c: 9b06 ldr r3, [sp, #24]
  103747. 802a99e: 2b00 cmp r3, #0
  103748. 802a9a0: dd02 ble.n 802a9a8 <_dtoa_r+0x938>
  103749. 802a9a2: 9b02 ldr r3, [sp, #8]
  103750. 802a9a4: f103 0a31 add.w sl, r3, #49 @ 0x31
  103751. 802a9a8: f88b a000 strb.w sl, [fp]
  103752. 802a9ac: e639 b.n 802a622 <_dtoa_r+0x5b2>
  103753. 802a9ae: 4628 mov r0, r5
  103754. 802a9b0: e7bd b.n 802a92e <_dtoa_r+0x8be>
  103755. 802a9b2: 2201 movs r2, #1
  103756. 802a9b4: e7e2 b.n 802a97c <_dtoa_r+0x90c>
  103757. 802a9b6: 9b06 ldr r3, [sp, #24]
  103758. 802a9b8: 2b00 cmp r3, #0
  103759. 802a9ba: db04 blt.n 802a9c6 <_dtoa_r+0x956>
  103760. 802a9bc: 9907 ldr r1, [sp, #28]
  103761. 802a9be: 430b orrs r3, r1
  103762. 802a9c0: 9908 ldr r1, [sp, #32]
  103763. 802a9c2: 430b orrs r3, r1
  103764. 802a9c4: d120 bne.n 802aa08 <_dtoa_r+0x998>
  103765. 802a9c6: 2a00 cmp r2, #0
  103766. 802a9c8: ddee ble.n 802a9a8 <_dtoa_r+0x938>
  103767. 802a9ca: 9901 ldr r1, [sp, #4]
  103768. 802a9cc: 2201 movs r2, #1
  103769. 802a9ce: 4648 mov r0, r9
  103770. 802a9d0: f000 fe92 bl 802b6f8 <__lshift>
  103771. 802a9d4: 4621 mov r1, r4
  103772. 802a9d6: 9001 str r0, [sp, #4]
  103773. 802a9d8: f000 fefa bl 802b7d0 <__mcmp>
  103774. 802a9dc: 2800 cmp r0, #0
  103775. 802a9de: dc03 bgt.n 802a9e8 <_dtoa_r+0x978>
  103776. 802a9e0: d1e2 bne.n 802a9a8 <_dtoa_r+0x938>
  103777. 802a9e2: f01a 0f01 tst.w sl, #1
  103778. 802a9e6: d0df beq.n 802a9a8 <_dtoa_r+0x938>
  103779. 802a9e8: f1ba 0f39 cmp.w sl, #57 @ 0x39
  103780. 802a9ec: d1d9 bne.n 802a9a2 <_dtoa_r+0x932>
  103781. 802a9ee: 2339 movs r3, #57 @ 0x39
  103782. 802a9f0: f88b 3000 strb.w r3, [fp]
  103783. 802a9f4: 4633 mov r3, r6
  103784. 802a9f6: 461e mov r6, r3
  103785. 802a9f8: 3b01 subs r3, #1
  103786. 802a9fa: f816 2c01 ldrb.w r2, [r6, #-1]
  103787. 802a9fe: 2a39 cmp r2, #57 @ 0x39
  103788. 802aa00: d053 beq.n 802aaaa <_dtoa_r+0xa3a>
  103789. 802aa02: 3201 adds r2, #1
  103790. 802aa04: 701a strb r2, [r3, #0]
  103791. 802aa06: e60c b.n 802a622 <_dtoa_r+0x5b2>
  103792. 802aa08: 2a00 cmp r2, #0
  103793. 802aa0a: dd07 ble.n 802aa1c <_dtoa_r+0x9ac>
  103794. 802aa0c: f1ba 0f39 cmp.w sl, #57 @ 0x39
  103795. 802aa10: d0ed beq.n 802a9ee <_dtoa_r+0x97e>
  103796. 802aa12: f10a 0301 add.w r3, sl, #1
  103797. 802aa16: f88b 3000 strb.w r3, [fp]
  103798. 802aa1a: e602 b.n 802a622 <_dtoa_r+0x5b2>
  103799. 802aa1c: 9b05 ldr r3, [sp, #20]
  103800. 802aa1e: 9a05 ldr r2, [sp, #20]
  103801. 802aa20: f803 ac01 strb.w sl, [r3, #-1]
  103802. 802aa24: 9b09 ldr r3, [sp, #36] @ 0x24
  103803. 802aa26: 4293 cmp r3, r2
  103804. 802aa28: d029 beq.n 802aa7e <_dtoa_r+0xa0e>
  103805. 802aa2a: 9901 ldr r1, [sp, #4]
  103806. 802aa2c: 2300 movs r3, #0
  103807. 802aa2e: 220a movs r2, #10
  103808. 802aa30: 4648 mov r0, r9
  103809. 802aa32: f000 fc6b bl 802b30c <__multadd>
  103810. 802aa36: 45a8 cmp r8, r5
  103811. 802aa38: 9001 str r0, [sp, #4]
  103812. 802aa3a: f04f 0300 mov.w r3, #0
  103813. 802aa3e: f04f 020a mov.w r2, #10
  103814. 802aa42: 4641 mov r1, r8
  103815. 802aa44: 4648 mov r0, r9
  103816. 802aa46: d107 bne.n 802aa58 <_dtoa_r+0x9e8>
  103817. 802aa48: f000 fc60 bl 802b30c <__multadd>
  103818. 802aa4c: 4680 mov r8, r0
  103819. 802aa4e: 4605 mov r5, r0
  103820. 802aa50: 9b05 ldr r3, [sp, #20]
  103821. 802aa52: 3301 adds r3, #1
  103822. 802aa54: 9305 str r3, [sp, #20]
  103823. 802aa56: e775 b.n 802a944 <_dtoa_r+0x8d4>
  103824. 802aa58: f000 fc58 bl 802b30c <__multadd>
  103825. 802aa5c: 4629 mov r1, r5
  103826. 802aa5e: 4680 mov r8, r0
  103827. 802aa60: 2300 movs r3, #0
  103828. 802aa62: 220a movs r2, #10
  103829. 802aa64: 4648 mov r0, r9
  103830. 802aa66: f000 fc51 bl 802b30c <__multadd>
  103831. 802aa6a: 4605 mov r5, r0
  103832. 802aa6c: e7f0 b.n 802aa50 <_dtoa_r+0x9e0>
  103833. 802aa6e: f1bb 0f00 cmp.w fp, #0
  103834. 802aa72: bfcc ite gt
  103835. 802aa74: 465e movgt r6, fp
  103836. 802aa76: 2601 movle r6, #1
  103837. 802aa78: 443e add r6, r7
  103838. 802aa7a: f04f 0800 mov.w r8, #0
  103839. 802aa7e: 9901 ldr r1, [sp, #4]
  103840. 802aa80: 2201 movs r2, #1
  103841. 802aa82: 4648 mov r0, r9
  103842. 802aa84: f000 fe38 bl 802b6f8 <__lshift>
  103843. 802aa88: 4621 mov r1, r4
  103844. 802aa8a: 9001 str r0, [sp, #4]
  103845. 802aa8c: f000 fea0 bl 802b7d0 <__mcmp>
  103846. 802aa90: 2800 cmp r0, #0
  103847. 802aa92: dcaf bgt.n 802a9f4 <_dtoa_r+0x984>
  103848. 802aa94: d102 bne.n 802aa9c <_dtoa_r+0xa2c>
  103849. 802aa96: f01a 0f01 tst.w sl, #1
  103850. 802aa9a: d1ab bne.n 802a9f4 <_dtoa_r+0x984>
  103851. 802aa9c: 4633 mov r3, r6
  103852. 802aa9e: 461e mov r6, r3
  103853. 802aaa0: f813 2d01 ldrb.w r2, [r3, #-1]!
  103854. 802aaa4: 2a30 cmp r2, #48 @ 0x30
  103855. 802aaa6: d0fa beq.n 802aa9e <_dtoa_r+0xa2e>
  103856. 802aaa8: e5bb b.n 802a622 <_dtoa_r+0x5b2>
  103857. 802aaaa: 429f cmp r7, r3
  103858. 802aaac: d1a3 bne.n 802a9f6 <_dtoa_r+0x986>
  103859. 802aaae: 9b04 ldr r3, [sp, #16]
  103860. 802aab0: 3301 adds r3, #1
  103861. 802aab2: 9304 str r3, [sp, #16]
  103862. 802aab4: 2331 movs r3, #49 @ 0x31
  103863. 802aab6: 703b strb r3, [r7, #0]
  103864. 802aab8: e5b3 b.n 802a622 <_dtoa_r+0x5b2>
  103865. 802aaba: 9b1d ldr r3, [sp, #116] @ 0x74
  103866. 802aabc: 4f16 ldr r7, [pc, #88] @ (802ab18 <_dtoa_r+0xaa8>)
  103867. 802aabe: b11b cbz r3, 802aac8 <_dtoa_r+0xa58>
  103868. 802aac0: f107 0308 add.w r3, r7, #8
  103869. 802aac4: 9a1d ldr r2, [sp, #116] @ 0x74
  103870. 802aac6: 6013 str r3, [r2, #0]
  103871. 802aac8: 4638 mov r0, r7
  103872. 802aaca: b011 add sp, #68 @ 0x44
  103873. 802aacc: ecbd 8b02 vpop {d8}
  103874. 802aad0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  103875. 802aad4: 9b07 ldr r3, [sp, #28]
  103876. 802aad6: 2b01 cmp r3, #1
  103877. 802aad8: f77f ae36 ble.w 802a748 <_dtoa_r+0x6d8>
  103878. 802aadc: 9b0a ldr r3, [sp, #40] @ 0x28
  103879. 802aade: 930b str r3, [sp, #44] @ 0x2c
  103880. 802aae0: 2001 movs r0, #1
  103881. 802aae2: e656 b.n 802a792 <_dtoa_r+0x722>
  103882. 802aae4: f1bb 0f00 cmp.w fp, #0
  103883. 802aae8: f77f aed7 ble.w 802a89a <_dtoa_r+0x82a>
  103884. 802aaec: 463e mov r6, r7
  103885. 802aaee: 9801 ldr r0, [sp, #4]
  103886. 802aaf0: 4621 mov r1, r4
  103887. 802aaf2: f7ff fa33 bl 8029f5c <quorem>
  103888. 802aaf6: f100 0a30 add.w sl, r0, #48 @ 0x30
  103889. 802aafa: f806 ab01 strb.w sl, [r6], #1
  103890. 802aafe: 1bf2 subs r2, r6, r7
  103891. 802ab00: 4593 cmp fp, r2
  103892. 802ab02: ddb4 ble.n 802aa6e <_dtoa_r+0x9fe>
  103893. 802ab04: 9901 ldr r1, [sp, #4]
  103894. 802ab06: 2300 movs r3, #0
  103895. 802ab08: 220a movs r2, #10
  103896. 802ab0a: 4648 mov r0, r9
  103897. 802ab0c: f000 fbfe bl 802b30c <__multadd>
  103898. 802ab10: 9001 str r0, [sp, #4]
  103899. 802ab12: e7ec b.n 802aaee <_dtoa_r+0xa7e>
  103900. 802ab14: 08030f1e .word 0x08030f1e
  103901. 802ab18: 08030eb9 .word 0x08030eb9
  103902. 0802ab1c <_free_r>:
  103903. 802ab1c: b538 push {r3, r4, r5, lr}
  103904. 802ab1e: 4605 mov r5, r0
  103905. 802ab20: 2900 cmp r1, #0
  103906. 802ab22: d041 beq.n 802aba8 <_free_r+0x8c>
  103907. 802ab24: f851 3c04 ldr.w r3, [r1, #-4]
  103908. 802ab28: 1f0c subs r4, r1, #4
  103909. 802ab2a: 2b00 cmp r3, #0
  103910. 802ab2c: bfb8 it lt
  103911. 802ab2e: 18e4 addlt r4, r4, r3
  103912. 802ab30: f7fd fc1e bl 8028370 <__malloc_lock>
  103913. 802ab34: 4a1d ldr r2, [pc, #116] @ (802abac <_free_r+0x90>)
  103914. 802ab36: 6813 ldr r3, [r2, #0]
  103915. 802ab38: b933 cbnz r3, 802ab48 <_free_r+0x2c>
  103916. 802ab3a: 6063 str r3, [r4, #4]
  103917. 802ab3c: 6014 str r4, [r2, #0]
  103918. 802ab3e: 4628 mov r0, r5
  103919. 802ab40: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  103920. 802ab44: f7fd bc1a b.w 802837c <__malloc_unlock>
  103921. 802ab48: 42a3 cmp r3, r4
  103922. 802ab4a: d908 bls.n 802ab5e <_free_r+0x42>
  103923. 802ab4c: 6820 ldr r0, [r4, #0]
  103924. 802ab4e: 1821 adds r1, r4, r0
  103925. 802ab50: 428b cmp r3, r1
  103926. 802ab52: bf01 itttt eq
  103927. 802ab54: 6819 ldreq r1, [r3, #0]
  103928. 802ab56: 685b ldreq r3, [r3, #4]
  103929. 802ab58: 1809 addeq r1, r1, r0
  103930. 802ab5a: 6021 streq r1, [r4, #0]
  103931. 802ab5c: e7ed b.n 802ab3a <_free_r+0x1e>
  103932. 802ab5e: 461a mov r2, r3
  103933. 802ab60: 685b ldr r3, [r3, #4]
  103934. 802ab62: b10b cbz r3, 802ab68 <_free_r+0x4c>
  103935. 802ab64: 42a3 cmp r3, r4
  103936. 802ab66: d9fa bls.n 802ab5e <_free_r+0x42>
  103937. 802ab68: 6811 ldr r1, [r2, #0]
  103938. 802ab6a: 1850 adds r0, r2, r1
  103939. 802ab6c: 42a0 cmp r0, r4
  103940. 802ab6e: d10b bne.n 802ab88 <_free_r+0x6c>
  103941. 802ab70: 6820 ldr r0, [r4, #0]
  103942. 802ab72: 4401 add r1, r0
  103943. 802ab74: 1850 adds r0, r2, r1
  103944. 802ab76: 4283 cmp r3, r0
  103945. 802ab78: 6011 str r1, [r2, #0]
  103946. 802ab7a: d1e0 bne.n 802ab3e <_free_r+0x22>
  103947. 802ab7c: 6818 ldr r0, [r3, #0]
  103948. 802ab7e: 685b ldr r3, [r3, #4]
  103949. 802ab80: 6053 str r3, [r2, #4]
  103950. 802ab82: 4408 add r0, r1
  103951. 802ab84: 6010 str r0, [r2, #0]
  103952. 802ab86: e7da b.n 802ab3e <_free_r+0x22>
  103953. 802ab88: d902 bls.n 802ab90 <_free_r+0x74>
  103954. 802ab8a: 230c movs r3, #12
  103955. 802ab8c: 602b str r3, [r5, #0]
  103956. 802ab8e: e7d6 b.n 802ab3e <_free_r+0x22>
  103957. 802ab90: 6820 ldr r0, [r4, #0]
  103958. 802ab92: 1821 adds r1, r4, r0
  103959. 802ab94: 428b cmp r3, r1
  103960. 802ab96: bf04 itt eq
  103961. 802ab98: 6819 ldreq r1, [r3, #0]
  103962. 802ab9a: 685b ldreq r3, [r3, #4]
  103963. 802ab9c: 6063 str r3, [r4, #4]
  103964. 802ab9e: bf04 itt eq
  103965. 802aba0: 1809 addeq r1, r1, r0
  103966. 802aba2: 6021 streq r1, [r4, #0]
  103967. 802aba4: 6054 str r4, [r2, #4]
  103968. 802aba6: e7ca b.n 802ab3e <_free_r+0x22>
  103969. 802aba8: bd38 pop {r3, r4, r5, pc}
  103970. 802abaa: bf00 nop
  103971. 802abac: 2402b040 .word 0x2402b040
  103972. 0802abb0 <rshift>:
  103973. 802abb0: 6903 ldr r3, [r0, #16]
  103974. 802abb2: ebb3 1f61 cmp.w r3, r1, asr #5
  103975. 802abb6: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  103976. 802abba: ea4f 1261 mov.w r2, r1, asr #5
  103977. 802abbe: f100 0414 add.w r4, r0, #20
  103978. 802abc2: dd45 ble.n 802ac50 <rshift+0xa0>
  103979. 802abc4: f011 011f ands.w r1, r1, #31
  103980. 802abc8: eb04 0683 add.w r6, r4, r3, lsl #2
  103981. 802abcc: eb04 0582 add.w r5, r4, r2, lsl #2
  103982. 802abd0: d10c bne.n 802abec <rshift+0x3c>
  103983. 802abd2: f100 0710 add.w r7, r0, #16
  103984. 802abd6: 4629 mov r1, r5
  103985. 802abd8: 42b1 cmp r1, r6
  103986. 802abda: d334 bcc.n 802ac46 <rshift+0x96>
  103987. 802abdc: 1a9b subs r3, r3, r2
  103988. 802abde: 009b lsls r3, r3, #2
  103989. 802abe0: 1eea subs r2, r5, #3
  103990. 802abe2: 4296 cmp r6, r2
  103991. 802abe4: bf38 it cc
  103992. 802abe6: 2300 movcc r3, #0
  103993. 802abe8: 4423 add r3, r4
  103994. 802abea: e015 b.n 802ac18 <rshift+0x68>
  103995. 802abec: f854 7022 ldr.w r7, [r4, r2, lsl #2]
  103996. 802abf0: f1c1 0820 rsb r8, r1, #32
  103997. 802abf4: 40cf lsrs r7, r1
  103998. 802abf6: f105 0e04 add.w lr, r5, #4
  103999. 802abfa: 46a1 mov r9, r4
  104000. 802abfc: 4576 cmp r6, lr
  104001. 802abfe: 46f4 mov ip, lr
  104002. 802ac00: d815 bhi.n 802ac2e <rshift+0x7e>
  104003. 802ac02: 1a9a subs r2, r3, r2
  104004. 802ac04: 0092 lsls r2, r2, #2
  104005. 802ac06: 3a04 subs r2, #4
  104006. 802ac08: 3501 adds r5, #1
  104007. 802ac0a: 42ae cmp r6, r5
  104008. 802ac0c: bf38 it cc
  104009. 802ac0e: 2200 movcc r2, #0
  104010. 802ac10: 18a3 adds r3, r4, r2
  104011. 802ac12: 50a7 str r7, [r4, r2]
  104012. 802ac14: b107 cbz r7, 802ac18 <rshift+0x68>
  104013. 802ac16: 3304 adds r3, #4
  104014. 802ac18: 1b1a subs r2, r3, r4
  104015. 802ac1a: 42a3 cmp r3, r4
  104016. 802ac1c: ea4f 02a2 mov.w r2, r2, asr #2
  104017. 802ac20: bf08 it eq
  104018. 802ac22: 2300 moveq r3, #0
  104019. 802ac24: 6102 str r2, [r0, #16]
  104020. 802ac26: bf08 it eq
  104021. 802ac28: 6143 streq r3, [r0, #20]
  104022. 802ac2a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  104023. 802ac2e: f8dc c000 ldr.w ip, [ip]
  104024. 802ac32: fa0c fc08 lsl.w ip, ip, r8
  104025. 802ac36: ea4c 0707 orr.w r7, ip, r7
  104026. 802ac3a: f849 7b04 str.w r7, [r9], #4
  104027. 802ac3e: f85e 7b04 ldr.w r7, [lr], #4
  104028. 802ac42: 40cf lsrs r7, r1
  104029. 802ac44: e7da b.n 802abfc <rshift+0x4c>
  104030. 802ac46: f851 cb04 ldr.w ip, [r1], #4
  104031. 802ac4a: f847 cf04 str.w ip, [r7, #4]!
  104032. 802ac4e: e7c3 b.n 802abd8 <rshift+0x28>
  104033. 802ac50: 4623 mov r3, r4
  104034. 802ac52: e7e1 b.n 802ac18 <rshift+0x68>
  104035. 0802ac54 <__hexdig_fun>:
  104036. 802ac54: f1a0 0330 sub.w r3, r0, #48 @ 0x30
  104037. 802ac58: 2b09 cmp r3, #9
  104038. 802ac5a: d802 bhi.n 802ac62 <__hexdig_fun+0xe>
  104039. 802ac5c: 3820 subs r0, #32
  104040. 802ac5e: b2c0 uxtb r0, r0
  104041. 802ac60: 4770 bx lr
  104042. 802ac62: f1a0 0361 sub.w r3, r0, #97 @ 0x61
  104043. 802ac66: 2b05 cmp r3, #5
  104044. 802ac68: d801 bhi.n 802ac6e <__hexdig_fun+0x1a>
  104045. 802ac6a: 3847 subs r0, #71 @ 0x47
  104046. 802ac6c: e7f7 b.n 802ac5e <__hexdig_fun+0xa>
  104047. 802ac6e: f1a0 0341 sub.w r3, r0, #65 @ 0x41
  104048. 802ac72: 2b05 cmp r3, #5
  104049. 802ac74: d801 bhi.n 802ac7a <__hexdig_fun+0x26>
  104050. 802ac76: 3827 subs r0, #39 @ 0x27
  104051. 802ac78: e7f1 b.n 802ac5e <__hexdig_fun+0xa>
  104052. 802ac7a: 2000 movs r0, #0
  104053. 802ac7c: 4770 bx lr
  104054. ...
  104055. 0802ac80 <__gethex>:
  104056. 802ac80: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104057. 802ac84: b085 sub sp, #20
  104058. 802ac86: 468a mov sl, r1
  104059. 802ac88: 9302 str r3, [sp, #8]
  104060. 802ac8a: 680b ldr r3, [r1, #0]
  104061. 802ac8c: 9001 str r0, [sp, #4]
  104062. 802ac8e: 4690 mov r8, r2
  104063. 802ac90: 1c9c adds r4, r3, #2
  104064. 802ac92: 46a1 mov r9, r4
  104065. 802ac94: f814 0b01 ldrb.w r0, [r4], #1
  104066. 802ac98: 2830 cmp r0, #48 @ 0x30
  104067. 802ac9a: d0fa beq.n 802ac92 <__gethex+0x12>
  104068. 802ac9c: eba9 0303 sub.w r3, r9, r3
  104069. 802aca0: f1a3 0b02 sub.w fp, r3, #2
  104070. 802aca4: f7ff ffd6 bl 802ac54 <__hexdig_fun>
  104071. 802aca8: 4605 mov r5, r0
  104072. 802acaa: 2800 cmp r0, #0
  104073. 802acac: d168 bne.n 802ad80 <__gethex+0x100>
  104074. 802acae: 49a0 ldr r1, [pc, #640] @ (802af30 <__gethex+0x2b0>)
  104075. 802acb0: 2201 movs r2, #1
  104076. 802acb2: 4648 mov r0, r9
  104077. 802acb4: f7ff f82c bl 8029d10 <strncmp>
  104078. 802acb8: 4607 mov r7, r0
  104079. 802acba: 2800 cmp r0, #0
  104080. 802acbc: d167 bne.n 802ad8e <__gethex+0x10e>
  104081. 802acbe: f899 0001 ldrb.w r0, [r9, #1]
  104082. 802acc2: 4626 mov r6, r4
  104083. 802acc4: f7ff ffc6 bl 802ac54 <__hexdig_fun>
  104084. 802acc8: 2800 cmp r0, #0
  104085. 802acca: d062 beq.n 802ad92 <__gethex+0x112>
  104086. 802accc: 4623 mov r3, r4
  104087. 802acce: 7818 ldrb r0, [r3, #0]
  104088. 802acd0: 2830 cmp r0, #48 @ 0x30
  104089. 802acd2: 4699 mov r9, r3
  104090. 802acd4: f103 0301 add.w r3, r3, #1
  104091. 802acd8: d0f9 beq.n 802acce <__gethex+0x4e>
  104092. 802acda: f7ff ffbb bl 802ac54 <__hexdig_fun>
  104093. 802acde: fab0 f580 clz r5, r0
  104094. 802ace2: 096d lsrs r5, r5, #5
  104095. 802ace4: f04f 0b01 mov.w fp, #1
  104096. 802ace8: 464a mov r2, r9
  104097. 802acea: 4616 mov r6, r2
  104098. 802acec: 3201 adds r2, #1
  104099. 802acee: 7830 ldrb r0, [r6, #0]
  104100. 802acf0: f7ff ffb0 bl 802ac54 <__hexdig_fun>
  104101. 802acf4: 2800 cmp r0, #0
  104102. 802acf6: d1f8 bne.n 802acea <__gethex+0x6a>
  104103. 802acf8: 498d ldr r1, [pc, #564] @ (802af30 <__gethex+0x2b0>)
  104104. 802acfa: 2201 movs r2, #1
  104105. 802acfc: 4630 mov r0, r6
  104106. 802acfe: f7ff f807 bl 8029d10 <strncmp>
  104107. 802ad02: 2800 cmp r0, #0
  104108. 802ad04: d13f bne.n 802ad86 <__gethex+0x106>
  104109. 802ad06: b944 cbnz r4, 802ad1a <__gethex+0x9a>
  104110. 802ad08: 1c74 adds r4, r6, #1
  104111. 802ad0a: 4622 mov r2, r4
  104112. 802ad0c: 4616 mov r6, r2
  104113. 802ad0e: 3201 adds r2, #1
  104114. 802ad10: 7830 ldrb r0, [r6, #0]
  104115. 802ad12: f7ff ff9f bl 802ac54 <__hexdig_fun>
  104116. 802ad16: 2800 cmp r0, #0
  104117. 802ad18: d1f8 bne.n 802ad0c <__gethex+0x8c>
  104118. 802ad1a: 1ba4 subs r4, r4, r6
  104119. 802ad1c: 00a7 lsls r7, r4, #2
  104120. 802ad1e: 7833 ldrb r3, [r6, #0]
  104121. 802ad20: f003 03df and.w r3, r3, #223 @ 0xdf
  104122. 802ad24: 2b50 cmp r3, #80 @ 0x50
  104123. 802ad26: d13e bne.n 802ada6 <__gethex+0x126>
  104124. 802ad28: 7873 ldrb r3, [r6, #1]
  104125. 802ad2a: 2b2b cmp r3, #43 @ 0x2b
  104126. 802ad2c: d033 beq.n 802ad96 <__gethex+0x116>
  104127. 802ad2e: 2b2d cmp r3, #45 @ 0x2d
  104128. 802ad30: d034 beq.n 802ad9c <__gethex+0x11c>
  104129. 802ad32: 1c71 adds r1, r6, #1
  104130. 802ad34: 2400 movs r4, #0
  104131. 802ad36: 7808 ldrb r0, [r1, #0]
  104132. 802ad38: f7ff ff8c bl 802ac54 <__hexdig_fun>
  104133. 802ad3c: 1e43 subs r3, r0, #1
  104134. 802ad3e: b2db uxtb r3, r3
  104135. 802ad40: 2b18 cmp r3, #24
  104136. 802ad42: d830 bhi.n 802ada6 <__gethex+0x126>
  104137. 802ad44: f1a0 0210 sub.w r2, r0, #16
  104138. 802ad48: f811 0f01 ldrb.w r0, [r1, #1]!
  104139. 802ad4c: f7ff ff82 bl 802ac54 <__hexdig_fun>
  104140. 802ad50: f100 3cff add.w ip, r0, #4294967295 @ 0xffffffff
  104141. 802ad54: fa5f fc8c uxtb.w ip, ip
  104142. 802ad58: f1bc 0f18 cmp.w ip, #24
  104143. 802ad5c: f04f 030a mov.w r3, #10
  104144. 802ad60: d91e bls.n 802ada0 <__gethex+0x120>
  104145. 802ad62: b104 cbz r4, 802ad66 <__gethex+0xe6>
  104146. 802ad64: 4252 negs r2, r2
  104147. 802ad66: 4417 add r7, r2
  104148. 802ad68: f8ca 1000 str.w r1, [sl]
  104149. 802ad6c: b1ed cbz r5, 802adaa <__gethex+0x12a>
  104150. 802ad6e: f1bb 0f00 cmp.w fp, #0
  104151. 802ad72: bf0c ite eq
  104152. 802ad74: 2506 moveq r5, #6
  104153. 802ad76: 2500 movne r5, #0
  104154. 802ad78: 4628 mov r0, r5
  104155. 802ad7a: b005 add sp, #20
  104156. 802ad7c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104157. 802ad80: 2500 movs r5, #0
  104158. 802ad82: 462c mov r4, r5
  104159. 802ad84: e7b0 b.n 802ace8 <__gethex+0x68>
  104160. 802ad86: 2c00 cmp r4, #0
  104161. 802ad88: d1c7 bne.n 802ad1a <__gethex+0x9a>
  104162. 802ad8a: 4627 mov r7, r4
  104163. 802ad8c: e7c7 b.n 802ad1e <__gethex+0x9e>
  104164. 802ad8e: 464e mov r6, r9
  104165. 802ad90: 462f mov r7, r5
  104166. 802ad92: 2501 movs r5, #1
  104167. 802ad94: e7c3 b.n 802ad1e <__gethex+0x9e>
  104168. 802ad96: 2400 movs r4, #0
  104169. 802ad98: 1cb1 adds r1, r6, #2
  104170. 802ad9a: e7cc b.n 802ad36 <__gethex+0xb6>
  104171. 802ad9c: 2401 movs r4, #1
  104172. 802ad9e: e7fb b.n 802ad98 <__gethex+0x118>
  104173. 802ada0: fb03 0002 mla r0, r3, r2, r0
  104174. 802ada4: e7ce b.n 802ad44 <__gethex+0xc4>
  104175. 802ada6: 4631 mov r1, r6
  104176. 802ada8: e7de b.n 802ad68 <__gethex+0xe8>
  104177. 802adaa: eba6 0309 sub.w r3, r6, r9
  104178. 802adae: 3b01 subs r3, #1
  104179. 802adb0: 4629 mov r1, r5
  104180. 802adb2: 2b07 cmp r3, #7
  104181. 802adb4: dc0a bgt.n 802adcc <__gethex+0x14c>
  104182. 802adb6: 9801 ldr r0, [sp, #4]
  104183. 802adb8: f000 fa46 bl 802b248 <_Balloc>
  104184. 802adbc: 4604 mov r4, r0
  104185. 802adbe: b940 cbnz r0, 802add2 <__gethex+0x152>
  104186. 802adc0: 4b5c ldr r3, [pc, #368] @ (802af34 <__gethex+0x2b4>)
  104187. 802adc2: 4602 mov r2, r0
  104188. 802adc4: 21e4 movs r1, #228 @ 0xe4
  104189. 802adc6: 485c ldr r0, [pc, #368] @ (802af38 <__gethex+0x2b8>)
  104190. 802adc8: f7ff f8aa bl 8029f20 <__assert_func>
  104191. 802adcc: 3101 adds r1, #1
  104192. 802adce: 105b asrs r3, r3, #1
  104193. 802add0: e7ef b.n 802adb2 <__gethex+0x132>
  104194. 802add2: f100 0a14 add.w sl, r0, #20
  104195. 802add6: 2300 movs r3, #0
  104196. 802add8: 4655 mov r5, sl
  104197. 802adda: 469b mov fp, r3
  104198. 802addc: 45b1 cmp r9, r6
  104199. 802adde: d337 bcc.n 802ae50 <__gethex+0x1d0>
  104200. 802ade0: f845 bb04 str.w fp, [r5], #4
  104201. 802ade4: eba5 050a sub.w r5, r5, sl
  104202. 802ade8: 10ad asrs r5, r5, #2
  104203. 802adea: 6125 str r5, [r4, #16]
  104204. 802adec: 4658 mov r0, fp
  104205. 802adee: f000 fb1d bl 802b42c <__hi0bits>
  104206. 802adf2: 016d lsls r5, r5, #5
  104207. 802adf4: f8d8 6000 ldr.w r6, [r8]
  104208. 802adf8: 1a2d subs r5, r5, r0
  104209. 802adfa: 42b5 cmp r5, r6
  104210. 802adfc: dd54 ble.n 802aea8 <__gethex+0x228>
  104211. 802adfe: 1bad subs r5, r5, r6
  104212. 802ae00: 4629 mov r1, r5
  104213. 802ae02: 4620 mov r0, r4
  104214. 802ae04: f000 feae bl 802bb64 <__any_on>
  104215. 802ae08: 4681 mov r9, r0
  104216. 802ae0a: b178 cbz r0, 802ae2c <__gethex+0x1ac>
  104217. 802ae0c: 1e6b subs r3, r5, #1
  104218. 802ae0e: 1159 asrs r1, r3, #5
  104219. 802ae10: f003 021f and.w r2, r3, #31
  104220. 802ae14: f85a 1021 ldr.w r1, [sl, r1, lsl #2]
  104221. 802ae18: f04f 0901 mov.w r9, #1
  104222. 802ae1c: fa09 f202 lsl.w r2, r9, r2
  104223. 802ae20: 420a tst r2, r1
  104224. 802ae22: d003 beq.n 802ae2c <__gethex+0x1ac>
  104225. 802ae24: 454b cmp r3, r9
  104226. 802ae26: dc36 bgt.n 802ae96 <__gethex+0x216>
  104227. 802ae28: f04f 0902 mov.w r9, #2
  104228. 802ae2c: 4629 mov r1, r5
  104229. 802ae2e: 4620 mov r0, r4
  104230. 802ae30: f7ff febe bl 802abb0 <rshift>
  104231. 802ae34: 442f add r7, r5
  104232. 802ae36: f8d8 3008 ldr.w r3, [r8, #8]
  104233. 802ae3a: 42bb cmp r3, r7
  104234. 802ae3c: da42 bge.n 802aec4 <__gethex+0x244>
  104235. 802ae3e: 9801 ldr r0, [sp, #4]
  104236. 802ae40: 4621 mov r1, r4
  104237. 802ae42: f000 fa41 bl 802b2c8 <_Bfree>
  104238. 802ae46: 9a0e ldr r2, [sp, #56] @ 0x38
  104239. 802ae48: 2300 movs r3, #0
  104240. 802ae4a: 6013 str r3, [r2, #0]
  104241. 802ae4c: 25a3 movs r5, #163 @ 0xa3
  104242. 802ae4e: e793 b.n 802ad78 <__gethex+0xf8>
  104243. 802ae50: f816 2d01 ldrb.w r2, [r6, #-1]!
  104244. 802ae54: 2a2e cmp r2, #46 @ 0x2e
  104245. 802ae56: d012 beq.n 802ae7e <__gethex+0x1fe>
  104246. 802ae58: 2b20 cmp r3, #32
  104247. 802ae5a: d104 bne.n 802ae66 <__gethex+0x1e6>
  104248. 802ae5c: f845 bb04 str.w fp, [r5], #4
  104249. 802ae60: f04f 0b00 mov.w fp, #0
  104250. 802ae64: 465b mov r3, fp
  104251. 802ae66: 7830 ldrb r0, [r6, #0]
  104252. 802ae68: 9303 str r3, [sp, #12]
  104253. 802ae6a: f7ff fef3 bl 802ac54 <__hexdig_fun>
  104254. 802ae6e: 9b03 ldr r3, [sp, #12]
  104255. 802ae70: f000 000f and.w r0, r0, #15
  104256. 802ae74: 4098 lsls r0, r3
  104257. 802ae76: ea4b 0b00 orr.w fp, fp, r0
  104258. 802ae7a: 3304 adds r3, #4
  104259. 802ae7c: e7ae b.n 802addc <__gethex+0x15c>
  104260. 802ae7e: 45b1 cmp r9, r6
  104261. 802ae80: d8ea bhi.n 802ae58 <__gethex+0x1d8>
  104262. 802ae82: 492b ldr r1, [pc, #172] @ (802af30 <__gethex+0x2b0>)
  104263. 802ae84: 9303 str r3, [sp, #12]
  104264. 802ae86: 2201 movs r2, #1
  104265. 802ae88: 4630 mov r0, r6
  104266. 802ae8a: f7fe ff41 bl 8029d10 <strncmp>
  104267. 802ae8e: 9b03 ldr r3, [sp, #12]
  104268. 802ae90: 2800 cmp r0, #0
  104269. 802ae92: d1e1 bne.n 802ae58 <__gethex+0x1d8>
  104270. 802ae94: e7a2 b.n 802addc <__gethex+0x15c>
  104271. 802ae96: 1ea9 subs r1, r5, #2
  104272. 802ae98: 4620 mov r0, r4
  104273. 802ae9a: f000 fe63 bl 802bb64 <__any_on>
  104274. 802ae9e: 2800 cmp r0, #0
  104275. 802aea0: d0c2 beq.n 802ae28 <__gethex+0x1a8>
  104276. 802aea2: f04f 0903 mov.w r9, #3
  104277. 802aea6: e7c1 b.n 802ae2c <__gethex+0x1ac>
  104278. 802aea8: da09 bge.n 802aebe <__gethex+0x23e>
  104279. 802aeaa: 1b75 subs r5, r6, r5
  104280. 802aeac: 4621 mov r1, r4
  104281. 802aeae: 9801 ldr r0, [sp, #4]
  104282. 802aeb0: 462a mov r2, r5
  104283. 802aeb2: f000 fc21 bl 802b6f8 <__lshift>
  104284. 802aeb6: 1b7f subs r7, r7, r5
  104285. 802aeb8: 4604 mov r4, r0
  104286. 802aeba: f100 0a14 add.w sl, r0, #20
  104287. 802aebe: f04f 0900 mov.w r9, #0
  104288. 802aec2: e7b8 b.n 802ae36 <__gethex+0x1b6>
  104289. 802aec4: f8d8 5004 ldr.w r5, [r8, #4]
  104290. 802aec8: 42bd cmp r5, r7
  104291. 802aeca: dd6f ble.n 802afac <__gethex+0x32c>
  104292. 802aecc: 1bed subs r5, r5, r7
  104293. 802aece: 42ae cmp r6, r5
  104294. 802aed0: dc34 bgt.n 802af3c <__gethex+0x2bc>
  104295. 802aed2: f8d8 300c ldr.w r3, [r8, #12]
  104296. 802aed6: 2b02 cmp r3, #2
  104297. 802aed8: d022 beq.n 802af20 <__gethex+0x2a0>
  104298. 802aeda: 2b03 cmp r3, #3
  104299. 802aedc: d024 beq.n 802af28 <__gethex+0x2a8>
  104300. 802aede: 2b01 cmp r3, #1
  104301. 802aee0: d115 bne.n 802af0e <__gethex+0x28e>
  104302. 802aee2: 42ae cmp r6, r5
  104303. 802aee4: d113 bne.n 802af0e <__gethex+0x28e>
  104304. 802aee6: 2e01 cmp r6, #1
  104305. 802aee8: d10b bne.n 802af02 <__gethex+0x282>
  104306. 802aeea: 9a02 ldr r2, [sp, #8]
  104307. 802aeec: f8d8 3004 ldr.w r3, [r8, #4]
  104308. 802aef0: 6013 str r3, [r2, #0]
  104309. 802aef2: 2301 movs r3, #1
  104310. 802aef4: 6123 str r3, [r4, #16]
  104311. 802aef6: f8ca 3000 str.w r3, [sl]
  104312. 802aefa: 9b0e ldr r3, [sp, #56] @ 0x38
  104313. 802aefc: 2562 movs r5, #98 @ 0x62
  104314. 802aefe: 601c str r4, [r3, #0]
  104315. 802af00: e73a b.n 802ad78 <__gethex+0xf8>
  104316. 802af02: 1e71 subs r1, r6, #1
  104317. 802af04: 4620 mov r0, r4
  104318. 802af06: f000 fe2d bl 802bb64 <__any_on>
  104319. 802af0a: 2800 cmp r0, #0
  104320. 802af0c: d1ed bne.n 802aeea <__gethex+0x26a>
  104321. 802af0e: 9801 ldr r0, [sp, #4]
  104322. 802af10: 4621 mov r1, r4
  104323. 802af12: f000 f9d9 bl 802b2c8 <_Bfree>
  104324. 802af16: 9a0e ldr r2, [sp, #56] @ 0x38
  104325. 802af18: 2300 movs r3, #0
  104326. 802af1a: 6013 str r3, [r2, #0]
  104327. 802af1c: 2550 movs r5, #80 @ 0x50
  104328. 802af1e: e72b b.n 802ad78 <__gethex+0xf8>
  104329. 802af20: 9b0f ldr r3, [sp, #60] @ 0x3c
  104330. 802af22: 2b00 cmp r3, #0
  104331. 802af24: d1f3 bne.n 802af0e <__gethex+0x28e>
  104332. 802af26: e7e0 b.n 802aeea <__gethex+0x26a>
  104333. 802af28: 9b0f ldr r3, [sp, #60] @ 0x3c
  104334. 802af2a: 2b00 cmp r3, #0
  104335. 802af2c: d1dd bne.n 802aeea <__gethex+0x26a>
  104336. 802af2e: e7ee b.n 802af0e <__gethex+0x28e>
  104337. 802af30: 08030ced .word 0x08030ced
  104338. 802af34: 08030f1e .word 0x08030f1e
  104339. 802af38: 08030f2f .word 0x08030f2f
  104340. 802af3c: 1e6f subs r7, r5, #1
  104341. 802af3e: f1b9 0f00 cmp.w r9, #0
  104342. 802af42: d130 bne.n 802afa6 <__gethex+0x326>
  104343. 802af44: b127 cbz r7, 802af50 <__gethex+0x2d0>
  104344. 802af46: 4639 mov r1, r7
  104345. 802af48: 4620 mov r0, r4
  104346. 802af4a: f000 fe0b bl 802bb64 <__any_on>
  104347. 802af4e: 4681 mov r9, r0
  104348. 802af50: 117a asrs r2, r7, #5
  104349. 802af52: 2301 movs r3, #1
  104350. 802af54: f85a 2022 ldr.w r2, [sl, r2, lsl #2]
  104351. 802af58: f007 071f and.w r7, r7, #31
  104352. 802af5c: 40bb lsls r3, r7
  104353. 802af5e: 4213 tst r3, r2
  104354. 802af60: 4629 mov r1, r5
  104355. 802af62: 4620 mov r0, r4
  104356. 802af64: bf18 it ne
  104357. 802af66: f049 0902 orrne.w r9, r9, #2
  104358. 802af6a: f7ff fe21 bl 802abb0 <rshift>
  104359. 802af6e: f8d8 7004 ldr.w r7, [r8, #4]
  104360. 802af72: 1b76 subs r6, r6, r5
  104361. 802af74: 2502 movs r5, #2
  104362. 802af76: f1b9 0f00 cmp.w r9, #0
  104363. 802af7a: d047 beq.n 802b00c <__gethex+0x38c>
  104364. 802af7c: f8d8 300c ldr.w r3, [r8, #12]
  104365. 802af80: 2b02 cmp r3, #2
  104366. 802af82: d015 beq.n 802afb0 <__gethex+0x330>
  104367. 802af84: 2b03 cmp r3, #3
  104368. 802af86: d017 beq.n 802afb8 <__gethex+0x338>
  104369. 802af88: 2b01 cmp r3, #1
  104370. 802af8a: d109 bne.n 802afa0 <__gethex+0x320>
  104371. 802af8c: f019 0f02 tst.w r9, #2
  104372. 802af90: d006 beq.n 802afa0 <__gethex+0x320>
  104373. 802af92: f8da 3000 ldr.w r3, [sl]
  104374. 802af96: ea49 0903 orr.w r9, r9, r3
  104375. 802af9a: f019 0f01 tst.w r9, #1
  104376. 802af9e: d10e bne.n 802afbe <__gethex+0x33e>
  104377. 802afa0: f045 0510 orr.w r5, r5, #16
  104378. 802afa4: e032 b.n 802b00c <__gethex+0x38c>
  104379. 802afa6: f04f 0901 mov.w r9, #1
  104380. 802afaa: e7d1 b.n 802af50 <__gethex+0x2d0>
  104381. 802afac: 2501 movs r5, #1
  104382. 802afae: e7e2 b.n 802af76 <__gethex+0x2f6>
  104383. 802afb0: 9b0f ldr r3, [sp, #60] @ 0x3c
  104384. 802afb2: f1c3 0301 rsb r3, r3, #1
  104385. 802afb6: 930f str r3, [sp, #60] @ 0x3c
  104386. 802afb8: 9b0f ldr r3, [sp, #60] @ 0x3c
  104387. 802afba: 2b00 cmp r3, #0
  104388. 802afbc: d0f0 beq.n 802afa0 <__gethex+0x320>
  104389. 802afbe: f8d4 b010 ldr.w fp, [r4, #16]
  104390. 802afc2: f104 0314 add.w r3, r4, #20
  104391. 802afc6: ea4f 0a8b mov.w sl, fp, lsl #2
  104392. 802afca: eb03 018b add.w r1, r3, fp, lsl #2
  104393. 802afce: f04f 0c00 mov.w ip, #0
  104394. 802afd2: 4618 mov r0, r3
  104395. 802afd4: f853 2b04 ldr.w r2, [r3], #4
  104396. 802afd8: f1b2 3fff cmp.w r2, #4294967295 @ 0xffffffff
  104397. 802afdc: d01b beq.n 802b016 <__gethex+0x396>
  104398. 802afde: 3201 adds r2, #1
  104399. 802afe0: 6002 str r2, [r0, #0]
  104400. 802afe2: 2d02 cmp r5, #2
  104401. 802afe4: f104 0314 add.w r3, r4, #20
  104402. 802afe8: d13c bne.n 802b064 <__gethex+0x3e4>
  104403. 802afea: f8d8 2000 ldr.w r2, [r8]
  104404. 802afee: 3a01 subs r2, #1
  104405. 802aff0: 42b2 cmp r2, r6
  104406. 802aff2: d109 bne.n 802b008 <__gethex+0x388>
  104407. 802aff4: 1171 asrs r1, r6, #5
  104408. 802aff6: 2201 movs r2, #1
  104409. 802aff8: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  104410. 802affc: f006 061f and.w r6, r6, #31
  104411. 802b000: fa02 f606 lsl.w r6, r2, r6
  104412. 802b004: 421e tst r6, r3
  104413. 802b006: d13a bne.n 802b07e <__gethex+0x3fe>
  104414. 802b008: f045 0520 orr.w r5, r5, #32
  104415. 802b00c: 9b0e ldr r3, [sp, #56] @ 0x38
  104416. 802b00e: 601c str r4, [r3, #0]
  104417. 802b010: 9b02 ldr r3, [sp, #8]
  104418. 802b012: 601f str r7, [r3, #0]
  104419. 802b014: e6b0 b.n 802ad78 <__gethex+0xf8>
  104420. 802b016: 4299 cmp r1, r3
  104421. 802b018: f843 cc04 str.w ip, [r3, #-4]
  104422. 802b01c: d8d9 bhi.n 802afd2 <__gethex+0x352>
  104423. 802b01e: 68a3 ldr r3, [r4, #8]
  104424. 802b020: 459b cmp fp, r3
  104425. 802b022: db17 blt.n 802b054 <__gethex+0x3d4>
  104426. 802b024: 6861 ldr r1, [r4, #4]
  104427. 802b026: 9801 ldr r0, [sp, #4]
  104428. 802b028: 3101 adds r1, #1
  104429. 802b02a: f000 f90d bl 802b248 <_Balloc>
  104430. 802b02e: 4681 mov r9, r0
  104431. 802b030: b918 cbnz r0, 802b03a <__gethex+0x3ba>
  104432. 802b032: 4b1a ldr r3, [pc, #104] @ (802b09c <__gethex+0x41c>)
  104433. 802b034: 4602 mov r2, r0
  104434. 802b036: 2184 movs r1, #132 @ 0x84
  104435. 802b038: e6c5 b.n 802adc6 <__gethex+0x146>
  104436. 802b03a: 6922 ldr r2, [r4, #16]
  104437. 802b03c: 3202 adds r2, #2
  104438. 802b03e: f104 010c add.w r1, r4, #12
  104439. 802b042: 0092 lsls r2, r2, #2
  104440. 802b044: 300c adds r0, #12
  104441. 802b046: f7fe ff52 bl 8029eee <memcpy>
  104442. 802b04a: 4621 mov r1, r4
  104443. 802b04c: 9801 ldr r0, [sp, #4]
  104444. 802b04e: f000 f93b bl 802b2c8 <_Bfree>
  104445. 802b052: 464c mov r4, r9
  104446. 802b054: 6923 ldr r3, [r4, #16]
  104447. 802b056: 1c5a adds r2, r3, #1
  104448. 802b058: eb04 0383 add.w r3, r4, r3, lsl #2
  104449. 802b05c: 6122 str r2, [r4, #16]
  104450. 802b05e: 2201 movs r2, #1
  104451. 802b060: 615a str r2, [r3, #20]
  104452. 802b062: e7be b.n 802afe2 <__gethex+0x362>
  104453. 802b064: 6922 ldr r2, [r4, #16]
  104454. 802b066: 455a cmp r2, fp
  104455. 802b068: dd0b ble.n 802b082 <__gethex+0x402>
  104456. 802b06a: 2101 movs r1, #1
  104457. 802b06c: 4620 mov r0, r4
  104458. 802b06e: f7ff fd9f bl 802abb0 <rshift>
  104459. 802b072: f8d8 3008 ldr.w r3, [r8, #8]
  104460. 802b076: 3701 adds r7, #1
  104461. 802b078: 42bb cmp r3, r7
  104462. 802b07a: f6ff aee0 blt.w 802ae3e <__gethex+0x1be>
  104463. 802b07e: 2501 movs r5, #1
  104464. 802b080: e7c2 b.n 802b008 <__gethex+0x388>
  104465. 802b082: f016 061f ands.w r6, r6, #31
  104466. 802b086: d0fa beq.n 802b07e <__gethex+0x3fe>
  104467. 802b088: 4453 add r3, sl
  104468. 802b08a: f1c6 0620 rsb r6, r6, #32
  104469. 802b08e: f853 0c04 ldr.w r0, [r3, #-4]
  104470. 802b092: f000 f9cb bl 802b42c <__hi0bits>
  104471. 802b096: 42b0 cmp r0, r6
  104472. 802b098: dbe7 blt.n 802b06a <__gethex+0x3ea>
  104473. 802b09a: e7f0 b.n 802b07e <__gethex+0x3fe>
  104474. 802b09c: 08030f1e .word 0x08030f1e
  104475. 0802b0a0 <L_shift>:
  104476. 802b0a0: f1c2 0208 rsb r2, r2, #8
  104477. 802b0a4: 0092 lsls r2, r2, #2
  104478. 802b0a6: b570 push {r4, r5, r6, lr}
  104479. 802b0a8: f1c2 0620 rsb r6, r2, #32
  104480. 802b0ac: 6843 ldr r3, [r0, #4]
  104481. 802b0ae: 6804 ldr r4, [r0, #0]
  104482. 802b0b0: fa03 f506 lsl.w r5, r3, r6
  104483. 802b0b4: 432c orrs r4, r5
  104484. 802b0b6: 40d3 lsrs r3, r2
  104485. 802b0b8: 6004 str r4, [r0, #0]
  104486. 802b0ba: f840 3f04 str.w r3, [r0, #4]!
  104487. 802b0be: 4288 cmp r0, r1
  104488. 802b0c0: d3f4 bcc.n 802b0ac <L_shift+0xc>
  104489. 802b0c2: bd70 pop {r4, r5, r6, pc}
  104490. 0802b0c4 <__match>:
  104491. 802b0c4: b530 push {r4, r5, lr}
  104492. 802b0c6: 6803 ldr r3, [r0, #0]
  104493. 802b0c8: 3301 adds r3, #1
  104494. 802b0ca: f811 4b01 ldrb.w r4, [r1], #1
  104495. 802b0ce: b914 cbnz r4, 802b0d6 <__match+0x12>
  104496. 802b0d0: 6003 str r3, [r0, #0]
  104497. 802b0d2: 2001 movs r0, #1
  104498. 802b0d4: bd30 pop {r4, r5, pc}
  104499. 802b0d6: f813 2b01 ldrb.w r2, [r3], #1
  104500. 802b0da: f1a2 0541 sub.w r5, r2, #65 @ 0x41
  104501. 802b0de: 2d19 cmp r5, #25
  104502. 802b0e0: bf98 it ls
  104503. 802b0e2: 3220 addls r2, #32
  104504. 802b0e4: 42a2 cmp r2, r4
  104505. 802b0e6: d0f0 beq.n 802b0ca <__match+0x6>
  104506. 802b0e8: 2000 movs r0, #0
  104507. 802b0ea: e7f3 b.n 802b0d4 <__match+0x10>
  104508. 0802b0ec <__hexnan>:
  104509. 802b0ec: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104510. 802b0f0: 680b ldr r3, [r1, #0]
  104511. 802b0f2: 6801 ldr r1, [r0, #0]
  104512. 802b0f4: 115e asrs r6, r3, #5
  104513. 802b0f6: eb02 0686 add.w r6, r2, r6, lsl #2
  104514. 802b0fa: f013 031f ands.w r3, r3, #31
  104515. 802b0fe: b087 sub sp, #28
  104516. 802b100: bf18 it ne
  104517. 802b102: 3604 addne r6, #4
  104518. 802b104: 2500 movs r5, #0
  104519. 802b106: 1f37 subs r7, r6, #4
  104520. 802b108: 4682 mov sl, r0
  104521. 802b10a: 4690 mov r8, r2
  104522. 802b10c: 9301 str r3, [sp, #4]
  104523. 802b10e: f846 5c04 str.w r5, [r6, #-4]
  104524. 802b112: 46b9 mov r9, r7
  104525. 802b114: 463c mov r4, r7
  104526. 802b116: 9502 str r5, [sp, #8]
  104527. 802b118: 46ab mov fp, r5
  104528. 802b11a: 784a ldrb r2, [r1, #1]
  104529. 802b11c: 1c4b adds r3, r1, #1
  104530. 802b11e: 9303 str r3, [sp, #12]
  104531. 802b120: b342 cbz r2, 802b174 <__hexnan+0x88>
  104532. 802b122: 4610 mov r0, r2
  104533. 802b124: 9105 str r1, [sp, #20]
  104534. 802b126: 9204 str r2, [sp, #16]
  104535. 802b128: f7ff fd94 bl 802ac54 <__hexdig_fun>
  104536. 802b12c: 2800 cmp r0, #0
  104537. 802b12e: d151 bne.n 802b1d4 <__hexnan+0xe8>
  104538. 802b130: 9a04 ldr r2, [sp, #16]
  104539. 802b132: 9905 ldr r1, [sp, #20]
  104540. 802b134: 2a20 cmp r2, #32
  104541. 802b136: d818 bhi.n 802b16a <__hexnan+0x7e>
  104542. 802b138: 9b02 ldr r3, [sp, #8]
  104543. 802b13a: 459b cmp fp, r3
  104544. 802b13c: dd13 ble.n 802b166 <__hexnan+0x7a>
  104545. 802b13e: 454c cmp r4, r9
  104546. 802b140: d206 bcs.n 802b150 <__hexnan+0x64>
  104547. 802b142: 2d07 cmp r5, #7
  104548. 802b144: dc04 bgt.n 802b150 <__hexnan+0x64>
  104549. 802b146: 462a mov r2, r5
  104550. 802b148: 4649 mov r1, r9
  104551. 802b14a: 4620 mov r0, r4
  104552. 802b14c: f7ff ffa8 bl 802b0a0 <L_shift>
  104553. 802b150: 4544 cmp r4, r8
  104554. 802b152: d952 bls.n 802b1fa <__hexnan+0x10e>
  104555. 802b154: 2300 movs r3, #0
  104556. 802b156: f1a4 0904 sub.w r9, r4, #4
  104557. 802b15a: f844 3c04 str.w r3, [r4, #-4]
  104558. 802b15e: f8cd b008 str.w fp, [sp, #8]
  104559. 802b162: 464c mov r4, r9
  104560. 802b164: 461d mov r5, r3
  104561. 802b166: 9903 ldr r1, [sp, #12]
  104562. 802b168: e7d7 b.n 802b11a <__hexnan+0x2e>
  104563. 802b16a: 2a29 cmp r2, #41 @ 0x29
  104564. 802b16c: d157 bne.n 802b21e <__hexnan+0x132>
  104565. 802b16e: 3102 adds r1, #2
  104566. 802b170: f8ca 1000 str.w r1, [sl]
  104567. 802b174: f1bb 0f00 cmp.w fp, #0
  104568. 802b178: d051 beq.n 802b21e <__hexnan+0x132>
  104569. 802b17a: 454c cmp r4, r9
  104570. 802b17c: d206 bcs.n 802b18c <__hexnan+0xa0>
  104571. 802b17e: 2d07 cmp r5, #7
  104572. 802b180: dc04 bgt.n 802b18c <__hexnan+0xa0>
  104573. 802b182: 462a mov r2, r5
  104574. 802b184: 4649 mov r1, r9
  104575. 802b186: 4620 mov r0, r4
  104576. 802b188: f7ff ff8a bl 802b0a0 <L_shift>
  104577. 802b18c: 4544 cmp r4, r8
  104578. 802b18e: d936 bls.n 802b1fe <__hexnan+0x112>
  104579. 802b190: f1a8 0204 sub.w r2, r8, #4
  104580. 802b194: 4623 mov r3, r4
  104581. 802b196: f853 1b04 ldr.w r1, [r3], #4
  104582. 802b19a: f842 1f04 str.w r1, [r2, #4]!
  104583. 802b19e: 429f cmp r7, r3
  104584. 802b1a0: d2f9 bcs.n 802b196 <__hexnan+0xaa>
  104585. 802b1a2: 1b3b subs r3, r7, r4
  104586. 802b1a4: f023 0303 bic.w r3, r3, #3
  104587. 802b1a8: 3304 adds r3, #4
  104588. 802b1aa: 3401 adds r4, #1
  104589. 802b1ac: 3e03 subs r6, #3
  104590. 802b1ae: 42b4 cmp r4, r6
  104591. 802b1b0: bf88 it hi
  104592. 802b1b2: 2304 movhi r3, #4
  104593. 802b1b4: 4443 add r3, r8
  104594. 802b1b6: 2200 movs r2, #0
  104595. 802b1b8: f843 2b04 str.w r2, [r3], #4
  104596. 802b1bc: 429f cmp r7, r3
  104597. 802b1be: d2fb bcs.n 802b1b8 <__hexnan+0xcc>
  104598. 802b1c0: 683b ldr r3, [r7, #0]
  104599. 802b1c2: b91b cbnz r3, 802b1cc <__hexnan+0xe0>
  104600. 802b1c4: 4547 cmp r7, r8
  104601. 802b1c6: d128 bne.n 802b21a <__hexnan+0x12e>
  104602. 802b1c8: 2301 movs r3, #1
  104603. 802b1ca: 603b str r3, [r7, #0]
  104604. 802b1cc: 2005 movs r0, #5
  104605. 802b1ce: b007 add sp, #28
  104606. 802b1d0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104607. 802b1d4: 3501 adds r5, #1
  104608. 802b1d6: 2d08 cmp r5, #8
  104609. 802b1d8: f10b 0b01 add.w fp, fp, #1
  104610. 802b1dc: dd06 ble.n 802b1ec <__hexnan+0x100>
  104611. 802b1de: 4544 cmp r4, r8
  104612. 802b1e0: d9c1 bls.n 802b166 <__hexnan+0x7a>
  104613. 802b1e2: 2300 movs r3, #0
  104614. 802b1e4: f844 3c04 str.w r3, [r4, #-4]
  104615. 802b1e8: 2501 movs r5, #1
  104616. 802b1ea: 3c04 subs r4, #4
  104617. 802b1ec: 6822 ldr r2, [r4, #0]
  104618. 802b1ee: f000 000f and.w r0, r0, #15
  104619. 802b1f2: ea40 1002 orr.w r0, r0, r2, lsl #4
  104620. 802b1f6: 6020 str r0, [r4, #0]
  104621. 802b1f8: e7b5 b.n 802b166 <__hexnan+0x7a>
  104622. 802b1fa: 2508 movs r5, #8
  104623. 802b1fc: e7b3 b.n 802b166 <__hexnan+0x7a>
  104624. 802b1fe: 9b01 ldr r3, [sp, #4]
  104625. 802b200: 2b00 cmp r3, #0
  104626. 802b202: d0dd beq.n 802b1c0 <__hexnan+0xd4>
  104627. 802b204: f1c3 0320 rsb r3, r3, #32
  104628. 802b208: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  104629. 802b20c: 40da lsrs r2, r3
  104630. 802b20e: f856 3c04 ldr.w r3, [r6, #-4]
  104631. 802b212: 4013 ands r3, r2
  104632. 802b214: f846 3c04 str.w r3, [r6, #-4]
  104633. 802b218: e7d2 b.n 802b1c0 <__hexnan+0xd4>
  104634. 802b21a: 3f04 subs r7, #4
  104635. 802b21c: e7d0 b.n 802b1c0 <__hexnan+0xd4>
  104636. 802b21e: 2004 movs r0, #4
  104637. 802b220: e7d5 b.n 802b1ce <__hexnan+0xe2>
  104638. 0802b222 <__ascii_mbtowc>:
  104639. 802b222: b082 sub sp, #8
  104640. 802b224: b901 cbnz r1, 802b228 <__ascii_mbtowc+0x6>
  104641. 802b226: a901 add r1, sp, #4
  104642. 802b228: b142 cbz r2, 802b23c <__ascii_mbtowc+0x1a>
  104643. 802b22a: b14b cbz r3, 802b240 <__ascii_mbtowc+0x1e>
  104644. 802b22c: 7813 ldrb r3, [r2, #0]
  104645. 802b22e: 600b str r3, [r1, #0]
  104646. 802b230: 7812 ldrb r2, [r2, #0]
  104647. 802b232: 1e10 subs r0, r2, #0
  104648. 802b234: bf18 it ne
  104649. 802b236: 2001 movne r0, #1
  104650. 802b238: b002 add sp, #8
  104651. 802b23a: 4770 bx lr
  104652. 802b23c: 4610 mov r0, r2
  104653. 802b23e: e7fb b.n 802b238 <__ascii_mbtowc+0x16>
  104654. 802b240: f06f 0001 mvn.w r0, #1
  104655. 802b244: e7f8 b.n 802b238 <__ascii_mbtowc+0x16>
  104656. ...
  104657. 0802b248 <_Balloc>:
  104658. 802b248: b570 push {r4, r5, r6, lr}
  104659. 802b24a: 69c6 ldr r6, [r0, #28]
  104660. 802b24c: 4604 mov r4, r0
  104661. 802b24e: 460d mov r5, r1
  104662. 802b250: b976 cbnz r6, 802b270 <_Balloc+0x28>
  104663. 802b252: 2010 movs r0, #16
  104664. 802b254: f7fc ffda bl 802820c <malloc>
  104665. 802b258: 4602 mov r2, r0
  104666. 802b25a: 61e0 str r0, [r4, #28]
  104667. 802b25c: b920 cbnz r0, 802b268 <_Balloc+0x20>
  104668. 802b25e: 4b18 ldr r3, [pc, #96] @ (802b2c0 <_Balloc+0x78>)
  104669. 802b260: 4818 ldr r0, [pc, #96] @ (802b2c4 <_Balloc+0x7c>)
  104670. 802b262: 216b movs r1, #107 @ 0x6b
  104671. 802b264: f7fe fe5c bl 8029f20 <__assert_func>
  104672. 802b268: e9c0 6601 strd r6, r6, [r0, #4]
  104673. 802b26c: 6006 str r6, [r0, #0]
  104674. 802b26e: 60c6 str r6, [r0, #12]
  104675. 802b270: 69e6 ldr r6, [r4, #28]
  104676. 802b272: 68f3 ldr r3, [r6, #12]
  104677. 802b274: b183 cbz r3, 802b298 <_Balloc+0x50>
  104678. 802b276: 69e3 ldr r3, [r4, #28]
  104679. 802b278: 68db ldr r3, [r3, #12]
  104680. 802b27a: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  104681. 802b27e: b9b8 cbnz r0, 802b2b0 <_Balloc+0x68>
  104682. 802b280: 2101 movs r1, #1
  104683. 802b282: fa01 f605 lsl.w r6, r1, r5
  104684. 802b286: 1d72 adds r2, r6, #5
  104685. 802b288: 0092 lsls r2, r2, #2
  104686. 802b28a: 4620 mov r0, r4
  104687. 802b28c: f001 f883 bl 802c396 <_calloc_r>
  104688. 802b290: b160 cbz r0, 802b2ac <_Balloc+0x64>
  104689. 802b292: e9c0 5601 strd r5, r6, [r0, #4]
  104690. 802b296: e00e b.n 802b2b6 <_Balloc+0x6e>
  104691. 802b298: 2221 movs r2, #33 @ 0x21
  104692. 802b29a: 2104 movs r1, #4
  104693. 802b29c: 4620 mov r0, r4
  104694. 802b29e: f001 f87a bl 802c396 <_calloc_r>
  104695. 802b2a2: 69e3 ldr r3, [r4, #28]
  104696. 802b2a4: 60f0 str r0, [r6, #12]
  104697. 802b2a6: 68db ldr r3, [r3, #12]
  104698. 802b2a8: 2b00 cmp r3, #0
  104699. 802b2aa: d1e4 bne.n 802b276 <_Balloc+0x2e>
  104700. 802b2ac: 2000 movs r0, #0
  104701. 802b2ae: bd70 pop {r4, r5, r6, pc}
  104702. 802b2b0: 6802 ldr r2, [r0, #0]
  104703. 802b2b2: f843 2025 str.w r2, [r3, r5, lsl #2]
  104704. 802b2b6: 2300 movs r3, #0
  104705. 802b2b8: e9c0 3303 strd r3, r3, [r0, #12]
  104706. 802b2bc: e7f7 b.n 802b2ae <_Balloc+0x66>
  104707. 802b2be: bf00 nop
  104708. 802b2c0: 08030c7e .word 0x08030c7e
  104709. 802b2c4: 08030f8f .word 0x08030f8f
  104710. 0802b2c8 <_Bfree>:
  104711. 802b2c8: b570 push {r4, r5, r6, lr}
  104712. 802b2ca: 69c6 ldr r6, [r0, #28]
  104713. 802b2cc: 4605 mov r5, r0
  104714. 802b2ce: 460c mov r4, r1
  104715. 802b2d0: b976 cbnz r6, 802b2f0 <_Bfree+0x28>
  104716. 802b2d2: 2010 movs r0, #16
  104717. 802b2d4: f7fc ff9a bl 802820c <malloc>
  104718. 802b2d8: 4602 mov r2, r0
  104719. 802b2da: 61e8 str r0, [r5, #28]
  104720. 802b2dc: b920 cbnz r0, 802b2e8 <_Bfree+0x20>
  104721. 802b2de: 4b09 ldr r3, [pc, #36] @ (802b304 <_Bfree+0x3c>)
  104722. 802b2e0: 4809 ldr r0, [pc, #36] @ (802b308 <_Bfree+0x40>)
  104723. 802b2e2: 218f movs r1, #143 @ 0x8f
  104724. 802b2e4: f7fe fe1c bl 8029f20 <__assert_func>
  104725. 802b2e8: e9c0 6601 strd r6, r6, [r0, #4]
  104726. 802b2ec: 6006 str r6, [r0, #0]
  104727. 802b2ee: 60c6 str r6, [r0, #12]
  104728. 802b2f0: b13c cbz r4, 802b302 <_Bfree+0x3a>
  104729. 802b2f2: 69eb ldr r3, [r5, #28]
  104730. 802b2f4: 6862 ldr r2, [r4, #4]
  104731. 802b2f6: 68db ldr r3, [r3, #12]
  104732. 802b2f8: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  104733. 802b2fc: 6021 str r1, [r4, #0]
  104734. 802b2fe: f843 4022 str.w r4, [r3, r2, lsl #2]
  104735. 802b302: bd70 pop {r4, r5, r6, pc}
  104736. 802b304: 08030c7e .word 0x08030c7e
  104737. 802b308: 08030f8f .word 0x08030f8f
  104738. 0802b30c <__multadd>:
  104739. 802b30c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  104740. 802b310: 690d ldr r5, [r1, #16]
  104741. 802b312: 4607 mov r7, r0
  104742. 802b314: 460c mov r4, r1
  104743. 802b316: 461e mov r6, r3
  104744. 802b318: f101 0c14 add.w ip, r1, #20
  104745. 802b31c: 2000 movs r0, #0
  104746. 802b31e: f8dc 3000 ldr.w r3, [ip]
  104747. 802b322: b299 uxth r1, r3
  104748. 802b324: fb02 6101 mla r1, r2, r1, r6
  104749. 802b328: 0c1e lsrs r6, r3, #16
  104750. 802b32a: 0c0b lsrs r3, r1, #16
  104751. 802b32c: fb02 3306 mla r3, r2, r6, r3
  104752. 802b330: b289 uxth r1, r1
  104753. 802b332: 3001 adds r0, #1
  104754. 802b334: eb01 4103 add.w r1, r1, r3, lsl #16
  104755. 802b338: 4285 cmp r5, r0
  104756. 802b33a: f84c 1b04 str.w r1, [ip], #4
  104757. 802b33e: ea4f 4613 mov.w r6, r3, lsr #16
  104758. 802b342: dcec bgt.n 802b31e <__multadd+0x12>
  104759. 802b344: b30e cbz r6, 802b38a <__multadd+0x7e>
  104760. 802b346: 68a3 ldr r3, [r4, #8]
  104761. 802b348: 42ab cmp r3, r5
  104762. 802b34a: dc19 bgt.n 802b380 <__multadd+0x74>
  104763. 802b34c: 6861 ldr r1, [r4, #4]
  104764. 802b34e: 4638 mov r0, r7
  104765. 802b350: 3101 adds r1, #1
  104766. 802b352: f7ff ff79 bl 802b248 <_Balloc>
  104767. 802b356: 4680 mov r8, r0
  104768. 802b358: b928 cbnz r0, 802b366 <__multadd+0x5a>
  104769. 802b35a: 4602 mov r2, r0
  104770. 802b35c: 4b0c ldr r3, [pc, #48] @ (802b390 <__multadd+0x84>)
  104771. 802b35e: 480d ldr r0, [pc, #52] @ (802b394 <__multadd+0x88>)
  104772. 802b360: 21ba movs r1, #186 @ 0xba
  104773. 802b362: f7fe fddd bl 8029f20 <__assert_func>
  104774. 802b366: 6922 ldr r2, [r4, #16]
  104775. 802b368: 3202 adds r2, #2
  104776. 802b36a: f104 010c add.w r1, r4, #12
  104777. 802b36e: 0092 lsls r2, r2, #2
  104778. 802b370: 300c adds r0, #12
  104779. 802b372: f7fe fdbc bl 8029eee <memcpy>
  104780. 802b376: 4621 mov r1, r4
  104781. 802b378: 4638 mov r0, r7
  104782. 802b37a: f7ff ffa5 bl 802b2c8 <_Bfree>
  104783. 802b37e: 4644 mov r4, r8
  104784. 802b380: eb04 0385 add.w r3, r4, r5, lsl #2
  104785. 802b384: 3501 adds r5, #1
  104786. 802b386: 615e str r6, [r3, #20]
  104787. 802b388: 6125 str r5, [r4, #16]
  104788. 802b38a: 4620 mov r0, r4
  104789. 802b38c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  104790. 802b390: 08030f1e .word 0x08030f1e
  104791. 802b394: 08030f8f .word 0x08030f8f
  104792. 0802b398 <__s2b>:
  104793. 802b398: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  104794. 802b39c: 460c mov r4, r1
  104795. 802b39e: 4615 mov r5, r2
  104796. 802b3a0: 461f mov r7, r3
  104797. 802b3a2: 2209 movs r2, #9
  104798. 802b3a4: 3308 adds r3, #8
  104799. 802b3a6: 4606 mov r6, r0
  104800. 802b3a8: fb93 f3f2 sdiv r3, r3, r2
  104801. 802b3ac: 2100 movs r1, #0
  104802. 802b3ae: 2201 movs r2, #1
  104803. 802b3b0: 429a cmp r2, r3
  104804. 802b3b2: db09 blt.n 802b3c8 <__s2b+0x30>
  104805. 802b3b4: 4630 mov r0, r6
  104806. 802b3b6: f7ff ff47 bl 802b248 <_Balloc>
  104807. 802b3ba: b940 cbnz r0, 802b3ce <__s2b+0x36>
  104808. 802b3bc: 4602 mov r2, r0
  104809. 802b3be: 4b19 ldr r3, [pc, #100] @ (802b424 <__s2b+0x8c>)
  104810. 802b3c0: 4819 ldr r0, [pc, #100] @ (802b428 <__s2b+0x90>)
  104811. 802b3c2: 21d3 movs r1, #211 @ 0xd3
  104812. 802b3c4: f7fe fdac bl 8029f20 <__assert_func>
  104813. 802b3c8: 0052 lsls r2, r2, #1
  104814. 802b3ca: 3101 adds r1, #1
  104815. 802b3cc: e7f0 b.n 802b3b0 <__s2b+0x18>
  104816. 802b3ce: 9b08 ldr r3, [sp, #32]
  104817. 802b3d0: 6143 str r3, [r0, #20]
  104818. 802b3d2: 2d09 cmp r5, #9
  104819. 802b3d4: f04f 0301 mov.w r3, #1
  104820. 802b3d8: 6103 str r3, [r0, #16]
  104821. 802b3da: dd16 ble.n 802b40a <__s2b+0x72>
  104822. 802b3dc: f104 0909 add.w r9, r4, #9
  104823. 802b3e0: 46c8 mov r8, r9
  104824. 802b3e2: 442c add r4, r5
  104825. 802b3e4: f818 3b01 ldrb.w r3, [r8], #1
  104826. 802b3e8: 4601 mov r1, r0
  104827. 802b3ea: 3b30 subs r3, #48 @ 0x30
  104828. 802b3ec: 220a movs r2, #10
  104829. 802b3ee: 4630 mov r0, r6
  104830. 802b3f0: f7ff ff8c bl 802b30c <__multadd>
  104831. 802b3f4: 45a0 cmp r8, r4
  104832. 802b3f6: d1f5 bne.n 802b3e4 <__s2b+0x4c>
  104833. 802b3f8: f1a5 0408 sub.w r4, r5, #8
  104834. 802b3fc: 444c add r4, r9
  104835. 802b3fe: 1b2d subs r5, r5, r4
  104836. 802b400: 1963 adds r3, r4, r5
  104837. 802b402: 42bb cmp r3, r7
  104838. 802b404: db04 blt.n 802b410 <__s2b+0x78>
  104839. 802b406: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  104840. 802b40a: 340a adds r4, #10
  104841. 802b40c: 2509 movs r5, #9
  104842. 802b40e: e7f6 b.n 802b3fe <__s2b+0x66>
  104843. 802b410: f814 3b01 ldrb.w r3, [r4], #1
  104844. 802b414: 4601 mov r1, r0
  104845. 802b416: 3b30 subs r3, #48 @ 0x30
  104846. 802b418: 220a movs r2, #10
  104847. 802b41a: 4630 mov r0, r6
  104848. 802b41c: f7ff ff76 bl 802b30c <__multadd>
  104849. 802b420: e7ee b.n 802b400 <__s2b+0x68>
  104850. 802b422: bf00 nop
  104851. 802b424: 08030f1e .word 0x08030f1e
  104852. 802b428: 08030f8f .word 0x08030f8f
  104853. 0802b42c <__hi0bits>:
  104854. 802b42c: f5b0 3f80 cmp.w r0, #65536 @ 0x10000
  104855. 802b430: 4603 mov r3, r0
  104856. 802b432: bf36 itet cc
  104857. 802b434: 0403 lslcc r3, r0, #16
  104858. 802b436: 2000 movcs r0, #0
  104859. 802b438: 2010 movcc r0, #16
  104860. 802b43a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  104861. 802b43e: bf3c itt cc
  104862. 802b440: 021b lslcc r3, r3, #8
  104863. 802b442: 3008 addcc r0, #8
  104864. 802b444: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  104865. 802b448: bf3c itt cc
  104866. 802b44a: 011b lslcc r3, r3, #4
  104867. 802b44c: 3004 addcc r0, #4
  104868. 802b44e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  104869. 802b452: bf3c itt cc
  104870. 802b454: 009b lslcc r3, r3, #2
  104871. 802b456: 3002 addcc r0, #2
  104872. 802b458: 2b00 cmp r3, #0
  104873. 802b45a: db05 blt.n 802b468 <__hi0bits+0x3c>
  104874. 802b45c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000
  104875. 802b460: f100 0001 add.w r0, r0, #1
  104876. 802b464: bf08 it eq
  104877. 802b466: 2020 moveq r0, #32
  104878. 802b468: 4770 bx lr
  104879. 0802b46a <__lo0bits>:
  104880. 802b46a: 6803 ldr r3, [r0, #0]
  104881. 802b46c: 4602 mov r2, r0
  104882. 802b46e: f013 0007 ands.w r0, r3, #7
  104883. 802b472: d00b beq.n 802b48c <__lo0bits+0x22>
  104884. 802b474: 07d9 lsls r1, r3, #31
  104885. 802b476: d421 bmi.n 802b4bc <__lo0bits+0x52>
  104886. 802b478: 0798 lsls r0, r3, #30
  104887. 802b47a: bf49 itett mi
  104888. 802b47c: 085b lsrmi r3, r3, #1
  104889. 802b47e: 089b lsrpl r3, r3, #2
  104890. 802b480: 2001 movmi r0, #1
  104891. 802b482: 6013 strmi r3, [r2, #0]
  104892. 802b484: bf5c itt pl
  104893. 802b486: 6013 strpl r3, [r2, #0]
  104894. 802b488: 2002 movpl r0, #2
  104895. 802b48a: 4770 bx lr
  104896. 802b48c: b299 uxth r1, r3
  104897. 802b48e: b909 cbnz r1, 802b494 <__lo0bits+0x2a>
  104898. 802b490: 0c1b lsrs r3, r3, #16
  104899. 802b492: 2010 movs r0, #16
  104900. 802b494: b2d9 uxtb r1, r3
  104901. 802b496: b909 cbnz r1, 802b49c <__lo0bits+0x32>
  104902. 802b498: 3008 adds r0, #8
  104903. 802b49a: 0a1b lsrs r3, r3, #8
  104904. 802b49c: 0719 lsls r1, r3, #28
  104905. 802b49e: bf04 itt eq
  104906. 802b4a0: 091b lsreq r3, r3, #4
  104907. 802b4a2: 3004 addeq r0, #4
  104908. 802b4a4: 0799 lsls r1, r3, #30
  104909. 802b4a6: bf04 itt eq
  104910. 802b4a8: 089b lsreq r3, r3, #2
  104911. 802b4aa: 3002 addeq r0, #2
  104912. 802b4ac: 07d9 lsls r1, r3, #31
  104913. 802b4ae: d403 bmi.n 802b4b8 <__lo0bits+0x4e>
  104914. 802b4b0: 085b lsrs r3, r3, #1
  104915. 802b4b2: f100 0001 add.w r0, r0, #1
  104916. 802b4b6: d003 beq.n 802b4c0 <__lo0bits+0x56>
  104917. 802b4b8: 6013 str r3, [r2, #0]
  104918. 802b4ba: 4770 bx lr
  104919. 802b4bc: 2000 movs r0, #0
  104920. 802b4be: 4770 bx lr
  104921. 802b4c0: 2020 movs r0, #32
  104922. 802b4c2: 4770 bx lr
  104923. 0802b4c4 <__i2b>:
  104924. 802b4c4: b510 push {r4, lr}
  104925. 802b4c6: 460c mov r4, r1
  104926. 802b4c8: 2101 movs r1, #1
  104927. 802b4ca: f7ff febd bl 802b248 <_Balloc>
  104928. 802b4ce: 4602 mov r2, r0
  104929. 802b4d0: b928 cbnz r0, 802b4de <__i2b+0x1a>
  104930. 802b4d2: 4b05 ldr r3, [pc, #20] @ (802b4e8 <__i2b+0x24>)
  104931. 802b4d4: 4805 ldr r0, [pc, #20] @ (802b4ec <__i2b+0x28>)
  104932. 802b4d6: f240 1145 movw r1, #325 @ 0x145
  104933. 802b4da: f7fe fd21 bl 8029f20 <__assert_func>
  104934. 802b4de: 2301 movs r3, #1
  104935. 802b4e0: 6144 str r4, [r0, #20]
  104936. 802b4e2: 6103 str r3, [r0, #16]
  104937. 802b4e4: bd10 pop {r4, pc}
  104938. 802b4e6: bf00 nop
  104939. 802b4e8: 08030f1e .word 0x08030f1e
  104940. 802b4ec: 08030f8f .word 0x08030f8f
  104941. 0802b4f0 <__multiply>:
  104942. 802b4f0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104943. 802b4f4: 4614 mov r4, r2
  104944. 802b4f6: 690a ldr r2, [r1, #16]
  104945. 802b4f8: 6923 ldr r3, [r4, #16]
  104946. 802b4fa: 429a cmp r2, r3
  104947. 802b4fc: bfa8 it ge
  104948. 802b4fe: 4623 movge r3, r4
  104949. 802b500: 460f mov r7, r1
  104950. 802b502: bfa4 itt ge
  104951. 802b504: 460c movge r4, r1
  104952. 802b506: 461f movge r7, r3
  104953. 802b508: f8d4 a010 ldr.w sl, [r4, #16]
  104954. 802b50c: f8d7 9010 ldr.w r9, [r7, #16]
  104955. 802b510: 68a3 ldr r3, [r4, #8]
  104956. 802b512: 6861 ldr r1, [r4, #4]
  104957. 802b514: eb0a 0609 add.w r6, sl, r9
  104958. 802b518: 42b3 cmp r3, r6
  104959. 802b51a: b085 sub sp, #20
  104960. 802b51c: bfb8 it lt
  104961. 802b51e: 3101 addlt r1, #1
  104962. 802b520: f7ff fe92 bl 802b248 <_Balloc>
  104963. 802b524: b930 cbnz r0, 802b534 <__multiply+0x44>
  104964. 802b526: 4602 mov r2, r0
  104965. 802b528: 4b44 ldr r3, [pc, #272] @ (802b63c <__multiply+0x14c>)
  104966. 802b52a: 4845 ldr r0, [pc, #276] @ (802b640 <__multiply+0x150>)
  104967. 802b52c: f44f 71b1 mov.w r1, #354 @ 0x162
  104968. 802b530: f7fe fcf6 bl 8029f20 <__assert_func>
  104969. 802b534: f100 0514 add.w r5, r0, #20
  104970. 802b538: eb05 0886 add.w r8, r5, r6, lsl #2
  104971. 802b53c: 462b mov r3, r5
  104972. 802b53e: 2200 movs r2, #0
  104973. 802b540: 4543 cmp r3, r8
  104974. 802b542: d321 bcc.n 802b588 <__multiply+0x98>
  104975. 802b544: f107 0114 add.w r1, r7, #20
  104976. 802b548: f104 0214 add.w r2, r4, #20
  104977. 802b54c: eb02 028a add.w r2, r2, sl, lsl #2
  104978. 802b550: eb01 0389 add.w r3, r1, r9, lsl #2
  104979. 802b554: 9302 str r3, [sp, #8]
  104980. 802b556: 1b13 subs r3, r2, r4
  104981. 802b558: 3b15 subs r3, #21
  104982. 802b55a: f023 0303 bic.w r3, r3, #3
  104983. 802b55e: 3304 adds r3, #4
  104984. 802b560: f104 0715 add.w r7, r4, #21
  104985. 802b564: 42ba cmp r2, r7
  104986. 802b566: bf38 it cc
  104987. 802b568: 2304 movcc r3, #4
  104988. 802b56a: 9301 str r3, [sp, #4]
  104989. 802b56c: 9b02 ldr r3, [sp, #8]
  104990. 802b56e: 9103 str r1, [sp, #12]
  104991. 802b570: 428b cmp r3, r1
  104992. 802b572: d80c bhi.n 802b58e <__multiply+0x9e>
  104993. 802b574: 2e00 cmp r6, #0
  104994. 802b576: dd03 ble.n 802b580 <__multiply+0x90>
  104995. 802b578: f858 3d04 ldr.w r3, [r8, #-4]!
  104996. 802b57c: 2b00 cmp r3, #0
  104997. 802b57e: d05b beq.n 802b638 <__multiply+0x148>
  104998. 802b580: 6106 str r6, [r0, #16]
  104999. 802b582: b005 add sp, #20
  105000. 802b584: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105001. 802b588: f843 2b04 str.w r2, [r3], #4
  105002. 802b58c: e7d8 b.n 802b540 <__multiply+0x50>
  105003. 802b58e: f8b1 a000 ldrh.w sl, [r1]
  105004. 802b592: f1ba 0f00 cmp.w sl, #0
  105005. 802b596: d024 beq.n 802b5e2 <__multiply+0xf2>
  105006. 802b598: f104 0e14 add.w lr, r4, #20
  105007. 802b59c: 46a9 mov r9, r5
  105008. 802b59e: f04f 0c00 mov.w ip, #0
  105009. 802b5a2: f85e 7b04 ldr.w r7, [lr], #4
  105010. 802b5a6: f8d9 3000 ldr.w r3, [r9]
  105011. 802b5aa: fa1f fb87 uxth.w fp, r7
  105012. 802b5ae: b29b uxth r3, r3
  105013. 802b5b0: fb0a 330b mla r3, sl, fp, r3
  105014. 802b5b4: ea4f 4b17 mov.w fp, r7, lsr #16
  105015. 802b5b8: f8d9 7000 ldr.w r7, [r9]
  105016. 802b5bc: 4463 add r3, ip
  105017. 802b5be: ea4f 4c17 mov.w ip, r7, lsr #16
  105018. 802b5c2: fb0a c70b mla r7, sl, fp, ip
  105019. 802b5c6: eb07 4713 add.w r7, r7, r3, lsr #16
  105020. 802b5ca: b29b uxth r3, r3
  105021. 802b5cc: ea43 4307 orr.w r3, r3, r7, lsl #16
  105022. 802b5d0: 4572 cmp r2, lr
  105023. 802b5d2: f849 3b04 str.w r3, [r9], #4
  105024. 802b5d6: ea4f 4c17 mov.w ip, r7, lsr #16
  105025. 802b5da: d8e2 bhi.n 802b5a2 <__multiply+0xb2>
  105026. 802b5dc: 9b01 ldr r3, [sp, #4]
  105027. 802b5de: f845 c003 str.w ip, [r5, r3]
  105028. 802b5e2: 9b03 ldr r3, [sp, #12]
  105029. 802b5e4: f8b3 9002 ldrh.w r9, [r3, #2]
  105030. 802b5e8: 3104 adds r1, #4
  105031. 802b5ea: f1b9 0f00 cmp.w r9, #0
  105032. 802b5ee: d021 beq.n 802b634 <__multiply+0x144>
  105033. 802b5f0: 682b ldr r3, [r5, #0]
  105034. 802b5f2: f104 0c14 add.w ip, r4, #20
  105035. 802b5f6: 46ae mov lr, r5
  105036. 802b5f8: f04f 0a00 mov.w sl, #0
  105037. 802b5fc: f8bc b000 ldrh.w fp, [ip]
  105038. 802b600: f8be 7002 ldrh.w r7, [lr, #2]
  105039. 802b604: fb09 770b mla r7, r9, fp, r7
  105040. 802b608: 4457 add r7, sl
  105041. 802b60a: b29b uxth r3, r3
  105042. 802b60c: ea43 4307 orr.w r3, r3, r7, lsl #16
  105043. 802b610: f84e 3b04 str.w r3, [lr], #4
  105044. 802b614: f85c 3b04 ldr.w r3, [ip], #4
  105045. 802b618: ea4f 4a13 mov.w sl, r3, lsr #16
  105046. 802b61c: f8be 3000 ldrh.w r3, [lr]
  105047. 802b620: fb09 330a mla r3, r9, sl, r3
  105048. 802b624: eb03 4317 add.w r3, r3, r7, lsr #16
  105049. 802b628: 4562 cmp r2, ip
  105050. 802b62a: ea4f 4a13 mov.w sl, r3, lsr #16
  105051. 802b62e: d8e5 bhi.n 802b5fc <__multiply+0x10c>
  105052. 802b630: 9f01 ldr r7, [sp, #4]
  105053. 802b632: 51eb str r3, [r5, r7]
  105054. 802b634: 3504 adds r5, #4
  105055. 802b636: e799 b.n 802b56c <__multiply+0x7c>
  105056. 802b638: 3e01 subs r6, #1
  105057. 802b63a: e79b b.n 802b574 <__multiply+0x84>
  105058. 802b63c: 08030f1e .word 0x08030f1e
  105059. 802b640: 08030f8f .word 0x08030f8f
  105060. 0802b644 <__pow5mult>:
  105061. 802b644: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  105062. 802b648: 4615 mov r5, r2
  105063. 802b64a: f012 0203 ands.w r2, r2, #3
  105064. 802b64e: 4607 mov r7, r0
  105065. 802b650: 460e mov r6, r1
  105066. 802b652: d007 beq.n 802b664 <__pow5mult+0x20>
  105067. 802b654: 4c25 ldr r4, [pc, #148] @ (802b6ec <__pow5mult+0xa8>)
  105068. 802b656: 3a01 subs r2, #1
  105069. 802b658: 2300 movs r3, #0
  105070. 802b65a: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  105071. 802b65e: f7ff fe55 bl 802b30c <__multadd>
  105072. 802b662: 4606 mov r6, r0
  105073. 802b664: 10ad asrs r5, r5, #2
  105074. 802b666: d03d beq.n 802b6e4 <__pow5mult+0xa0>
  105075. 802b668: 69fc ldr r4, [r7, #28]
  105076. 802b66a: b97c cbnz r4, 802b68c <__pow5mult+0x48>
  105077. 802b66c: 2010 movs r0, #16
  105078. 802b66e: f7fc fdcd bl 802820c <malloc>
  105079. 802b672: 4602 mov r2, r0
  105080. 802b674: 61f8 str r0, [r7, #28]
  105081. 802b676: b928 cbnz r0, 802b684 <__pow5mult+0x40>
  105082. 802b678: 4b1d ldr r3, [pc, #116] @ (802b6f0 <__pow5mult+0xac>)
  105083. 802b67a: 481e ldr r0, [pc, #120] @ (802b6f4 <__pow5mult+0xb0>)
  105084. 802b67c: f240 11b3 movw r1, #435 @ 0x1b3
  105085. 802b680: f7fe fc4e bl 8029f20 <__assert_func>
  105086. 802b684: e9c0 4401 strd r4, r4, [r0, #4]
  105087. 802b688: 6004 str r4, [r0, #0]
  105088. 802b68a: 60c4 str r4, [r0, #12]
  105089. 802b68c: f8d7 801c ldr.w r8, [r7, #28]
  105090. 802b690: f8d8 4008 ldr.w r4, [r8, #8]
  105091. 802b694: b94c cbnz r4, 802b6aa <__pow5mult+0x66>
  105092. 802b696: f240 2171 movw r1, #625 @ 0x271
  105093. 802b69a: 4638 mov r0, r7
  105094. 802b69c: f7ff ff12 bl 802b4c4 <__i2b>
  105095. 802b6a0: 2300 movs r3, #0
  105096. 802b6a2: f8c8 0008 str.w r0, [r8, #8]
  105097. 802b6a6: 4604 mov r4, r0
  105098. 802b6a8: 6003 str r3, [r0, #0]
  105099. 802b6aa: f04f 0900 mov.w r9, #0
  105100. 802b6ae: 07eb lsls r3, r5, #31
  105101. 802b6b0: d50a bpl.n 802b6c8 <__pow5mult+0x84>
  105102. 802b6b2: 4631 mov r1, r6
  105103. 802b6b4: 4622 mov r2, r4
  105104. 802b6b6: 4638 mov r0, r7
  105105. 802b6b8: f7ff ff1a bl 802b4f0 <__multiply>
  105106. 802b6bc: 4631 mov r1, r6
  105107. 802b6be: 4680 mov r8, r0
  105108. 802b6c0: 4638 mov r0, r7
  105109. 802b6c2: f7ff fe01 bl 802b2c8 <_Bfree>
  105110. 802b6c6: 4646 mov r6, r8
  105111. 802b6c8: 106d asrs r5, r5, #1
  105112. 802b6ca: d00b beq.n 802b6e4 <__pow5mult+0xa0>
  105113. 802b6cc: 6820 ldr r0, [r4, #0]
  105114. 802b6ce: b938 cbnz r0, 802b6e0 <__pow5mult+0x9c>
  105115. 802b6d0: 4622 mov r2, r4
  105116. 802b6d2: 4621 mov r1, r4
  105117. 802b6d4: 4638 mov r0, r7
  105118. 802b6d6: f7ff ff0b bl 802b4f0 <__multiply>
  105119. 802b6da: 6020 str r0, [r4, #0]
  105120. 802b6dc: f8c0 9000 str.w r9, [r0]
  105121. 802b6e0: 4604 mov r4, r0
  105122. 802b6e2: e7e4 b.n 802b6ae <__pow5mult+0x6a>
  105123. 802b6e4: 4630 mov r0, r6
  105124. 802b6e6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  105125. 802b6ea: bf00 nop
  105126. 802b6ec: 08030fe8 .word 0x08030fe8
  105127. 802b6f0: 08030c7e .word 0x08030c7e
  105128. 802b6f4: 08030f8f .word 0x08030f8f
  105129. 0802b6f8 <__lshift>:
  105130. 802b6f8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  105131. 802b6fc: 460c mov r4, r1
  105132. 802b6fe: 6849 ldr r1, [r1, #4]
  105133. 802b700: 6923 ldr r3, [r4, #16]
  105134. 802b702: eb03 1862 add.w r8, r3, r2, asr #5
  105135. 802b706: 68a3 ldr r3, [r4, #8]
  105136. 802b708: 4607 mov r7, r0
  105137. 802b70a: 4691 mov r9, r2
  105138. 802b70c: ea4f 1a62 mov.w sl, r2, asr #5
  105139. 802b710: f108 0601 add.w r6, r8, #1
  105140. 802b714: 42b3 cmp r3, r6
  105141. 802b716: db0b blt.n 802b730 <__lshift+0x38>
  105142. 802b718: 4638 mov r0, r7
  105143. 802b71a: f7ff fd95 bl 802b248 <_Balloc>
  105144. 802b71e: 4605 mov r5, r0
  105145. 802b720: b948 cbnz r0, 802b736 <__lshift+0x3e>
  105146. 802b722: 4602 mov r2, r0
  105147. 802b724: 4b28 ldr r3, [pc, #160] @ (802b7c8 <__lshift+0xd0>)
  105148. 802b726: 4829 ldr r0, [pc, #164] @ (802b7cc <__lshift+0xd4>)
  105149. 802b728: f44f 71ef mov.w r1, #478 @ 0x1de
  105150. 802b72c: f7fe fbf8 bl 8029f20 <__assert_func>
  105151. 802b730: 3101 adds r1, #1
  105152. 802b732: 005b lsls r3, r3, #1
  105153. 802b734: e7ee b.n 802b714 <__lshift+0x1c>
  105154. 802b736: 2300 movs r3, #0
  105155. 802b738: f100 0114 add.w r1, r0, #20
  105156. 802b73c: f100 0210 add.w r2, r0, #16
  105157. 802b740: 4618 mov r0, r3
  105158. 802b742: 4553 cmp r3, sl
  105159. 802b744: db33 blt.n 802b7ae <__lshift+0xb6>
  105160. 802b746: 6920 ldr r0, [r4, #16]
  105161. 802b748: ea2a 7aea bic.w sl, sl, sl, asr #31
  105162. 802b74c: f104 0314 add.w r3, r4, #20
  105163. 802b750: f019 091f ands.w r9, r9, #31
  105164. 802b754: eb01 018a add.w r1, r1, sl, lsl #2
  105165. 802b758: eb03 0c80 add.w ip, r3, r0, lsl #2
  105166. 802b75c: d02b beq.n 802b7b6 <__lshift+0xbe>
  105167. 802b75e: f1c9 0e20 rsb lr, r9, #32
  105168. 802b762: 468a mov sl, r1
  105169. 802b764: 2200 movs r2, #0
  105170. 802b766: 6818 ldr r0, [r3, #0]
  105171. 802b768: fa00 f009 lsl.w r0, r0, r9
  105172. 802b76c: 4310 orrs r0, r2
  105173. 802b76e: f84a 0b04 str.w r0, [sl], #4
  105174. 802b772: f853 2b04 ldr.w r2, [r3], #4
  105175. 802b776: 459c cmp ip, r3
  105176. 802b778: fa22 f20e lsr.w r2, r2, lr
  105177. 802b77c: d8f3 bhi.n 802b766 <__lshift+0x6e>
  105178. 802b77e: ebac 0304 sub.w r3, ip, r4
  105179. 802b782: 3b15 subs r3, #21
  105180. 802b784: f023 0303 bic.w r3, r3, #3
  105181. 802b788: 3304 adds r3, #4
  105182. 802b78a: f104 0015 add.w r0, r4, #21
  105183. 802b78e: 4584 cmp ip, r0
  105184. 802b790: bf38 it cc
  105185. 802b792: 2304 movcc r3, #4
  105186. 802b794: 50ca str r2, [r1, r3]
  105187. 802b796: b10a cbz r2, 802b79c <__lshift+0xa4>
  105188. 802b798: f108 0602 add.w r6, r8, #2
  105189. 802b79c: 3e01 subs r6, #1
  105190. 802b79e: 4638 mov r0, r7
  105191. 802b7a0: 612e str r6, [r5, #16]
  105192. 802b7a2: 4621 mov r1, r4
  105193. 802b7a4: f7ff fd90 bl 802b2c8 <_Bfree>
  105194. 802b7a8: 4628 mov r0, r5
  105195. 802b7aa: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  105196. 802b7ae: f842 0f04 str.w r0, [r2, #4]!
  105197. 802b7b2: 3301 adds r3, #1
  105198. 802b7b4: e7c5 b.n 802b742 <__lshift+0x4a>
  105199. 802b7b6: 3904 subs r1, #4
  105200. 802b7b8: f853 2b04 ldr.w r2, [r3], #4
  105201. 802b7bc: f841 2f04 str.w r2, [r1, #4]!
  105202. 802b7c0: 459c cmp ip, r3
  105203. 802b7c2: d8f9 bhi.n 802b7b8 <__lshift+0xc0>
  105204. 802b7c4: e7ea b.n 802b79c <__lshift+0xa4>
  105205. 802b7c6: bf00 nop
  105206. 802b7c8: 08030f1e .word 0x08030f1e
  105207. 802b7cc: 08030f8f .word 0x08030f8f
  105208. 0802b7d0 <__mcmp>:
  105209. 802b7d0: 690a ldr r2, [r1, #16]
  105210. 802b7d2: 4603 mov r3, r0
  105211. 802b7d4: 6900 ldr r0, [r0, #16]
  105212. 802b7d6: 1a80 subs r0, r0, r2
  105213. 802b7d8: b530 push {r4, r5, lr}
  105214. 802b7da: d10e bne.n 802b7fa <__mcmp+0x2a>
  105215. 802b7dc: 3314 adds r3, #20
  105216. 802b7de: 3114 adds r1, #20
  105217. 802b7e0: eb03 0482 add.w r4, r3, r2, lsl #2
  105218. 802b7e4: eb01 0182 add.w r1, r1, r2, lsl #2
  105219. 802b7e8: f854 5d04 ldr.w r5, [r4, #-4]!
  105220. 802b7ec: f851 2d04 ldr.w r2, [r1, #-4]!
  105221. 802b7f0: 4295 cmp r5, r2
  105222. 802b7f2: d003 beq.n 802b7fc <__mcmp+0x2c>
  105223. 802b7f4: d205 bcs.n 802b802 <__mcmp+0x32>
  105224. 802b7f6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105225. 802b7fa: bd30 pop {r4, r5, pc}
  105226. 802b7fc: 42a3 cmp r3, r4
  105227. 802b7fe: d3f3 bcc.n 802b7e8 <__mcmp+0x18>
  105228. 802b800: e7fb b.n 802b7fa <__mcmp+0x2a>
  105229. 802b802: 2001 movs r0, #1
  105230. 802b804: e7f9 b.n 802b7fa <__mcmp+0x2a>
  105231. ...
  105232. 0802b808 <__mdiff>:
  105233. 802b808: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105234. 802b80c: 4689 mov r9, r1
  105235. 802b80e: 4606 mov r6, r0
  105236. 802b810: 4611 mov r1, r2
  105237. 802b812: 4648 mov r0, r9
  105238. 802b814: 4614 mov r4, r2
  105239. 802b816: f7ff ffdb bl 802b7d0 <__mcmp>
  105240. 802b81a: 1e05 subs r5, r0, #0
  105241. 802b81c: d112 bne.n 802b844 <__mdiff+0x3c>
  105242. 802b81e: 4629 mov r1, r5
  105243. 802b820: 4630 mov r0, r6
  105244. 802b822: f7ff fd11 bl 802b248 <_Balloc>
  105245. 802b826: 4602 mov r2, r0
  105246. 802b828: b928 cbnz r0, 802b836 <__mdiff+0x2e>
  105247. 802b82a: 4b3f ldr r3, [pc, #252] @ (802b928 <__mdiff+0x120>)
  105248. 802b82c: f240 2137 movw r1, #567 @ 0x237
  105249. 802b830: 483e ldr r0, [pc, #248] @ (802b92c <__mdiff+0x124>)
  105250. 802b832: f7fe fb75 bl 8029f20 <__assert_func>
  105251. 802b836: 2301 movs r3, #1
  105252. 802b838: e9c0 3504 strd r3, r5, [r0, #16]
  105253. 802b83c: 4610 mov r0, r2
  105254. 802b83e: b003 add sp, #12
  105255. 802b840: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105256. 802b844: bfbc itt lt
  105257. 802b846: 464b movlt r3, r9
  105258. 802b848: 46a1 movlt r9, r4
  105259. 802b84a: 4630 mov r0, r6
  105260. 802b84c: f8d9 1004 ldr.w r1, [r9, #4]
  105261. 802b850: bfba itte lt
  105262. 802b852: 461c movlt r4, r3
  105263. 802b854: 2501 movlt r5, #1
  105264. 802b856: 2500 movge r5, #0
  105265. 802b858: f7ff fcf6 bl 802b248 <_Balloc>
  105266. 802b85c: 4602 mov r2, r0
  105267. 802b85e: b918 cbnz r0, 802b868 <__mdiff+0x60>
  105268. 802b860: 4b31 ldr r3, [pc, #196] @ (802b928 <__mdiff+0x120>)
  105269. 802b862: f240 2145 movw r1, #581 @ 0x245
  105270. 802b866: e7e3 b.n 802b830 <__mdiff+0x28>
  105271. 802b868: f8d9 7010 ldr.w r7, [r9, #16]
  105272. 802b86c: 6926 ldr r6, [r4, #16]
  105273. 802b86e: 60c5 str r5, [r0, #12]
  105274. 802b870: f109 0310 add.w r3, r9, #16
  105275. 802b874: f109 0514 add.w r5, r9, #20
  105276. 802b878: f104 0e14 add.w lr, r4, #20
  105277. 802b87c: f100 0b14 add.w fp, r0, #20
  105278. 802b880: eb05 0887 add.w r8, r5, r7, lsl #2
  105279. 802b884: eb0e 0686 add.w r6, lr, r6, lsl #2
  105280. 802b888: 9301 str r3, [sp, #4]
  105281. 802b88a: 46d9 mov r9, fp
  105282. 802b88c: f04f 0c00 mov.w ip, #0
  105283. 802b890: 9b01 ldr r3, [sp, #4]
  105284. 802b892: f85e 0b04 ldr.w r0, [lr], #4
  105285. 802b896: f853 af04 ldr.w sl, [r3, #4]!
  105286. 802b89a: 9301 str r3, [sp, #4]
  105287. 802b89c: fa1f f38a uxth.w r3, sl
  105288. 802b8a0: 4619 mov r1, r3
  105289. 802b8a2: b283 uxth r3, r0
  105290. 802b8a4: 1acb subs r3, r1, r3
  105291. 802b8a6: 0c00 lsrs r0, r0, #16
  105292. 802b8a8: 4463 add r3, ip
  105293. 802b8aa: ebc0 401a rsb r0, r0, sl, lsr #16
  105294. 802b8ae: eb00 4023 add.w r0, r0, r3, asr #16
  105295. 802b8b2: b29b uxth r3, r3
  105296. 802b8b4: ea43 4300 orr.w r3, r3, r0, lsl #16
  105297. 802b8b8: 4576 cmp r6, lr
  105298. 802b8ba: f849 3b04 str.w r3, [r9], #4
  105299. 802b8be: ea4f 4c20 mov.w ip, r0, asr #16
  105300. 802b8c2: d8e5 bhi.n 802b890 <__mdiff+0x88>
  105301. 802b8c4: 1b33 subs r3, r6, r4
  105302. 802b8c6: 3b15 subs r3, #21
  105303. 802b8c8: f023 0303 bic.w r3, r3, #3
  105304. 802b8cc: 3415 adds r4, #21
  105305. 802b8ce: 3304 adds r3, #4
  105306. 802b8d0: 42a6 cmp r6, r4
  105307. 802b8d2: bf38 it cc
  105308. 802b8d4: 2304 movcc r3, #4
  105309. 802b8d6: 441d add r5, r3
  105310. 802b8d8: 445b add r3, fp
  105311. 802b8da: 461e mov r6, r3
  105312. 802b8dc: 462c mov r4, r5
  105313. 802b8de: 4544 cmp r4, r8
  105314. 802b8e0: d30e bcc.n 802b900 <__mdiff+0xf8>
  105315. 802b8e2: f108 0103 add.w r1, r8, #3
  105316. 802b8e6: 1b49 subs r1, r1, r5
  105317. 802b8e8: f021 0103 bic.w r1, r1, #3
  105318. 802b8ec: 3d03 subs r5, #3
  105319. 802b8ee: 45a8 cmp r8, r5
  105320. 802b8f0: bf38 it cc
  105321. 802b8f2: 2100 movcc r1, #0
  105322. 802b8f4: 440b add r3, r1
  105323. 802b8f6: f853 1d04 ldr.w r1, [r3, #-4]!
  105324. 802b8fa: b191 cbz r1, 802b922 <__mdiff+0x11a>
  105325. 802b8fc: 6117 str r7, [r2, #16]
  105326. 802b8fe: e79d b.n 802b83c <__mdiff+0x34>
  105327. 802b900: f854 1b04 ldr.w r1, [r4], #4
  105328. 802b904: 46e6 mov lr, ip
  105329. 802b906: 0c08 lsrs r0, r1, #16
  105330. 802b908: fa1c fc81 uxtah ip, ip, r1
  105331. 802b90c: 4471 add r1, lr
  105332. 802b90e: eb00 402c add.w r0, r0, ip, asr #16
  105333. 802b912: b289 uxth r1, r1
  105334. 802b914: ea41 4100 orr.w r1, r1, r0, lsl #16
  105335. 802b918: f846 1b04 str.w r1, [r6], #4
  105336. 802b91c: ea4f 4c20 mov.w ip, r0, asr #16
  105337. 802b920: e7dd b.n 802b8de <__mdiff+0xd6>
  105338. 802b922: 3f01 subs r7, #1
  105339. 802b924: e7e7 b.n 802b8f6 <__mdiff+0xee>
  105340. 802b926: bf00 nop
  105341. 802b928: 08030f1e .word 0x08030f1e
  105342. 802b92c: 08030f8f .word 0x08030f8f
  105343. 0802b930 <__ulp>:
  105344. 802b930: b082 sub sp, #8
  105345. 802b932: ed8d 0b00 vstr d0, [sp]
  105346. 802b936: 9a01 ldr r2, [sp, #4]
  105347. 802b938: 4b0f ldr r3, [pc, #60] @ (802b978 <__ulp+0x48>)
  105348. 802b93a: 4013 ands r3, r2
  105349. 802b93c: f1a3 7350 sub.w r3, r3, #54525952 @ 0x3400000
  105350. 802b940: 2b00 cmp r3, #0
  105351. 802b942: dc08 bgt.n 802b956 <__ulp+0x26>
  105352. 802b944: 425b negs r3, r3
  105353. 802b946: f1b3 7fa0 cmp.w r3, #20971520 @ 0x1400000
  105354. 802b94a: ea4f 5223 mov.w r2, r3, asr #20
  105355. 802b94e: da04 bge.n 802b95a <__ulp+0x2a>
  105356. 802b950: f44f 2300 mov.w r3, #524288 @ 0x80000
  105357. 802b954: 4113 asrs r3, r2
  105358. 802b956: 2200 movs r2, #0
  105359. 802b958: e008 b.n 802b96c <__ulp+0x3c>
  105360. 802b95a: f1a2 0314 sub.w r3, r2, #20
  105361. 802b95e: 2b1e cmp r3, #30
  105362. 802b960: bfda itte le
  105363. 802b962: f04f 4200 movle.w r2, #2147483648 @ 0x80000000
  105364. 802b966: 40da lsrle r2, r3
  105365. 802b968: 2201 movgt r2, #1
  105366. 802b96a: 2300 movs r3, #0
  105367. 802b96c: 4619 mov r1, r3
  105368. 802b96e: 4610 mov r0, r2
  105369. 802b970: ec41 0b10 vmov d0, r0, r1
  105370. 802b974: b002 add sp, #8
  105371. 802b976: 4770 bx lr
  105372. 802b978: 7ff00000 .word 0x7ff00000
  105373. 0802b97c <__b2d>:
  105374. 802b97c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  105375. 802b980: 6906 ldr r6, [r0, #16]
  105376. 802b982: f100 0814 add.w r8, r0, #20
  105377. 802b986: eb08 0686 add.w r6, r8, r6, lsl #2
  105378. 802b98a: 1f37 subs r7, r6, #4
  105379. 802b98c: f856 2c04 ldr.w r2, [r6, #-4]
  105380. 802b990: 4610 mov r0, r2
  105381. 802b992: f7ff fd4b bl 802b42c <__hi0bits>
  105382. 802b996: f1c0 0320 rsb r3, r0, #32
  105383. 802b99a: 280a cmp r0, #10
  105384. 802b99c: 600b str r3, [r1, #0]
  105385. 802b99e: 491b ldr r1, [pc, #108] @ (802ba0c <__b2d+0x90>)
  105386. 802b9a0: dc15 bgt.n 802b9ce <__b2d+0x52>
  105387. 802b9a2: f1c0 0c0b rsb ip, r0, #11
  105388. 802b9a6: fa22 f30c lsr.w r3, r2, ip
  105389. 802b9aa: 45b8 cmp r8, r7
  105390. 802b9ac: ea43 0501 orr.w r5, r3, r1
  105391. 802b9b0: bf34 ite cc
  105392. 802b9b2: f856 3c08 ldrcc.w r3, [r6, #-8]
  105393. 802b9b6: 2300 movcs r3, #0
  105394. 802b9b8: 3015 adds r0, #21
  105395. 802b9ba: fa02 f000 lsl.w r0, r2, r0
  105396. 802b9be: fa23 f30c lsr.w r3, r3, ip
  105397. 802b9c2: 4303 orrs r3, r0
  105398. 802b9c4: 461c mov r4, r3
  105399. 802b9c6: ec45 4b10 vmov d0, r4, r5
  105400. 802b9ca: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  105401. 802b9ce: 45b8 cmp r8, r7
  105402. 802b9d0: bf3a itte cc
  105403. 802b9d2: f856 3c08 ldrcc.w r3, [r6, #-8]
  105404. 802b9d6: f1a6 0708 subcc.w r7, r6, #8
  105405. 802b9da: 2300 movcs r3, #0
  105406. 802b9dc: 380b subs r0, #11
  105407. 802b9de: d012 beq.n 802ba06 <__b2d+0x8a>
  105408. 802b9e0: f1c0 0120 rsb r1, r0, #32
  105409. 802b9e4: fa23 f401 lsr.w r4, r3, r1
  105410. 802b9e8: 4082 lsls r2, r0
  105411. 802b9ea: 4322 orrs r2, r4
  105412. 802b9ec: 4547 cmp r7, r8
  105413. 802b9ee: f042 557f orr.w r5, r2, #1069547520 @ 0x3fc00000
  105414. 802b9f2: bf8c ite hi
  105415. 802b9f4: f857 2c04 ldrhi.w r2, [r7, #-4]
  105416. 802b9f8: 2200 movls r2, #0
  105417. 802b9fa: 4083 lsls r3, r0
  105418. 802b9fc: 40ca lsrs r2, r1
  105419. 802b9fe: f445 1540 orr.w r5, r5, #3145728 @ 0x300000
  105420. 802ba02: 4313 orrs r3, r2
  105421. 802ba04: e7de b.n 802b9c4 <__b2d+0x48>
  105422. 802ba06: ea42 0501 orr.w r5, r2, r1
  105423. 802ba0a: e7db b.n 802b9c4 <__b2d+0x48>
  105424. 802ba0c: 3ff00000 .word 0x3ff00000
  105425. 0802ba10 <__d2b>:
  105426. 802ba10: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  105427. 802ba14: 460f mov r7, r1
  105428. 802ba16: 2101 movs r1, #1
  105429. 802ba18: ec59 8b10 vmov r8, r9, d0
  105430. 802ba1c: 4616 mov r6, r2
  105431. 802ba1e: f7ff fc13 bl 802b248 <_Balloc>
  105432. 802ba22: 4604 mov r4, r0
  105433. 802ba24: b930 cbnz r0, 802ba34 <__d2b+0x24>
  105434. 802ba26: 4602 mov r2, r0
  105435. 802ba28: 4b23 ldr r3, [pc, #140] @ (802bab8 <__d2b+0xa8>)
  105436. 802ba2a: 4824 ldr r0, [pc, #144] @ (802babc <__d2b+0xac>)
  105437. 802ba2c: f240 310f movw r1, #783 @ 0x30f
  105438. 802ba30: f7fe fa76 bl 8029f20 <__assert_func>
  105439. 802ba34: f3c9 550a ubfx r5, r9, #20, #11
  105440. 802ba38: f3c9 0313 ubfx r3, r9, #0, #20
  105441. 802ba3c: b10d cbz r5, 802ba42 <__d2b+0x32>
  105442. 802ba3e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  105443. 802ba42: 9301 str r3, [sp, #4]
  105444. 802ba44: f1b8 0300 subs.w r3, r8, #0
  105445. 802ba48: d023 beq.n 802ba92 <__d2b+0x82>
  105446. 802ba4a: 4668 mov r0, sp
  105447. 802ba4c: 9300 str r3, [sp, #0]
  105448. 802ba4e: f7ff fd0c bl 802b46a <__lo0bits>
  105449. 802ba52: e9dd 1200 ldrd r1, r2, [sp]
  105450. 802ba56: b1d0 cbz r0, 802ba8e <__d2b+0x7e>
  105451. 802ba58: f1c0 0320 rsb r3, r0, #32
  105452. 802ba5c: fa02 f303 lsl.w r3, r2, r3
  105453. 802ba60: 430b orrs r3, r1
  105454. 802ba62: 40c2 lsrs r2, r0
  105455. 802ba64: 6163 str r3, [r4, #20]
  105456. 802ba66: 9201 str r2, [sp, #4]
  105457. 802ba68: 9b01 ldr r3, [sp, #4]
  105458. 802ba6a: 61a3 str r3, [r4, #24]
  105459. 802ba6c: 2b00 cmp r3, #0
  105460. 802ba6e: bf0c ite eq
  105461. 802ba70: 2201 moveq r2, #1
  105462. 802ba72: 2202 movne r2, #2
  105463. 802ba74: 6122 str r2, [r4, #16]
  105464. 802ba76: b1a5 cbz r5, 802baa2 <__d2b+0x92>
  105465. 802ba78: f2a5 4533 subw r5, r5, #1075 @ 0x433
  105466. 802ba7c: 4405 add r5, r0
  105467. 802ba7e: 603d str r5, [r7, #0]
  105468. 802ba80: f1c0 0035 rsb r0, r0, #53 @ 0x35
  105469. 802ba84: 6030 str r0, [r6, #0]
  105470. 802ba86: 4620 mov r0, r4
  105471. 802ba88: b003 add sp, #12
  105472. 802ba8a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  105473. 802ba8e: 6161 str r1, [r4, #20]
  105474. 802ba90: e7ea b.n 802ba68 <__d2b+0x58>
  105475. 802ba92: a801 add r0, sp, #4
  105476. 802ba94: f7ff fce9 bl 802b46a <__lo0bits>
  105477. 802ba98: 9b01 ldr r3, [sp, #4]
  105478. 802ba9a: 6163 str r3, [r4, #20]
  105479. 802ba9c: 3020 adds r0, #32
  105480. 802ba9e: 2201 movs r2, #1
  105481. 802baa0: e7e8 b.n 802ba74 <__d2b+0x64>
  105482. 802baa2: eb04 0382 add.w r3, r4, r2, lsl #2
  105483. 802baa6: f2a0 4032 subw r0, r0, #1074 @ 0x432
  105484. 802baaa: 6038 str r0, [r7, #0]
  105485. 802baac: 6918 ldr r0, [r3, #16]
  105486. 802baae: f7ff fcbd bl 802b42c <__hi0bits>
  105487. 802bab2: ebc0 1042 rsb r0, r0, r2, lsl #5
  105488. 802bab6: e7e5 b.n 802ba84 <__d2b+0x74>
  105489. 802bab8: 08030f1e .word 0x08030f1e
  105490. 802babc: 08030f8f .word 0x08030f8f
  105491. 0802bac0 <__ratio>:
  105492. 802bac0: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105493. 802bac4: 4688 mov r8, r1
  105494. 802bac6: 4669 mov r1, sp
  105495. 802bac8: 4681 mov r9, r0
  105496. 802baca: f7ff ff57 bl 802b97c <__b2d>
  105497. 802bace: a901 add r1, sp, #4
  105498. 802bad0: 4640 mov r0, r8
  105499. 802bad2: ec55 4b10 vmov r4, r5, d0
  105500. 802bad6: f7ff ff51 bl 802b97c <__b2d>
  105501. 802bada: f8d8 3010 ldr.w r3, [r8, #16]
  105502. 802bade: f8d9 2010 ldr.w r2, [r9, #16]
  105503. 802bae2: 1ad2 subs r2, r2, r3
  105504. 802bae4: e9dd 3100 ldrd r3, r1, [sp]
  105505. 802bae8: 1a5b subs r3, r3, r1
  105506. 802baea: eb03 1342 add.w r3, r3, r2, lsl #5
  105507. 802baee: ec57 6b10 vmov r6, r7, d0
  105508. 802baf2: 2b00 cmp r3, #0
  105509. 802baf4: bfd6 itet le
  105510. 802baf6: ebc3 3303 rsble r3, r3, r3, lsl #12
  105511. 802bafa: 462a movgt r2, r5
  105512. 802bafc: 463a movle r2, r7
  105513. 802bafe: 46ab mov fp, r5
  105514. 802bb00: 46a2 mov sl, r4
  105515. 802bb02: bfce itee gt
  105516. 802bb04: eb02 5b03 addgt.w fp, r2, r3, lsl #20
  105517. 802bb08: eb02 5303 addle.w r3, r2, r3, lsl #20
  105518. 802bb0c: ee00 3a90 vmovle s1, r3
  105519. 802bb10: ec4b ab17 vmov d7, sl, fp
  105520. 802bb14: ee87 0b00 vdiv.f64 d0, d7, d0
  105521. 802bb18: b003 add sp, #12
  105522. 802bb1a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105523. 0802bb1e <__copybits>:
  105524. 802bb1e: 3901 subs r1, #1
  105525. 802bb20: b570 push {r4, r5, r6, lr}
  105526. 802bb22: 1149 asrs r1, r1, #5
  105527. 802bb24: 6914 ldr r4, [r2, #16]
  105528. 802bb26: 3101 adds r1, #1
  105529. 802bb28: f102 0314 add.w r3, r2, #20
  105530. 802bb2c: eb00 0181 add.w r1, r0, r1, lsl #2
  105531. 802bb30: eb03 0484 add.w r4, r3, r4, lsl #2
  105532. 802bb34: 1f05 subs r5, r0, #4
  105533. 802bb36: 42a3 cmp r3, r4
  105534. 802bb38: d30c bcc.n 802bb54 <__copybits+0x36>
  105535. 802bb3a: 1aa3 subs r3, r4, r2
  105536. 802bb3c: 3b11 subs r3, #17
  105537. 802bb3e: f023 0303 bic.w r3, r3, #3
  105538. 802bb42: 3211 adds r2, #17
  105539. 802bb44: 42a2 cmp r2, r4
  105540. 802bb46: bf88 it hi
  105541. 802bb48: 2300 movhi r3, #0
  105542. 802bb4a: 4418 add r0, r3
  105543. 802bb4c: 2300 movs r3, #0
  105544. 802bb4e: 4288 cmp r0, r1
  105545. 802bb50: d305 bcc.n 802bb5e <__copybits+0x40>
  105546. 802bb52: bd70 pop {r4, r5, r6, pc}
  105547. 802bb54: f853 6b04 ldr.w r6, [r3], #4
  105548. 802bb58: f845 6f04 str.w r6, [r5, #4]!
  105549. 802bb5c: e7eb b.n 802bb36 <__copybits+0x18>
  105550. 802bb5e: f840 3b04 str.w r3, [r0], #4
  105551. 802bb62: e7f4 b.n 802bb4e <__copybits+0x30>
  105552. 0802bb64 <__any_on>:
  105553. 802bb64: f100 0214 add.w r2, r0, #20
  105554. 802bb68: 6900 ldr r0, [r0, #16]
  105555. 802bb6a: 114b asrs r3, r1, #5
  105556. 802bb6c: 4298 cmp r0, r3
  105557. 802bb6e: b510 push {r4, lr}
  105558. 802bb70: db11 blt.n 802bb96 <__any_on+0x32>
  105559. 802bb72: dd0a ble.n 802bb8a <__any_on+0x26>
  105560. 802bb74: f011 011f ands.w r1, r1, #31
  105561. 802bb78: d007 beq.n 802bb8a <__any_on+0x26>
  105562. 802bb7a: f852 4023 ldr.w r4, [r2, r3, lsl #2]
  105563. 802bb7e: fa24 f001 lsr.w r0, r4, r1
  105564. 802bb82: fa00 f101 lsl.w r1, r0, r1
  105565. 802bb86: 428c cmp r4, r1
  105566. 802bb88: d10b bne.n 802bba2 <__any_on+0x3e>
  105567. 802bb8a: eb02 0383 add.w r3, r2, r3, lsl #2
  105568. 802bb8e: 4293 cmp r3, r2
  105569. 802bb90: d803 bhi.n 802bb9a <__any_on+0x36>
  105570. 802bb92: 2000 movs r0, #0
  105571. 802bb94: bd10 pop {r4, pc}
  105572. 802bb96: 4603 mov r3, r0
  105573. 802bb98: e7f7 b.n 802bb8a <__any_on+0x26>
  105574. 802bb9a: f853 1d04 ldr.w r1, [r3, #-4]!
  105575. 802bb9e: 2900 cmp r1, #0
  105576. 802bba0: d0f5 beq.n 802bb8e <__any_on+0x2a>
  105577. 802bba2: 2001 movs r0, #1
  105578. 802bba4: e7f6 b.n 802bb94 <__any_on+0x30>
  105579. 0802bba6 <_malloc_usable_size_r>:
  105580. 802bba6: f851 3c04 ldr.w r3, [r1, #-4]
  105581. 802bbaa: 1f18 subs r0, r3, #4
  105582. 802bbac: 2b00 cmp r3, #0
  105583. 802bbae: bfbc itt lt
  105584. 802bbb0: 580b ldrlt r3, [r1, r0]
  105585. 802bbb2: 18c0 addlt r0, r0, r3
  105586. 802bbb4: 4770 bx lr
  105587. 0802bbb6 <__ascii_wctomb>:
  105588. 802bbb6: 4603 mov r3, r0
  105589. 802bbb8: 4608 mov r0, r1
  105590. 802bbba: b141 cbz r1, 802bbce <__ascii_wctomb+0x18>
  105591. 802bbbc: 2aff cmp r2, #255 @ 0xff
  105592. 802bbbe: d904 bls.n 802bbca <__ascii_wctomb+0x14>
  105593. 802bbc0: 228a movs r2, #138 @ 0x8a
  105594. 802bbc2: 601a str r2, [r3, #0]
  105595. 802bbc4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105596. 802bbc8: 4770 bx lr
  105597. 802bbca: 700a strb r2, [r1, #0]
  105598. 802bbcc: 2001 movs r0, #1
  105599. 802bbce: 4770 bx lr
  105600. 0802bbd0 <__ssputs_r>:
  105601. 802bbd0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  105602. 802bbd4: 688e ldr r6, [r1, #8]
  105603. 802bbd6: 461f mov r7, r3
  105604. 802bbd8: 42be cmp r6, r7
  105605. 802bbda: 680b ldr r3, [r1, #0]
  105606. 802bbdc: 4682 mov sl, r0
  105607. 802bbde: 460c mov r4, r1
  105608. 802bbe0: 4690 mov r8, r2
  105609. 802bbe2: d82d bhi.n 802bc40 <__ssputs_r+0x70>
  105610. 802bbe4: f9b1 200c ldrsh.w r2, [r1, #12]
  105611. 802bbe8: f412 6f90 tst.w r2, #1152 @ 0x480
  105612. 802bbec: d026 beq.n 802bc3c <__ssputs_r+0x6c>
  105613. 802bbee: 6965 ldr r5, [r4, #20]
  105614. 802bbf0: 6909 ldr r1, [r1, #16]
  105615. 802bbf2: eb05 0545 add.w r5, r5, r5, lsl #1
  105616. 802bbf6: eba3 0901 sub.w r9, r3, r1
  105617. 802bbfa: eb05 75d5 add.w r5, r5, r5, lsr #31
  105618. 802bbfe: 1c7b adds r3, r7, #1
  105619. 802bc00: 444b add r3, r9
  105620. 802bc02: 106d asrs r5, r5, #1
  105621. 802bc04: 429d cmp r5, r3
  105622. 802bc06: bf38 it cc
  105623. 802bc08: 461d movcc r5, r3
  105624. 802bc0a: 0553 lsls r3, r2, #21
  105625. 802bc0c: d527 bpl.n 802bc5e <__ssputs_r+0x8e>
  105626. 802bc0e: 4629 mov r1, r5
  105627. 802bc10: f7fc fb2e bl 8028270 <_malloc_r>
  105628. 802bc14: 4606 mov r6, r0
  105629. 802bc16: b360 cbz r0, 802bc72 <__ssputs_r+0xa2>
  105630. 802bc18: 6921 ldr r1, [r4, #16]
  105631. 802bc1a: 464a mov r2, r9
  105632. 802bc1c: f7fe f967 bl 8029eee <memcpy>
  105633. 802bc20: 89a3 ldrh r3, [r4, #12]
  105634. 802bc22: f423 6390 bic.w r3, r3, #1152 @ 0x480
  105635. 802bc26: f043 0380 orr.w r3, r3, #128 @ 0x80
  105636. 802bc2a: 81a3 strh r3, [r4, #12]
  105637. 802bc2c: 6126 str r6, [r4, #16]
  105638. 802bc2e: 6165 str r5, [r4, #20]
  105639. 802bc30: 444e add r6, r9
  105640. 802bc32: eba5 0509 sub.w r5, r5, r9
  105641. 802bc36: 6026 str r6, [r4, #0]
  105642. 802bc38: 60a5 str r5, [r4, #8]
  105643. 802bc3a: 463e mov r6, r7
  105644. 802bc3c: 42be cmp r6, r7
  105645. 802bc3e: d900 bls.n 802bc42 <__ssputs_r+0x72>
  105646. 802bc40: 463e mov r6, r7
  105647. 802bc42: 6820 ldr r0, [r4, #0]
  105648. 802bc44: 4632 mov r2, r6
  105649. 802bc46: 4641 mov r1, r8
  105650. 802bc48: f7fe f840 bl 8029ccc <memmove>
  105651. 802bc4c: 68a3 ldr r3, [r4, #8]
  105652. 802bc4e: 1b9b subs r3, r3, r6
  105653. 802bc50: 60a3 str r3, [r4, #8]
  105654. 802bc52: 6823 ldr r3, [r4, #0]
  105655. 802bc54: 4433 add r3, r6
  105656. 802bc56: 6023 str r3, [r4, #0]
  105657. 802bc58: 2000 movs r0, #0
  105658. 802bc5a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  105659. 802bc5e: 462a mov r2, r5
  105660. 802bc60: f7fc fbd8 bl 8028414 <_realloc_r>
  105661. 802bc64: 4606 mov r6, r0
  105662. 802bc66: 2800 cmp r0, #0
  105663. 802bc68: d1e0 bne.n 802bc2c <__ssputs_r+0x5c>
  105664. 802bc6a: 6921 ldr r1, [r4, #16]
  105665. 802bc6c: 4650 mov r0, sl
  105666. 802bc6e: f7fe ff55 bl 802ab1c <_free_r>
  105667. 802bc72: 230c movs r3, #12
  105668. 802bc74: f8ca 3000 str.w r3, [sl]
  105669. 802bc78: 89a3 ldrh r3, [r4, #12]
  105670. 802bc7a: f043 0340 orr.w r3, r3, #64 @ 0x40
  105671. 802bc7e: 81a3 strh r3, [r4, #12]
  105672. 802bc80: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105673. 802bc84: e7e9 b.n 802bc5a <__ssputs_r+0x8a>
  105674. ...
  105675. 0802bc88 <_svfiprintf_r>:
  105676. 802bc88: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105677. 802bc8c: 4698 mov r8, r3
  105678. 802bc8e: 898b ldrh r3, [r1, #12]
  105679. 802bc90: 061b lsls r3, r3, #24
  105680. 802bc92: b09d sub sp, #116 @ 0x74
  105681. 802bc94: 4607 mov r7, r0
  105682. 802bc96: 460d mov r5, r1
  105683. 802bc98: 4614 mov r4, r2
  105684. 802bc9a: d510 bpl.n 802bcbe <_svfiprintf_r+0x36>
  105685. 802bc9c: 690b ldr r3, [r1, #16]
  105686. 802bc9e: b973 cbnz r3, 802bcbe <_svfiprintf_r+0x36>
  105687. 802bca0: 2140 movs r1, #64 @ 0x40
  105688. 802bca2: f7fc fae5 bl 8028270 <_malloc_r>
  105689. 802bca6: 6028 str r0, [r5, #0]
  105690. 802bca8: 6128 str r0, [r5, #16]
  105691. 802bcaa: b930 cbnz r0, 802bcba <_svfiprintf_r+0x32>
  105692. 802bcac: 230c movs r3, #12
  105693. 802bcae: 603b str r3, [r7, #0]
  105694. 802bcb0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105695. 802bcb4: b01d add sp, #116 @ 0x74
  105696. 802bcb6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105697. 802bcba: 2340 movs r3, #64 @ 0x40
  105698. 802bcbc: 616b str r3, [r5, #20]
  105699. 802bcbe: 2300 movs r3, #0
  105700. 802bcc0: 9309 str r3, [sp, #36] @ 0x24
  105701. 802bcc2: 2320 movs r3, #32
  105702. 802bcc4: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  105703. 802bcc8: f8cd 800c str.w r8, [sp, #12]
  105704. 802bccc: 2330 movs r3, #48 @ 0x30
  105705. 802bcce: f8df 819c ldr.w r8, [pc, #412] @ 802be6c <_svfiprintf_r+0x1e4>
  105706. 802bcd2: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  105707. 802bcd6: f04f 0901 mov.w r9, #1
  105708. 802bcda: 4623 mov r3, r4
  105709. 802bcdc: 469a mov sl, r3
  105710. 802bcde: f813 2b01 ldrb.w r2, [r3], #1
  105711. 802bce2: b10a cbz r2, 802bce8 <_svfiprintf_r+0x60>
  105712. 802bce4: 2a25 cmp r2, #37 @ 0x25
  105713. 802bce6: d1f9 bne.n 802bcdc <_svfiprintf_r+0x54>
  105714. 802bce8: ebba 0b04 subs.w fp, sl, r4
  105715. 802bcec: d00b beq.n 802bd06 <_svfiprintf_r+0x7e>
  105716. 802bcee: 465b mov r3, fp
  105717. 802bcf0: 4622 mov r2, r4
  105718. 802bcf2: 4629 mov r1, r5
  105719. 802bcf4: 4638 mov r0, r7
  105720. 802bcf6: f7ff ff6b bl 802bbd0 <__ssputs_r>
  105721. 802bcfa: 3001 adds r0, #1
  105722. 802bcfc: f000 80a7 beq.w 802be4e <_svfiprintf_r+0x1c6>
  105723. 802bd00: 9a09 ldr r2, [sp, #36] @ 0x24
  105724. 802bd02: 445a add r2, fp
  105725. 802bd04: 9209 str r2, [sp, #36] @ 0x24
  105726. 802bd06: f89a 3000 ldrb.w r3, [sl]
  105727. 802bd0a: 2b00 cmp r3, #0
  105728. 802bd0c: f000 809f beq.w 802be4e <_svfiprintf_r+0x1c6>
  105729. 802bd10: 2300 movs r3, #0
  105730. 802bd12: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  105731. 802bd16: e9cd 2305 strd r2, r3, [sp, #20]
  105732. 802bd1a: f10a 0a01 add.w sl, sl, #1
  105733. 802bd1e: 9304 str r3, [sp, #16]
  105734. 802bd20: 9307 str r3, [sp, #28]
  105735. 802bd22: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  105736. 802bd26: 931a str r3, [sp, #104] @ 0x68
  105737. 802bd28: 4654 mov r4, sl
  105738. 802bd2a: 2205 movs r2, #5
  105739. 802bd2c: f814 1b01 ldrb.w r1, [r4], #1
  105740. 802bd30: 484e ldr r0, [pc, #312] @ (802be6c <_svfiprintf_r+0x1e4>)
  105741. 802bd32: f7d4 fae5 bl 8000300 <memchr>
  105742. 802bd36: 9a04 ldr r2, [sp, #16]
  105743. 802bd38: b9d8 cbnz r0, 802bd72 <_svfiprintf_r+0xea>
  105744. 802bd3a: 06d0 lsls r0, r2, #27
  105745. 802bd3c: bf44 itt mi
  105746. 802bd3e: 2320 movmi r3, #32
  105747. 802bd40: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  105748. 802bd44: 0711 lsls r1, r2, #28
  105749. 802bd46: bf44 itt mi
  105750. 802bd48: 232b movmi r3, #43 @ 0x2b
  105751. 802bd4a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  105752. 802bd4e: f89a 3000 ldrb.w r3, [sl]
  105753. 802bd52: 2b2a cmp r3, #42 @ 0x2a
  105754. 802bd54: d015 beq.n 802bd82 <_svfiprintf_r+0xfa>
  105755. 802bd56: 9a07 ldr r2, [sp, #28]
  105756. 802bd58: 4654 mov r4, sl
  105757. 802bd5a: 2000 movs r0, #0
  105758. 802bd5c: f04f 0c0a mov.w ip, #10
  105759. 802bd60: 4621 mov r1, r4
  105760. 802bd62: f811 3b01 ldrb.w r3, [r1], #1
  105761. 802bd66: 3b30 subs r3, #48 @ 0x30
  105762. 802bd68: 2b09 cmp r3, #9
  105763. 802bd6a: d94b bls.n 802be04 <_svfiprintf_r+0x17c>
  105764. 802bd6c: b1b0 cbz r0, 802bd9c <_svfiprintf_r+0x114>
  105765. 802bd6e: 9207 str r2, [sp, #28]
  105766. 802bd70: e014 b.n 802bd9c <_svfiprintf_r+0x114>
  105767. 802bd72: eba0 0308 sub.w r3, r0, r8
  105768. 802bd76: fa09 f303 lsl.w r3, r9, r3
  105769. 802bd7a: 4313 orrs r3, r2
  105770. 802bd7c: 9304 str r3, [sp, #16]
  105771. 802bd7e: 46a2 mov sl, r4
  105772. 802bd80: e7d2 b.n 802bd28 <_svfiprintf_r+0xa0>
  105773. 802bd82: 9b03 ldr r3, [sp, #12]
  105774. 802bd84: 1d19 adds r1, r3, #4
  105775. 802bd86: 681b ldr r3, [r3, #0]
  105776. 802bd88: 9103 str r1, [sp, #12]
  105777. 802bd8a: 2b00 cmp r3, #0
  105778. 802bd8c: bfbb ittet lt
  105779. 802bd8e: 425b neglt r3, r3
  105780. 802bd90: f042 0202 orrlt.w r2, r2, #2
  105781. 802bd94: 9307 strge r3, [sp, #28]
  105782. 802bd96: 9307 strlt r3, [sp, #28]
  105783. 802bd98: bfb8 it lt
  105784. 802bd9a: 9204 strlt r2, [sp, #16]
  105785. 802bd9c: 7823 ldrb r3, [r4, #0]
  105786. 802bd9e: 2b2e cmp r3, #46 @ 0x2e
  105787. 802bda0: d10a bne.n 802bdb8 <_svfiprintf_r+0x130>
  105788. 802bda2: 7863 ldrb r3, [r4, #1]
  105789. 802bda4: 2b2a cmp r3, #42 @ 0x2a
  105790. 802bda6: d132 bne.n 802be0e <_svfiprintf_r+0x186>
  105791. 802bda8: 9b03 ldr r3, [sp, #12]
  105792. 802bdaa: 1d1a adds r2, r3, #4
  105793. 802bdac: 681b ldr r3, [r3, #0]
  105794. 802bdae: 9203 str r2, [sp, #12]
  105795. 802bdb0: ea43 73e3 orr.w r3, r3, r3, asr #31
  105796. 802bdb4: 3402 adds r4, #2
  105797. 802bdb6: 9305 str r3, [sp, #20]
  105798. 802bdb8: f8df a0c0 ldr.w sl, [pc, #192] @ 802be7c <_svfiprintf_r+0x1f4>
  105799. 802bdbc: 7821 ldrb r1, [r4, #0]
  105800. 802bdbe: 2203 movs r2, #3
  105801. 802bdc0: 4650 mov r0, sl
  105802. 802bdc2: f7d4 fa9d bl 8000300 <memchr>
  105803. 802bdc6: b138 cbz r0, 802bdd8 <_svfiprintf_r+0x150>
  105804. 802bdc8: 9b04 ldr r3, [sp, #16]
  105805. 802bdca: eba0 000a sub.w r0, r0, sl
  105806. 802bdce: 2240 movs r2, #64 @ 0x40
  105807. 802bdd0: 4082 lsls r2, r0
  105808. 802bdd2: 4313 orrs r3, r2
  105809. 802bdd4: 3401 adds r4, #1
  105810. 802bdd6: 9304 str r3, [sp, #16]
  105811. 802bdd8: f814 1b01 ldrb.w r1, [r4], #1
  105812. 802bddc: 4824 ldr r0, [pc, #144] @ (802be70 <_svfiprintf_r+0x1e8>)
  105813. 802bdde: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  105814. 802bde2: 2206 movs r2, #6
  105815. 802bde4: f7d4 fa8c bl 8000300 <memchr>
  105816. 802bde8: 2800 cmp r0, #0
  105817. 802bdea: d036 beq.n 802be5a <_svfiprintf_r+0x1d2>
  105818. 802bdec: 4b21 ldr r3, [pc, #132] @ (802be74 <_svfiprintf_r+0x1ec>)
  105819. 802bdee: bb1b cbnz r3, 802be38 <_svfiprintf_r+0x1b0>
  105820. 802bdf0: 9b03 ldr r3, [sp, #12]
  105821. 802bdf2: 3307 adds r3, #7
  105822. 802bdf4: f023 0307 bic.w r3, r3, #7
  105823. 802bdf8: 3308 adds r3, #8
  105824. 802bdfa: 9303 str r3, [sp, #12]
  105825. 802bdfc: 9b09 ldr r3, [sp, #36] @ 0x24
  105826. 802bdfe: 4433 add r3, r6
  105827. 802be00: 9309 str r3, [sp, #36] @ 0x24
  105828. 802be02: e76a b.n 802bcda <_svfiprintf_r+0x52>
  105829. 802be04: fb0c 3202 mla r2, ip, r2, r3
  105830. 802be08: 460c mov r4, r1
  105831. 802be0a: 2001 movs r0, #1
  105832. 802be0c: e7a8 b.n 802bd60 <_svfiprintf_r+0xd8>
  105833. 802be0e: 2300 movs r3, #0
  105834. 802be10: 3401 adds r4, #1
  105835. 802be12: 9305 str r3, [sp, #20]
  105836. 802be14: 4619 mov r1, r3
  105837. 802be16: f04f 0c0a mov.w ip, #10
  105838. 802be1a: 4620 mov r0, r4
  105839. 802be1c: f810 2b01 ldrb.w r2, [r0], #1
  105840. 802be20: 3a30 subs r2, #48 @ 0x30
  105841. 802be22: 2a09 cmp r2, #9
  105842. 802be24: d903 bls.n 802be2e <_svfiprintf_r+0x1a6>
  105843. 802be26: 2b00 cmp r3, #0
  105844. 802be28: d0c6 beq.n 802bdb8 <_svfiprintf_r+0x130>
  105845. 802be2a: 9105 str r1, [sp, #20]
  105846. 802be2c: e7c4 b.n 802bdb8 <_svfiprintf_r+0x130>
  105847. 802be2e: fb0c 2101 mla r1, ip, r1, r2
  105848. 802be32: 4604 mov r4, r0
  105849. 802be34: 2301 movs r3, #1
  105850. 802be36: e7f0 b.n 802be1a <_svfiprintf_r+0x192>
  105851. 802be38: ab03 add r3, sp, #12
  105852. 802be3a: 9300 str r3, [sp, #0]
  105853. 802be3c: 462a mov r2, r5
  105854. 802be3e: 4b0e ldr r3, [pc, #56] @ (802be78 <_svfiprintf_r+0x1f0>)
  105855. 802be40: a904 add r1, sp, #16
  105856. 802be42: 4638 mov r0, r7
  105857. 802be44: f7fd f960 bl 8029108 <_printf_float>
  105858. 802be48: 1c42 adds r2, r0, #1
  105859. 802be4a: 4606 mov r6, r0
  105860. 802be4c: d1d6 bne.n 802bdfc <_svfiprintf_r+0x174>
  105861. 802be4e: 89ab ldrh r3, [r5, #12]
  105862. 802be50: 065b lsls r3, r3, #25
  105863. 802be52: f53f af2d bmi.w 802bcb0 <_svfiprintf_r+0x28>
  105864. 802be56: 9809 ldr r0, [sp, #36] @ 0x24
  105865. 802be58: e72c b.n 802bcb4 <_svfiprintf_r+0x2c>
  105866. 802be5a: ab03 add r3, sp, #12
  105867. 802be5c: 9300 str r3, [sp, #0]
  105868. 802be5e: 462a mov r2, r5
  105869. 802be60: 4b05 ldr r3, [pc, #20] @ (802be78 <_svfiprintf_r+0x1f0>)
  105870. 802be62: a904 add r1, sp, #16
  105871. 802be64: 4638 mov r0, r7
  105872. 802be66: f7fd fbd7 bl 8029618 <_printf_i>
  105873. 802be6a: e7ed b.n 802be48 <_svfiprintf_r+0x1c0>
  105874. 802be6c: 080310e8 .word 0x080310e8
  105875. 802be70: 080310f2 .word 0x080310f2
  105876. 802be74: 08029109 .word 0x08029109
  105877. 802be78: 0802bbd1 .word 0x0802bbd1
  105878. 802be7c: 080310ee .word 0x080310ee
  105879. 0802be80 <__sfputc_r>:
  105880. 802be80: 6893 ldr r3, [r2, #8]
  105881. 802be82: 3b01 subs r3, #1
  105882. 802be84: 2b00 cmp r3, #0
  105883. 802be86: b410 push {r4}
  105884. 802be88: 6093 str r3, [r2, #8]
  105885. 802be8a: da08 bge.n 802be9e <__sfputc_r+0x1e>
  105886. 802be8c: 6994 ldr r4, [r2, #24]
  105887. 802be8e: 42a3 cmp r3, r4
  105888. 802be90: db01 blt.n 802be96 <__sfputc_r+0x16>
  105889. 802be92: 290a cmp r1, #10
  105890. 802be94: d103 bne.n 802be9e <__sfputc_r+0x1e>
  105891. 802be96: f85d 4b04 ldr.w r4, [sp], #4
  105892. 802be9a: f7fd be72 b.w 8029b82 <__swbuf_r>
  105893. 802be9e: 6813 ldr r3, [r2, #0]
  105894. 802bea0: 1c58 adds r0, r3, #1
  105895. 802bea2: 6010 str r0, [r2, #0]
  105896. 802bea4: 7019 strb r1, [r3, #0]
  105897. 802bea6: 4608 mov r0, r1
  105898. 802bea8: f85d 4b04 ldr.w r4, [sp], #4
  105899. 802beac: 4770 bx lr
  105900. 0802beae <__sfputs_r>:
  105901. 802beae: b5f8 push {r3, r4, r5, r6, r7, lr}
  105902. 802beb0: 4606 mov r6, r0
  105903. 802beb2: 460f mov r7, r1
  105904. 802beb4: 4614 mov r4, r2
  105905. 802beb6: 18d5 adds r5, r2, r3
  105906. 802beb8: 42ac cmp r4, r5
  105907. 802beba: d101 bne.n 802bec0 <__sfputs_r+0x12>
  105908. 802bebc: 2000 movs r0, #0
  105909. 802bebe: e007 b.n 802bed0 <__sfputs_r+0x22>
  105910. 802bec0: f814 1b01 ldrb.w r1, [r4], #1
  105911. 802bec4: 463a mov r2, r7
  105912. 802bec6: 4630 mov r0, r6
  105913. 802bec8: f7ff ffda bl 802be80 <__sfputc_r>
  105914. 802becc: 1c43 adds r3, r0, #1
  105915. 802bece: d1f3 bne.n 802beb8 <__sfputs_r+0xa>
  105916. 802bed0: bdf8 pop {r3, r4, r5, r6, r7, pc}
  105917. ...
  105918. 0802bed4 <_vfiprintf_r>:
  105919. 802bed4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105920. 802bed8: 460d mov r5, r1
  105921. 802beda: b09d sub sp, #116 @ 0x74
  105922. 802bedc: 4614 mov r4, r2
  105923. 802bede: 4698 mov r8, r3
  105924. 802bee0: 4606 mov r6, r0
  105925. 802bee2: b118 cbz r0, 802beec <_vfiprintf_r+0x18>
  105926. 802bee4: 6a03 ldr r3, [r0, #32]
  105927. 802bee6: b90b cbnz r3, 802beec <_vfiprintf_r+0x18>
  105928. 802bee8: f7fd fd42 bl 8029970 <__sinit>
  105929. 802beec: 6e6b ldr r3, [r5, #100] @ 0x64
  105930. 802beee: 07d9 lsls r1, r3, #31
  105931. 802bef0: d405 bmi.n 802befe <_vfiprintf_r+0x2a>
  105932. 802bef2: 89ab ldrh r3, [r5, #12]
  105933. 802bef4: 059a lsls r2, r3, #22
  105934. 802bef6: d402 bmi.n 802befe <_vfiprintf_r+0x2a>
  105935. 802bef8: 6da8 ldr r0, [r5, #88] @ 0x58
  105936. 802befa: f7fd fff6 bl 8029eea <__retarget_lock_acquire_recursive>
  105937. 802befe: 89ab ldrh r3, [r5, #12]
  105938. 802bf00: 071b lsls r3, r3, #28
  105939. 802bf02: d501 bpl.n 802bf08 <_vfiprintf_r+0x34>
  105940. 802bf04: 692b ldr r3, [r5, #16]
  105941. 802bf06: b99b cbnz r3, 802bf30 <_vfiprintf_r+0x5c>
  105942. 802bf08: 4629 mov r1, r5
  105943. 802bf0a: 4630 mov r0, r6
  105944. 802bf0c: f7fd fe78 bl 8029c00 <__swsetup_r>
  105945. 802bf10: b170 cbz r0, 802bf30 <_vfiprintf_r+0x5c>
  105946. 802bf12: 6e6b ldr r3, [r5, #100] @ 0x64
  105947. 802bf14: 07dc lsls r4, r3, #31
  105948. 802bf16: d504 bpl.n 802bf22 <_vfiprintf_r+0x4e>
  105949. 802bf18: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  105950. 802bf1c: b01d add sp, #116 @ 0x74
  105951. 802bf1e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105952. 802bf22: 89ab ldrh r3, [r5, #12]
  105953. 802bf24: 0598 lsls r0, r3, #22
  105954. 802bf26: d4f7 bmi.n 802bf18 <_vfiprintf_r+0x44>
  105955. 802bf28: 6da8 ldr r0, [r5, #88] @ 0x58
  105956. 802bf2a: f7fd ffdf bl 8029eec <__retarget_lock_release_recursive>
  105957. 802bf2e: e7f3 b.n 802bf18 <_vfiprintf_r+0x44>
  105958. 802bf30: 2300 movs r3, #0
  105959. 802bf32: 9309 str r3, [sp, #36] @ 0x24
  105960. 802bf34: 2320 movs r3, #32
  105961. 802bf36: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  105962. 802bf3a: f8cd 800c str.w r8, [sp, #12]
  105963. 802bf3e: 2330 movs r3, #48 @ 0x30
  105964. 802bf40: f8df 81ac ldr.w r8, [pc, #428] @ 802c0f0 <_vfiprintf_r+0x21c>
  105965. 802bf44: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  105966. 802bf48: f04f 0901 mov.w r9, #1
  105967. 802bf4c: 4623 mov r3, r4
  105968. 802bf4e: 469a mov sl, r3
  105969. 802bf50: f813 2b01 ldrb.w r2, [r3], #1
  105970. 802bf54: b10a cbz r2, 802bf5a <_vfiprintf_r+0x86>
  105971. 802bf56: 2a25 cmp r2, #37 @ 0x25
  105972. 802bf58: d1f9 bne.n 802bf4e <_vfiprintf_r+0x7a>
  105973. 802bf5a: ebba 0b04 subs.w fp, sl, r4
  105974. 802bf5e: d00b beq.n 802bf78 <_vfiprintf_r+0xa4>
  105975. 802bf60: 465b mov r3, fp
  105976. 802bf62: 4622 mov r2, r4
  105977. 802bf64: 4629 mov r1, r5
  105978. 802bf66: 4630 mov r0, r6
  105979. 802bf68: f7ff ffa1 bl 802beae <__sfputs_r>
  105980. 802bf6c: 3001 adds r0, #1
  105981. 802bf6e: f000 80a7 beq.w 802c0c0 <_vfiprintf_r+0x1ec>
  105982. 802bf72: 9a09 ldr r2, [sp, #36] @ 0x24
  105983. 802bf74: 445a add r2, fp
  105984. 802bf76: 9209 str r2, [sp, #36] @ 0x24
  105985. 802bf78: f89a 3000 ldrb.w r3, [sl]
  105986. 802bf7c: 2b00 cmp r3, #0
  105987. 802bf7e: f000 809f beq.w 802c0c0 <_vfiprintf_r+0x1ec>
  105988. 802bf82: 2300 movs r3, #0
  105989. 802bf84: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  105990. 802bf88: e9cd 2305 strd r2, r3, [sp, #20]
  105991. 802bf8c: f10a 0a01 add.w sl, sl, #1
  105992. 802bf90: 9304 str r3, [sp, #16]
  105993. 802bf92: 9307 str r3, [sp, #28]
  105994. 802bf94: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  105995. 802bf98: 931a str r3, [sp, #104] @ 0x68
  105996. 802bf9a: 4654 mov r4, sl
  105997. 802bf9c: 2205 movs r2, #5
  105998. 802bf9e: f814 1b01 ldrb.w r1, [r4], #1
  105999. 802bfa2: 4853 ldr r0, [pc, #332] @ (802c0f0 <_vfiprintf_r+0x21c>)
  106000. 802bfa4: f7d4 f9ac bl 8000300 <memchr>
  106001. 802bfa8: 9a04 ldr r2, [sp, #16]
  106002. 802bfaa: b9d8 cbnz r0, 802bfe4 <_vfiprintf_r+0x110>
  106003. 802bfac: 06d1 lsls r1, r2, #27
  106004. 802bfae: bf44 itt mi
  106005. 802bfb0: 2320 movmi r3, #32
  106006. 802bfb2: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  106007. 802bfb6: 0713 lsls r3, r2, #28
  106008. 802bfb8: bf44 itt mi
  106009. 802bfba: 232b movmi r3, #43 @ 0x2b
  106010. 802bfbc: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  106011. 802bfc0: f89a 3000 ldrb.w r3, [sl]
  106012. 802bfc4: 2b2a cmp r3, #42 @ 0x2a
  106013. 802bfc6: d015 beq.n 802bff4 <_vfiprintf_r+0x120>
  106014. 802bfc8: 9a07 ldr r2, [sp, #28]
  106015. 802bfca: 4654 mov r4, sl
  106016. 802bfcc: 2000 movs r0, #0
  106017. 802bfce: f04f 0c0a mov.w ip, #10
  106018. 802bfd2: 4621 mov r1, r4
  106019. 802bfd4: f811 3b01 ldrb.w r3, [r1], #1
  106020. 802bfd8: 3b30 subs r3, #48 @ 0x30
  106021. 802bfda: 2b09 cmp r3, #9
  106022. 802bfdc: d94b bls.n 802c076 <_vfiprintf_r+0x1a2>
  106023. 802bfde: b1b0 cbz r0, 802c00e <_vfiprintf_r+0x13a>
  106024. 802bfe0: 9207 str r2, [sp, #28]
  106025. 802bfe2: e014 b.n 802c00e <_vfiprintf_r+0x13a>
  106026. 802bfe4: eba0 0308 sub.w r3, r0, r8
  106027. 802bfe8: fa09 f303 lsl.w r3, r9, r3
  106028. 802bfec: 4313 orrs r3, r2
  106029. 802bfee: 9304 str r3, [sp, #16]
  106030. 802bff0: 46a2 mov sl, r4
  106031. 802bff2: e7d2 b.n 802bf9a <_vfiprintf_r+0xc6>
  106032. 802bff4: 9b03 ldr r3, [sp, #12]
  106033. 802bff6: 1d19 adds r1, r3, #4
  106034. 802bff8: 681b ldr r3, [r3, #0]
  106035. 802bffa: 9103 str r1, [sp, #12]
  106036. 802bffc: 2b00 cmp r3, #0
  106037. 802bffe: bfbb ittet lt
  106038. 802c000: 425b neglt r3, r3
  106039. 802c002: f042 0202 orrlt.w r2, r2, #2
  106040. 802c006: 9307 strge r3, [sp, #28]
  106041. 802c008: 9307 strlt r3, [sp, #28]
  106042. 802c00a: bfb8 it lt
  106043. 802c00c: 9204 strlt r2, [sp, #16]
  106044. 802c00e: 7823 ldrb r3, [r4, #0]
  106045. 802c010: 2b2e cmp r3, #46 @ 0x2e
  106046. 802c012: d10a bne.n 802c02a <_vfiprintf_r+0x156>
  106047. 802c014: 7863 ldrb r3, [r4, #1]
  106048. 802c016: 2b2a cmp r3, #42 @ 0x2a
  106049. 802c018: d132 bne.n 802c080 <_vfiprintf_r+0x1ac>
  106050. 802c01a: 9b03 ldr r3, [sp, #12]
  106051. 802c01c: 1d1a adds r2, r3, #4
  106052. 802c01e: 681b ldr r3, [r3, #0]
  106053. 802c020: 9203 str r2, [sp, #12]
  106054. 802c022: ea43 73e3 orr.w r3, r3, r3, asr #31
  106055. 802c026: 3402 adds r4, #2
  106056. 802c028: 9305 str r3, [sp, #20]
  106057. 802c02a: f8df a0d4 ldr.w sl, [pc, #212] @ 802c100 <_vfiprintf_r+0x22c>
  106058. 802c02e: 7821 ldrb r1, [r4, #0]
  106059. 802c030: 2203 movs r2, #3
  106060. 802c032: 4650 mov r0, sl
  106061. 802c034: f7d4 f964 bl 8000300 <memchr>
  106062. 802c038: b138 cbz r0, 802c04a <_vfiprintf_r+0x176>
  106063. 802c03a: 9b04 ldr r3, [sp, #16]
  106064. 802c03c: eba0 000a sub.w r0, r0, sl
  106065. 802c040: 2240 movs r2, #64 @ 0x40
  106066. 802c042: 4082 lsls r2, r0
  106067. 802c044: 4313 orrs r3, r2
  106068. 802c046: 3401 adds r4, #1
  106069. 802c048: 9304 str r3, [sp, #16]
  106070. 802c04a: f814 1b01 ldrb.w r1, [r4], #1
  106071. 802c04e: 4829 ldr r0, [pc, #164] @ (802c0f4 <_vfiprintf_r+0x220>)
  106072. 802c050: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  106073. 802c054: 2206 movs r2, #6
  106074. 802c056: f7d4 f953 bl 8000300 <memchr>
  106075. 802c05a: 2800 cmp r0, #0
  106076. 802c05c: d03f beq.n 802c0de <_vfiprintf_r+0x20a>
  106077. 802c05e: 4b26 ldr r3, [pc, #152] @ (802c0f8 <_vfiprintf_r+0x224>)
  106078. 802c060: bb1b cbnz r3, 802c0aa <_vfiprintf_r+0x1d6>
  106079. 802c062: 9b03 ldr r3, [sp, #12]
  106080. 802c064: 3307 adds r3, #7
  106081. 802c066: f023 0307 bic.w r3, r3, #7
  106082. 802c06a: 3308 adds r3, #8
  106083. 802c06c: 9303 str r3, [sp, #12]
  106084. 802c06e: 9b09 ldr r3, [sp, #36] @ 0x24
  106085. 802c070: 443b add r3, r7
  106086. 802c072: 9309 str r3, [sp, #36] @ 0x24
  106087. 802c074: e76a b.n 802bf4c <_vfiprintf_r+0x78>
  106088. 802c076: fb0c 3202 mla r2, ip, r2, r3
  106089. 802c07a: 460c mov r4, r1
  106090. 802c07c: 2001 movs r0, #1
  106091. 802c07e: e7a8 b.n 802bfd2 <_vfiprintf_r+0xfe>
  106092. 802c080: 2300 movs r3, #0
  106093. 802c082: 3401 adds r4, #1
  106094. 802c084: 9305 str r3, [sp, #20]
  106095. 802c086: 4619 mov r1, r3
  106096. 802c088: f04f 0c0a mov.w ip, #10
  106097. 802c08c: 4620 mov r0, r4
  106098. 802c08e: f810 2b01 ldrb.w r2, [r0], #1
  106099. 802c092: 3a30 subs r2, #48 @ 0x30
  106100. 802c094: 2a09 cmp r2, #9
  106101. 802c096: d903 bls.n 802c0a0 <_vfiprintf_r+0x1cc>
  106102. 802c098: 2b00 cmp r3, #0
  106103. 802c09a: d0c6 beq.n 802c02a <_vfiprintf_r+0x156>
  106104. 802c09c: 9105 str r1, [sp, #20]
  106105. 802c09e: e7c4 b.n 802c02a <_vfiprintf_r+0x156>
  106106. 802c0a0: fb0c 2101 mla r1, ip, r1, r2
  106107. 802c0a4: 4604 mov r4, r0
  106108. 802c0a6: 2301 movs r3, #1
  106109. 802c0a8: e7f0 b.n 802c08c <_vfiprintf_r+0x1b8>
  106110. 802c0aa: ab03 add r3, sp, #12
  106111. 802c0ac: 9300 str r3, [sp, #0]
  106112. 802c0ae: 462a mov r2, r5
  106113. 802c0b0: 4b12 ldr r3, [pc, #72] @ (802c0fc <_vfiprintf_r+0x228>)
  106114. 802c0b2: a904 add r1, sp, #16
  106115. 802c0b4: 4630 mov r0, r6
  106116. 802c0b6: f7fd f827 bl 8029108 <_printf_float>
  106117. 802c0ba: 4607 mov r7, r0
  106118. 802c0bc: 1c78 adds r0, r7, #1
  106119. 802c0be: d1d6 bne.n 802c06e <_vfiprintf_r+0x19a>
  106120. 802c0c0: 6e6b ldr r3, [r5, #100] @ 0x64
  106121. 802c0c2: 07d9 lsls r1, r3, #31
  106122. 802c0c4: d405 bmi.n 802c0d2 <_vfiprintf_r+0x1fe>
  106123. 802c0c6: 89ab ldrh r3, [r5, #12]
  106124. 802c0c8: 059a lsls r2, r3, #22
  106125. 802c0ca: d402 bmi.n 802c0d2 <_vfiprintf_r+0x1fe>
  106126. 802c0cc: 6da8 ldr r0, [r5, #88] @ 0x58
  106127. 802c0ce: f7fd ff0d bl 8029eec <__retarget_lock_release_recursive>
  106128. 802c0d2: 89ab ldrh r3, [r5, #12]
  106129. 802c0d4: 065b lsls r3, r3, #25
  106130. 802c0d6: f53f af1f bmi.w 802bf18 <_vfiprintf_r+0x44>
  106131. 802c0da: 9809 ldr r0, [sp, #36] @ 0x24
  106132. 802c0dc: e71e b.n 802bf1c <_vfiprintf_r+0x48>
  106133. 802c0de: ab03 add r3, sp, #12
  106134. 802c0e0: 9300 str r3, [sp, #0]
  106135. 802c0e2: 462a mov r2, r5
  106136. 802c0e4: 4b05 ldr r3, [pc, #20] @ (802c0fc <_vfiprintf_r+0x228>)
  106137. 802c0e6: a904 add r1, sp, #16
  106138. 802c0e8: 4630 mov r0, r6
  106139. 802c0ea: f7fd fa95 bl 8029618 <_printf_i>
  106140. 802c0ee: e7e4 b.n 802c0ba <_vfiprintf_r+0x1e6>
  106141. 802c0f0: 080310e8 .word 0x080310e8
  106142. 802c0f4: 080310f2 .word 0x080310f2
  106143. 802c0f8: 08029109 .word 0x08029109
  106144. 802c0fc: 0802beaf .word 0x0802beaf
  106145. 802c100: 080310ee .word 0x080310ee
  106146. 0802c104 <__sflush_r>:
  106147. 802c104: f9b1 200c ldrsh.w r2, [r1, #12]
  106148. 802c108: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  106149. 802c10c: 0716 lsls r6, r2, #28
  106150. 802c10e: 4605 mov r5, r0
  106151. 802c110: 460c mov r4, r1
  106152. 802c112: d454 bmi.n 802c1be <__sflush_r+0xba>
  106153. 802c114: 684b ldr r3, [r1, #4]
  106154. 802c116: 2b00 cmp r3, #0
  106155. 802c118: dc02 bgt.n 802c120 <__sflush_r+0x1c>
  106156. 802c11a: 6c0b ldr r3, [r1, #64] @ 0x40
  106157. 802c11c: 2b00 cmp r3, #0
  106158. 802c11e: dd48 ble.n 802c1b2 <__sflush_r+0xae>
  106159. 802c120: 6ae6 ldr r6, [r4, #44] @ 0x2c
  106160. 802c122: 2e00 cmp r6, #0
  106161. 802c124: d045 beq.n 802c1b2 <__sflush_r+0xae>
  106162. 802c126: 2300 movs r3, #0
  106163. 802c128: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  106164. 802c12c: 682f ldr r7, [r5, #0]
  106165. 802c12e: 6a21 ldr r1, [r4, #32]
  106166. 802c130: 602b str r3, [r5, #0]
  106167. 802c132: d030 beq.n 802c196 <__sflush_r+0x92>
  106168. 802c134: 6d62 ldr r2, [r4, #84] @ 0x54
  106169. 802c136: 89a3 ldrh r3, [r4, #12]
  106170. 802c138: 0759 lsls r1, r3, #29
  106171. 802c13a: d505 bpl.n 802c148 <__sflush_r+0x44>
  106172. 802c13c: 6863 ldr r3, [r4, #4]
  106173. 802c13e: 1ad2 subs r2, r2, r3
  106174. 802c140: 6b63 ldr r3, [r4, #52] @ 0x34
  106175. 802c142: b10b cbz r3, 802c148 <__sflush_r+0x44>
  106176. 802c144: 6c23 ldr r3, [r4, #64] @ 0x40
  106177. 802c146: 1ad2 subs r2, r2, r3
  106178. 802c148: 2300 movs r3, #0
  106179. 802c14a: 6ae6 ldr r6, [r4, #44] @ 0x2c
  106180. 802c14c: 6a21 ldr r1, [r4, #32]
  106181. 802c14e: 4628 mov r0, r5
  106182. 802c150: 47b0 blx r6
  106183. 802c152: 1c43 adds r3, r0, #1
  106184. 802c154: 89a3 ldrh r3, [r4, #12]
  106185. 802c156: d106 bne.n 802c166 <__sflush_r+0x62>
  106186. 802c158: 6829 ldr r1, [r5, #0]
  106187. 802c15a: 291d cmp r1, #29
  106188. 802c15c: d82b bhi.n 802c1b6 <__sflush_r+0xb2>
  106189. 802c15e: 4a2a ldr r2, [pc, #168] @ (802c208 <__sflush_r+0x104>)
  106190. 802c160: 410a asrs r2, r1
  106191. 802c162: 07d6 lsls r6, r2, #31
  106192. 802c164: d427 bmi.n 802c1b6 <__sflush_r+0xb2>
  106193. 802c166: 2200 movs r2, #0
  106194. 802c168: 6062 str r2, [r4, #4]
  106195. 802c16a: 04d9 lsls r1, r3, #19
  106196. 802c16c: 6922 ldr r2, [r4, #16]
  106197. 802c16e: 6022 str r2, [r4, #0]
  106198. 802c170: d504 bpl.n 802c17c <__sflush_r+0x78>
  106199. 802c172: 1c42 adds r2, r0, #1
  106200. 802c174: d101 bne.n 802c17a <__sflush_r+0x76>
  106201. 802c176: 682b ldr r3, [r5, #0]
  106202. 802c178: b903 cbnz r3, 802c17c <__sflush_r+0x78>
  106203. 802c17a: 6560 str r0, [r4, #84] @ 0x54
  106204. 802c17c: 6b61 ldr r1, [r4, #52] @ 0x34
  106205. 802c17e: 602f str r7, [r5, #0]
  106206. 802c180: b1b9 cbz r1, 802c1b2 <__sflush_r+0xae>
  106207. 802c182: f104 0344 add.w r3, r4, #68 @ 0x44
  106208. 802c186: 4299 cmp r1, r3
  106209. 802c188: d002 beq.n 802c190 <__sflush_r+0x8c>
  106210. 802c18a: 4628 mov r0, r5
  106211. 802c18c: f7fe fcc6 bl 802ab1c <_free_r>
  106212. 802c190: 2300 movs r3, #0
  106213. 802c192: 6363 str r3, [r4, #52] @ 0x34
  106214. 802c194: e00d b.n 802c1b2 <__sflush_r+0xae>
  106215. 802c196: 2301 movs r3, #1
  106216. 802c198: 4628 mov r0, r5
  106217. 802c19a: 47b0 blx r6
  106218. 802c19c: 4602 mov r2, r0
  106219. 802c19e: 1c50 adds r0, r2, #1
  106220. 802c1a0: d1c9 bne.n 802c136 <__sflush_r+0x32>
  106221. 802c1a2: 682b ldr r3, [r5, #0]
  106222. 802c1a4: 2b00 cmp r3, #0
  106223. 802c1a6: d0c6 beq.n 802c136 <__sflush_r+0x32>
  106224. 802c1a8: 2b1d cmp r3, #29
  106225. 802c1aa: d001 beq.n 802c1b0 <__sflush_r+0xac>
  106226. 802c1ac: 2b16 cmp r3, #22
  106227. 802c1ae: d11e bne.n 802c1ee <__sflush_r+0xea>
  106228. 802c1b0: 602f str r7, [r5, #0]
  106229. 802c1b2: 2000 movs r0, #0
  106230. 802c1b4: e022 b.n 802c1fc <__sflush_r+0xf8>
  106231. 802c1b6: f043 0340 orr.w r3, r3, #64 @ 0x40
  106232. 802c1ba: b21b sxth r3, r3
  106233. 802c1bc: e01b b.n 802c1f6 <__sflush_r+0xf2>
  106234. 802c1be: 690f ldr r7, [r1, #16]
  106235. 802c1c0: 2f00 cmp r7, #0
  106236. 802c1c2: d0f6 beq.n 802c1b2 <__sflush_r+0xae>
  106237. 802c1c4: 0793 lsls r3, r2, #30
  106238. 802c1c6: 680e ldr r6, [r1, #0]
  106239. 802c1c8: bf08 it eq
  106240. 802c1ca: 694b ldreq r3, [r1, #20]
  106241. 802c1cc: 600f str r7, [r1, #0]
  106242. 802c1ce: bf18 it ne
  106243. 802c1d0: 2300 movne r3, #0
  106244. 802c1d2: eba6 0807 sub.w r8, r6, r7
  106245. 802c1d6: 608b str r3, [r1, #8]
  106246. 802c1d8: f1b8 0f00 cmp.w r8, #0
  106247. 802c1dc: dde9 ble.n 802c1b2 <__sflush_r+0xae>
  106248. 802c1de: 6a21 ldr r1, [r4, #32]
  106249. 802c1e0: 6aa6 ldr r6, [r4, #40] @ 0x28
  106250. 802c1e2: 4643 mov r3, r8
  106251. 802c1e4: 463a mov r2, r7
  106252. 802c1e6: 4628 mov r0, r5
  106253. 802c1e8: 47b0 blx r6
  106254. 802c1ea: 2800 cmp r0, #0
  106255. 802c1ec: dc08 bgt.n 802c200 <__sflush_r+0xfc>
  106256. 802c1ee: f9b4 300c ldrsh.w r3, [r4, #12]
  106257. 802c1f2: f043 0340 orr.w r3, r3, #64 @ 0x40
  106258. 802c1f6: 81a3 strh r3, [r4, #12]
  106259. 802c1f8: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  106260. 802c1fc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  106261. 802c200: 4407 add r7, r0
  106262. 802c202: eba8 0800 sub.w r8, r8, r0
  106263. 802c206: e7e7 b.n 802c1d8 <__sflush_r+0xd4>
  106264. 802c208: dfbffffe .word 0xdfbffffe
  106265. 0802c20c <_fflush_r>:
  106266. 802c20c: b538 push {r3, r4, r5, lr}
  106267. 802c20e: 690b ldr r3, [r1, #16]
  106268. 802c210: 4605 mov r5, r0
  106269. 802c212: 460c mov r4, r1
  106270. 802c214: b913 cbnz r3, 802c21c <_fflush_r+0x10>
  106271. 802c216: 2500 movs r5, #0
  106272. 802c218: 4628 mov r0, r5
  106273. 802c21a: bd38 pop {r3, r4, r5, pc}
  106274. 802c21c: b118 cbz r0, 802c226 <_fflush_r+0x1a>
  106275. 802c21e: 6a03 ldr r3, [r0, #32]
  106276. 802c220: b90b cbnz r3, 802c226 <_fflush_r+0x1a>
  106277. 802c222: f7fd fba5 bl 8029970 <__sinit>
  106278. 802c226: f9b4 300c ldrsh.w r3, [r4, #12]
  106279. 802c22a: 2b00 cmp r3, #0
  106280. 802c22c: d0f3 beq.n 802c216 <_fflush_r+0xa>
  106281. 802c22e: 6e62 ldr r2, [r4, #100] @ 0x64
  106282. 802c230: 07d0 lsls r0, r2, #31
  106283. 802c232: d404 bmi.n 802c23e <_fflush_r+0x32>
  106284. 802c234: 0599 lsls r1, r3, #22
  106285. 802c236: d402 bmi.n 802c23e <_fflush_r+0x32>
  106286. 802c238: 6da0 ldr r0, [r4, #88] @ 0x58
  106287. 802c23a: f7fd fe56 bl 8029eea <__retarget_lock_acquire_recursive>
  106288. 802c23e: 4628 mov r0, r5
  106289. 802c240: 4621 mov r1, r4
  106290. 802c242: f7ff ff5f bl 802c104 <__sflush_r>
  106291. 802c246: 6e63 ldr r3, [r4, #100] @ 0x64
  106292. 802c248: 07da lsls r2, r3, #31
  106293. 802c24a: 4605 mov r5, r0
  106294. 802c24c: d4e4 bmi.n 802c218 <_fflush_r+0xc>
  106295. 802c24e: 89a3 ldrh r3, [r4, #12]
  106296. 802c250: 059b lsls r3, r3, #22
  106297. 802c252: d4e1 bmi.n 802c218 <_fflush_r+0xc>
  106298. 802c254: 6da0 ldr r0, [r4, #88] @ 0x58
  106299. 802c256: f7fd fe49 bl 8029eec <__retarget_lock_release_recursive>
  106300. 802c25a: e7dd b.n 802c218 <_fflush_r+0xc>
  106301. 0802c25c <fiprintf>:
  106302. 802c25c: b40e push {r1, r2, r3}
  106303. 802c25e: b503 push {r0, r1, lr}
  106304. 802c260: 4601 mov r1, r0
  106305. 802c262: ab03 add r3, sp, #12
  106306. 802c264: 4805 ldr r0, [pc, #20] @ (802c27c <fiprintf+0x20>)
  106307. 802c266: f853 2b04 ldr.w r2, [r3], #4
  106308. 802c26a: 6800 ldr r0, [r0, #0]
  106309. 802c26c: 9301 str r3, [sp, #4]
  106310. 802c26e: f7ff fe31 bl 802bed4 <_vfiprintf_r>
  106311. 802c272: b002 add sp, #8
  106312. 802c274: f85d eb04 ldr.w lr, [sp], #4
  106313. 802c278: b003 add sp, #12
  106314. 802c27a: 4770 bx lr
  106315. 802c27c: 240001d4 .word 0x240001d4
  106316. 0802c280 <__swhatbuf_r>:
  106317. 802c280: b570 push {r4, r5, r6, lr}
  106318. 802c282: 460c mov r4, r1
  106319. 802c284: f9b1 100e ldrsh.w r1, [r1, #14]
  106320. 802c288: 2900 cmp r1, #0
  106321. 802c28a: b096 sub sp, #88 @ 0x58
  106322. 802c28c: 4615 mov r5, r2
  106323. 802c28e: 461e mov r6, r3
  106324. 802c290: da0d bge.n 802c2ae <__swhatbuf_r+0x2e>
  106325. 802c292: 89a3 ldrh r3, [r4, #12]
  106326. 802c294: f013 0f80 tst.w r3, #128 @ 0x80
  106327. 802c298: f04f 0100 mov.w r1, #0
  106328. 802c29c: bf14 ite ne
  106329. 802c29e: 2340 movne r3, #64 @ 0x40
  106330. 802c2a0: f44f 6380 moveq.w r3, #1024 @ 0x400
  106331. 802c2a4: 2000 movs r0, #0
  106332. 802c2a6: 6031 str r1, [r6, #0]
  106333. 802c2a8: 602b str r3, [r5, #0]
  106334. 802c2aa: b016 add sp, #88 @ 0x58
  106335. 802c2ac: bd70 pop {r4, r5, r6, pc}
  106336. 802c2ae: 466a mov r2, sp
  106337. 802c2b0: f000 f848 bl 802c344 <_fstat_r>
  106338. 802c2b4: 2800 cmp r0, #0
  106339. 802c2b6: dbec blt.n 802c292 <__swhatbuf_r+0x12>
  106340. 802c2b8: 9901 ldr r1, [sp, #4]
  106341. 802c2ba: f401 4170 and.w r1, r1, #61440 @ 0xf000
  106342. 802c2be: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  106343. 802c2c2: 4259 negs r1, r3
  106344. 802c2c4: 4159 adcs r1, r3
  106345. 802c2c6: f44f 6380 mov.w r3, #1024 @ 0x400
  106346. 802c2ca: e7eb b.n 802c2a4 <__swhatbuf_r+0x24>
  106347. 0802c2cc <__smakebuf_r>:
  106348. 802c2cc: 898b ldrh r3, [r1, #12]
  106349. 802c2ce: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  106350. 802c2d0: 079d lsls r5, r3, #30
  106351. 802c2d2: 4606 mov r6, r0
  106352. 802c2d4: 460c mov r4, r1
  106353. 802c2d6: d507 bpl.n 802c2e8 <__smakebuf_r+0x1c>
  106354. 802c2d8: f104 0347 add.w r3, r4, #71 @ 0x47
  106355. 802c2dc: 6023 str r3, [r4, #0]
  106356. 802c2de: 6123 str r3, [r4, #16]
  106357. 802c2e0: 2301 movs r3, #1
  106358. 802c2e2: 6163 str r3, [r4, #20]
  106359. 802c2e4: b003 add sp, #12
  106360. 802c2e6: bdf0 pop {r4, r5, r6, r7, pc}
  106361. 802c2e8: ab01 add r3, sp, #4
  106362. 802c2ea: 466a mov r2, sp
  106363. 802c2ec: f7ff ffc8 bl 802c280 <__swhatbuf_r>
  106364. 802c2f0: 9f00 ldr r7, [sp, #0]
  106365. 802c2f2: 4605 mov r5, r0
  106366. 802c2f4: 4639 mov r1, r7
  106367. 802c2f6: 4630 mov r0, r6
  106368. 802c2f8: f7fb ffba bl 8028270 <_malloc_r>
  106369. 802c2fc: b948 cbnz r0, 802c312 <__smakebuf_r+0x46>
  106370. 802c2fe: f9b4 300c ldrsh.w r3, [r4, #12]
  106371. 802c302: 059a lsls r2, r3, #22
  106372. 802c304: d4ee bmi.n 802c2e4 <__smakebuf_r+0x18>
  106373. 802c306: f023 0303 bic.w r3, r3, #3
  106374. 802c30a: f043 0302 orr.w r3, r3, #2
  106375. 802c30e: 81a3 strh r3, [r4, #12]
  106376. 802c310: e7e2 b.n 802c2d8 <__smakebuf_r+0xc>
  106377. 802c312: 89a3 ldrh r3, [r4, #12]
  106378. 802c314: 6020 str r0, [r4, #0]
  106379. 802c316: f043 0380 orr.w r3, r3, #128 @ 0x80
  106380. 802c31a: 81a3 strh r3, [r4, #12]
  106381. 802c31c: 9b01 ldr r3, [sp, #4]
  106382. 802c31e: e9c4 0704 strd r0, r7, [r4, #16]
  106383. 802c322: b15b cbz r3, 802c33c <__smakebuf_r+0x70>
  106384. 802c324: f9b4 100e ldrsh.w r1, [r4, #14]
  106385. 802c328: 4630 mov r0, r6
  106386. 802c32a: f000 f81d bl 802c368 <_isatty_r>
  106387. 802c32e: b128 cbz r0, 802c33c <__smakebuf_r+0x70>
  106388. 802c330: 89a3 ldrh r3, [r4, #12]
  106389. 802c332: f023 0303 bic.w r3, r3, #3
  106390. 802c336: f043 0301 orr.w r3, r3, #1
  106391. 802c33a: 81a3 strh r3, [r4, #12]
  106392. 802c33c: 89a3 ldrh r3, [r4, #12]
  106393. 802c33e: 431d orrs r5, r3
  106394. 802c340: 81a5 strh r5, [r4, #12]
  106395. 802c342: e7cf b.n 802c2e4 <__smakebuf_r+0x18>
  106396. 0802c344 <_fstat_r>:
  106397. 802c344: b538 push {r3, r4, r5, lr}
  106398. 802c346: 4d07 ldr r5, [pc, #28] @ (802c364 <_fstat_r+0x20>)
  106399. 802c348: 2300 movs r3, #0
  106400. 802c34a: 4604 mov r4, r0
  106401. 802c34c: 4608 mov r0, r1
  106402. 802c34e: 4611 mov r1, r2
  106403. 802c350: 602b str r3, [r5, #0]
  106404. 802c352: f7d7 fc43 bl 8003bdc <_fstat>
  106405. 802c356: 1c43 adds r3, r0, #1
  106406. 802c358: d102 bne.n 802c360 <_fstat_r+0x1c>
  106407. 802c35a: 682b ldr r3, [r5, #0]
  106408. 802c35c: b103 cbz r3, 802c360 <_fstat_r+0x1c>
  106409. 802c35e: 6023 str r3, [r4, #0]
  106410. 802c360: bd38 pop {r3, r4, r5, pc}
  106411. 802c362: bf00 nop
  106412. 802c364: 2402b180 .word 0x2402b180
  106413. 0802c368 <_isatty_r>:
  106414. 802c368: b538 push {r3, r4, r5, lr}
  106415. 802c36a: 4d06 ldr r5, [pc, #24] @ (802c384 <_isatty_r+0x1c>)
  106416. 802c36c: 2300 movs r3, #0
  106417. 802c36e: 4604 mov r4, r0
  106418. 802c370: 4608 mov r0, r1
  106419. 802c372: 602b str r3, [r5, #0]
  106420. 802c374: f7d7 fc42 bl 8003bfc <_isatty>
  106421. 802c378: 1c43 adds r3, r0, #1
  106422. 802c37a: d102 bne.n 802c382 <_isatty_r+0x1a>
  106423. 802c37c: 682b ldr r3, [r5, #0]
  106424. 802c37e: b103 cbz r3, 802c382 <_isatty_r+0x1a>
  106425. 802c380: 6023 str r3, [r4, #0]
  106426. 802c382: bd38 pop {r3, r4, r5, pc}
  106427. 802c384: 2402b180 .word 0x2402b180
  106428. 0802c388 <abort>:
  106429. 802c388: b508 push {r3, lr}
  106430. 802c38a: 2006 movs r0, #6
  106431. 802c38c: f000 f840 bl 802c410 <raise>
  106432. 802c390: 2001 movs r0, #1
  106433. 802c392: f7d7 fbd3 bl 8003b3c <_exit>
  106434. 0802c396 <_calloc_r>:
  106435. 802c396: b570 push {r4, r5, r6, lr}
  106436. 802c398: fba1 5402 umull r5, r4, r1, r2
  106437. 802c39c: b93c cbnz r4, 802c3ae <_calloc_r+0x18>
  106438. 802c39e: 4629 mov r1, r5
  106439. 802c3a0: f7fb ff66 bl 8028270 <_malloc_r>
  106440. 802c3a4: 4606 mov r6, r0
  106441. 802c3a6: b928 cbnz r0, 802c3b4 <_calloc_r+0x1e>
  106442. 802c3a8: 2600 movs r6, #0
  106443. 802c3aa: 4630 mov r0, r6
  106444. 802c3ac: bd70 pop {r4, r5, r6, pc}
  106445. 802c3ae: 220c movs r2, #12
  106446. 802c3b0: 6002 str r2, [r0, #0]
  106447. 802c3b2: e7f9 b.n 802c3a8 <_calloc_r+0x12>
  106448. 802c3b4: 462a mov r2, r5
  106449. 802c3b6: 4621 mov r1, r4
  106450. 802c3b8: f7fd fca2 bl 8029d00 <memset>
  106451. 802c3bc: e7f5 b.n 802c3aa <_calloc_r+0x14>
  106452. 0802c3be <_raise_r>:
  106453. 802c3be: 291f cmp r1, #31
  106454. 802c3c0: b538 push {r3, r4, r5, lr}
  106455. 802c3c2: 4605 mov r5, r0
  106456. 802c3c4: 460c mov r4, r1
  106457. 802c3c6: d904 bls.n 802c3d2 <_raise_r+0x14>
  106458. 802c3c8: 2316 movs r3, #22
  106459. 802c3ca: 6003 str r3, [r0, #0]
  106460. 802c3cc: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  106461. 802c3d0: bd38 pop {r3, r4, r5, pc}
  106462. 802c3d2: 6bc2 ldr r2, [r0, #60] @ 0x3c
  106463. 802c3d4: b112 cbz r2, 802c3dc <_raise_r+0x1e>
  106464. 802c3d6: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  106465. 802c3da: b94b cbnz r3, 802c3f0 <_raise_r+0x32>
  106466. 802c3dc: 4628 mov r0, r5
  106467. 802c3de: f000 f831 bl 802c444 <_getpid_r>
  106468. 802c3e2: 4622 mov r2, r4
  106469. 802c3e4: 4601 mov r1, r0
  106470. 802c3e6: 4628 mov r0, r5
  106471. 802c3e8: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  106472. 802c3ec: f000 b818 b.w 802c420 <_kill_r>
  106473. 802c3f0: 2b01 cmp r3, #1
  106474. 802c3f2: d00a beq.n 802c40a <_raise_r+0x4c>
  106475. 802c3f4: 1c59 adds r1, r3, #1
  106476. 802c3f6: d103 bne.n 802c400 <_raise_r+0x42>
  106477. 802c3f8: 2316 movs r3, #22
  106478. 802c3fa: 6003 str r3, [r0, #0]
  106479. 802c3fc: 2001 movs r0, #1
  106480. 802c3fe: e7e7 b.n 802c3d0 <_raise_r+0x12>
  106481. 802c400: 2100 movs r1, #0
  106482. 802c402: f842 1024 str.w r1, [r2, r4, lsl #2]
  106483. 802c406: 4620 mov r0, r4
  106484. 802c408: 4798 blx r3
  106485. 802c40a: 2000 movs r0, #0
  106486. 802c40c: e7e0 b.n 802c3d0 <_raise_r+0x12>
  106487. ...
  106488. 0802c410 <raise>:
  106489. 802c410: 4b02 ldr r3, [pc, #8] @ (802c41c <raise+0xc>)
  106490. 802c412: 4601 mov r1, r0
  106491. 802c414: 6818 ldr r0, [r3, #0]
  106492. 802c416: f7ff bfd2 b.w 802c3be <_raise_r>
  106493. 802c41a: bf00 nop
  106494. 802c41c: 240001d4 .word 0x240001d4
  106495. 0802c420 <_kill_r>:
  106496. 802c420: b538 push {r3, r4, r5, lr}
  106497. 802c422: 4d07 ldr r5, [pc, #28] @ (802c440 <_kill_r+0x20>)
  106498. 802c424: 2300 movs r3, #0
  106499. 802c426: 4604 mov r4, r0
  106500. 802c428: 4608 mov r0, r1
  106501. 802c42a: 4611 mov r1, r2
  106502. 802c42c: 602b str r3, [r5, #0]
  106503. 802c42e: f7d7 fb73 bl 8003b18 <_kill>
  106504. 802c432: 1c43 adds r3, r0, #1
  106505. 802c434: d102 bne.n 802c43c <_kill_r+0x1c>
  106506. 802c436: 682b ldr r3, [r5, #0]
  106507. 802c438: b103 cbz r3, 802c43c <_kill_r+0x1c>
  106508. 802c43a: 6023 str r3, [r4, #0]
  106509. 802c43c: bd38 pop {r3, r4, r5, pc}
  106510. 802c43e: bf00 nop
  106511. 802c440: 2402b180 .word 0x2402b180
  106512. 0802c444 <_getpid_r>:
  106513. 802c444: f7d7 bb5f b.w 8003b06 <_getpid>
  106514. 0802c448 <_init>:
  106515. 802c448: b5f8 push {r3, r4, r5, r6, r7, lr}
  106516. 802c44a: bf00 nop
  106517. 802c44c: bcf8 pop {r3, r4, r5, r6, r7}
  106518. 802c44e: bc08 pop {r3}
  106519. 802c450: 469e mov lr, r3
  106520. 802c452: 4770 bx lr
  106521. 0802c454 <_fini>:
  106522. 802c454: b5f8 push {r3, r4, r5, r6, r7, lr}
  106523. 802c456: bf00 nop
  106524. 802c458: bcf8 pop {r3, r4, r5, r6, r7}
  106525. 802c45a: bc08 pop {r3}
  106526. 802c45c: 469e mov lr, r3
  106527. 802c45e: 4770 bx lr